@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');
:root{color-scheme:light;--paper:#f6f1e7;--card:#fffdf8;--ink:#2a2f3a;--muted:#736c7c;--line:#e2dccd;--plum:#5b3f8f;--amber:#c27f22;--gold:#d9a531;
--correct:#4f8a3c;--present:#c9a227;--absent:#787c84;--key:#ece6f3;--key-ink:#3a3150}
body[data-contrast=on]{--correct:#e07a1f;--present:#3a86c8;--absent:#787c84}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation;border:0;color:inherit}button:disabled{cursor:default}
button:focus-visible,a:focus-visible,.board:focus-visible,textarea:focus-visible{outline:3px solid var(--plum);outline-offset:3px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.shell{max-width:1220px;margin:auto;padding:24px 38px 44px}
header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px}
.brand{font:800 16px 'Manrope',sans-serif;letter-spacing:2px}.brand span{color:var(--amber)}
.utilities{display:flex;gap:8px}.utilities button{padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:transparent;font-size:12px;font-weight:700}.utilities button:disabled{opacity:.45}
.heading{display:flex;align-items:flex-end;justify-content:space-between;margin:34px 0 25px}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;margin:0 0 12px;color:var(--plum)}
h1{font:800 clamp(38px,5vw,62px)/1.05 'Manrope',sans-serif;letter-spacing:-3px;margin:0}h1 em{font-style:normal;color:var(--plum)}
.tagline{color:var(--muted);font-size:14px;line-height:1.7;margin:0 0 4px;text-align:right}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px}
.desk{align-self:start;border:1px solid var(--line);border-radius:20px;padding:20px;background:var(--card);box-shadow:0 12px 40px #3a2f1a08}
.hud{display:grid;grid-template-columns:1fr 1fr 1fr 1.25fr;padding-bottom:15px;border-bottom:1px solid var(--line)}
.hud>div{padding-left:15px;border-left:1px solid var(--line);min-width:0}.hud>div:first-child{padding-left:0;border:0}
.hud small{display:block;color:var(--muted);font-size:9px;letter-spacing:1px;font-weight:700}
.hud strong{display:block;font:800 23px 'Manrope',sans-serif;margin-top:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.opening{display:flex;align-items:center;gap:14px;background:#efe8f6;padding:18px;border-radius:12px;margin:16px 0}
.sun{font-size:38px;color:var(--plum)}.opening h2{font:800 18px 'Manrope',sans-serif;margin:0 0 6px}.opening p{font-size:12px;line-height:1.5;margin:0;color:#56506a}
.opening-condition{margin-top:8px!important}.opening-ai-note{margin-top:8px!important;color:var(--plum)!important;font-weight:600}.opening-actions{display:flex;gap:8px;margin-left:auto}
.primary,.secondary{padding:12px 15px;font-size:12px;font-weight:800;border-radius:9px;transition:transform .12s}
.primary{background:var(--plum);color:#fff}.secondary{background:#efe8f6;color:var(--plum);border:1px solid #dccfee}
.primary:active,.secondary:active{transform:translateY(2px)}.primary:disabled,.secondary:disabled{opacity:.55}
.text-button{background:none;color:var(--plum);padding:7px;font-size:11px;font-weight:700}.text-button:disabled{opacity:.45}
.day-line{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);padding:12px 0 6px}.day-line span:first-child{color:var(--plum);font-weight:700}
.rule-impact{font-size:11px;color:var(--muted);margin:0 0 12px}.small{font-size:11px;color:var(--muted)}
.board-wrap{position:relative;display:flex;justify-content:center}
.board{display:grid;gap:6px;padding:4px;border-radius:12px}
.row{display:grid;grid-template-columns:repeat(5,var(--tile,58px));gap:6px}
.tile{display:flex;align-items:center;justify-content:center;width:var(--tile,58px);height:var(--tile,58px);border:2px solid var(--line);border-radius:8px;background:#fff;font:800 28px 'Manrope',sans-serif;text-transform:uppercase;color:var(--ink);user-select:none}
.tile[data-state=typed]{border-color:#9b90ad;animation:pop .1s ease-out}
.tile[data-state=correct],.tile[data-state=present],.tile[data-state=absent]{color:#fff;border-color:transparent}
.tile[data-state=correct]{background:var(--correct)}.tile[data-state=present]{background:var(--present)}.tile[data-state=absent]{background:var(--absent)}
.row.shake{animation:shake .35s}
@keyframes pop{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.paused-veil{display:none;position:absolute;inset:0;margin:0;align-items:center;justify-content:center;font:800 22px 'Manrope',sans-serif;color:var(--plum)}
body[data-phase=paused] .board{filter:blur(7px);opacity:.6}body[data-phase=paused] .paused-veil{display:flex}
.notice{font-size:12px;line-height:1.5;color:var(--plum);min-height:36px;margin:11px 0;text-align:center}
.keyboard{display:grid;gap:6px;max-width:520px;margin:0 auto}
.key-row{display:flex;justify-content:center;gap:5px}
.key{flex:1 1 0;min-width:0;max-width:46px;min-height:52px;padding:0;border-radius:7px;background:var(--key);color:var(--key-ink);font:800 15px 'Manrope',sans-serif}
.key.wide{max-width:72px;flex-grow:1.5;font-size:12px}#key-back{font-size:18px}
.key[data-state=correct],.key[data-state=present],.key[data-state=absent]{color:#fff}
.key[data-state=correct]{background:var(--correct)}.key[data-state=present]{background:var(--present)}.key[data-state=absent]{background:var(--absent)}
.key:disabled{opacity:.6}
.settings{display:flex;justify-content:center;margin-top:8px}.settings .text-button{min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.controls{font-size:9px;line-height:1.6;color:var(--muted);margin:12px 0 0;text-align:center}
.story-card,.result{background:#f1ecf7;border:1px solid #e0d6ee;padding:22px;border-radius:14px}
.story-card h2,.result h2{font:800 25px/1.25 'Manrope',sans-serif;letter-spacing:-.8px;margin:0 0 12px}
.story-card>p:not(.eyebrow),.result>p:not(.eyebrow){font-size:12px;line-height:1.75;color:#5c566a}
.result .answer{font-size:13px!important;color:var(--ink)!important;font-weight:700}
.rule-note{padding:11px;border-left:2px solid #b9a6d8;background:#fff8;font-size:11px;line-height:1.6;color:var(--plum);margin:15px 0}
.story-card .secondary{width:100%;background:var(--plum);color:#fff}.story-card .small{font-size:9px!important;margin-bottom:0}
.result{margin-top:16px;background:#f6ecdc;border-color:#eadbc3}.reflection{padding:12px;border:1px dashed #d6bc98;border-radius:9px;margin-top:14px}
.reflection small,.dist small{font-size:8px;letter-spacing:1px;color:#a27950;font-weight:800}.reflection p{font-size:12px;line-height:1.7;margin:7px 0 0}
.dist ol{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:4px}.dist li{display:grid;grid-template-columns:14px 1fr;gap:6px;align-items:center;font-size:11px;font-weight:700}
.bar{display:flex;justify-content:flex-end;min-width:22px;width:8%;background:var(--absent);color:#fff;border-radius:4px;padding:2px 6px;font-size:10px}.bar.today{background:var(--correct)}
.share{display:grid;gap:6px;margin-top:14px}.share .secondary{min-height:44px}.share .small{margin:0}
#share-fallback{width:100%;font:13px/1.4 ui-monospace,monospace;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff;color:var(--ink);resize:vertical}
.result-actions{display:grid;gap:8px;margin-top:16px}
.field-guide{margin:25px 0 20px;padding:0 6px}.field-guide h3{font:800 15px 'Manrope',sans-serif;margin:0 0 12px}.field-guide p{font-size:11px;color:var(--muted);line-height:1.7;margin:8px 0}.field-guide b{color:var(--ink)}
.game-help-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:14px 0}
.game-help-links a,.game-help-links button{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;touch-action:manipulation;background:transparent}
.game-help-links .play-guide-link{color:var(--plum);font-size:14px;text-decoration:underline;text-underline-offset:3px}.catalog{font-size:11px;font-weight:700}
#help-panel{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);overflow:hidden;box-shadow:0 18px 70px #2a2f3a33}
#help-panel::backdrop{background:#2a2f3a80}
.lab-help{display:flex;flex-direction:column;max-height:calc(100dvh - 24px)}
.help-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;line-height:1.65;overflow-wrap:anywhere}
.help-body h2{font:800 24px/1.25 'Manrope',sans-serif;margin:0 0 14px}.help-body p,.help-steps{font-size:14px}
.help-state{padding:12px;border-radius:9px;background:#efe8f6;color:var(--plum)}
.help-steps{padding-left:22px}.help-steps li{padding-left:4px;margin:12px 0}.help-body .help-keys{font-size:12px;color:var(--muted)}
.help-full-guide{display:inline-flex;align-items:center;min-height:44px;color:var(--plum);text-decoration:underline;text-underline-offset:3px}
.help-actions{flex:0 0 auto;border-top:1px solid var(--line);padding:14px 22px;background:var(--paper)}.help-actions button{width:100%;min-height:44px;font-size:14px;white-space:normal}
body[data-phase=paused] .desk{border-color:#cdbfe2}body[data-phase=paused] .day-line span:first-child:before{content:'PAUSED · '}
@media(max-width:900px){.shell{padding:18px 22px 30px}.layout{grid-template-columns:minmax(0,1fr) 250px;gap:18px}.desk{padding:15px}.opening{flex-wrap:wrap}.opening-actions{width:100%;margin-left:0}.opening-actions button{flex:1}.tagline{display:none}}
/* Keep the HUD clear of the mobile sticky header when a word opens. */
.desk,.result{scroll-margin-top:76px}
@media(max-width:700px){.shell{padding:12px 12px 24px}header{position:sticky;top:0;z-index:3;background:var(--paper);padding:6px 0 12px}.brand{font-size:13px;letter-spacing:1.2px}.utilities{gap:6px}.utilities button{padding:8px 9px;font-size:10px;min-height:44px}.heading{margin:21px 5px 18px}.eyebrow{font-size:9px;letter-spacing:1.3px}h1{font-size:38px;letter-spacing:-2px}.layout{display:block}.desk{padding:12px 8px;border-radius:15px}.hud{padding:0 4px 10px}.hud>div{padding-left:8px}.hud small{font-size:9px;letter-spacing:.4px}.hud strong{font-size:18px;margin-top:3px}.opening{margin:12px 0;padding:13px}.opening .sun{display:none}.opening h2{font-size:16px}.opening p{font-size:12px}.day-line{padding:8px 4px 2px}.rule-impact{margin:0 4px 8px}.board{--tile:52px;gap:5px}.row{gap:5px}.tile{font-size:25px}.notice{min-height:34px;margin:8px 0;font-size:12px}.key-row{gap:4px}.key{min-height:52px;font-size:14px;border-radius:6px}.controls{font-size:10px}aside{margin-top:18px}.help-body{padding:16px}.help-actions{padding:12px 16px}.help-body h2{font-size:22px}button{min-height:44px}}
@media(max-width:350px){.board{--tile:46px}.tile{font-size:22px}.utilities button{padding:8px 6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
/* Reviewed run focus · 20261003-reviewed1 */
.goal-controls{margin-top:12px}.goal-label{display:block;font-size:10px;font-weight:800;color:var(--plum);margin-bottom:6px}.goal-buttons{display:flex;flex-wrap:wrap;gap:6px}
.goal-button{min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font-size:11px;font-weight:700;text-align:left}
.goal-button[aria-pressed=true]{background:var(--plum);color:#fff;border-color:var(--plum)}.goal-controls p{margin-top:7px!important;font-size:11px!important;line-height:1.5}
/* Explicit AI choice stays within the opening, including the play feed. */.opening-story{font-size:.88rem;line-height:1.4;margin:.35rem 0}.opening-ai-note{font-size:.82rem;line-height:1.35;margin:.45rem 0}.opening{flex-wrap:wrap}.opening-actions{width:100%;margin-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.opening-actions #get-ai{min-height:44px;grid-column:1/-1}.opening-actions #get-ai:disabled{opacity:.65;cursor:default}.opening #opening-date{margin:.25rem 0;font-size:.78rem}

/* Inside the /play/ feed (html.cc-embed, set by play-bridge.js): no site chrome, and the
   opening, HUD, guesses and the whole on-screen keyboard share one screen. The opening sits
   over the guesses, and tiles shrink to the height left for six rows. */
.cc-embed .brand,.cc-embed .heading,.cc-embed .story-card,.cc-embed .field-guide,.cc-embed .controls,.cc-embed .catalog{display:none}
.cc-embed .shell{position:relative;display:flex;flex-direction:column;height:100vh;height:100dvh;max-width:1220px;padding:8px 12px 10px}
.cc-embed header{position:static;justify-content:flex-end;border:0;padding:0 0 6px;background:none;z-index:auto}
.cc-embed .game-help-links{position:absolute;top:8px;left:12px;margin:0;z-index:3}
.cc-embed .game-help-links .play-guide-link{min-height:44px;padding:0 4px;font-size:0}
.cc-embed .game-help-links .play-guide-link::before{content:'How to play';font-size:12px;font-weight:700}
.cc-embed .layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) auto;gap:16px}
.cc-embed aside{min-height:0;overflow:auto}
.cc-embed .desk{display:grid;align-self:stretch;min-height:0;padding:12px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto auto;grid-template-areas:"hud" "line" "status" "impact" "board" "notice" "keys" "settings"}
.cc-embed .hud{grid-area:hud;padding-bottom:10px}.cc-embed .day-line{grid-area:line;padding:8px 0 2px}.cc-embed #progress-status{grid-area:status;margin:0}
.cc-embed .rule-impact{grid-area:impact;margin:0 0 8px}.cc-embed .notice{grid-area:notice;margin:6px 0}.cc-embed .keyboard{grid-area:keys;width:100%}
.cc-embed .settings{grid-area:settings;margin-top:4px}.cc-embed .settings .text-button{min-height:36px}
.cc-embed .board-wrap{grid-area:board;align-items:center;min-height:0;container-type:size}
.cc-embed .board{--tile:clamp(30px,calc((100cqh - 38px) / 6),58px)}.cc-embed .tile{font-size:min(28px,calc(var(--tile) * .48))}
.cc-embed .opening{max-height:calc(100dvh - 150px);overflow:auto;overscroll-behavior:contain;grid-area:board;z-index:2;align-self:center;justify-self:center;flex-wrap:wrap;max-width:520px;margin:0 6px;box-shadow:0 10px 34px #1d16288c}
.cc-embed .opening-actions{width:100%;margin-left:0}.cc-embed .opening-actions button{flex:1}
.cc-embed .result{display:flex;flex-direction:column;width:280px;margin-top:0}.cc-embed .result>*{margin-top:0}
.cc-embed .result-actions{order:1;margin:0 0 14px}.cc-embed .reflection{order:2}
@media(max-width:700px){
  .cc-embed .shell{padding:6px 8px 8px}.cc-embed .game-help-links{top:10px;left:8px}
  .cc-embed .layout{display:flex;flex-direction:column}.cc-embed .desk{flex:1;padding:10px 8px}.cc-embed aside{flex:none;margin:0;overflow:visible}
  .cc-embed .board{--tile:clamp(30px,calc((100cqh - 33px) / 6),52px)}
  .cc-embed .key{min-height:46px}
  .cc-embed .result{width:auto;margin-top:10px}
  .cc-embed body:is([data-phase=won],[data-phase=failed]) .result{position:fixed;left:8px;right:8px;bottom:8px;z-index:5;max-height:calc(100dvh - 16px);overflow:auto;margin:0;box-shadow:0 -10px 40px #2a1f3a59}
}
