:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#e9f6f5;background:#06151e;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg:#06151e;--card:#112c36;--card2:#0c242e;--line:#28525c;--green:#65eac9;--cyan:#57cedd;--cream:#f5dd9d;--grey:#abc7cb;--page-width:480px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #ffc966;outline-offset:3px}body{background:radial-gradient(ellipse at 50% 7%,#153745 0%,#081a25 43%,#06131d 100%)}.app-shell{max-width:var(--page-width);min-height:100dvh;margin:auto;background:linear-gradient(180deg,#081d27 0%,#081a23 60%,#07151d 100%);box-shadow:0 0 90px rgba(0,0,0,.22);position:relative;overflow:hidden}header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#0a202a;border-bottom:1px solid #24414b;position:sticky;top:0;z-index:9}header .brand{color:#7bf1d3;font-weight:900;letter-spacing:.16em;font-size:13px;background:none;border:0;padding:6px 0;text-align:left;line-height:1.25}header .brand small{display:block;color:#adcede;letter-spacing:.11em;font-size:12px;margin-top:3px}header .coins{display:flex;align-items:center;gap:7px;background:#132f37;border:1px solid #31515e;padding:9px 13px;border-radius:999px;color:#f5e1a7;font-size:14px;font-weight:800}header .coins span:first-child{font-size:16px;color:#e8c76f}main{padding:0 20px 20px;min-height:calc(100dvh - 64px)}.home-hero{text-align:center;padding:37px 0 10px}.eyebrow,.micro{color:#6fe8cc;letter-spacing:.13em;font-weight:900;font-size:12px}.home-hero h1{font-size:clamp(34px,9vw,45px);letter-spacing:-.05em;line-height:1.04;margin:14px 0 12px}.home-hero h1 em{font-style:normal;color:var(--green)}.home-hero>p:not(.eyebrow){color:#b6d3da;font-size:15px;max-width:370px;margin:0 auto;line-height:1.65}.hero-art{height:114px;display:flex;align-items:center;justify-content:center;position:relative;gap:8px;transform:rotate(-5deg)}.hero-art span{display:grid;place-items:center;width:51px;height:55px;background:linear-gradient(145deg,#205267,#193947);border:1px solid #4d9aab;border-radius:11px;box-shadow:0 8px 0 #08222c,0 9px 20px #00151c;color:white;font-size:28px;font-weight:900;transform:translateY(-5px)}.hero-art span:nth-child(2){background:linear-gradient(145deg,#28776d,#17544f);color:#9dffe4;transform:translateY(8px)}.hero-art span:nth-child(3){background:linear-gradient(145deg,#4a4b74,#293a64);color:#e9d3ff}.hero-art span:nth-child(4){background:linear-gradient(145deg,#866b3a,#4d412c);color:#ffdea6;transform:translateY(6px)}.hero-art i{position:absolute;top:5px;right:14%;font-size:27px;color:#ffd379;font-style:normal}.btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:12px 14px;border-radius:14px;border:1px solid #3a6976;background:#173744;color:#effffb;font-weight:800;font-size:15px;line-height:1.25;letter-spacing:.005em;min-width:0;white-space:normal}.btn:active,.mode-card:active,.stage-card:active{transform:scale(.99)}.btn.primary{background:linear-gradient(100deg,#72edc0,#3ad3d4);border-color:#86f8dc;color:#08272f;box-shadow:0 8px 24px #21c4a31c}.btn.soft{background:#17353f;border-color:#37616b;color:#e7f2f5}.btn.ghost{background:transparent;border-color:#3b6c7d;color:#c9e3e8}.btn.danger{background:#542b43;border-color:#ad6888;color:white}.btn.wide{width:100%}.btn:disabled{opacity:.4;cursor:default}.home-actions{display:grid;gap:12px;margin-top:5px}.progress-card{background:#112d38;border:1px solid #315663;border-radius:19px;margin-top:21px;padding:17px 18px}.progress-card>div:first-child{display:flex;flex-direction:column;gap:6px}.progress-card strong{font-size:24px;color:#e8fffb}.progress-card .muted{color:#88a8b3;font-size:14px;font-weight:500}.progress-track{background:#244854;border-radius:99px;height:8px;overflow:hidden;margin-top:12px}.progress-track>div{height:100%;background:linear-gradient(90deg,#43d4c5,#b2f7d6);border-radius:99px}.progress-card p{font-size:13px;color:#a6c5ce;margin:9px 0 0}.list-heading{margin:29px 0 14px}.list-heading h2{font-size:20px;letter-spacing:-.02em;margin:0 0 4px}.list-heading p{margin:0;font-size:14px;color:#9ebbc6}.mode-list{display:grid;gap:11px}.mode-card{width:100%;background:#102b37;border:1px solid #315764;color:white;border-radius:18px;min-height:92px;display:flex;align-items:center;gap:14px;text-align:left;padding:16px;transition:border-color .15s}.mode-card:hover{border-color:#72d6c8}.mode-icon{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:13px;background:#1c4953;color:#9fffee;font-size:27px;font-weight:700}.mode-card>span:nth-child(2){flex:1;min-width:0}.mode-card strong,.hunt-card strong,.riddle-card strong{font-size:16px;display:block}.mode-card small,.hunt-card small,.riddle-card small{display:block;color:#a9cad2;line-height:1.4;font-size:13px;margin-top:5px}.nav-chevron{display:inline-block;flex:0 0 13px;width:13px;height:13px;border-right:3.5px solid #83e2d0;border-top:3.5px solid #83e2d0;border-radius:1px;transform:rotate(45deg);margin-right:5px}.nav-chevron.mode-arrow{margin-left:auto}.back-arrow{display:inline-block;flex:0 0 20px;width:20px;height:20px;position:relative}.back-arrow::before{content:"";position:absolute;width:17px;height:3.5px;left:1px;top:8.25px;border-radius:4px;background:currentColor}.back-arrow::after{content:"";position:absolute;width:10px;height:10px;left:2px;top:3.2px;border-left:3.5px solid currentColor;border-bottom:3.5px solid currentColor;border-radius:1px;transform:rotate(45deg)}.home-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:22px}.home-secondary .btn{font-size:12.5px;padding:9px 5px;min-height:48px}.quiet-footer{color:#8fadb8;font-size:13px;text-align:center;line-height:1.6;margin:20px 0}.section-header{padding:25px 0 20px}.section-header h1{font-size:28px;letter-spacing:-.03em;margin:19px 0 5px}.section-header p{color:#a6c5ce;font-size:15px;margin:0;line-height:1.55}.back-link{background:transparent;border:0;color:#85e8d0;letter-spacing:.055em;font-size:13px;font-weight:900;min-height:48px;padding:8px 0;display:inline-flex;align-items:center;gap:7px}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-top .back-link{flex:0 1 auto;min-width:0}.level-chip{border:1px solid #3b6872;color:#f5dc9e;background:#15323e;padding:9px 11px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}.play-page{padding:9px 0 12px}.game-heading{font-size:clamp(19px,5.8vw,25px);letter-spacing:-.02em;margin:10px 0 6px;line-height:1.2}.game-subline{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#add0d5;font-size:12px;font-weight:800;margin:7px 0 15px;letter-spacing:.03em}.game-board-card{background:radial-gradient(circle at top,#1b3d4a,#0b2330);border:1px solid #376b78;border-radius:20px;padding:14px 9px;min-height:170px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 24px #01151b6a}.board-fit{width:100%;display:flex;justify-content:center}.cross-board{--cell:min(calc((min(100vw,480px) - 76px)/var(--cols)),calc(240px/var(--rows)),43px);display:grid;grid-template-columns:repeat(var(--cols),var(--cell));grid-template-rows:repeat(var(--rows),var(--cell));gap:3px;justify-content:center}.cross-cell{border:1px solid #70b7b8;border-radius:6px;background:#193c4c;box-shadow:inset 0 -2px 0 #0e2834;color:#e8fbf6;font-size:clamp(13px,4.5vw,20px);font-weight:900;display:grid;place-items:center}.cross-cell.filled{background:linear-gradient(160deg,#b4ffde,#6fe8c8);border-color:#adffe3;color:#0b3740}.grid-void{visibility:hidden}.game-board-tip{font-size:12px;color:#9abec7;text-align:center;margin:8px 0 8px;line-height:1.4}.wheel-box{text-align:center}.selection-preview{font-size:16px;font-weight:900;letter-spacing:.1em;color:#f1dc9f;height:26px;display:flex;align-items:center;justify-content:center;margin:4px 0}.wheel{width:min(55vw,232px);height:min(55vw,232px);min-width:180px;min-height:180px;max-width:232px;max-height:232px;border-radius:50%;background:radial-gradient(circle,#173a45 0%,#0c2834 70%,#133744 100%);border:2px solid #397786;box-shadow:0 0 0 7px #102b35,0 8px 30px #00141b88;margin:5px auto 15px;position:relative;touch-action:none;user-select:none}.wheel-letter{position:absolute;transform:translate(-50%,-50%);width:45px;height:45px;border:1px solid #86c7cf;border-radius:50%;background:#1b4d5c;color:#f3fffc;display:grid;place-items:center;font-size:20px;font-weight:900;box-shadow:0 4px 0 #0a2934;z-index:2;padding:0;touch-action:none}.wheel-letter.picked{background:#8ffbd7;color:#0a3540;border-color:#c8ffe9}.wheel-core{position:absolute;inset:35%;border-radius:50%;display:grid;place-items:center;color:#4d8c97;font-size:36px;pointer-events:none}.wheel-lines{width:100%;height:100%;position:absolute;inset:0;z-index:1;pointer-events:none;overflow:visible}.wheel-lines polyline{fill:none;stroke:#e9d78a;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.game-tool-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;max-width:430px;margin:12px auto 0}.game-tool-row .btn{font-size:13px;min-height:46px;padding:10px 5px}.game-tool-row .btn:only-child{grid-column:1/-1}.play-status{text-align:center;margin:16px 0 0;color:#9bbbc3;font-size:12px;line-height:1.5}.play-status strong{color:#e6db97}.dot{padding:0 6px}.stage-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.stage-card{min-width:0;min-height:70px;background:#142f3b;border:1px solid #3c6570;border-radius:13px;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.stage-card span{font-size:20px;font-weight:900}.stage-card small{font-size:11px;color:#93b9c3}.stage-card.done{border-color:#64cbb0;background:#1a433f}.stage-card.done small{color:#fbe4a6}.stage-card:disabled{opacity:.38}.chapter-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:14px;padding:15px;background:#173745;margin:5px 0 16px;color:#effaf9;font-size:13px;font-weight:800}.chapter-banner span{font-size:11px;color:#95dbca}.pager{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:22px 0}.pager span{font-size:12px;color:#bbd7db;font-weight:800}.achievement-list,.hunt-list,.riddle-list{display:grid;gap:12px}.badge-card{border:1px solid #315767;background:#102a35;border-radius:16px;display:flex;gap:14px;align-items:center;padding:16px;min-height:80px}.badge-card.unlocked{border-color:#5ab9a8;background:#183b3d}.badge-symbol{font-size:27px;color:#9ac5c8;flex:0 0 34px;text-align:center}.badge-card.unlocked .badge-symbol{color:#f5dc94}.badge-card strong{font-size:15px}.badge-card p{font-size:13px;color:#acccd1;margin:5px 0 0;line-height:1.45}.setting-card{background:#102c38;border:1px solid #315c6b;border-radius:18px;padding:22px 17px;margin-bottom:18px}.setting-card h2{font-size:17px;margin:0 0 11px}.setting-card p{color:#adcad3;font-size:14px;line-height:1.6;margin:0 0 19px}.hunt-card,.riddle-card{display:flex;width:100%;align-items:center;gap:14px;background:#102d39;border:1px solid #315965;border-radius:16px;padding:15px;min-height:76px;color:white;text-align:left}.hunt-card>span:nth-child(2),.riddle-card>span:nth-child(2){flex:1;min-width:0}.hunt-num,.riddle-number{width:43px;height:43px;border-radius:12px;background:#1b4852;display:grid;place-items:center;flex:0 0 43px;font-weight:900;color:#c6fcdf}.hunt-card>.nav-chevron,.riddle-card>.nav-chevron{margin-left:auto}.game-instruction{font-size:14px;line-height:1.55;color:#b4d1d5;margin:8px 0 16px}.hunt-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;background:#0c2631;border:1px solid #386674;border-radius:15px;padding:7px;touch-action:none;user-select:none;max-width:435px;margin:0 auto}.hunt-cell{aspect-ratio:1;min-width:0;background:#1b3e4b;color:#c9e8eb;border:1px solid #2e6070;border-radius:5px;font-size:clamp(13px,4.4vw,19px);font-weight:800;padding:0;touch-action:none}.hunt-cell.preview{background:#ffdfa0;color:#16313a}.hunt-cell.marked{background:#64d9c0;color:#082a33}.hunt-words{display:flex;flex-wrap:wrap;gap:10px;margin:19px 0}.hunt-word{padding:9px 12px;border-radius:9px;border:1px solid #326674;background:#15323d;color:#ecf7f3;font-size:13px;font-weight:800;letter-spacing:.035em}.hunt-word.done{text-decoration:line-through;color:#87ddc6;background:#17473d}.riddle-hero{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px 21px;background:radial-gradient(ellipse at top,#204957,#0b2530);border:1px solid #3b6a73;border-radius:19px;margin:13px 0 22px;text-align:center}.riddle-glyph{font-size:48px;font-weight:900;color:#f7d996}.riddle-hero h1{font-size:clamp(21px,6vw,27px);line-height:1.42;margin:5px 0 12px}.riddle-hero p{font-size:14px;color:#aacbd2}.riddle-form{display:grid;gap:11px}.riddle-form label{font-size:13px;letter-spacing:.11em;font-weight:900;color:#9fc6ca}.riddle-form input{height:53px;width:100%;border:1px solid #4b7981;border-radius:13px;color:#f0fffb;background:#153540;text-align:center;letter-spacing:.10em;font-size:17px;font-weight:900;text-transform:uppercase}.riddle-form input::placeholder{color:#749ba6;font-size:13px}.hint-text{font-size:14px;color:#f3d79e;min-height:38px;text-align:center;margin:19px 0}.victory-card{padding:28px 22px;text-align:center;border:1px solid #5da895;border-radius:20px;background:radial-gradient(circle at top,#235b58,#103139);margin:12px 0 19px}.victory-card .victory-spark{font-size:62px;color:#f9d790}.result-stars{font-size:33px;color:#f9d790;margin:13px 0}.victory-card h2{font-size:30px;letter-spacing:.08em;margin:13px 0 7px}.victory-card p{color:#b5d4d7;line-height:1.6}.victory-card strong{display:block;color:#9cffd5;font-size:21px;margin-top:20px}.result-actions{display:grid;gap:12px}.overlay{position:fixed;inset:0;background:#031019de;z-index:30;display:flex;align-items:center;justify-content:center;padding:20px}.modal{width:min(100%,410px);border-radius:21px;background:#112e3b;border:1px solid #5cb4b3;padding:27px 20px;box-shadow:0 20px 90px #0008}.modal h2{font-size:23px;margin:0 0 14px;text-align:center}.modal p{line-height:1.6;color:#bfd5da;text-align:center;font-size:14px;margin:0 0 26px}.modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal-actions .btn{width:100%}#toast{position:fixed;left:50%;top:72px;transform:translateX(-50%) translateY(-12px);background:#21534d;color:#f5fff5;border:1px solid #69c8aa;border-radius:13px;box-shadow:0 9px 35px #0008;font-weight:800;font-size:13px;min-width:150px;max-width:min(90vw,390px);padding:13px 18px;text-align:center;z-index:80;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}@media(max-width:360px){main{padding:0 15px 15px}header{padding:0 16px}header .brand{font-size:12px}.home-hero{padding-top:22px}.hero-art{height:100px}.hero-art span{width:44px;height:49px;font-size:23px}.mode-card{min-height:80px;padding:13px}.wheel{width:198px;height:198px;min-width:198px;min-height:198px}.wheel-letter{width:43px;height:43px;font-size:18px}.cross-board{--cell:min(calc((100vw - 64px)/var(--cols)),calc(220px/var(--rows)),40px)}.stage-grid{gap:7px}.stage-card{min-height:59px}.stage-card span{font-size:17px}.game-tool-row{gap:7px}.game-tool-row .btn{font-size:12px}.modal-actions{grid-template-columns:1fr}.modal{padding:22px 16px}.hunt-grid{gap:2px;padding:6px}.hunt-cell{font-size:13px}}@media(max-height:600px) and (orientation:portrait){.game-board-card{min-height:120px;padding:10px 7px}.cross-board{--cell:min(calc((100vw - 64px)/var(--cols)),calc(160px/var(--rows)),39px)}.wheel{width:182px;height:182px;min-width:182px;min-height:182px}.wheel-letter{width:42px;height:42px}.home-hero{padding-top:20px}}@media(min-width:700px){.app-shell{border-left:1px solid #234751;border-right:1px solid #234751}}@media(orientation:landscape) and (max-height:480px){.app-shell{min-height:100dvh}header{position:relative}main{min-height:auto}.play-page{padding-bottom:50px}}

/* H5 Word Trails v0.5: swipe-release and tap-last-letter submission, no Enter button. */
.word-actions{max-width:430px;margin:14px auto 0;display:grid;gap:9px}
.word-actions .game-tool-row.word-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin:0;gap:10px}
.word-actions .game-tool-row.word-tools.with-reward{grid-template-columns:repeat(3,minmax(0,1fr))}
.word-actions .game-tool-row.word-tools .btn{min-width:0;width:100%;min-height:48px;padding:9px 6px;font-size:clamp(11px,2.65vw,13px);line-height:1.25;overflow-wrap:anywhere}
.word-input-guide{margin:3px 8px 0;text-align:center;color:#a5cbd2;font-size:12px;line-height:1.5}
@media(max-width:380px){.word-actions .game-tool-row.word-tools{gap:7px}.word-actions .game-tool-row.word-tools .btn{padding:8px 4px;font-size:11px}}

/* v0.9: responsive reward action, clear timer and local records. */
.home-secondary{grid-template-columns:repeat(2,minmax(0,1fr));}
.word-actions .game-tool-row.word-tools.reward-only{grid-template-columns:minmax(100px,0.85fr) minmax(170px,1.45fr);}
.word-actions .game-tool-row.word-tools.reward-only .btn{font-size:clamp(11px,2.7vw,14px);min-height:52px;}
.word-actions .game-tool-row.word-tools.reward-only .btn.primary{background:linear-gradient(115deg,#6de5c6,#3acbd0);color:#07272b;font-weight:900;border:1px solid #aaffec;}
.word-actions .game-tool-row.word-tools.reward-only .btn:disabled{opacity:.62;cursor:not-allowed;}
.cross-timer-bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;background:#10323b;border:1px solid #396e75;border-radius:12px;color:#b7d9dc;padding:10px 13px;margin:8px 0 13px;font-weight:800;font-size:12px;letter-spacing:.03em;}
.cross-timer-bar strong{color:#f4dc9b;font-variant-numeric:tabular-nums;}
.time-result{background:#113d41;border:1px solid #5fb7a6;border-radius:14px;padding:12px 10px;margin-top:12px;}
.time-result strong{display:block;color:#ffe5a8;font-size:25px;margin:0;}
.time-result p{margin:5px 0 0;font-size:12px;color:#b8e9d9;}
.stage-card{padding:8px 3px;}
.stage-card small.time-best{color:#c8e8d3;font-variant-numeric:tabular-nums;font-size:10px;}
.time-records{display:grid;gap:11px;padding-bottom:28px;}
.timing-record{border:1px solid #386571;border-radius:13px;background:#102d38;padding:14px;display:grid;gap:5px;}
.timing-record strong{color:#e7e8ab;font-size:14px;}
.timing-record span{font-size:12px;color:#e9ffff;font-variant-numeric:tabular-nums;}
.timing-record small{font-size:11px;color:#99c0c4;}
@media(max-width:360px){.cross-timer-bar{font-size:11px;padding:9px;}.word-actions .game-tool-row.word-tools.reward-only{gap:7px;}.word-actions .game-tool-row.word-tools.reward-only .btn{font-size:11px;}}
