:root{font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:#26362e;background:#f6f5ef;--ink:#26362e;--muted:#65736a;--green:#286758;--line:#e0e2d8;--white:#fffefa;--shadow:0 8px 26px #3443390b;--gold:#b07b24;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #e3b65e;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,4.5vw,3rem);line-height:1.13;letter-spacing:-.045em}h2{font-size:1.5rem;letter-spacing:-.035em;line-height:1.2}h3{font-size:1.22rem;letter-spacing:-.025em}p{line-height:1.6}a{text-decoration:none;color:inherit}.site-header{min-height:72px;padding:12px max(20px,calc((100vw - 1160px)/2));background:#fffefa;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;position:sticky;top:0;z-index:3}.brand{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:-.04em;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:#286758;color:white;border-radius:13px;font-family:Georgia,serif;font-size:32px;font-weight:700}.brand-muted{color:#a8b3a6;margin:0 2px}.site-header nav{display:flex;gap:4px;align-items:center}.site-header nav button{padding:10px 15px;background:transparent;border:none;color:var(--muted);border-radius:10px;font-weight:650;font-size:.92rem;white-space:nowrap}.site-header nav button.active{background:#e8efe6;color:#245c4b}.site-header nav button:hover{background:#eef1e9}.header-local{font-size:.78rem;color:#6b786e;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;background:#71a080;border-radius:50%;margin-right:5px}main{max-width:1160px;margin:auto;padding:30px 20px 48px;min-height:calc(100vh - 140px)}footer{max-width:1160px;margin:auto;border-top:1px solid var(--line);padding:20px;color:#748078;font-size:.8rem}footer span{margin:0 6px}.hero{display:flex;align-items:stretch;overflow:hidden;background:#286758;border-radius:24px;color:#fffefa;min-height:210px;box-shadow:var(--shadow)}.hero-text{padding:32px 36px;flex:1;position:relative;z-index:1}.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.045em;font-size:clamp(2rem,4vw,3.05rem);margin:9px 0 10px}.hero p{max-width:560px;color:#e6eee6}.eyebrow{font-size:.71rem!important;font-weight:750;letter-spacing:.13em;text-transform:uppercase;color:#698174;line-height:1.35}.hero .eyebrow{color:#c3d9cc}.hero-tag{display:inline-block;color:#f5e7c5;font-size:.78rem;font-weight:650;letter-spacing:.01em;margin-top:15px}.hero-art{width:36%;min-width:240px;align-self:stretch;display:flex;align-items:end;background:#397969}.hero-art svg{width:100%;height:auto;min-height:150px;display:block}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 24px}.stat{display:flex;flex-direction:column;gap:6px;min-width:0;background:var(--white);border:1px solid var(--line);border-radius:15px;padding:16px 20px;box-shadow:var(--shadow)}.stat-label{font-size:.78rem;color:var(--muted);font-weight:650}.stat-value{font-size:1.7rem;line-height:1.15;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:#285d4f}.stat-note{font-size:.72rem;color:#849087}.selectors{display:flex;gap:14px;margin:0 0 16px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px;min-width:180px;flex:1}.field-label{font-size:.75rem;font-weight:700;color:var(--muted)}.field select{border:1px solid var(--line);border-radius:11px;padding:11px 14px;min-height:44px;background:var(--white);color:var(--ink);width:100%}.unit-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.unit-chip{border:1px solid var(--line);background:var(--white);padding:9px 13px;border-radius:999px;font-size:.8rem;color:#5c6a61}.unit-chip.selected{background:#e6efe6;border-color:#b4cbb9;color:#2b6452;font-weight:700}.unit-chip.locked:not(.selected){color:#889189}.adventure-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:18px;align-items:start}.map-card,.side-card,.progress-panel,.catalog-card,.game-board,.result-card{background:var(--white);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.map-card{padding:22px 22px 8px;overflow:hidden}.map-header{display:flex;justify-content:space-between;align-items:center;gap:14px}.map-header h2{margin:5px 0}.muted{color:var(--muted);font-size:.92rem}.unit-count{font-size:1.4rem;color:#286758;white-space:nowrap;font-weight:750;letter-spacing:-.04em}.progress-bar{height:8px;background:#e8ebe2;border-radius:999px;overflow:hidden;margin:14px 0}.progress-bar span{height:100%;background:#498b70;display:block;border-radius:999px;transition:width .25s}.trail{position:relative;min-height:160px;padding:10px 6px 18px;background:radial-gradient(ellipse at 3% 12%,#e7eddf 0%,transparent 28%),radial-gradient(ellipse at 95% 45%,#e6eddf 0%,transparent 30%),radial-gradient(ellipse at 8% 85%,#ede7d6 0%,transparent 25%),#f8f8f1;border-radius:14px;margin:12px 0 14px}.trail-list{position:relative;display:flex;flex-direction:column;gap:2px;padding:8px 0}.trail-path{position:absolute;left:0;right:0;top:0;bottom:0;opacity:.75;pointer-events:none}.trail-row{display:flex;align-items:center;gap:12px;min-height:95px;position:relative;padding:0 7%;z-index:1}.trail-row.left{justify-content:flex-start}.trail-row.right{justify-content:flex-start;flex-direction:row-reverse}.trail-row.right .trail-label{text-align:right;align-items:flex-end}.trail-node{width:68px;height:68px;flex:0 0 68px;position:relative;display:grid;place-items:center;border:3px solid #fffefa;border-radius:50%;color:#fff;font-weight:750;box-shadow:0 4px 0 #00000020,0 5px 14px #00000013;transition:transform .15s}.trail-node:hover:not(:disabled){transform:translateY(-3px)}.trail-node.locked{background:#b8c1b6;color:#f3f5ef;box-shadow:0 3px 0 #abb5a9}.node-icon{font-size:1.65rem;line-height:1}.node-number{position:absolute;bottom:-8px;left:50%;transform:translateX(-50%);font-size:.65rem;border:1px solid #e0e2d8;background:#fffefa;color:#65736a;border-radius:999px;padding:2px 8px}.trail-node.complete{box-shadow:0 0 0 3px #d4e7d2,0 4px 0 #00000010}.trail-label{display:flex;flex-direction:column;gap:3px;max-width:200px;min-width:0}.node-name{font-weight:750;font-size:.98rem}.node-desc{font-size:.78rem;color:#6f7a71}.node-stars{font-size:.82rem;color:#9aa498;letter-spacing:.08em}.node-stars.gold{color:#b9852d;font-size:.96rem}.play-indicator{font-size:.7rem;font-weight:850;color:#286758;letter-spacing:.1em}.lock-note{background:#fffefa;border:1px solid var(--line);padding:12px;margin:2px 10px 10px;border-radius:10px;font-size:.8rem;color:var(--muted);position:relative;z-index:2}.side-stack{display:grid;gap:14px;position:sticky;top:90px}.side-card{padding:23px}.side-card h3{margin:8px 0}.side-card p.muted{margin-bottom:14px}.rule-row{font-size:.82rem;color:#68766c;padding:7px 0;border-top:1px solid #efefe9}.button,.eg-btn{border:1px solid transparent;background:#e7eee8;color:#2d5f50;border-radius:11px;padding:12px 17px;font-weight:700;font-size:.88rem;min-height:44px;transition:background .15s}.button:hover,.eg-btn:hover{background:#dce9dd}.button.primary,.eg-btn.primary{background:#286758;color:white}.button.primary:hover,.eg-btn.primary:hover{background:#205346}.button.secondary,.eg-btn.secondary{background:#f5f6f1;color:#456356;border-color:#dce3d9}.button.secondary:hover,.eg-btn.secondary:hover{background:#e9eee6}.button:disabled,.eg-btn:disabled{opacity:.48}.button.full{width:100%}.page-heading{padding:10px 0 22px}.page-heading h1{margin:7px 0 10px}.lede{color:var(--muted);max-width:720px}.game-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.catalog-card{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:230px}.catalog-card .muted{flex:1}.catalog-card .eyebrow{letter-spacing:.08em}.game-icon{display:grid;place-items:center;width:55px;height:55px;flex-shrink:0;border-radius:16px;color:white;font-size:1.65rem;font-weight:750}.teal{background:#3d8578}.blue{background:#547ba0}.purple{background:#8676a6}.amber{background:#b68b48}.catalog-card .button{margin-top:8px}.small-note{font-size:.77rem;color:#778178;margin:16px 0}.progress-panel{padding:23px;margin:14px 0}.progress-panel h2{margin-bottom:18px}.progress-row{padding:7px 0}.progress-label{display:flex;justify-content:space-between;gap:14px}.history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-top:1px solid var(--line)}.history-result{font-weight:700;color:var(--gold);letter-spacing:.06em}.game-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.mode-tag{font-size:.78rem;font-weight:650;color:#718175;background:#e8eee6;padding:7px 11px;border-radius:20px}.game-header{display:flex;gap:17px;align-items:center;margin-bottom:22px}.game-header .game-icon{width:64px;height:64px}.game-header h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:4px 0}.game-board{padding:24px;min-height:350px}.game-root{max-width:900px;margin:auto}.result-card{max-width:720px;margin:25px auto;padding:35px;text-align:center}.result-card h1{margin:12px 0}.result-stars{font-size:3.4rem;color:#bd8b2d;letter-spacing:.1em;margin:10px 0 15px}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;margin:20px 0}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
/* Game styles are scoped to the common engine container. */
.eg-shell{color:var(--ink);font-family:inherit}.eg-info{display:flex;justify-content:flex-end;margin-bottom:12px}.eg-progress{font-weight:750;font-size:.8rem;color:#5d7669;background:#edf2eb;padding:6px 12px;border-radius:999px;letter-spacing:.02em}.eg-body{display:flex;flex-direction:column;align-items:stretch;gap:16px}.eg-prompt{font-size:clamp(1.1rem,3vw,1.55rem);text-align:center;line-height:1.5;overflow-wrap:anywhere}.eg-sub{color:#6c796e;font-size:.88rem;text-align:center}.eg-feedback{min-height:32px;text-align:center;margin-top:16px;color:#607368;font-size:.9rem;font-weight:650;line-height:1.5}.eg-feedback.good{color:#267553}.eg-feedback.bad{color:#a44e44}.eg-empty{text-align:center;color:var(--muted);padding:40px 12px}.eg-memory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;max-width:740px;width:100%;margin:auto}.eg-card{min-height:96px;border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(135deg,#2e6d5e,#4c9380);color:#cce5d6;border-radius:13px;font-size:1.85rem;font-weight:700;box-shadow:0 3px 0 #1d5146;transition:transform .15s,background .15s;overflow-wrap:anywhere;padding:9px;min-width:0}.eg-card:hover:not(:disabled){transform:translateY(-2px)}.eg-card.open{background:#eef2e7;color:#365f4c;border:1px solid #cbd8c6;box-shadow:0 2px 0 #d4ded2}.eg-card.open strong{font-size:clamp(.8rem,1.7vw,1.1rem);line-height:1.2}.eg-card small{font-size:.62rem;color:#71897a}.eg-card.matched{background:#d8ecdb;color:#286246;border-color:#a4c6a7;box-shadow:none}.eg-clues{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.eg-clue{padding:7px 10px;font-size:.85rem;background:#f2f1e9;border-radius:8px;color:#687267}.eg-clue.done{background:#e0edda;color:#4c7a57;text-decoration:line-through}.eg-word-grid,.eg-cross-grid{display:grid;grid-template-columns:repeat(var(--grid-n),minmax(0,1fr));gap:3px;width:min(100%,520px);margin:0 auto}.eg-letter-cell{min-width:0;aspect-ratio:1;border:1px solid #dde3d8;border-radius:5px;background:#f8f9f5;color:#3a5146;font-weight:650;font-size:clamp(.65rem,2.2vw,1rem);padding:0}.eg-letter-cell.selected{background:#f2d99a;border-color:#d4ad5e}.eg-letter-cell.found{background:#cde4ce;border-color:#abd2b4;color:#245b45}.eg-lamps{display:flex;justify-content:center;gap:8px}.eg-lamp{font-size:1.8rem;color:#d9dfd6}.eg-lamp.lit{color:#d7a64c;text-shadow:0 0 9px #f3d49280}.eg-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;padding:18px 0}.eg-slot,.eg-space{min-width:25px;text-align:center;padding:6px 3px;font-size:clamp(1.2rem,3.6vw,1.9rem);font-weight:700;color:#426e59}.eg-slot{border-bottom:2px solid #9bb6a2}.eg-keyboard{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;max-width:650px;margin:auto}.eg-key{border:1px solid #dfe3d9;background:#f5f6f1;border-radius:8px;color:#456356;font-weight:700;min-width:36px;height:44px}.eg-key:disabled{opacity:.36}.eg-cross-grid{width:min(100%,560px);gap:2px}.eg-cross-cell{aspect-ratio:1;position:relative;background:#f5f6ef;border:1px solid #d4dfd3;min-width:0;overflow:hidden;border-radius:3px}.eg-cross-cell.blank{background:#344a40;border-color:#344a40}.eg-cross-cell.highlight{background:#f4e4b9}.eg-cross-cell.solved{background:#d6ecd7}.eg-cross-cell input{background:transparent;border:none;width:100%;height:100%;padding:3px 0 0;text-align:center;font-weight:750;color:#344a40;font-size:clamp(.7rem,2vw,1.1rem);text-transform:uppercase;outline-offset:-3px}.eg-cross-cell small{position:absolute;top:1px;left:2px;font-size:clamp(.36rem,1.2vw,.62rem);color:#647365;pointer-events:none;line-height:1}.eg-cross-clues{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;max-width:650px;width:100%;margin:auto}.eg-clue-button{text-align:left;border:1px solid #e0e4da;background:#f6f7f2;border-radius:8px;font-size:.85rem;color:#455e50;min-height:40px;padding:8px 11px}.eg-clue-button.done{background:#deeddc;color:#46734e;text-decoration:line-through}.eg-token-answer,.eg-token-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:14px;border-radius:13px;min-height:80px}.eg-token-answer{background:#f2f5ee;border:1px dashed #b8c9b8;align-items:center}.eg-token-bank{background:#faf9f4}.eg-token-answer.dialogue,.eg-token-bank.dialogue{flex-direction:column;align-items:stretch;max-width:680px;width:100%;margin:auto}.eg-token-answer.dialogue .eg-token,.eg-token-bank.dialogue .eg-token{text-align:left}.eg-placeholder{font-size:.86rem;color:#859185;padding:8px}.eg-token{background:#fffefa;border:1px solid #d6e1d6;border-bottom:3px solid #c8d9c9;border-radius:8px;padding:12px 14px;min-height:44px;font-size:1rem;font-weight:650;color:#365f4c;overflow-wrap:anywhere}.eg-token.chosen{background:#dbe9d9;border-color:#b9d3bb}.eg-token:disabled{opacity:.3}.eg-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}.eg-million{display:grid;grid-template-columns:1fr 135px;gap:18px}.eg-million-stage{display:flex;flex-direction:column;gap:18px;min-width:0}.eg-prize{font-size:.82rem;font-weight:700;letter-spacing:.04em;text-align:center;color:#a77b39}.eg-million-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.eg-choice{border:1px solid #cbdad3;background:#eaf0e9;border-radius:12px;padding:16px 10px;color:#36564a;font-weight:650;min-height:64px;overflow-wrap:anywhere}.eg-choice:hover:not(:disabled){background:#dbe9dc}.eg-choice.correct{background:#c6e7ca;color:#275d39}.eg-choice.incorrect{background:#f1d3c7;color:#a44e44}.eg-choice.removed{opacity:.12}.eg-ladder{background:#2e5147;border-radius:14px;padding:10px;color:#bacfc2;display:flex;flex-direction:column;gap:5px;justify-content:center}.eg-rung{font-size:.83rem;font-weight:650;text-align:right;padding:8px;border-radius:7px}.eg-rung.current{background:#e7cc85;color:#354b3c;font-weight:800}.eg-rung.passed{color:#eef3e8}
@media(max-width:800px){.site-header{flex-wrap:wrap;gap:8px;padding:10px 16px;position:static}.site-header nav{order:3;width:100%;justify-content:center}.site-header nav button{flex:1;padding:10px 6px}.header-local{margin-left:auto}.adventure-layout{grid-template-columns:1fr}.side-stack{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.side-stack .side-card:first-child{grid-column:1/-1}.game-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-text{padding:25px}.hero-art{width:32%;min-width:150px}.game-board{padding:18px}main{padding:18px 14px 32px}.stat{padding:13px}.stat-value{font-size:1.4rem}.stat-note{font-size:.65rem}}
@media(max-width:470px){.hero{min-height:190px}.hero-text{padding:22px 18px}.hero-art{width:26%;min-width:65px;opacity:.75}.hero-art svg{min-width:120px;transform:translateX(-28px)}.hero h1{font-size:1.85rem}.hero p{font-size:.85rem}.hero-tag{font-size:.7rem}.stats{gap:6px;margin:12px 0 18px}.stat{padding:11px 8px;border-radius:11px}.stat-label{font-size:.67rem}.stat-value{font-size:1.2rem}.stat-note{display:none}.field{min-width:132px}.selectors{gap:8px}.unit-chip{font-size:.72rem;padding:8px 10px}.map-card{padding:15px 12px 6px}.trail-row{padding:0 5%;gap:9px;min-height:89px}.trail-node{width:59px;height:59px;flex-basis:59px}.node-name{font-size:.88rem}.node-desc{font-size:.73rem}.side-stack{grid-template-columns:1fr}.side-stack .side-card:first-child{grid-column:auto}.side-card{padding:18px}.game-catalog{gap:10px}.catalog-card{padding:15px;min-height:205px;gap:7px}.catalog-card h2{font-size:1.13rem}.catalog-card .muted{font-size:.8rem}.game-icon{width:46px;height:46px;font-size:1.4rem}.catalog-card .eyebrow{font-size:.62rem!important}.game-header .game-icon{width:48px;height:48px}.game-header{gap:10px}.game-header .eyebrow{font-size:.65rem!important}.game-board{padding:12px}.eg-memory{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.eg-card{min-height:78px;border-radius:9px}.eg-word-grid,.eg-cross-grid{gap:1px}.eg-letter-cell{border-radius:3px}.eg-keyboard{gap:5px}.eg-key{min-width:31px;height:40px}.eg-cross-clues{grid-template-columns:1fr}.eg-million{grid-template-columns:1fr}.eg-ladder{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.eg-rung{font-size:.7rem;text-align:center;padding:5px 2px}.eg-token{font-size:.9rem;padding:9px 11px}.eg-token-answer,.eg-token-bank{padding:9px;gap:6px}.result-card{padding:24px 15px}.result-stars{font-size:2.6rem}.result-stats .stat-value{font-size:1.3rem}.progress-panel{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
