/* ===== ГЕЙМ ПАД: база и тема ===== */
*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#090b14;--panel:#141829;--panel-solid:#141829;--border:rgba(140,150,190,.16);--border-strong:rgba(140,150,190,.34);--text:#eef0f8;--text-dim:#9aa3bd;--text-mute:#5f6781;--accent:#7c5cff;--accent-2:#00e5ff;--accent-3:#ff3d9a;--green:#34d399;--red:#f87171;--yellow:#fbbf24;--radius:14px;--radius-lg:20px;--font-display:"Segoe UI Black","Arial Black",system-ui,sans-serif;--font-body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
html{scroll-behavior:smooth}
body{font-family:var(--font-body);background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(900px 520px at 8% -8%,color-mix(in srgb,var(--accent) 32%,transparent),transparent),radial-gradient(700px 420px at 100% 100%,rgba(0,229,255,.13),transparent)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
.wrap{width:min(1120px,100%);margin:0 auto;padding:0 16px}
/* шапка */
.topbar{position:sticky;top:0;z-index:20;background:rgba(9,11,20,.92);border-bottom:1px solid var(--border)}
.topbar .wrap{display:flex;align-items:center;gap:18px;height:62px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-size:1.15rem;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.logo{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--accent),var(--accent-3));font-size:1.2rem;box-shadow:0 6px 20px color-mix(in srgb,var(--accent) 45%,transparent)}
#nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;flex:1}
#nav::-webkit-scrollbar{display:none}
#nav a{padding:8px 13px;border-radius:10px;color:var(--text-dim);font-weight:600;font-size:.9rem;white-space:nowrap;transition:background .15s,color .15s}
#nav a:hover{color:var(--text);background:rgba(255,255,255,.06)}
#nav a.active{color:#fff;background:color-mix(in srgb,var(--accent) 35%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 60%,transparent)}
main#view{flex:1;width:min(1120px,100%);margin:0 auto;padding:26px 16px 40px}
h2.sec{font-family:var(--font-display);font-size:1.5rem;margin-bottom:6px;letter-spacing:-.01em}
p.lead{color:var(--text-dim);margin-bottom:18px;max-width:640px;line-height:1.5}
/* герой */
.hero{padding:34px 28px;border-radius:var(--radius-lg);border:1px solid var(--border-strong);background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 28%,var(--panel)),var(--panel) 70%);margin-bottom:26px}
.hero h1{font-family:var(--font-display);font-size:clamp(1.8rem,5vw,3rem);line-height:1.05;text-transform:uppercase}
.hero h1 span{background:linear-gradient(90deg,var(--accent-2),var(--accent-3));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{color:var(--text-dim);margin:12px 0 20px;max-width:520px;line-height:1.5}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.cta{padding:11px 20px;border-radius:12px;border:0;cursor:pointer;font-weight:700;background:linear-gradient(135deg,var(--accent),var(--accent-3));color:#fff;transition:transform .12s}
.cta:hover{transform:translateY(-2px)}
.cta.ghost{background:rgba(255,255,255,.07);border:1px solid var(--border-strong)}
/* карточки */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.card-wrap{position:relative;content-visibility:auto;contain-intrinsic-size:150px}
.card{display:flex;flex-direction:column;gap:6px;height:100%;padding:18px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--border);transition:transform .15s,border-color .15s}
.card:hover{transform:translateY(-3px);border-color:var(--accent)}
.card .ci{font-size:1.9rem}.card b{font-size:1.02rem}.card small{color:var(--text-dim);line-height:1.4}
.tag{align-self:flex-start;margin-top:auto;font-size:.7rem;font-weight:700;padding:3px 9px;border-radius:99px;background:rgba(255,255,255,.07);color:var(--text-dim)}
.fav{position:absolute;top:10px;right:10px;border:0;background:none;font-size:1.2rem;cursor:pointer;color:var(--text-mute)}
.fav.on{color:var(--accent-3)}
.sec-title{font-family:var(--font-display);font-size:1.05rem;margin:28px 0 12px}
/* поиск и фильтры */
.bar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.inp{padding:11px 14px;border-radius:12px;background:var(--panel);border:1px solid var(--border-strong);outline:none;min-width:0}
.inp:focus{border-color:var(--accent)}
.bar .inp{flex:1;min-width:200px}
.chip{padding:8px 14px;border-radius:99px;border:1px solid var(--border-strong);background:transparent;cursor:pointer;font-size:.85rem;font-weight:600;color:var(--text-dim)}
.chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
/* списки */
.list{display:flex;flex-direction:column;gap:10px}
.item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--border)}
.item .meta{flex:1;min-width:0}.item .meta small{display:block;color:var(--text-dim);margin-top:3px}
code.k{font-family:ui-monospace,Consolas,monospace;padding:6px 10px;border-radius:8px;background:rgba(0,0,0,.4);color:var(--accent-2);word-break:break-all}
details.item{display:block;cursor:pointer}details.item p{margin-top:10px;color:var(--text-dim);line-height:1.55}
details summary{font-weight:700}
.note{padding:12px 16px;border-radius:12px;background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.25);color:var(--yellow);font-size:.88rem;margin:14px 0;line-height:1.45}
.player{aspect-ratio:16/9;width:100%;border:0;border-radius:var(--radius);background:#000;margin-top:14px}
.tool{padding:20px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--border)}
.tool h3{margin-bottom:12px}.tool .out{font-size:1.5rem;font-weight:800;margin-top:12px;min-height:2rem;word-break:break-word}
.tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.stat{font-family:var(--font-display);font-size:1.8rem;color:var(--accent-2)}
.back{display:inline-block;margin-bottom:14px;color:var(--text-dim);font-weight:600}.back:hover{color:var(--text)}
.sw{width:30px;height:30px;border-radius:50%;border:2px solid transparent;cursor:pointer}
.sw.on{border-color:#fff}
footer.site-footer{border-top:1px solid var(--border);padding:16px;display:flex;justify-content:center;gap:18px;flex-wrap:wrap;color:var(--text-mute);font-size:.82rem}
/* контейнер игры */
.play{display:flex;flex-direction:column;align-items:center}
.game-shell{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px 32px;box-shadow:0 20px 50px rgba(0,0,0,.45);display:flex;flex-direction:column;align-items:center;max-width:100%;animation:shellIn .3s ease}
@keyframes shellIn{from{opacity:0;transform:translateY(10px)}}
body.rainbow{animation:hue 6s linear infinite}@keyframes hue{to{filter:hue-rotate(360deg)}}
body.lite *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:640px){.topbar .wrap{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:6px;gap:8px}#nav{flex-basis:100%}.game-shell{padding:18px 12px}.hero{padding:24px 18px}}

/* ===== COMMON GAME UI ===== */
.game-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 800;
  margin-bottom: 18px; color: var(--text);
  letter-spacing: -0.02em;
}

.btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border: none;
  padding: 11px 26px; border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: all 0.18s;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.msg {
  margin-top: 14px; font-size: 0.95rem;
  color: var(--text-dim); min-height: 1.5em;
  text-align: center; font-weight: 500;
}
.msg.win { color: var(--green); font-weight: 700; }
.msg.lose { color: var(--red); font-weight: 700; }

/* ===== КРЕСТИКИ-НОЛИКИ ===== */
.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 8px; margin-bottom: 16px;
}
.ttt-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 2.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: all 0.15s;
}
.ttt-cell:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
  transform: scale(1.03);
}
.ttt-cell.x { color: #818cf8; text-shadow: 0 0 20px rgba(129, 140, 248, 0.5); }
.ttt-cell.o { color: #f472b6; text-shadow: 0 0 20px rgba(244, 114, 182, 0.5); }

/* ===== ПОЙМАЙ КУРСОР ===== */
.catch-arena {
  width: 520px; max-width: 90vw; height: 360px;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.06), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: crosshair;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}
.catch-target {
  width: 64px; height: 64px;
  background: radial-gradient(circle at 35% 35%, #fda4af, #e11d48);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; position: absolute;
  cursor: pointer; user-select: none;
  transition: transform 0.08s;
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.55), inset 0 -3px 8px rgba(0,0,0,0.3);
}
.catch-target:active { transform: scale(0.85); }

/* ===== МЕМОРИ ===== */
.memory-grid {
  display: grid; grid-template-columns: repeat(4, 82px);
  gap: 10px; margin-bottom: 16px;
}
.memory-card {
  width: 82px; height: 82px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: transparent;
  transform-style: preserve-3d;
}
.memory-card:hover:not(.matched) {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.memory-card.flipped, .memory-card.matched {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--text);
}
.memory-card.matched {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
  cursor: default;
}

/* ===== САПЁР ===== */
.minesweeper-wrap { display: flex; flex-direction: column; align-items: center; }
.ms-grid {
  display: grid; gap: 2px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.ms-cell {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  cursor: pointer; user-select: none; color: var(--text-dim);
  transition: background 0.1s;
}
.ms-cell:hover { background: rgba(255,255,255,0.1); }
.ms-cell.revealed { background: rgba(0,0,0,0.5); cursor: default; }
.ms-cell.mine { background: rgba(220, 38, 38, 0.35); color: #fca5a5; }
.ms-cell.flagged { background: rgba(251, 191, 36, 0.15); }

/* ===== МОРСКОЙ БОЙ ===== */
.bs-wrap { text-align: center; }
.bs-field-label {
  font-size: 0.78rem; color: var(--text-mute);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.bs-grid {
  display: grid; grid-template-columns: repeat(10, 28px);
  gap: 2px; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.bs-cell {
  width: 28px; height: 28px;
  background: rgba(34, 211, 238, 0.12);
  cursor: pointer; user-select: none;
  transition: background 0.1s;
}
.bs-cell:hover { background: rgba(34, 211, 238, 0.28); }
.bs-cell.hit { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.bs-cell.miss { background: rgba(71, 85, 105, 0.6); }

/* ===== РЕАКЦИЯ ===== */
.reaction-box {
  width: 320px; height: 200px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: all 0.1s; text-align: center; padding: 16px;
  border: 1px solid var(--border);
}

/* ===== САЙМОН ===== */
.simon-grid {
  display: grid; grid-template-columns: repeat(2, 120px);
  gap: 14px; margin-bottom: 16px;
}
.simon-pad {
  width: 120px; height: 120px;
  border-radius: 18px;
  cursor: pointer; opacity: 0.45;
  transition: opacity 0.12s, transform 0.12s, box-shadow 0.12s;
  border: 1px solid rgba(255,255,255,0.1);
}
.simon-pad.active {
  opacity: 1; transform: scale(1.06);
  box-shadow: 0 0 30px currentColor;
}
.simon-pad.green { background: linear-gradient(135deg, #22c55e, #15803d); }
.simon-pad.red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.simon-pad.yellow { background: linear-gradient(135deg, #eab308, #a16207); }
.simon-pad.blue { background: linear-gradient(135deg, #3b82f6, #1e40af); }

/* ===== ТИР ===== */
.aim-arena {
  width: 520px; max-width: 90vw; height: 400px;
  background: radial-gradient(circle at center, rgba(99,102,241,0.05), transparent 70%), var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: crosshair;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}
.aim-target {
  width: 52px; height: 52px;
  background: radial-gradient(circle, #fbbf24 30%, #dc2626 70%);
  border-radius: 50%; position: absolute;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.55), inset 0 0 10px rgba(0,0,0,0.3);
}

/* ===== УГАДАЙ ЧИСЛО ===== */
.guess-input {
  padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.3);
  color: var(--text); font-family: var(--font-body);
  font-size: 1rem; width: 180px; text-align: center; margin: 8px;
  transition: border 0.15s;
}
.guess-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

/* ===== RPS ===== */
.rps-choices { display: flex; gap: 16px; margin-bottom: 16px; }
.rps-btn {
  font-size: 2.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 16px 22px; cursor: pointer;
  transition: all 0.18s;
}
.rps-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

/* ===== СКОРОСТЬ ПЕЧАТИ ===== */
.typing-text {
  font-size: 1.15rem;
  background: rgba(0,0,0,0.3);
  padding: 20px 26px; border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px; max-width: 520px;
  line-height: 1.7; user-select: none;
  font-weight: 500;
}
.typing-text .correct { color: var(--green); }
.typing-text .wrong { color: var(--red); text-decoration: underline; }
.typing-text .current { background: rgba(99,102,241,0.4); border-radius: 4px; }

/* ===== КЛИКЕР ===== */
.clicker-area { text-align: center; }
.clicker-btn {
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #60a5fa, #2563eb 60%, #1e3a8a);
  border: 3px solid rgba(147, 197, 253, 0.5);
  color: #fff;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  cursor: pointer; user-select: none;
  transition: transform 0.06s, box-shadow 0.2s;
  margin: 16px;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5), inset 0 -6px 16px rgba(0,0,0,0.35), inset 0 4px 12px rgba(255,255,255,0.25);
}
.clicker-btn:hover { box-shadow: 0 16px 50px rgba(37, 99, 235, 0.7), inset 0 -6px 16px rgba(0,0,0,0.35), inset 0 4px 12px rgba(255,255,255,0.3); }
.clicker-btn:active { transform: scale(0.94); }

/* ===== ЛАБИРИНТ ===== */
.maze-grid {
  display: grid; gap: 2px; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; margin-bottom: 14px;
}
.maze-cell {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; user-select: none;
  transition: background 0.1s;
}
.maze-cell.wall { background: rgba(0,0,0,0.6); }
.maze-cell.player {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.25);
}
.maze-cell.goal {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.25);
}
.maze-cell.player::after { content: '🙂'; }
.maze-cell.goal::after { content: '🏁'; }

/* ===== ЗМЕЙКА ===== */
.snake-canvas {
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--bg-2); margin-bottom: 14px; display: block;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ===== ПОЙМАЙ ЗВЁЗДЫ ===== */
.falling-arena {
  width: 520px; max-width: 90vw; height: 400px;
  background: radial-gradient(circle at 50% 0%, rgba(34,211,238,0.06), transparent 60%), var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); position: relative;
  overflow: hidden; cursor: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.falling-basket {
  width: 84px; height: 24px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 8px; position: absolute; bottom: 12px;
  border: 2px solid rgba(147, 197, 253, 0.7);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.falling-star {
  width: 20px; height: 20px;
  background: radial-gradient(circle, #fef3c7, #f59e0b);
  border-radius: 50%; position: absolute;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.8);
}

/* ===== НАЙДИ КЛАД ===== */
.treasure-grid {
  display: grid; grid-template-columns: repeat(5, 66px);
  gap: 10px; margin-bottom: 16px;
}
.treasure-cell {
  width: 66px; height: 66px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  transition: all 0.18s; user-select: none;
}
.treasure-cell:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.treasure-cell.miss { background: rgba(0,0,0,0.4); cursor: default; transform: none; }
.treasure-cell.treasure {
  background: linear-gradient(135deg, rgba(52,211,153,0.3), rgba(16,185,129,0.3));
  border-color: var(--green); cursor: default;
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.45);
}

/* ===== ТЕТРИС ===== */
.tetris-wrap {
  display: flex; gap: 28px; align-items: flex-start;
  flex-wrap: wrap; justify-content: center;
}
.tetris-canvas {
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--bg-2); display: block;
  box-shadow: 0 12px 50px rgba(0,0,0,0.55), inset 0 0 30px rgba(0,0,0,0.4);
}
.tetris-panel { display: flex; flex-direction: column; gap: 14px; min-width: 150px; }
.tetris-panel .label {
  font-size: 0.7rem; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700;
}
.tetris-panel .value {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; color: var(--text);
  line-height: 1;
}
.tetris-panel .next-canvas {
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg-2); display: block;
}
.tetris-help {
  font-size: 0.75rem; color: var(--text-mute);
  line-height: 1.6;
  background: rgba(0,0,0,0.25);
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f46e5, #7c3aed);
  border-radius: 5px; border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6366f1, #8b5cf6); }

::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .site-header { padding: 18px 18px 6px; flex-wrap: wrap; }
  .site-header h1 { font-size: 1.5rem; }
  .tagline { font-size: 0.75rem; }
  .header-badge { display: none; }
  .logo-mark { width: 44px; height: 44px; font-size: 0.95rem; }
  #game-menu { padding: 12px; gap: 6px; }
  #game-menu button { font-size: 0.75rem; padding: 7px 12px; }
  .game-shell { padding: 18px 16px; border-radius: 18px; }
  .game-title { font-size: 1.1rem; }
  .ttt-board { grid-template-columns: repeat(3, 82px); grid-template-rows: repeat(3, 82px); }
  .ttt-cell { font-size: 2rem; }
  .memory-grid { grid-template-columns: repeat(4, 64px); }
  .memory-card { width: 64px; height: 64px; font-size: 1.5rem; }
  .bs-grid { grid-template-columns: repeat(10, 22px); }
  .bs-cell { width: 22px; height: 22px; }
  .simon-grid { grid-template-columns: repeat(2, 88px); gap: 10px; }
  .simon-pad { width: 88px; height: 88px; }
  .maze-cell { width: 28px; height: 28px; }
  .treasure-grid { grid-template-columns: repeat(5, 52px); gap: 7px; }
  .treasure-cell { width: 52px; height: 52px; font-size: 1.2rem; }
  .ms-cell { width: 28px; height: 28px; }
  .site-footer { padding: 12px 18px; font-size: 0.72rem; }
  .footer-note { display: none; }
}