*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#081e28;touch-action:none}body{font-family:var(--font,'Trebuchet MS',sans-serif);color:#fff2cf;font-weight:700;text-shadow:0 2px 1px #04151e,-1px 0 #04151e,1px 0 #04151e}button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent;cursor:pointer}#world,#world canvas,#vignette,#flash{position:absolute;inset:0;width:100%;height:100%;display:block}#vignette{pointer-events:none;background:radial-gradient(ellipse at 57% 47%,transparent 35%,#04151e80 100%)}#flash{pointer-events:none;z-index:15;opacity:0;background:#51f6d4} .hidden{display:none!important}.screen{position:absolute;inset:0;z-index:20}#title{background:url('assets/title-bg.webp') center/cover;display:flex;align-items:center;flex-direction:column}#title:before{content:'';position:absolute;inset:0;background:linear-gradient(#04151e30,transparent 45%,#03131ca0)}#logo{position:relative;width:78%;height:33%;object-fit:contain;margin-top:3vh;filter:drop-shadow(0 5px 9px #04151e);animation:logoEnter .65s cubic-bezier(.2,1.5,.4,1),float 5s .65s ease-in-out infinite} .title-bottom{position:absolute;bottom:7%;display:flex;justify-content:center} .game-button{border:2px solid transparent;border-image:url('assets/ui-button.webp') 64 fill / 20px stretch;background:transparent;min-height:48px;padding:12px 28px;font-weight:900;font-size:17px;letter-spacing:.025em;text-shadow:0 2px 2px #03171e,-1px 0 #03171e,1px 0 #03171e;transition:transform .12s,filter .12s;outline:none;display:flex;align-items:center;justify-content:center;gap:8px;position:relative}.game-button:hover,.game-button:focus-visible,.game-button.focused{filter:brightness(1.3);transform:translateY(-2px)}.game-button:active{transform:translateY(2px) scale(.97)}#start{min-width:300px;animation:pulse 2.7s ease-in-out infinite}.panel{border:3px solid transparent;border-image:url('assets/ui-panel.webp') 74 fill / 20px stretch;background:transparent;filter:drop-shadow(0 6px 8px #00151b55)}#cinema{background:url('assets/title-bg.webp') center/cover}#intro{width:100%;height:100%;object-fit:cover}#skip{position:absolute;right:max(18px,env(safe-area-inset-right));top:16px;min-width:100px}.subtitle{position:absolute;bottom:24px;left:20%;width:60%;text-align:center;padding:10px;background:#042330d9;font-size:19px;border-bottom:2px solid #e8c882}#hud{position:absolute;inset:0;pointer-events:none}header{position:absolute;left:max(16px,env(safe-area-inset-left));top:14px;right:76px;display:flex;gap:12px;align-items:stretch}header .panel{padding:10px 19px}#stageInfo{width:235px;display:flex;flex-direction:column;gap:4px}#stageName{font-size:21px;letter-spacing:.03em}.eyebrow{font-size:12px;color:#dfbe7b;letter-spacing:.12em;font-weight:900}#resources{display:flex;gap:24px;align-items:center}#resources div{display:flex;gap:8px;align-items:center}small{font-size:12px;color:#bcd3cd}b{font-size:24px;color:#fff4d9;white-space:nowrap}#hp{color:#a0efdf}#ap{color:#e8cd8e}#sand{color:#92dff8}#turnInfo{margin-left:auto;display:flex;gap:10px;align-items:center}#intel{position:absolute;left:max(16px,env(safe-area-inset-left));top:104px;width:222px;padding:20px 17px;pointer-events:auto;animation:panelIn .25s ease-out}#observed{margin-top:8px;font-size:14px;color:#bcddd9}#beats{display:flex;gap:8px;margin-top:14px}#beats button{flex:1;min-width:44px;height:48px;border:2px solid transparent;border-image:url('assets/ui-button.webp') 64 fill / 12px stretch;background:transparent;color:#819a9e;font-size:20px;transition:filter .15s,transform .15s}#beats button.known{color:#ffe09e}#beats button.current{filter:brightness(1.8);transform:translateY(-2px)}#beats button.preview{outline:2px solid #71dbd1;outline-offset:1px}#inspectHint{font-size:12px;line-height:1.5;margin-top:10px;color:#aac5c8}.divider{height:1px;background:#66878870;margin:15px 0}#objective{font-size:16px;line-height:1.6}#seal{margin-top:7px;color:#e5c78c;font-size:14px}.legend{display:flex;gap:8px;align-items:center;font-size:13px;color:#cbdbd6;margin-top:12px}.legend i{width:11px;height:11px;transform:rotate(45deg);display:inline-block;border:1px solid #ffffff80}.teal{background:#31c3b4}.gold{background:#e9a93c}#actionTip{font-size:13px;line-height:1.65;color:#a5c1c3;margin-top:15px}#message{position:absolute;left:50%;transform:translateX(-42%);top:92px;max-width:53%;padding:12px 24px;text-align:center;font-size:15px;line-height:1.45;transition:opacity .2s}#desktopActions{position:absolute;bottom:24px;right:30px;display:flex;gap:12px;pointer-events:auto}#desktopActions img{width:33px;height:33px;object-fit:contain}#desktopActions button{min-width:166px}#keyboardTip{position:absolute;bottom:22px;left:28%;font-size:13px;color:#bdcfca}#banner{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);pointer-events:none;z-index:10;display:flex;flex-direction:column;align-items:center;gap:12px;background:linear-gradient(90deg,transparent,#072533ea 25%,#072533ea 75%,transparent);padding:22px 80px;width:max-content;max-width:90%;animation:bannerIn .2s ease-out}#banner strong{font-size:34px;color:#ffe4a2;text-align:center;letter-spacing:.07em}#banner span{font-size:16px;text-align:center}#modal{background:#02121b88;backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:16px}.modal-card{width:min(700px,94vw);max-height:calc(100vh - 32px);padding:26px 34px;animation:panelIn .28s cubic-bezier(.2,1.6,.4,1);text-align:center}#modalIcon{font-size:38px;color:#edc681;height:43px}#modalTitle{margin:8px 0 14px;font-size:30px;color:#ffe6ac;font-weight:900;line-height:1.2}#modalText{font-size:17px;line-height:1.65;color:#d7e5e2;max-width:590px;margin:auto}#guide{display:flex;gap:16px;margin-top:18px}#guide>div{flex:1}#guide img{width:50px;height:50px;object-fit:contain}#guide p{font-size:14px;line-height:1.65;color:#bcd4d5;margin:4px 0 0}#modalButtons{display:flex;gap:12px;justify-content:center;margin-top:22px}#modalButtons button{flex:1;max-width:300px;font-size:16px}.touch #desktopActions,.touch #keyboardTip{display:none}
@keyframes logoEnter{from{transform:translateY(-30%) scale(.85);opacity:0}to{transform:none;opacity:1}}@keyframes float{50%{transform:translateY(-6px)}}@keyframes pulse{50%{filter:brightness(1.3)}}@keyframes panelIn{from{opacity:0;transform:translateY(18px) scale(.95)}to{opacity:1;transform:none}}@keyframes bannerIn{from{opacity:0;margin-top:-18px}to{opacity:1;margin-top:0}}
@media(max-height:520px){header{left:10px;top:8px;right:64px;gap:8px}header .panel{padding:7px 14px}#stageInfo{width:196px;gap:2px}#stageName{font-size:17px}.eyebrow{font-size:12px;letter-spacing:.05em}#resources{gap:17px}#resources div{gap:6px}b{font-size:19px}#turnInfo{gap:7px}#intel{left:10px;top:72px;width:158px;padding:13px 12px}#observed{font-size:12px;line-height:1.4;margin-top:6px}#beats{gap:6px;margin-top:8px}#beats button{min-width:36px;height:44px;font-size:17px}#inspectHint{display:none}.divider{margin:9px 0}#objective{font-size:14px;line-height:1.5}#seal{font-size:12px;margin-top:5px}.legend{font-size:12px;margin-top:8px}#actionTip{display:none}#message{top:66px;left:57%;max-width:51%;padding:8px 16px;font-size:14px}#desktopActions{bottom:12px;right:18px;gap:8px}#desktopActions button{min-width:138px;padding:8px 15px;font-size:14px}#desktopActions img{width:26px;height:26px}#keyboardTip{bottom:12px;font-size:12px}#banner strong{font-size:26px}#banner{padding:16px 42px}#banner span{font-size:14px}.modal-card{width:min(720px,94vw);padding:14px 24px}#modalIcon{display:none}#modalTitle{font-size:24px;margin:6px 0 10px}#modalText{font-size:14px;line-height:1.5}#guide{gap:18px;margin-top:9px}#guide img{width:34px;height:34px}#guide p{font-size:13px;line-height:1.45}#modalButtons{margin-top:13px}#modalButtons button{font-size:15px;padding:9px 18px}#logo{margin-top:3vh;width:78%;height:33%}#start{min-height:46px;font-size:16px}#skip{top:10px;right:12px}.subtitle{bottom:14px;font-size:16px;padding:7px}.title-bottom{bottom:6%}}
@media(max-width:700px){#stageInfo{width:160px}#resources{gap:9px}#resources div{gap:4px}header small{font-size:11px}#intel{width:150px}#turnInfo{padding-left:10px;padding-right:10px}#message{font-size:13px}}
