:root {
  --bg-main: #050509;
  --bg-secondary: #0c0c14;
  --accent: #e8c569;
  --accent-soft: rgba(232, 197, 105, 0.35);
  --accent-strong: rgba(232, 197, 105, 0.7);
  --text-main: #f5f5f5;
  --text-muted: #9a9aad;
  --card-bg: rgba(14, 14, 24, 0.92);
  --border-soft: rgba(255, 255, 255, 0.06);
  --danger: #ff416f;
  --success: #35d49b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 0 60px rgba(0, 0, 0, 0.8);
  --shadow-neon: 0 0 45px rgba(232, 197, 105, 0.75);
}

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

html,
body {
  height: 100%;
}

html {
  height: 100%;
  background-color: #050509; /* чтобы под всем был сплошной тёмный цвет */
}

body {
  font-family: system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  background-color: #050509; /* ключевая строка для Safari */
  background: radial-gradient(circle at top,#151528 0,#050509 55%,#000 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================= HEADER ================= */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 10, 0.95),
    rgba(5, 5, 10, 0.88),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-mark {
  /* тот же случай, что в админке: без flex:none круг плющится при узком окне */
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    #000,
    #141424,
    #e8c569,
    #000,
    #141424
  );
  box-shadow:
    0 0 10px rgba(232, 197, 105, 0.7),
    0 0 25px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);
}

.logo-text-main {
  font-weight: 650;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}

nav a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--danger));
  transition: width 0.18s ease-out;
}

nav a:hover {
  color: var(--text-main);
}

nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Шапка вошедшего игрока шире гостевой: к двум кнопкам добавляется баланс, а он
     растёт вместе с суммой («1 250 000 фишек»). Без этих трёх строк ряд просто
     не помещался и растягивал всю страницу вправо. */
  min-width: 0;
  flex-shrink: 1;
}

/* Баланс ужимается первым: кнопки нажимают, баланс читают */
.header-cta #headerWallet {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Логотип не сжимаем — он и так фиксированного размера, ужимается подпись рядом */
.logo-wrap { flex-shrink: 0; min-width: 0; }

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #f6ecd0, #e8c569 45%, #caa14a 100%);
  color: #050509;
  box-shadow: 0 0 24px rgba(232, 197, 105, 0.65);
  border-color: rgba(232, 197, 105, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(232, 197, 105, 0.85);
  filter: brightness(1.02);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), transparent);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.09), transparent);
}

/* ================= HERO (главная) ================= */

.hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;

  background: radial-gradient(
    circle at 50% -20%,
    #151528 0%,
    #0b0b14 45%,
    #050509 80%
  );
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle at 70% 20%,
    rgba(232, 197, 105, 0.22),
    transparent 70%
  );
  opacity: 0.45;
  filter: blur(12px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #050509);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(110deg, #faf5e3, #f6ecd0, #e8c569);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 22px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note-badge {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(53, 212, 155, 0.9);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.metric-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* ================= TABLE PREVIEW CARD ================= */

.hero-table-card {
  position: relative;
  border-radius: 28px;
  padding: 16px 16px 18px;

  background: radial-gradient(circle at 0 0, #18182b, #050509 80%);

  /* Новый премиальный неон */
  box-shadow:
    0 0 10px rgba(232,197,105,0.25),   /* внутреннее мягкое свечение */
    0 0 22px rgba(232,197,105,0.35),   /* внешнее синее свечение */
    0 0 32px rgba(232,197,105,0.45);   /* яркий концентрированный свет */

  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; /* защита от швов */
}

/* внешний мягкий ореол, чтобы не было резкого стыка с фоном */
.hero-table-card::before {
  content: "";
  position: absolute;
  inset: -22px; /* ширина зоны свечения — уже и чище */
  border-radius: inherit;

  background: radial-gradient(
    circle at 50% 45%,
    rgba(232, 197, 105, 0.85) 0%,   /* яркий центр свечения */
    rgba(232, 197, 105, 0.32) 35%, /* плавный переход */
    transparent 70%
  );

  opacity: 0.9;           /* яркость свечения */
  filter: blur(16px);      /* мягкая кромка без грязи */
  pointer-events: none;
  z-index: -1;
}

/* тонкий внутренний контур (можно вообще удалить, если не нужен) */
.hero-table-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  /* лёгкий внутренний рефлекс */
  border: 1px solid rgba(255,255,255,0.08);

  background: radial-gradient(
    circle at 50% 0%,
    rgba(255,255,255,0.07),
    transparent 60%
  );

  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

/* шапка карточки: текст Live · Hold'em · 5/10 + бай-ины справа */

.hero-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-table-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-table-line-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-table-line-sub {
  margin-left: 24px;
  color: var(--text-muted);
  font-size: 12px;
}

.hero-table-header-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.hero-mini-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 10px;
  font-size: 11px;
  background: rgba(5, 5, 15, 0.96);
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(53, 212, 155, 0.9);
}

/* сам овальный стол */

.hero-table-preview {
  padding: 10px 4px 6px;
}

.poker-table.hero-preview-table {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 2.3 / 1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% -30%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 50% 130%, rgba(232, 197, 105, 0.26), #050509 70%);
  /* узкая, но яркая кромка */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 10px rgba(0, 0, 0, 0.9),
    0 0 18px 2px rgba(232, 197, 105, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-preview-table .poker-table-inner {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.06), transparent 65%),
    radial-gradient(circle at 50% 130%, rgba(232, 197, 105, 0.22), #050509 80%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.hero-preview-table .table-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: rgba(245, 245, 255, 0.95);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.hero-preview-table .table-logo span {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  letter-spacing: 0.3em;
  color: rgba(192, 196, 255, 0.85);
}

/* сиденья вокруг стола */

.hero-preview-seats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  font-size: 11px;
}

.hero-preview-seat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 0px;
  border-radius: 999px;
  background: rgba(5, 5, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  color: #e5e7ff;
}

.hero-preview-seat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 0 0, rgba(232, 197, 105, 0.45), #050509);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #f5f5ff;
  flex-shrink: 0;
}

.hero-preview-seat-label {
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* расположение сидений симметрично по периметру */

.hero-preview-seat-1 {          /* верх по центру */
  top: -10%;
  left: 50%;
  transform: translate(-50%, 0);
}

.hero-preview-seat-2 {          /* правый верх */
  top: 24%;
  right: 2%;
  transform: translate(0, -50%);
}

.hero-preview-seat-3 {          /* правый низ */
  bottom: 24%;
  right: 2%;
  transform: translate(0, 50%);
}

.hero-preview-seat-4 {          /* низ по центру */
  bottom: -10%;
  left: 50%;
  transform: translate(-50%, 0);
}

.hero-preview-seat-5 {          /* левый низ */
  bottom: 24%;
  left: 2%;
  transform: translate(0, 50%);
}

.hero-preview-seat-6 {          /* левый верх */
  top: 24%;
  left: 2%;
  transform: translate(0, -50%);
}

/* адаптация на узких экранах */

@media (max-width: 600px) {
  .hero-table-card {
    padding: 12px 10px 14px;
  }

  .poker-table.hero-preview-table {
    max-width: 100%;
  }

  .hero-preview-seat-label {
    max-width: 68px;
  }
}

/* ================= FEATURES ================= */

.features {
  padding: 20px 0 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  padding: 14px 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  font-size: 13px;
}

.feature-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}

.feature-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  margin-top: 8px;
}

.feature-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 197, 105, 0.9);
}

/* ================= APPS ================= */

.apps {
  padding-bottom: 50px;
}

.apps-inner {
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: radial-gradient(circle at 0 0, #181828, #050509 70%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  padding: 20px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.apps-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.apps-text {
  color: var(--text-muted);
  max-width: 360px;
  font-size: 12px;
  line-height: 1.5;
}

.apps-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 5, 12, 0.9);
}

.store-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.store-name {
  font-size: 12px;
}

/* ================= FOOTER ================= */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0 20px;
  font-size: 11px;
  color: var(--text-muted);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ================= AUTH PAGES ================= */

.auth-page {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* средний отсвет для login/register/forgot/downloads */
.auth-page::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -110px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(232, 197, 105, 0.36), transparent 70%);
  opacity: 0.45;
  filter: blur(8px);
  pointer-events: none;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  background: radial-gradient(circle at 0 0, #181828, #050509 80%);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  padding: 26px 22px 22px;
}

.auth-title {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* подписи к полям */
.auth-label,
.auth-form label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* инпуты */
.auth-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 10, 22, 0.95);
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 16px rgba(232, 197, 105, 0.55);
}

/* блок действий */
.auth-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* главная неоновая кнопка */
.auth-submit,
.neon-btn {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(232, 197, 105, 0.4);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: radial-gradient(circle at 0 0, #f6ecd0, #e8c569 45%, #caa14a 100%);
  color: #050509;
  box-shadow: 0 0 22px rgba(232, 197, 105, 0.75);
  transition: all 0.15s ease-out;
}

.auth-submit:hover,
.neon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(232, 197, 105, 0.95);
}

/* переключатель "Нет аккаунта?" / "Уже есть аккаунт?" */
.auth-switch {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* текст-пояснение под кнопкой */
.auth-note,
.auth-inline-link {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.auth-note {
  margin-top: 10px;
}

.auth-inline-link {
  text-align: right;
}

/* строчка "Забыли пароль?" */
.auth-extra-row {
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
}

/* ссылки в auth-блоках — цвет как на старом login */
.auth-switch a,
.auth-inline-link a,
.auth-extra-row a,
.auth-link {
  color: #e8c569;
  text-decoration: none;
}

.auth-switch a:hover,
.auth-inline-link a:hover,
.auth-extra-row a:hover,
.auth-link:hover {
  text-decoration: underline;
}

/* ===== ПАРОЛЬ: ПОКАЗАТЬ / СКРЫТЬ ===== */

.auth-password-wrap {
  position: relative;
  width: 100%;
}

.auth-password-wrap .auth-input {
  padding-right: 44px; /* место под глаз */
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;

  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);

  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.auth-password-toggle:hover {
  opacity: 1;
  color: var(--text-main);
}

/* iOS/Safari safe: не клиппим SVG/scan */
.auth-password-toggle { overflow: visible; -webkit-tap-highlight-color: transparent; }
.auth-password-toggle svg { overflow: visible; display:block; }
/* ================= DOWNLOADS LIST ================= */

.download-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.06),
    rgba(5, 5, 15, 0.96)
  );
  padding: 10px 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
  color: #f5f5ff;
  transition: border-color 0.18s ease-out,
              box-shadow 0.18s ease-out,
              transform 0.12s ease-out;
}

.download-item:hover {
  border-color: rgba(246, 236, 208, 0.85);
  box-shadow: 0 0 26px rgba(232, 197, 105, 0.85);
  transform: translateY(-1px);
}

.download-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.download-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.download-badge-available {
  color: #e8c569;
}

.download-main {
  font-weight: 500;
}

.download-note {
  font-size: 11px;
  color: var(--text-muted);
}

/* яркая доступная кнопка */
.download-item.is-primary {
  background: radial-gradient(circle at 0 0, #f6ecd0, #e8c569 45%, #caa14a 100%);
  border-color: rgba(232, 197, 105, 0.85);
  color: #050509;
  box-shadow: 0 0 30px rgba(232, 197, 105, 0.95);
}

.download-item.is-primary .download-badge,
.download-item.is-primary .download-note {
  color: rgba(5, 5, 10, 0.8);
}

.download-item.is-disabled {
  opacity: 0.9;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 880px) {
  nav {
    display: none;
  }

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

  .hero {
    padding-top: 30px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-table-card {
    margin-top: 6px;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-main {
    padding-top: 20px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding-inline: 0;
  }

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

  .apps-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .poker-table {
    max-width: 100%;
  }

  .auth-card {
    padding-inline: 16px;
  }
}
/* Узкие экраны (iPhone 12 портрет + часть ландшафта) */
@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
    padding-block: 10px;
  }

  .logo-text-main {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .logo-text-sub {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .header-cta {
    gap: 6px;
  }

  /* На узкой шапке подпись логотипа занимает 70 px и ломается на три строки
     («MIDNIGHT / BLACK / POKER ROOM»), вытесняя баланс и переключатель языка за край.
     Знак остаётся — по нему и узнают, и он же ссылка на главную. */
  .logo-text-main,
  .logo-text-sub { display: none; }

  .header-cta .btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .btn-primary {
    box-shadow: 0 0 18px rgba(232, 197, 105, 0.65);
  }
}

/* Ландшафт на телефонах: ещё чуть компактнее кнопки, чтобы не лезли на логотип */
@media (max-width: 820px) and (orientation: landscape) {
  .header-inner {
    gap: 8px;
    padding-block: 8px;
  }

  .logo-text-main {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .logo-text-sub {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .header-cta .btn {
    padding: 5px 9px;
    font-size: 11px;
  }
}

/* ==== Узкие экраны: логин / рега / забыли пароль ==== */
@media (max-width: 480px) {
  .auth-main {
    padding: 18px 10px 26px;
  }

  .auth-card {
    max-width: 360px;
    padding: 20px 16px 18px;
  }

  .auth-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .auth-input {
    font-size: 13px;
    padding: 8px 12px;
  }

  .auth-submit {
    padding: 9px 14px;
    font-size: 13px;
  }

  .auth-switch,
  .auth-note,
  .auth-inline-link,
  .auth-extra-row {
    font-size: 12px;
  }
}

/* Ландшафт телефона: чтобы карточка не упиралась в края и не ехал текст */
@media (max-width: 820px) and (orientation: landscape) {
  .auth-main {
    padding: 12px 10px 20px;
  }

  .auth-card {
    max-width: 420px;
    padding: 18px 16px 16px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle {
    font-size: 13px;
  }
}

/* ===== HERO: полноразмерный превью-стол 5/10 ===== */

.hero-table-card--full {
  padding: 14px 16px 16px;
  overflow: hidden;
}

/* верхняя строка карточки */
.hero-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-table-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 60%;
}

.hero-table-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-table-line-main {
  font-size: 12px;
}

.hero-table-line-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-table-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.hero-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(53,212,155,0.9);
  margin-top: 4px;
  flex-shrink: 0;
}

.hero-mini-pill {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 9px;
  font-size: 11px;
  background: rgba(5,5,15,0.9);
  color: var(--text-muted);
  white-space: nowrap;
}

/* сам стол — скин из table-surface, но ограниченный по ширине */
.hero-table-card--full .poker-table {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 2.3/1;
  margin: 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% -40%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(circle at 50% 130%, rgba(232,197,105,0.24), #050509 70%);
  box-shadow: 0 0 26px rgba(232,197,105,0.6);
  overflow: visible;
}

.hero-table-card--full .poker-table-inner {
  position: absolute;
  inset: 14%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,0.06), transparent 65%),
    radial-gradient(circle at 50% 130%, rgba(232,197,105,0.22), #050509 80%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.9);
}

/* логотип в центре стола */
.hero-table-card--full .table-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: rgba(245,245,255,0.95);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.hero-table-card--full .table-logo span {
  display: block;
  font-size: 9px;
  margin-top: 3px;
  letter-spacing: 0.30em;
  color: rgba(192,196,255,0.85);
}

.hero-table-preview {
  margin-top: 4px;
}

/* сидения вокруг стола — копия живых seat’ов, но под свои классы */

.hero-players {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.hero-seat {
  position: absolute;
  height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5,5,15,0.96);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9a9aad;
  pointer-events: auto;
}

.hero-seat-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 0 0, rgba(232,197,105,0.45), #050509);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: #f5f5ff;
  flex-shrink: 0;
}

.hero-seat-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-seat-name {
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-seat-stack {
  font-weight: 600;
  color: #fff;
}

/* плавное масштабирование превью-стола */
.hero-preview-table {
  transition: transform 0.15s ease-out;
}

/* расположение стульев как в реальном столе */
.hero-seat-1 { top: 0%;  left: 50%; transform: translate(-50%, 0); }
.hero-seat-2 { top: 24%; right: 2%; transform: translate(0, -50%); }
.hero-seat-3 { bottom: 24%; right: 2%; transform: translate(0, 50%); }
.hero-seat-4 { bottom: 0%; left: 50%; transform: translate(-50%, 0); }
.hero-seat-5 { bottom: 24%; left: 2%; transform: translate(0, 50%); }
.hero-seat-6 { top: 24%; left: 2%; transform: translate(0, -50%); }

/* адаптация для узких экранов */
@media (max-width: 600px) {
  .hero-table-card--full {
    padding: 12px 10px 14px;
  }

  .hero-table-left {
    max-width: 100%;
  }

  .hero-table-card--full .poker-table {
    max-width: 100%;
  }

  /* чуть уменьшаем стол, чтобы сиденья не прилипали к краям */
  .hero-preview-table {
    transform: scale(0.9);
    transform-origin: center;
  }
}
/* --- MINI STATUS BAR: только при is-loading, не при is-active --- */

/* Базовое состояние полоски — спрятана */
.bottom-nav-item .bottom-nav-progress {
  width: 0;
}

/* Активная вкладка НЕ заставляет прогресс быть 100% */
.bottom-nav-item.is-active .bottom-nav-progress {
  width: 0;
}

/* Полоска заполняется только когда на элементе есть класс is-loading */
.bottom-nav-item.is-loading .bottom-nav-progress {
  width: 100%;
}

/* ================================
   iOS/Safari autofill (yellow fix)
================================ */

/* Инпуты MB */
input.auth-input:-webkit-autofill,
input.auth-input:-webkit-autofill:hover,
input.auth-input:-webkit-autofill:focus,
textarea.auth-input:-webkit-autofill,
textarea.auth-input:-webkit-autofill:hover,
textarea.auth-input:-webkit-autofill:focus,
select.auth-input:-webkit-autofill,
select.auth-input:-webkit-autofill:hover,
select.auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  /* перекрашиваем фон автозаполнения */
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.03) inset !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,0.03) inset !important;
  /* иногда Safari держит свою “заливку”, гасим её этой магией */
  transition: background-color 999999s ease-in-out 0s;
}

/* Часто помогает дополнительно (iOS 16+ бывает упрямый) */
input.auth-input:autofill {
  background: rgba(255,255,255,0.03) !important;
}

.avatar-core{
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 0, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(circle at 0 100%, rgba(232,197,105,.45), #050509 80%);
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 650;
  letter-spacing: .18em;
  color: rgba(255,255,255,.92);
}
.avatar-core img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius: inherit;
  display:block;
}
