@charset "UTF-8";
:root{color-scheme:dark;--ink:#f4f3e9;--muted:#b8cdd0;--night:#071e25;--plate:#152a2d;--line:#467477;--cyan:#77ddeb;--orange:#ffaf36;--green:#baff6e;--danger:#ff7d6d;--audio-height:54px;font-family:"Trebuchet MS",Arial,sans-serif;font-synthesis:none;background:var(--night);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;background:#071e25}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #fff5af;outline-offset:4px}button{touch-action:manipulation}a{color:#b8edf0}button img{pointer-events:none}input,select,textarea{color:var(--ink);background:#102a31;border:1px solid #70999a;border-radius:4px;min-height:44px;padding:10px 12px;max-width:100%}input::placeholder,textarea::placeholder{color:#b8cdd0}label{font-size:.88rem}h1,h2,h3,p{margin-top:0}h2{font-size:clamp(1.35rem,3vw,2rem);line-height:1.15}h3{font-size:1.1rem}p{line-height:1.45}img{max-width:100%}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.scene-backdrop{position:fixed;inset:0;z-index:-2;background:linear-gradient(#061b23dd,#061b23f0),url('/assets/textures/word_ui/splash_background.png') center/cover}.boot-screen{min-height:calc(100dvh - var(--audio-height));display:grid;place-content:center;justify-items:center;padding:30px;gap:22px}.boot-screen img{width:min(80vw,680px);height:auto}.boot-screen p{font-size:1rem;color:#c4e2e4}.boot-screen p:after{content:"";display:block;width:70px;height:2px;background:var(--orange);margin:20px auto;animation:loading 1.3s ease-in-out infinite alternate}@keyframes loading{to{width:150px;opacity:.35}}
.button{min-height:46px;border:1px solid #77949a;border-radius:3px;padding:11px 20px;background:#19353d;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700;line-height:1.15;transition:background .15s,transform .15s}.button:hover{background:#254953}.button:active:not(:disabled){transform:translateY(2px)}.button.primary{background:#ffad35;border-color:#ffce70;color:#231b13;box-shadow:0 3px 0 #8e4d16}.button.primary:hover{background:#ffbd50}.button.quiet{background:transparent;border-color:transparent;color:#c3dadd}.button.quiet:hover{background:#19343d}.button.danger{color:#ffd9d1;border-color:#ca6f62;background:#492824}.button.compact{min-height:44px;padding:8px 12px}.button img{width:21px;height:21px;object-fit:contain}.icon-button{width:44px;height:44px;flex:0 0 44px;border:0;background:transparent;border-radius:4px;display:grid;place-items:center}.icon-button:hover{background:#315057}.icon-button img{width:26px;height:26px;object-fit:contain}.text-link{background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:8px;color:#c5e8ed}
.title-screen{height:calc(100dvh - var(--audio-height));min-height:620px;position:relative;display:flex;flex-direction:column;align-items:center;isolation:isolate;overflow:hidden}.title-art{position:absolute;inset:0;z-index:-2;background:url('/assets/textures/word_ui/splash_background.png') 50% 45%/auto 100% no-repeat}.title-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071e25 0%,#071e2500 25%,#071e2500 75%,#071e25 100%),linear-gradient(0deg,#071e25 0%,#071e2500 45%)}.title-logo{width:min(83vw,680px);height:auto;margin:clamp(25px,5vh,60px) 0 0;filter:drop-shadow(0 7px 4px #0009);animation:title-enter .6s ease-out both}.title-controls{position:absolute;top:15px;right:22px;display:flex;align-items:center;gap:8px}.languages{display:flex;gap:4px;align-items:center}.language-button{display:flex;align-items:center;justify-content:center;gap:6px;background:#102a31cc;border:1px solid transparent;border-radius:3px;min-width:54px;min-height:44px;padding:5px 8px;font-size:.8rem}.language-button[aria-pressed="true"]{border-color:#a4e0e6;background:#2b535d}.language-button svg{width:24px;height:16px;border-radius:2px;box-shadow:0 0 0 1px #fff5}.language-button:hover{background:#315765}.title-menu{position:relative;margin-top:auto;margin-bottom:25px;width:min(390px,calc(100vw - 38px));padding:24px 24px 16px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(180deg,#09212be8,#09212bf7);border-top:2px solid #80b9bd;box-shadow:0 15px 45px #0007}.title-menu:before,.title-menu:after{content:"";position:absolute;width:11px;height:11px;top:-6px;transform:rotate(45deg);background:#9fbbba;box-shadow:inset 0 0 0 3px #344d51}.title-menu:before{left:16px}.title-menu:after{right:16px}.title-menu .primary{font-size:1.15rem;min-height:54px}.title-menu .title-caption{text-align:center;color:#d6e6e5;font-size:.88rem;margin:0 0 5px}.title-menu .menu-rule{height:1px;background:#38626b;margin:1px 0}.title-menu .menu-row{display:flex;justify-content:center;gap:4px}.title-menu .save-line{font-size:.77rem;text-align:center;color:#b4d2d7;margin:0;min-height:1.1em}.title-credits{position:absolute;bottom:10px;left:20px;font-size:.72rem;color:#a9c7ca;margin:0;max-width:200px;line-height:1.5}.title-start{display:grid;gap:12px}.field{display:grid;gap:6px}.field-row{display:flex;gap:10px}.field-row>*{flex:1;min-width:0}.field-help{font-size:.8rem;color:#b9d2d6;margin:0}.inline-error{color:#ffc7bd;background:#3b2326;padding:11px;border:1px solid #c77b6f;line-height:1.4;font-size:.9rem}.title-status{max-width:100%;font-size:.85rem;color:#d3e5e8;text-align:center;margin:0;line-height:1.45}@keyframes title-enter{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}
.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 24px;background:#0b232bee;border-bottom:1px solid #467078}.brand-button{padding:0;border:0;background:transparent;max-width:270px;display:flex;align-items:center;min-height:44px}.brand-button img{width:100%;height:auto}.topbar-right{display:flex;gap:10px;align-items:center;min-width:0}.save-status{font-size:.78rem;color:#b8d4d7;display:flex;gap:6px;align-items:center;white-space:nowrap}.save-status img{width:19px;height:19px;opacity:.8}.save-status[data-state="error"]{color:#ffc4b6}.topbar .languages{margin-left:7px}.game-screen{min-height:calc(100dvh - var(--audio-height));padding-bottom:14px}.game-main{display:grid;grid-template-columns:minmax(170px,220px) minmax(320px,600px) minmax(140px,210px);gap:clamp(18px,3.5vw,56px);align-items:start;justify-content:center;padding:25px 22px 0}.mission-panel{padding-top:45px}.floor-label{font-size:.85rem;color:#bdd7db;margin-bottom:7px}.floor-number{font-size:clamp(3rem,5vw,5rem);font-weight:700;line-height:.95;color:#e2caa0;margin:0 0 15px;font-variant-numeric:tabular-nums}.mission-panel h1{font-size:1.4rem;font-weight:400;line-height:1.2;margin:0 0 18px;color:#f4efde}.mission-panel .mission-copy{font-size:.95rem;color:#c8dce0;line-height:1.5}.mission-line{width:55px;height:2px;background:#ffac35;margin:22px 0}.mission-toolbar{display:flex;flex-wrap:wrap;gap:4px;margin-left:-10px}.mission-toolbar .button{font-size:.84rem}.mission-progress{margin-top:26px;color:#c3d2d1;font-size:.8rem}.board-column{min-width:0;position:relative}.board-header{display:flex;align-items:center;gap:13px;margin:0 5px 11px}.move-diamond{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;position:relative}.move-diamond:before{content:"";position:absolute;inset:7px;transform:rotate(45deg);background:#fc8e1e;border:1px solid #ffb848;box-shadow:2px 2px 0 #8b5019}.move-diamond strong{position:relative;color:#191512;font-size:1.4rem;font-variant-numeric:tabular-nums}.score-block{flex:1;min-width:0}.score-values{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:5px}.score-values strong{font-size:1.4rem;font-variant-numeric:tabular-nums}.score-values span{font-size:.75rem;color:#c9dfe1}.score-track{height:11px;position:relative;background:#62462c;border:1px solid #a67f4e;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%)}.score-track i{display:block;height:100%;background:#eaa33b;transition:width .5s ease}.score-stars{display:flex;justify-content:space-between;margin-top:2px;color:#f9b744;font-size:14px;line-height:1}.score-stars span{display:flex;align-items:center;gap:3px}.score-stars img{width:15px;height:15px;object-fit:contain}.score-stars span:not(.earned){opacity:.45}.word-bar{display:flex;min-height:54px;border:1px solid #5b9aa0;background:#091c22;margin:0 2px 4px;position:relative;align-items:center}.word-content{display:flex;flex:1;min-width:0;gap:10px;align-items:center;padding:7px 9px 7px 14px}.word-content strong{font-size:clamp(1.15rem,2.5vw,1.8rem);font-weight:400;overflow-wrap:anywhere;line-height:1.15;color:#f9f5dd;letter-spacing:.02em}.word-content .word-empty{font-size:.82rem;letter-spacing:0;color:#b4ced0}.word-bar.has-word{border-color:#b7ff7e}.word-bar .submit-word{background:#a5e765;border:0;border-left:1px solid #59764d;align-self:stretch;padding:7px 13px;color:#132514;font-weight:700;min-width:86px}.word-bar .submit-word:disabled{background:#233c3c;color:#c4d4cc;opacity:1;cursor:not-allowed}.word-bar .clear-word{width:44px;flex:0 0 44px;align-self:stretch;border:0;border-left:1px solid #426970;background:#182c31;font-size:1.8rem;line-height:1}.word-bar .clear-word:disabled{opacity:.45}.word-bar .clear-word:hover:not(:disabled){background:#2f4b51}.board-wrap{position:relative;border:5px solid #10252b;background:#162727 url('/assets/textures/word_ui/background_2.png') center/cover;box-shadow:0 16px 30px #0006,inset 0 0 14px #000c;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate}.board{position:relative;width:100%;aspect-ratio:var(--cols)/var(--rows);outline-offset:6px}.tile{position:absolute;padding:0;border:0;background:transparent;display:grid;place-items:center;min-width:0;min-height:0;width:calc(100% / var(--cols));height:calc(100% / var(--rows));transition:top .3s cubic-bezier(.3,.1,.6,1.2),left .3s cubic-bezier(.3,.1,.6,1.2);color:#102124;isolation:isolate;touch-action:none}.tile .tile-face{position:absolute;inset:0;background:var(--tile-image) center/100% 100% no-repeat;z-index:-1;filter:drop-shadow(0 3px 1px #0008)}.tile .tile-letter{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.5rem,3.4vw,2.9rem);line-height:1;font-weight:400;text-shadow:0 1px 0 #fff9;position:relative;padding-bottom:3%;pointer-events:none}.tile .tile-portrait{width:104%;height:104%;object-fit:contain;max-width:none;position:absolute;bottom:0;left:-2%;pointer-events:none;filter:drop-shadow(0 2px 2px #000a)}.tile .tile-hp{position:absolute;display:flex;gap:3px;bottom:24%;left:50%;transform:translateX(-50%);pointer-events:none}.tile .tile-hp i{display:block;width:7px;height:7px;transform:rotate(45deg);background:#ffbb75;border:1px solid #6e371d;box-shadow:1px 1px 0 #fff6}.tile .tile-bonus{position:absolute;bottom:10%;right:12%;font-size:.7rem;color:#102124;font-weight:700;pointer-events:none}.tile .tile-selection-number{position:absolute;left:8%;top:8%;border-radius:50%;min-width:19px;min-height:19px;display:grid;place-items:center;background:#baff6e;color:#13270c;font:700 11px Arial;z-index:5;box-shadow:0 0 0 1px #143d12;pointer-events:none}.tile.selected{z-index:3}.tile.selected .tile-face{filter:brightness(1.25) drop-shadow(0 0 3px #baff6e)}.tile.selected:after{content:"";position:absolute;inset:6%;border:2px solid #baff6e;pointer-events:none;z-index:4}.tile:focus-visible{z-index:6;outline:3px solid #fff3aa;outline-offset:-5px}.tile.targeted:after{content:"";position:absolute;inset:5%;border:3px solid #ffbf45;z-index:4}.tile.character .tile-face{background:none}.tile.character .tile-letter{display:none}.tile.noninteractive{cursor:default}.tile.noninteractive:disabled{opacity:1}.tile.removing{pointer-events:none;animation:tile-break .24s ease-in forwards;z-index:4}.tile.entering .tile-face,.tile.entering .tile-letter,.tile.entering .tile-portrait{animation:tile-enter .3s cubic-bezier(.16,.7,.35,1.1) both}.tile.damaged{animation:tile-damage .24s ease}.path-layer{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:4;pointer-events:none}.path-layer polyline{fill:none;stroke:#91ed40;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 1px 1px #052400)}.path-layer circle{fill:#e0ffb4;stroke:#165715;stroke-width:1.5}.rescue-zone{height:37px;background:repeating-linear-gradient(135deg,#a59d85 0,#a59d85 9px,#8f8977 9px,#8f8977 18px);color:#172728;text-align:center;display:grid;place-items:center;font-size:.92rem;font-weight:700;letter-spacing:.2em;border-top:2px solid #c7bc9d;text-shadow:0 1px #dfd5b1}.board-caption{min-height:26px;text-align:center;font-size:.76rem;color:#bdcfd1;padding:7px 5px 0;line-height:1.4}.board-caption strong{color:#f4d28b}.survivor-panel{padding-top:45px}.survivor-heading{font-size:.8rem;color:#c5dadd;font-weight:400;margin:0 0 14px}.survivors{display:grid;gap:12px}.survivor{border:0;background:transparent;display:grid;grid-template-columns:60px 1fr;align-items:center;gap:10px;text-align:left;padding:0;min-height:70px;position:relative}.survivor:hover .survivor-name{color:#fff}.survivor img{width:68px;height:72px;object-fit:contain;align-self:end;filter:drop-shadow(0 3px 3px #0007)}.survivor-info{min-width:0}.survivor-name{font-size:.9rem;display:block;color:#cfe6e9;margin-bottom:5px}.survivor-air{height:6px;background:#304849;border:1px solid #799797;display:block;margin-bottom:5px}.survivor-air i{display:block;height:100%;background:#76d8e9;transition:width .35s}.survivor.low-air .survivor-air i{background:#ff9a67}.survivor small{font-size:.68rem;color:#bfd3d5}.survivor.rescued img{opacity:.65}.survivor.rescued small{color:#baff8c}.survivor.rescued .survivor-air i{background:#baff8c}.character-note{font-size:.77rem;line-height:1.45;color:#b3cbcf;margin-top:20px}.board-fx{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:visible}.score-popup{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font-size:clamp(2rem,4vw,3.6rem);font-weight:700;color:#baff6e;text-shadow:0 3px #1e381e,0 0 14px #000;white-space:nowrap;animation:score-rise .9s ease-out both}.spark{position:absolute;width:7px;height:7px;background:#ebce84;animation:spark .5s ease-out both}.result-panel{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;background:#03151bc7;padding:20px}.result-card{width:min(100%,380px);padding:24px;text-align:center;background:#142b30;border:2px solid #a98e57;box-shadow:0 12px 50px #000b}.result-card h2{color:#ffd58b}.result-card .result-stars{display:flex;justify-content:center;gap:10px;margin:18px 0}.result-card .result-stars img{width:44px;height:44px;object-fit:contain}.result-card .result-stars img.off{opacity:.2;filter:grayscale(1)}.result-card p{color:#c8dde0}.result-actions{display:grid;gap:10px}.ability-targeting{padding:9px 12px;border:1px solid #ffbb49;background:#3c311d;color:#ffe3a4;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 6px;font-size:.83rem}.ability-targeting button{font-size:.8rem}.mobile-mission{display:none}.save-retry{border:0;background:transparent;text-decoration:underline;color:inherit;font-size:inherit;padding:0 4px;min-height:32px}
.campaign-screen{min-height:calc(100dvh - var(--audio-height));padding-bottom:28px;background:linear-gradient(90deg,#0c2327e8,#0c232798),url('/assets/textures/word_ui/frontend_background1_HD.png') center/cover}.campaign-content{max-width:1000px;margin:0 auto;padding:35px 28px}.campaign-heading{display:flex;gap:30px;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.campaign-heading h1{font-size:2rem;margin:0 0 6px;color:#ffdb9c}.campaign-heading p{color:#c5dfe1;margin:0}.level-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}.level-card{min-height:125px;background:#173038;border:1px solid #587b7c;border-radius:3px;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:15px 17px;gap:6px;transition:background .15s,transform .15s}.level-card:hover:not(:disabled){background:#234650;transform:translateY(-2px)}.level-card.current{border-color:#ffb948;box-shadow:inset 0 0 0 1px #ffb948}.level-card:disabled{opacity:.6}.level-card .level-number{font-size:1.5rem;color:#f0d198}.level-card .level-name{font-size:.82rem;line-height:1.3}.level-card .level-stars{color:#ffbc4b;letter-spacing:3px;font-size:15px;margin-top:auto}.level-card .locked-icon{width:20px;height:20px;position:absolute;right:12px;top:12px}.story-layer{position:fixed;inset:0 0 var(--audio-height);z-index:20;display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(#061b2200 30%,#061b22ce 65%);padding:0 30px 38px}.story-stage{max-width:900px;width:100%;position:relative;min-height:230px;display:flex;align-items:flex-end;justify-content:flex-end}.story-portrait{position:absolute;left:-20px;bottom:0;width:min(42vw,350px);height:min(42vw,350px);object-fit:contain;filter:drop-shadow(0 7px 9px #000b);pointer-events:none}.story-box{width:72%;position:relative;padding:22px 25px 18px;background:#243133;border:2px solid #9c814f;box-shadow:0 14px 30px #0009}.story-speaker{font-size:.88rem;font-weight:700;color:#ffca73;display:block;margin-bottom:10px}.story-text{font-size:clamp(1rem,2vw,1.25rem);line-height:1.5;margin:0 0 17px;white-space:pre-line}.story-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.story-actions .button{min-height:44px}.story-count{font-size:.75rem;color:#c4d1cf}.modal{color:var(--ink);border:1px solid #a48d61;background:#142c33;padding:25px;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:auto;border-radius:4px;box-shadow:0 24px 90px #000b}.modal::backdrop{background:#021116c9}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin:0 0 15px}.modal-header h2{margin:5px 0 0}.modal p{color:#d0dfe0;font-size:.93rem}.modal .modal-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:20px}.modal .field{margin:12px 0}.modal .field input{width:100%}.modal .recovery-code{font:1rem/1.45 monospace;display:block;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap;background:#081c23;border:1px solid #57838a;padding:14px;user-select:all;color:#ffdda4;margin:16px 0}.modal .help-list{padding-left:20px;color:#d1e0e1;line-height:1.6}.modal .help-list li{margin-bottom:9px}.modal .ability-portrait{width:125px;height:125px;object-fit:contain;float:left;margin:0 16px 8px 0}.modal .credits-list{font-size:.88rem;line-height:1.6}.modal .credits-list b{color:#f3d59e}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;border-bottom:1px solid #41636a;padding:9px 0}.toggle-row input{min-height:24px;width:24px;height:24px;accent-color:#ffb53c}.modal .about-source{font-size:.8rem;color:#b9d0d4}.toast{position:fixed;bottom:calc(var(--audio-height) + 14px);left:50%;transform:translate(-50%,10px);z-index:60;max-width:min(92vw,540px);width:max-content;pointer-events:none;padding:12px 18px;border:1px solid #bb9c68;background:#152e35;color:#fff4dc;text-align:center;box-shadow:0 6px 18px #0008;opacity:0;transition:opacity .16s,transform .16s;line-height:1.4;font-size:.9rem}.toast.visible{opacity:1;transform:translate(-50%,0)}.level-transition{position:fixed;inset:0 0 var(--audio-height);pointer-events:none;z-index:30;display:flex;flex-direction:column;justify-content:center;align-items:center;opacity:0;background:#00151a55;text-shadow:0 5px 18px #000;font-size:clamp(2.5rem,7vw,6rem);font-weight:700;color:#ffe0a2}.level-transition small{font-size:.33em;color:#fff;line-height:2}.level-transition.show{animation:level-transition 1.15s ease both}.audio-strip{position:fixed;bottom:0;left:0;right:0;z-index:50;min-height:var(--audio-height);display:flex;align-items:center;justify-content:center;gap:22px;padding:5px max(10px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom));background:#071c22f5;border-top:1px solid #365b65;font-size:.73rem}.audio-source{display:flex;align-items:center;gap:9px}.audio-source select{min-height:38px;padding:6px 25px 6px 9px;font-size:.77rem;background:#132e36;border-color:#4a727b}.audio-source a{font-size:.65rem;max-width:90px;color:#aecbd0}.audio-channel{display:flex;align-items:center;gap:8px}.audio-channel input[type="range"]{width:95px;min-height:38px;height:38px;padding:0;border:0;background:transparent;accent-color:#a6d5db}.audio-mute{display:flex;align-items:center;gap:5px;background:transparent;border:0;padding:0;min-height:38px;color:#cbe1e3}.audio-mute img{width:19px;height:19px;object-fit:contain}.audio-mute.muted{color:#8aa6ad}.audio-feedback{display:flex;gap:7px;align-items:center;color:#ffcf91}.audio-feedback:empty{display:none}.audio-feedback button{background:transparent;border:1px solid #6d8d8d;font-size:.7rem;min-height:30px;color:#f5ddbd;border-radius:3px;padding:4px 7px}.audio-feedback span{max-width:120px;line-height:1.2;font-size:.7rem}#app{padding-bottom:var(--audio-height)}
@keyframes tile-break{to{opacity:0;transform:scale(.55) rotate(7deg)}}@keyframes tile-enter{from{opacity:0;transform:translateY(-55%)}to{opacity:1;transform:none}}@keyframes tile-damage{20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}@keyframes score-rise{0%{opacity:0;translate:0 15px;scale:.85}20%{opacity:1;scale:1.05}65%{opacity:1}100%{opacity:0;translate:0 -45px;scale:1}}@keyframes spark{from{opacity:1;transform:translate(0,0) rotate(0)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(160deg)}}@keyframes level-transition{0%{opacity:0;transform:scale(1.12)}20%,65%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.98)}}
@media(min-width:1450px){.game-main{grid-template-columns:220px minmax(430px,min(66vh,650px)) 220px}.tile .tile-letter{font-size:clamp(2rem,4vh,3.2rem)}}
@media(max-width:1100px){.topbar{padding:7px 18px;height:60px}.brand-button{max-width:220px}.game-main{grid-template-columns:minmax(330px,560px) 170px;gap:26px;max-width:820px;margin:0 auto;padding-top:18px}.mission-panel{display:none}.mobile-mission{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;gap:10px;color:#d0e2e4;margin:0 6px 10px}.mobile-mission strong{color:#eac98b}.mobile-mission button{min-height:32px;font-size:.77rem;padding:5px}.survivor-panel{padding-top:87px}.survivor{grid-template-columns:52px 1fr;gap:7px}.survivor img{width:55px;height:65px}.survivor-name{font-size:.82rem}.audio-strip{gap:14px}.audio-source a{max-width:80px}.audio-channel input[type="range"]{width:78px}.title-controls{top:8px;right:12px}.title-logo{margin-top:66px}}
@media(max-width:760px){:root{--audio-height:92px}.title-screen{min-height:650px}.title-art{background-size:auto 100%;background-position:50% 40%}.title-logo{width:min(88vw,560px);margin-top:72px}.title-menu{margin-bottom:20px;padding:20px 20px 13px}.title-credits{display:none}.topbar{height:56px;padding:6px 12px;gap:8px}.brand-button{max-width:200px}.topbar .languages{display:none}.topbar-right{gap:1px}.topbar .save-status span{max-width:90px;overflow:hidden;text-overflow:ellipsis}.topbar .save-status{font-size:.65rem;gap:3px}.game-main{display:flex;flex-direction:column;align-items:stretch;gap:0;max-width:570px;padding:10px 12px 0}.board-column{order:2}.survivor-panel{order:1;padding:0;margin:0 2px 7px}.survivor-heading,.character-note{display:none}.survivors{display:flex;align-items:flex-end;justify-content:center;gap:8px;min-height:56px}.survivor{display:flex;flex-direction:column;justify-content:flex-end;gap:0;min-height:56px;max-width:66px;flex:1}.survivor img{width:52px;height:53px;max-width:100%}.survivor-info{width:100%;max-width:58px}.survivor-name{display:none}.survivor-air{height:5px;margin:0}.survivor small{display:none}.survivor.rescued:after{content:'✓';position:absolute;right:0;bottom:5px;color:#c1ff8b;font-weight:700;text-shadow:0 1px 2px #000}.mobile-mission{margin-bottom:5px}.board-header{margin-bottom:6px;gap:9px}.move-diamond{height:45px;width:45px;flex-basis:45px}.move-diamond strong{font-size:1.2rem}.score-values{margin-bottom:3px}.score-values strong{font-size:1.2rem}.word-bar{min-height:49px}.word-content{padding:6px 7px 6px 11px}.word-content strong{font-size:1.35rem}.word-content .word-empty{font-size:.78rem}.word-bar .submit-word{min-width:72px;padding:6px 9px;font-size:.82rem}.board-wrap{border-width:3px}.tile .tile-letter{font-size:clamp(1.7rem,6.5vw,2.65rem)}.tile .tile-hp{gap:2px}.tile .tile-hp i{width:5px;height:5px}.rescue-zone{height:30px;font-size:.8rem;letter-spacing:.16em}.board-caption{font-size:.7rem;padding-top:6px}.campaign-content{padding:24px 16px}.campaign-heading{align-items:flex-start;gap:12px}.campaign-heading h1{font-size:1.55rem}.campaign-heading p{font-size:.84rem}.campaign-heading .button{padding:8px 10px;font-size:.8rem}.level-list{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:9px}.level-card{min-height:115px;padding:13px}.story-layer{padding:0 12px 16px;background:linear-gradient(#061b2200 20%,#061b22d9 70%)}.story-stage{min-height:300px}.story-portrait{left:-5px;bottom:calc(100% - 90px);width:190px;height:190px}.story-box{width:100%;padding:20px 18px 15px}.story-speaker{font-size:.85rem}.story-text{font-size:1rem}.story-actions .button{font-size:.85rem}.modal{padding:20px}.audio-strip{display:grid;grid-template-columns:auto 1fr 1fr;gap:0 11px;min-height:92px;align-content:center;padding:4px 10px}.audio-source{grid-column:1/-1;justify-content:center;min-height:38px;gap:9px}.audio-source select{min-height:34px}.audio-source a{max-width:none}.audio-channel{justify-content:center;gap:5px}.audio-channel:nth-child(2){grid-column:1/3}.audio-channel input[type="range"]{width:min(20vw,100px);min-height:44px;height:44px}.audio-mute{min-height:44px}.audio-mute span{font-size:.68rem}.audio-feedback{position:absolute;left:50%;bottom:100%;transform:translateX(-50%);background:#152e35;max-width:94vw;width:max-content;padding:6px 9px;border:1px solid #567d82;border-bottom:0}.audio-feedback:has([data-audio-status][hidden]):has([data-audio-retry][hidden]){display:none}.audio-feedback span{max-width:none}}
@media(max-width:390px){.title-logo{margin-top:74px}.title-controls{left:12px;right:12px;justify-content:space-between}.title-menu{padding:17px;gap:9px}.game-main{padding-inline:6px}.topbar{padding-inline:8px}.brand-button{max-width:165px}.save-status img{display:none}.survivors{gap:4px}.survivor img{height:47px;width:47px}.survivor{min-height:50px}.word-content .word-empty{font-size:.7rem}.tile .tile-letter{font-size:6.8vw}.tile .tile-selection-number{min-width:16px;min-height:16px;font-size:9px}.board-caption{font-size:.65rem}.audio-strip{gap:0 6px}.audio-source{gap:7px}.audio-mute span{font-size:.63rem}}
@media(max-height:800px) and (min-width:761px){.game-main{grid-template-columns:180px minmax(310px,min(62vh,520px)) 170px;padding-top:10px;gap:25px}.board-header{margin-bottom:4px}.word-bar{min-height:45px}.tile .tile-letter{font-size:clamp(1.5rem,3.7vh,2.5rem)}.mission-panel,.survivor-panel{padding-top:35px}.survivor{min-height:55px}.survivor img{height:56px;width:56px}.survivors{gap:6px}.title-screen{min-height:540px}.title-menu{margin-bottom:15px;padding:18px}.title-logo{margin-top:25px;width:min(58vw,550px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}.level-transition.show{animation:none;opacity:0}.score-popup{animation:none;opacity:0}}
html.calm *,html.calm *:before,html.calm *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}html.calm .level-transition.show{animation:none;opacity:0}html.calm .score-popup,html.calm .spark{display:none}
.tutorial-tip{display:flex;align-items:center;gap:10px;margin:4px 3px 9px;padding:9px 12px 9px 5px;border:1px solid #8b9177;background:#223631;color:#edf3e0}
.tutorial-tip img{width:58px;height:58px;object-fit:contain;flex:none;align-self:flex-end}
.tutorial-tip small{display:block;font-size:.65rem;color:#c4d6bd;margin-bottom:3px}
.tutorial-tip p{font-size:.83rem;line-height:1.35;margin:0}
.tutorial-tip strong{display:inline-block;color:#d8ff9d;font-size:1rem;margin-top:4px;letter-spacing:.04em}
.tutorial-tip .button{margin-top:6px}
.tile-glass{position:absolute;inset:0;background:center/100% 100% no-repeat;pointer-events:none;z-index:5}
.tile-water{position:absolute;inset:auto 8% 7%;height:var(--water-depth);pointer-events:none;z-index:4;background:linear-gradient(#a8eaf433,#248da9a8);border-top:2px solid #c2f4f7ab;border-radius:35% 35% 5% 5% / 7% 7% 5% 5%}
.tile-water:after{content:'';position:absolute;bottom:5%;right:5%;width:24%;aspect-ratio:1;background:url('/assets/textures/word_ui/fx_water_droplet.png') center/contain no-repeat}
.wildcard-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}
.wildcard-picker .button{min-width:0;padding:8px;font-family:Georgia,serif;font-size:1.3rem}
.ability-unavailable{color:#ffcf91!important}
.board-column{justify-self:center;max-width:100%;min-width:0}
.board-column:has(.tutorial-tip:not([hidden])) .board-caption{display:none}
@media(max-width:760px){.board-column{align-self:center}.mobile-mission{font-size:.7rem}.tutorial-tip p{font-size:.72rem;line-height:1.25}.tutorial-tip img{width:36px;height:36px}.tutorial-tip small{font-size:.6rem}.tutorial-tip strong{margin-top:2px}}
.tile.tutorial-target:not(.selected):after{content:"";position:absolute;inset:6%;border:2px dashed #fff1aa;pointer-events:none}
.score-values .timer-low{color:#ffd281;font-weight:700}
.audio-source select,.audio-channel input[type="range"],.audio-mute{min-height:44px}
.audio-source a{min-height:44px;display:flex;align-items:center}
@media(max-width:760px){:root{--audio-height:96px}.audio-strip{min-height:96px}.tutorial-tip{gap:6px;padding:6px 9px 6px 2px;margin-bottom:6px}.tutorial-tip img{width:42px;height:42px}.tutorial-tip p{font-size:.77rem}.tutorial-tip strong{font-size:.9rem}}
@media (max-width:760px) {
  .survivor-panel:has(.survivors:empty) { display:none; }
  .score-stars { gap:4px; font-size:clamp(9px,2.7vw,12px); }
  .score-stars span { gap:2px; }
  .score-stars img { width:11px; height:11px; }
}
