@import url('../shared/theme.css?v=20261029-visits');
.run-mode{width:min(774px,100%);margin:0 auto 15px;display:flex;align-items:center;gap:22px}.mode-summary{display:flex;flex-direction:column;gap:3px;min-width:175px}.mode-summary strong{width:max-content;font-size:13px;letter-spacing:.3px;color:#3b7151;border:1px solid #d7e5cc;border-radius:20px;padding:4px 10px;background:#eff5e8}.mode-summary span{font-size:12px;color:#73876d}.spell-pressure{flex:1;max-width:420px;padding:9px 14px;border:1px solid #dedfca;border-radius:12px;background:#fffdf2}.pressure-heading{display:flex;justify-content:space-between;color:#8d7944;font-size:11px;font-weight:750;letter-spacing:1px}#pressureValue{font-variant-numeric:tabular-nums;color:#5d6b4a;font-size:12px}.pressure-track{height:7px;margin-top:6px;border-radius:8px;background:#e6ecde;overflow:hidden}.pressure-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#3fc6b4,#7ad3ff);border-radius:inherit;transition:width .3s}.spell-pressure p{margin:5px 0 0;color:#78826c;font-size:12px;line-height:1.4}.spell-pressure.danger .pressure-track i{background:linear-gradient(90deg,#ffb84d,#ff3b5c)}.spell-pressure.danger .pressure-heading span:first-child{color:#c9304c}
.mode-picker{margin:18px 0;border:0;padding:0;text-align:left}.mode-picker legend{font-size:13px;font-weight:750;color:#6b8264;margin-bottom:8px}.mode-picker label{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;margin-top:7px;border:1px solid #dae4d1;border-radius:12px;background:#f4f7ec;cursor:pointer}.mode-picker input{accent-color:#417c4d;margin-top:5px;flex-shrink:0}.mode-picker b{font-size:14px;color:#30573c}.mode-picker small{display:block;font-size:13px;line-height:1.5;color:#6e8265;margin-top:2px}
.hero-card .startup-status{font-size:14px;margin:14px auto 0;line-height:1.6}#startupRecovery a{display:block;margin-top:14px;color:#637e58;font-size:14px}.result-summary{font-size:14px;color:#6e8265;margin:4px 0 14px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.spell-welcome i{border-radius:10px;width:50px;height:52px;font-size:24px;font-weight:900;box-shadow:inset 0 -5px 0 #00000030,inset 0 2px 0 #ffffff70,0 9px 11px -7px #1f544e59}.spell-welcome .wp-prc{color:#173f0b}
.game-layout{display:grid;grid-template-columns:175px minmax(260px,min(400px,calc((100dvh - 390px)*480/720))) 225px;gap:22px;align-items:start;justify-content:center}.board-column{display:flex;flex-direction:column;gap:10px;min-width:0}#gameCanvas{aspect-ratio:480/720;cursor:pointer;touch-action:none}
.word-bar{display:flex;align-items:center;gap:8px;min-height:54px;padding:6px 8px;border:1px solid var(--line);border-radius:14px;background:var(--panel,#fffdf6);box-shadow:0 8px 20px -14px #1f544e80;transition:border-color .2s,background .2s}.word-readout{flex:1;min-width:0;display:flex;align-items:baseline;justify-content:center;gap:10px}#wordText{font:900 24px/1.1 'Avenir Next','Futura',Arial,sans-serif;letter-spacing:2px;color:#3b5948;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#wordNote{font-size:13px;font-weight:800;color:#8d7944;white-space:nowrap;font-variant-numeric:tabular-nums}
.word-bar[data-state="empty"] #wordText{font-size:15px;letter-spacing:.5px;font-weight:700;color:#8a9a86}.word-bar[data-state="valid"]{border-color:#3fbf7a;background:#effbf2}.word-bar[data-state="valid"] #wordText{color:#1f7a47}.word-bar[data-state="valid"] #wordNote{color:#1f7a47}.word-bar[data-state="invalid"]{border-color:#ff8fa3;background:#fff1f3}.word-bar[data-state="invalid"] #wordNote{color:#c9304c}.word-bar.shake{animation:word-shake .35s}
@keyframes word-shake{20%{translate:-6px 0}40%{translate:5px 0}60%{translate:-4px 0}80%{translate:2px 0}}
.word-button{flex-shrink:0;height:40px;min-width:40px;border:0;border-radius:11px;font:800 15px 'Avenir Next',Arial,sans-serif;cursor:pointer}.word-button.clear{background:#e9eee3;color:#5b6f57;font-size:22px;line-height:1}.word-button.play{padding:0 16px;background:var(--accent,#be185d);color:#fff}.word-button.play:disabled{opacity:.35;cursor:default}
.side-panel>.label{display:block}.side-figure{display:block;font-size:26px;font-weight:750;color:var(--forest);font-variant-numeric:tabular-nums;margin:2px 0 14px}.word-figure{font-size:18px;letter-spacing:.5px;overflow-wrap:anywhere}
.tile-key{padding-top:12px;border-top:1px solid var(--line)}.tile-key>div{display:flex;align-items:start;gap:10px;margin-top:10px;font-size:13px;line-height:1.45;color:#7b897a}.tile-key i{position:relative;flex-shrink:0;display:grid;place-items:center;width:26px;height:26px;border-radius:7px;font:900 14px/1 'Avenir Next',Arial,sans-serif;font-style:normal;color:#fff;box-shadow:inset 0 -3px 0 #00000030,inset 0 1px 0 #ffffff70}.tile-key .key-rare{background:var(--pase)}.tile-key .key-rare b{position:absolute;left:-5px;top:-5px;width:15px;height:15px;border-radius:50%;background:#fff6c8;color:#132b24;font-size:10px;display:grid;place-items:center}.tile-key .key-blank{background:#3a4650}
.legend{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.legend>div{display:flex;align-items:start;gap:10px;margin-top:14px;font-size:13px;line-height:1.5;color:#7b897a}.legend i{flex-shrink:0;display:grid;place-items:center;width:18px;height:18px;border-radius:5px;margin-top:1px;color:#fff;font:900 11px/1 'Avenir Next',Arial,sans-serif;font-style:normal;box-shadow:inset 0 -2px 0 #00000030,inset 0 1px 0 #ffffff70}.legend .ir{background:var(--ir)}.legend .ptcd{background:var(--ptcd)}.legend .prc{background:var(--prc);color:#173f0b}.legend .pase{background:var(--pase)}.legend .srp{background:var(--srp)}.legend b{display:block;color:#3b5948;font-size:14px;margin-bottom:2px}
@media(min-width:701px) and (max-height:900px){.game-layout{grid-template-columns:170px minmax(250px,min(360px,calc((100dvh - 360px)*480/720))) 210px}.game-header{margin-bottom:15px}.site-nav{height:70px}}
@media(max-width:850px){.game-layout{grid-template-columns:138px minmax(250px,340px) 175px;gap:14px}.info-panel{padding:16px}.stat strong{font-size:21px}}
@media(max-width:700px){.game-header .subtitle,.spell-pressure p,.mode-summary span,.tile-key{display:none}.game-header{margin-bottom:10px}.game-layout{grid-template-columns:minmax(0,min(calc(max(280px,100dvh - 250px)*480/720),100%));gap:8px;max-width:480px;margin:auto;justify-content:center}.score-panel{display:grid;grid-template-columns:1.4fr 1.4fr .7fr .7fr;gap:6px;padding:10px 13px}.stat,.stat.compact{display:block;width:auto;padding:0;margin:0;border:0}.stat strong,.stat.compact strong{font-size:18px;line-height:1.35;margin-top:3px}.stat small{display:none}.stat .label{font-size:10px}.board-wrap{width:100%}.board-column{gap:8px}.word-bar{min-height:46px;padding:4px 6px}#wordText{font-size:20px}.word-button{height:36px;min-width:36px}.side-panel{display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:baseline;gap:4px 8px;padding:10px 13px}.side-panel>.label{font-size:10px}.side-figure,.word-figure{font-size:14px;margin:0}.legend{grid-column:1/-1;display:flex;justify-content:space-between;padding-top:8px;margin-top:4px}.legend>div{margin:0;gap:5px;align-items:center}.legend span{font-size:0}.legend b{font-size:12px;margin:0}.run-mode{max-width:480px;gap:8px;align-items:stretch;flex-direction:column;margin-bottom:10px}.mode-summary{flex-direction:row;align-items:center;gap:8px;min-width:0}.mode-summary strong{font-size:12px;white-space:nowrap}.mode-summary span{font-size:11px}.spell-pressure{max-width:none;padding:8px 12px}.preview-hint{display:none}.mode-picker label{padding:8px 10px}}
html[data-theme="night"] :is(.spell-pressure){background:#13262c;border-color:#2b4650}html[data-theme="night"] :is(.spell-pressure p,.side-figure,.tile-key>div){color:#cfe3d6}
html[data-theme="night"] .word-bar{background:#13262c;border-color:#2b4650}html[data-theme="night"] #wordText{color:#e6f4ea}html[data-theme="night"] .word-bar[data-state="valid"]{background:#123a2a;border-color:#3fbf7a}html[data-theme="night"] .word-bar[data-state="valid"] :is(#wordText,#wordNote){color:#7dffb0}html[data-theme="night"] .word-bar[data-state="invalid"]{background:#3a1820}html[data-theme="night"] .word-button.clear{background:#20373e;color:#cfe3d6}
