/* ==========================================================================
   Y1 Game — in-y1.games
   assets/css/main.css — reset, base typography, layout, shared chrome and the
   full component library. Page-specific blocks live in pages.css.

   ┌────────────────────────────────────────────────────────────────────────┐
   │  01 RESET & BASE            08 CARDS                                   │
   │  02 TYPOGRAPHY              09 MARQUEE / TICKER                        │
   │  03 LAYOUT & SECTIONS       10 ACCORDION                               │
   │  04 UTILITIES               11 CAROUSEL                                │
   │  05 BUTTONS                 12 FORMS                                   │
   │  06 BADGES & PILLS          13 TABLES                                  │
   │  07 EYEBROW & HEADINGS      14 HEADER / DRAWER / FOOTER                │
   │                             15 FLOATING UI & PRELOADER                 │
   │                             16 AMBIENT FX (orbs, particles, mockup)    │
   │                             17 ANIMATION HOOKS                         │
   └────────────────────────────────────────────────────────────────────────┘
   ========================================================================== */


/* ==========================================================================
   01 · RESET & BASE
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -moz-tab-size: 2;
  tab-size: 2;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100%;
  background-color: var(--color-bg);
  background-image: var(--gradient-vault);
  background-repeat: no-repeat;
  background-size: 100% 900px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
  border: 0;
}

svg {
  fill: currentColor;
}

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

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

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: 0;
  height: 1px;
  background: var(--gradient-brass-line);
  opacity: 0.5;
}

::selection {
  background: rgba(31, 217, 142, 0.30);
  color: #fff;
}

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

/* Scrollbar — thin, brass-tinted, never a UI element in its own right. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 138, 68, 0.32) transparent;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

*::-webkit-scrollbar-thumb {
  background: rgba(185, 138, 68, 0.30);
  border-radius: var(--r-pill);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 197, 126, 0.48);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: var(--z-preloader);
  padding: var(--sp-3) var(--sp-5);
  background: var(--color-emerald-bright);
  color: var(--color-text-on-emerald);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}


/* ==========================================================================
   02 · TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
  color: var(--color-text-muted);
  text-wrap: pretty;
}

strong,
b {
  color: var(--color-text-primary);
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: var(--fs-xs);
}

code,
kbd,
samp {
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(185, 138, 68, 0.10);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--r-xs);
  padding: 0.12em 0.42em;
  color: var(--color-brass-bright);
}

.prose > * + * {
  margin-top: var(--sp-4);
}

.prose p,
.prose li {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.prose h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-8);
}

.prose h3 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-6);
  color: var(--color-text-primary);
}

.prose h4 {
  font-size: var(--fs-md);
  margin-top: var(--sp-5);
  color: var(--color-brass-bright);
}

.prose a {
  color: var(--color-emerald-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 217, 142, 0.42);
  transition: text-decoration-color var(--t-fast) var(--ease-out);
}

.prose a:hover {
  text-decoration-color: var(--color-emerald-bright);
}

.prose ul,
.prose ol {
  padding-left: var(--sp-5);
}

.prose ul li {
  position: relative;
  padding-left: var(--sp-5);
  margin-top: var(--sp-2);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-brass);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  counter-increment: prose-ol;
  position: relative;
  padding-left: var(--sp-6);
  margin-top: var(--sp-2);
}

.prose ol li::before {
  content: counter(prose-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-brass-bright);
  font-variant-numeric: tabular-nums;
}

.prose blockquote {
  border-left: 2px solid var(--color-brass);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  color: var(--color-text-primary);
  font-size: var(--fs-md);
  font-style: italic;
}

.text-foil {
  background: var(--color-brass-foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foilShift 7s linear infinite;
}

@keyframes foilShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .text-foil { animation: none; background-position: 40% 50%; }
}

.text-emerald { color: var(--color-emerald-bright); }
.text-brass   { color: var(--color-brass-bright); }
.text-muted   { color: var(--color-text-muted); }
.text-dim     { color: var(--color-text-dim); }


/* ==========================================================================
   03 · LAYOUT & SECTIONS
   ========================================================================== */

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

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--lg { padding-block: var(--section-y-lg); }

.section--tight { padding-block: clamp(38px, 4.6vw, 64px); }

.section--panel {
  background:
    linear-gradient(180deg, rgba(185, 138, 68, 0.045) 0%, transparent 42%),
    var(--color-bg-raise);
  border-block: 1px solid var(--color-border-soft);
}

.section--panel-rev {
  background:
    linear-gradient(180deg, transparent 58%, rgba(31, 217, 142, 0.05) 100%),
    var(--color-bg-deep);
  border-block: 1px solid var(--color-border-soft);
}

/* Slanted divider — sits at the top of a section and cuts the band above. */
.section--slant {
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(var(--slant) * -1);
  padding-top: calc(var(--section-y) + var(--slant));
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 58px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.section__head--split .section__head-copy {
  max-width: 680px;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-top: var(--sp-3);
}

.section__title--lg { font-size: var(--fs-4xl); }

.section__lede {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 68ch;
}

.section__head--center .section__lede {
  margin-inline: auto;
}

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

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

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

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

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

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

.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

@media (max-width: 900px) {
  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   04 · UTILITIES
   ========================================================================== */

.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;
}

.is-hidden { display: none !important; }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.row--tight { gap: var(--sp-2); }
.row--center { justify-content: center; }
.row--between { justify-content: space-between; }

.rule {
  height: 1px;
  background: var(--gradient-brass-line);
  opacity: 0.55;
  margin-block: var(--sp-6);
}

.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }


/* ==========================================================================
   05 · BUTTONS
   ========================================================================== */

.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  line-height: 1.15;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t-base) var(--ease-spring),
    box-shadow var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn__sub {
  display: block;
  font-size: 0.70rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.72;
  margin-top: 2px;
  text-transform: none;
}

/* Primary — EMERALD. The one thing to do next. */
.btn--primary {
  background: var(--gradient-emerald);
  color: var(--color-text-on-emerald);
  box-shadow: 0 12px 34px -14px rgba(14, 138, 95, 0.80);
}

.btn--primary:hover {
  box-shadow: var(--shadow-glow-emerald);
}

/* Gold — BRASS. Secondary weight, used in the header and on dark panels. */
.btn--gold {
  background: var(--color-brass-foil);
  background-size: 200% 100%;
  color: var(--color-text-on-brass);
  box-shadow: 0 12px 30px -16px rgba(185, 138, 68, 0.72);
}

.btn--gold:hover {
  background-position: 100% 50%;
  box-shadow: var(--shadow-glow-brass);
}

/* Ghost — outlined, brass hairline. */
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--color-border);
  color: var(--color-text-primary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--color-border-strong);
  background: rgba(185, 138, 68, 0.09);
  color: var(--color-brass-bright);
}

/* Telegram — flat brand-neutral blue-grey, deliberately quieter than emerald. */
.btn--telegram {
  background: rgba(38, 160, 218, 0.13);
  border-color: rgba(38, 160, 218, 0.34);
  color: #7CD3F7;
}

.btn--telegram:hover {
  background: rgba(38, 160, 218, 0.22);
  border-color: rgba(38, 160, 218, 0.58);
  color: #A9E4FF;
}

.btn--sm {
  --btn-py: 9px;
  --btn-px: 18px;
  font-size: var(--fs-xs);
}

.btn--sm svg { width: 15px; height: 15px; }

.btn--lg {
  --btn-py: 18px;
  --btn-px: 34px;
  font-size: var(--fs-base);
}

.btn--lg svg { width: 20px; height: 20px; }

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

.btn--pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(31, 217, 142, 0.55);
  z-index: -1;
  animation: btnPulse 2.6s var(--ease-out) infinite;
}

@keyframes btnPulse {
  0%   { opacity: 0.75; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .btn--pulse::after { animation: none; opacity: 0.35; }
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* Icon-only control (header Telegram, carousel arrows, back-to-top). */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-text-muted);
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.icon-btn svg { width: 19px; height: 19px; }

.icon-btn:hover {
  color: var(--color-brass-bright);
  border-color: var(--color-border-strong);
  background: rgba(185, 138, 68, 0.10);
  transform: translateY(-1px);
}

.icon-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Click ripple injected by animations.js */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
  animation: rippleOut 620ms var(--ease-out) forwards;
  z-index: 0;
}

@keyframes rippleOut {
  to { transform: scale(2.6); opacity: 0; }
}


/* ==========================================================================
   06 · BADGES & PILLS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
  white-space: nowrap;
}

.badge svg { width: 14px; height: 14px; }

.badge--emerald {
  border-color: rgba(31, 217, 142, 0.32);
  background: var(--color-emerald-wash);
  color: var(--color-emerald-bright);
}

.badge--solid {
  background: var(--color-brass-foil);
  border-color: transparent;
  color: var(--color-text-on-brass);
}

.badge--age {
  border-color: rgba(240, 101, 92, 0.36);
  background: rgba(240, 101, 92, 0.10);
  color: #F79891;
}

.badge--dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(31, 217, 142, 0.16);
  animation: dotLive 2.2s var(--ease-in-out) infinite;
}

@keyframes dotLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .badge--dot::before { animation: none; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-xs);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.025);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.pill:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border);
  background: rgba(185, 138, 68, 0.08);
}

.pill__count {
  font-size: 0.72rem;
  opacity: 0.62;
  font-variant-numeric: tabular-nums;
}

.pill[aria-pressed='true'],
.pill.is-active {
  background: var(--color-emerald-wash);
  border-color: rgba(31, 217, 142, 0.42);
  color: var(--color-emerald-bright);
}


/* ==========================================================================
   07 · EYEBROW & DECORATIVE HEADINGS
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-brass-bright);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gradient-brass-line);
  flex: 0 0 auto;
}

.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gradient-brass-line);
  flex: 0 0 auto;
}

.eyebrow--emerald {
  color: var(--color-emerald-bright);
}


/* ==========================================================================
   08 · CARDS & PANELS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: var(--gradient-brass-line);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card:hover::before { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

.card--flat {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.018);
}

.card--tight { padding: var(--sp-5); }

.card--pad-lg { padding: clamp(28px, 4vw, 52px); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--color-brass-wash);
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-4);
  flex: 0 0 auto;
}

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

.card__icon--emerald {
  border-color: rgba(31, 217, 142, 0.30);
  background: var(--color-emerald-wash);
  color: var(--color-emerald-bright);
}

.card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

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

.card__text + .card__text { margin-top: var(--sp-3); }

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-5);
}

.card__index {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  background: var(--color-brass-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.panel {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  background: var(--gradient-panel);
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 4vw, 54px);
  overflow: hidden;
}

.panel--glass {
  background: var(--color-surface-glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.panel--vault::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-vault);
  pointer-events: none;
}

.panel > * { position: relative; z-index: 1; }

.note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-brass-bright);
}

.note--warn {
  border-color: rgba(232, 177, 75, 0.28);
  background: rgba(232, 177, 75, 0.07);
}

.note--warn svg { color: var(--color-warn); }

.note--age {
  border-color: rgba(240, 101, 92, 0.26);
  background: rgba(240, 101, 92, 0.06);
}

.note--age svg { color: #F79891; }

/* Stat tile ------------------------------------------------------------- */

.stat {
  position: relative;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out);
}

.stat:hover {
  border-color: var(--color-border);
  background: rgba(185, 138, 68, 0.055);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--ls-tight);
  font-variant-numeric: tabular-nums;
  background: var(--color-brass-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.stat__note {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Proof strip (hero) ----------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: var(--sp-7);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--r-md);
  background: var(--color-border-soft);
  overflow: hidden;
}

.proof__item {
  padding: var(--sp-4) var(--sp-3);
  background: rgba(7, 9, 10, 0.86);
  text-align: center;
}

.proof__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-brass-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
}

.proof__label {
  display: block;
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  line-height: 1.35;
}

@media (max-width: 560px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   09 · MARQUEE / TICKER
   ========================================================================== */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--color-border-soft);
  background: linear-gradient(90deg, rgba(185, 138, 68, 0.055), rgba(31, 217, 142, 0.045));
  padding-block: 13px;
  --ticker-duration: 46s;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}

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

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

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll var(--ticker-duration) linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ticker__item strong { color: var(--color-brass-bright); font-weight: 600; }

.ticker__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--color-emerald);
  transform: rotate(45deg);
  margin-left: var(--sp-5);
}

@keyframes tickerScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}


/* ==========================================================================
   10 · ACCORDION
   ========================================================================== */

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

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

.accordion__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) var(--sp-2);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--color-text-primary);
  transition: color var(--t-fast) var(--ease-out);
}

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

.accordion__trigger[aria-expanded='true'] { color: var(--color-emerald-bright); }

.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  margin-top: 2px;
  transition: border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.accordion__icon::before { width: 11px; height: 1.5px; }
.accordion__icon::after  { width: 1.5px; height: 11px; }

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  border-color: rgba(31, 217, 142, 0.44);
  background: var(--color-emerald-wash);
  transform: rotate(180deg);
}

.accordion__trigger[aria-expanded='true'] .accordion__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--t-slow) var(--ease-in-out);
}

.accordion__body {
  padding: 0 var(--sp-2) var(--sp-6);
  max-width: 74ch;
}

.accordion__body p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.accordion__body p + p { margin-top: var(--sp-3); }

.accordion__body ul {
  margin-top: var(--sp-3);
}

.accordion__body li {
  position: relative;
  padding-left: var(--sp-5);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.accordion__body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--color-brass);
  transform: rotate(45deg);
}


/* ==========================================================================
   11 · CAROUSEL
   ========================================================================== */

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.carousel__track {
  display: flex;
  will-change: transform;
  transition: transform var(--t-slow) var(--ease-out);
}

.carousel.is-dragging .carousel__track { transition: none; }

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-inline: 0;
}

.carousel--peek .carousel__slide { flex-basis: 84%; padding-inline: 7px; }

@media (min-width: 700px) {
  .carousel--peek .carousel__slide { flex-basis: 50%; }
}

@media (min-width: 1040px) {
  .carousel--peek .carousel__slide { flex-basis: 33.3333%; }
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: all var(--t-base) var(--ease-out);
}

.carousel__dot[aria-selected='true'] {
  width: 30px;
  border-radius: var(--r-pill);
  background: var(--color-emerald-bright);
}

/* Horizontal scroll strip (featured games, related games) ---------------- */

.strip {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: var(--sp-2) var(--sp-5);
  padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
}

.strip > * {
  scroll-snap-align: start;
  flex: 0 0 clamp(200px, 44vw, 248px);
}


/* ==========================================================================
   12 · FORMS
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  color: var(--color-text-primary);
}

.field__label .req { color: var(--color-emerald-bright); }

.field__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.field__control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.028);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  line-height: 1.5;
  transition:
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

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

.field__control:hover { border-color: var(--color-border); }

.field__control:focus {
  outline: none;
  border-color: rgba(31, 217, 142, 0.52);
  background: rgba(31, 217, 142, 0.05);
  box-shadow: 0 0 0 3px rgba(31, 217, 142, 0.13);
}

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

select.field__control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B0AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}

select.field__control option {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.field__error svg { width: 14px; height: 14px; flex: 0 0 auto; }

.field.has-error .field__control {
  border-color: rgba(240, 101, 92, 0.62);
  background: rgba(240, 101, 92, 0.06);
}

.field.has-error .field__error { display: flex; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
}

.field--check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-top: 2px;
  border-radius: var(--r-xs);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}

.field--check input[type='checkbox']:checked {
  background: var(--gradient-emerald);
  border-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2302150E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    var(--gradient-emerald);
  background-size: 14px, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.field--check .field__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  cursor: pointer;
}

.field--check.has-error input[type='checkbox'] {
  border-color: rgba(240, 101, 92, 0.62);
}

.form__summary {
  display: none;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid rgba(240, 101, 92, 0.40);
  background: rgba(240, 101, 92, 0.08);
  margin-bottom: var(--sp-5);
}

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

.form__summary-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-error);
  margin-bottom: var(--sp-2);
}

.form__summary ul li {
  font-size: var(--fs-xs);
  color: #F7A9A3;
  margin-top: 4px;
}

.form__summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__success {
  display: none;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid rgba(31, 217, 142, 0.40);
  background: rgba(31, 217, 142, 0.07);
  text-align: center;
}

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

.form__success svg {
  width: 42px;
  height: 42px;
  margin: 0 auto var(--sp-3);
  color: var(--color-emerald-bright);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5);
}

.form__grid > .field--full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Search input with leading icon ----------------------------------------- */

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-dim);
  pointer-events: none;
}

.search .field__control { padding-left: 46px; }

.search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-dim);
}

.search__clear svg {
  position: static;
  transform: none;
  width: 15px;
  height: 15px;
}

.search__clear:hover { color: var(--color-text-primary); background: rgba(255,255,255,0.05); }

.search.has-value .search__clear { display: flex; }


/* ==========================================================================
   13 · TABLES
   ========================================================================== */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
}

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

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  vertical-align: top;
}

.table thead th {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-brass-bright);
  background: rgba(185, 138, 68, 0.07);
  white-space: nowrap;
}

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

.table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }

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

.table th[scope='row'] {
  color: var(--color-text-primary);
  font-weight: 500;
  white-space: nowrap;
}


/* ==========================================================================
   14 · HEADER / DRAWER / FOOTER
   ========================================================================== */

.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    height var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    backdrop-filter var(--t-base) var(--ease-out);
}

.header.is-condensed {
  height: var(--header-h-condensed);
  background: var(--color-surface-glass-strong);
  border-bottom-color: var(--color-border-soft);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 34px -22px rgba(0, 0, 0, 0.9);
}

.header__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* Brand lockup ----------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 0 0 1px var(--color-border-soft), 0 6px 18px -8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 360px) {
  .brand__logo { width: 34px; height: 34px; }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  background: var(--color-brass-foil);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  white-space: nowrap;
}

/* Nav -------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  color: var(--color-text-muted);
  transition: color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--color-brass-foil);
  transform: translateX(-50%);
  transition: width var(--t-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.035);
}

.nav__link:hover::after { width: 22px; }

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

.nav__link.is-active::after { width: 22px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
}

.header .icon-btn { width: 40px; height: 40px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.025);
}

.burger span {
  display: block;
  height: 1.6px;
  width: 100%;
  border-radius: 2px;
  background: var(--color-brass-bright);
  transition: transform var(--t-base) var(--ease-out),
    opacity var(--t-fast) var(--ease-out);
}

.burger span:nth-child(2) { width: 68%; }

.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); width: 100%; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }
  .header__cta-desktop { display: none; }
}

@media (max-width: 500px) {
  .header__tg { display: none; }
  .brand__tag { display: none; }
}

/* Drawer ----------------------------------------------------------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(4, 6, 7, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-out), visibility var(--t-base);
}

.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--color-bg-deep);
  border-left: 1px solid var(--color-border);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.62);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--color-border-soft);
  position: sticky;
  top: 0;
  background: var(--color-bg-deep);
  z-index: 2;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--t-fast) var(--ease-out);
}

.drawer__close svg { width: 18px; height: 18px; }

.drawer__close:hover {
  color: var(--color-error);
  border-color: rgba(240, 101, 92, 0.44);
}

.drawer__nav {
  padding: var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 15px 17px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--t-fast) var(--ease-out);
}

.drawer__link svg { width: 17px; height: 17px; opacity: 0.5; }

.drawer__link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-text-primary);
  border-color: var(--color-border-soft);
}

.drawer__link.is-active {
  background: var(--color-brass-wash);
  border-color: var(--color-border);
  color: var(--color-brass-bright);
}

.drawer__foot {
  margin-top: auto;
  padding: var(--sp-5);
  border-top: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.drawer__legal {
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  line-height: var(--lh-relaxed);
}

/* Footer ----------------------------------------------------------------- */

.footer {
  position: relative;
  margin-top: var(--section-y);
  border-top: 1px solid var(--color-border-soft);
  background:
    radial-gradient(90% 100% at 50% 0%, rgba(185, 138, 68, 0.06), transparent 62%),
    var(--color-bg-deep);
  padding-top: clamp(48px, 6vw, 88px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: var(--sp-8);
}

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

.footer__blurb {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
  max-width: 40ch;
}

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.footer__title {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-4);
}

.footer__list li + li { margin-top: 11px; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--t-fast) var(--ease-out), gap var(--t-fast) var(--ease-out);
}

.footer__link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--color-brass);
  transform: rotate(45deg);
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-brass-bright);
  gap: 12px;
}

.footer__link:hover::before { opacity: 1; }

.footer__channel {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--t-fast) var(--ease-out);
}

.footer__channel + .footer__channel { margin-top: var(--sp-3); }

.footer__channel:hover {
  border-color: rgba(38, 160, 218, 0.40);
  background: rgba(38, 160, 218, 0.08);
}

.footer__channel svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #7CD3F7;
}

.footer__channel-title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.footer__channel-sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
  margin-top: 2px;
}

.footer__compliance {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.018);
  margin-bottom: var(--sp-7);
}

.footer__seal {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(240, 101, 92, 0.52);
  color: #F79891;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__compliance p {
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  color: var(--color-text-dim);
}

.footer__compliance p + p { margin-top: var(--sp-2); }

@media (max-width: 620px) {
  .footer__compliance { flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); }
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-block: var(--sp-5);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--fs-xs);
  color: var(--color-text-dim);
}

.footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__bar-links a { transition: color var(--t-fast) var(--ease-out); }
.footer__bar-links a:hover { color: var(--color-brass-bright); }


/* ==========================================================================
   15 · FLOATING UI & PRELOADER
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  background: var(--color-bg-deep);
  transition: opacity var(--t-slow) var(--ease-out), visibility var(--t-slow);
}

.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__rings {
  position: relative;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
}

.preloader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--color-brass-bright);
  border-right-color: rgba(185, 138, 68, 0.22);
  animation: spinCw 1.5s linear infinite;
}

.preloader__ring--inner {
  inset: 16px;
  border-top-color: transparent;
  border-bottom-color: var(--color-emerald-bright);
  border-left-color: rgba(31, 217, 142, 0.20);
  animation: spinCcw 2.1s linear infinite;
}

.preloader__mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

@keyframes spinCw  { to { transform: rotate(360deg); } }
@keyframes spinCcw { to { transform: rotate(-360deg); } }

.preloader__status {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.preloader__bar {
  width: min(240px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 34%;
  border-radius: 2px;
  background: var(--color-brass-foil);
  animation: loadSlide 1.35s var(--ease-in-out) infinite;
}

@keyframes loadSlide {
  0%   { transform: translateX(-105%); }
  100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__ring,
  .preloader__bar span { animation: none; }
  .preloader__bar span { width: 100%; }
}

/* Support FAB ------------------------------------------------------------ */

.fab {
  position: fixed;
  left: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(38, 160, 218, 0.40);
  background: rgba(10, 26, 34, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #7CD3F7;
  box-shadow: var(--shadow-md);
  transition: all var(--t-base) var(--ease-out);
}

.fab svg { width: 22px; height: 22px; flex: 0 0 auto; }

.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0;
  transition: max-width var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease-out);
}

.fab:hover,
.fab:focus-visible {
  border-color: rgba(38, 160, 218, 0.75);
  color: #BDECFF;
}

.fab:hover .fab__label,
.fab:focus-visible .fab__label {
  max-width: 180px;
  opacity: 1;
}

@media (max-width: 780px) {
  .fab { bottom: calc(var(--sp-5) + 66px); height: 46px; padding: 0 13px; }
  .fab svg { width: 20px; height: 20px; }
}

/* Back to top with progress ring ----------------------------------------- */

.to-top {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-float);
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-brass-bright);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t-base) var(--ease-out);
}

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

.to-top:hover { border-color: var(--color-border-strong); }

.to-top__arrow {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

.to-top__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

/* Geometry (cx/cy/r) stays on the SVG attributes — the CSS geometry
   properties are not reliably supported. The viewBox scales the ring, so one
   set of attributes covers both the desktop and the compact mobile size. */
.to-top__ring circle {
  fill: none;
  stroke-width: 2;
}

.to-top__ring .track { stroke: rgba(255, 255, 255, 0.08); }

.to-top__ring .bar {
  stroke: var(--color-emerald-bright);
  stroke-linecap: round;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transition: stroke-dashoffset 90ms linear;
}

@media (max-width: 780px) {
  .to-top { bottom: calc(var(--sp-5) + 66px); width: 46px; height: 46px; }
}

/* Sticky mobile CTA ------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease-out);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.sticky-cta__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta__sub {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-dim);
  margin-top: 1px;
}

@media (max-width: 780px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* Toasts ------------------------------------------------------------------ */

.toasts {
  position: fixed;
  top: calc(var(--header-h) + 14px);
  right: var(--sp-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: 13px 17px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  color: var(--color-text-primary);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform var(--t-base) var(--ease-spring), opacity var(--t-base) var(--ease-out);
}

.toast.is-in { transform: translateX(0); opacity: 1; }

.toast svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.toast--success { border-color: rgba(31, 217, 142, 0.42); }
.toast--success svg { color: var(--color-emerald-bright); }

.toast--error { border-color: rgba(240, 101, 92, 0.42); }
.toast--error svg { color: var(--color-error); }

.toast--info svg { color: var(--color-brass-bright); }

@media (max-width: 560px) {
  .toasts { right: 12px; left: 12px; max-width: none; top: calc(var(--header-h) + 8px); }
}

/* Cookie bar -------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-modal);
  width: min(430px, calc(100vw - 40px));
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease-out), visibility var(--t-slow);
}

.cookie.is-visible { transform: translateY(0); visibility: visible; }

.cookie__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-brass-bright);
  margin-bottom: var(--sp-3);
}

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

.cookie__text {
  font-size: var(--fs-xs);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.cookie__text a { color: var(--color-emerald-bright); text-decoration: underline; text-underline-offset: 2px; }

.cookie__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.cookie__actions .btn { flex: 1 1 auto; }

@media (max-width: 780px) {
  .cookie { bottom: calc(var(--sp-4) + 66px); left: 12px; right: 12px; width: auto; }
}


/* ==========================================================================
   16 · AMBIENT FX — ORBS, PARTICLES, PHONE MOCKUP
   ========================================================================== */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.orb--emerald {
  background: radial-gradient(circle, rgba(31, 217, 142, 0.42), transparent 70%);
  animation: orbDrift 22s var(--ease-in-out) infinite alternate;
}

.orb--brass {
  background: radial-gradient(circle, rgba(185, 138, 68, 0.38), transparent 70%);
  animation: orbDrift 28s var(--ease-in-out) infinite alternate-reverse;
}

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(46px, -38px, 0) scale(1.12); }
}

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

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-brass-bright);
  opacity: 0;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  12%  { opacity: 0.55; }
  85%  { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-190px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .particles { display: none; }
}

/* Phone mockup ------------------------------------------------------------ */

.mockup {
  position: relative;
  width: min(310px, 78vw);
  margin-inline: auto;
  transform-style: preserve-3d;
  will-change: transform;
}

.mockup__frame {
  position: relative;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #2A2118 0%, #0C0E0F 42%, #241C12 100%);
  border: 1px solid rgba(232, 197, 126, 0.30);
  box-shadow:
    0 42px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.mockup__screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #05070A;
  aspect-ratio: 9 / 19.5;
}

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

.mockup__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.16) 0%, transparent 34%, transparent 66%, rgba(31, 217, 142, 0.10) 100%);
  pointer-events: none;
}

.mockup__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  border-radius: var(--r-pill);
  background: #05070A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 3;
}

.mockup__btn {
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6E5730, #2A2118);
}

.mockup__btn--power { top: 148px; height: 62px; }

.mockup__btn--vol {
  right: auto;
  left: -3px;
  border-radius: 3px 0 0 3px;
  top: 118px;
  height: 40px;
}

.mockup__btn--vol2 {
  right: auto;
  left: -3px;
  border-radius: 3px 0 0 3px;
  top: 166px;
  height: 40px;
}

.mockup__chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: chipFloat 5.4s var(--ease-in-out) infinite;
}

.mockup__chip svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--color-emerald-bright); }

.mockup__chip-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.15;
}

.mockup__chip-label {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 1px;
}

.mockup__chip--1 { top: 12%; left: -16%; animation-delay: 0s; }
.mockup__chip--2 { top: 46%; right: -20%; animation-delay: 1.4s; }
.mockup__chip--3 { bottom: 11%; left: -12%; animation-delay: 2.8s; }

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

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

@media (max-width: 1080px) {
  .mockup__chip--1 { left: -6%; }
  .mockup__chip--2 { right: -8%; }
  .mockup__chip--3 { left: -4%; }
}

@media (max-width: 480px) {
  .mockup__chip { padding: 8px 11px; }
  .mockup__chip--1 { left: -2%; top: 8%; }
  .mockup__chip--2 { right: -2%; }
  .mockup__chip--3 { display: none; }
}


/* ==========================================================================
   17 · ANIMATION HOOKS (driven by animations.js)
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal='left']  { transform: translate3d(-34px, 0, 0); }
[data-reveal='right'] { transform: translate3d(34px, 0, 0); }
[data-reveal='scale'] { transform: scale(0.94); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-group].is-revealed > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-hero-item] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
}

[data-hero-item].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-tilt] {
  transition: transform var(--t-base) var(--ease-out);
}

[data-magnetic] {
  transition: transform var(--t-base) var(--ease-spring);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-group] > *,
  [data-hero-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
