:root{color-scheme:dark;--bg:#101c2b;--panel:#1d324a;--tile:#2b4663;--accent:#ffb86b;--ink:#eef5ff;--muted:#b8cbdf;--line:#456078}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);font:14px/1.55 Arial,"Segoe UI",sans-serif;margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #6485a5;border-radius:6px;padding:10px 13px;color:#fff;background:#345779}button:hover{background:#4a7094}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}a{color:#ffd29c}.game-top{padding:12px max(3%,16px);display:flex;align-items:center;gap:16px;background:#1e344d;border-bottom:1px solid var(--line)}.game-brand{text-decoration:none;color:#fff;font-size:26px;font-weight:900;letter-spacing:-1px}.game-brand span{color:var(--accent)}.game-brand-sub{font-weight:800;color:var(--accent)}.back{margin-left:auto;text-decoration:none;font-size:12px}.game-main{max-width:1280px;margin:0 auto;padding:16px 16px 35px}.hero{border:1px solid #54708e;border-radius:12px;background:linear-gradient(125deg,#274765,#182b42);padding:24px 24px 19px}.hero-kicker{font-size:13px;letter-spacing:1.1px;font-weight:800;color:#ffca88}.hero h1{font-size:clamp(23px,3vw,37px);margin:4px 0 10px}.hero p{color:#d0dcec;margin:0;max-width:870px}.hero-points{margin-top:12px;font-size:12px;color:#ffdeaf}.game-categories{display:flex;gap:7px;overflow-x:auto;padding:16px 0 14px;scrollbar-width:thin}.game-categories button{flex:0 0 auto;white-space:nowrap;background:#29445f;font-size:12px;padding:9px 12px}.game-categories button.active{border-color:#ecb674;color:#ffdfb2;background:#43516d}.game-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.game-card{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:13px;display:flex;flex-direction:column;align-items:flex-start;min-height:168px;gap:8px}.game-card .emoji{font-size:29px}.game-card strong{font-size:15px}.game-card p{font-size:12px;color:var(--muted);margin:0;flex:1}.game-card .play-trigger{font-size:11px;background:#416082;border-color:#65819d;color:#fff;padding:8px 12px;align-self:stretch}.game-card .play-trigger:hover{border-color:#f2b366}.play-area{margin-top:19px;background:#1e344d;border:1px solid #7192b1;border-radius:12px;padding:16px;scroll-margin-top:8px}.play-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #47617d;padding-bottom:11px}.play-head h2{font-size:23px;margin:2px 0}.game-kind{color:#ffbe78;font-size:11px;font-weight:800}.play-head p{color:#c7d5e5;margin:2px 0;font-size:12px}.secondary{background:#324a63;font-size:12px}.game-workspace{padding-top:16px}.game-workspace button{margin:3px}.game-footer{color:#e7c99d;margin-top:10px;font-weight:700;font-size:12px;min-height:22px}.game-panel{border:1px solid #496481;background:#263e57;border-radius:9px;padding:15px;max-width:730px;margin:0 auto}.game-panel h3{font-size:20px;margin:5px 0 12px}.game-panel p{margin:8px 0 12px;color:#e4ebf6}.game-panel .hint{color:#aebfd3;font-size:12px}.game-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.game-actions button{margin:0}.game-panel input{color:#f2f7ff;background:#172a3f;border:1px solid #5d7999;padding:10px;border-radius:6px;max-width:100%}.game-input-row{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.game-input-row input{flex:1;min-width:180px}.game-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.game-choice-grid button{margin:0;text-align:left}.game-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;font-size:12px;color:#ffce9b;margin:4px 0 13px}.game-progress{border:1px solid #67839c;background:#1d334a;border-radius:5px;overflow:hidden;height:9px;margin:12px 0}.game-progress>div{background:#e9b365;height:100%;transition:width .3s}.game-letters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.game-letter{font-weight:bold;padding:7px 9px;border:1px solid #6282a2;border-radius:4px;background:#192f44;min-width:30px;text-align:center}.game-keyboard{display:flex;flex-wrap:wrap;gap:5px}.game-keyboard button{margin:0;min-width:35px;padding:8px;font-weight:bold}.game-keyboard button:disabled{opacity:.38;cursor:default}.gamedraw{display:block;max-width:100%;border-radius:6px;background:#142b40;border:2px solid #5c7995;touch-action:none;margin:0 auto}.gamedraw:focus{outline:2px solid #ffbc72}.touch-dpad{display:grid;grid-template-columns:repeat(3,53px);gap:5px;justify-content:center;margin:11px auto 0}.touch-dpad button{margin:0;padding:9px 0;min-height:42px;touch-action:manipulation}.touch-dpad .up{grid-column:2}.touch-dpad .left{grid-column:1}.touch-dpad .down{grid-column:2}.touch-dpad .right{grid-column:3}.touch-dpad .action{grid-column:1/-1;background:#a05e30}.game-canvas-note{font-size:11px;text-align:center;color:#cfdbeb;margin:10px}.game-board{display:grid;gap:6px;max-width:360px;margin:14px auto}.game-board button{aspect-ratio:1;font-size:28px;margin:0;padding:0;min-width:0}.game-board button:disabled{opacity:1}.game-gamegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:330px;margin:auto}.game-gamegrid button{min-width:0;aspect-ratio:1;font-size:48px;margin:0;background:#263e57}.word-slots{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;font-size:25px;letter-spacing:3px;font-weight:bold;margin:15px 0}.word-slots span{border-bottom:2px solid #e9b879;min-width:23px;text-align:center}.choice-inset{background:#192e43;border:1px solid #3f5b77;padding:12px;border-radius:7px;margin:9px 0}.game-canvas-layout{max-width:760px;margin:auto}.game-canvas-layout .game-meta{max-width:720px;margin:0 auto 8px}.game-word-reveal{font-size:24px;text-align:center;font-weight:bold;letter-spacing:4px;margin:17px 0}.share-btn{font-size:11px}.game-photo{display:block;max-width:100%;width:450px;max-height:240px;object-fit:contain;background:#15283c;border:1px solid #54708d;border-radius:6px;margin:10px auto}.game-faux-photo{width:min(100%,450px);height:180px;border:1px solid #6683a1;border-radius:6px;background:linear-gradient(140deg,#294e71,#407080);display:grid;place-items:center;text-align:center;font-size:20px}.two-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.two-scenes canvas{width:100%;height:auto;cursor:crosshair;border:1px solid #5f81a2;border-radius:5px}.wheel-frame{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:22px}.wheel-stage{position:relative;width:240px;height:240px}.wheel-stage canvas{width:240px;height:240px}.wheel-stage:before{content:'▼';color:#fff;position:absolute;left:calc(50% - 10px);top:-22px;font-size:25px;z-index:2;text-shadow:0 2px 5px black}.wheel-stats{flex:1;min-width:220px}.game-panel pre{white-space:pre-wrap;font:12px/1.3 monospace}footer{font-size:11px;color:#99b1c8;padding-top:25px}footer a{margin-left:8px}
@media(max-width:960px){.game-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.game-main{padding:10px}.game-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.game-card{padding:10px;min-height:164px}.game-card strong{font-size:13px}.game-card p{font-size:11px}.hero{padding:15px}.play-area{padding:10px}.play-head h2{font-size:17px}.game-choice-grid{grid-template-columns:1fr}.two-scenes{gap:4px}.game-top{gap:7px}.game-brand{font-size:21px}.game-brand-sub{font-size:10px}.back{font-size:10px}}
