
/* Review-only HAEPPY official branded routing. UI is scoped, not the marketing source shell. */
.haeppy-review-nav{position:relative;z-index:99999;background:#fffefa;color:#0b2d60;border-bottom:1px solid #eee5db;font-family:ui-sans-serif,system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif}
.haeppy-review-nav .haeppy-review-nav-inner{width:min(1160px,calc(100% - 36px));min-height:76px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:15px}
.haeppy-review-nav .haeppy-review-brand{display:flex;align-items:center;flex-shrink:0;min-height:55px}
.haeppy-review-nav .haeppy-review-brand img{display:block;width:clamp(148px,17vw,200px);height:auto;object-fit:contain}
.haeppy-review-nav .haeppy-review-links{display:flex;align-items:center;gap:clamp(8px,1.8vw,21px)}
.haeppy-review-nav .haeppy-review-links a{display:inline-flex;align-items:center;min-height:44px;padding:4px;text-decoration:none;color:#0b2d60!important;font-size:13px;white-space:nowrap;font-weight:750}
.haeppy-review-nav .haeppy-review-links a[aria-current=page],.haeppy-review-nav .haeppy-review-links a:hover{color:#da6c10!important;text-decoration:underline;text-underline-offset:5px}
.haeppy-review-nav .haeppy-review-mobile{display:none;color:#0b2d60}
.haeppy-review-nav .haeppy-review-mobile summary{cursor:pointer;padding:12px;font-size:14px;font-weight:800}
.haeppy-review-nav .haeppy-review-mobile nav{position:absolute;top:100%;left:0;right:0;display:grid;gap:0;background:#fffefa;border-bottom:1px solid #e5daca;padding:10px 20px;box-shadow:0 9px 15px #0002}
.haeppy-review-nav .haeppy-review-mobile nav a{color:#0b2d60!important;font-size:14px;font-weight:750;min-height:46px;display:flex;align-items:center;text-decoration:none}
.haeppy-review-note{margin:0;padding:7px 16px;font:600 11px/1.5 ui-sans-serif,system-ui,sans-serif;text-align:center;background:#f4f6fa;color:#314c6c;border-top:1px solid #e9eef5}
.haeppy-review-bottom{position:relative;z-index:5;background:#fffefa;color:#0b2d60;border-top:1px solid #e5daca;padding:25px max(20px,calc((100vw - 1160px)/2));font:500 12px/1.7 ui-sans-serif,system-ui,sans-serif}
.haeppy-review-bottom .haeppy-review-footer-links{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 10px}
.haeppy-review-bottom .haeppy-review-footer-links a{color:#0b2d60!important;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.haeppy-review-bottom p{margin:0;color:#53687b;font-size:11px}
@media(max-width:740px){.haeppy-review-nav .haeppy-review-links{display:none}.haeppy-review-nav .haeppy-review-mobile{display:block}.haeppy-review-nav .haeppy-review-nav-inner{min-height:68px}}

/* V14: Upgrades are an in-battle, modal tactical console; the separate status deck stays informational. */
.upgrade-modal[hidden]{display:none!important}
.upgrade-modal{position:absolute;inset:0;z-index:12;background:rgba(4,12,16,.95);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;pointer-events:auto;scrollbar-color:#6a9e8a #14262a}
.upgrade-modal-box{width:100%;min-height:100%;padding:clamp(11px,2vw,24px);background:radial-gradient(circle at 85% 0%,#24403a 0%,transparent 42%),#0c1a20}
.upgrade-modal-header{position:sticky;top:0;z-index:2;background:#12262bee;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0 11px;border-bottom:1px solid #496963}
.upgrade-modal-kicker{display:block;color:#b8e4d3;font-size:9px;font-weight:900;letter-spacing:.13em}
.upgrade-modal-header h2{font-size:clamp(17px,2.4vw,27px);font-weight:950;margin:2px 0;color:#f9e4c4;line-height:1.2}
#upgradeLevelBadge{font-size:11px;background:#28584e;border-radius:4px;padding:3px 8px;color:#aaf2ca;vertical-align:middle}
.upgrade-modal-header p{font-size:10px;color:#b4d0c7;margin:3px 0 0}
.upgrade-close{white-space:nowrap;background:#d7f1d7;border:0;border-radius:6px;color:#16322c;font-size:12px;font-weight:950;padding:11px 13px;min-height:40px}
.upgrade-wallet{font-size:12px;color:#ffe0b2;font-weight:850;margin:12px 0 9px;letter-spacing:.02em}
.upgrade-tabs{display:flex;overflow-x:auto;gap:7px;align-items:center;padding:2px 0 11px;scrollbar-width:thin}
.upgrade-tabs button{flex:0 0 auto;white-space:nowrap;border:1px solid #42665d;background:#172b2e;color:#c1d5d1;border-radius:18px;padding:7px 14px;font-size:11px;font-weight:800}
.upgrade-tabs button[aria-pressed="true"]{border-color:#bbf5d8;color:#09251e;background:#aee2c3}
.upgrade-modal .upgrades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:9px}
.upgrade-modal .upgrades button{min-height:117px;padding:10px 11px;gap:5px}
.upgrade-modal .upgrades button[hidden]{display:none!important}
.upgrade-modal .upgrade-icon{font-size:16px}
.upgrade-modal .upgrade-name{font-size:12px}
.upgrade-modal .upgrades small{font-size:10px;color:#cfdbd0}
.upgrade-effect{font-size:10px;line-height:1.4;color:#8ee9c1;font-weight:750}
.upgrade-modal .upgrade-cost{font-size:11px;color:#ffdda5}
.upgrade-modal-footer{border-top:1px solid #41635c;color:#b8d5c8;padding:10px 0 5px;font-size:10px;line-height:1.6}
.pause-menu #deckButton{border-color:#f3d7a4;color:#ffe8c0;background:linear-gradient(125deg,#4d382c,#23302c);font-weight:950}
@media(max-width:850px){.upgrade-modal .upgrades{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){.upgrade-tabs{flex-wrap:wrap;overflow-x:visible}.upgrade-tabs button{font-size:9px;padding:5px 9px}.upgrade-modal .upgrades{grid-template-columns:1fr}.upgrade-modal-box{padding:9px}.upgrade-modal-header{padding:5px 0 7px}.upgrade-modal-header h2{font-size:18px}.upgrade-modal-header p{font-size:9px}.upgrade-close{font-size:10px;padding:7px 9px;min-height:35px}.upgrade-wallet{font-size:10px;margin:7px 0}.upgrade-tabs{gap:4px;padding-bottom:6px}.upgrade-tabs button{font-size:10px;padding:5px 10px}.upgrade-modal .upgrades button{min-height:86px;gap:3px;padding:7px 10px}.upgrade-modal .upgrade-name{font-size:12px}.upgrade-modal .upgrades small{font-size:10px}.upgrade-modal .upgrade-cost{font-size:10px}.upgrade-modal .upgrade-icon{font-size:13px}}
@media(max-height:540px) and (orientation:landscape){.upgrade-modal-box{padding:9px 16px}.upgrade-modal .upgrades{grid-template-columns:repeat(3,minmax(0,1fr))}.upgrade-modal .upgrades button{min-height:91px;padding:7px 9px}.upgrade-modal-header p{display:none}.upgrade-tabs{padding-bottom:5px}}



/* V24: true low-obstruction fullscreen combat HUD. Details appear only on demand. */
.compact-hud{display:none}
.pause-menu #quickWaveButton,.pause-menu #focusInfoToggle{display:none}
body.mobile-focus .hud{display:none!important}
body.mobile-focus .compact-hud{
 display:flex;position:absolute;z-index:7;top:0;left:0;right:0;
 min-height:calc(27px + env(safe-area-inset-top));
 align-items:center;justify-content:space-between;gap:7px;
 padding:calc(3px + env(safe-area-inset-top)) calc(7px + env(safe-area-inset-right)) 3px calc(7px + env(safe-area-inset-left));
 background:rgba(4,17,22,.72);border-bottom:1px solid #79c7ab3a;
 color:#dff9ec;font:850 clamp(9px,1.9vw,11px)/1.25 system-ui,sans-serif;
 pointer-events:none;white-space:nowrap;
}
body.mobile-focus .compact-hud span:nth-child(2){color:#ffd39a}
body.mobile-focus .pause-menu{
 position:absolute;z-index:9;left:auto;right:calc(6px + env(safe-area-inset-right));
 top:calc(32px + env(safe-area-inset-top));bottom:auto;transform:none;
 display:flex;flex-wrap:nowrap;gap:3px;align-items:center;justify-content:flex-end;
 max-width:calc(100% - 12px);width:max-content;
}
body.mobile-focus .pause-menu button{
 display:grid;place-items:center;flex:0 0 auto;
 width:42px;height:42px;min-height:42px;padding:0!important;
 border-radius:6px;font-size:0!important;line-height:1!important;
 color:#e2f9ea;border:1px solid #648c8266;
 background:rgba(9,25,31,.83);box-shadow:0 2px 9px #0006;
 touch-action:manipulation;
}
body.mobile-focus .pause-menu button::after{
 display:block;font:900 16px/1 system-ui,sans-serif;color:#e2f9ea;
}
body.mobile-focus #focusToggle::after{content:'↙'}
body.mobile-focus #deckButton::after{content:'⚒'}
body.mobile-focus #pauseButton::after{content:'Ⅱ'}
body.mobile-focus #audioToggle::after{content:'♫'}
body.mobile-focus #quickWaveButton::after{content:'▶'}
body.mobile-focus #focusInfoToggle::after{content:'◉'}
body.mobile-focus .pause-menu #quickWaveButton,body.mobile-focus .pause-menu #focusInfoToggle{display:grid}
body.mobile-focus #quickWaveButton{border-color:#e0a5798c;background:rgba(78,46,32,.87)}
body.mobile-focus #focusInfoToggle[aria-expanded='true']{background:#225e58;border-color:#91eac4}
body.mobile-focus .pause-menu button:disabled{opacity:.45}
body.mobile-focus:not(.focus-info-open) .field-guide,
body.mobile-focus:not(.focus-info-open) .field-radar{display:none!important}
body.mobile-focus.focus-info-open .field-guide,
body.mobile-focus.focus-info-open .field-radar{
 top:calc(70px + env(safe-area-inset-top));
}
body.mobile-focus .toast{bottom:calc(125px + env(safe-area-inset-bottom));max-width:min(56%,340px);font-size:10px}
@media(max-height:540px) and (orientation:landscape){
 body.mobile-focus.focus-info-open .field-guide,
 body.mobile-focus.focus-info-open .field-radar{top:calc(70px + env(safe-area-inset-top))}
 body.mobile-focus .toast{bottom:calc(95px + env(safe-area-inset-bottom));max-width:44%}
}
@media(max-width:359px){
 body.mobile-focus .compact-hud{font-size:9px;gap:3px}
 body.mobile-focus .pause-menu{gap:3px}
 body.mobile-focus .pause-menu button{width:42px;height:42px}
}

