/* ============ SLOT365 — dark casino theme ============ */

:root {
  --navy: #0f0c29;
  --sapphire: #302b63;
  --bg-deep: #0f0c29;
  --bg-base: rgba(18, 15, 47, 0.92);
  --bg-card: rgba(24, 21, 58, 0.86);
  --bg-elevated: rgba(48, 43, 99, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #F8FAFC;
  --text-secondary: #A7B0C0;
  --text-muted: #6B7488;
  --gold: #F0B429;
  --gold-deep: #CA8A04;
  --gold-soft: rgba(240, 180, 41, 0.12);
  --gold-border: rgba(240, 180, 41, 0.35);
  --green: #34D399;
  --silver: #C0C7D4;
  --vip: #C084FC;
  --radius: 14px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 1140px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #0f0c29;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.num { font-variant-numeric: tabular-nums; }
.gold-text { color: var(--gold); }

h1, h2, h3, .price .amount, .podium-prize {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}

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

/* ============ Animated page background ============ */

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0f0c29;
}

.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 0, 14, 0.18);
}

.dither-container {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  position: relative;
}

.dither-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ============ Icons (ph.svg placeholders) ============ */

.icon { width: 24px; height: 24px; flex-shrink: 0; display: inline-block; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 32px; height: 32px; }

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn-gold {
  background: var(--gold);
  color: #1A1200;
}
.btn-gold:hover {
  background: #F5C24B;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--gold-border); }

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-block { display: block; width: 100%; }

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 41, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.logo img {
  display: block;
  width: auto;
  height: 28px;
}
.footer-logo img {
  height: 30px;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero banner ============ */

.hero { padding: 32px 24px 0; }

.hero-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(15, 12, 41, 0.46);
  border: 1px solid var(--border);
  width: 100%;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 41, 0.42);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 48px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-content { text-align: center; }

.hero-title {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(14px, 1.6vw, 17px);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.game-tile {
  background: rgba(24, 21, 58, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.game-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
  color: var(--text-primary);
}

/* ============ Games section ============ */

.games-section { padding-top: 56px; }

.games-row { margin-bottom: 44px; }
.games-row.all-games { margin-top: 64px; margin-bottom: 0; }

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

.row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.view-all span { font-size: 18px; line-height: 1; }
.view-all:hover { color: var(--gold); }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.game-thumb {
  display: block;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.game-thumb:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}
.game-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-loader {
  --uib-size: 22px;
  --uib-color: var(--gold);
  --uib-speed: 1.75s;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: var(--uib-size);
  height: var(--uib-size);
  transform: translate(-50%, -50%);
  filter: url("#slot-thumb-jelly-ooze");
  pointer-events: none;
}

.thumb-loader::before,
.thumb-loader::after,
.thumb-loader-dot,
.thumb-loader-traveler {
  content: "";
  position: absolute;
  width: 33%;
  height: 33%;
  background-color: var(--uib-color);
  border-radius: 100%;
  will-change: transform;
}

.thumb-loader-dot {
  top: 6%;
  left: 30%;
  animation: thumb-loader-grow var(--uib-speed) ease infinite;
}

.thumb-loader::before {
  right: 0;
  bottom: 6%;
  animation: thumb-loader-grow var(--uib-speed) ease calc(var(--uib-speed) * -0.666) infinite;
}

.thumb-loader::after {
  bottom: 6%;
  left: 0;
  animation: thumb-loader-grow var(--uib-speed) ease calc(var(--uib-speed) * -0.333) infinite;
}

.thumb-loader-traveler {
  top: 6%;
  left: 30%;
  animation: thumb-loader-triangulate var(--uib-speed) ease infinite;
}

.thumb-loader-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@keyframes thumb-loader-triangulate {
  0%,
  100% {
    transform: none;
  }

  33.333% {
    transform: translate(120%, 175%);
  }

  66.666% {
    transform: translate(-95%, 175%);
  }
}

@keyframes thumb-loader-grow {
  0%,
  85%,
  100% {
    transform: scale(1.5);
  }

  50%,
  60% {
    transform: scale(0);
  }
}

.more-games {
  text-align: center;
  margin-top: 32px;
}

/* ============ Sections ============ */

.section { padding: 88px 0; }
.section-alt { background: rgba(1, 22, 48, 0.35); }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
}

.sub-heading {
  font-size: 20px;
  margin: 48px 0 20px;
  text-align: center;
}

/* ============ How it works ============ */

.loop-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: loop;
  margin-bottom: 64px;
}

.loop-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  position: relative;
  counter-increment: loop;
}
.loop-step::before {
  content: counter(loop);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-muted);
}

.loop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.loop-step h3 { font-size: 17px; margin-bottom: 8px; }
.loop-step p { font-size: 14px; color: var(--text-secondary); }

.paths-intro h3 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 24px;
}

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

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.path-card:hover { transform: translateY(-3px); border-color: var(--gold-border); }

.path-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}
.path-badge.free { background: rgba(52, 211, 153, 0.15); color: var(--green); }

.path-card h4 { font-size: 17px; font-weight: 600; }
.path-card p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.path-link { font-size: 13px; font-weight: 600; color: var(--gold); }

/* ============ Tier table ============ */

.table-wrap { overflow-x: auto; }

.tier-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-table th, .tier-table td {
  padding: 18px 20px;
  text-align: left;
  font-size: 15px;
}

.tier-table thead th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-table tbody tr { border-top: 1px solid var(--border); }
.tier-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.tier-highlight {
  background: var(--gold-soft);
  box-shadow: inset 3px 0 0 var(--gold);
}
.tier-highlight:hover { background: var(--gold-soft) !important; }

.tier-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  margin-right: 8px;
}
.tier-standard { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.tier-silver { background: rgba(192, 199, 212, 0.14); color: var(--silver); }
.tier-gold { background: var(--gold-soft); color: var(--gold); }
.tier-vip { background: rgba(192, 132, 252, 0.14); color: var(--vip); }

.column-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.column-note {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.column-note strong { color: var(--text-primary); display: block; margin-bottom: 4px; }

/* ============ Steps strip ============ */

.steps-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.steps-strip li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Callout ============ */

.callout {
  margin-top: 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout .icon { margin-top: 2px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { font-size: 14px; color: var(--text-secondary); }

/* ============ Pricing ============ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 40px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-3px); }

.price-card.featured {
  border: 2px solid var(--gold);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1A1200;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 40px; }
.price .per { color: var(--text-muted); font-size: 14px; }

.price-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: 26px;
  position: relative;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("../img/icons/check.svg") center / contain no-repeat;
}

.store-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.extra-card h3 { font-size: 17px; }
.extra-card p { font-size: 14px; color: var(--text-secondary); flex: 1; }

/* ============ Rankings ============ */

.rank-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.toggle-group {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  padding: 9px 26px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.toggle-btn.active {
  background: var(--gold);
  color: #1A1200;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.countdown strong { color: var(--text-primary); font-variant-numeric: tabular-nums; }

.pool-banner {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 180px;
  position: relative;
}

.crown { width: 26px; height: 26px; margin-bottom: 2px; }

.podium-rank {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.podium-col.first .podium-rank { color: var(--gold); }

.podium-prize { font-size: 22px; margin-bottom: 8px; }
.podium-col.first .podium-prize { font-size: 28px; color: var(--gold); }

.podium-bar {
  width: 100%;
  border-radius: 10px 10px 0 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
}
.podium-col.first .podium-bar {
  height: 120px;
  background: var(--bg-elevated);
  border-color: var(--gold-border);
}
.podium-col.second .podium-bar { height: 88px; }
.podium-col.third .podium-bar { height: 64px; }

.rank-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 32px;
}

.rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
}
.rank-row .gold-text { font-weight: 600; }

.special-teaser {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 720px;
  margin: 0 auto;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(1, 22, 48, 0.5);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold); }

.disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.copyright,
.powered-by {
  font-size: 12px;
  color: var(--text-muted);
}

.powered-by a {
  color: var(--gold);
  font-weight: 700;
}

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .game-tile, .game-thumb, .path-card, .price-card { transition: none; }
  .thumb-loader-dot,
  .thumb-loader::before,
  .thumb-loader::after,
  .thumb-loader-traveler { animation: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 32px; }
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .steps-strip { grid-template-columns: repeat(2, 1fr); }
  .column-notes { grid-template-columns: 1fr; }
  .thumb-grid { gap: 10px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .site-header .container { padding: 0 14px; }
  .header-inner { height: 68px; gap: 8px; }
  .logo img { height: 24px; }
  .header-auth { margin-left: auto; gap: 8px; }
  .header-auth .btn {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .header-cta { margin-left: 0; }
  .hero { padding: 20px 16px 0; }
  .hero-inner { padding: 32px 20px; gap: 28px; }
  .games-section { padding-top: 48px; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 76px;
    right: 12px;
    left: auto;
    width: min(350px, calc(100vw - 24px));
    height: min(560px, calc(100dvh - 92px));
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-left: 0;
    padding: 78px 30px 34px;
    background: var(--gold);
    border: 1px solid rgba(255, 228, 150, 0.65);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(18px, -18px, 0) scale(0.86);
    transform-origin: top right;
    transition: opacity 0.28s ease, transform 0.48s cubic-bezier(0.76, 0, 0.24, 1);
    z-index: 90;
  }
  .main-nav::before {
    content: "Menu";
    position: absolute;
    top: 26px;
    left: 30px;
    color: rgba(26, 18, 0, 0.62);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }
  .main-nav a {
    display: block;
    padding: 5px 0;
    border-radius: 0;
    color: #1A1200;
    font-size: clamp(32px, 10vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    opacity: 0;
    transform: translate3d(-18px, 34px, 0) rotateX(76deg);
    transform-origin: bottom;
    transition: opacity 0.28s ease, transform 0.58s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
  }
  .main-nav a:hover,
  .main-nav a.active {
    color: #1A1200;
    background: transparent;
  }
  .main-nav.open a {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
  }
  .main-nav.open a:nth-child(1) { transition-delay: 0.12s; }
  .main-nav.open a:nth-child(2) { transition-delay: 0.18s; }
  .main-nav.open a:nth-child(3) { transition-delay: 0.24s; }
  .main-nav.open a:nth-child(4) { transition-delay: 0.30s; }
  .main-nav.open a:nth-child(5) { transition-delay: 0.36s; }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 120;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .nav-toggle.open {
    background: var(--gold);
    border-color: var(--gold);
  }
  .nav-toggle.open span { background: #1A1200; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .thumb-grid { grid-template-columns: repeat(3, 1fr); }

  .paths-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .store-extras { grid-template-columns: 1fr; }
  .rank-rows { grid-template-columns: 1fr; }
  .rank-controls { justify-content: center; }
  .podium-col { width: 110px; }

  /* Tier table collapses into cards */
  .tier-table thead { display: none; }
  .tier-table, .tier-table tbody, .tier-table tr, .tier-table td { display: block; width: 100%; }
  .tier-table tr { padding: 8px 0; }
  .tier-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    font-size: 14px;
    text-align: right;
  }
  .tier-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
  }
  .tier-highlight { box-shadow: inset 3px 0 0 var(--gold); }
}

@media (max-width: 480px) {
  .site-header .container { padding: 0 10px 0 14px; }
  .header-inner { gap: 6px; }
  .logo img { height: 22px; }
  .header-auth { gap: 5px; }
  .header-auth .btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    padding: 9px;
  }
  .main-nav {
    top: 68px;
    right: 10px;
    width: calc(100vw - 20px);
    height: min(520px, calc(100dvh - 80px));
    padding: 72px 24px 30px;
  }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .loop-steps { grid-template-columns: 1fr; }
  .steps-strip { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============ Header auth buttons ============ */

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

/* ============ Auth modal ============ */

body.modal-open { overflow: hidden; }
body.nav-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 12, 28, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.auth-brand img {
  display: block;
  height: 32px;
  width: auto;
}

.auth-tabs {
  display: flex;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tab.active {
  background: var(--gold);
  color: #1A1200;
}

.auth-heading { font-size: 18px; margin-bottom: 8px; }

.auth-intro {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 18px;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.auth-forgot {
  text-align: right;
  font-size: 13px;
  margin: -6px 0 16px;
}
.auth-forgot a { color: var(--text-secondary); }
.auth-forgot a:hover { color: var(--gold); }

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}
.auth-switch a { color: var(--gold); font-weight: 600; }

.auth-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px dashed var(--gold-border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

@media (max-width: 480px) {
  .modal { padding: 26px 20px 22px; }
  .header-auth { gap: 6px; }
}

/* ============ Shop page ============ */

.shop-intro { padding: 56px 0 8px; }
.shop-intro .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.shop-intro .section-sub {
  max-width: none;
  white-space: nowrap;
}

.shop-section {
  position: relative;
  z-index: 1;
  padding: 28px 0;
}

/* ---- Featured banner ---- */

.featured-banner {
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  gap: 28px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 26px 30px;
}

.featured-art {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.featured-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.featured-head h2 { font-size: 22px; font-weight: 700; }

.featured-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.featured-cta {
  text-align: center;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.featured-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.featured-price {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ---- Purchase ticker ---- */

.purchase-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 18px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
}
.ticker-text strong { color: var(--text-primary); font-weight: 600; }
.ticker-in {
  animation: tickerIn 0.35s ease;
  display: inline-block;
}
@keyframes tickerIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Category tabs ---- */

.shop-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-tab {
  padding: 9px 22px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.shop-tab:hover { color: var(--text-primary); border-color: var(--gold-border); }
.shop-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1200;
}

/* ---- Product grid + cards ---- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shop-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.monthly-countdown {
  font-size: 13px;
  color: var(--text-secondary);
}
.monthly-countdown strong { color: var(--gold); font-weight: 600; }

.all-count { font-size: 13px; color: var(--text-muted); }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-border);
}

.product-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.product-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-gold { background: var(--gold); color: #1A1200; }
.badge-green { background: var(--green); color: #06281C; }
.product-art .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.product-name { font-size: 15px; font-weight: 700; }

.product-points {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.product-price { font-size: 17px; font-weight: 700; }

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

/* ---- Buy modal ---- */

.buy-modal { text-align: center; }

.buy-art {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.buy-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.buy-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.buy-points { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.buy-price { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.buy-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }

/* ---- Shop responsive ---- */

@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

  .featured-banner {
    grid-template-columns: 120px 1fr;
    gap: 20px;
  }
  .featured-cta {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .featured-price { margin-bottom: 0; }
}

@media (max-width: 768px) {
  .shop-intro { padding: 40px 0 4px; }
  .shop-intro .section-sub {
    max-width: 640px;
    white-space: normal;
  }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .shop-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .shop-tab { white-space: nowrap; flex-shrink: 0; }

  .featured-banner { padding: 20px; }
  .row-head { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .featured-banner { grid-template-columns: 1fr; }
  .featured-art { max-width: 160px; margin: 0 auto; }
  .featured-head { justify-content: center; }
  .featured-banner { text-align: center; }
  .featured-benefits li { justify-content: center; text-align: left; }
  .featured-cta { flex-direction: column; gap: 8px; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .product-foot .btn { width: 100%; }
  .product-price { text-align: center; }
}

/* ============ Games page ============ */

/* ---- Filter bar (one line) ---- */

.games-filter-section {
  position: relative;
  z-index: 1;
  padding: 36px 0 8px;
}

.games-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.games-cats {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.games-cats .shop-tab { white-space: nowrap; flex-shrink: 0; }

.games-search { flex-shrink: 0; }
.games-search input {
  width: 230px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.games-search input::placeholder { color: var(--text-muted); }
.games-search input:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ---- Games grid ---- */

.games-list-section {
  position: relative;
  z-index: 1;
  padding: 20px 0 72px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.catalog-grid .game-thumb img {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.catalog-grid .game-thumb img.thumb-ready { opacity: 1; }

.game-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(6, 4, 20, 0) 0%, rgba(6, 4, 20, 0.78) 55%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 32px 0;
}

/* ---- Games responsive ---- */

@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }

  .games-filter-bar { flex-wrap: wrap; }
  .games-search { flex: 1 1 100%; }
  .games-search input { width: 100%; }
}
