:root{--paper:#f7f8f2;--white:#fffefa;--ink:#253d34;--muted:#7e8b80;--green:#417c60;--dark:#284c3d;--lime:#d9edb5;--line:#e1e6dc;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.38}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #7aab76;outline-offset:4px}button svg,svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none}p{line-height:1.75}h1,h2,h3,p{margin-top:0}.skip-link{position:fixed;top:-80px;left:20px;background:var(--dark);color:white;padding:15px;z-index:100}.skip-link:focus{top:10px}
.sidebar{width:218px;position:fixed;inset:0 auto 0 0;background:#f0f3eb;border-right:1px solid var(--line);padding:38px 22px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;margin:0 6px 48px;font-size:27px;font-weight:650;letter-spacing:3px}.brand small{display:block;font-size:8px;letter-spacing:2.1px;font-weight:500;margin-top:5px}.brand-mark{display:grid;grid-template-columns:repeat(2,12px);gap:4px;transform:rotate(-5deg)}.brand-mark i{height:12px;border-radius:2px;background:var(--dark)}.brand-mark i:last-child{background:#a4be8b}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 15px;margin:5px 0;border-radius:9px;font-size:13px;color:#6c7b6d;transition:background .18s,color .18s}.nav-link.active{color:var(--dark);background:#e0e9d9;font-weight:600}.nav-link:hover{background:#e6ebdf}.nav-link svg{width:18px;height:18px}.nav-link .count{margin-left:auto;font-size:11px;opacity:.7}.nav-caption{font-size:9px;letter-spacing:1.8px;color:#9ba593;margin:34px 14px 14px;font-weight:500}.nav-link.category-link{padding:10px 15px;gap:11px;font-size:12px}.category-dot{width:6px;height:6px;border-radius:50%;background:#91ad87}.sidebar-bottom{margin-top:auto;font-size:10px;color:#6a7b68;padding:30px 9px 0;line-height:1.8}.sidebar-bottom p{font-size:9px;color:#a1aa9a;margin:3px 0 15px}.online-dot{display:inline-block;width:5px;height:5px;background:#79a36a;border-radius:50%;margin-right:6px}#side-stats{border-top:1px solid #dbe2d3;padding-top:15px;color:#91a087}.app-shell{margin-left:218px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 44px}.topbar-label{font-size:11px;letter-spacing:1px;color:#8c9789}.topbar-right{display:flex;align-items:center;gap:20px}.search-wrap{display:flex;align-items:center;gap:10px}.search-wrap svg{width:16px;height:16px;fill:none;stroke:#85917f;stroke-width:1.5}.search-wrap input{width:165px;border:0;background:transparent;font-size:11px;outline-offset:5px;color:var(--ink);padding:7px 0}.search-wrap input::placeholder{color:#98a28f}kbd{font-size:10px;font-family:inherit;border:1px solid #dce2d4;border-radius:4px;padding:2px 6px;color:#8b9883}.round-button{border:1px solid #dae2d2;border-radius:50%;width:28px;height:28px;font-family:Georgia,serif;font-size:14px;color:#829177}.mobile-brand{display:none}#main{max-width:1450px;margin:auto;padding:40px 44px 45px;min-height:calc(100vh - 153px);outline:none}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}.eyebrow{font-size:9px;letter-spacing:2.4px;color:var(--muted);font-weight:500;margin-bottom:13px}.page-heading h1{font-size:30px;letter-spacing:1px;font-weight:600;margin:0 0 10px}.page-heading p{font-size:11px;color:var(--muted);margin:0}.date-label{font-size:10px;letter-spacing:1.5px;color:#7f8e78;display:flex;align-items:center;gap:10px;padding-bottom:5px}.date-label:before{content:'';width:22px;height:1px;background:#b5c3a9}.feature{position:relative;overflow:hidden;background:var(--dark);border-radius:15px;min-height:262px;display:flex;color:var(--white);margin-bottom:38px}.feature-copy{padding:32px 35px;position:relative;z-index:2;flex:1}.feature-label{font-size:9px;letter-spacing:1.8px;color:#c7dfb0;display:flex;align-items:center;gap:7px}.feature-label .icon{width:13px;height:13px}.feature h2{font-size:32px;letter-spacing:3px;font-weight:500;margin:20px 0 8px}.feature p{font-size:11px;color:#b9ccb9;margin:0 0 25px}.feature-actions{display:flex;align-items:center;gap:18px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:7px;font-size:11px;padding:12px 19px;transition:background .2s,transform .2s;white-space:nowrap}.button:hover{transform:translateY(-2px)}.button.primary{background:var(--dark);color:white}.button.lime{background:var(--lime);color:var(--dark)}.button.outline{border:1px solid var(--line);background:var(--white)}.button.subtle{color:#ccddc7;padding:10px 0}.button svg{width:15px;height:15px}.feature-art{width:43%;position:relative;align-self:stretch;display:flex;align-items:center;justify-content:center;background:#31533f}.feature-art:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 60% 50%,#53714940,transparent 80%)}.feature-art svg{height:232px;width:232px;position:relative;transform:rotate(-8deg);transition:transform .6s}.feature:hover .feature-art svg{transform:rotate(-4deg) translateY(-3px)}.feature-caption{position:absolute;bottom:13px;right:20px;font-size:8px;letter-spacing:1.3px;color:#93ae8e}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-heading h2{font-size:17px;font-weight:600;letter-spacing:1px;margin:0}.section-heading .tiny{font-size:10px;color:#99a28f}.filter-bar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:23px;gap:15px}.filters{display:flex;align-items:center;gap:25px;overflow-x:auto;scrollbar-width:none}.filter{padding:13px 0;font-size:11px;white-space:nowrap;color:#8b9684;position:relative}.filter.selected{color:var(--dark);font-weight:600}.filter.selected:after{content:'';height:2px;background:var(--green);position:absolute;bottom:0;left:0;right:0}.filter span{font-size:9px;opacity:.65;margin-left:6px}.library-count{color:#9da691;font-size:9px;white-space:nowrap}.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.game-card{position:relative;min-width:0;animation:enter .4s both}.game-card-link{display:block}.game-preview{height:164px;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e9efe1;transition:background .25s}.game-preview svg{height:138px;width:180px;transition:transform .35s cubic-bezier(.2,.65,.3,1)}.game-card-link:hover .game-preview svg{transform:translateY(-3px) rotate(-2deg) scale(1.04)}.game-card-link:hover h3{color:var(--green)}.game-info{padding:15px 1px 5px}.game-info-line{display:flex;align-items:center;justify-content:space-between}.game-info h3{font-size:14px;margin:0;letter-spacing:1px;font-weight:600;transition:color .2s}.game-info .arrow{font-size:18px;color:#a0ad96}.game-info .english{font-size:9px;color:#9ca693;letter-spacing:.5px;margin-top:5px}.game-info p{font-size:10px;color:#83907b;margin:10px 0 0;line-height:1.6}.game-info-footer{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:8px;letter-spacing:.4px;color:#9da68f}.game-info-footer i{font-style:normal;background:#edf0e7;border-radius:4px;padding:4px 7px}.favorite{position:absolute;right:11px;top:11px;z-index:2;width:29px;height:29px;border-radius:50%;background:#fffefaad;display:grid;place-items:center;opacity:0;transition:opacity .2s}.favorite svg{width:14px;height:14px}.favorite.active,.game-card:hover .favorite,.favorite:focus-visible{opacity:1}.favorite.active svg{fill:#577751;color:#577751}.footer{padding:24px 44px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;letter-spacing:.6px;color:#9ba58e}.empty-state{text-align:center;padding:70px 20px;color:#7d8c75}.empty-state svg{width:42px;height:42px;margin-bottom:18px}.empty-state h2{font-size:20px;color:var(--ink)}.empty-state p{font-size:12px}.record-list{border-top:1px solid var(--line)}.record-row{display:flex;gap:18px;align-items:center;padding:21px 0;border-bottom:1px solid var(--line)}.record-row .record-icon{background:#e5eddd;border-radius:9px;width:55px;height:55px;display:grid;place-items:center}.record-row .record-icon svg{width:45px;height:45px}.record-row h3{font-size:14px;margin:0 0 6px}.record-row p{font-size:10px;color:#8a967f;margin:0}.record-row .button{margin-left:auto}.record-status{font-size:10px;color:#578558;margin-left:auto}.record-row .record-status+.button{margin-left:12px}
.back-link{font-size:10px;color:#85917c;display:inline-flex;align-items:center;gap:7px;margin-bottom:25px}.back-link svg{width:13px;height:13px}.play-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.play-heading h1{font-size:28px;font-weight:550;letter-spacing:2px;margin:0 0 8px}.play-heading .english{font-size:10px;color:#93a089;letter-spacing:.6px}.play-heading-right{display:flex;gap:12px;align-items:center}.pill{border:1px solid #d9e2d1;padding:7px 11px;font-size:10px;border-radius:5px;color:#839277}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:32px;align-items:start}.board-area{min-width:0}.board-topline{display:flex;justify-content:space-between;align-items:center;padding:0 3px 15px;font-size:10px;color:#7b8c70}.timer{display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}.timer svg{width:13px;height:13px}.timer button{font-size:10px;padding:3px 6px}.board-surface{position:relative;background:var(--white);border-radius:12px;border:1px solid #e5e9df;overflow:hidden;max-width:700px;margin:auto}.board-surface canvas{display:block;width:100%;height:auto;touch-action:none;outline-offset:-4px}.board-overlay{position:absolute;inset:0;backdrop-filter:blur(12px);background:#f4f6eecc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;z-index:3}.board-overlay h2{font-size:23px;letter-spacing:3px;margin:0}.board-overlay p{font-size:11px;color:var(--muted);margin:0}.board-progress{height:3px;background:#e9eddf;margin:14px 1px 0;border-radius:3px;overflow:hidden}.board-progress span{display:block;height:100%;background:#89ab71;transition:width .3s}.board-help{font-size:10px;color:#8b987f;text-align:center;line-height:1.8;padding:12px 6px 0;min-height:40px;margin:0}.tool-bar{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:15px 0 6px}.tool-button{border:1px solid #dce4d3;border-radius:6px;padding:9px 13px;font-size:10px;background:#fbfcf7}.tool-button.active{background:var(--dark);border-color:var(--dark);color:#fff}.number-pad{display:flex;gap:6px;justify-content:center;margin-top:16px;flex-wrap:wrap}.number-key{flex:1;min-width:30px;max-width:48px;height:43px;border:1px solid #e1e6d8;border-radius:7px;background:#fcfdf8;font-size:19px;color:var(--green)}.number-key.erase{font-size:12px;max-width:60px}.number-key.selected{background:#e4ecdb;border-color:#a4b996}.action-bar{display:flex;justify-content:center;gap:20px;align-items:center;padding-top:19px}.action-button{display:flex;align-items:center;flex-direction:column;gap:7px;padding:7px 9px;font-size:9px;color:#6d7f62}.action-button svg{width:19px;height:19px}.action-button:hover{color:var(--dark)}.action-divider{height:29px;width:1px;background:var(--line);margin:0 3px}.play-inspector{border-left:1px solid var(--line);padding-left:25px}.inspector-section{padding-bottom:25px;margin-bottom:25px;border-bottom:1px solid var(--line)}.inspector-section:last-child{border:0}.inspector-label{display:block;font-size:9px;letter-spacing:1px;color:#929f87;margin-bottom:11px}.level-select,.variant-select{width:100%;background:#fffefa;border:1px solid #dbe4d2;border-radius:6px;color:#47623b;padding:10px;font-size:11px}.inspector-section h2{font-size:13px;font-weight:550;letter-spacing:1px;margin:0 0 17px}.rule-list{list-style:none;counter-reset:rule;padding:0;margin:0}.rule-list li{position:relative;counter-increment:rule;padding-left:24px;font-size:10px;line-height:1.9;color:#7b8c6f;margin-bottom:14px}.rule-list li:before{content:counter(rule,decimal-leading-zero);position:absolute;left:0;top:1px;font-size:8px;color:#a0ae94}.game-note{font-size:10px;line-height:1.9;color:#8d9a82;margin:0}.keyboard-notes{display:grid;grid-template-columns:auto 1fr;gap:12px;font-size:9px;color:#8c9a7f;align-items:center}.keyboard-notes kbd{justify-self:start;font-size:8px;background:#eff3e8}.inspector-foot{font-size:9px;color:#a2ad96;line-height:1.8}.board-toast{font-size:10px;color:#557e43;text-align:center;min-height:18px;margin:8px 0 0}#toast{position:fixed;bottom:30px;left:calc(50% + 109px);transform:translate(-50%,15px);background:var(--dark);color:#f5f8ef;padding:13px 22px;border-radius:9px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(500px,90vw);line-height:1.6}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #dfe6d7;background:var(--white);color:var(--ink);border-radius:18px;padding:36px;width:min(440px,calc(100vw - 32px));box-shadow:0 24px 120px #18392122}dialog::backdrop{background:#23392c55;backdrop-filter:blur(4px)}.dialog-eyebrow{font-size:9px;letter-spacing:2px;color:#91a17f;margin-bottom:15px}.dialog-title{font-size:26px;letter-spacing:1px;margin-bottom:15px;font-weight:550}.dialog-text{font-size:12px;color:#849078;line-height:1.9}.dialog-buttons{display:flex;gap:10px;margin-top:27px}.dialog-buttons .button{flex:1}.dialog-close{position:absolute;right:16px;top:12px;font-size:23px;color:#8c9e7c}.win-symbol{display:block;text-align:center;font-size:36px;color:#648d4a;margin-bottom:20px;animation:celebrate .7s ease-out}.success-dialog{text-align:center}.result-stats{display:flex;justify-content:center;gap:40px;margin:25px 0}.result-stats strong{display:block;font-size:22px;font-weight:500;color:#486d3b}.result-stats span{display:block;font-size:9px;color:#99a589;margin-top:6px}.about-link{text-decoration:underline;color:var(--green)}
@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes celebrate{0%{transform:scale(.3) rotate(-25deg);opacity:0}65%{transform:scale(1.16) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
@media(min-width:1500px){#main{padding:48px 64px 55px}.game-preview{height:190px}.game-preview svg{height:155px;width:200px}.feature{min-height:285px}.feature-copy{padding:40px}.feature-art svg{height:255px;width:255px}}
@media(max-width:1180px){.sidebar{width:185px;padding:30px 15px}.app-shell{margin-left:185px}.topbar{padding:0 30px}#main{padding:32px 30px}.game-grid{gap:22px 18px}.play-layout{gap:22px;grid-template-columns:minmax(0,1fr) 195px}.play-inspector{padding-left:18px}.feature h2{font-size:28px}.feature-art{width:40%}#toast{left:calc(50% + 92px)}}
@media(max-width:960px){.sidebar{width:165px;padding:29px 11px}.brand{margin-left:7px;font-size:24px;gap:10px}.brand-mark{grid-template-columns:repeat(2,10px);gap:3px}.brand-mark i{height:10px}.brand small{font-size:7px;letter-spacing:1.5px}.app-shell{margin-left:165px}.topbar{height:75px;padding:0 25px}#main{padding:30px 25px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px}.feature-copy{padding:27px}.feature-art svg{width:195px;height:195px}.feature-art{width:39%}.feature h2{font-size:27px}.feature p{font-size:10px}.feature-actions{gap:12px}.feature-actions .button{padding:11px 14px;font-size:10px}.feature-actions .button.subtle{padding:10px 0}.play-layout{grid-template-columns:1fr}.play-inspector{border-left:0;padding:25px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1.4fr;gap:25px}.inspector-section{margin:0}.keyboard-section,.inspector-foot{display:none}.footer{padding:23px 25px}#toast{left:calc(50% + 82px)}}
@media(max-width:700px){.sidebar{position:sticky;inset:auto;top:0;width:100%;height:55px;padding:0 16px;display:block;border-right:0;border-bottom:1px solid var(--line);background:#f0f3ebf5;backdrop-filter:blur(12px)}.sidebar .brand,.nav-caption,.category-link,.sidebar-bottom{display:none!important}#side-nav{height:100%;display:flex;align-items:center;justify-content:space-around}.nav-link{padding:10px 9px;margin:0;gap:7px;font-size:11px;border-radius:7px}.nav-link svg{width:15px;height:15px}.nav-link .count{display:none}.app-shell{margin-left:0}.topbar{height:76px;padding:0 22px;border-bottom:0}.mobile-brand{display:block;font-size:24px;font-weight:600;letter-spacing:2px}.mobile-brand span{display:block;font-size:6px;letter-spacing:1.5px;margin-top:3px}.topbar-label{display:none}.topbar-right{gap:14px}.search-wrap input{width:122px;font-size:10px}.search-wrap kbd{display:none}.round-button{width:25px;height:25px}#main{padding:17px 22px 35px;min-height:calc(100vh - 190px)}.page-heading{margin-bottom:24px}.page-heading h1{font-size:26px;margin-bottom:8px}.page-heading p{font-size:10px}.eyebrow{font-size:8px;margin-bottom:10px;letter-spacing:2px}.date-label{font-size:8px;letter-spacing:.5px;align-self:start;margin-top:5px}.date-label:before{display:none}.feature{min-height:235px;margin-bottom:31px;border-radius:12px}.feature-copy{padding:25px 20px}.feature h2{font-size:26px;margin-top:21px;letter-spacing:2px}.feature p{font-size:10px;max-width:165px}.feature-art{width:37%;margin-left:-20px}.feature-art svg{width:160px;height:180px;max-width:none;transform:rotate(-8deg) translateX(9px)}.feature-caption{display:none}.feature-actions{gap:14px}.feature-actions .button.subtle{font-size:9px}.feature-actions .button.lime{font-size:10px;padding:11px 12px}.feature-actions .button svg{width:12px}.feature-label{font-size:8px;letter-spacing:1px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:16px}.section-heading .tiny{font-size:8px}.filters{gap:20px}.filter{font-size:10px;padding:13px 0}.filter span{display:none}.library-count{display:none}.filter-bar{margin-bottom:20px}.game-grid{gap:24px 15px}.game-preview{height:132px;border-radius:8px}.game-preview svg{height:120px;width:150px}.game-info{padding-top:12px}.game-info h3{font-size:13px;letter-spacing:.5px}.game-info .english{font-size:8px;letter-spacing:0}.game-info p{font-size:9px;min-height:29px;margin-top:9px}.game-info-footer{font-size:7px;margin-top:8px}.favorite{opacity:1;width:24px;height:24px;right:8px;top:8px}.favorite svg{width:12px;height:12px}.footer{padding:20px 22px;font-size:8px}.footer span:last-child{font-size:7px;letter-spacing:0}.back-link{margin-bottom:20px}.play-heading h1{font-size:25px}.play-heading .english{font-size:9px}.play-heading-right{gap:7px}.play-heading-right .button{font-size:10px;padding:10px 12px}.pill{display:none}.play-heading{margin-bottom:22px}.board-topline{padding-bottom:12px}.board-surface{border-radius:8px}.play-layout{gap:24px}.board-help{font-size:9px}.action-bar{gap:14px}.action-button{padding:7px 6px}.play-inspector{padding-top:20px;grid-template-columns:1fr;gap:20px}.inspector-section{padding-bottom:20px}.variant-levels{display:grid;grid-template-columns:1fr 1fr;gap:15px}.inspector-section h2{margin-bottom:14px}.rule-list li{margin-bottom:10px}.number-pad{gap:4px}.number-key{min-width:25px;font-size:17px;height:40px}.tool-bar{gap:5px}.tool-button{padding:9px 10px;font-size:9px}#toast{left:50%;bottom:20px;width:max-content;max-width:90vw;font-size:11px}.record-row{gap:12px}.record-row .record-icon{width:42px;height:42px}.record-row h3{font-size:12px}.record-row .button{padding:10px 12px;font-size:10px}.record-status{font-size:9px}.dialog-title{font-size:24px}}
@media(max-width:380px){.topbar,#main{padding-left:16px;padding-right:16px}.feature-copy{padding-left:17px}.feature-art{width:30%}.feature-actions{gap:10px}.feature h2{font-size:24px}.game-grid{gap:22px 12px}.game-preview{height:120px}.game-preview svg{height:106px}.date-label{display:none}.nav-link{font-size:10px;padding:9px 7px}.action-bar{gap:10px}.footer span:last-child{display:none}}
.zoom-controls{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:11px;color:#91a183;font-size:9px}.zoom-controls button{padding:4px 7px;border-radius:4px;font-size:11px}.zoom-controls button:last-child{font-size:9px;border:1px solid #dfe7d5;margin-left:6px}.zoom-controls button:hover,.zoom-controls button.active{background:#e0ead5;color:#3e6133}.board-surface.zoomed{aspect-ratio:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#bcccb0 #f5f8ef}.board-surface:fullscreen{display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;max-width:none;border:0;border-radius:0;background:var(--white)}.board-surface:fullscreen canvas{width:min(100vw,100vh)!important;height:min(100vw,100vh);flex:none}
.clue-cards{width:100%;padding:14px 12px 0}.clue-cards h2{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--ink)}.clue-cards ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0}.clue-card{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px;min-height:40px;padding:8px 7px;border:1px solid #dce4d3;border-radius:8px;background:#f3f6ed;color:var(--ink);font-size:14px;line-height:1.5;text-align:center;overflow-wrap:anywhere}.clue-card strong{font-size:18px;line-height:1;font-weight:600;color:var(--green)}.clue-playfield{width:100%;min-width:0}.clue-board-surface:fullscreen{flex-direction:column;gap:12px;padding:56px 12px 12px;overflow:auto}.clue-board-surface:fullscreen .clue-cards{flex:none;max-width:560px;padding:0}.clue-board-surface:fullscreen .clue-playfield{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:120px;container-type:size}.clue-board-surface:fullscreen canvas{width:min(100cqw,100cqh)!important;height:auto;aspect-ratio:1}.clue-board-surface.zoomed:fullscreen{aspect-ratio:auto}
@media(min-width:560px) and (orientation:landscape){.clue-board-surface:fullscreen{flex-direction:row;align-items:stretch}.clue-board-surface:fullscreen .clue-cards{flex:0 1 260px;align-self:center;max-height:100%;overflow:auto}.clue-board-surface:fullscreen .clue-playfield{width:0;min-height:0}}
.number-key{padding:0;white-space:nowrap}.number-key.erase{min-width:38px;font-size:10px}.playing .topbar{height:72px}.playing #main{padding-top:24px}.playing .back-link{margin-bottom:16px}.playing .play-heading{margin-bottom:18px}.playing .board-surface{max-width:clamp(360px,calc(100svh - 425px),560px)}.playing .board-surface:fullscreen{max-width:none}.playing .board-progress{max-width:560px;margin-left:auto;margin-right:auto}.playing .action-bar{padding-top:13px}.playing .board-help{padding-top:8px;min-height:32px}
@media(max-width:960px){.playing .board-surface{max-width:560px}}
@media(max-width:700px){.playing .topbar{height:56px}.playing #main{padding-top:6px}.playing .back-link{margin-bottom:12px}.playing .play-heading{margin-bottom:16px}.playing .board-surface{max-width:100%}.playing .action-bar{padding-top:12px}.playing .board-help{min-height:28px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.keyboard-access{margin-top:18px;font-size:12px;line-height:1.8;color:#4e6048;border-top:1px solid var(--line);padding-top:12px}
.keyboard-access summary{cursor:pointer;padding:7px 0}.keyboard-access label{display:block}.keyboard-access select{max-width:100%;width:100%;padding:11px;margin:5px 0 10px;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:6px}.keyboard-access .button{margin:0 8px 10px 0}.keyboard-access #clue-notebook{white-space:pre-line;max-height:250px;overflow:auto;line-height:2}
.storage-warning{padding:14px;border:1px solid #be995e;background:#fff4da;color:#6c4c1d;font-size:12px;line-height:1.8;margin-bottom:18px;border-radius:8px}.storage-warning .button{margin:5px;font-size:11px}
:focus-visible{outline:2px solid #386530;outline-offset:3px}
.rule-list li,.board-help,.dialog-text,.game-info p,.game-note,.record-row p,.keyboard-notes,.inspector-foot{color:#52634a}
.game-info .english,.game-info-footer,.inspector-label,.board-topline,.play-heading .english,.back-link,.zoom-controls{color:#586a50}
#import-save{display:block;max-width:100%;margin-top:10px;font-size:12px}.inspector-foot .button{font-size:10px;padding:8px 12px;margin-top:10px}
:where(.legal-page){max-width:720px;margin:0 auto;padding:52px 24px 72px;color:var(--ink)}
.legal-page h1{font-size:clamp(30px,6vw,48px);font-weight:550;letter-spacing:1px;margin:8px 0 14px;color:var(--dark)}
.legal-page h2{font-size:17px;font-weight:600;margin:30px 0 8px;color:var(--dark)}
.legal-page p{font-size:13px;line-height:1.95;color:var(--muted)}
.legal-page .legal-lead{font-size:14px;color:var(--green)}
.legal-page .legal-foot{border-top:1px solid var(--line);margin-top:36px;padding-top:18px;font-size:11px}

/* Visual hall: luminous green geometry and large, direct puzzle entrances. */
.feature{min-height:310px;border:1px solid #5b8d73;background:radial-gradient(ellipse at 15% 0,#285c49,transparent 68%),#122f29;box-shadow:0 18px 40px #163f361a;border-radius:24px;isolation:isolate}.feature-copy{padding:38px;min-width:0}.feature h2{font-size:clamp(28px,3vw,42px);line-height:1.25;letter-spacing:-.5px;max-width:420px}.feature .button.lime{background:#c6f5b9;border-radius:12px;min-height:48px;color:#193e2d;box-shadow:0 4px 22px #b5f5be20}.feature-art{width:46%;background:radial-gradient(ellipse,#64bf8a28,transparent 70%);border-left:1px solid #b8f0c922}.feature-art:before{inset:22px;border-radius:50%;border:1px solid #adf4c333;background:radial-gradient(ellipse,#8ee4aa15,transparent 70%);box-shadow:0 0 50px #7cd9ac12}.feature-art svg{width:270px;height:270px;max-width:95%;filter:drop-shadow(0 18px 12px #061c2733);transform:rotate(-6deg)}.feature-art:focus-visible{outline:3px solid #c6f5b9;outline-offset:-5px}.feature-caption{font-size:26px;color:#c6f5b9;right:20px;bottom:18px}.game-grid{gap:20px}.game-card{border:1px solid #cfdfd4;border-radius:20px;background:#fbfffc;box-shadow:0 7px 20px #1c45360a;overflow:hidden;transition:transform .2s,box-shadow .2s}.game-card:hover,.game-card:focus-within{transform:translateY(-3px);box-shadow:0 14px 30px #1c453619;border-color:#8fb89f}.game-preview{height:200px;border-radius:0;background-image:radial-gradient(ellipse at 50% 0,#fff9,transparent 75%),linear-gradient(#ffffff40 1px,transparent 1px),linear-gradient(90deg,#ffffff40 1px,transparent 1px)!important;background-size:auto,24px 24px,24px 24px!important}.game-preview svg{height:174px;width:220px;filter:drop-shadow(0 10px 8px #1d45351a)}.game-info{padding:16px 18px 8px}.game-info h3{font-size:16px;letter-spacing:0;line-height:1.35}.game-info .arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e1f2e5;color:#2c5a41;flex:0 0 32px}.game-info-footer{font-size:10px;margin-top:6px;flex-wrap:wrap;color:#526b5d;line-height:1.4}.game-info-footer i{background:none;padding:0}.game-info-footer i:after{content:'·';margin-left:7px}.game-card-details{padding:0 18px 8px;color:#536a5b;font-size:12px}.game-card-details summary{cursor:pointer;min-height:44px;align-content:center;font-size:11px}.game-card-details summary:focus-visible{outline:3px solid #997526;outline-offset:1px}.game-card-details p{margin:0 0 10px;line-height:1.6}.favorite{opacity:1;width:44px;height:44px;right:8px;top:8px;border:1px solid #ffffffa0;background:#ffffffe0;backdrop-filter:blur(8px)}.favorite svg{width:17px;height:17px}.game-card-link:focus-visible{outline:3px solid #997526;outline-offset:-4px}.filter{min-height:44px}.round-button{min-width:44px;min-height:44px}
@media(max-width:700px){.feature{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;border-radius:22px}.feature-copy{padding:24px 24px 12px}.feature h2{font-size:30px;margin:12px 0 10px;max-width:none}.feature p{max-width:none;margin-bottom:16px}.feature-art{width:100%;height:220px;margin:0;border-left:0;border-top:1px solid #b8f0c922}.feature-art svg{width:220px;height:220px;transform:rotate(-6deg)}.feature-art:before{inset:12px 20%}.feature-actions{gap:18px}.feature-actions .button.lime{font-size:12px;padding:12px 18px}.feature-actions .button.subtle{min-height:44px;font-size:11px}.game-grid{gap:12px}.game-card{border-radius:16px}.game-preview{height:150px}.game-preview svg{width:164px;height:144px}.game-info{padding:12px 12px 2px}.game-info h3{font-size:13px}.game-info .arrow{width:24px;height:24px;flex-basis:24px;font-size:15px}.game-info-footer{font-size:9px}.game-card-details{padding:0 12px 5px}.game-card-details summary{font-size:10px}.favorite{width:44px;height:44px;right:4px;top:4px}.favorite svg{width:15px;height:15px}}
@media(max-width:380px){.game-preview{height:132px}.game-preview svg{height:126px;width:145px}.feature h2{font-size:28px}.feature-copy{padding:22px 20px 10px}.game-info-footer span{font-size:8px}.game-info .arrow{display:none}}

.feature .feature-copy h2{white-space:normal;overflow-wrap:anywhere;font-size:clamp(28px,3vw,42px);letter-spacing:-.5px}

/* Category selection should expose its content below the sticky mobile navigation. */
#game-library{scroll-margin-top:18px}@media(max-width:700px){#game-library{scroll-margin-top:72px}}
