/* =========================================================
   ПЕРЕМЕННЫЕ ТЕМЫ
   ========================================================= */
:root {
  --gold: #e0263f;
  --gold-light: #ff5f76;
  --teal: #b7bfc9;
  --ink: #0a0608;
  --panel: rgba(18, 8, 10, 0.62);
  --panel-border: rgba(224, 38, 63, 0.30);
  --text: #f4efee;
  --text-dim: rgba(244, 239, 238, 0.68);
  --danger: #ff5c73;
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* сайт без прокрутки */
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
}

button { font-family: inherit; }

/* =========================================================
   ФОН
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  background: url("../assets/bg.svg") center center / cover no-repeat, var(--ink);
  z-index: 0;
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fx-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 28%),
    rgba(224, 38, 63, 0.08), rgba(183, 191, 201, 0.03) 42%, transparent 68%);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 75%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}

/* =========================================================
   ВОЗРАСТНОЙ ГЕЙТ
   ========================================================= */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 2, 8, 0.88);
  backdrop-filter: blur(6px);
  transition: opacity .35s ease, visibility .35s ease;
}

.age-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-gate__box {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(35,20,48,0.95), rgba(18,10,26,0.95));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 24px);
  margin: 0 0 10px;
}

.age-gate__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.age-gate__question {
  font-weight: 700;
  margin: 0 0 18px;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--yes {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 8px 24px rgba(224, 38, 63, 0.35);
}

.btn--no {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.18);
}

.btn--no:hover { color: var(--text); border-color: rgba(255,255,255,0.35); }

/* =========================================================
   ОБЩИЙ КАРКАС САЙТА
   ========================================================= */
.site {
  position: relative;
  z-index: 3;
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3vh, 24px) clamp(16px, 4vw, 40px) 0;
  flex: 0 0 auto;
}

.site-header__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: 1px;
  color: var(--text);
}

.site-header__logo em {
  font-style: normal;
  color: var(--gold);
}

/* =========================================================
   ЛЕВЫЙ САЙДБАР (крипта, категории игр, бонусы, safety)
   ========================================================= */
.info-dock {
  position: fixed;
  top: clamp(64px, 12vh, 96px);
  left: clamp(14px, 3vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 16px);
}

.info-dock__btn {
  width: clamp(32px, 4.6vw, 40px);
  height: clamp(32px, 4.6vw, 40px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.info-dock__btn svg { width: 50%; height: 50%; display: block; }

.info-dock__btn:hover,
.info-dock__btn.is-active {
  background: rgba(224, 38, 63, 0.18);
  box-shadow: 0 0 0 3px rgba(224, 38, 63, 0.14);
  transform: translateX(2px);
}

.info-panel {
  position: fixed;
  top: clamp(64px, 12vh, 96px);
  left: calc(clamp(14px, 3vw, 28px) + clamp(32px, 4.6vw, 40px) + 14px);
  width: min(360px, calc(100vw - clamp(14px, 3vw, 28px) - clamp(32px, 4.6vw, 40px) - 54px));
  max-height: min(78vh, 560px);
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(35,20,48,0.97), rgba(18,10,26,0.97));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  /* аккуратный тонкий скроллбар вместо стандартного, на случай нехватки места */
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 38, 63, 0.55) rgba(255, 255, 255, 0.06);
}

.info-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.info-panel::-webkit-scrollbar { width: 6px; }
.info-panel::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 6px; }
.info-panel::-webkit-scrollbar-thumb { background: rgba(224, 38, 63, 0.5); border-radius: 6px; }
.info-panel::-webkit-scrollbar-thumb:hover { background: rgba(224, 38, 63, 0.8); }

.info-panel__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.info-panel__close:hover { color: var(--text); background: rgba(255,255,255,0.16); }

.info-panel__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  margin: 0 22px 12px 0;
  color: var(--gold-light);
}

.info-panel__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
}

.info-panel__body p { margin: 0 0 9px; }
.info-panel__body ul { margin: 0; padding-left: 18px; }
.info-panel__body li { margin-bottom: 7px; }
.info-panel__body li:last-child { margin-bottom: 0; }
.info-panel__body p:last-child { margin-bottom: 0; }
.info-panel__body strong { color: var(--text); }

.site-header__year {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* =========================================================
   СЦЕНА С КАРТОЧКОЙ И СТРЕЛКАМИ
   ========================================================= */
.stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(8px, 3vw, 24px);
  min-height: 0;
}

/* Стрелки закреплены у краёв вьюпорта — не зависят от ширины карточки
   и сайдбара, поэтому никогда не уезжают за пределы экрана. */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: clamp(38px, 6vw, 54px);
  height: clamp(38px, 6vw, 54px);
  border-radius: 50%;
  background: rgba(20, 12, 28, 0.55);
  border: 1px solid var(--panel-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-arrow--left { left: clamp(8px, 2.4vw, 28px); }
.nav-arrow--right { right: clamp(8px, 2.4vw, 28px); }

.nav-arrow svg { width: 46%; height: 46%; }

.nav-arrow:hover {
  background: rgba(224, 38, 63, 0.16);
  box-shadow: 0 0 0 4px rgba(224, 38, 63, 0.12);
}

.nav-arrow:active { transform: translateY(-50%) scale(0.92); }

.card-wrap {
  position: relative;
  width: min(400px, calc(100vw - 128px));
  height: min(600px, 78vh);
  flex: 0 0 auto;
  perspective: 1200px;
}

/* =========================================================
   КАРТОЧКА КАЗИНО
   ========================================================= */
.card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 4vh, 30px) clamp(18px, 4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  scrollbar-width: none;
  transition: transform .48s cubic-bezier(.22,.9,.34,1), opacity .4s ease;
  will-change: transform, opacity;
}

.card::-webkit-scrollbar { display: none; }

.card.enter-right { transform: translateX(115%) rotateZ(6deg) scale(0.94); opacity: 0; }
.card.enter-left  { transform: translateX(-115%) rotateZ(-6deg) scale(0.94); opacity: 0; }
.card.exit-left   { transform: translateX(-115%) rotateZ(-6deg) scale(0.94); opacity: 0; }
.card.exit-right  { transform: translateX(115%) rotateZ(6deg) scale(0.94); opacity: 0; }

.card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: clamp(10px, 2.4vh, 16px);
}

.card__position {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(13px, 2vw, 14px);
  color: #fff;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.card__rating {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 800;
  color: var(--gold-light);
  font-size: clamp(14px, 2.2vw, 15px);
}

.card__rating small {
  font-weight: 500;
  color: var(--text-dim);
  font-size: 11px;
}

.card__logo-wrap {
  width: clamp(140px, 30vw, 190px);
  aspect-ratio: 36 / 25;
  height: auto;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: clamp(10px, 2vh, 16px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.card__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__logo-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--ink);
}

.card__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vh, 28px);
  font-weight: 800;
  margin: 0 0 clamp(8px, 1.6vh, 12px);
}

.card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(7px, 1.4vh, 10px);
  width: 100%;
  margin: 0 0 clamp(14px, 2.6vh, 20px);
  flex: 1 1 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: clamp(9px, 1.8vh, 13px) 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(224, 38, 63, 0.16);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat__icon {
  width: clamp(16px, 2.6vh, 19px);
  height: clamp(16px, 2.6vh, 19px);
  color: var(--teal);
  margin-bottom: 1px;
}

.stat__icon svg { width: 100%; height: 100%; display: block; }

.stat__label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
}

.stat__value {
  font-size: clamp(12.5px, 1.9vh, 14px);
  font-weight: 700;
  color: var(--text);
}

.card__cta {
  display: block;
  width: 100%;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-weight: 800;
  font-size: clamp(14px, 2vh, 15.5px);
  padding: clamp(13px, 2.2vh, 16px) 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(224, 38, 63, 0.32);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(224, 38, 63, 0.42);
}

.card__cta-sub {
  display: block;
  font-weight: 500;
  font-size: 12px;
  opacity: 0.82;
  margin-top: 2px;
}

.card__mirror {
  margin: clamp(8px, 1.6vh, 12px) 0 0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card__mirror::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  flex: 0 0 auto;
}

/* =========================================================
   ТОЧКИ-ИНДИКАТОРЫ
   ========================================================= */
.dots {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 clamp(10px, 2vh, 16px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease, width .2s ease;
}

.dot:hover { background: rgba(255,255,255,0.5); }

.dot.is-active {
  width: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.site-footer {
  flex: 0 0 auto;
  text-align: center;
  font-size: 10.5px;
  color: rgba(243, 236, 255, 0.45);
  padding-bottom: clamp(6px, 1.4vh, 10px);
  letter-spacing: 0.3px;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 560px) {
  .site-header__year { display: none; }
}

@media (max-width: 400px) {
  .info-dock { left: 10px; gap: 8px; }
  .info-dock__btn { width: 28px; height: 28px; }
  .info-panel { left: calc(10px + 28px + 10px); width: min(320px, calc(100vw - 10px - 28px - 34px)); }
}

@media (max-height: 640px) {
  .card-wrap { height: 74vh; }
  .card__logo-wrap { width: 130px; aspect-ratio: 36 / 25; height: auto; margin-bottom: 8px; }
  .card__name { font-size: 19px; margin-bottom: 6px; }
  .card__stats { gap: 5px; margin-bottom: 10px; }
  .stat { padding: 6px 4px; }
  .stat__label { font-size: 9px; }
  .stat__value { font-size: 11.5px; }
}
