/* ==========================================================================
   ix7 game — global styles
   Order: reset → base → layout → components → page blocks → responsive
   Naming: BEM-lite (.block__element--modifier)
   ========================================================================== */

/* ==========================================================================
   1. Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the sticky header on anchor jumps */
  overflow-x: hidden; /* fixed-position elements (e.g. .tg-float ping ring) are contained by the viewport, not body, so body's overflow-x alone doesn't clip them */
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

a {
  color: var(--color-red-600);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-red-500); }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: 0; }

/* One consistent, highly visible focus ring across the whole site. */
:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}

/* Screen-reader-only text that still receives focus. */
.sr-only {
  position: absolute;
  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;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate3d(-50%, -140%, 0);
  z-index: calc(var(--z-modal) + 10);
  padding: var(--space-3) var(--space-6);
  background: var(--color-ink-plate);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus {
  transform: translate3d(-50%, 0, 0);
  color: var(--color-white);
}

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */

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

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

/* Dark crimson band with a subtle radial bloom. */
.section--dark {
  background: var(--grad-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background: radial-gradient(50% 50% at 30% 30%, rgba(216, 0, 39, .38), transparent 70%);
  pointer-events: none;
}
.section--dark > * { position: relative; }
.section--dark h2,
.section--dark h3 { color: var(--color-white); }
.section--dark p { color: var(--color-muted-invert); }

/* Section head */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 60px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-red-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-red);
  border-radius: var(--radius-pill);
}
.section--dark .eyebrow { color: var(--color-red-300); }

.section-title { font-size: var(--fs-2xl); }
.section-lead {
  margin-top: var(--space-4);
  font-size: var(--fs-md);
  color: var(--color-muted);
  text-wrap: pretty;
}
.section--dark .section-lead { color: var(--color-muted-invert); }

/* Angled section separator (SVG lives in the markup). */
.section-sep {
  display: block;
  width: 100%;
  height: clamp(28px, 4vw, 64px);
  color: var(--color-bg-alt);
}
.section-sep svg { width: 100%; height: 100%; display: block; }
.section-sep--to-white { color: var(--color-white); }
.section-sep--to-dark { color: #0A0203; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--color-white);
  --btn-fg: var(--color-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px var(--space-8);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-align: center;
  border-radius: var(--radius-pill);
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Primary: red gradient, glow pulse, sheen sweep on hover. */
.btn--primary {
  --btn-fg: var(--color-white);
  background: var(--grad-red);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(216, 0, 39, .34);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 40%;
  z-index: -1;
  background: var(--grad-sheen);
  transform: translate3d(-120%, 0, 0);
}
.btn--primary:hover { color: var(--color-white); }
.btn--primary:hover::after { animation: ix7-sheen 900ms var(--ease-out); }
.btn--primary:hover { box-shadow: 0 16px 38px rgba(216, 0, 39, .48); }

/* Pulsing variant reserved for the single most important CTA on a page. */
.btn--pulse { animation: ix7-pulse-glow 2.8s var(--ease-out) infinite; }
.btn--pulse:hover { animation-play-state: paused; }

.btn--ghost {
  --btn-fg: var(--color-ink);
  background: transparent;
  border: 1.5px solid var(--color-border-strong);
}
.btn--ghost:hover {
  background: var(--color-red-100);
  color: var(--color-crimson-700);
  border-color: var(--color-red-500);
}

.btn--dark {
  --btn-fg: var(--color-white);
  background: var(--color-ink-plate);
  color: var(--color-white);
}
.btn--dark:hover { color: var(--color-white); box-shadow: var(--shadow-glow-red); }

.btn--on-dark {
  background: rgba(255, 255, 255, .08);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, .16);
  color: var(--color-white);
}

/* Telegram button uses the official brand blue. */
.btn--telegram {
  --btn-fg: var(--color-white);
  background: var(--color-telegram);
  color: var(--color-white);
  box-shadow: 0 8px 22px rgba(34, 158, 217, .34);
}
.btn--telegram:hover {
  color: var(--color-white);
  box-shadow: 0 14px 30px rgba(34, 158, 217, .46);
}

.btn--lg { padding: 18px var(--space-10); font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.btn-row--center { justify-content: center; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.site-header--scrolled {
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 84px;
  transition: height var(--dur-med) var(--ease-out);
}
.site-header--scrolled .site-header__inner { height: 68px; }

/* Brand: the wordmark artwork has a baked-in near-black backing, so it is
   presented as a deliberate dark "plate" rather than fighting it. */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 9px 14px;
  background: var(--color-ink-plate);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 30, 60, .22);
  box-shadow: 0 6px 18px rgba(74, 0, 0, .18);
  transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
}
.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 0, 0, .18), var(--shadow-glow-red);
}
.brand img {
  width: 148px;
  height: auto;
  transition: width var(--dur-med) var(--ease-out);
}
.site-header--scrolled .brand { padding: 7px 12px; }
.site-header--scrolled .brand img { width: 128px; }

.site-nav { margin-inline-start: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 1.8vw, var(--space-8));
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
}
/* Underline draws from the left on hover, and stays drawn on the current page. */
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-red);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] { color: var(--color-red-600); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

/* Icon-only Telegram button in the header. */
.tg-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-telegram);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(34, 158, 217, .34);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tg-icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(34, 158, 217, .48);
  color: var(--color-white);
}
.tg-icon-btn svg { width: 22px; height: 22px; }

/* Hamburger */
.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.nav-toggle__bars {
  position: relative;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: rgba(10, 2, 3, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-drawer) + 1);
  width: min(360px, 86vw);
  padding: var(--space-6) var(--space-6) var(--space-10);
  background: var(--grad-dark);
  color: var(--color-white);
  transform: translate3d(100%, 0, 0);
  /* `visibility: hidden` keeps the off-canvas links out of the tab order and
     the accessibility tree — a translated-but-visible drawer is still
     keyboard-focusable, which would strand focus off-screen. */
  visibility: hidden;
  transition:
    transform var(--dur-med) var(--ease-out),
    visibility var(--dur-med);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__close {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, .2);
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer__close:hover { background: rgba(255, 255, 255, .1); }

.drawer__list { display: flex; flex-direction: column; }
.drawer__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.drawer__link:hover { color: var(--color-red-300); }
.drawer__link[aria-current="page"] { color: var(--color-red-300); }
.drawer__link svg { width: 16px; height: 16px; opacity: .5; }

/* Links fade in one after another once the drawer opens. */
.drawer.is-open .drawer__item,
.drawer.is-open .drawer__foot {
  animation: ix7-slide-in-right var(--dur-med) var(--ease-out) both;
  animation-delay: calc(60ms + var(--i, 0) * 45ms);
}

.drawer__foot { display: grid; gap: var(--space-3); margin-top: auto; }

/* ==========================================================================
   5. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 110px);
  background: var(--color-white);
}

/* Two slow-drifting radial orbs give the gradient its life. */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: ix7-gradient-drift 22s ease-in-out infinite;
}
.hero__orb--1 {
  width: 640px; height: 640px;
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(255, 30, 60, .30), transparent 65%);
}
.hero__orb--2 {
  width: 520px; height: 520px;
  bottom: -240px; left: -200px;
  background: radial-gradient(circle, rgba(139, 0, 0, .22), transparent 65%);
  animation-duration: 28s;
  animation-direction: reverse;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}
.hero__title em {
  font-style: normal;
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 56ch;
  font-size: var(--fs-md);
  color: var(--color-muted);
  margin-bottom: var(--space-8);
  text-wrap: pretty;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: 7px var(--space-4) 7px var(--space-2);
  background: var(--color-red-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-crimson-700);
}
.hero__badge b {
  display: inline-grid;
  place-items: center;
  padding: 3px 10px;
  background: var(--grad-red);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .06em;
}

.hero__note {
  margin-top: var(--space-6);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

/* --- Hero visual: phone mock + floating game chips ------------------------ */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.phone {
  position: relative;
  width: min(300px, 74%);
  padding: 10px;
  background: linear-gradient(160deg, #2A0004, #0A0203);
  border-radius: 40px;
  box-shadow:
    0 40px 80px rgba(74, 0, 0, .34),
    0 0 0 1px rgba(255, 30, 60, .22),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.phone::before { /* speaker notch */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 6px;
  background: rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  z-index: 2;
}
.phone__screen {
  border-radius: 32px;
  overflow: hidden;
  background: #0A0203;
}
.phone__screen img { width: 100%; height: auto; display: block; }

/* Pointer parallax. Uses the standalone `translate` property so it composes
   with the `transform`-based float keyframes instead of overwriting them. */
[data-parallax] {
  translate: var(--px, 0) var(--py, 0);
}

/* Small floating game thumbnails orbiting the phone. */
.hero__chip {
  position: absolute;
  width: clamp(64px, 8vw, 92px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  border: 2px solid var(--color-white);
  background: var(--color-white);
}
.hero__chip img { width: 100%; height: auto; }
.hero__chip--1 { top: 6%;  left: 2%;  --float-dist: 16px; --float-dur: 6.5s; --float-rot: -6deg; }
.hero__chip--2 { top: 34%; right: 0;  --float-dist: 12px; --float-dur: 7.5s; --float-rot: 5deg; --float-delay: .6s; }
.hero__chip--3 { bottom: 8%; left: 6%; --float-dist: 18px; --float-dur: 8s; --float-rot: 4deg; --float-delay: 1.1s; }

/* Floating "bonus" pill. */
.hero__pill {
  position: absolute;
  right: -4%;
  bottom: 20%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card-hover);
  --float-dist: 10px; --float-dur: 5.5s; --float-delay: .3s;
}
.hero__pill strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-red-600);
  line-height: 1;
}
.hero__pill span {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.2;
}

/* ==========================================================================
   5b. Screenshots carousel
   Hand-rolled — no external swiper library. Horizontal scroll-snap does the
   heavy lifting (native touch swipe, momentum); JS adds arrows, dots, active-
   slide emphasis, keyboard control, mouse-drag and autoplay on top of it.
   ========================================================================== */

.shots-section { overflow: visible; }

.shots-carousel {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
}

.shots-carousel__viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
}
.shots-carousel__viewport::-webkit-scrollbar { display: none; }
.shots-carousel__viewport:active,
.shots-carousel__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shots-carousel__viewport:focus-visible { outline: none; box-shadow: none; }

.shots-carousel__track {
  --shot-w: clamp(168px, 26vw, 232px);
  display: flex;
  align-items: center;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  /* Padding equal to half the viewport minus half a slide centres the first
     and last slides instead of pinning them to the edge. */
  padding-inline: calc(50% - (var(--shot-w) / 2));
  padding-block: clamp(20px, 3vw, 36px);
}

.shots-carousel__slide {
  flex: none;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.shot-frame {
  position: relative;
  display: block;
  width: var(--shot-w, 200px);
  padding: 8px;
  background: linear-gradient(160deg, #2A0004, #0A0203);
  border-radius: 30px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 30, 60, .16);
  opacity: .48;
  filter: saturate(.7);
  transform: scale(.84);
  transition:
    transform var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}
.shot-frame::before { /* speaker notch, matches .phone */
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 5px;
  background: rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  z-index: 2;
}
.shot-frame__screen {
  border-radius: 22px;
  overflow: hidden;
  background: #0A0203;
  line-height: 0;
}
.shot-frame__screen img { width: 100%; height: auto; display: block; }

.shots-carousel__slide.is-active .shot-frame {
  opacity: 1;
  filter: none;
  transform: scale(1.08);
  box-shadow: 0 30px 64px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 30, 60, .34), var(--shadow-glow-red);
}

/* Prev/next arrows float over the fade at each edge of the dark section. */
.shots-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  transform: translateY(-50%);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--color-white);
  backdrop-filter: blur(6px);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.shots-carousel__nav svg { width: 20px; height: 20px; }
.shots-carousel__nav:hover:not(:disabled) { background: var(--grad-red); border-color: transparent; transform: translateY(-50%) scale(1.08); }
.shots-carousel__nav:disabled { opacity: .3; pointer-events: none; }
.shots-carousel__nav--prev { left: clamp(4px, 2vw, var(--space-6)); }
.shots-carousel__nav--next { right: clamp(4px, 2vw, var(--space-6)); }

.shots-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: clamp(20px, 3vw, 32px);
}
.shots-carousel__dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .28);
  transition: width var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.shots-carousel__dot:hover { background: rgba(255, 255, 255, .5); }
.shots-carousel__dot[aria-selected="true"] {
  width: 26px;
  background: var(--grad-red);
}

.shots-carousel__progress {
  width: 160px;
  height: 3px;
  margin: var(--space-5) auto 0;
  background: rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.shots-carousel__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-red);
  border-radius: inherit;
}
.shots-carousel__progress-bar.is-animating {
  animation: ix7-shots-progress var(--autoplay-ms, 3800ms) linear forwards;
}
.shots-carousel__progress-bar.is-paused { animation-play-state: paused; }

@media (max-width: 640px) {
  .shots-carousel__nav { display: none; } /* native swipe covers mobile */
  .shots-carousel__track { --shot-w: clamp(140px, 46vw, 190px); }
}

/* ==========================================================================
   6. Trust strip / counters
   ========================================================================== */

.trust {
  border-block: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-block: clamp(28px, 3.5vw, 48px);
}
.trust__item {
  display: grid;
  gap: var(--space-1);
  justify-items: center;
  text-align: center;
  position: relative;
}
.trust__item + .trust__item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-6) / -2);
  top: 12%; bottom: 12%;
  width: 1px;
  background: var(--color-border);
}
.trust__value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  background: var(--grad-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Tabular figures stop the counter from jittering as it ticks up. */
  font-variant-numeric: tabular-nums;
}
.trust__label {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  font-weight: 500;
}

/* ==========================================================================
   7. Game cards & grid
   ========================================================================== */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: clamp(var(--space-4), 1.6vw, var(--space-6));
}

.game-card { position: relative; }
.game-card[hidden] { display: none; }

.game-card__link {
  display: grid;
  gap: var(--space-3);
  color: inherit;
  border-radius: var(--radius-md);
}
.game-card__link:hover { color: inherit; }

.game-card__media {
  position: relative;
  display: block;
  aspect-ratio: 211 / 260;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.game-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.game-card__link:hover .game-card__media,
.game-card__link:focus-visible .game-card__media {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow-red);
}
.game-card__link:hover .game-card__media img { transform: scale(1.09); }

/* Red wash + "Play Now" slides up from the bottom. */
.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(74, 0, 0, .10), rgba(216, 0, 39, .78));
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.game-card__play {
  transform: translate3d(0, 14px, 0);
  padding: 9px var(--space-5);
  background: var(--color-white);
  color: var(--color-crimson-700);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform var(--dur-med) var(--ease-spring);
}
.game-card__link:hover .game-card__overlay,
.game-card__link:focus-visible .game-card__overlay { opacity: 1; }
.game-card__link:hover .game-card__play,
.game-card__link:focus-visible .game-card__play { transform: none; }

.game-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
}
.game-card__badge--hot { background: var(--grad-red); }
.game-card__badge--new { background: var(--color-ink-plate); }

.game-card__body { display: grid; gap: 2px; }
.game-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-ink);
  /* Long titles truncate rather than shoving the grid around. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}
.game-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--color-ink);
}
.game-card__rating svg {
  width: 13px; height: 13px;
  fill: var(--color-red-500);
}

/* ==========================================================================
   8. Filters, search, load-more
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.tab {
  position: relative;
  z-index: 1;
  padding: 9px var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-muted);
  transition: color var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.tab:hover { color: var(--color-crimson-700); }
.tab[aria-selected="true"] {
  color: var(--color-white);
  background: var(--grad-red);
  box-shadow: 0 6px 16px rgba(216, 0, 39, .30);
}
.tab__count {
  margin-inline-start: 6px;
  opacity: .6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.search {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}
.search__input {
  width: 100%;
  padding: 13px var(--space-5) 13px 46px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.search__input::placeholder { color: var(--color-muted); }
.search__input:focus {
  outline: none;
  border-color: var(--color-red-500);
  box-shadow: 0 0 0 4px rgba(255, 30, 60, .14);
}
.search__icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--color-muted);
  pointer-events: none;
}

.grid-status {
  margin-bottom: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.empty-state {
  padding: var(--space-16) var(--space-6);
  text-align: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.empty-state h3 { margin-bottom: var(--space-2); }
.empty-state p { color: var(--color-muted); }

.load-more-wrap {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

/* Newly revealed cards fade up. */
.game-card--entering { animation: ix7-fade-up var(--dur-med) var(--ease-out) both; }

/* ==========================================================================
   9. Feature cards / why-choose
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.feature {
  position: relative;
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
/* A red gradient bar wipes in across the top edge on hover. */
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-strong);
}
.feature:hover::before { transform: scaleX(1); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-red-100);
  color: var(--color-red-600);
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature:hover .feature__icon {
  background: var(--grad-red);
  color: var(--color-white);
}
.feature__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.feature__text { color: var(--color-muted); font-size: var(--fs-sm); }

/* Dark variant used on the About page. */
.section--dark .feature {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}
.section--dark .feature__text { color: var(--color-muted-invert); }
.section--dark .feature__icon {
  background: rgba(255, 30, 60, .16);
  color: var(--color-red-300);
}

/* ==========================================================================
   10. Steps timeline
   ========================================================================== */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
/* Connector line behind the step numbers. Drawn by default so it survives
   without JS; only the reveal path hides it so it can animate in. */
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red-500), var(--color-red-300), var(--color-red-500));
  transform-origin: left;
  border-radius: var(--radius-pill);
}
.js-reveal .steps::before { transform: scaleX(0); }
.js-reveal .steps.is-visible::before { animation: ix7-draw-line 1.2s var(--ease-out) 200ms forwards; }

.step {
  position: relative;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}
.step__num {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  border: 2px solid var(--color-border-strong);
  color: var(--color-red-600);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-spring), background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.step:hover .step__num {
  transform: scale(1.08);
  background: var(--grad-red);
  color: var(--color-white);
  border-color: transparent;
}
.step__title { font-size: var(--fs-lg); }
.step__text { color: var(--color-muted); font-size: var(--fs-sm); max-width: 34ch; }

/* Numbered cards (download page) */
.step-cards { display: grid; gap: var(--space-5); }
.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.step-card:hover { transform: translateX(6px); box-shadow: var(--shadow-card-hover); }
.step-card__num {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-lg);
}
.step-card__title { font-size: var(--fs-md); margin-bottom: var(--space-1); }
.step-card__text { color: var(--color-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   11. Promo banner
   ========================================================================== */

.promo {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--grad-red);
  color: var(--color-white);
  box-shadow: 0 30px 60px rgba(216, 0, 39, .30);
  text-align: center;
  isolation: isolate;
}
.promo::before { /* diagonal light streak */
  content: "";
  position: absolute;
  inset: -50% -20%;
  z-index: -1;
  background: radial-gradient(45% 55% at 20% 20%, rgba(255, 255, 255, .22), transparent 70%);
}
.promo__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}
.promo__title span { display: block; font-size: .5em; font-weight: 600; opacity: .85; letter-spacing: 0; }
.promo__text {
  max-width: 62ch;
  margin: 0 auto var(--space-8);
  /* On the red gradient, anything below ~0.92 white fails WCAG AA for body text. */
  color: rgba(255, 255, 255, .95);
}
.promo .btn--dark:hover { box-shadow: 0 0 30px rgba(0, 0, 0, .35); }
.promo__fine {
  margin-top: var(--space-6);
  font-size: var(--fs-xs);
  /* Small print carries compliance text — keep it at full AA contrast. */
  color: rgba(255, 255, 255, .94);
}

/* ==========================================================================
   12. Testimonials
   ========================================================================== */

.testimonials {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
}
.testimonials::-webkit-scrollbar { height: 6px; }
.testimonials::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-pill); }

.testimonial {
  flex: 0 0 min(360px, 82vw);
  scroll-snap-align: start;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.testimonial__stars { display: flex; gap: 2px; color: var(--color-red-500); }
.testimonial__stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonial__quote { color: var(--color-ink); font-size: var(--fs-sm); }
.testimonial__who { display: flex; align-items: center; gap: var(--space-3); }
.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: var(--grad-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial__name { font-weight: 700; font-size: var(--fs-sm); }
.testimonial__city { font-size: var(--fs-xs); color: var(--color-muted); }

/* ==========================================================================
   13. Blog cards
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.post[hidden] { display: none; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.post__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.post:hover .post__media img { transform: scale(1.07); }
.post__tag {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(6, 1, 2, .82);
  backdrop-filter: blur(4px);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  flex: 1;
}
.post__date {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.post__title { font-size: var(--fs-md); }
.post__title a { color: var(--color-ink); }
.post__title a:hover { color: var(--color-red-600); }
.post__excerpt { font-size: var(--fs-sm); color: var(--color-muted); flex: 1; }
.post__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-red-600);
}
.post__more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.post__more:hover svg { transform: translateX(4px); }

/* ==========================================================================
   14. FAQ accordion
   ========================================================================== */

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

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.faq__item:hover { border-color: var(--color-border-strong); }
.faq__item.is-open { box-shadow: var(--shadow-card); border-color: var(--color-border-strong); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-ink);
}
.faq__q:hover { color: var(--color-red-600); }

.faq__icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--color-red-100);
  transition: background var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--color-red-600);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--grad-red); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--color-white); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Height-animated without magic numbers: 0fr → 1fr on a grid row. */
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   15. Page hero (inner pages) + breadcrumbs
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 88px);
  background: var(--grad-dark);
  color: var(--color-white);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 160%;
  background: radial-gradient(45% 45% at 70% 20%, rgba(216, 0, 39, .40), transparent 68%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero__title { color: var(--color-white); font-size: var(--fs-3xl); }
.page-hero__lead {
  margin-top: var(--space-4);
  color: var(--color-muted-invert);
  font-size: var(--fs-md);
  text-wrap: pretty;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--color-muted-invert);
}
.breadcrumb a { color: var(--color-red-300); }
.breadcrumb a:hover { color: var(--color-white); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; opacity: .45; }
.breadcrumb [aria-current] { color: var(--color-white); font-weight: 600; }

/* ==========================================================================
   16. Game details
   ========================================================================== */

.game-detail {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.game-detail__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  background: var(--color-bg-alt);
  aspect-ratio: 211 / 260;
}
.game-detail__art img { width: 100%; height: 100%; object-fit: cover; }

.game-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-red-100);
  border: 1px solid var(--color-border);
  color: var(--color-crimson-700);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }
.chip--dark { background: var(--color-ink-plate); color: var(--color-white); border-color: transparent; }

.stars {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.stars__icons { display: inline-flex; gap: 2px; color: var(--color-red-500); }
.stars__icons svg { width: 18px; height: 18px; fill: currentColor; }
.stars__icons svg.is-empty { fill: var(--color-border-strong); }
.stars__value { font-weight: 700; }
.stars__count { color: var(--color-muted); font-size: var(--fs-sm); }

.game-detail__title { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
.game-detail__desc { color: var(--color-muted); margin-bottom: var(--space-6); }

.key-list { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }
.key-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
}
.key-list svg {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--color-red-600);
}

/* Screenshot gallery */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
}
.shot {
  position: relative;
  display: block;
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-ink-plate);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(216, 0, 39, .0);
  transition: background var(--dur-med) var(--ease-out);
}
.shot:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-card-hover); }
.shot:hover::after { background: rgba(216, 0, 39, .22); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background: rgba(6, 1, 2, .92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 460px);
  max-height: 86vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .6);
  animation: ix7-modal-in var(--dur-med) var(--ease-out);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--color-white);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--color-red-600); transform: scale(1.08); }
.lightbox__close { top: var(--space-6); right: var(--space-6); }
.lightbox__nav--prev { left: var(--space-4); }
.lightbox__nav--next { right: var(--space-4); }
.lightbox svg { width: 20px; height: 20px; }
.lightbox__counter {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

/* Horizontal related-games rail */
.rail {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: var(--radius-pill); }
.rail > * { flex: 0 0 clamp(150px, 20vw, 190px); scroll-snap-align: start; }

/* ==========================================================================
   17. Forms
   ========================================================================== */

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

.field { display: grid; gap: var(--space-2); }
.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field__label .req { color: var(--color-red-600); }

.field__control {
  width: 100%;
  padding: 14px var(--space-5);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
textarea.field__control { min-height: 148px; resize: vertical; }
.field__control::placeholder { color: var(--color-muted); }
.field__control:focus {
  outline: none;
  border-color: var(--color-red-500);
  box-shadow: 0 0 0 4px rgba(255, 30, 60, .14);
}
.field--invalid .field__control {
  border-color: var(--color-red-600);
  background: #FFF6F7;
}
.field__error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-red-600);
  font-weight: 600;
}
.field--invalid .field__error { display: block; }

.form__status {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form__status.is-visible { display: flex; }
.form__status--ok {
  background: var(--color-red-100);
  color: var(--color-crimson-700);
  border: 1px solid var(--color-border);
}
.form__status svg { width: 20px; height: 20px; flex: none; }

/* Contact side panel */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.contact-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--grad-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-card-hover);
}
.contact-card h3 { color: var(--color-white); }
.contact-card p { color: var(--color-muted-invert); font-size: var(--fs-sm); }

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--color-white);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.contact-item:hover { background: rgba(255, 255, 255, .1); transform: translateX(4px); color: var(--color-white); }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--color-telegram);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__icon--red { background: var(--grad-red); }
.contact-item__label { font-size: var(--fs-xs); color: var(--color-muted-invert); }
.contact-item__value { font-family: var(--font-display); font-weight: 700; }

/* ==========================================================================
   18. Prose (legal pages) + table of contents
   ========================================================================== */

.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 110px;
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.toc__title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.toc__list { display: grid; gap: var(--space-1); }
.toc__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  color: var(--color-muted);
  font-size: var(--fs-sm);
  transition: all var(--dur-fast) var(--ease-out);
}
.toc__link:hover,
.toc__link.is-active {
  background: var(--color-white);
  border-left-color: var(--color-red-500);
  color: var(--color-crimson-700);
  font-weight: 600;
}

.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-12);
  padding-top: var(--space-2);
  scroll-margin-top: 110px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--space-8); }
.prose p, .prose li { color: var(--color-muted); }
.prose strong { color: var(--color-ink); font-weight: 700; }
.prose ul { display: grid; gap: var(--space-3); padding-left: var(--space-6); }
.prose ul li {
  position: relative;
  font-size: var(--fs-sm);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-6) * -1);
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--grad-red);
  transform: rotate(45deg);
}
.prose__updated {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-red-100);
  color: var(--color-crimson-700);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.prose__updated svg { width: 15px; height: 15px; flex: none; }

.callout {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-red-500);
}
.callout p { color: var(--color-ink); font-size: var(--fs-sm); }
.callout--warn { background: #FFF6F7; }

/* ==========================================================================
   19. Compliance strip / responsible gaming
   ========================================================================== */

.compliance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.age-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--grad-red);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  box-shadow: var(--shadow-glow-red);
}
.compliance__text { font-size: var(--fs-sm); color: var(--color-muted); }
.compliance__text strong { color: var(--color-ink); }

/* ==========================================================================
   20. Footer
   ========================================================================== */

.site-footer {
  background: var(--grad-dark);
  color: var(--color-muted-invert);
  padding-top: clamp(48px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 60%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(216, 0, 39, .30), transparent 70%);
  pointer-events: none;
}
.site-footer > * { position: relative; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--space-12);
}
.footer__brand { display: grid; gap: var(--space-5); align-content: start; }
.footer__brand .brand { justify-self: start; }
.footer__about { font-size: var(--fs-sm); max-width: 42ch; }

.footer__title {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer__list { display: grid; gap: var(--space-3); }
.footer__link {
  color: var(--color-muted-invert);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.footer__link:hover { color: var(--color-white); transform: translateX(4px); }
.footer__link svg { width: 18px; height: 18px; flex: none; }

.footer__notice {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.footer__notice-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer__notice p { font-size: var(--fs-xs); color: var(--color-muted-invert); }
.footer__notice strong { color: var(--color-white); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-xs);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer__legal-links a { color: var(--color-muted-invert); }
.footer__legal-links a:hover { color: var(--color-white); }

/* ==========================================================================
   21. Floating Telegram CTA
   ========================================================================== */

.tg-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: var(--radius-pill);
  background: var(--color-telegram);
  color: var(--color-white);
  box-shadow: 0 12px 30px rgba(34, 158, 217, .44);
  transition: transform var(--dur-med) var(--ease-spring), opacity var(--dur-med) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.tg-float:hover { color: var(--color-white); transform: scale(1.08); }
.tg-float svg { width: 28px; height: 28px; position: relative; z-index: 1; }

/* Expanding ping ring. */
.tg-float__ping {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-telegram);
  animation: ix7-ping 2.6s var(--ease-out) infinite;
}

/* Tucks away while the user scrolls down, returns on scroll up. */
.tg-float.is-hidden,
/* …and gets out of the way of the drawer, age gate and lightbox, all of
   which lock body scroll while they are open. */
body.is-locked .tg-float {
  transform: translate3d(0, 130%, 0) scale(.6);
  opacity: 0;
  pointer-events: none;
}

.tg-float__label {
  position: absolute;
  right: calc(100% + 12px);
  padding: 8px var(--space-4);
  background: var(--color-ink-plate);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.tg-float:hover .tg-float__label { opacity: 1; transform: none; }

/* ==========================================================================
   22. Age gate
   ========================================================================== */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: rgba(6, 1, 2, .88);
  backdrop-filter: blur(10px);
  animation: ix7-overlay-in var(--dur-med) var(--ease-out);
}
.age-gate[hidden] { display: none; }

.age-gate__box {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
  animation: ix7-modal-in var(--dur-med) var(--ease-spring);
  overflow-x: hidden;
}
.age-gate__box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad-red);
}
.age-gate__mark {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: var(--radius-md);
}
.age-gate__title { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.age-gate__text { color: var(--color-muted); font-size: var(--fs-sm); margin-bottom: var(--space-6); }
.age-gate__actions { display: grid; gap: var(--space-3); }
.age-gate__fine {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-muted);
}
.age-gate__fine a { font-weight: 600; }

/* ==========================================================================
   23. Misc
   ========================================================================== */

/* Reusable phone mockup outside the hero (currently: download page). Reuses
   .phone/.phone__screen as-is; insets stay positive (no negative overhang)
   so the floating chip/badge can never push the page into horizontal scroll. */
.app-mock {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.app-mock .phone { margin-inline: auto; }

.app-mock__chip {
  position: absolute;
  top: 6%;
  left: 4%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-crimson-700);
  --float-dist: 10px; --float-dur: 6s;
}
.app-mock__chip svg { width: 14px; height: 14px; color: var(--color-red-600); }

.app-mock__badge {
  position: absolute;
  right: 4%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card-hover);
  --float-dist: 10px; --float-dur: 5.5s; --float-delay: .3s;
}
.app-mock__badge strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--color-red-600);
  line-height: 1;
}
.app-mock__badge span {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.2;
}

/* Small muted print — e.g. the privacy note under the contact form. */
.hint-text { font-size: var(--fs-xs); color: var(--color-muted); }

.spec-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  font-size: var(--fs-sm);
}
.spec-list__row:nth-child(odd) { background: var(--color-bg-alt); }
.spec-list__key { color: var(--color-muted); font-weight: 600; }
.spec-list__val { font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.stat {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-red-600);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat__label { font-size: var(--fs-xs); color: var(--color-muted); }
.section--dark .stat { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section--dark .stat__value { color: var(--color-red-300); }
.section--dark .stat__label { color: var(--color-muted-invert); }

/* ==========================================================================
   24. Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero__badge { margin-inline: auto; }
  .hero__visual { order: -1; min-height: 0; margin-bottom: var(--space-6); }
  .hero__chip--1 { left: 6%; }
  .hero__chip--3 { left: 10%; }

  .game-detail { grid-template-columns: 1fr; }
  .game-detail__art { max-width: 320px; margin-inline: auto; }

  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }

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

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
  .site-header__actions { margin-inline-start: auto; }
  .site-header__actions .btn--primary { display: none; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 84px; }
  .site-header__inner { height: 72px; }
  .site-header--scrolled .site-header__inner { height: 62px; }
  .brand img { width: 122px; }
  .site-header--scrolled .brand img { width: 112px; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-4); }
  /* The 1px dividers only make sense between columns, not rows. */
  .trust__item:nth-child(odd)::before { display: none; }

  .steps { grid-template-columns: 1fr; gap: var(--space-10); }
  .steps::before { display: none; }

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

  .compliance { grid-template-columns: 1fr; justify-items: center; text-align: center; }

  /* Stacking the bar flips the main axis to vertical. `flex-wrap: wrap` must go
     with it: a wrapped column container stretches items to their own line's
     cross size (the tabs' full max-content width) rather than to the container. */
  .filter-bar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  /* `flex: 1 1 240px` would become a 240px *height* on the vertical axis. */
  .search { max-width: none; flex: none; }
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    min-width: 0; /* allow the scroll container to shrink below its content */
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; }

  .spec-list__row { grid-template-columns: 1fr; gap: var(--space-1); }

  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .tg-icon-btn { width: 42px; height: 42px; }
  .promo { padding: var(--space-8) var(--space-5); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  /* Keep the floating CTA clear of the browser chrome on small screens. */
  .tg-float { width: 52px; height: 52px; }
  .tg-float svg { width: 24px; height: 24px; }
}

/* Very wide screens: let the hero breathe a little more. */
@media (min-width: 1440px) {
  .hero { padding-block: 110px 130px; }
}

/* Print: legal pages should print cleanly. */
@media print {
  .site-header, .site-footer, .tg-float, .age-gate, .toc, .nav-scrim, .drawer { display: none !important; }
  body { color: #000; }
  .prose { max-width: none; }
}
