@font-face{font-family:Gagalin;src:url(../fonts/Gagalin-Regular.woff2) format("woff2");font-display:swap}:root{--accent:#8c5cff;--accent2:#d8ff52;--bg:#0d0b17;--panel:#171329;--line:#312a49;--text:#f8f6ff;--muted:#a49eb8}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 80% 0,#281c54,transparent 32%),var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif}button,input{font:inherit}a{color:inherit;text-decoration:none}.game-header{display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:0 clamp(16px,4vw,55px);border-bottom:1px solid var(--line);background:rgba(13,11,23,.82);backdrop-filter:blur(18px)}.game-brand{display:flex;align-items:center;gap:10px;font-weight:900}.game-brand img{width:36px;height:36px;border-radius:10px}.back-link{color:var(--muted);font-size:12px;font-weight:800}.back-link:hover{color:var(--accent2)}.game-page{width:min(1400px,100%);margin:auto;padding:clamp(35px,6vw,80px) clamp(14px,4vw,55px)}.game-intro{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.game-intro p{margin:0 0 7px;color:var(--accent2);font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.game-intro h1{margin:0;font-family:Gagalin,Impact,sans-serif;font-size:clamp(48px,7vw,88px);font-weight:400;line-height:.9}.game-intro>span{max-width:390px;color:var(--muted);font-size:14px;line-height:1.6}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.game-stage{position:relative;min-height:610px;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:rgba(23,19,41,.88);box-shadow:0 24px 80px rgba(0,0,0,.25)}.game-stage-inner{min-height:610px;padding:clamp(16px,3vw,34px)}.game-side{display:flex;flex-direction:column;gap:14px}.side-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}.side-card small{color:var(--accent2);font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.side-card h2{margin:8px 0;font-size:23px}.side-card p,.side-card li{color:var(--muted);font-size:12px;line-height:1.6}.side-card ol{padding-left:18px}.ai-meter{height:7px;margin-top:13px;overflow:hidden;border-radius:99px;background:#27213b}.ai-meter i{display:block;width:8%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#ff66a8);transition:width .3s}.hud{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.hud span{border:1px solid var(--line);border-radius:99px;padding:8px 11px;color:var(--muted);font-size:11px}.hud b{color:var(--text)}.game-button{border:0;border-radius:10px;padding:11px 15px;background:var(--accent);color:#fff;cursor:pointer;font-weight:900}.game-button.alt{background:#292340;color:var(--text)}.game-message{min-height:25px;margin-top:14px;color:var(--accent2);font-weight:800}.game-footer{display:flex;justify-content:space-between;gap:20px;padding:28px clamp(16px,4vw,55px);border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.sudoku{display:grid;grid-template-columns:repeat(9,minmax(32px,58px));justify-content:center;margin:25px auto}.sudoku button{aspect-ratio:1;border:1px solid #4b4168;background:#201a36;color:#fff;font-size:clamp(15px,2vw,23px);font-weight:900;cursor:pointer}.sudoku button:nth-child(9n+3),.sudoku button:nth-child(9n+6){border-right:3px solid #8067b7}.sudoku button:nth-child(n+19):nth-child(-n+27),.sudoku button:nth-child(n+46):nth-child(-n+54){border-bottom:3px solid #8067b7}.sudoku .fixed{background:#312651;color:var(--accent2)}.sudoku .wrong{background:#79294c}.number-pad{display:flex;justify-content:center;flex-wrap:wrap;gap:7px}.number-pad button{width:42px;height:42px;border:0;border-radius:9px;background:#30274d;color:#fff;cursor:pointer;font-weight:900}
.card-columns{display:grid;grid-template-columns:repeat(10,minmax(38px,1fr));gap:6px;min-height:460px}.card-column{min-height:390px;padding:5px;border:1px dashed #493d69;border-radius:10px;background:#100d1d}.play-card{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;width:100%;height:64px;margin-bottom:-39px;padding:5px;border:1px solid #ddd7eb;border-radius:7px;background:linear-gradient(145deg,#fff,#ddd9e8);color:#16111f;font-size:15px;font-weight:900;box-shadow:0 3px 8px rgba(0,0,0,.3);cursor:pointer}.play-card.facedown{background:repeating-linear-gradient(45deg,#4d27a8 0 4px,#6d36ff 4px 8px);color:transparent;border-color:#936fff}.play-card.selected{transform:translateY(-8px);outline:2px solid var(--accent2)}.spider-stock{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.completed-runs{display:flex;gap:4px;color:var(--accent2);font-size:22px}
.pixel-scroll{width:min(100%,590px);margin:auto;overflow:auto;border:6px solid #2c2542;background:#191529;touch-action:none}.pixel-board{display:grid;width:100%;min-width:480px}.pixel-cell{position:relative;aspect-ratio:1;border:1px solid rgba(255,255,255,.06);background:#191529;color:#aaa2be;cursor:crosshair;font-size:7px;padding:0}.pixel-cell.done{color:transparent}.palette{display:flex;justify-content:center;gap:9px;margin-top:18px}.palette button{width:38px;height:38px;border:3px solid transparent;border-radius:50%;cursor:pointer}.palette button.active{border-color:#fff;transform:scale(1.12)}
.block-board{display:grid;grid-template-columns:repeat(10,1fr);width:min(100%,540px);margin:auto;gap:4px}.block-cell{aspect-ratio:1;border:0;border-radius:5px;background:#211b35;cursor:pointer}.block-cell.filled{background:linear-gradient(135deg,var(--accent),#ef67c8);box-shadow:inset 0 0 0 2px rgba(255,255,255,.2)}.block-cell.preview{background:rgba(216,255,82,.45)}.piece-tray{display:flex;align-items:center;justify-content:center;gap:12px;min-height:90px;margin:8px 0 20px}.piece-choice{display:grid;gap:3px;padding:10px;border:1px solid #433858;border-radius:11px;background:#1d1830;cursor:pointer}.piece-choice i{width:17px;height:17px;border-radius:3px;background:var(--accent2)}.piece-choice.selected{outline:3px solid var(--accent)}.piece-choice.used{opacity:.2;pointer-events:none}
.tubes{display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:15px;min-height:410px}.tube{display:flex;flex-direction:column-reverse;justify-content:flex-start;width:70px;height:260px;padding:8px;border:4px solid #665985;border-top:0;border-radius:0 0 28px 28px;background:rgba(255,255,255,.025);cursor:pointer}.tube.selected{border-color:var(--accent2)}.ball{aspect-ratio:1;margin-top:3px;border-radius:50%;box-shadow:inset -8px -8px 14px rgba(0,0,0,.2)}
.backgammon-board{position:relative;display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:1fr 1fr;min-height:480px;padding:14px 38px;gap:0;background:linear-gradient(90deg,transparent 49%,#382747 49% 51%,transparent 51%),#c89458;border:10px solid #513526;border-radius:14px}.point{position:relative;display:flex;align-items:center;flex-direction:column;min-width:0;cursor:pointer}.point.bottom{justify-content:flex-end;flex-direction:column-reverse}.point:before{position:absolute;z-index:0;width:100%;height:92%;background:#703d62;clip-path:polygon(0 0,100% 0,50% 100%);content:""}.point.alt:before{background:#e7c58b}.point.bottom:before{clip-path:polygon(50% 0,100% 100%,0 100%)}.point.legal:before{filter:brightness(1.3);outline:3px solid #d8ff52}.checker{position:relative;z-index:2;width:min(34px,78%);aspect-ratio:1;margin:-2px auto;border:2px solid rgba(0,0,0,.28);border-radius:50%;background:radial-gradient(circle at 35% 28%,#efffa8,#9aba25);box-shadow:0 2px 5px #0006}.checker.ai{background:radial-gradient(circle at 35% 28%,#ffadc6,#b42f59)}.checker.selected{outline:3px solid #fff}.dice-row{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px}.die{display:grid;place-items:center;width:46px;height:46px;border-radius:9px;background:#fff;color:#161124;font-size:24px;font-weight:900}.bar-count{position:absolute;z-index:4;left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:99px;background:#171329;font-size:10px}.bar-count.you{bottom:32%}.bar-count.ai{top:32%}
.slope-wrap{position:absolute;inset:0}.slope-canvas{width:100%;height:100%;touch-action:none}.slope-overlay{position:absolute;top:18px;left:18px;display:flex;gap:9px}.slope-overlay span{border-radius:99px;padding:8px 12px;background:rgba(9,8,15,.72);font-size:11px}.embed-stage{padding:0}.drift-frame{width:100%;height:610px;border:0;background:#050509}.embed-fallback{position:absolute;right:18px;bottom:18px;border-radius:99px;padding:12px 16px;background:var(--accent2);color:#15111f;font-size:11px;font-weight:900}
@media(max-width:900px){.game-layout{grid-template-columns:1fr}.game-side{display:grid;grid-template-columns:1fr 1fr}.game-stage,.game-stage-inner{min-height:560px}.drift-frame{height:560px}}@media(max-width:620px){.game-intro{align-items:start;flex-direction:column}.game-layout{display:block}.game-side{display:grid;grid-template-columns:1fr;margin-top:14px}.game-stage,.game-stage-inner{min-height:540px}.game-stage-inner{padding:10px}.sudoku{grid-template-columns:repeat(9,1fr)}.card-columns{gap:2px;min-height:390px;overflow-x:auto}.card-column{padding:2px;min-height:330px}.play-card{height:50px;margin-bottom:-31px;padding:2px;font-size:11px}.tube{width:54px;height:210px}.backgammon-board{min-height:400px;padding:8px 20px;border-width:5px}.checker{width:min(24px,85%);margin:-1px auto}.drift-frame{height:540px}.game-footer{flex-direction:column}}
