:root{font-family:'DM Sans',system-ui,sans-serif;color:#102236;background:#f3f7f8}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 85% 0,#dff5ef 0,transparent 35%),#f3f7f8}button,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}.shell{max-width:1280px;margin:auto;padding:0 28px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#173948;color:#c5f4df;font-size:27px}.brand strong{display:block;font:700 20px Outfit,sans-serif;letter-spacing:-.03em}.brand small{display:block;color:#667b86;font-size:11px;letter-spacing:.04em}.top-actions{display:flex;gap:8px}.icon-btn{border:1px solid #d9e5e7;background:#fff;width:42px;height:42px;border-radius:12px;color:#244252;font-size:21px}.icon-btn:hover,.game-actions button:hover,.text-btn:hover{background:#e9f7f2}.hero{text-align:center;padding:30px 0 26px}.eyebrow{font-weight:700;letter-spacing:.2em;color:#318270;font-size:11px}.hero h1{font:800 clamp(34px,5vw,56px)/1.1 Outfit,sans-serif;letter-spacing:-.055em;margin:10px 0 8px}.hero p:last-child{margin:0;color:#6b7d87;font-size:15px}.game-card{position:relative;background:#fff;border:1px solid #e3ecec;border-radius:24px;padding:25px;box-shadow:0 18px 55px #23445c12}.game-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.mode-label{color:#28836d;text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:800}.game-head h2{font:700 25px Outfit,sans-serif;letter-spacing:-.03em;margin:5px 0 0}.game-meta{display:flex;gap:10px;font-weight:700;color:#546c78}.game-meta span{min-width:69px;padding:9px 11px;background:#f1f6f6;border-radius:10px;text-align:center;font-size:13px}.toolbar{display:flex;align-items:center;gap:7px;margin:22px 0}.pill{border:0;border-radius:20px;background:#f0f5f5;color:#526c75;padding:10px 17px;font-weight:700;font-size:13px}.pill.active{background:#173948;color:white}.text-btn{margin-left:auto;border:0;background:transparent;color:#227f6b;font-weight:700;padding:10px;border-radius:10px;font-size:13px}.play-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);gap:27px}.board-wrap{position:relative;display:flex;justify-content:center;align-items:flex-start;min-width:0}.board{display:grid;grid-template-columns:repeat(var(--size),1fr);aspect-ratio:1;width:min(100%,560px);background:#d7e3e4;border:3px solid #d7e3e4;border-radius:8px;overflow:hidden;gap:2px;touch-action:manipulation;user-select:none}.cell{position:relative;border:0;border-radius:0;background:#fff;color:#173948;min-width:0;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;font:700 clamp(14px,2.5vw,28px) Outfit,sans-serif}.cell.block{background:#214452;cursor:default}.cell.in-word{background:#e7f6ee}.cell.selected{background:#a7e7ce;outline:2px solid #21846e;outline-offset:-2px;z-index:1}.cell.correct{color:#248168}.cell.wrong{color:#d75057;background:#ffeded}.cell .number{position:absolute;left:3px;top:2px;font:700 clamp(7px,.85vw,10px) 'DM Sans',sans-serif;color:#53727c}.cell .letter{line-height:1}.clue-panel{min-width:0}.clue-current{background:#e7f5ef;border-radius:14px;padding:16px;min-height:89px;display:flex;flex-direction:column;gap:7px}.clue-current span{color:#33816e;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.1em}.clue-current strong{font-size:14px;line-height:1.35}.clue-lists{height:428px;overflow:auto;padding:0 2px}.clue-lists h3{font:700 16px Outfit,sans-serif;margin:19px 0 8px}.clue{width:100%;border:0;background:transparent;text-align:left;display:flex;gap:9px;padding:8px;border-radius:9px;color:#344f5e;font-size:13px;line-height:1.35}.clue:hover,.clue.active{background:#eef7f3}.clue.solved{color:#879e9e}.clue span{font-weight:800;min-width:20px}.mobile-clue{display:none}.game-actions{display:flex;gap:8px;margin-top:22px}.game-actions button{border:1px solid #dce9e8;background:#fff;color:#31515e;border-radius:10px;padding:10px 15px;font-size:13px;font-weight:700;min-height:44px}.keyboard{display:none}.below{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0 40px}.info-card{background:#fff;border:1px solid #e3ecec;border-radius:19px;padding:20px 23px}.info-card h3{margin:0 0 8px;font:700 18px Outfit,sans-serif}.info-card p{font-size:13px;line-height:1.6;color:#667b86;margin:0}.stats{display:flex;flex-wrap:wrap;gap:12px}.stat{min-width:72px}.stat strong{display:block;font:700 20px Outfit,sans-serif}.stat span{font-size:11px;color:#728790}footer{text-align:center;color:#91a3aa;font-size:12px;padding:0 0 28px}.toast{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);background:#173948;color:#fff;padding:10px 15px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap}.toast.show{opacity:1}.overlay{position:fixed;inset:0;background:#102736a8;display:grid;place-items:center;padding:20px;z-index:10}.overlay.hidden{display:none}.modal{position:relative;background:#fff;border-radius:22px;padding:29px;max-width:420px;width:100%;box-shadow:0 24px 70px #071b2770}.modal h2{font:800 28px Outfit,sans-serif;margin:0 0 8px}.modal p{color:#647983;line-height:1.5;font-size:14px}.modal-close{position:absolute;right:17px;top:13px;border:0;background:none;font-size:27px;color:#63808a}.modal label{display:block;font-size:12px;font-weight:800;margin:19px 0 7px}.modal select{width:100%;height:45px;border:1px solid #d4e3e3;border-radius:9px;padding:0 12px;background:#fff}.modal .row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eaf0f0}.modal .row label{margin:0}.modal input[type=checkbox]{width:20px;height:20px;accent-color:#21846e}.primary{width:100%;border:0;background:#173948;color:white;border-radius:10px;min-height:46px;margin-top:17px;font-weight:700}.choices{display:flex;gap:10px}.choices button{flex:1;border:1px solid #d4e3e3;border-radius:10px;background:white;padding:13px;font-weight:700}.choices button:hover{background:#e7f5ef}.pause-screen{position:absolute;inset:0;background:#ffffffeb;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:3;border-radius:22px}.pause-screen h2{font:800 32px Outfit,sans-serif}.pause-screen button{border:0;background:#173948;color:white;border-radius:10px;padding:13px 27px;font-weight:700}
@media(max-width:760px){.shell{padding:0 12px}.topbar{height:65px}.brand strong{font-size:17px}.brand small{font-size:10px}.brand-mark{width:36px;height:36px}.hero{padding:17px 0 20px}.hero h1{font-size:37px}.game-card{padding:13px;border-radius:17px}.game-head h2{font-size:20px}.game-meta{gap:5px}.game-meta span{min-width:55px;padding:7px;font-size:11px}.toolbar{margin:14px 0}.pill{padding:8px 12px;font-size:12px}.text-btn{font-size:12px}.play-area{display:block}.board{width:min(100%,500px)}.clue-panel{display:none}.mobile-clue{display:block;background:#e7f5ef;border-radius:9px;padding:11px;min-height:51px;margin-top:10px;font-size:13px;font-weight:700}.game-actions{justify-content:space-between;gap:5px;margin-top:10px}.game-actions button{flex:1;padding:8px 4px;font-size:12px}.keyboard{display:block;margin-top:12px}.keyrow{display:flex;justify-content:center;gap:3px;margin-bottom:4px}.key{flex:1;max-width:42px;height:43px;border:0;background:#e8f0f0;border-radius:6px;color:#173948;font-weight:800;font-size:15px;padding:0}.key.wide{max-width:58px;background:#d4e9e4}.below{grid-template-columns:1fr;margin-top:13px}.cell .number{font-size:8px}.cell{font-size:clamp(13px,5vw,24px)}}
@media(max-width:380px){.game-card{padding:9px}.cell .number{left:2px;top:1px;font-size:7px}.brand small{display:none}.hero p:last-child{font-size:13px}}
body.immersive{overflow:hidden}body.immersive .shell{position:fixed;inset:0;z-index:5;max-width:none;overflow:auto;background:#f3f7f8;padding:0 16px}body.immersive .topbar{height:58px}body.immersive .hero,body.immersive .below,body.immersive footer{display:none}body.immersive .game-card{max-width:1280px;margin:0 auto 16px}
