.game-intro{text-align:center;padding:22px 0 18px;display:grid;place-items:center;gap:14px}
.game-intro-icon{width:72px;height:72px;border-radius:20px;background:#fcebef;color:#ad1a3e;font-size:33px;display:grid;place-items:center}
.game-intro h3{margin:0;font-size:22px;letter-spacing:-.04em}
.game-intro p{max-width:380px;margin:0;font-size:11px;color:#93959b;line-height:1.9}
.game-start{border:0;background:#19191c;border-radius:9px;color:white;padding:14px 24px;font-size:12px;font-weight:800;margin-top:8px}
.game-start:hover{background:#b62344}
.game-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px;font-size:11px;font-weight:800}
.game-topline small{color:#94969c;font-weight:700}
.score-chip{padding:8px 12px;background:#f6f6f7;border-radius:8px;font-size:11px;font-weight:800}
.game-finish{display:grid;place-items:center;text-align:center;gap:11px;padding:23px 0}
.finish-medal{width:65px;height:65px;border-radius:50%;background:#f8e4ea;color:#bc2242;display:grid;place-items:center;font-size:33px}
.game-finish small{font-size:10px;letter-spacing:.14em;font-weight:800;color:#a0a2a6}
.game-finish h3{margin:0;font-size:26px;letter-spacing:-.06em}
.finish-score{font-size:43px;font-weight:800;letter-spacing:-.07em;color:#b42343}
.game-finish p{font-size:11px;color:#8b8e93;max-width:360px;line-height:1.8;margin:0}
.game-finish .game-start{margin-top:11px}
.reaction-board{width:100%;min-height:300px;border:0;border-radius:15px;background:#343842;color:white;display:grid;place-content:center;text-align:center;gap:13px;touch-action:manipulation}
.reaction-board.waiting{background:#c93a4f}
.reaction-board.ready{background:#249663}
.reaction-board.result{background:#f7f7f7;color:#24262b}
.reaction-board strong{font-size:24px;letter-spacing:-.05em}
.reaction-board small{font-size:11px;opacity:.76}
.game-board-wrap{display:grid;place-items:center;gap:13px}
.snake-canvas{width:min(350px,100%);height:auto;aspect-ratio:1;background:#14191f;border-radius:11px;touch-action:none;image-rendering:pixelated}
.direction-controls{display:grid;grid-template-columns:repeat(3,54px);gap:7px;place-items:center}
.direction-controls button{width:54px;height:48px;background:#f0f0f1;border:1px solid #dcdce0;border-radius:9px;font-size:21px;touch-action:manipulation}
.direction-controls .blank{visibility:hidden}
.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;max-width:380px;margin:auto}
.memory-card{border:1px solid #e5e4e9;background:#22252b;color:white;height:70px;border-radius:11px;font-size:28px;font-weight:800;transition:background .15s;touch-action:manipulation}
.memory-card.open{background:#fce7ee;color:#c42b4d}
.memory-card.matched{background:#e5f7ec;color:#24875b;opacity:.75}
.aim-field{height:300px;background:#161922;border-radius:13px;position:relative;overflow:hidden;touch-action:manipulation}
.aim-field:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#fff1 1px,transparent 1px),linear-gradient(90deg,#fff1 1px,transparent 1px);background-size:30px 30px;opacity:.5}
.aim-target{position:absolute;width:54px;height:54px;border-radius:50%;background:#f4d1dc;box-shadow:0 0 0 9px #be2a4b99;display:grid;place-items:center;border:0;transform:translate(-50%,-50%);touch-action:manipulation}
.aim-target:after{content:"";width:16px;height:16px;border-radius:50%;background:#bb2042}
.numbers-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-width:410px;margin:auto}
.number-cell{aspect-ratio:1;border:1px solid #e4e4e4;background:#fff;border-radius:9px;font-weight:800;font-size:17px;touch-action:manipulation}
.number-cell.good{background:#def4e9;border-color:#bce9d0;color:#229263}
.number-cell.wrong{background:#f8dbe4}
.math-query{text-align:center;font-size:46px;font-weight:800;letter-spacing:-.05em;margin:19px 0 30px}
.math-choices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.math-choice{border:1px solid #ddd;background:#f7f7f8;border-radius:10px;padding:17px;font-size:22px;font-weight:800;touch-action:manipulation}
.math-choice:hover{background:#f8e5eb}
.math-choice.correct{background:#e3f6ea;color:#21875a}
.math-choice.incorrect{background:#f9dce5;color:#bd2341}
.simon-pad{display:grid;grid-template-columns:repeat(2,minmax(0,150px));gap:12px;justify-content:center;margin:15px auto 25px}
.simon-pad button{height:130px;border:0;border-radius:19px;filter:saturate(.72) brightness(.64);transition:filter .12s,transform .12s;touch-action:manipulation}
.simon-pad button.lit{filter:saturate(1.25) brightness(1.35);transform:scale(.97)}
.simon-pad button:nth-child(1){background:#dd3e5d}
.simon-pad button:nth-child(2){background:#2db07e}
.simon-pad button:nth-child(3){background:#f3b440}
.simon-pad button:nth-child(4){background:#5478d8}
.simon-status{text-align:center;font-size:12px;font-weight:800;min-height:25px;color:#6e7276}
.tile-board{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#aaa7a4;border-radius:12px;padding:8px;max-width:340px;margin:0 auto;touch-action:none;user-select:none}
.tile{background:#c5c3bf;aspect-ratio:1;border-radius:6px;display:grid;place-items:center;font-size:25px;font-weight:800;color:#776e64}
.tile[data-v="2"]{background:#eee4da}
.tile[data-v="4"]{background:#ede0c8}
.tile[data-v="8"]{background:#f2b179;color:white}
.tile[data-v="16"]{background:#f59563;color:white}
.tile[data-v="32"]{background:#f67c5f;color:white}
.tile[data-v="64"]{background:#f65e3b;color:white}
.tile[data-v="128"],.tile[data-v="256"],.tile[data-v="512"],.tile[data-v="1024"],.tile[data-v="2048"]{background:#edc22e;color:white;font-size:20px}
.tile[data-v="0"]{color:transparent}
.typing-quote{font-size:16px;line-height:2;letter-spacing:.01em;min-height:82px;color:#9d9fa3;background:#f6f6f6;padding:18px;border-radius:10px;overflow-wrap:anywhere}
.typing-quote .right{color:#2f9365}
.typing-quote .wrong{background:#f9dbe3;color:#bb2044}
.typing-input{margin-top:16px;border:1px solid #dcdde0;border-radius:10px;width:100%;padding:16px;font-size:15px;outline:none}
.ttt-board{display:grid;grid-template-columns:repeat(3,minmax(0,95px));gap:7px;justify-content:center;margin:15px auto}
.ttt-cell{aspect-ratio:1;border:1px solid #dedee1;background:#f5f5f6;border-radius:10px;font-size:50px;font-weight:700;color:#b92849}
.ttt-cell.o{color:#3e7c98}
.ttt-cell:disabled{opacity:1}
.game-description{font-size:11px;color:#96999e;text-align:center;line-height:1.8}
.shake{animation:shake .2s}
.snake-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin:4px auto 0}
.mini-done,.mini-pause{border:1px solid #e1e1e4;border-radius:9px;padding:11px 15px;background:white;color:#414249;font-weight:800;font-size:11px}
.mini-done:hover,.mini-pause:hover{background:#faebef;border-color:#e4b7c3}
.tile-controls{margin:15px auto 6px}
.memory-card,.number-cell,.math-choice,.ttt-cell,.simon-pad button,.direction-controls button{user-select:none;-webkit-user-select:none}
