:root {
  --bg: #0b0613;
  --surface: #1a0f2e;
  --surface-2: #241541;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6efff;
  --text-muted: #b29fd1;
  --accent: #ff2d6f;
  --accent-2: #b14bff;
  --accent-3: #ffb020;
  --accent-4: #ff5c8a;
  --radius: 24px;
  --radius-sm: 16px;
  --glow-pink: 0 0 34px rgba(255, 45, 111, 0.35);
  --glow-violet: 0 0 34px rgba(177, 75, 255, 0.35);
  --glow-amber: 0 0 34px rgba(255, 176, 32, 0.32);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(177, 75, 255, 0.22), transparent 62%),
    radial-gradient(900px 520px at -8% 18%, rgba(255, 45, 111, 0.16), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(255, 92, 138, 0.12), transparent 60%),
    linear-gradient(180deg, #0e0719 0%, #0b0613 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 24px;
}

.topbar__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #fff, #ffb7d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__login {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--glow-pink);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.topbar__login:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.topbar__user {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.topbar__menu {
  position: relative;
}

.topbar__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.topbar__icon:hover {
  background: var(--surface);
}

.menu-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.menu-dropdown.open {
  display: flex;
}

.menu-dropdown__item {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.menu-dropdown__item:hover {
  background: var(--surface-2);
}

/* Home */
.home-hero {
  text-align: center;
  padding: 18px 0 28px;
}

.home-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.home-subtitle {
  margin-top: 10px;
  font-size: 17px;
  color: var(--text-muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 44px 26px;
  min-height: 320px;
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  width: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.game-card:active {
  transform: translateY(-2px) scale(0.99);
}

.game-card--truth:hover { box-shadow: var(--glow-pink); }
.game-card--never:hover { box-shadow: var(--glow-violet); }
.game-card--would:hover { box-shadow: var(--glow-amber); }

.game-card__icon {
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

.game-card__name {
  font-size: 22px;
  font-weight: 800;
}

.game-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.45;
}

.game-card__cta {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.18s ease;
}

.game-card--truth .game-card__cta { color: var(--accent-4); }
.game-card--never .game-card__cta { color: var(--accent-2); }
.game-card--would .game-card__cta { color: var(--accent-3); }

.game-card:hover .game-card__cta {
  opacity: 1;
}

/* Sub header (players & game) */
.sub-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 22px;
}

.sub-title {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.sub-spacer {
  width: 46px;
  flex-shrink: 0;
}

.icon-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

/* Players screen */
.players-hint {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--glow-violet);
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.setup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.setup__label {
  font-size: 20px;
  font-weight: 800;
}

.setup__control {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setup__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.setup__btn:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.setup__count {
  min-width: 30px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.player-names {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-row__num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.player-row__input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  font-size: 17px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.player-row__input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.player-row__input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(177, 75, 255, 0.25);
}

.start-btn {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: var(--glow-pink);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.start-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.start-btn:active {
  transform: scale(0.98);
}

/* Game body */
.game-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.turn-badge {
  align-self: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

/* Truth or Dare */
.tod-card {
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--glow-violet);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.tod-card__label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.tod-card__text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  word-break: break-word;
}

.tod-card--truth { border-color: rgba(177, 75, 255, 0.45); }
.tod-card--dare { border-color: rgba(255, 45, 111, 0.45); }

.tod-picker {
  display: flex;
  gap: 14px;
}

.tod-btn {
  flex: 1;
  padding: 22px 16px;
  font-size: 20px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.tod-btn:hover { filter: brightness(1.08); }
.tod-btn:active { transform: scale(0.97); }

.tod-btn--truth {
  background: linear-gradient(135deg, #8b5cff, var(--accent-2));
  box-shadow: var(--glow-violet);
}

.tod-btn--dare {
  background: linear-gradient(135deg, var(--accent-4), var(--accent));
  box-shadow: var(--glow-pink);
}

/* Mode selector (players screen) */
.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--glow-violet);
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mode-card__label {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.mode-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-pill {
  flex: 1;
  min-width: 88px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.mode-pill.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-pink);
}

/* Never Have I Ever */
.nhie-card {
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--glow-violet);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.nhie-card__counter {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.nhie-card__text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
}

/* Would You Rather */
.wyr-card {
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--glow-amber);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.wyr-option {
  padding: 22px 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wyr-option:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.wyr-option:first-child { border-color: rgba(177, 75, 255, 0.45); }
.wyr-option:last-child { border-color: rgba(255, 176, 32, 0.45); }

.wyr-or {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.wyr-picked {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: transparent;
  color: #fff;
}

/* Next button */
.next-btn {
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  cursor: pointer;
  box-shadow: var(--glow-pink);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.next-btn:hover { filter: brightness(1.08); }
.next-btn:active { transform: scale(0.98); }

/* Intro */
.intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  padding: 4px 8px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 10, 0.7);
  backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), var(--glow-violet);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal__close:hover {
  color: var(--text);
  background: var(--surface);
}

.modal__title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.modal__hint {
  margin: 10px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.auth__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-size: 17px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth__input::placeholder {
  color: var(--text-muted);
}

.auth__input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(177, 75, 255, 0.25);
}

.auth__error {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-4);
  text-align: center;
}

.modal__card .start-btn {
  margin-top: 16px;
}

/* Auth form */
.auth-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.auth-hint {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

.reg-warning {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--accent-3);
  padding: 12px 14px;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: 12px;
}

.auth__select {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth__select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(177, 75, 255, 0.25);
}

.auth__select option {
  background: var(--surface);
  color: var(--text);
}

.auth-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth-notice {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  padding: 14px 16px;
  background: rgba(255, 45, 111, 0.12);
  border: 1px solid rgba(255, 45, 111, 0.35);
  border-radius: 14px;
  text-align: center;
}

.paywall__emoji {
  font-size: 48px;
  text-align: center;
}

.paywall__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.paywall__price {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-3);
}

.paywall-note {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  text-align: center;
}

.install-os {
  font-size: 16px;
  font-weight: 800;
  margin-top: 8px;
  text-align: left;
}

.install-steps {
  margin: 4px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.install-steps li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Всплывающие шутки */
.joke-toast {
  position: fixed;
  max-width: 300px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--glow-violet);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.joke-toast.show {
  opacity: 1;
}

.joke-toast--bottom-right { bottom: 20px; right: 20px; }
.joke-toast--bottom-left { bottom: 20px; left: 20px; }
.joke-toast--top-right { top: 90px; right: 20px; }
.joke-toast--top-left { top: 90px; left: 20px; }

.profile-hint {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.referral-copy {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.referral-copy:hover {
  background: var(--surface);
}

.referral-link {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.paywall-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paywall-qty__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.paywall-qty__input {
  width: 110px;
  height: 46px;
  padding: 0 12px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}

.paywall-qty__input:focus {
  border-color: var(--accent);
}

.paywall-total {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-3);
}

.auth-link {
  background: none;
  border: none;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.auth-link:hover {
  text-decoration: underline;
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-value {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.profile-logout {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--accent-4);
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-logout:hover {
  background: rgba(255, 45, 111, 0.12);
}

/* Truth lock (2 правды подряд) */
.tod-btn:disabled,
.tod-btn--locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
  box-shadow: none;
}

.tod-btn:disabled:hover {
  filter: grayscale(0.6);
}

.lock-hint {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-3);
}

/* Features (маркетинговый блок) — отдельный стиль, не как карточки игр */
.features {
  margin-top: 48px;
  padding: 30px 28px;
  background: linear-gradient(135deg, rgba(255, 45, 111, 0.08), rgba(177, 75, 255, 0.1));
  border: 1px solid rgba(255, 45, 111, 0.22);
  border-radius: var(--radius);
}

.features__title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  text-align: center;
}

.feature__emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.feature__name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Footer */
.footer {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer__age {
  padding: 2px 9px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-weight: 700;
  color: var(--text);
}

/* Responsive */
@media (max-width: 860px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 220px;
  }

  .home-title {
    font-size: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Зал славы: панель справа (не влияет на центрирование основного контента) */
.home-sidebar {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 280px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  z-index: 40;
}

/* Топ сайта */
.leaderboard {
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 176, 32, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--glow-amber);
}

.leaderboard__title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.leaderboard__hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
}

.leaderboard__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.leaderboard__rank {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-3);
  background: rgba(255, 176, 32, 0.12);
  border-radius: 8px;
}

.leaderboard__name {
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.leaderboard__empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}

/* Настройки */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.settings-row__text {
  flex: 1;
}

.settings-label {
  font-size: 15px;
  font-weight: 700;
}

.settings-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.settings-toggle {
  flex-shrink: 0;
  min-width: 60px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-toggle.on {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-pink);
}

/* О проекте */
.about-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-h {
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
  color: var(--text);
}

@media (max-width: 1500px) {
  .home-sidebar {
    position: static;
    width: 100%;
    margin-top: 28px;
  }
}
