/* ==========================================================================
   Y1 GAME — main.css
   Global layout, navigation, footer, buttons, rails, mockups, motion.
   BEM-lite. Mobile-first: base -> 768px -> 1200px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  /* Hard guarantee: the page never scrolls or drifts sideways. */
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold-bright);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-gold);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-heading);
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

::selection {
  background: var(--color-crimson);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Custom scrollbar (desktop) */
@media (min-width: 1024px) {
  ::-webkit-scrollbar {
    width: 11px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-midnight);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold-deep), var(--color-crimson-deep));
    border-radius: var(--radius-pill);
    border: 2px solid var(--color-midnight);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-gold), var(--color-crimson));
  }
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: var(--z-modal);
  padding: 0.75rem 1.4rem;
  background: var(--color-gold);
  color: var(--color-midnight);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--dur-mid) var(--ease-out);
}

.skip-link:focus {
  top: 0;
  color: var(--color-midnight);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  z-index: var(--z-content);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--deep {
  background: var(--color-midnight);
}

.section--tight {
  padding-block: clamp(2.4rem, 4.5vw, 4rem);
}

.section--hairline-top {
  border-top: 1px solid var(--color-border-gold-soft);
}

/* Gold hairline divider used between major bands */
.hairline {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.05) 12%,
    rgba(212, 175, 55, 0.45) 50%,
    rgba(212, 175, 55, 0.05) 88%,
    transparent 100%
  );
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.stack > * + * {
  margin-top: var(--space-md);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  line-height: 1.04;
  margin-bottom: var(--space-sm);
}

.section-title .gold {
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title .crimson {
  color: var(--color-crimson-bright);
}

.section-lead {
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  max-width: 68ch;
}

.section-head {
  margin-bottom: var(--space-xl);
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

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

.text-gold {
  color: var(--color-gold);
}

.text-crimson {
  color: var(--color-crimson-bright);
}

/* Long-form body copy (about / legal / guides) */
.prose p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose h3 {
  font-size: var(--fs-h3);
  color: var(--color-gold);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.prose h4 {
  font-size: var(--fs-h4);
  color: var(--color-text-primary);
  margin-top: var(--space-md);
  margin-bottom: var(--space-2xs);
}

.prose > :first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.15rem;
  color: var(--color-text-muted);
}

.prose li {
  margin-bottom: 0.55rem;
}

.prose li::marker {
  color: var(--color-gold);
}

.prose strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.prose a {
  border-bottom: 1px solid var(--color-border-gold);
}

/* --------------------------------------------------------------------------
   4. Buttons & badges
   -------------------------------------------------------------------------- */

.btn {
  --btn-pad-y: 0.92rem;
  --btn-pad-x: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Sheen sweep across the button face */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 46%,
    transparent 68%
  );
  transform: translateX(-130%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.btn:hover::after {
  transform: translateX(130%);
}

.btn--primary {
  background: var(--gradient-crimson);
  color: #fff;
  box-shadow: 0 10px 26px rgba(196, 30, 58, 0.32);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: var(--shadow-neon-gold), 0 14px 34px rgba(196, 30, 58, 0.42);
}

.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-midnight);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}

.btn--gold:hover {
  color: var(--color-midnight);
  box-shadow: var(--shadow-neon-gold);
}

.btn--outline {
  background: var(--color-surface-glass);
  border-color: var(--color-border-gold);
  color: var(--color-gold-bright);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-bright);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.24);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border-hair);
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  border-color: var(--color-border-gold);
  color: var(--color-text-primary);
}

.btn--lg {
  --btn-pad-y: 1.12rem;
  --btn-pad-x: 2.3rem;
  font-size: 1.05rem;
}

.btn--sm {
  --btn-pad-y: 0.62rem;
  --btn-pad-x: 1.15rem;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Telegram button — real Telegram glyph, brand-tinted */
.btn--telegram {
  background: linear-gradient(135deg, #229ed9 0%, #2aabee 55%, #64c8f5 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.32);
}

.btn--telegram:hover {
  color: #fff;
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.55), 0 14px 32px rgba(34, 158, 217, 0.4);
}

.btn--telegram-outline {
  background: rgba(34, 158, 217, 0.1);
  border-color: rgba(42, 171, 238, 0.45);
  color: #7fd0f7;
}

.btn--telegram-outline:hover {
  color: #a9e2fb;
  border-color: #2aabee;
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.32);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.badge--gold {
  background: var(--gradient-gold);
  color: var(--color-midnight);
}

.badge--crimson {
  background: var(--gradient-crimson);
  color: #fff;
}

.badge--outline {
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
}

.badge--live {
  background: rgba(196, 30, 58, 0.16);
  border: 1px solid var(--color-border-crimson);
  color: #ff8fa3;
}

.badge--live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-crimson-bright);
  box-shadow: 0 0 8px var(--color-crimson-bright);
  animation: pulse-dot 1.6s var(--ease-in-out) infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

/* --------------------------------------------------------------------------
   5. Ambient background — skyline parallax, suits, spotlight
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.ambient__glow--crimson {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.42) 0%, transparent 68%);
}

.ambient__glow--gold {
  width: 40vw;
  height: 40vw;
  max-width: 540px;
  max-height: 540px;
  top: 34vh;
  right: -12vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, transparent 68%);
}

/* Sweeping spotlight beam across the night sky */
.ambient__beam {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 34vw;
  height: 190%;
  background: linear-gradient(
    180deg,
    rgba(244, 215, 126, 0.16) 0%,
    rgba(244, 215, 126, 0.06) 40%,
    transparent 78%
  );
  filter: blur(28px);
  transform-origin: 50% 0%;
  animation: beam-sweep 26s var(--ease-in-out) infinite;
  opacity: 0.75;
}

@keyframes beam-sweep {
  0% {
    transform: translateX(-50%) rotate(-26deg);
  }
  50% {
    transform: translateX(-50%) rotate(26deg);
  }
  100% {
    transform: translateX(-50%) rotate(-26deg);
  }
}

/* Twinkling boulevard lights */
.ambient__stars {
  position: absolute;
  inset: 0;
}

.ambient__star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 6px rgba(244, 215, 126, 0.85);
  animation: twinkle var(--twinkle-dur, 4s) var(--ease-in-out) infinite;
  animation-delay: var(--twinkle-delay, 0s);
  opacity: 0.2;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.6);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.25);
  }
}

/* Drifting card-suit texture */
.ambient__suits {
  position: absolute;
  inset: 0;
}

.ambient__suit {
  position: absolute;
  font-size: var(--suit-size, 74px);
  line-height: 1;
  color: rgba(246, 240, 228, 0.028);
  animation: suit-drift var(--suit-dur, 40s) linear infinite;
  animation-delay: var(--suit-delay, 0s);
  user-select: none;
}

.ambient__suit--red {
  color: rgba(196, 30, 58, 0.05);
}

@keyframes suit-drift {
  0% {
    transform: translate3d(0, 14vh, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate3d(4vw, -110vh, 0) rotate(200deg);
    opacity: 0;
  }
}

/* Layered skyline silhouettes (pure CSS/SVG, parallax via JS) */
.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(180px, 30vh, 340px);
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.skyline__layer {
  position: absolute;
  left: -5%;
  bottom: 0;
  width: 110%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: bottom center;
  will-change: transform;
}

/* Warm haze sitting behind the towers so the roofline reads against the sky */
.skyline::before {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 78%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(196, 30, 58, 0.16) 46%,
    rgba(212, 175, 55, 0.14) 78%,
    rgba(212, 175, 55, 0.05) 100%
  );
  filter: blur(18px);
  pointer-events: none;
}

.skyline__layer--back {
  background-size: auto 78%;
  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='260' viewBox='0 0 1200 260'%3E%3Cg fill='%233b2c46'%3E%3Cpath d='M0 260V150h40v-26h34v26h44v-52h30v52h48v34h58v-70h26v70h52v-40h44v40h60v-96h22v96h54v-58h40v58h56v-30h48v30h62v-78h26v78h54v-44h44v44h62v-64h28v64h60v-34h44v34h64z'/%3E%3C/g%3E%3C/svg%3E");
}

.skyline__layer--mid {
  background-size: auto 92%;
  opacity: 0.95;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='300' viewBox='0 0 1400 300'%3E%3Cg fill='%231e1526'%3E%3Cpath d='M0 300V190h54v-38h28v38h58v-74h18v-30h16v30h20v74h62v34h70v-92h38v92h64v-56h56v56h70v-124h20v-24h14v24h20v124h60v-70h52v70h74v-46h50v46h72v-100h24v-26h14v26h22v100h62v-58h56v58h76v-80h48v80h72z'/%3E%3C/g%3E%3C/svg%3E");
}

.skyline__layer--front {
  background-size: auto 100%;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='320' viewBox='0 0 1600 320'%3E%3Cg fill='%23050408'%3E%3Cpath d='M0 320V214h66v-46h34v46h72v-88h44v88h78v58h84v-110h46v110h76v-68h68v68h84v-146h26v-28h16v28h24v146h72v-84h64v84h88v-56h60v56h86v-118h30v-30h16v30h26v118h74v-70h68v70h90v-96h58v96h86z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Warm window lights sitting on the front skyline — small, sparse pinpoints,
   not a visible dot grid. Masked to the lower silhouette band only. */
.skyline__windows {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(244, 215, 126, 0.85) 16%, transparent 42%);
  background-size: 30px 42px;
  mask-image: linear-gradient(180deg, transparent 42%, #000 68%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, transparent 42%, #000 68%, transparent 90%);
  opacity: 0.15;
  animation: window-flicker 7s var(--ease-in-out) infinite;
}

@keyframes window-flicker {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__beam,
  .ambient__star,
  .ambient__suit,
  .skyline__windows {
    animation: none;
  }
  .ambient__star {
    opacity: 0.4;
  }
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  width: 100%;
  background: rgba(8, 6, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.header.is-scrolled {
  background: rgba(5, 4, 8, 0.94);
  border-bottom-color: var(--color-border-gold);
  box-shadow: var(--shadow-nav);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}

/* --- Logo: the brand's own artwork, placed as-is at a size that fits the
   nav/footer comfortably. No added background, border or effects. --- */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1;
}

.logo__img {
  display: block;
  width: auto;
  height: 30px;
}

.logo__img--lg {
  height: 38px;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.62rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
  transition: width var(--dur-mid) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-text-primary);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  width: calc(100% - 1.8rem);
}

.nav__link.is-active {
  color: var(--color-gold-bright);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.header__cta {
  display: none;
}

.header__tg {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  flex: none;
}

.header__tg .btn__icon {
  width: 21px;
  height: 21px;
}

/* Burger */
.burger {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  gap: 5px;
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-gold-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex: none;
}

.burger__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.burger[aria-expanded='true'] .burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded='true'] .burger__bar:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] .burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: linear-gradient(180deg, #0b0810 0%, #050408 100%);
  padding: 96px var(--gutter) var(--space-xl);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__list {
  list-style: none;
  border-top: 1px solid var(--color-border-gold-soft);
}

.mobile-menu__item {
  border-bottom: 1px solid var(--color-border-gold-soft);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0.2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.mobile-menu__link::after {
  content: '→';
  color: var(--color-gold);
  font-size: 1.1rem;
  opacity: 0.55;
}

.mobile-menu__link.is-active,
.mobile-menu__link:hover {
  color: var(--color-gold-bright);
}

.mobile-menu__actions {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
}

.mobile-menu__note {
  margin-top: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  line-height: 1.7;
}

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Hero — split-screen marquee + app mockup
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.6rem, 6vw, 4.6rem);
  padding-bottom: clamp(3.4rem, 9vw, 7rem);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 62% at 50% 0%, rgba(196, 30, 58, 0.2) 0%, transparent 62%),
    radial-gradient(ellipse 70% 50% at 82% 74%, rgba(212, 175, 55, 0.13) 0%, transparent 66%);
  z-index: -1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  /* Mobile stacking order: intro copy, then the app mockup, then the
     bonus offer + CTAs — the mockup sits above the Welcome Bonus button. */
  grid-template-areas:
    'intro'
    'mockup'
    'cta';
}

.hero__intro,
.hero__cta {
  min-width: 0;
}

.hero__intro {
  grid-area: intro;
}

.hero__cta {
  grid-area: cta;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

/* --- Marquee headline: neon-outline type that lights up letter by letter --- */
.marquee-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.marquee-title__line {
  display: block;
}

.marquee-title__word {
  display: inline-block;
  margin-right: 0.24em;
}

.marquee-title__char {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(212, 175, 55, 0.42);
  text-shadow: none;
  opacity: 0.42;
  transition: opacity 420ms var(--ease-out), text-shadow 420ms var(--ease-out),
    -webkit-text-stroke-color 420ms var(--ease-out), color 420ms var(--ease-out);
}

.marquee-title__char.is-lit {
  opacity: 1;
  color: rgba(244, 215, 126, 0.14);
  -webkit-text-stroke-color: var(--color-gold-bright);
  text-shadow: 0 0 8px rgba(244, 215, 126, 0.85), 0 0 24px rgba(212, 175, 55, 0.55),
    0 0 52px rgba(212, 175, 55, 0.32);
}

.marquee-title__line--crimson .marquee-title__char {
  -webkit-text-stroke-color: rgba(196, 30, 58, 0.45);
}

.marquee-title__line--crimson .marquee-title__char.is-lit {
  color: rgba(232, 55, 90, 0.16);
  -webkit-text-stroke-color: var(--color-crimson-bright);
  text-shadow: 0 0 8px rgba(232, 55, 90, 0.85), 0 0 24px rgba(196, 30, 58, 0.6),
    0 0 52px rgba(196, 30, 58, 0.34);
}

/* Solid line used for the payout figure */
.marquee-title__line--solid .marquee-title__char.is-lit {
  color: var(--color-gold-bright);
  -webkit-text-stroke-color: transparent;
}

/* No-JS / reduced motion fallback: everything is already lit. */
.no-js .marquee-title__char,
.marquee-title--static .marquee-title__char {
  opacity: 1;
  color: rgba(244, 215, 126, 0.14);
  -webkit-text-stroke-color: var(--color-gold-bright);
  text-shadow: 0 0 8px rgba(244, 215, 126, 0.8), 0 0 24px rgba(212, 175, 55, 0.5);
}

.hero__lead {
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin-bottom: var(--space-md);
}

.hero__offer {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.3rem 0.7rem 0.75rem;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-pill);
  background: linear-gradient(100deg, rgba(196, 30, 58, 0.2), rgba(212, 175, 55, 0.12));
  border: 1px solid var(--color-border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__offer-coin {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-gold);
  color: var(--color-midnight);
  font-family: var(--font-display);
  font-size: 1.25rem;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

.hero__offer-text {
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--color-text-muted);
}

.hero__offer-text b {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--color-gold-bright);
  letter-spacing: 0.03em;
}

.hero__actions {
  margin-bottom: var(--space-lg);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
  flex: none;
}

/* --------------------------------------------------------------------------
   8. App mockup (phone frame) + rotating coin
   -------------------------------------------------------------------------- */

.mockup {
  grid-area: mockup;
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(1rem, 4vw, 2.2rem);
  perspective: 1400px;
}

.mockup__halo {
  position: absolute;
  width: min(112%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 30, 58, 0.32) 0%,
    rgba(212, 175, 55, 0.14) 42%,
    transparent 70%
  );
  filter: blur(46px);
  animation: halo-breathe 7s var(--ease-in-out) infinite;
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Rotating ring behind the phone */
.mockup__ring {
  position: absolute;
  width: min(96%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.22);
  animation: spin-slow 44s linear infinite;
}

.mockup__ring::before,
.mockup__ring::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold-bright);
}

.mockup__ring::before {
  top: -5px;
  left: 50%;
  margin-left: -4.5px;
}

.mockup__ring::after {
  bottom: -5px;
  left: 50%;
  margin-left: -4.5px;
  background: var(--color-crimson-bright);
  box-shadow: 0 0 12px var(--color-crimson-bright);
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.mockup__phone {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 9 / 19.5;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(155deg, #f4d77e 0%, #9a7c1e 24%, #2a2130 48%, #9a7c1e 78%, #f4d77e 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(212, 175, 55, 0.35),
    0 0 60px rgba(212, 175, 55, 0.22);
  transform-style: preserve-3d;
  animation: phone-float 8s var(--ease-in-out) infinite;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.mockup__phone:hover {
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(244, 215, 126, 0.55),
    0 0 84px rgba(212, 175, 55, 0.34);
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0) rotateY(-9deg) rotateX(3deg) rotateZ(-1deg);
  }
  50% {
    transform: translateY(-18px) rotateY(-4deg) rotateX(1deg) rotateZ(0.5deg);
  }
}

.mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #050408;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}

.mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Slow auto-pan down the long app screenshot */
.mockup__screen--pan img {
  height: auto;
  animation: screen-pan 26s var(--ease-in-out) infinite alternate;
}

@keyframes screen-pan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-100% + 100cqh));
  }
}

.mockup__screen {
  container-type: size;
}

/* Glass glare sweeping the screen */
.mockup__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.13) 46%,
    rgba(255, 255, 255, 0.03) 54%,
    transparent 66%
  );
  transform: translateX(-60%);
  animation: glare-sweep 6.5s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes glare-sweep {
  0%,
  62% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

.mockup__notch {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #050408;
  z-index: 3;
}

.mockup__notch::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1c2a33;
  box-shadow: inset 0 0 3px rgba(120, 190, 230, 0.6);
}

/* Floating stat chips around the phone */
.mockup__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-glass-strong);
  border: 1px solid var(--color-border-gold);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.25;
  white-space: nowrap;
  animation: chip-bob 5.5s var(--ease-in-out) infinite;
  z-index: 4;
}

.mockup__chip b {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--color-gold-bright);
}

.mockup__chip-icon {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--color-gold);
  font-size: 0.9rem;
}

/* Small screens: keep chips inside the column so nothing is clipped. */
.mockup__chip--tl {
  top: 6%;
  left: 0;
  animation-delay: -1.4s;
}

.mockup__chip--br {
  bottom: 8%;
  right: 0;
  animation-delay: -3.2s;
}

.mockup__chip--bl {
  display: none;
  bottom: 34%;
  left: 0;
  animation-delay: -2.2s;
}

/* From tablet up the column is wide enough to float the chips clear of the
   device, anchored to the phone's edge rather than the column's. */
@media (min-width: 768px) {
  .mockup__chip--tl {
    top: 11%;
    left: auto;
    right: calc(50% + 138px);
  }

  .mockup__chip--bl {
    display: flex;
    bottom: 32%;
    left: auto;
    right: calc(50% + 148px);
  }

  .mockup__chip--br {
    bottom: 13%;
    right: auto;
    left: calc(50% + 138px);
  }
}

@keyframes chip-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* Rotating gold coin / chip stack */
.coin {
  position: absolute;
  top: 4%;
  right: 2%;
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 1;
  perspective: 620px;
  z-index: 5;
  pointer-events: none;
}

.coin__disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 3px solid var(--color-gold-bright);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--color-crimson-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.6), inset 0 0 18px rgba(154, 124, 30, 0.5);
  animation: coin-spin 7s linear infinite;
  transform-style: preserve-3d;
}

@keyframes coin-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

.coin:hover .coin__disc {
  animation-duration: 2.4s;
}

@media (prefers-reduced-motion: reduce) {
  .mockup__phone,
  .mockup__halo,
  .mockup__ring,
  .mockup__glare,
  .mockup__chip,
  .coin__disc,
  .mockup__screen--pan img {
    animation: none;
  }
  .mockup__phone {
    transform: none;
  }
  .mockup__glare {
    opacity: 0.4;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   9. Jackpot meter
   -------------------------------------------------------------------------- */

.jackpot {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, rgba(28, 22, 32, 0.94), rgba(8, 6, 12, 0.94));
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.jackpot::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(212, 175, 55, 0.14) 40deg,
    transparent 90deg,
    transparent 270deg,
    rgba(196, 30, 58, 0.14) 310deg,
    transparent 360deg
  );
  animation: spin-slow 18s linear infinite;
  pointer-events: none;
}

.jackpot__inner {
  position: relative;
  z-index: 1;
}

.jackpot__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.jackpot__label {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.jackpot__value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45));
  font-variant-numeric: tabular-nums;
}

.jackpot__track {
  position: relative;
  height: 24px;
  border-radius: var(--radius-pill);
  background: rgba(5, 4, 8, 0.85);
  border: 1px solid var(--color-border-gold-soft);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.jackpot__fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-crimson-deep) 0%, var(--color-crimson) 34%, var(--color-gold) 76%, var(--color-gold-bright) 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
  transition: width 2.4s var(--ease-out);
}

.jackpot__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.22) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.22) 75%,
    transparent 75%
  );
  background-size: 24px 24px;
  animation: stripe-slide 1.1s linear infinite;
  border-radius: var(--radius-pill);
}

@keyframes stripe-slide {
  to {
    background-position: 24px 0;
  }
}

.jackpot__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  font-variant-numeric: tabular-nums;
}

.jackpot__note {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.jackpot__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-bright);
  box-shadow: 0 0 10px var(--color-gold-bright);
  pointer-events: none;
  opacity: 0;
}

.jackpot__burst.is-firing {
  animation: coin-burst 1100ms var(--ease-out) forwards;
}

@keyframes coin-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--bx, 0), var(--by, -80px)) scale(0.2);
  }
}

.jackpot__tiers {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jackpot__tier {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(8, 6, 12, 0.6);
  border: 1px solid var(--color-border-hair);
}

.jackpot__tier dt {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.25rem;
}

.jackpot__tier dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-gold-bright);
}

@media (prefers-reduced-motion: reduce) {
  .jackpot::before,
  .jackpot__fill::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   10. Game rails (horizontal, snap-scroll)
   -------------------------------------------------------------------------- */

.rail {
  position: relative;
  margin-bottom: var(--space-xl);
}

.rail:last-child {
  margin-bottom: 0;
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.rail__titlewrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.rail__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  font-size: 1.15rem;
}

.rail__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-text-primary);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
}

.rail__count {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  text-shadow: none;
  margin-top: 3px;
}

.rail__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}

.rail__seeall {
  display: none;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-gold-soft);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.rail__seeall:hover {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
}

.rail__arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-glass);
  border: 1px solid var(--color-border-gold-soft);
  color: var(--color-gold);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.rail__arrow:hover:not(:disabled) {
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.28);
}

.rail__arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.rail__arrow svg {
  width: 17px;
  height: 17px;
}

/* Viewport wrapper carries the edge fades */
.rail__viewport {
  position: relative;
}

.rail__viewport::before,
.rail__viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 12px;
  width: clamp(24px, 5vw, 60px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.rail__viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}

.rail__viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 0%, transparent 100%);
}

.rail__viewport.can-left::before,
.rail__viewport.can-right::after {
  opacity: 1;
}

.section--alt .rail__viewport::before {
  background: linear-gradient(90deg, var(--color-bg-alt) 0%, transparent 100%);
}

.section--alt .rail__viewport::after {
  background: linear-gradient(270deg, var(--color-bg-alt) 0%, transparent 100%);
}

.rail__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 12px;
  /* bleed a little into the gutter so cards feel like they continue off-screen */
  padding-inline: 2px;
}

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

.rail__track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.rail__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   11. Game card
   -------------------------------------------------------------------------- */

.game-card {
  position: relative;
  width: 156px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-hair);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-card-hover), 0 0 26px rgba(212, 175, 55, 0.18);
}

.game-card__media {
  position: relative;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: linear-gradient(160deg, #241d29, #120e17);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.game-card:hover .game-card__media img {
  transform: scale(1.08);
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(5, 4, 8, 0) 40%, rgba(5, 4, 8, 0.82) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.game-card:hover .game-card__overlay,
.game-card:focus-within .game-card__overlay {
  opacity: 1;
}

.game-card__play {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-crimson);
  border: 2px solid var(--color-gold);
  color: #fff;
  box-shadow: var(--shadow-neon-crimson);
  transform: scale(0.7);
  transition: transform var(--dur-mid) var(--ease-out);
}

.game-card:hover .game-card__play {
  transform: scale(1);
}

.game-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.game-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 0.24rem 0.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5, 4, 8, 0.78);
  border: 1px solid var(--color-border-gold-soft);
  color: var(--color-gold);
  backdrop-filter: blur(4px);
}

.game-card__hot {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 0.24rem 0.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-crimson);
  color: #fff;
}

.game-card__body {
  padding: 0.7rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.game-card__name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--color-text-dim);
  margin-top: auto;
}

.game-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-gold);
  font-weight: 600;
}

.game-card__rating svg {
  width: 12px;
  height: 12px;
}

.game-card__rtp {
  font-variant-numeric: tabular-nums;
}

/* Whole-card link */
.game-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.game-card__link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Grid variant (search results on games.html) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.game-grid .game-card {
  width: auto;
}

/* --------------------------------------------------------------------------
   12. Feature cards + card-flip reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.flip-scene {
  perspective: 1200px;
}

.flip-reveal {
  opacity: 0;
  transform: rotateY(52deg) translateZ(-40px);
  transform-origin: left center;
  transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
  backface-visibility: hidden;
}

.flip-reveal.is-visible {
  opacity: 1;
  transform: rotateY(0deg) translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .flip-reveal {
    opacity: 1;
    transform: none;
  }
}

.card {
  position: relative;
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(28, 22, 32, 0.9), rgba(12, 9, 16, 0.9));
  border: 1px solid var(--color-border-hair);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: var(--space-sm);
  background: linear-gradient(150deg, rgba(212, 175, 55, 0.18), rgba(196, 30, 58, 0.14));
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold-bright);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-text-primary);
}

.card__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.72;
}

.card__list {
  list-style: none;
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.card__list li::before {
  content: '◆';
  color: var(--color-gold);
  font-size: 0.6rem;
  line-height: 1.9;
  flex: none;
}

.card__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  margin-bottom: 0.4rem;
  display: block;
}

.cards-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.cards-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.cards-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr));
}

/* --------------------------------------------------------------------------
   13. Stat strip
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border-hair);
  border: 1px solid var(--color-border-hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats__item {
  padding: clamp(1.1rem, 3vw, 1.7rem) var(--space-sm);
  background: var(--color-bg-alt);
  text-align: center;
  transition: background var(--dur-mid) var(--ease-out);
}

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

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   14. Screenshot slider
   -------------------------------------------------------------------------- */

.shots {
  position: relative;
}

.shots__viewport {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1rem, 3vw, 2rem);
  /* full-bleed inside the container without creating horizontal overflow */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

.shots__track {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 0.5rem;
}

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

.shots__track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(180px, 46vw, 262px);
  border-radius: 26px;
  padding: 8px;
  background: linear-gradient(155deg, rgba(244, 215, 126, 0.75), rgba(42, 33, 48, 0.9) 45%, rgba(154, 124, 30, 0.7));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out);
  opacity: 0.62;
  transform: scale(0.92);
}

.shot.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.72), 0 0 44px rgba(212, 175, 55, 0.24);
}

.shot__frame {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: #050408;
  aspect-ratio: 9 / 19.5;
}

.shot__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot__caption {
  margin-top: 0.7rem;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-midnight);
  font-weight: 700;
  font-family: var(--font-heading);
}

.shots__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.shots__dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.shots__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 240, 228, 0.2);
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-out);
}

.shots__dot.is-active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.shots__hint {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   15. OG banner showcase
   -------------------------------------------------------------------------- */

.ogband {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-card), 0 0 60px rgba(196, 30, 58, 0.16);
  background: var(--color-midnight);
}

.ogband__media {
  position: relative;
  overflow: hidden;
}

.ogband__media img {
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}

.ogband:hover .ogband__media img {
  transform: scale(1.06);
}

.ogband__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 34%,
    rgba(255, 255, 255, 0.16) 47%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: og-shine 7s var(--ease-in-out) infinite;
  pointer-events: none;
}

@keyframes og-shine {
  0%,
  70% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.ogband__caption {
  display: grid;
  gap: var(--space-md);
  padding: clamp(1.3rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(12, 9, 16, 0.9), rgba(5, 4, 8, 0.96));
  border-top: 1px solid var(--color-border-gold-soft);
}

.ogband__caption-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
}

.ogband__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--color-border-gold-soft);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.pill strong {
  color: var(--color-gold-bright);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .ogband__shine {
    animation: none;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   16. Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(28, 22, 32, 0.82), rgba(12, 9, 16, 0.82));
  border: 1px solid var(--color-border-hair);
  transition: border-color var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}

.step:hover {
  border-color: var(--color-border-gold);
  transform: translateX(4px);
}

.step__num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-crimson);
  border: 2px solid var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 18px rgba(196, 30, 58, 0.4);
  flex: none;
}

.step__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.3rem;
}

.step__text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.step__text + .step__text {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #14101a 0%, #08060c 55%, #1a0a12 100%);
  border-block: 1px solid var(--color-border-gold-soft);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(196, 30, 58, 0.22), transparent 70%);
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--space-md);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  line-height: 1.02;
}

.cta-band__title .gold {
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.4));
}

.cta-band__text {
  color: var(--color-text-muted);
  max-width: 62ch;
}

.cta-band__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Telegram duo block, sits right under the CTA buttons */
.tg-duo {
  display: grid;
  gap: var(--space-sm);
  width: 100%;
  max-width: 720px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  margin-top: var(--space-xs);
}

.tg-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(34, 158, 217, 0.07);
  border: 1px solid rgba(42, 171, 238, 0.28);
  text-align: left;
  transition: all var(--dur-mid) var(--ease-out);
}

.tg-card:hover {
  border-color: #2aabee;
  background: rgba(34, 158, 217, 0.13);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.2);
}

.tg-card__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 0 16px rgba(42, 171, 238, 0.45);
}

.tg-card__icon svg {
  width: 22px;
  height: 22px;
}

.tg-card__body {
  min-width: 0;
}

.tg-card__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.tg-card__text {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion {
  display: grid;
  gap: 0.65rem;
}

.accordion__item {
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, rgba(28, 22, 32, 0.8), rgba(12, 9, 16, 0.8));
  border: 1px solid var(--color-border-hair);
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease-out);
}

.accordion__item.is-open {
  border-color: var(--color-border-gold);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1.05rem 1.25rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.accordion__trigger:hover {
  color: var(--color-gold-bright);
}

.accordion__icon {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur-mid) var(--ease-out), background var(--dur-mid) var(--ease-out);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(135deg);
  background: rgba(212, 175, 55, 0.14);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-mid) var(--ease-out);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__body {
  padding: 0 1.25rem 1.2rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.accordion__body p + p {
  margin-top: 0.7rem;
}

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-sm);
}

.form__row {
  display: grid;
  gap: var(--space-sm);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field__label span {
  color: var(--color-crimson-bright);
}

.field__control {
  width: 100%;
  padding: 0.86rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 4, 8, 0.7);
  border: 1px solid var(--color-border-hair);
  color: var(--color-text-primary);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field__control::placeholder {
  color: var(--color-text-dim);
}

.field__control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

textarea.field__control {
  min-height: 150px;
  resize: vertical;
}

select.field__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-gold) 50%),
    linear-gradient(135deg, var(--color-gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  line-height: 1.7;
}

.form__status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  border: 1px solid var(--color-border-gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-gold-bright);
}

.form__status.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   20. Tables (bonus terms, comparisons, specs)
   -------------------------------------------------------------------------- */

.table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-hair);
  -webkit-overflow-scrolling: touch;
}

/* Edge fades + hint, toggled by JS once a table is confirmed to need
   horizontal scroll — same visual language as the game rails, so a wide
   table reads as "swipe for more" rather than as cut-off content. */
.table-wrap::before,
.table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.table-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(28, 22, 32, 0.9) 0%, transparent 100%);
}

.table-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(28, 22, 32, 0.9) 0%, transparent 100%);
}

.table-wrap.can-scroll-left::before,
.table-wrap.can-scroll-right::after {
  opacity: 1;
}

.table-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.table-scroll-hint.is-visible {
  display: flex;
}

.table-scroll-hint svg {
  width: 13px;
  height: 13px;
  animation: hint-nudge 1.6s var(--ease-in-out) infinite;
}

@keyframes hint-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .table-scroll-hint svg {
    animation: none;
  }
}

.table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-hair);
}

@media (max-width: 480px) {
  .table th,
  .table td {
    padding: 0.7rem 0.75rem;
    font-size: var(--fs-xs);
  }
}

.table thead th {
  background: rgba(212, 175, 55, 0.07);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: rgba(246, 240, 228, 0.025);
}

.table td {
  color: var(--color-text-muted);
}

.table td strong {
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   21. Misc content blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}

.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(28, 22, 32, 0.85), rgba(8, 6, 12, 0.9));
  border: 1px solid var(--color-border-gold-soft);
}

.panel--gold {
  border-color: var(--color-border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel--warn {
  border-color: var(--color-border-crimson);
  background: linear-gradient(155deg, rgba(60, 12, 24, 0.55), rgba(12, 9, 16, 0.9));
}

.panel__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.6rem;
  color: var(--color-gold-bright);
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.checklist svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 0.22rem;
  color: var(--color-gold);
}

.checklist strong {
  color: var(--color-text-primary);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.keyword-cloud a,
.keyword-cloud span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(28, 22, 32, 0.8);
  border: 1px solid var(--color-border-hair);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}

.keyword-cloud a:hover {
  border-color: var(--color-border-gold);
  color: var(--color-gold-bright);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--color-border-gold);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, rgba(20, 10, 18, 0.9), transparent 90%);
  border-bottom: 1px solid var(--color-border-gold-soft);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(196, 30, 58, 0.2), transparent 62%),
    radial-gradient(ellipse 60% 60% at 88% 30%, rgba(212, 175, 55, 0.12), transparent 66%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-display);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: var(--space-sm);
}

.page-hero__title .gold {
  background: var(--gradient-marquee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.36));
}

.page-hero__lead {
  color: var(--color-text-muted);
  font-size: var(--fs-lead);
  max-width: 70ch;
}

.toc {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(28, 22, 32, 0.6);
  border: 1px solid var(--color-border-gold-soft);
}

.toc__title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.7rem;
}

.toc__list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: var(--fs-sm);
}

.toc__list a {
  color: var(--color-text-muted);
}

.toc__list a:hover {
  color: var(--color-gold-bright);
}

/* --------------------------------------------------------------------------
   22. Footer — curtain close
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  background: var(--gradient-curtain);
  border-top: 1px solid var(--color-border-gold);
  overflow: hidden;
  padding-top: clamp(2.8rem, 6vw, 4.4rem);
}

/* Curtain drape texture */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(196, 30, 58, 0.05) 0px,
    rgba(196, 30, 58, 0.05) 2px,
    transparent 2px,
    transparent 48px
  );
  pointer-events: none;
  opacity: 0.55;
}

.footer__inner {
  position: relative;
  z-index: 2;
  transform: translateY(46px);
  opacity: 0;
  transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out);
}

.footer.is-revealed .footer__inner {
  transform: translateY(0);
  opacity: 1;
}

.no-js .footer__inner {
  transform: none;
  opacity: 1;
}

.footer__top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer__brand-text {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--space-sm);
  max-width: 46ch;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-border-gold-soft);
}

.footer__links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: var(--fs-sm);
}

.footer__links a {
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.footer__links a::before {
  content: '›';
  color: var(--color-gold);
  opacity: 0.6;
}

.footer__links a:hover {
  color: var(--color-gold-bright);
  transform: translateX(3px);
}

.footer__tg {
  display: grid;
  gap: 0.6rem;
}

.footer__tg-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 158, 217, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.24);
  transition: all var(--dur-fast) var(--ease-out);
}

.footer__tg-link:hover {
  border-color: #2aabee;
  background: rgba(34, 158, 217, 0.15);
}

.footer__tg-link svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #45b6ec;
}

.footer__tg-title {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.footer__tg-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.footer__disclaimer {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(5, 4, 8, 0.7);
  border: 1px solid var(--color-border-crimson);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer__disclaimer strong {
  color: var(--color-text-primary);
}

.footer__age {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-crimson-bright);
  color: var(--color-crimson-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  flex: none;
  box-shadow: 0 0 14px rgba(196, 30, 58, 0.35);
}

.footer__disclaimer-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.footer__states {
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  line-height: 1.75;
}

.footer__bottom {
  border-top: 1px solid var(--color-border-hair);
  padding-block: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
}

.footer__bottom-links a {
  color: var(--color-text-dim);
}

.footer__bottom-links a:hover {
  color: var(--color-gold);
}

.footer__seo {
  padding-block: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border-hair);
}

.footer__seo-title {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.7rem;
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 2.6vw, 1.7rem);
  bottom: clamp(0.9rem, 2.6vw, 1.7rem);
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-glass-strong);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold);
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--dur-mid) var(--ease-out);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  box-shadow: var(--shadow-neon-gold);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   23. Breakpoints
   -------------------------------------------------------------------------- */

@media (min-width: 560px) {
  .game-card {
    width: 168px;
  }

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

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

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

@media (min-width: 768px) {
  .header__inner {
    min-height: 84px;
  }

  .logo__img {
    height: 36px;
  }

  .logo__img--lg {
    height: 44px;
  }

  .header__tg {
    display: grid;
  }

  .rail__seeall {
    display: inline-block;
  }

  .game-card {
    width: 182px;
  }

  .footer__top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

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

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

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

  .split--media-first > :first-child {
    order: -1;
  }
}

@media (min-width: 1000px) {
  .nav {
    display: block;
  }

  .burger {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: 1.06fr 0.94fr;
    grid-template-areas:
      'intro mockup'
      'cta mockup';
  }

  .footer__top {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .split--sticky > :last-child {
    position: sticky;
    top: 108px;
  }
}

@media (min-width: 1200px) {
  .game-card {
    width: 196px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Print */
@media print {
  .header,
  .footer,
  .ambient,
  .to-top,
  .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
