/*
 * Неоновая тема (макет «Космос»). Подключается после style.css и только
 * переопределяет его. Иконки кнопок — CSS-маски (игра сама пишет textContent
 * кнопок, вставленная разметка бы стиралась).
 */
:root {
  --ic-rocket: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4.5%2016.5c-1.5%201.3-2%205-2%205s3.7-.5%205-2c.7-.8.7-2.1-.1-2.9a2.2%202.2%200%200%200-2.9-.1z'%2F%3E%3Cpath%20d%3D'M12%2015l-3-3a22%2022%200%200%201%202-3.9A12.9%2012.9%200%200%201%2022%202c0%202.7-.8%207.5-6%2011a22.4%2022.4%200%200%201-4%202z'%2F%3E%3Cpath%20d%3D'M9%2012H4s.6-3%202-4c1.6-1.1%205%200%205%200'%2F%3E%3Cpath%20d%3D'M12%2015v5s3-.6%204-2c1.1-1.6%200-5%200-5'%2F%3E%3C%2Fsvg%3E");
  --ic-target: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'8'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'2'%2F%3E%3Cpath%20d%3D'M12%202v4M12%2018v4M2%2012h4M18%2012h4'%2F%3E%3C%2Fsvg%3E");
  --ic-shield: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2022s8-4%208-10V5l-8-3-8%203v7c0%206%208%2010%208%2010z'%2F%3E%3Cpath%20d%3D'M12%207v9'%2F%3E%3C%2Fsvg%3E");
  --ic-quests: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'8'%20y%3D'2'%20width%3D'8'%20height%3D'4'%20rx%3D'1'%2F%3E%3Cpath%20d%3D'M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2'%2F%3E%3Cpath%20d%3D'M9%2012h6M9%2016h6'%2F%3E%3C%2Fsvg%3E");
  --ic-crown: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%2018%204%207l5%205%203-7%203%207%205-5%202%2011z'%2F%3E%3Cpath%20d%3D'M5%2021h14'%2F%3E%3C%2Fsvg%3E");
  --ic-calendar: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'4'%20width%3D'18'%20height%3D'18'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M16%202v4M8%202v4M3%2010h18M8%2015h3'%2F%3E%3C%2Fsvg%3E");
  --ic-cart: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'9'%20cy%3D'20'%20r%3D'1.5'%2F%3E%3Ccircle%20cx%3D'19'%20cy%3D'20'%20r%3D'1.5'%2F%3E%3Cpath%20d%3D'M1%202h4l2.7%2012.4a2%202%200%200%200%202%201.6h9.2a2%202%200%200%200%202-1.6L22.5%206H6'%2F%3E%3C%2Fsvg%3E");
  --ic-trophy: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M8%2021h8M12%2017v4M7%204h10v5a5%205%200%200%201-10%200z'%2F%3E%3Cpath%20d%3D'M17%205h3v2a3%203%200%200%201-3%203M7%205H4v2a3%203%200%200%200%203%203'%2F%3E%3C%2Fsvg%3E");
  --ic-video: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'2'%20y%3D'5'%20width%3D'20'%20height%3D'14'%20rx%3D'3'%2F%3E%3Cpath%20d%3D'M10%209l5%203-5%203z'%2F%3E%3C%2Fsvg%3E");
  --ic-users: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'9'%20cy%3D'8'%20r%3D'4'%2F%3E%3Cpath%20d%3D'M2%2021v-1a5%205%200%200%201%205-5h4a5%205%200%200%201%205%205v1'%2F%3E%3Cpath%20d%3D'M16%204a4%204%200%200%201%200%208M22%2021v-1a5%205%200%200%200-3.5-4.8'%2F%3E%3C%2Fsvg%3E");
  --ic-play: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'%23000'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M7%204l13%208-13%208z'%2F%3E%3C%2Fsvg%3E");
  --ic-gear: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'3'%2F%3E%3Cpath%20d%3D'M12%202v3M12%2019v3M4.9%204.9l2.1%202.1M17%2017l2.1%202.1M2%2012h3M19%2012h3M4.9%2019.1%207%2017M17%207l2.1-2.1'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'7'%2F%3E%3C%2Fsvg%3E");
  --ic-home: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%2011l9-8%209%208'%2F%3E%3Cpath%20d%3D'M5%2010v10h5v-6h4v6h5V10'%2F%3E%3C%2Fsvg%3E");
  --ic-retry: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2012a9%209%200%201%201-2.6-6.4L21%208'%2F%3E%3Cpath%20d%3D'M21%203v5h-5'%2F%3E%3C%2Fsvg%3E");
  --ic-back: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%2018l-6-6%206-6'%2F%3E%3C%2Fsvg%3E");
  --ic-share: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2012v7a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-7'%2F%3E%3Cpath%20d%3D'M16%206l-4-4-4%204'%2F%3E%3Cpath%20d%3D'M12%202v13'%2F%3E%3C%2Fsvg%3E");
  --neon: #b06bff;
  --neon-soft: rgba(176, 107, 255, 0.55);
  --neon-glow: rgba(150, 80, 255, 0.45);
  --cyan: #5ff2ff;
  --cyan-glow: rgba(95, 242, 255, 0.45);
  --gold: #ffd36b;
  --ink: #f1e9ff;
  --ink-dim: #b9a6e6;
  --panel-bg: linear-gradient(180deg, rgba(22, 11, 52, 0.9), rgba(10, 6, 28, 0.94));
  --tile-bg: linear-gradient(180deg, rgba(48, 26, 104, 0.55), rgba(26, 14, 62, 0.6));
  --ui-font: "Montserrat", "Pangolin", system-ui, sans-serif;
}

.theme-neon body {
  font-family: var(--ui-font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(120, 50, 220, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(200, 60, 200, 0.25), transparent 55%),
    #07031a;
}

/* ── Фон меню: туманность + звёзды поверх игрового канваса ── */
.theme-neon #overlay {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%),
    radial-gradient(1px 1px at 72% 12%, #fff9, transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 42%, #fffa, transparent 60%),
    radial-gradient(1px 1px at 35% 64%, #fff7, transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 88%, #fff9, transparent 60%),
    radial-gradient(1px 1px at 8% 82%, #fff8, transparent 60%),
    radial-gradient(ellipse at 10% 10%, rgba(140, 60, 255, 0.35), transparent 50%),
    radial-gradient(ellipse at 95% 90%, rgba(190, 70, 220, 0.3), transparent 55%),
    rgba(6, 3, 20, 0.86);
}

/* ── Панели ── */
.theme-neon .panel {
  border: 1.5px solid var(--neon-soft);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow:
    0 0 28px var(--neon-glow),
    inset 0 0 36px rgba(120, 60, 255, 0.12);
  padding: 22px 18px;
}
.theme-neon .panel p { color: var(--ink-dim); }

/* ── Кнопки: убираем «нарисованные» тени, делаем неоновое свечение ── */
.theme-neon .panel .btn,
.theme-neon .segmented-tab,
.theme-neon .shop-btn {
  font-family: var(--ui-font);
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--neon-soft) !important;
  border-radius: 14px !important;
  background: var(--tile-bg) !important;
  box-shadow: 0 0 10px rgba(140, 90, 255, 0.22), inset 0 0 12px rgba(140, 90, 255, 0.12) !important;
  transition: transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.theme-neon .panel .btn:active,
.theme-neon .segmented-tab:active {
  transform: scale(0.97);
}
.theme-neon .panel .btn:hover,
.theme-neon .segmented-tab:hover {
  border-color: var(--neon) !important;
  box-shadow: 0 0 16px var(--neon-glow), inset 0 0 12px rgba(140, 90, 255, 0.18) !important;
}

/* Активные: бирюзовое свечение, как «Космос» / «Расслабон» на макете */
.theme-neon .mode-switch .mode-chip.mode-chip--active,
.theme-neon .segmented-tab.segmented-tab--active {
  border-color: var(--cyan) !important;
  color: #eaffff !important;
  background: linear-gradient(180deg, rgba(20, 70, 110, 0.6), rgba(14, 36, 70, 0.7)) !important;
  box-shadow: 0 0 16px var(--cyan-glow), inset 0 0 14px rgba(95, 242, 255, 0.18) !important;
}

/* ── Логотип режима ── */
.neon-logo { display: none; }
.theme-neon .neon-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 14px;
  pointer-events: none;
}
.neon-logo__emblem svg {
  width: 150px;
  height: 112px;
  filter: drop-shadow(0 0 14px rgba(190, 110, 255, 0.55));
}
.neon-logo__word {
  margin-top: -18px;
  font-family: "Unbounded", var(--ui-font);
  font-weight: 800;
  font-size: clamp(1.9rem, 10vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, #ffc4f0 45%, #b884ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 120, 230, 0.6)) drop-shadow(0 0 22px rgba(140, 90, 255, 0.5));
}
.neon-logo__line {
  width: 78%;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, var(--neon), #ff7fe0, var(--neon), transparent);
  box-shadow: 0 0 10px var(--neon-glow);
}

/* В меню логотип заменяет заголовок; описание Космоса на макете не показывается */
.theme-neon #menuPanel:not(.is-gameover) #title { display: none; }
.theme-neon body:not(.mountain-active):not(.defense-active) #menuPanel:not(.is-gameover) #bodyText { display: none; }
.theme-neon .record {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Кнопка «Играть» ── */
.theme-neon .panel .btn.menu-start-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(220, 170, 255, 0.9) !important;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.25), transparent 60%),
    linear-gradient(90deg, #5a2fe0, #9a3cff 55%, #c34cff) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  box-shadow: 0 0 24px rgba(170, 90, 255, 0.75), inset 0 0 18px rgba(255, 255, 255, 0.15) !important;
}
.theme-neon #menuPanel > .menu-start-btn { width: 100%; margin: 4px 0 2px; }
.theme-neon .menu-start-btn::before {
  content: "";
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: #fff;
  -webkit-mask: var(--ic-play) center / contain no-repeat;
  mask: var(--ic-play) center / contain no-repeat;
  filter: drop-shadow(0 0 4px #fff);
}
.theme-neon #menuPanel.is-gameover .menu-start-btn::before {
  -webkit-mask-image: var(--ic-retry);
  mask-image: var(--ic-retry);
}

/* ── Иконки на кнопках ── */
.theme-neon .mode-chip::before,
.theme-neon .menu-tile::before,
.theme-neon .go-home-btn::before,
.theme-neon .settings-fab::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.theme-neon #modeBulletChip { --ic: var(--ic-rocket); }
.theme-neon #modeMountainChip { --ic: var(--ic-target); }
.theme-neon #modeDefenseChip { --ic: var(--ic-shield); }
.theme-neon #dailyQuestsOpenBtn { --ic: var(--ic-quests); }
.theme-neon #careerOpenBtn { --ic: var(--ic-crown); }
.theme-neon #seasonOpenBtn { --ic: var(--ic-calendar); }
.theme-neon #shopOpenBtn { --ic: var(--ic-cart); }
.theme-neon #leaderboardBtn { --ic: var(--ic-trophy); }
.theme-neon #rewardAdBtn { --ic: var(--ic-video); }
.theme-neon #multiplayerOpenBtn { --ic: var(--ic-users); }
.theme-neon #authBtn, .theme-neon #mountainResumeBtn { --ic: var(--ic-back); }
.theme-neon .settings-fab { --ic: var(--ic-gear); }
.theme-neon .go-home-btn { --ic: var(--ic-home); }

/* Режимы: иконка над текстом, крупные плитки */
.theme-neon .mode-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 6px;
}
.theme-neon .mode-switch .mode-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 8px 4px;
  font-size: 0.95rem;
}
.theme-neon .mode-switch .mode-chip::before { width: 24px; height: 24px; }

/* Плитки меню: иконка слева */
.theme-neon .menu-tile:not(.hidden) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem !important;
  line-height: 1.15;
  padding: 8px 6px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
}

/* Секции «Прогресс» / «Игрок» */
.theme-neon .menu-section {
  border: 1px solid rgba(176, 107, 255, 0.28);
  border-radius: 16px;
  background: rgba(14, 8, 36, 0.55);
  padding: 10px;
}
.theme-neon .menu-section__label,
.theme-neon .obstacle-run-field__label {
  font-family: var(--ui-font);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c3a4ff;
  text-align: left;
}
.theme-neon .bullet-density-row .segmented-tab { min-height: 42px; font-size: 0.9rem; }

/* Шестерёнка настроек */
.theme-neon .settings-fab {
  border-radius: 50% !important;
  border: 1.5px solid var(--neon-soft);
  background: rgba(30, 16, 70, 0.8);
  color: var(--ink);
  box-shadow: 0 0 12px var(--neon-glow);
}
.theme-neon .settings-anchor--panel .settings-fab { width: 40px; height: 40px; }
.theme-neon .settings-fab__glyph { display: none; }
.theme-neon .settings-popover {
  border-radius: 16px;
  border: 1.5px solid var(--neon-soft);
  background: rgba(16, 8, 40, 0.97);
  box-shadow: 0 0 22px var(--neon-glow);
}
.theme-neon .sound-toggle {
  font-family: var(--ui-font);
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid var(--neon-soft);
  border-radius: 12px;
  background: var(--tile-bg);
  box-shadow: 0 0 8px rgba(140, 90, 255, 0.2);
}
.theme-neon .sound-toggle:hover { border-color: var(--neon); }
.theme-neon .settings-popover__title {
  font-family: "Unbounded", var(--ui-font);
  font-weight: 700;
  font-size: 1rem;
  color: #e2ccff;
}

/* Строка монет над панелью */
.theme-neon .overlay-wallet-line {
  font-family: var(--ui-font);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 200, 90, 0.45);
}

/* Заголовки экранов (магазин, лидерборд и т.п.) */
.theme-neon .shop-panel-heading {
  font-family: "Unbounded", var(--ui-font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #e2ccff;
  text-shadow: 0 0 12px var(--neon-glow);
}

/* ── HUD во время забега ── */
/* В меню счётчик забега не нужен — он просвечивал сквозь панель */
.theme-neon body:not(.game-playing) #hud { visibility: hidden; }
.theme-neon #hud .time {
  font-family: var(--ui-font);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(160, 120, 255, 0.8), 0 2px 0 #1a0a2e;
}
.theme-neon #hud .hint { font-family: var(--ui-font); font-weight: 500; }
.theme-neon #sessionCoinsHud { font-weight: 700; color: var(--gold) !important; }

/* ── Экран «Всё. Конец.» ── */
.theme-neon #menuPanel.is-gameover .neon-logo { display: none; }
.theme-neon #menuPanel.is-gameover #title {
  display: block;
  font-family: "Caveat", "Pangolin", cursive;
  font-weight: 700;
  font-size: 2.6rem;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 140, 230, 0.8), 0 0 26px rgba(160, 90, 255, 0.6);
  margin: 6px 0 2px;
}
.go-stats { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 10px; }
.go-stats[hidden] { display: none; }
.go-stats__value {
  font-family: var(--ui-font);
  font-weight: 800;
  font-size: clamp(2.6rem, 14vw, 3.4rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(170, 120, 255, 0.9);
}
.go-stats__record {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid #ff5fb8;
  background: linear-gradient(90deg, rgba(60, 20, 120, 0.8), rgba(90, 20, 90, 0.8));
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 95, 184, 0.5), 0 0 16px rgba(95, 120, 255, 0.35);
}
.go-stats__coins { font-weight: 700; font-size: 1.15rem; color: #e8dcff; }
/* Если режим передал цифры — длинный текст про забег не нужен */
.theme-neon #menuPanel.is-gameover .go-stats:not([hidden]) ~ #bodyText { display: none; }

/* После проигрыша — компактный экран: только «Ещё раз», режимы и сложность */
.go-home-row { display: none; }
.theme-neon #menuPanel.is-gameover:not(.go-show-menu) .menu-section { display: none; }
.theme-neon #menuPanel.is-gameover:not(.go-show-menu) .go-home-row {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.go-home-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--neon-soft);
  background: rgba(30, 16, 70, 0.85);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0 16px var(--neon-glow);
}
.go-home-btn::before { width: 24px !important; height: 24px !important; }
.theme-neon #menuPanel.is-gameover:not(.go-show-menu) .go-home-row { gap: 12px; align-items: center; }
.go-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--cyan);
  background: linear-gradient(180deg, rgba(20, 70, 110, 0.6), rgba(14, 36, 70, 0.7));
  color: #eaffff;
  font-family: var(--ui-font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 14px var(--cyan-glow);
}
.go-share-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ic-share) center / contain no-repeat;
  mask: var(--ic-share) center / contain no-repeat;
}

/* Узкие экраны */
@media (max-width: 380px) {
  .theme-neon .panel { padding: 18px 12px; }
  .theme-neon .menu-tile:not(.hidden) { font-size: 0.8rem !important; gap: 5px; }
  .theme-neon .menu-tile::before { width: 17px; height: 17px; }
  .neon-logo__emblem svg { width: 124px; height: 92px; }
}

/* ── Обучение на первом запуске (js/onboarding.js) ── */
.onb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  background: rgba(4, 2, 14, 0.82);
  backdrop-filter: blur(4px);
  animation: onb-in 0.22s ease-out;
}
.onb--out { opacity: 0; transition: opacity 0.2s ease; }
@keyframes onb-in { from { opacity: 0; } to { opacity: 1; } }
.onb__card {
  position: relative;
  width: min(360px, 100%);
  padding: 34px 22px 22px;
  border-radius: 24px;
  border: 1.5px solid var(--neon-soft);
  background: var(--panel-bg);
  box-shadow: 0 0 30px var(--neon-glow);
  text-align: center;
  color: var(--ink);
  font-family: var(--ui-font);
}
.onb__skip {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: var(--ink-dim);
  font: 600 0.85rem var(--ui-font);
  cursor: pointer;
  padding: 6px;
}
.onb__icon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 0 14px rgba(190, 110, 255, 0.7)); }
.onb__title {
  margin: 14px 0 8px;
  font-family: "Unbounded", var(--ui-font);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.onb__text { margin: 0 0 18px; line-height: 1.45; color: var(--ink-dim); font-size: 1rem; }
.onb__dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.onb__dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(176, 107, 255, 0.35); }
.onb__dots span.is-active { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.onb__next {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(220, 170, 255, 0.9);
  background: linear-gradient(90deg, #5a2fe0, #9a3cff 55%, #c34cff);
  color: #fff;
  font: 700 1.15rem var(--ui-font);
  cursor: pointer;
  box-shadow: 0 0 20px rgba(170, 90, 255, 0.7);
}

/* Кнопка «Позвать друга» в комнате мультиплеера (js/invite.js) */
.theme-neon .panel .btn.invite-btn:not(.hidden) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 14px var(--cyan-glow) !important;
}
.theme-neon .invite-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--ic-share) center / contain no-repeat;
  mask: var(--ic-share) center / contain no-repeat;
}

/* ── Экран загрузки: пока игра не собрала меню, сырой HTML не показываем ── */
#bootSplash { display: none; }
.is-booting #overlay,
.is-booting #hud { visibility: hidden; }
.is-booting #bootSplash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-dim);
  font: 600 1rem var(--ui-font);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(140, 60, 255, 0.35), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(190, 70, 220, 0.28), transparent 55%),
    #07031a;
}
.boot-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(176, 107, 255, 0.25);
  border-top-color: var(--cyan);
  box-shadow: 0 0 18px var(--neon-glow);
  animation: boot-spin 0.9s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }

/* Рекламы пока нет (была реклама Яндекса) — кнопка «монеты за видео» только
   показывала «недоступно». Вернуть, когда подключим рекламную сеть. */
#rewardAdBtn { display: none !important; }
.theme-neon #multiplayerOpenBtn { grid-column: 1 / -1; }
