/* ==========================================================================
   ComeGame App — Global stylesheet
   Shared reset, layout, components, header, footer, motion utilities.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Hard guarantee: the page never scrolls sideways. */
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.55rem); }
h4 { font-size: clamp(1.05rem, 2.1vw, 1.2rem); }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  text-wrap: pretty;
}

a {
  color: var(--color-electric-blue);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-royal-purple); }

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

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); color: var(--color-text-secondary); line-height: var(--lh-relaxed); }

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

table { border-collapse: collapse; width: 100%; }

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

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

::selection { background: rgba(45, 91, 255, 0.16); color: var(--color-text-primary); }

/* Focus visibility — WCAG AA */
:focus-visible {
  outline: 3px solid var(--color-electric-blue);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -80px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--color-text-on-accent);
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

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

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + (var(--gutter) * 2)); }
.container--narrow { max-width: calc(var(--container-narrow) + (var(--gutter) * 2)); }

.section { position: relative; padding-block: var(--section-y); }
.section--sm { padding-block: var(--section-y-sm); }
.section--alt { background: var(--color-surface-alt); }
.section--tint {
  background:
    linear-gradient(180deg, rgba(243, 245, 252, 0) 0%, rgba(243, 245, 252, 0.9) 40%, rgba(243, 245, 252, 0.9) 60%, rgba(243, 245, 252, 0) 100%);
}
.section--edge { border-top: 1px solid var(--color-border); }

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

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

@media (min-width: 768px) {
  .grid { gap: var(--space-6); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   3. Aurora background layer
   -------------------------------------------------------------------------- */
.aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: var(--z-aurora);
  pointer-events: none;
  background: var(--gradient-aurora);
  filter: blur(6px);
  opacity: 0.85;
  animation: aurora-drift 22s var(--ease-inout) infinite alternate;
  will-change: transform;
}
.aurora--soft { opacity: 0.5; animation-duration: 26s; }
/* Narrow viewports concentrate the radials, so ease off the tint there. */
@media (max-width: 767px) {
  .aurora { opacity: 0.5; }
  .aurora--soft { opacity: 0.34; }
}
.aurora-host { position: relative; overflow: hidden; isolation: isolate; }
.aurora-host > .container,
.aurora-host > * :not(.aurora) { position: relative; }

@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2.5%, 0) scale(1.04); }
}

/* Fine grid texture that reads as "premium fintech" rather than flat white */
.grid-texture {
  position: absolute;
  inset: 0;
  z-index: var(--z-aurora);
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 91, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 91, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.9rem;
  --btn-px: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  will-change: transform;
}
.btn svg { flex: none; }

.btn--primary {
  position: relative;
  background-image: var(--gradient-primary);
  color: var(--color-text-on-accent);
  box-shadow: var(--shadow-glow-mixed);
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.34) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(94, 69, 251, 0.38), var(--shadow-glow-blue);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  color: var(--color-electric-blue);
  border-color: var(--color-electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 91, 255, 0.16);
}

.btn--ghost {
  background: rgba(45, 91, 255, 0.08);
  color: var(--color-electric-blue);
}
.btn--ghost:hover { background: rgba(45, 91, 255, 0.14); color: var(--color-royal-purple); }

.btn--lg { --btn-py: 1.1rem; --btn-px: 2.2rem; font-size: var(--fs-md); }
.btn--sm { --btn-py: 0.6rem; --btn-px: 1.1rem; font-size: var(--fs-sm); }
.btn--block { display: flex; width: 100%; }

/* Slow, tasteful attention pulse on the single most important CTA */
.btn--pulse { animation: cta-pulse 2.8s var(--ease-inout) infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 40px rgba(94, 69, 251, 0.22), 0 0 0 0 rgba(123, 47, 247, 0.30); }
  50%      { box-shadow: 0 10px 46px rgba(94, 69, 251, 0.32), 0 0 0 14px rgba(123, 47, 247, 0); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.btn-note {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: var(--space-3) 0 0;
}

/* --------------------------------------------------------------------------
   5. Text & badge helpers
   -------------------------------------------------------------------------- */
.text-gradient {
  background-image: var(--gradient-flow);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-slide 9s linear infinite;
}
@keyframes gradient-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  padding: 0.4rem 0.95rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-electric-blue);
  background: rgba(45, 91, 255, 0.09);
  border: 1px solid rgba(45, 91, 255, 0.18);
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 8px rgba(123, 47, 247, 0.7);
}

.lead {
  font-size: clamp(1.02rem, 2.1vw, 1.175rem);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.section-head { max-width: 760px; margin-bottom: var(--space-10); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.badge--age {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(94, 69, 251, 0.28);
  letter-spacing: 0.02em;
}
.badge--hot { background: rgba(255, 77, 109, 0.12); color: #E23A5B; border-color: rgba(255, 77, 109, 0.24); }
.badge--new { background: rgba(22, 199, 132, 0.12); color: #0E9E68; border-color: rgba(22, 199, 132, 0.24); }

.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-weight: var(--fw-extra); }

.kw { color: var(--color-text-primary); font-weight: var(--fw-semibold); }

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.card--glass {
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card--hover:hover,
.card--hover:focus-within {
  transform: translateY(-6px);
  border-color: rgba(123, 47, 247, 0.28);
  box-shadow: var(--shadow-elevated), var(--shadow-glow-purple);
}

.card h3, .card h4 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--gradient-primary-soft);
  border: 1px solid rgba(123, 47, 247, 0.16);
  color: var(--color-royal-purple);
}
.card-icon svg { width: 26px; height: 26px; }
.card--hover:hover .card-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-mixed);
}

/* Numbered step cards */
.step-card { padding-top: var(--space-8); }
.step-num {
  position: absolute;
  top: -18px;
  left: var(--space-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-display);
  font-weight: var(--fw-extra);
  font-size: var(--fs-lg);
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 14px;
  box-shadow: var(--shadow-glow-mixed);
}
.steps { position: relative; }
@media (min-width: 1200px) {
  .steps::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 91, 255, 0.35), rgba(123, 47, 247, 0.35), transparent);
    background-size: 200% 100%;
    animation: gradient-slide 6s linear infinite;
  }
}

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  padding: var(--space-5);
  text-align: center;
  background: var(--gradient-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: var(--fw-extra);
  line-height: 1.1;
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  font-weight: var(--fw-medium);
}

/* Feature list with check marks */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-3);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(94, 69, 251, 0.3);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.42em + 5px);
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Data table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}
.data-table { min-width: 480px; font-size: var(--fs-sm); }
.data-table th,
.data-table td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.data-table thead th {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  background: var(--color-surface-alt);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--color-text-secondary); }
.data-table td:first-child { color: var(--color-text-primary); font-weight: var(--fw-medium); }

.table-scroll-hint { display: none; }

/* Below ~480px the min-width forces every table into horizontal-scroll mode
   with no visible affordance, so content just looks cut off. Narrow (2-3
   column) tables reflow and wrap instead — nothing gets hidden. Wide tables
   (4+ columns, marked .data-table--wide) can't reflow without becoming
   unreadable, so they keep the scroll wrapper but get a visible swipe hint. */
@media (max-width: 640px) {
  .data-table { min-width: 0; width: 100%; table-layout: fixed; }
  .data-table th,
  .data-table td { padding: 0.75rem 0.8rem; word-break: break-word; overflow-wrap: break-word; }
  .data-table thead th { white-space: normal; }

  .data-table--wide { min-width: 620px; table-layout: auto; }
  .data-table--wide th,
  .data-table--wide td { word-break: normal; }

  .table-wrap:has(.data-table--wide) {
    position: relative;
  }
  .table-wrap:has(.data-table--wide)::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(90deg, transparent, rgba(15, 17, 38, 0.12));
    pointer-events: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
  .table-scroll-hint {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    text-align: right;
    margin: 0 0.1rem 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   7. Brand lockup / logo
   -------------------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: #05060F;
  box-shadow: 0 4px 18px rgba(18, 20, 43, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The source asset carries dark padding around the icon — scale to fill the tile. */
  transform: scale(1.28);
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 45%);
  pointer-events: none;
}
.brand:hover .brand__mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 26px rgba(94, 69, 251, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: var(--fw-extra);
  letter-spacing: -0.03em;
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.brand__tag {
  font-size: 0.62rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .brand__mark { width: 52px; height: 52px; border-radius: 16px; }
  .brand__name { font-size: 1.35rem; }
  .brand__tag { font-size: 0.66rem; }
}

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  width: 100%;
  background: rgba(251, 252, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 30px rgba(18, 20, 43, 0.07);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 74px;
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-electric-blue); background: rgba(45, 91, 255, 0.07); }
.nav__link.is-active { color: var(--color-text-primary); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { --btn-py: 0.72rem; --btn-px: 1.25rem; font-size: var(--fs-sm); }
.header-actions .badge--age { display: none; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text-primary);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 74px 0 0 0;
  z-index: var(--z-drawer);
  padding: var(--space-6) var(--gutter) var(--space-10);
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav__list { list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid var(--color-border); }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}
.mobile-nav__list a:hover { color: var(--color-electric-blue); }
.mobile-nav__list a::after { content: "→"; color: var(--color-text-muted); font-size: var(--fs-base); }
.mobile-nav .btn { margin-bottom: var(--space-3); }
body.nav-open { overflow: hidden; }

/* Small phones: drop the header CTA so the brand and the hamburger always fit
   inside the viewport. The CTA is repeated in the drawer. */
@media (max-width: 599px) {
  .header-actions .btn--primary { display: none; }
  .header-actions { gap: 0.45rem; }
}
@media (max-width: 359px) {
  .brand__text { display: none; }
}

@media (min-width: 1000px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .header-actions .badge--age { display: inline-flex; }
  .site-header__inner { min-height: 84px; }
}

/* --------------------------------------------------------------------------
   9. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, #F6F8FF 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.page-hero__inner { position: relative; z-index: var(--z-content); max-width: 780px; margin-inline: auto; }
.page-hero h1 { margin-bottom: var(--space-4); }
.page-hero p { margin-bottom: 0; }
.page-hero .btn-row { justify-content: center; margin-top: var(--space-6); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.breadcrumb li { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--color-border-strong); }

/* --------------------------------------------------------------------------
   10. Phone mockup (hero + download page)
   -------------------------------------------------------------------------- */

/* Shared hero grid pieces: an eyebrow badge and a mobile-only CTA that sits
   directly beneath the app mockup. Both index.html and download.html reorder
   these into a two-column layout at desktop widths via their own page CSS. */
.hero__eyebrow { margin-bottom: 0; }
.hero__mobile-cta { display: block; }

.mockup {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--space-6);
}

.phone {
  position: relative;
  width: clamp(232px, 66vw, 306px);
  aspect-ratio: 9 / 18.9;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(155deg, #2A2D45 0%, #14162B 42%, #23263E 100%);
  box-shadow:
    0 34px 70px rgba(18, 20, 43, 0.32),
    0 0 0 2px rgba(255, 255, 255, 0.10) inset,
    0 0 60px rgba(94, 69, 251, 0.28);
  animation: phone-float 7s var(--ease-inout) infinite alternate;
  will-change: transform;
  z-index: 2;
}
@media (min-width: 768px) { .phone { width: clamp(268px, 30vw, 330px); } }

.phone::before {
  /* glossy rim light */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.35), transparent 38%, transparent 70%, rgba(181, 123, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 4;
}
.phone__notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 21px;
  border-radius: var(--radius-pill);
  background: #0A0B18;
  z-index: 3;
}
.phone__notch::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #46507A, #0F1020);
}
.phone__btn {
  position: absolute;
  right: -2px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3A3E5E, #1B1D33);
}
.phone__btn--power { top: 132px; height: 62px; }
.phone__btn--vol {
  right: auto;
  left: -2px;
  top: 104px;
  height: 40px;
}
.phone__btn--vol2 {
  right: auto;
  left: -2px;
  top: 152px;
  height: 40px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #0B0D1F;
  z-index: 1;
}
/* Screens cross-fade so the device looks like a live app, not a static PNG. */
.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: screen-cycle 15s var(--ease-inout) infinite;
  will-change: opacity, transform;
}
.phone__screen img:nth-child(1) { animation-delay: 0s; opacity: 1; }
.phone__screen img:nth-child(2) { animation-delay: 5s; }
.phone__screen img:nth-child(3) { animation-delay: 10s; }

@keyframes screen-cycle {
  0%   { opacity: 0; transform: scale(1.06); }
  4%   { opacity: 1; }
  30%  { opacity: 1; transform: scale(1); }
  36%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.phone__glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, transparent 60%);
  transform: translateX(-40%);
  animation: glare-sweep 7.5s var(--ease-inout) infinite;
}

@keyframes phone-float {
  0%   { transform: translateY(0) rotate(-1.1deg); }
  100% { transform: translateY(-16px) rotate(1.1deg); }
}
@keyframes glare-sweep {
  0%, 65%, 100% { transform: translateX(-60%); opacity: 0; }
  75%           { opacity: 1; }
  90%           { transform: translateX(60%); opacity: 0; }
}

/* Glow puck behind the device */
.mockup__glow {
  position: absolute;
  z-index: 1;
  width: min(420px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.28) 0%, rgba(45, 91, 255, 0.18) 45%, transparent 70%);
  filter: blur(18px);
  animation: puck-pulse 6s var(--ease-inout) infinite alternate;
}
@keyframes puck-pulse {
  0%   { transform: scale(0.92); opacity: 0.75; }
  100% { transform: scale(1.06); opacity: 1; }
}

/* Floating info chips orbiting the mockup */
.mockup__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  white-space: nowrap;
  animation: chip-float 5.5s var(--ease-inout) infinite alternate;
}
.mockup__chip small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-muted);
}
.mockup__chip i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--gradient-primary);
  color: #fff;
  font-style: normal;
  font-size: 0.8rem;
}
.mockup__chip--a { top: 12%; left: -2%; animation-delay: -1.2s; }
.mockup__chip--b { bottom: 20%; right: -2%; animation-delay: -3s; }
.mockup__chip--c { bottom: 5%; left: 4%; animation-delay: -2s; }
@media (max-width: 479px) {
  .mockup__chip--c { display: none; }
  .mockup__chip { font-size: 0.7rem; padding: 0.5rem 0.7rem; }
}
@keyframes chip-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-14px); }
}

/* --------------------------------------------------------------------------
   11. Game cards
   -------------------------------------------------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (min-width: 560px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1200px) { .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.game-card {
  position: relative;
  display: block;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  animation: tile-float 6s var(--ease-inout) infinite alternate;
}
.game-card:nth-child(4n+2) { animation-delay: -1.5s; }
.game-card:nth-child(4n+3) { animation-delay: -3s; }
.game-card:nth-child(4n+4) { animation-delay: -4.5s; }
@keyframes tile-float {
  0%   { transform: translateY(3px); }
  100% { transform: translateY(-3px); }
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(123, 47, 247, 0.3);
  box-shadow: var(--shadow-float), var(--shadow-glow-purple);
  animation-play-state: paused;
}

.game-card__media {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-sunken);
  aspect-ratio: 211 / 260;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.game-card:hover .game-card__media img { transform: scale(1.07); }

.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 13, 31, 0.15) 0%, rgba(11, 13, 31, 0.75) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.game-card:hover .game-card__overlay,
.game-card:focus-visible .game-card__overlay { opacity: 1; }
.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow-mixed);
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
}
.game-card:hover .game-card__play { transform: translateY(0); }

.game-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--radius-xs);
  background: rgba(255, 77, 109, 0.95);
  box-shadow: 0 2px 8px rgba(226, 58, 91, 0.4);
}
.game-card__tag--new { background: rgba(22, 199, 132, 0.95); box-shadow: 0 2px 8px rgba(14, 158, 104, 0.4); }

.game-card__body { display: block; padding: 0.7rem 0.35rem 0.25rem; }
.game-card__name {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}
.game-card__rating { display: inline-flex; align-items: center; gap: 0.22rem; color: var(--color-gold); font-weight: var(--fw-semibold); }
.game-card__rating svg { width: 11px; height: 11px; }
.game-card__cat { text-transform: capitalize; }

/* --------------------------------------------------------------------------
   12. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: var(--space-3); }
.acc-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.acc-item.is-open { border-color: rgba(123, 47, 247, 0.28); box-shadow: var(--shadow-card); }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.acc-trigger:hover { color: var(--color-electric-blue); }
.acc-trigger__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary-soft);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.acc-trigger__icon::before,
.acc-trigger__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-royal-purple);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.acc-trigger__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-trigger__icon { background: var(--gradient-primary); transform: rotate(180deg); }
.acc-item.is-open .acc-trigger__icon::before,
.acc-item.is-open .acc-trigger__icon::after { background: #fff; }
.acc-item.is-open .acc-trigger__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-panel {
  height: 0;
  overflow: hidden;
  transition: height var(--dur-base) var(--ease-out);
}
.acc-panel__inner { padding: 0 1.35rem 1.35rem; }
.acc-panel__inner > *:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--gradient-band);
  color: #fff;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(110, 140, 255, 0.55), transparent 45%),
    radial-gradient(circle at 78% 65%, rgba(181, 123, 255, 0.45), transparent 48%);
  animation: aurora-drift 20s var(--ease-inout) infinite alternate;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-4); }
.cta-band p { color: rgba(255, 255, 255, 0.84); }
.cta-band .btn-row { justify-content: center; margin-top: var(--space-6); }
.cta-band .btn--outline {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.cta-band .btn--outline:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: #fff; }
.cta-band .btn--primary {
  background-image: linear-gradient(135deg, #FFFFFF 0%, #E7ECFF 100%);
  color: var(--color-ink-deep);
}
.cta-band .btn--primary:hover { color: var(--color-royal-purple); }

/* --------------------------------------------------------------------------
   15. Compliance blocks
   -------------------------------------------------------------------------- */
.notice {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.notice--info { border-left-color: var(--color-electric-blue); }
.notice--danger { border-left-color: var(--color-error); }
.notice h3, .notice h4 { margin-bottom: var(--space-2); font-size: var(--fs-base); }
.notice p { margin-bottom: 0; font-size: var(--fs-sm); }

.rg-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rg-item {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.rg-item h4 { font-size: var(--fs-base); margin-bottom: var(--space-2); }
.rg-item p { font-size: var(--fs-sm); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding-top: var(--section-y);
  background: linear-gradient(180deg, #F5F7FE 0%, #EDF0FB 100%);
  border-top: 1px solid var(--color-border);
}
.footer-top {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-10);
}
@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-10); } }

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  max-width: 40ch;
}
.footer-brand .badge { margin-right: 0.4rem; margin-bottom: 0.4rem; }

.footer-col h4 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--color-electric-blue); padding-left: 4px; }

.footer-support-links { display: grid; gap: 0.6rem; }
.footer-support-links .btn { justify-content: flex-start; }

.footer-keywords {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.footer-keywords h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-keywords li { margin: 0; }
.footer-keywords span,
.footer-keywords a {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}
.footer-keywords a:hover { color: var(--color-electric-blue); border-color: rgba(45, 91, 255, 0.3); }

.footer-legal {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
}
.footer-legal p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal strong { color: var(--color-text-secondary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}
.footer-bottom p { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom li { margin: 0; }
.footer-bottom a { font-size: var(--fs-sm); color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   17. Cookie consent
   -------------------------------------------------------------------------- */
.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: var(--z-overlay);
  width: min(720px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
  opacity: 0;
  visibility: hidden;
}
.cookie-bar.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie-bar p { margin: 0; font-size: var(--fs-sm); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cookie-bar__actions .btn { flex: 1 1 auto; }
@media (min-width: 700px) {
  .cookie-bar { flex-direction: row; align-items: center; }
  .cookie-bar__actions .btn { flex: none; }
}

/* --------------------------------------------------------------------------
   18. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .phone,
  .game-card,
  .mockup__chip,
  .aurora,
  .mockup__glow,
  .phone__screen img { animation: none !important; }
  .phone__glare { display: none; }
}
