
:root{font-family:Arial,sans-serif;color:#202b3c;background:#f3f6fa}*{box-sizing:border-box}body{margin:0}header{background:#172b48;color:white;padding:16px 25px}h1{margin:0;font-size:23px}main{display:grid;grid-template-columns:285px minmax(0,1fr);gap:22px;max-width:1250px;margin:24px auto;padding:0 18px}.panel,.sheet{background:white;border-radius:12px;box-shadow:0 2px 14px #15253b16;padding:20px}textarea{width:100%;height:240px;resize:vertical;padding:12px;border:1px solid #ccd5df;border-radius:7px;font:14px Arial}select,input,button{font:inherit}button{border:0;border-radius:7px;padding:10px 13px;cursor:pointer;background:#2463a0;color:white}button:hover{filter:brightness(.92)}button:disabled{opacity:.4;cursor:default}.row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.row button{flex:1}label{display:block;font-weight:bold;margin:15px 0 7px}select{width:100%;padding:9px;border:1px solid #ccd5df;border-radius:7px}.muted{font-size:13px;color:#66768a;line-height:1.5}.nav{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:10px}.nav button{font-size:24px;padding:5px 16px}.sheet{max-width:780px;margin:auto}.puzzle{position:relative;width:min(100%,590px);aspect-ratio:1;margin:auto;touch-action:none;user-select:none;border:2px solid #28394e}.cells{display:grid;width:100%;height:100%;grid-template-columns:repeat(20,1fr);grid-template-rows:repeat(20,1fr)}.cell{display:flex;align-items:center;justify-content:center;font-size:clamp(9px,1.4vw,17px);font-weight:700;position:relative;z-index:1;pointer-events:none}.cell.active{background:#20334c40}.cell.found{background:#39aa6860}.puzzle svg{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}.wordlist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 5px;text-align:center;margin-top:18px;font-size:12px}.wordlist span.solved{text-decoration:line-through;color:#249253;font-weight:bold}.status{font-size:13px;color:#56687c;margin-top:12px;min-height:18px}.answer path{stroke:#e36a45;stroke-width:1.4;opacity:.7}.hidden{display:none!important}@media(max-width:850px){main{grid-template-columns:1fr}.panel{order:2}.sheet{order:1}.cell{font-size:clamp(8px,2vw,15px)}}@media print{header,.panel,.nav,.toolbar,.status{display:none!important}main{display:block;margin:0;padding:0}.sheet{box-shadow:none;padding:0}.puzzle{width:475pt}.wordlist{font-size:11pt;gap:1.5pt 2pt}body{background:white}}
header{background:linear-gradient(115deg,#102f51,#235c91 65%,#168b83);padding:20px 28px}header small{font-size:11px;letter-spacing:2px;font-weight:500;opacity:.8;margin-left:12px}.panel,.sheet{box-shadow:0 12px 34px #1c385218;border:1px solid #e0eaf3}.panel h2{margin-top:0}.sheet{border-radius:18px}button{font-weight:600;transition:transform .15s,filter .15s}button:hover:not(:disabled){transform:translateY(-1px)}#generate{background:linear-gradient(110deg,#168a70,#24ad89);font-size:16px;padding:13px}.toolbar button{background:#285b88}.toolbar #toggle{background:#168a70}.nav strong{background:white;border-radius:30px;padding:10px 20px;box-shadow:0 2px 12px #1c385215}.nav button{border-radius:50%;width:44px;height:44px;padding:0}.puzzle{border:2px solid #304c67;border-radius:4px;overflow:hidden}.cell{font-size:clamp(11px,calc(230px / var(--n)),21px)}.puzzle[data-size="20"] .cell{font-size:clamp(12px,calc(260px / var(--n)),23px)}.wordlist{gap:3px 5px}.wordlist span{border-radius:4px;padding:1px 0;line-height:1.2}.wordlist span.solved{background:#d9f5e6}.progress{height:9px;background:#e7edf2;border-radius:20px;overflow:hidden;margin-top:9px}.progress>div{height:100%;width:0;background:linear-gradient(90deg,#26b978,#70d69c);transition:width .25s}@media(max-width:500px){header small{display:block;margin:5px 0 0}.wordlist{grid-template-columns:repeat(3,minmax(0,1fr));font-size:11px}.toolbar button{flex-basis:40%}}

#ambient{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
body{background:linear-gradient(145deg,#0b1934,#132b4c 45%,#123e4c);min-height:100vh}
header{position:relative;z-index:1;padding:12px 22px}
main{max-width:1540px;grid-template-columns:270px minmax(0,1fr);gap:15px;margin:12px auto;padding:0 16px;align-items:start}
.panel,.sheet{background:rgba(255,255,255,.965);backdrop-filter:blur(12px)}
.panel{padding:16px}.panel h2{font-size:19px;margin-bottom:10px}.panel label{margin:10px 0 6px}.panel textarea{height:clamp(140px,32vh,330px)}
.sheet{max-width:920px;padding:12px 18px 14px}.nav{margin-bottom:7px}.toolbar{margin:0 0 9px;justify-content:space-between}.toolbar button{flex:initial;padding:10px 16px}
.puzzle{width:min(100%,calc(100vh - 245px),690px);min-width:0;max-width:690px;overflow:hidden;cursor:crosshair;touch-action:none}
.zoom-layer{position:absolute;inset:0;transform-origin:center center;will-change:transform}
.zoom-layer .cells{position:absolute;inset:0}
.zoom-layer svg{position:absolute;inset:0}
.wordlist{margin-top:9px;gap:1px 5px;font-size:clamp(10px,.85vw,13px)}
.wordlist span{padding:0;line-height:1.16}
.status{margin-top:5px;min-height:15px}.progress{margin-top:5px}
.zoom-actions{display:flex;justify-content:center;align-items:center;gap:6px;margin:7px auto 0;font-size:12px;color:#50627a}
.zoom-actions button{padding:3px 10px;background:#e9f0f8;color:#1c4c7b}
#zoomreset{font-size:11px}.nav strong{padding:7px 17px}
@media(max-width:900px){main{grid-template-columns:1fr;max-width:720px}.panel{order:2}.sheet{order:1}.puzzle{width:min(100%,calc(100vh - 220px),640px)}.panel textarea{height:160px}}
@media(max-width:500px){main{padding:0 7px;margin:7px auto}.sheet{padding:10px}.puzzle{width:100%}.wordlist{grid-template-columns:repeat(5,minmax(0,1fr));font-size:clamp(7px,2vw,11px)}.toolbar button{flex:1}}
@media(prefers-reduced-motion:reduce){#ambient{display:none}}

/* V8 responsive game layout */
body{isolation:isolate;background:linear-gradient(145deg,#0b1934,#132b4c 45%,#123e4c)}
#ambient{z-index:0;opacity:1}
header,main{position:relative;z-index:1}
main{max-width:1780px;grid-template-columns:250px minmax(0,1fr);gap:12px;margin:10px auto;padding:0 12px}
.sheet{max-width:none;width:100%;padding:12px}
.play-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,36%);gap:18px;align-items:start}
.grid-column{min-width:0}
.puzzle{width:min(100%,calc(100dvh - 180px),730px);margin:0 auto}
.word-column{min-width:0;align-self:stretch;background:#f6f9ff;border:1px solid #dfe9f5;border-radius:12px;padding:14px 12px;display:flex;flex-direction:column}
.word-column h3{margin:0 0 12px;font-size:16px;color:#254d76}
.word-column .wordlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;text-align:left;margin:0;font-size:clamp(10px,.88vw,13px);align-content:start}
.word-column .wordlist span{overflow-wrap:anywhere;line-height:1.25}
.word-column .status{margin-top:auto;padding-top:12px}
.word-column .progress{margin-top:8px}
@media(min-width:1500px){.play-area{grid-template-columns:minmax(0,1fr) minmax(360px,39%)}.word-column .wordlist{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 10px}}
@media(max-width:1050px){main{grid-template-columns:210px minmax(0,1fr)}.play-area{gap:10px;grid-template-columns:minmax(0,1fr) minmax(190px,36%)}.word-column{padding:10px 8px}.word-column .wordlist{font-size:10px;gap:5px}}
@media(max-width:760px){main{grid-template-columns:1fr}.panel{order:2}.sheet{order:1}.play-area{grid-template-columns:1fr}.puzzle{width:min(100%,calc(100dvh - 220px),650px)}.word-column .wordlist{grid-template-columns:repeat(3,minmax(0,1fr));text-align:center}.word-column .status{margin-top:8px}}
@media(max-width:440px){.word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V10: V8 board layout with creation controls stacked above word list */
main{display:block;width:min(95vw,1490px);max-width:1490px;margin:clamp(14px,2.4vh,28px) auto;padding:0}
main>section{min-width:0}.sheet{padding:clamp(12px,1.35vw,22px);background:rgba(255,255,255,.97)}
.play-area{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(345px,.9fr);gap:clamp(12px,1.6vw,24px);align-items:stretch}
.grid-column{min-width:0}.puzzle{width:min(100%,calc(100dvh - 182px),735px)}
.right-stack{display:flex;flex-direction:column;min-width:0;gap:12px;align-self:stretch}
.right-stack .panel{min-width:0;box-shadow:none;background:#f5f9ff;border:1px solid #dfe9f5;padding:12px 15px}
.right-stack .panel h2{font-size:17px;margin:0 0 6px}
.right-stack .panel label{font-size:12px;margin:7px 0 4px}
.right-stack textarea{height:clamp(84px,15vh,135px);min-height:72px;resize:vertical;font-size:12px;line-height:1.3}
.right-stack select{padding:7px;font-size:12px}.right-stack .row{margin-top:7px}.right-stack #generate{padding:9px}
.right-stack .word-column{flex:1;min-height:180px;padding:12px 14px;overflow:auto}
.right-stack .word-column h3{margin:0 0 8px}
.right-stack .word-column .wordlist{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 9px;font-size:clamp(10px,.78vw,12px)}
.right-stack .word-column .status{margin-top:auto}
.fill-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:7px;flex-wrap:wrap}
#fillHint{font-size:12px;font-weight:700;color:#326b85}
#fillWords{background:#7252a7;padding:7px 9px;font-size:12px}
#fillWords:disabled{opacity:.48;cursor:default}
#fillStatus{font-size:11px;color:#58728d;min-height:12px;margin-top:4px}
#words.is-example{color:#9ca8b6;background:#f7f8fb}
#words:focus{outline:2px solid #20a889;outline-offset:1px}
#info{font-size:11px;line-height:1.25;margin:5px 0 0}
@media(max-width:950px){main{width:96vw}.play-area{grid-template-columns:minmax(0,1fr) minmax(275px,.8fr)}.right-stack .word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.play-area{grid-template-columns:1fr}.puzzle{width:min(100%,calc(100dvh - 230px),650px)}.right-stack .word-column .wordlist{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){.right-stack .word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Small-screen navigation and a reserved future ad area. */
.site-nav{display:flex;gap:18px;align-items:center}.site-nav a{color:#e8f5ff;text-decoration:none;font-weight:700;font-size:13px}.site-nav a:hover{text-decoration:underline}header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}html{scroll-behavior:smooth}#create-panel,#puzzle{scroll-margin-top:20px}

/* V14 responsive and site layout */
.site-nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.site-nav a{color:#fff;text-decoration:none;font-weight:700;font-size:14px}.site-nav a:hover{text-decoration:underline}
.ad-slot{margin:18px auto 10px;max-width:970px;min-height:64px;border:1px dashed #8da5b6;border-radius:10px;background:rgba(255,255,255,.13);color:#c8d7e7;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;padding:12px;pointer-events:none}
.mode-play #create-panel>label[for="words"],.mode-play #words,.mode-play .fill-row,.mode-play #fillStatus{display:none!important}
.play-note{font-size:13px;line-height:1.5;color:#4b637a}
#game-panel{scroll-margin-top:12px}
@media(max-width:760px){main{width:100%;padding:0 8px}.sheet{padding:10px}.play-area{display:flex;flex-direction:column}.grid-column{width:100%}.puzzle{width:min(100%,calc(100dvh - 185px),650px)}.right-stack{width:100%}.toolbar{display:flex;gap:8px}.toolbar button{font-size:12px;padding:9px}.word-column .wordlist{grid-template-columns:repeat(3,minmax(0,1fr))!important}.cell{font-size:clamp(9px,2.25vw,17px)}}
@media(max-width:440px){header{padding:12px 14px}h1{font-size:20px}.puzzle{width:100%}.word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))!important;font-size:11px}.right-stack textarea{height:100px}.nav{gap:8px}}

/* V18 mobile play: full-size puzzle and accessible word drawer */
.mobile-game-actions,.mobile-words-panel{display:none}
@media(max-width:760px){
 body.mode-play main{width:100%;padding:0 7px;margin:6px auto}
 body.mode-play .sheet{padding:8px;border-radius:13px}
 body.mode-play .mobile-game-actions{display:flex;gap:8px;justify-content:space-between;margin:0 0 8px}
 body.mode-play .mobile-game-actions button{flex:1;background:#235f91;color:white;padding:10px 7px;font-size:12px;border-radius:9px}
 body.mode-play .mobile-game-actions #mobileWords{background:#188b79}
 body.mode-play .puzzle{width:min(100%,calc(100dvh - 200px));max-width:100%;aspect-ratio:1/1;touch-action:none}
 body.mode-play .play-area{gap:8px}
 body.mode-play .right-stack>.word-column{display:none}
 body.mode-play .right-stack .panel{padding:9px 12px}
 body.mode-play .right-stack .play-note{display:none}
 body.mode-play .mobile-words-panel:not([hidden]){display:flex;position:fixed;z-index:90;bottom:0;left:0;right:0;max-height:min(65dvh,550px);flex-direction:column;background:#f7faff;border:1px solid #adc8e3;border-radius:20px 20px 0 0;padding:14px 16px 20px;box-shadow:0 -12px 38px #061d4266}
 body.mode-play .mobile-words-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:17px;color:#163e63}
 body.mode-play #closeMobileWords{background:#e2ecf8;color:#173b63;padding:7px 12px}
 body.mode-play .mobile-words-list{overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;font-size:13px;line-height:1.35}
 body.mode-play .mobile-words-list span.solved{text-decoration:line-through;color:#238763;opacity:.65}
 body.mode-play .mobile-words-progress{margin-top:12px;font-weight:700;color:#247c72}
 body.mode-play.fullscreen-game header,body.mode-play.fullscreen-game .nav,body.mode-play.fullscreen-game .toolbar,body.mode-play.fullscreen-game .right-stack,body.mode-play.fullscreen-game .ad-slot,body.mode-play.fullscreen-game .site-footer{display:none!important}
 body.mode-play.fullscreen-game main{margin:0;padding:0;width:100%;max-width:none}
 body.mode-play.fullscreen-game .sheet{border-radius:0;min-height:100dvh;display:flex;flex-direction:column;padding:6px}
 body.mode-play.fullscreen-game .mobile-game-actions{margin:0 0 6px}
 body.mode-play.fullscreen-game .play-area{flex:1;display:flex;justify-content:center;align-items:center}
 body.mode-play.fullscreen-game .grid-column{width:100%;display:flex;flex-direction:column;align-items:center}
 body.mode-play.fullscreen-game .puzzle{width:min(100vw - 12px,100dvh - 115px);height:auto}
}
@media(max-width:400px){body.mode-play .mobile-words-list{font-size:11px}}

/* V19: gentle clue animation; selection letters remain readable. */
.cell.clue-wiggle{z-index:4;animation:clue-wiggle .55s ease-in-out 4;color:#075f48;text-shadow:0 0 7px #ffdf62;font-weight:900}
@keyframes clue-wiggle{0%,100%{transform:rotate(0) scale(1)}25%{transform:rotate(-14deg) scale(1.7)}75%{transform:rotate(14deg) scale(1.7)}}
.clue-status{font-size:12px;color:#16765d;align-self:center}
.lesson-import{margin:12px 0;padding:12px;background:#eaf4fc;border:1px solid #d0e5f5;border-radius:10px}
.lesson-import h3{margin:0 0 8px;font-size:15px}.lesson-import label{margin:8px 0 5px;font-size:12px}
.lesson-import input[type=file]{width:100%;font-size:12px}.lesson-controls{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:8px}.lesson-controls label{flex:0 0 100%;margin:0}.lesson-controls input{width:75px;padding:7px;border:1px solid #ccd5df;border-radius:5px}.lesson-controls button{flex:1}
.lesson-candidates{max-height:180px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 7px;margin-bottom:10px}.lesson-candidates label{font-size:11px;font-weight:400;overflow-wrap:anywhere;margin:0}
@media(prefers-reduced-motion:reduce){.cell.clue-wiggle{animation:none;outline:2px solid #e9ac16;background:#fff3bd}}

/* V20: compact, side-by-side Create actions without widening the right sidebar. */
.mode-create .create-actions-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin:9px 0;align-items:stretch}
.mode-create .create-actions-grid>.lesson-import,.mode-create .create-actions-grid>.generate-panel{min-width:0;margin:0;padding:10px;background:#eaf4fc;border:1px solid #d0e5f5;border-radius:9px}
.mode-create .create-actions-grid>.generate-panel{background:#f1f7f5;border-color:#d4e9e0}
.mode-create .create-actions-grid h3{font-size:13px;margin:0 0 7px;line-height:1.2}
.mode-create .create-actions-grid label{font-size:11px;margin:6px 0 4px}
.mode-create .create-actions-grid .lesson-controls{display:grid;grid-template-columns:52px minmax(0,1fr);gap:5px;margin-top:7px;align-items:center}
.mode-create .create-actions-grid .lesson-controls label{grid-column:1/-1;margin:0}
.mode-create .create-actions-grid .lesson-controls input{width:100%;min-width:0;padding:6px}
.mode-create .create-actions-grid .lesson-controls button{min-width:0;padding:7px 5px;font-size:11px}
.mode-create .create-actions-grid input[type=file]{font-size:10px;max-width:100%;min-width:0}
.mode-create .create-actions-grid input[type=file]::file-selector-button{font-size:10px;max-width:100%;padding:4px 5px}
.mode-create .create-actions-grid .muted{font-size:10px;line-height:1.3;margin:7px 0 0;overflow-wrap:anywhere}
.mode-create .create-actions-grid .fill-row{display:block;margin:0 0 7px}
.mode-create .create-actions-grid #fillHint{display:block;font-size:10px;line-height:1.3;margin-bottom:6px}
.mode-create .create-actions-grid #fillWords{font-size:11px;padding:6px 7px;width:100%}
.mode-create .create-actions-grid select{font-size:11px;padding:6px 2px;max-width:100%}
.mode-create .create-actions-grid .row{margin:7px 0 0}
.mode-create .create-actions-grid #generate{font-size:12px;padding:9px 5px}
.mode-create .create-actions-grid .lesson-preview{grid-column:1/-1}
.mode-create .create-actions-grid .lesson-candidates{grid-template-columns:1fr;max-height:135px}
@media(max-width:420px){.mode-create .create-actions-grid{grid-template-columns:1fr}.mode-create .create-actions-grid .lesson-candidates{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V21: compact Create-page vocabulary list; Play and printed books unchanged. */
@media (min-width: 761px) {
  body.mode-create .right-stack .word-column .wordlist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 7px;
    row-gap: 3px;
    font-size: clamp(9px, .70vw, 12px);
  }
}

/* V22: keep the board prominent while using right-side whitespace for tools. */
header{padding:9px 20px;min-height:51px}
header h1{font-size:21px}
main{margin:5px auto 0}
.sheet{padding:9px 12px 8px}
.play-area{gap:12px}
.right-stack{gap:8px}
.control-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;align-items:stretch}
.control-strip>.panel{min-width:0;padding:10px}
.control-strip>.panel h2{font-size:14px;margin:0 0 5px}
.control-strip .play-note{font-size:11px;margin:4px 0}
.control-strip .panel select{font-size:11px;padding:6px 3px}
.control-strip .panel #generate{font-size:12px;padding:8px 3px}
.control-strip .panel .row{margin:5px 0}
.control-strip .panel #info{font-size:10px;line-height:1.2}
.right-stack .word-column{min-height:0;padding:10px 11px}
.words-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.words-heading h3{margin:0!important}
.quick-actions{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.round-tool{width:52px;height:52px;min-width:52px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;background:linear-gradient(145deg,#245f93,#2e83a5);color:white;box-shadow:0 2px 7px #1539552e;line-height:1.08}
.round-tool .tool-icon{font-size:21px;line-height:23px}
.round-tool .tool-label{font-size:9px;font-weight:700;letter-spacing:.15px}
.round-tool.key-active{background:linear-gradient(145deg,#d45b3b,#ec9662)}
.quick-actions .clue-status{flex-basis:100%;font-size:10px;text-align:center;line-height:1.2}
.timer-panel,.tools-panel{min-width:0;border-radius:11px;background:linear-gradient(150deg,#e7f2fd,#eef9f6);border:1px solid #d4e6f4;padding:10px;display:flex;flex-direction:column;justify-content:center;color:#244c70}
.timer-head{display:flex;align-items:center;gap:4px;font-size:13px;flex-wrap:wrap}
.timer-head>span{font-size:19px}.timer-head strong{flex:1}
#timerToggle{font-size:10px;padding:5px 7px;background:#dde8f2;color:#255278;border:1px solid #bcd0e1}
#timerToggle[aria-pressed=true]{background:#167c71;color:white}
.timer-main{font-size:clamp(25px,2.5vw,38px);font-weight:800;letter-spacing:1px;font-variant-numeric:tabular-nums;text-align:center;padding:8px 0 5px;color:#155e82}
.timer-sub{display:flex;justify-content:space-between;gap:6px;font-size:11px;margin:4px 0;font-variant-numeric:tabular-nums}
.timer-state{font-size:10px;line-height:1.2;text-align:center;color:#648099;margin-top:6px}
.tools-panel h3{font-size:13px;margin:0 0 12px;text-align:center}
.mode-create .tools-panel .quick-actions{gap:8px}
.mode-create .control-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.mode-create .create-actions-grid{gap:5px}
.mode-create .control-strip .lesson-import,.mode-create .control-strip .generate-panel{padding:6px}
.mode-create .control-strip .create-actions-grid h3{font-size:11px}
.mode-create .control-strip .create-actions-grid label{font-size:10px}
.mode-create .control-strip .create-actions-grid #generate{font-size:11px}
.mode-create .control-strip textarea{height:clamp(75px,12vh,115px);min-height:70px}
.mode-create header .nav{margin:0 0 0 auto;gap:7px}
.mode-create header .nav button{width:30px;height:30px;font-size:19px}
.mode-create header .nav strong{padding:6px 10px;font-size:11px;white-space:nowrap;color:#234e73}
.mode-create header .site-nav{margin-left:10px}
.mode-play .right-stack .word-column .wordlist{gap:3px 8px}
.ad-slot{margin-top:5px!important;padding:8px!important;min-height:44px!important}
.letter-celebration{position:fixed;inset:0;z-index:110;pointer-events:none;width:100%;height:100%}
@media(max-width:1100px){.round-tool{width:43px;height:43px;min-width:43px}.round-tool .tool-icon{font-size:18px;line-height:20px}.round-tool .tool-label{font-size:8px}.control-strip{gap:5px}.timer-panel,.tools-panel{padding:7px}}
@media(max-width:950px){.mode-create header .nav{order:3;width:100%;justify-content:center}.mode-create header .site-nav{margin-left:auto}}
@media(max-width:760px){.control-strip{grid-template-columns:1fr 1fr}.mode-create .control-strip{grid-template-columns:1fr 1fr}.words-heading{flex-wrap:wrap}.mode-play .right-stack>.word-column{display:none}.mode-play .timer-panel{min-height:120px}.mode-create .tools-panel{padding:8px}.mode-create .tools-panel .quick-actions{gap:5px}.mode-create .round-tool{width:44px;height:44px;min-width:44px}}
@media(max-width:450px){.control-strip{grid-template-columns:1fr 1fr}.mode-create .control-strip{grid-template-columns:1fr}.mode-create .create-actions-grid{grid-template-columns:1fr 1fr}.mode-create .tools-panel{min-height:85px}.mode-create header .nav{order:3}.timer-main{font-size:24px}.timer-head{font-size:11px}}
@media(prefers-reduced-motion:reduce){.letter-celebration{display:none}}

/* V23 — fuller, friendlier use of the existing sidebar without changing puzzle geometry */
.round-tool{width:66px;height:66px;min-width:66px;box-shadow:0 5px 14px #133f6530;border:2px solid #ffffffb5;transition:transform .18s ease,box-shadow .18s ease}
.round-tool:hover:not(:disabled){transform:translateY(-3px) scale(1.05);box-shadow:0 8px 18px #133f6540}
.round-tool .tool-icon{font-size:26px;line-height:29px}.round-tool .tool-label{font-size:11px}
.round-tool:nth-child(2){background:linear-gradient(145deg,#f0a528,#e0783a)}
.round-tool:nth-child(3){background:linear-gradient(145deg,#218d79,#20b09d)}
.mode-play .right-stack .word-column .wordlist{flex:1;align-content:space-evenly;row-gap:6px;font-size:clamp(11px,.8vw,13px)}
.mode-play .right-stack .word-column .wordlist span{padding:3px 0;line-height:1.25}
.achievements{background:linear-gradient(120deg,#e8f3ff,#effaf3);border:1px solid #d9e7f4;border-radius:12px;padding:11px 13px;margin-top:10px;color:#27506d}
.achievement-title{font-size:12px;font-weight:800;margin-bottom:8px;letter-spacing:.3px}
.achievement-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.achievement-stats>div{background:#ffffffbb;border-radius:9px;padding:7px 2px;display:flex;flex-direction:column;gap:4px}
.achievement-stats span{font-size:10px;color:#57738c}.achievement-stats strong{font-size:17px;color:#205d84;font-variant-numeric:tabular-nums}
.mode-create .tools-panel{justify-content:space-between;gap:12px;padding:15px 13px;background:linear-gradient(155deg,#e8f3ff,#f1faf8)}
.mode-create .tools-panel h3{margin:0;font-size:14px}
.mode-create .tools-panel .quick-actions{justify-content:center;gap:10px}
.mode-create .tools-panel .round-tool{width:66px;height:66px;min-width:66px}
.mode-create .tools-panel .round-tool .tool-icon{font-size:26px;line-height:29px}
.mode-create .tools-panel .round-tool .tool-label{font-size:11px}
.tool-nav{text-align:center}.panel-eyebrow{display:block;font-size:10px;letter-spacing:1.3px;font-weight:800;color:#6a87a1;margin-bottom:8px}
.mode-create .tool-nav .nav{display:flex;justify-content:center;gap:10px;width:auto;order:initial;margin:0}
.mode-create .tool-nav .nav button{width:34px;height:34px;background:#2d80a2;font-size:22px}
.mode-create .tool-nav .nav strong{font-size:12px;padding:9px 13px}
.book-card{background:#fff;border:1px solid #cbdde9;border-radius:13px;padding:13px;box-shadow:0 4px 13px #1b537214}
.book-card-head{display:flex;align-items:center;gap:10px;color:#204d70}.book-illustration{font-size:30px}.book-card-head strong{font-size:17px;display:block}.book-card-head small{font-size:11px;color:#7790a2}
.book-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:13px 0}
.book-metrics>div{display:flex;flex-direction:column;align-items:center;gap:4px;background:#eff5fb;padding:8px 3px;border-radius:8px}
.book-metrics span{font-size:10px;color:#6c8398}.book-metrics strong{font-size:14px;color:#1c587b}
.book-print{width:100%;background:linear-gradient(110deg,#168a70,#24ad89);padding:11px 8px;font-size:13px}
.book-note{display:block;text-align:center;color:#708ba0;font-size:10px;margin-top:8px}
.mode-create header .nav{display:none}
@media(max-width:1100px){.round-tool{width:57px;height:57px;min-width:57px}.mode-create .tools-panel .round-tool{width:57px;height:57px;min-width:57px}.mode-create .tools-panel{padding:9px 7px}.book-card{padding:9px}.book-card-head strong{font-size:14px}}
@media(max-width:760px){.mode-play .right-stack .word-column .wordlist{align-content:start}.mode-create .tool-nav .nav{width:auto;order:initial}.mode-create .tools-panel{gap:12px}.mode-create .tools-panel .quick-actions{gap:9px}}
@media(max-width:450px){.mode-create .tools-panel .round-tool{width:61px;height:61px;min-width:61px}.book-card{max-width:100%}}

/* V24: compact horizontal challenge strip, matched to timer height */
@media(min-width:761px){
.mode-play .control-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
.mode-play .control-strip .achievements{margin:0;padding:9px 10px;min-height:0;justify-content:center;display:flex;flex-direction:column}
.mode-play .achievement-title{font-size:11px;margin-bottom:7px}
.mode-play .achievement-stats{grid-template-columns:1fr;gap:5px;text-align:left}
.mode-play .achievement-stats>div{padding:4px 7px;flex-direction:row;justify-content:space-between;align-items:center;gap:5px}
.mode-play .achievement-stats strong{font-size:14px}
.mode-play .right-stack .word-column .wordlist{align-content:space-evenly}
}
/* V24: single unified create workflow; no empty split-card columns */
.mode-create .creation-workflow{margin-top:8px;padding:10px;border:1px solid #d0e5f5;background:linear-gradient(130deg,#eaf4fc,#f1faf6);border-radius:10px;display:grid;gap:7px}
.mode-create .workflow-heading{font-size:12px;font-weight:800;color:#235475}
.mode-create .workflow-heading span{display:block;font-size:10px;font-weight:500;color:#58748a;margin-top:3px}
.mode-create .creation-workflow label{font-size:11px;margin:0 0 4px}
.mode-create .workflow-upload input[type=file]{font-size:10px;width:100%;max-width:100%}
.mode-create .workflow-upload input[type=file]::file-selector-button{font-size:10px;padding:3px 5px}
.mode-create .creation-workflow .lesson-controls{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:6px 0 0}
.mode-create .creation-workflow .lesson-controls label{margin:0}
.mode-create .creation-workflow .lesson-controls input{width:53px;min-width:0;padding:5px}
.mode-create .creation-workflow .lesson-controls button{flex:1;font-size:11px;padding:6px 5px}
.mode-create .creation-workflow .unit-word{font-size:10px;color:#52728c}
.mode-create .creation-workflow .muted{font-size:10px;line-height:1.25;margin:3px 0}
.mode-create .workflow-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;border-top:1px solid #d2e3ed;padding-top:8px}
.mode-create .workflow-bottom>div{min-width:0}
.mode-create .workflow-bottom select{width:100%;font-size:11px;padding:6px 3px}
.mode-create .workflow-fill button{width:100%;font-size:10px;padding:7px 3px;background:#7252a7}
.mode-create .workflow-hint,.mode-create #fillStatus{font-size:10px;line-height:1.3;color:#50718b;min-height:0;margin:0}
.mode-create .workflow-generate{width:100%;font-size:12px!important;padding:9px!important;background:linear-gradient(110deg,#168a70,#24ad89)}
.mode-create .creation-workflow .lesson-preview{background:white;border-radius:8px;padding:6px;max-height:180px;overflow:auto}
.mode-create .creation-workflow .lesson-candidates{grid-template-columns:repeat(2,minmax(0,1fr));max-height:105px}
.mode-create .control-strip textarea{height:clamp(80px,12vh,112px)}
@media(max-width:760px){.mode-play .control-strip .achievements{grid-column:1/-1;margin:0}.mode-play .achievement-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){.mode-create .workflow-bottom{grid-template-columns:1fr}}

/* V25: keep document review inside the original, fixed-height word editor. */
.mode-create .vocab-editor{position:relative;height:clamp(80px,12vh,112px);min-height:80px;min-width:0;overflow:hidden;border-radius:7px}
.mode-create .vocab-editor #words{height:100%!important;min-height:0!important;resize:none;display:block}
.mode-create .vocab-editor .lesson-preview{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;gap:3px;margin:0;padding:5px!important;border:1px solid #b7d7e7;border-radius:7px;background:#fff;max-height:none!important;overflow:hidden}
.mode-create .vocab-editor .lesson-preview[hidden]{display:none!important}
.mode-create .vocab-review-head{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:10px;font-weight:700;color:#285778;flex:none}
.mode-create .vocab-review-head button{padding:2px 6px;font-size:9px;background:#e7eff7;color:#285778}
.mode-create .vocab-editor .lesson-candidates{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 5px;align-content:start;max-height:none!important}
.mode-create .vocab-editor .review-word{display:flex;align-items:center;gap:3px;min-width:0;margin:0;font-size:9px;font-weight:500;line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:pointer}
.mode-create .vocab-editor .review-word input{margin:0;flex:none;width:12px;height:12px}
.mode-create .vocab-editor .review-word span{overflow:hidden;text-overflow:ellipsis}
.mode-create .vocab-add{display:flex;gap:4px;flex:none}
.mode-create .vocab-add input{width:100%;min-width:0;font-size:10px;padding:3px 5px;border:1px solid #cbdbe9;border-radius:4px}
.mode-create .vocab-add button{flex:none;padding:3px 7px;font-size:10px}
.mode-create .creation-workflow,.mode-create .workflow-upload,.mode-create .lesson-controls,.mode-create .workflow-bottom{min-width:0}
.mode-create .creation-workflow{padding:8px;gap:5px}
.mode-create .creation-workflow .lesson-controls{gap:3px;flex-wrap:wrap}
.mode-create .creation-workflow .lesson-controls button{flex:1 1 70px;min-width:0;overflow-wrap:normal;white-space:normal}
.mode-create .creation-workflow .lesson-controls input{width:46px;flex:none}
.mode-create .creation-workflow .workflow-upload input[type=file]{min-width:0;max-width:100%;overflow:hidden}
.mode-create .workflow-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.mode-create .creation-workflow .lesson-controls .unit-word{display:none}.mode-create .workflow-bottom{grid-template-columns:1fr}}

/* V26: ensure vocabulary review text and checkboxes remain visible in the fixed-height editor. */
.mode-create .vocab-editor #lessonCandidates,
.mode-create .vocab-editor #lessonCandidates .review-word,
.mode-create .vocab-editor #lessonCandidates .review-word span {
  color:#20334c !important;
  opacity:1 !important;
  visibility:visible !important;
}
.mode-create .vocab-editor #lessonCandidates .review-word {
  display:flex !important;
  font-size:10px !important;
  line-height:1.4 !important;
  min-height:17px;
  padding:1px 2px;
}
.mode-create .vocab-editor #lessonCandidates .review-word input[type="checkbox"] {
  display:inline-block !important;
  appearance:auto !important;
  accent-color:#159c8c;
  opacity:1 !important;
  visibility:visible !important;
}
.mode-create .vocab-editor #lessonCandidates .review-word:nth-child(even) {
  background:#f3f8fc;
}

/* V27 reversible vocabulary editor toggle, contained within the original box. */
.mode-create .vocab-editor #reviewReopen{position:absolute;right:7px;top:6px;z-index:2;border:1px solid #b7d7e7;border-radius:6px;padding:4px 7px;background:#e8f4fa;color:#18507a;font-size:10px;font-weight:700;cursor:pointer}
.mode-create .vocab-editor #reviewReopen[hidden]{display:none!important}
.mode-create .vocab-editor #words{padding-top:27px!important}

/* V28 countdown controls and mode-specific achievements */
#countdownToggle{border:1px solid #e9b96b;background:#fff2d5;color:#8a520c;border-radius:7px;padding:5px 8px;font-weight:700;cursor:pointer}
#countdownToggle.selected{background:#f4a633;color:#fff;border-color:#e28e1d}
.achievements.challenge-inactive .achievement-stats{opacity:.48}
.timer-head{gap:5px;flex-wrap:wrap}

/* V29 approved two-column Create arrangement */
.mode-create .play-area{grid-template-columns:minmax(0,1fr) minmax(590px,1.1fr)}
.mode-create .v29-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"nav tools" "upload fill" "generate vocab" "difficulty vocab" "book vocab";gap:8px;align-items:stretch}
.v29-card{background:linear-gradient(150deg,#f5f9ff,#edf8f6);border:1px solid #d6e5f0;border-radius:11px;padding:10px;min-width:0}
.v29-card>h3{margin:0 0 7px;color:#285276;font-size:13px}
.v29-nav{grid-area:nav}.v29-tools{grid-area:tools}.v29-upload{grid-area:upload}.v29-fill{grid-area:fill}.v29-generate{grid-area:generate}.v29-difficulty{grid-area:difficulty}.v29-book{grid-area:book}.v29-vocab{grid-area:vocab}
.mode-create .v29-create-grid .nav{margin:0;gap:5px}.mode-create .v29-create-grid .nav button{padding:3px 10px;font-size:20px}.mode-create .v29-create-grid .nav strong{font-size:11px}
.mode-create .v29-card .workflow-upload{padding:0;background:none;border:0}.mode-create .v29-card .workflow-upload label{font-size:11px;margin:0 0 4px}.mode-create .v29-card .lesson-controls{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.mode-create .v29-card .lesson-controls input{width:55px}.mode-create .v29-card #lessonFile{width:100%;font-size:11px;max-width:100%}.mode-create .v29-card .workflow-fill label,.mode-create .v29-card .workflow-size label{display:none}.mode-create .v29-card #fillWords{width:100%;font-size:12px;padding:8px 5px}.mode-create .v29-card #fillHint,.mode-create .v29-card #fillStatus{font-size:10px;line-height:1.25}.mode-create .v29-card #generate{width:100%;padding:10px}.mode-create .v29-card #info{font-size:10px;line-height:1.25;margin:5px 0 0}.mode-create .v29-card select{font-size:11px;padding:7px 2px}
.mode-create .v29-vocab .vocab-editor{height:190px;min-height:190px}.mode-create .v29-vocab>label{font-size:11px;margin:0 0 5px}.mode-create .v29-tools .quick-actions{gap:5px;justify-content:space-around}.mode-create .v29-tools .round-tool{width:52px;height:52px;min-width:52px}.mode-create .v29-tools .tool-icon{font-size:21px;line-height:23px}.mode-create .v29-tools .tool-label{font-size:9px}.mode-create #resetPuzzle{background:linear-gradient(145deg,#9e8cda,#7963bc)}
.mode-create .v29-book .book-card{padding:0;background:transparent;border:0;box-shadow:none}.mode-create .v29-book .book-card-head{display:none}.mode-create .v29-book .book-metrics{margin:0 0 6px}.mode-create .v29-book .book-print{font-size:11px;padding:7px}.mode-create .v29-book .book-note{font-size:9px}
.mode-create .right-stack>.word-column{min-height:130px;flex:none}.mode-create .right-stack>.word-column .wordlist{grid-template-columns:repeat(4,minmax(0,1fr))}
.mode-play .control-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mode-play .control-strip>.v29-play-tools{grid-column:2}.mode-play .v29-play-tools .quick-actions{justify-content:space-around}.mode-play #restartTimer{align-self:center;width:52px;height:52px;min-width:52px;margin:7px auto 0;background:linear-gradient(145deg,#9e8cda,#7963bc)}.mode-play #restartTimer .tool-icon{font-size:20px;line-height:22px}.mode-play #restartTimer .tool-label{font-size:9px}
@media(max-width:1190px){.mode-create .play-area{grid-template-columns:minmax(0,1fr) minmax(460px,1fr)}}
@media(max-width:900px){.mode-create .play-area{grid-template-columns:1fr}.mode-create .v29-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.mode-create .v29-create-grid{grid-template-columns:1fr;grid-template-areas:"nav" "tools" "upload" "fill" "generate" "difficulty" "book" "vocab"}.mode-play .control-strip>.v29-play-tools{grid-column:auto}}

/* V30 compact Create layout — aligned with the puzzle and user's approved arrangement */
.mode-create .v29-create-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"nav tools" "upload fill" "pair vocab";align-items:start;gap:7px}
.mode-create .v29-create-grid>.v29-card{min-height:0}
.mode-create .v29-upload{padding:8px 10px}
.mode-create .v29-upload>h3{margin-bottom:3px}
.mode-create .v29-upload .workflow-upload>label{display:none}
.mode-create .v29-upload #lessonFile{font-size:10px}
.mode-create .v29-upload .lesson-controls{margin-top:3px;gap:5px}
.mode-create .v29-upload #extractLesson[hidden],.mode-create .v29-upload #lessonStatus[hidden]{display:none!important}
.mode-create .v29-fill{padding:8px 10px}
.mode-create .v29-fill>h3{margin-bottom:5px}
.mode-create .v29-fill #fillWords{padding:6px 5px;font-size:11px}
.mode-create .v29-fill .book-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:7px 0 0}
.mode-create .v29-fill .book-metrics>div{padding:5px 3px;min-width:0}
.mode-create .v29-fill .book-metrics span{font-size:9px}
.mode-create .v29-fill .book-metrics strong{font-size:12px}
.mode-create .v30-pair{grid-area:pair;display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0;align-items:stretch}
.mode-create .v30-pair .v29-card{min-width:0;padding:8px 7px;display:flex;flex-direction:column;justify-content:flex-start}
.mode-create .v30-pair .v29-card>h3{font-size:11px;min-height:28px;margin:0 0 5px}
.mode-create .v30-pair #generate{width:100%;font-size:11px!important;padding:7px 3px!important;white-space:normal}
.mode-create .v30-pair #count{width:100%;font-size:10px;padding:7px 1px;min-width:0}
.mode-create .v30-pair #info{font-size:9px;overflow-wrap:anywhere}
.mode-create .v29-vocab{padding:8px 10px;align-self:start}
.mode-create .v29-vocab>h3{margin:0 0 4px}
.mode-create .v29-vocab>label{font-size:10px;line-height:1.2;margin:0 0 4px}
.mode-create .v29-vocab .vocab-editor{height:150px;min-height:150px}
.mode-create .right-stack>.word-column{margin-top:7px;min-height:110px}
@media(max-width:520px){.mode-create .v29-create-grid{grid-template-columns:1fr;grid-template-areas:"nav" "tools" "upload" "fill" "pair" "vocab"}}

/* V31: compact left workflow, navigation/tools on right, word list below. */
.mode-create .v29-create-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 grid-template-areas:"upload nav" "fill tools" "difficulty vocab" "generate vocab"!important;
 gap:7px!important;align-items:start!important
}
.mode-create .v29-nav{grid-area:nav}
.mode-create .v29-tools{grid-area:tools}
.mode-create .v29-upload{grid-area:upload}
.mode-create .v29-fill{grid-area:fill}
.mode-create .v29-difficulty{grid-area:difficulty}
.mode-create .v29-generate{grid-area:generate}
.mode-create .v29-vocab{grid-area:vocab;align-self:start!important}
.mode-create .v29-tools .quick-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:2px!important;align-items:center!important}
.mode-create .v29-tools .round-tool{width:49px!important;height:49px!important;min-width:49px!important;flex:0 0 49px!important}
.mode-create .v29-tools #clueStatus{display:none!important}
.mode-create .v29-nav{padding:7px 10px!important}
.mode-create .v29-nav .panel-eyebrow{display:none}
.mode-create .v29-nav>h3{margin-bottom:3px!important}
.mode-create .v29-tools{padding:7px 9px!important}
.mode-create .v29-tools>h3{margin-bottom:5px!important}
.mode-create .v29-upload{padding:7px 9px!important}
.mode-create .v29-upload>h3{margin-bottom:3px!important}
.mode-create .v29-fill{padding:7px 9px!important}
.mode-create .v29-fill>h3{margin-bottom:4px!important}
.mode-create .v29-fill .book-metrics{margin-top:5px!important}
.mode-create .v29-vocab{padding:7px 9px!important}
.mode-create .v29-vocab .vocab-editor{height:150px!important;min-height:150px!important}
.mode-create .v29-vocab #words{height:100%!important;min-height:0!important}
.mode-create .v29-generate,.mode-create .v29-difficulty{padding:7px 9px!important}
.mode-create .v29-generate #generate{padding:7px!important;font-size:11px!important}
.mode-create .v29-generate #info{font-size:10px;margin:3px 0 0}
.mode-create .v29-difficulty>h3{margin-bottom:5px}
.mode-create #count.v31-hidden-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.v31-size-buttons{display:flex;justify-content:space-around;gap:6px}
.v31-size-btn{width:64px;height:64px;border-radius:50%;background:linear-gradient(145deg,#337ca8,#215e89);color:white;font-size:11px;font-weight:800;cursor:pointer;box-shadow:0 2px 7px #17395630}
.v31-size-btn[aria-pressed="true"]{background:linear-gradient(145deg,#23b7a2,#0c8579);outline:3px solid #b9f0e7}
.mode-create .right-stack>.word-column{flex:1 1 auto!important;min-height:130px!important;margin-top:0!important}
.mode-create .right-stack{align-self:stretch!important;gap:7px!important}
@media(max-width:760px){.mode-create .v29-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.mode-create .v29-create-grid{grid-template-columns:1fr!important;grid-template-areas:"nav" "tools" "upload" "fill" "difficulty" "generate" "vocab"!important}}

/* V32: merged navigation and tools with vocabulary directly underneath. */
.mode-create .v29-create-grid{grid-template-areas:"upload navtools" "fill vocab" "difficulty vocab" "generate vocab"!important;align-items:start!important;gap:7px!important}
.mode-create .v32-nav-tools{grid-area:navtools;display:flex;flex-direction:column;gap:3px;padding:7px 9px!important}
.mode-create .v32-nav-tools>h3{margin:0 0 1px!important;font-size:12px!important}
.mode-create .v32-nav-tools .tool-nav{padding:0!important;margin:0!important;min-height:0!important}
.mode-create .v32-nav-tools .panel-eyebrow{display:none!important}
.mode-create .v32-nav-tools .nav{padding:0!important;margin:0 auto 4px!important;min-height:0!important}
.mode-create .v32-nav-tools .quick-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:3px!important;padding:0!important;margin:0!important}
.mode-create .v32-nav-tools .round-tool{width:49px!important;height:49px!important;min-width:49px!important;flex:0 0 49px!important}
.mode-create .v32-nav-tools #clueStatus{display:none!important}
.mode-create .v29-vocab{grid-area:vocab;align-self:stretch!important;min-height:0!important}
.mode-create .v29-vocab .vocab-editor{height:195px!important;min-height:195px!important}
.mode-create .v29-vocab #words{height:100%!important;min-height:0!important}
@media(max-width:520px){.mode-create .v29-create-grid{grid-template-areas:"navtools" "upload" "fill" "difficulty" "generate" "vocab"!important}}

/* V33: let the vocabulary input fill its card vertically, removing dead space. */
.mode-create .v29-vocab{display:flex!important;flex-direction:column!important;min-height:0!important}
.mode-create .v29-vocab .vocab-editor{flex:1 1 auto!important;height:auto!important;min-height:195px!important;display:flex!important;flex-direction:column!important;margin-bottom:0!important}
.mode-create .v29-vocab #words{flex:1 1 auto!important;height:100%!important;min-height:0!important;resize:none}
.mode-create .v29-vocab #lessonPreview:not([hidden]){flex:1 1 auto!important;min-height:0!important}

/* V34 compact controls */
.mode-create .v29-upload{min-height:0!important;align-self:stretch!important}
.mode-create .v34-upload-layout{display:grid;grid-template-columns:minmax(0,1fr) 88px;align-items:center;gap:8px;min-height:100px}
.mode-create .v34-upload-inputs{min-width:0}
.mode-create #lessonCount{width:84px!important;min-width:84px!important;font-size:15px!important;font-variant-numeric:tabular-nums!important}
.mode-create #fillWords.v34-fill-round{display:flex!important;align-items:center;justify-content:center;text-align:center;width:84px!important;height:84px!important;border-radius:50%!important;line-height:1.25!important;font-size:11px!important;font-weight:800!important;padding:10px!important;white-space:normal!important;background:linear-gradient(145deg,#8f67c2,#6846a1)!important;color:#fff!important;box-shadow:0 3px 10px #392b5e30!important}
.mode-create #fillWords.v34-fill-round:disabled{opacity:.5!important}
.mode-create .v29-fill{padding:8px 10px!important;min-height:0!important}
.mode-create .v29-fill .workflow-hint{margin:0 0 5px!important}
.mode-create .v29-fill .book-metrics{margin:0!important;gap:7px!important}
.mode-create .v29-fill .book-metrics>div{padding:12px 3px!important;gap:6px!important}
.mode-create .v29-fill .book-metrics span{font-size:12px!important;font-weight:700!important}
.mode-create .v29-fill .book-metrics strong{font-size:21px!important}
.v34-keys-toggle{font-size:14px;font-weight:800;background:#d8f3e9;color:#09634e;border:2px solid #16a085;border-radius:8px;padding:5px 7px;cursor:pointer}
.v34-keys-toggle[aria-pressed="false"]{background:#e0e5ea;color:#728294;border-color:#c2cbd4}
.mode-create .v32-nav-tools{justify-content:center!important}
.mode-create .v32-nav-tools .nav button{width:64px!important;height:64px!important;border-radius:50%!important;font-size:30px!important;display:grid!important;place-items:center!important;padding:0!important}
.mode-create .v32-nav-tools .nav{align-items:center!important;margin-bottom:9px!important}
.mode-create .v32-nav-tools .nav strong{font-size:12px!important}
.mode-create .v32-nav-tools .quick-actions{padding:2px 0!important}
.mode-create .v31-size-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.mode-create .v31-size-btn small{font-size:11px;opacity:.92}
@media(max-width:520px){.mode-create .v34-upload-layout{grid-template-columns:minmax(0,1fr) 84px}}

/* V35: swap navigation-arrow and tool-button sizes in Create. */
.mode-create .v32-nav-tools .nav button{width:46px!important;height:46px!important;min-width:46px!important;font-size:23px!important}
.mode-create .v32-nav-tools .round-tool{width:64px!important;height:64px!important;min-width:64px!important;flex:0 0 64px!important}
.mode-create .v32-nav-tools .round-tool .tool-icon{font-size:26px!important;line-height:29px!important}
.mode-create .v32-nav-tools .round-tool .tool-label{font-size:11px!important}
.mode-create .v32-nav-tools .quick-actions{gap:2px!important}
@media(max-width:520px){.mode-create .v32-nav-tools .round-tool{width:58px!important;height:58px!important;min-width:58px!important;flex-basis:58px!important}}

/* V36: two equal action circles in Upload; repurpose Generate card as sharing controls. */
.mode-create .v29-create-grid{grid-template-areas:"upload navtools" "fill vocab" "difficulty vocab" "growth vocab"!important}
.mode-create .v36-growth{grid-area:growth;padding:8px 10px!important;min-height:0!important}
.mode-create .v34-upload-layout{grid-template-columns:minmax(0,1fr) 140px!important;gap:5px!important;min-height:100px!important}
.mode-create .v36-upload-actions{display:flex;gap:7px;justify-content:flex-end;align-items:center}
.mode-create #fillWords.v34-fill-round,.mode-create #generate.v36-generate-round{width:64px!important;height:64px!important;min-width:64px!important;flex:0 0 64px!important;border-radius:50%!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;box-shadow:0 3px 10px #392b5e30!important;padding:5px!important;font-size:0!important;line-height:1!important;text-align:center!important;cursor:pointer!important}
.mode-create #fillWords.v34-fill-round{background:linear-gradient(145deg,#8f67c2,#6846a1)!important}
.mode-create #fillWords.v34-fill-round::before{content:'✦';font-size:23px!important;line-height:28px!important}
.mode-create #fillWords.v34-fill-round::after{content:'Fill 400';font-size:10px!important;line-height:12px!important;font-weight:800}
.mode-create #generate.v36-generate-round{background:linear-gradient(145deg,#25b9a0,#118f7d)!important}
.mode-create #generate.v36-generate-round .tool-icon{font-size:24px;line-height:28px}
.mode-create #generate.v36-generate-round .tool-label{font-size:10px;line-height:12px;font-weight:800}
.mode-create .v36-growth h3{margin:0 0 7px;font-size:12px}
.mode-create .v36-growth-actions{display:flex;align-items:center;justify-content:space-around;gap:8px}
.mode-create .v36-growth-button{width:64px!important;height:64px!important;min-width:64px!important;flex:0 0 64px!important}
.mode-create .v36-growth-button .tool-icon{font-size:25px!important;line-height:28px!important}
.mode-create .v36-growth-button .tool-label{font-size:10px!important}
.mode-create #sharePuzzle{background:linear-gradient(145deg,#3989b4,#206a97)}
.mode-create #sendToPlay{background:linear-gradient(145deg,#29b59d,#138a77)}
.mode-create #subscribeUpdates{background:linear-gradient(145deg,#9d91b3,#7e7196)}
.mode-create .v36-growth-status{margin:5px 0 0;font-size:10px;color:#59738a;min-height:0}
.mode-create .v36-status-info{font-size:10px!important;margin:4px 0 0!important}
@media(max-width:520px){.mode-create .v29-create-grid{grid-template-areas:"navtools" "upload" "fill" "difficulty" "growth" "vocab"!important}}

/* V37: align Fill and Generate circles with the 64px Puzzle Tools controls.
   Keep both buttons on one line with comfortable horizontal separation. */
.mode-create .v34-upload-layout{
  grid-template-columns:minmax(0,1fr) 202px!important;
  gap:6px!important;
}
.mode-create .v36-upload-actions{
  width:202px!important;
  display:flex!important;
  flex-direction:row!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:0!important;
  padding:0 6px!important;
}
.mode-create .v36-upload-actions #fillWords,
.mode-create .v36-upload-actions #generate{
  width:64px!important;height:64px!important;
  min-width:64px!important;min-height:64px!important;
  flex:0 0 64px!important;
  margin:0!important;
}
@media(max-width:520px){
 .mode-create .v34-upload-layout{grid-template-columns:minmax(0,1fr) 160px!important}
 .mode-create .v36-upload-actions{width:160px!important;padding:0!important}
}

/* V38: exact matching circle sizes and horizontal centerline in Upload card. */
.mode-create .v34-upload-layout{align-items:stretch!important}
.mode-create .v36-upload-actions{align-self:stretch!important;display:flex!important;align-items:center!important;justify-content:space-between!important;transform:translateY(14px);padding:0 6px!important}
.mode-create #fillWords.v34-fill-round,.mode-create #generate.v36-generate-round{box-sizing:border-box!important;width:64px!important;height:64px!important;min-height:64px!important;max-height:64px!important;flex:0 0 64px!important;margin:0!important;padding:4px!important}
.mode-create #fillWords.v34-fill-round{font-size:0!important;line-height:1!important}
.mode-create #fillWords.v34-fill-round::before{content:'+'!important;display:block!important;font-size:19px!important;line-height:20px!important}
.mode-create #fillWords.v34-fill-round::after{content:'Random\A Words'!important;white-space:pre!important;display:block!important;font-size:9px!important;line-height:10px!important}
.mode-create #generate.v36-generate-round .tool-icon{font-size:19px!important;line-height:20px!important}
.mode-create #generate.v36-generate-round .tool-label{font-size:10px!important;line-height:12px!important}
@media(max-width:520px){.mode-create .v36-upload-actions{transform:none!important;padding:0!important}}

/* V39: share and completion dialogs */
.wss-modal{border:1px solid #bed8e6;border-radius:18px;box-shadow:0 18px 70px #071c3588;max-width:min(480px,calc(100vw - 30px));width:100%;padding:20px;background:#f5faff;color:#193e5d}
.wss-modal::backdrop{background:#081b31aa}
.wss-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wss-modal h2{font-size:21px;margin:0}.wss-modal-head button{background:#dcecf6;color:#194b68;border:0;border-radius:50%;width:32px;height:32px;font-size:24px;cursor:pointer}
.wss-modal p{font-size:13px;line-height:1.45}
#wssShareLink{width:100%;padding:10px;border:1px solid #b5d0e1;border-radius:8px;background:white;color:#234b65;font-size:12px}
.wss-modal-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}
.wss-modal-buttons button,.wss-main-cta{padding:12px 8px;border:0;border-radius:9px;background:#188f80;color:white;font-size:12px;font-weight:700;cursor:pointer}
.wss-modal-buttons button:nth-child(even){background:#276f9a}
#wssShareStatus{min-height:20px;color:#476b85}
.wss-finish-stats{display:flex;gap:12px;margin:14px 0}.wss-finish-stats div{flex:1;background:#e3f0f8;padding:12px;border-radius:10px;text-align:center}.wss-finish-stats small{display:block;font-size:11px}.wss-finish-stats strong{display:block;font-size:23px;margin-top:4px}.wss-main-cta{width:100%}

/* V40: make existing header words the navigation, remove redundant right links. */
header h1{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
header .site-brand{color:inherit;text-decoration:none;font-weight:800}
header .site-brand:hover,header .site-brand:focus-visible{color:#d5fff4;text-decoration:underline}
header .site-tagline{display:inline-flex;align-items:center;gap:9px;margin:0;letter-spacing:1.7px}
header .site-tagline a{color:#d9e8f6;text-decoration:none;border-radius:4px;padding:4px 2px;transition:color .15s,background .15s}
header .site-tagline a:hover,header .site-tagline a:focus-visible{color:white;background:#ffffff24;text-decoration:underline}
@media(max-width:500px){header .site-tagline{display:inline-flex;margin:0;gap:6px;letter-spacing:1px;font-size:10px}header h1{gap:7px}}
/* V40: more proportionate share dialog close button. */
.wss-modal-head #wssShareClose{width:28px;height:28px;min-width:28px;padding:0;display:grid;place-items:center;font-size:20px;line-height:1;background:#e4eff7;color:#194b68}
.wss-modal-head #wssShareClose:hover{background:#c8dfea}

/* V42 Play layout: consistent circular size controls and compact 4-column list */
.mode-play .control-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch}
.mode-play .control-strip>.panel,.mode-play .control-strip>.timer-panel,.mode-play .control-strip>.achievements{min-width:0}
.mode-play .control-strip>.achievements{grid-column:1!important;grid-row:2!important}
.mode-play .control-strip>.v42-social{grid-column:2!important;grid-row:2!important}
.mode-play .control-strip>#create-panel{grid-column:1;grid-row:1}
.mode-play .control-strip>.timer-panel{grid-column:2;grid-row:1}
.mode-play .v42-hidden-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.mode-play .v42-difficulties{display:flex;justify-content:space-around;gap:6px;margin:7px 0}
.mode-play .v42-difficulty{display:flex;flex-direction:column;align-items:center;justify-content:center;width:64px;height:64px;min-width:64px;border-radius:50%;background:linear-gradient(145deg,#347ea9,#1e628c);color:white;font-weight:800;cursor:pointer;box-shadow:0 3px 9px #163e632b}
.mode-play .v42-difficulty small{font-size:10px;margin-top:3px}
.mode-play .v42-difficulty[aria-pressed="true"]{background:linear-gradient(145deg,#25b8a3,#118d7d);outline:3px solid #c2efe6}
.mode-play .v42-social{border:1px solid #d4e6f4;border-radius:11px;background:linear-gradient(150deg,#e7f2fd,#eef9f6);padding:9px 12px}
.mode-play .v42-social h3{font-size:12px;margin:0 0 7px;color:#244c70}
.mode-play .v42-social-row{display:flex;justify-content:space-evenly;gap:12px}
.mode-play .v42-social-btn{width:64px;height:64px;min-width:64px}
.mode-play .v42-social-btn:nth-child(2){background:linear-gradient(145deg,#9880cf,#7662b6)}
.mode-play .right-stack>.word-column{min-height:0!important;flex:0 1 auto!important}
.mode-play .right-stack .word-column .wordlist{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-content:start!important;row-gap:4px!important;column-gap:8px!important}
.mode-play .right-stack .word-column .wordlist span{min-width:0;overflow-wrap:anywhere;padding:2px 0!important;line-height:1.2!important}
.mode-play .v42-clue-count{font-size:11px;color:#416581;padding:0 0 6px}
.mode-play #toggle:disabled{filter:grayscale(1);opacity:.38;cursor:not-allowed;transform:none}
@media(max-width:760px){.mode-play .control-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}.mode-play .v42-difficulty{width:52px;height:52px;min-width:52px;font-size:11px}}
@media(max-width:480px){.mode-play .control-strip{grid-template-columns:1fr!important}.mode-play .control-strip>*{grid-column:1!important;grid-row:auto!important}.mode-play .right-stack .word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V43: four compact challenge statistics arranged in two columns. */
.mode-play .control-strip .achievement-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;text-align:left!important}
.mode-play .control-strip .achievement-stats>div{min-width:0;padding:7px 8px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:5px!important}
.mode-play .control-strip .achievement-stats span{font-size:10px!important;white-space:normal}
.mode-play .control-strip .achievement-stats strong{font-size:14px!important;flex-shrink:0}
@media(max-width:480px){.mode-play .control-strip .achievement-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V46 brand assets: compact header and prominent home mark */
header .site-brand{display:inline-flex;align-items:center;gap:10px;vertical-align:middle}
header .brand-icon{display:block;width:42px;height:42px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 3px #0003)}
.home-logo{display:block;width:clamp(110px,14vw,165px);height:auto;aspect-ratio:820/675;object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 4px 9px #123b5230)}
@media(max-width:540px){header .brand-icon{width:32px;height:32px}header .site-brand{gap:6px}}

/* V47: mobile Play layout and full uncropped home mark */
.home-logo{width:clamp(145px,20vw,220px)!important;height:auto!important;aspect-ratio:auto!important;max-height:none!important;object-fit:contain!important;overflow:visible!important}
@media(max-width:760px){
 body.mode-play .right-stack{display:flex!important;flex-direction:column!important;gap:10px!important}
 body.mode-play .right-stack>.word-column{display:block!important;order:0!important;min-height:0!important;padding:12px!important}
 body.mode-play .right-stack>.control-strip{order:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.mode-play .right-stack .word-column .wordlist{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px 10px!important;font-size:12px!important}
 body.mode-play .timer-panel{min-height:0!important;height:auto!important;align-self:stretch!important}
 body.mode-play .control-strip>*{min-height:0!important}
 body.mode-play .control-strip>#create-panel{grid-column:1!important;grid-row:1!important}
 body.mode-play .control-strip>.timer-panel{grid-column:2!important;grid-row:1!important}
 body.mode-play .control-strip>.achievements{grid-column:1!important;grid-row:2!important}
 body.mode-play .control-strip>.v42-social{grid-column:2!important;grid-row:2!important}
}
@media(max-width:480px){
 body.mode-play .right-stack>.control-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.mode-play .control-strip>*{grid-column:auto!important;grid-row:auto!important}
 body.mode-play .control-strip>#create-panel{grid-column:1!important;grid-row:1!important}
 body.mode-play .control-strip>.timer-panel{grid-column:2!important;grid-row:1!important}
 body.mode-play .control-strip>.achievements{grid-column:1!important;grid-row:2!important}
 body.mode-play .control-strip>.v42-social{grid-column:2!important;grid-row:2!important}
 body.mode-play .right-stack .word-column .wordlist{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.mode-play .v42-difficulty{width:42px!important;height:42px!important;min-width:42px!important;font-size:10px!important}
 body.mode-play .v42-social-btn{width:55px!important;height:55px!important;min-width:55px!important}
 body.mode-play .timer-head{flex-wrap:wrap!important;gap:4px!important}
 body.mode-play .timer-main{font-size:26px!important}
 body.mode-play .timer-sub{font-size:11px!important}
 body.mode-play .achievement-stats>div{padding:4px!important}
}

/* V48: full source artwork, preserving the complete wordmark on home */
.home-logo{width:clamp(145px,18vw,205px)!important;height:auto!important;aspect-ratio:auto!important;max-height:none!important;object-fit:contain!important;display:block!important;margin:0 auto 16px!important}
/* Empty dashed reserved inventory, with no public-facing ad copy */
.ad-slot{border:2px dashed rgba(140,166,188,.5)!important;background:transparent!important;min-height:48px!important;color:transparent!important}
.ad-slot:empty{display:block!important}
/* Share has one clear action */
.wss-modal-buttons{display:flex!important;justify-content:center!important}
.wss-modal-buttons #wssCopyLink{width:min(100%,300px)!important}

/* V53: keep Subscribe legible inside its circular buttons, including phones. */
.mode-create #subscribeUpdates .tool-label,
.mode-play #playSubscribe .tool-label {
  font-size:9px!important;line-height:1.05!important;letter-spacing:-.15px!important;
  max-width:90%;white-space:nowrap;
}
@media(max-width:760px){
  .mode-create #subscribeUpdates .tool-label,
  .mode-play #playSubscribe .tool-label {font-size:8px!important;letter-spacing:-.25px!important;}
}

/* V54 informational-page links */
.legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:8px}.legal-links a{color:#dbeafe;text-decoration:underline;text-underline-offset:3px}.legal-links a:hover{color:#fff}
.info-main{width:min(850px,calc(100% - 30px));margin:32px auto 60px;position:relative;z-index:1}.info-panel{background:#fff;color:#24364d;border-radius:18px;padding:clamp(24px,4vw,45px);box-shadow:0 12px 36px #0002;line-height:1.65}.info-panel h1{font-size:clamp(28px,4vw,42px);margin:0 0 16px;color:#193452}.info-panel h2{font-size:21px;margin:25px 0 8px;color:#193452}.info-panel a{color:#075bb0}.info-panel p,.info-panel li{font-size:16px}.info-panel ul{padding-left:24px}.info-footer{text-align:center;padding:16px 12px;color:#cbd5e1;font-size:13px}

/* V60: Keep unlaunched subscription actions out of the interface. */
#playSubscribe[hidden], #subscribeUpdates[hidden] { display: none !important; }

/* V61 play-first homepage and mobile fullscreen timer */
.v61-intro{position:relative;display:flex;justify-content:center;align-items:center;gap:14px;text-align:center;color:#fff;background:linear-gradient(120deg,#194ab5,#276fdc 55%,#6e3dbd);border-radius:18px;padding:15px 20px;margin:0 auto 14px;max-width:1100px;box-shadow:0 8px 24px #0002}
.v61-intro h2{margin:0 0 4px;font-size:clamp(20px,3vw,28px);color:#fff}.v61-intro p{font-size:13px;margin:0 0 10px;color:#eff6ff}.v61-mascot{width:70px;height:78px;object-fit:contain}.v61-choices{display:flex;gap:12px;justify-content:center}.v61-choices a{background:#fff;color:#17458c;font-weight:800;text-decoration:none;border-radius:25px;padding:8px 16px;font-size:13px}.v61-choices a:last-child{background:#ffdd6a;color:#49307d}
.v61-fullscreen-timer{display:none}.v61-letter-burst{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden;display:grid;place-items:center}.v61-letter-burst span{position:absolute;left:50%;top:50%;font-family:system-ui,sans-serif;font-weight:900;text-shadow:0 2px 4px #0003;animation:v61-fly 2.7s cubic-bezier(.18,.55,.33,1) both;animation-delay:var(--delay)}.v61-burst-title{position:relative;color:#fff;background:#253eaaed;border:3px solid #ffe16d;border-radius:20px;padding:16px 22px;font-size:clamp(19px,5vw,34px);text-align:center;text-shadow:0 2px 5px #0005;box-shadow:0 9px 40px #0005;animation:v61-pop 1.9s both}
@keyframes v61-fly{0%{transform:translate(0,0) rotate(0);opacity:1}75%{opacity:1}100%{transform:translate(var(--x),var(--y)) rotate(var(--rot));opacity:0}}@keyframes v61-pop{0%{transform:scale(.3);opacity:0}18%,75%{transform:scale(1.06);opacity:1}100%{transform:scale(.95);opacity:0}}
@media(max-width:760px){.v61-intro{margin:5px 7px 10px;padding:9px 12px;border-radius:12px}.v61-intro p{font-size:11px}.v61-intro h2{font-size:18px}.v61-mascot{width:42px;height:54px}.v61-choices a{font-size:11px;padding:6px 11px}body.mode-play.fullscreen-game .v61-intro{display:none!important}body.mode-play.fullscreen-game .v61-fullscreen-timer:not(.v61-timer-off){display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:10px;min-height:43px;border-radius:14px;margin:4px auto 5px;padding:4px 15px;background:#173a75;color:#fff;box-shadow:0 3px 12px #0002}body.mode-play.fullscreen-game .v61-fullscreen-timer strong{font-size:24px;font-variant-numeric:tabular-nums}body.mode-play.fullscreen-game .v61-fullscreen-timer small{font-size:10px;max-width:130px;line-height:1.2}body.mode-play.fullscreen-game .puzzle{width:min(100vw - 12px,100dvh - 166px)!important}}
@media(prefers-reduced-motion:reduce){.v61-letter-burst span,.v61-burst-title{animation:none!important}.v61-letter-burst span{display:none}}

/* V62: educational resources appear after, never ahead of, the puzzle tools */
.learning-section{max-width:1120px;margin:36px auto 24px;padding:26px 28px;background:rgba(9,22,49,.90);border:1px solid rgba(105,174,238,.27);border-radius:20px;color:#e4eefb;line-height:1.65}
.learning-section h2,.learning-section h3{color:#f5f9ff;margin:0 0 12px}.learning-section h3{margin-top:20px}.learning-section p{margin:0 0 12px}.learning-section a,.resource-links a{color:#8bd7ff}.learning-section ul,.learning-section ol{padding-left:22px;margin:8px 0 16px}.resource-links{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.resource-links a{display:inline-block;padding:8px 12px;border:1px solid #4684b4;border-radius:12px;text-decoration:none;background:#102e50}
.guide-main{max-width:920px;margin:28px auto;padding:30px 32px;background:rgba(9,22,49,.94);border:1px solid #32608b;border-radius:20px;color:#e4eefb;line-height:1.75}.guide-main h1,.guide-main h2{color:white}.guide-main h2{margin-top:28px}.guide-main a{color:#90dbff}.guide-main table{border-collapse:collapse;width:100%;margin:14px 0}.guide-main th,.guide-main td{border:1px solid #426080;padding:10px;text-align:left}.guide-main .example{background:#102f52;padding:15px 18px;border-radius:12px}
@media(max-width:680px){.learning-section,.guide-main{padding:18px 16px;margin:20px 10px}.resource-links{flex-direction:column}}
/* Hide unfinished subscription controls until a mailing-list service is active. */
#playSubscribe,#createSubscribe,#v42SubscribeDialog,[id$="Subscribe"]{display:none!important}

/* V63: instructional welcome and prominent create action */
.v61-intro{min-height:86px;max-width:1100px;padding:15px 22px;transition:opacity .22s ease,max-height .25s ease,padding .25s ease,margin .25s ease;overflow:hidden}
.v61-intro .v63-intro-copy{max-width:920px}
.v61-intro h2{font-size:clamp(19px,2.4vw,27px);margin:0 0 5px}
.v61-intro p{font-size:clamp(12px,1.15vw,15px);line-height:1.4;margin:0}
.v61-intro.v63-dismissed{opacity:0;max-height:0;min-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;pointer-events:none}
body.mode-play .v42-social-row{display:flex!important;align-items:center!important;justify-content:space-around!important;gap:12px!important;flex-wrap:nowrap!important}
body.mode-play .v63-create-action{display:flex;align-items:center;justify-content:center;flex:1;min-height:57px;padding:9px 13px;background:linear-gradient(135deg,#f9b72b,#ffd86b);border-radius:16px;color:#392b16;text-decoration:none;font-size:clamp(15px,1.6vw,20px);font-weight:850;box-shadow:0 4px 12px #0002;text-align:center;white-space:nowrap}
body.mode-play .v63-create-action:hover{filter:brightness(1.07)}
body.mode-play .v42-social-btn{flex-shrink:0}
@media(max-width:620px){body.mode-play .v63-create-action{font-size:14px;min-height:48px;padding:7px 8px}.v61-intro{min-height:70px}}

/* V64: playful but dismissible intro */
.v64-animated-intro{display:flex;align-items:center;justify-content:center;gap:22px;min-height:100px;overflow:hidden}
.v64-intro-icon{width:72px;height:72px;object-fit:contain;flex:none;animation:v64Float 3s ease-in-out infinite}
.v64-icon-right{animation-delay:-1.5s}
.v64-animated-intro .v63-intro-copy{flex:1;max-width:850px}
@keyframes v64Float{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-9px) rotate(5deg)}}
@media(max-width:680px){.v64-intro-icon{width:42px;height:42px}.v64-animated-intro{gap:8px;min-height:74px}}
@media(prefers-reduced-motion:reduce){.v64-intro-icon{animation:none}}
/* V64: contextual Create help, not a modal */
.v64-help-launcher{position:fixed;right:16px;top:42%;z-index:1200;border:1px solid #d7eaff;background:#145aa4;color:#fff;padding:12px 16px;border-radius:18px 0 0 18px;box-shadow:0 5px 20px #061b4280;font-weight:800;font-size:16px;cursor:pointer}
.v64-help-launcher:hover,.v64-help-launcher:focus-visible{background:#0b79bf;outline:2px solid #b4eaff;outline-offset:2px}
.v64-help-bubble{position:fixed;z-index:1202;width:min(340px,calc(100vw - 24px));background:#f8fcff;color:#15395d;border:2px solid #168cd0;border-radius:16px;box-shadow:0 12px 35px #00152a70;padding:14px;top:calc(42% + 48px);right:16px;font-size:15px;line-height:1.45}
.v64-help-bubble[hidden]{display:none}
.v64-help-top,.v64-help-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
.v64-help-top strong{font-size:17px}.v64-help-top button{background:transparent;color:#184d78;border:0;font-size:25px;cursor:pointer;padding:0 5px}
.v64-help-bubble p{margin:12px 0}.v64-help-actions button{background:#0e7eb5;color:#fff;border:0;border-radius:10px;padding:9px 13px;font-weight:700;cursor:pointer}
.v64-help-actions small{color:#46657d}
.v64-help-target{position:relative!important;z-index:1201!important;outline:4px solid #ffbf37!important;outline-offset:4px;box-shadow:0 0 0 8px #ffbf3738,0 0 32px #ffc34499!important;transition:outline-color .2s}
.v64-help-target::after{content:'➜';position:absolute;right:10px;top:-39px;font-size:36px;color:#ffcb42;text-shadow:0 2px 3px #1b3d61;pointer-events:none;animation:v64Arrow 1s ease-in-out infinite}
@keyframes v64Arrow{0%,100%{transform:translateY(-7px) rotate(90deg)}50%{transform:translateY(2px) rotate(90deg)}}
@media(max-width:700px){.v64-help-launcher{top:auto;bottom:18px;right:0}.v64-help-bubble{top:auto;bottom:72px;right:8px}.v64-help-target::after{font-size:28px}}
@media(prefers-reduced-motion:reduce){.v64-help-target::after{animation:none}}
