.game{background:var(--navy-deep);background-image:radial-gradient(800px 500px at 50% 20%,#123A94 0,transparent 75%);color:var(--white);padding-block:28px 56px;min-height:70vh}
.game__wrap{max-width:980px}
.game__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}
.game__head h1{font-size:clamp(26px,4vw,36px);font-weight:800;line-height:1.3;margin:0}
.game__badge{display:inline-block;background:var(--gold);color:var(--navy-deep);font-weight:800;font-size:14px;padding:2px 12px;border-radius:99px}
.hud{display:flex;gap:8px;margin:0}
.hud div{background:#0F2A6E;border:1px solid #2A4C9B;border-radius:12px;padding:6px 14px;text-align:center;min-width:66px}
.hud dt{font-size:13px;color:#BFD3F7}
.hud dd{margin:0;font-size:20px;font-weight:800;color:var(--gold);line-height:1.3}
.bubble{display:flex;align-items:center;gap:12px;margin-block:16px;background:var(--white);color:var(--ink);border-radius:16px;padding:8px 16px;min-height:78px}
.bubble[hidden]{display:none}
[dir=ltr] .bubble img{transform:scaleX(-1)}
.bubble img{flex:none}
.bubble p{font-weight:700;line-height:1.5}
.stage__title{font-size:21px;font-weight:800;color:var(--gold);margin-block-end:10px}
.tray{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;min-height:60px;margin-block-end:12px}
.stage--3 .tray{grid-template-columns:repeat(3,minmax(0,1fr))}
.part{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:8px;background:var(--white);color:var(--navy);border:2px solid transparent;border-radius:12px;font-family:inherit;font-size:16px;font-weight:800;line-height:1.3;cursor:grab;touch-action:none;user-select:none;transition:transform .12s ease,border-color .12s ease}
.part img{width:62px;height:46px;object-fit:contain;pointer-events:none}
.part:hover{transform:translateY(-2px)}
.part.is-selected{border-color:var(--gold);box-shadow:0 0 0 3px rgba(246,196,83,.45)}
.part.is-dragging{opacity:.35}
.dnd-ghost{position:fixed;z-index:200;margin:0;transform:translate(-50%,-50%) rotate(-2deg);pointer-events:none;box-shadow:0 14px 30px rgba(0,0,0,.45);cursor:grabbing;background:var(--white);color:var(--navy);border-radius:12px;padding:8px;font-weight:800;display:flex;flex-direction:column;align-items:center}
.scene{position:relative;border-radius:18px;overflow:hidden}
.scene--1{aspect-ratio:16/9;background:linear-gradient(180deg,#0F2A6E 0,#0F2A6E 70%,#2B66D6 70%,#2B66D6 71%,#123A94 71%,#0A2563 100%)}
.scene--2{aspect-ratio:800/550;background:url(../img/game/motherboard.svg) center/100% 100% no-repeat}
.scene--3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.slot{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;background:rgba(255,255,255,.05);border:2px dashed rgba(255,255,255,.5);border-radius:10px;color:var(--white);font-family:inherit;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.slot:hover{background:rgba(255,255,255,.14);border-color:var(--gold)}
.slot__img{flex:1;min-height:0;width:100%;object-fit:contain;pointer-events:none}
.scene--1 .slot__img{filter:brightness(0) invert(1);opacity:.32}
.slot__placed{font-size:14px;font-weight:800;line-height:1.2;background:var(--gold);color:var(--navy-deep);padding:0 8px;border-radius:99px;white-space:nowrap}
.slot.is-filled{border-style:solid;border-color:var(--gold);background:rgba(246,196,83,.12);cursor:default}
.scene--1 .slot.is-filled .slot__img{filter:none;opacity:1}
.slot.is-wrong{animation:wrong .4s ease;border-color:#FF7A5C}
@keyframes wrong{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.slot--s1{left:3%;top:30%;width:20%;height:38%}
.slot--s2{left:30%;top:5%;width:38%;height:63%}
.slot--s3{left:76%;top:12%;width:20%;height:58%}
.slot--s4{left:6%;top:73%;width:13%;height:25%}
.slot--s5{left:27%;top:75%;width:42%;height:22%}
.slot--s6{left:74%;top:75%;width:14%;height:22%}
.slot--b1{left:7.5%;top:9%;width:17%;height:25%}
.slot--b2{left:41.5%;top:13%;width:19%;height:27.5%}
.slot--b3{left:67%;top:11%;width:9%;height:50%}
.slot--b4{left:18%;top:60%;width:54%;height:10%}
.slot--b5{left:18%;top:76.5%;width:26%;height:7%}
.slot--b6{left:58.5%;top:74%;width:34%;height:22%}
.scene--2 .slot{background:rgba(6,18,51,.35)}
.scene--2 .slot.is-filled{background:transparent;padding:0}
.scene--2 .slot__placed{position:absolute;bottom:-2px;font-size:13px}
.stage--2.is-complete .slot--b1 .slot__img{animation:spin 1.2s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.scene--3 .slot{position:static;min-height:120px;background:#0F2A6E;gap:4px}
.scene--3 .slot__img{height:64px;flex:none}
.slot__name{font-size:16px;font-weight:800}
.stage__next{margin-block-start:16px}
.stage__next[hidden]{display:none}
.finish{background:var(--white);color:var(--ink);border-radius:20px;padding:30px;text-align:center;margin-block-start:16px}
.finish[hidden]{display:none}
.finish__stars{font-size:54px;line-height:1.2;color:#D99A12}
.finish h2{font-size:28px;font-weight:800;color:var(--navy)}
.finish__offer{background:var(--navy);color:var(--white);border-radius:16px;padding:22px;margin-block:20px 14px;text-align:start}
.finish__offer h3{color:var(--gold);font-size:22px;font-weight:800;margin-block-end:8px}
.finish__offer ul{display:grid;gap:6px;margin-block-end:16px}
.finish__offer li{display:flex;gap:8px}
.finish__offer .icon{color:var(--gold);margin-block-start:5px}
.finish__more{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
@media (max-width:760px){.game{padding-block-start:16px}.hud{width:100%}.hud div{flex:1;min-width:0;padding:4px 6px}.hud dd{font-size:18px}.tray{grid-template-columns:repeat(3,minmax(0,1fr))}.stage--3 .tray{grid-template-columns:repeat(2,minmax(0,1fr))}.part{font-size:14.5px;min-height:56px;padding:6px}.part img{width:44px;height:32px}.scene--3{grid-template-columns:repeat(2,minmax(0,1fr))}.slot__placed{font-size:11px;padding:0 5px}.bubble{min-height:70px;padding:6px 12px}.bubble p{font-size:15px}}
@media (prefers-reduced-motion:reduce){.stage--2.is-complete .slot--b1 .slot__img,.slot.is-wrong{animation:none}}
.slot__placed{line-height:1.5}
.stage.is-complete .tray{display:none}
@media (max-width:760px){.scene--2 .slot__placed{display:none}}
.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.game-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;text-decoration:none;color:var(--ink);box-shadow:0 4px 14px rgba(10,31,88,.06);transition:transform .15s}
.game-card:hover{transform:translateY(-3px)}
.game-card strong{font-size:19px;color:var(--navy)}
.game-card > span:last-child{color:var(--muted);font-size:15px;line-height:1.5}
.game-card__icon{width:54px;height:54px;border-radius:14px;background:var(--tint);color:var(--blue);display:flex;align-items:center;justify-content:center}
.game-card__tag{position:absolute;inset-block-start:16px;inset-inline-end:16px;font-size:13px;font-weight:700;padding:2px 10px;border-radius:99px;background:#FFF3D1;color:#6B4700}
.game-card__tag--free{background:#E3F7EE;color:#0B5C43}
.game-card.is-locked .game-card__icon{background:#F1F3F8;color:var(--muted)}
.dg-board{display:grid;gap:18px}
.dg-board[hidden]{display:none}
.dg-tray{display:flex;flex-wrap:wrap;gap:8px}
.dg-tray .part{min-height:48px}
.dg-zones{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.dg-zones--order{grid-template-columns:minmax(0,1fr)}
.dg-zone{min-height:84px;border:2px dashed #AFC0DD;border-radius:14px;background:#F8FAFE;padding:10px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.dg-zones--order .dg-zone{flex-direction:row;align-items:center;min-height:58px}
.dg-zone.is-filled{border-style:solid;border-color:#0B9A6D;background:#F1FBF6}
.dg-zone.dnd-over,.dg-zone:focus-visible{border-color:var(--blue);background:var(--tint)}
.dg-zone.is-wrong{animation:dgShake .35s}
.dg-zone__label{font-weight:800;color:var(--navy);font-size:17px}
.dg-zones--order .dg-zone__label{width:38px;height:38px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.dg-zone__items{display:flex;flex-wrap:wrap;gap:6px}
.dg-placed{background:#fff;border:1px solid #BFE7D8;border-radius:8px;padding:4px 10px;font-size:15px;color:#0B5C43;font-weight:700}
.dg-locked{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}
.dg-preview{display:flex;flex-wrap:wrap;gap:8px;margin-block-end:16px;filter:blur(.6px);opacity:.7}
.dg-preview li{background:var(--tint);border-radius:10px;padding:8px 14px}
@keyframes dgShake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media (prefers-reduced-motion:reduce){.dg-zone.is-wrong{animation:none}}
.dg-back{color:#D7E3FA;font-weight:700}
