/* ============================================================
   СМ0 — дизайн-система. Тёмная неоновая тема.
   ============================================================ */

:root {
  --bg: #0e0a1f;
  --pink: #ff5d8f;
  --purple: #b388ff;
  --cyan: #4cc9f0;
  --yellow: #ffb020;
  --green: #3ddc97;
  --red: #ff5a6e;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #f4f1ff;
  --muted: #a9a3c7;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --font-display: 'Unbounded', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-pink: 0 8px 40px rgba(255, 93, 143, 0.35);
  --shadow-purple: 0 8px 40px rgba(179, 136, 255, 0.35);
  --shadow-cyan: 0 8px 40px rgba(76, 201, 240, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: var(--text); }
a { color: inherit; text-decoration: none; }
a:active { color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }

::selection { background: rgba(255, 93, 143, 0.45); }

/* ---------- Неоновые blob'ы на фоне ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: blob-float 22s ease-in-out infinite alternate;
}
.blob-pink   { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax;  background: radial-gradient(circle, rgba(255,93,143,0.55), transparent 65%); }
.blob-purple { width: 42vmax; height: 42vmax; right: -14vmax; top: 8vmax;   background: radial-gradient(circle, rgba(179,136,255,0.5), transparent 65%); animation-delay: -6s; animation-duration: 26s; }
.blob-cyan   { width: 38vmax; height: 38vmax; left: 6vmax; bottom: -18vmax; background: radial-gradient(circle, rgba(76,201,240,0.42), transparent 65%); animation-delay: -12s; animation-duration: 30s; }
.blob-yellow { width: 26vmax; height: 26vmax; right: 10vmax; bottom: -6vmax; background: radial-gradient(circle, rgba(255,176,32,0.35), transparent 65%); animation-delay: -3s; animation-duration: 19s; opacity: 0.4; }

@keyframes blob-float {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vmax, -3vmax, 0) scale(1.12); }
  100% { transform: translate3d(-3vmax, 3vmax, 0) scale(0.94); }
}

/* ---------- Раскладка ---------- */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1400px; }

.screen { display: none; flex-direction: column; flex: 1; width: 100%; }
.screen.active { display: flex; }

.center-col { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; text-align: center; }

/* ---------- Стеклянные карточки ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.card-strong { background: var(--glass-strong); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  box-shadow: var(--shadow-pink);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.btn:active { transform: scale(0.93); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; filter: grayscale(0.4); box-shadow: none; }

.btn-cyan { background: linear-gradient(120deg, var(--cyan), var(--purple)); box-shadow: var(--shadow-cyan); }
.btn-yellow { background: linear-gradient(120deg, var(--yellow), var(--pink)); box-shadow: 0 8px 40px rgba(255, 176, 32, 0.35); color: #2a1600; }

.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-strong); }

.btn-lg { padding: 20px 46px; font-size: 21px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Инпуты ---------- */
.field { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.input {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.28);
  font-size: 17px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(179, 136, 255, 0.18); }
.input::placeholder { color: rgba(169, 163, 199, 0.55); }

/* ---------- Тосты ---------- */
#toasts {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 480px);
}
.toast {
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(24, 18, 48, 0.92);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.toast-error { border-color: rgba(255, 90, 110, 0.6); box-shadow: 0 10px 30px rgba(255, 90, 110, 0.25); }
.toast-success { border-color: rgba(61, 220, 151, 0.6); box-shadow: 0 10px 30px rgba(61, 220, 151, 0.22); }

/* ---------- Конфетти ---------- */
#confetti-canvas { position: fixed; inset: 0; z-index: 900; pointer-events: none; }

/* ---------- Кольцевой таймер ---------- */
.ring-timer { position: relative; flex: none; }
.ring-timer svg { display: block; }
.ring-bg { stroke: rgba(255, 255, 255, 0.12); }
.ring-fg { stroke: var(--cyan); stroke-linecap: round; transition: stroke 0.3s ease; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
}
.ring-hot .ring-fg { stroke: var(--red); }
.ring-hot .ring-num { color: var(--red); }
.ring-hot { animation: ring-pulse 0.5s ease-in-out infinite alternate; }
@keyframes ring-pulse {
  from { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 90, 110, 0)); }
  to   { transform: scale(1.12); filter: drop-shadow(0 0 12px rgba(255, 90, 110, 0.8)); }
}

/* ---------- Всплывашки очков ---------- */
.score-float {
  position: fixed;
  z-index: 950;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  pointer-events: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.score-plus { color: var(--green); }
.score-minus { color: var(--red); }

/* ---------- Фишки игроков ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 800;
  font-size: 15px;
}
.chip-off { opacity: 0.4; filter: grayscale(0.7); }
.chip-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--chip-color, var(--purple));
  box-shadow: 0 0 14px var(--chip-color, var(--purple));
}
.chip-score { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--yellow); }

/* ---------- Градиентный текст ---------- */
.grad-text {
  background: linear-gradient(100deg, var(--pink), var(--purple), var(--cyan), var(--yellow), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-slide 8s linear infinite;
}
@keyframes grad-slide { to { background-position: 300% 0; } }

/* ---------- Плашки/бейджи ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 800;
  font-size: 14px;
}
.pill-hot { border-color: rgba(255, 93, 143, 0.55); color: var(--pink); }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--yellow), var(--pink));
  color: #2a1600;
}

/* ---------- Верхняя плашка игрока (play) ---------- */
.player-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 10, 31, 0.75);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.player-bar .chip { flex: 1; min-width: 0; }
.player-bar .chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 176, 32, 0.2), rgba(255, 93, 143, 0.2));
  border: 1px solid rgba(255, 176, 32, 0.45);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--yellow);
}
.score-pill small { font-family: var(--font-body); font-weight: 800; font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* Режим призрака */
.ghost-frame { position: fixed; inset: 0; z-index: 800; pointer-events: none; border: 5px solid rgba(179, 136, 255, 0.55); border-radius: 6px; opacity: 0.55; box-shadow: inset 0 0 60px rgba(179, 136, 255, 0.25); }
.ghost-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(179, 136, 255, 0.18);
  border: 1px dashed rgba(179, 136, 255, 0.7);
  color: var(--purple);
  font-weight: 800; font-size: 14px;
}

/* ---------- Клетки кода (play) ---------- */
.code-cells { display: flex; gap: 12px; justify-content: center; direction: ltr; }
.code-cell {
  width: 62px; height: 76px;
  border-radius: var(--r-md);
  border: 2px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.32);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  caret-color: var(--pink);
}
.code-cell:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 93, 143, 0.2); transform: scale(1.05); }

/* ---------- Гигантский код комнаты (host) ---------- */
.room-code {
  display: flex;
  gap: 14px;
  justify-content: center;
  direction: ltr;
}
.room-code span {
  display: flex; align-items: center; justify-content: center;
  width: clamp(64px, 9vw, 110px);
  height: clamp(84px, 12vw, 140px);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 76px);
  text-shadow: 0 0 26px rgba(255, 93, 143, 0.65), 0 0 60px rgba(179, 136, 255, 0.4);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(255, 255, 255, 0.05);
}

/* ---------- Игровые карточки ---------- */
.game-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; width: 100%; }
.game-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}
.game-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(255, 93, 143, 0.5); box-shadow: var(--shadow-pink); }
.game-card:active { transform: scale(0.97); }
.game-card .gc-emoji { font-size: 52px; margin-bottom: 14px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.game-card h3 { font-size: 20px; margin-bottom: 8px; }
.game-card p { color: var(--muted); font-size: 15px; }
.game-card .gc-min { margin-top: 14px; font-size: 13px; color: var(--cyan); font-weight: 800; }

/* ---------- Сцены ---------- */
.scene { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; text-align: center; }
.scene-title { font-size: clamp(26px, 4vw, 44px); font-weight: 900; }
.scene-sub { color: var(--muted); font-size: clamp(15px, 2vw, 19px); max-width: 640px; }
.scene .q-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.3; max-width: 900px; }
.q-category { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }

/* Варианты ответов (угар) */
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 720px; }
.option-btn {
  position: relative;
  padding: 20px 18px;
  border-radius: var(--r-md);
  border: 2px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 20px);
  text-align: left;
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-btn .opt-key {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  background: rgba(0, 0, 0, 0.3);
}
.option-btn:nth-child(1) .opt-key { color: var(--pink); }
.option-btn:nth-child(2) .opt-key { color: var(--cyan); }
.option-btn:nth-child(3) .opt-key { color: var(--yellow); }
.option-btn:nth-child(4) .opt-key { color: var(--green); }
.option-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--purple); box-shadow: var(--shadow-purple); }
.option-btn:active:not(:disabled) { transform: scale(0.95); }
.option-btn:disabled { cursor: default; }
.option-btn.opt-picked { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.25); }
.option-btn.opt-correct { border-color: var(--green); background: rgba(61, 220, 151, 0.16); box-shadow: 0 0 24px rgba(61, 220, 151, 0.35); }
.option-btn.opt-wrong { border-color: var(--red); background: rgba(255, 90, 110, 0.13); opacity: 0.75; }
.option-btn.opt-dim { opacity: 0.4; }

/* Проклятие «Перевёртыш» */
.flip-curse { transform: rotate(180deg); }
.flip-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Проклятие/последствие — большая карточка */
.penalty-card {
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(255, 93, 143, 0.16), rgba(179, 136, 255, 0.16));
  border: 2px solid rgba(255, 93, 143, 0.45);
  box-shadow: var(--shadow-pink);
  max-width: 560px;
  width: 100%;
}
.penalty-card .pen-avatar { font-size: 64px; margin-bottom: 8px; }
.penalty-card h3 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; margin: 8px 0; }
.penalty-card p { color: var(--text); font-size: 18px; }

/* ---------- Подиум ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; width: 100%; max-width: 640px; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.podium-slot .pod-avatar { font-size: clamp(40px, 7vw, 64px); filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55)); }
.podium-slot .pod-medal { font-size: clamp(28px, 5vw, 44px); }
.podium-slot .pod-name { font-weight: 800; font-size: clamp(14px, 2.2vw, 18px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-slot .pod-score { font-family: var(--font-display); font-weight: 900; font-size: clamp(18px, 3vw, 26px); color: var(--yellow); }
.podium-base { width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--glass); border: 1px solid var(--glass-border); border-bottom: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.podium-1 .podium-base { height: 130px; background: linear-gradient(180deg, rgba(255, 176, 32, 0.3), rgba(255, 176, 32, 0.05)); border-color: rgba(255, 176, 32, 0.5); box-shadow: 0 -6px 40px rgba(255, 176, 32, 0.25); }
.podium-2 .podium-base { height: 92px; background: linear-gradient(180deg, rgba(76, 201, 240, 0.25), rgba(76, 201, 240, 0.04)); border-color: rgba(76, 201, 240, 0.4); }
.podium-3 .podium-base { height: 66px; background: linear-gradient(180deg, rgba(179, 136, 255, 0.25), rgba(179, 136, 255, 0.04)); border-color: rgba(179, 136, 255, 0.4); }

/* ---------- Скорборд ---------- */
.scoreboard { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 520px; }
.score-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-weight: 800;
}
.score-row.sr-me { border-color: rgba(255, 176, 32, 0.6); box-shadow: 0 0 18px rgba(255, 176, 32, 0.18); }
.score-row .sr-pos { font-family: var(--font-display); font-weight: 900; width: 30px; color: var(--muted); }
.score-row .sr-avatar { font-size: 24px; }
.score-row .sr-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-row .sr-score { font-family: var(--font-display); font-weight: 900; font-size: 19px; color: var(--yellow); }

/* ---------- Малёвка: канвасы и палитра ---------- */
.draw-board { position: relative; width: 100%; max-width: 560px; }
.draw-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: #171130;
  border: 2px solid var(--glass-border);
  touch-action: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}
.draw-canvas.big { max-width: min(70vh, 640px); }
.palette {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.palette .swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.palette .swatch:active { transform: scale(0.85); }
.palette .swatch.sel { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 14px rgba(255, 255, 255, 0.5); }
.palette .brush {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
}
.palette .brush.sel { border-color: var(--cyan); box-shadow: 0 0 12px rgba(76, 201, 240, 0.5); }
.palette .brush i { border-radius: 50%; background: #fff; display: block; }
.palette .tool-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--glass-border);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s ease;
}
.palette .tool-btn:active { transform: scale(0.88); }

/* Сетка мини-канвасов хоста */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; width: 100%; }
.artist-card {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.artist-card canvas { width: 100%; aspect-ratio: 1/1; border-radius: var(--r-sm); background: #171130; }
.artist-card .ac-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.artist-card .ac-strokes { font-size: 12px; color: var(--muted); font-weight: 800; }

/* ---------- Дуэли (смехлыст) ---------- */
.duel-answers { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; }
.duel-card {
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 800;
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
button.duel-card:hover:not(:disabled) { transform: translateY(-2px) scale(1.01); border-color: var(--pink); box-shadow: var(--shadow-pink); }
button.duel-card:active:not(:disabled) { transform: scale(0.96); }
.duel-card.dc-picked { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.22); }
.duel-card.dc-mine { border-style: dashed; border-color: rgba(255, 176, 32, 0.55); }
.vs-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--pink);
  text-shadow: 0 0 20px rgba(255, 93, 143, 0.7);
}
.vote-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 10px; }
.vote-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width 0.6s ease; }

/* ---------- Результаты раскрытия (угар) ---------- */
.results-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 620px; }
.result-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-weight: 800;
}
.result-row.rr-correct { border-color: rgba(61, 220, 151, 0.5); }
.result-row.rr-wrong { opacity: 0.72; }
.result-row .rr-mark { font-size: 22px; }
.result-row .rr-name { flex: 1; text-align: left; }
.result-row .rr-gain { font-family: var(--font-display); font-weight: 900; color: var(--green); }

/* ---------- Хост-шапка ---------- */
.host-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  background: rgba(14, 10, 31, 0.78);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.host-bar .hb-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.host-bar .hb-spacer { flex: 1; }

/* ---------- Лендинг ---------- */
.hero { padding: 9vh 0 30px; text-align: center; }
.hero-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(74px, 17vw, 190px);
  letter-spacing: 0.02em;
  line-height: 1;
  filter: drop-shadow(0 10px 50px rgba(255, 93, 143, 0.35));
}
.hero-slogan { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 3.4vw, 32px); margin-top: 12px; }
.hero-sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 19px); max-width: 560px; margin: 18px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

.section { padding: 56px 0 10px; }
.section h2 { text-align: center; font-size: clamp(24px, 4vw, 38px); font-weight: 900; margin-bottom: 8px; }
.section .section-sub { text-align: center; color: var(--muted); margin-bottom: 34px; }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 760px; margin: 0 auto; }
.price-card { text-align: center; position: relative; }
.price-card .pc-price { font-family: var(--font-display); font-weight: 900; font-size: 44px; margin: 10px 0 4px; }
.price-card .pc-price small { font-size: 16px; color: var(--muted); font-family: var(--font-body); font-weight: 800; }
.price-card ul { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 15px; }
.price-card.pc-pro { border-color: rgba(255, 176, 32, 0.5); box-shadow: 0 18px 60px rgba(255, 176, 32, 0.15); }
.price-card .pc-corner { position: absolute; top: 16px; right: 16px; }

.footer { margin-top: 70px; padding: 26px 0 34px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }

/* ---------- Мелочи ---------- */
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 26px; } .mt-4 { margin-top: 40px; }
.muted { color: var(--muted); }
.big-emoji { font-size: clamp(56px, 9vw, 96px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
.waiting-dots::after { content: ''; animation: dots 1.4s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.auth-tabs { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); margin-bottom: 24px; }
.auth-tabs button {
  flex: 1; padding: 11px 18px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tabs button.sel { background: linear-gradient(120deg, var(--pink), var(--purple)); color: #fff; }

.lobby-players { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 720px; }

.timer-slot { display: flex; align-items: center; justify-content: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card { padding: 20px; }
  .options-grid { grid-template-columns: 1fr; }
  .code-cell { width: 54px; height: 66px; font-size: 28px; }
  .btn { padding: 15px 28px; font-size: 16px; }
  .btn-lg { padding: 18px 34px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .grad-text, .ring-hot, .waiting-dots::after { animation: none !important; }
}
