/* ==========================================================================
   3RR Game — main.css
   Shared shell: reset, layout, navbar, footer, buttons, billboard cards,
   skyline dividers, forms, accordions, marquees, utilities.
   BEM-lite: .block__element--modifier
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

html,
body {
  max-width: 100%;
  /* Hard guarantee: the page never scrolls or drifts sideways. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  color: var(--color-text-secondary);
  background-color: var(--color-night-sky);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* The permanent night sky behind every page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 70% at 50% 104%, rgba(44, 94, 232, 0.34) 0%, rgba(44, 94, 232, 0) 62%),
    radial-gradient(80% 45% at 12% 8%, rgba(30, 79, 208, 0.16) 0%, rgba(30, 79, 208, 0) 70%),
    linear-gradient(180deg, var(--color-night-sky) 0%, #070C1B 38%, var(--color-navy-panel) 74%, #0E1E3E 100%);
  pointer-events: none;
}

/* Faint star / far-window field. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 14%, rgba(154, 246, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(238, 243, 255, 0.42) 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 26%, rgba(78, 118, 242, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 33%, rgba(154, 246, 255, 0.32) 50%, transparent 51%),
    radial-gradient(1px 1px at 89% 21%, rgba(238, 243, 255, 0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 6%, rgba(238, 243, 255, 0.36) 50%, transparent 51%);
}

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

img {
  height: auto;
}

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

a {
  color: var(--color-cyan-neon);
  text-decoration-color: rgba(36, 235, 255, 0.4);
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-cyan-soft);
}

ul,
ol {
  padding-left: 1.15rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--space-lg) 0;
}

::selection {
  background: rgba(36, 235, 255, 0.28);
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5,
h6 { font-size: var(--fs-body); }

p {
  margin: 0 0 var(--space-sm);
}

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

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

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

.lead {
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--color-text-secondary);
}

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.text-gold { color: var(--color-gold); }
.text-cyan { color: var(--color-cyan-neon); }
.text-bright { color: var(--color-text-primary); }

/* Keyword-bearing inline emphasis used through the body copy. */
.kw {
  color: var(--color-text-primary);
  font-weight: 600;
}

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

.shell--wide {
  max-width: calc(var(--shell-wide) + var(--gutter) * 2);
}

.shell--narrow {
  max-width: calc(760px + var(--gutter) * 2);
}

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

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.section--flush-top {
  padding-top: 0;
}

.section__head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

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

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-xs);
  padding: 0.34rem 0.85rem;
  border: 1px solid rgba(36, 235, 255, 0.28);
  border-radius: 999px;
  background: rgba(36, 235, 255, 0.07);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cyan-soft);
}

.section__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-neon);
  box-shadow: 0 0 8px var(--color-cyan-neon);
}

.section__title {
  margin-bottom: var(--space-sm);
  font-size: var(--fs-h2);
}

.section__sub {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Long-form prose blocks used to give every page real editorial depth. */
.prose > * + * {
  margin-top: var(--space-sm);
}

.prose h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xs);
}

.prose h4 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-3xs);
  color: var(--color-cyan-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}

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

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

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-cyan-neon);
  color: #041018;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur-mid) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #041018;
}

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

:focus-visible {
  outline: 3px solid var(--color-cyan-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   5. Buttons — the signature "neon flicker-on"
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

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

.btn__icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.btn--primary {
  /* Every stop stays light enough for the dark button label to clear AA. */
  background-image: linear-gradient(120deg, var(--color-sapphire-light) 0%, var(--color-cyan-neon) 58%, var(--color-cyan-soft) 100%);
  color: #04121C;
  box-shadow: 0 8px 26px rgba(30, 79, 208, 0.42), var(--shadow-glow-cyan);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #04121C;
  box-shadow: 0 12px 34px rgba(30, 79, 208, 0.5), 0 0 48px rgba(36, 235, 255, 0.55);
}

.btn--gold {
  background-image: linear-gradient(120deg, var(--color-gold-deep) 0%, var(--color-gold) 48%, var(--color-gold-soft) 100%);
  color: #21140A;
  box-shadow: 0 8px 26px rgba(227, 154, 23, 0.36), var(--shadow-glow-gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  color: #21140A;
  box-shadow: 0 12px 34px rgba(227, 154, 23, 0.44), 0 0 48px rgba(255, 196, 81, 0.5);
}

.btn--secondary {
  background: rgba(36, 235, 255, 0.05);
  border: 1px solid rgba(36, 235, 255, 0.45);
  color: var(--color-cyan-soft);
  box-shadow: inset 0 0 22px rgba(36, 235, 255, 0.08);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(36, 235, 255, 0.12);
  border-color: var(--color-cyan-neon);
  color: var(--color-cyan-soft);
  box-shadow: inset 0 0 26px rgba(36, 235, 255, 0.14), 0 0 26px rgba(36, 235, 255, 0.28);
}

.btn--ghost {
  background: rgba(238, 243, 255, 0.04);
  border: 1px solid var(--color-line);
  color: var(--color-text-primary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(238, 243, 255, 0.09);
  border-color: var(--color-line-strong);
  color: var(--color-text-primary);
}

.btn--lg { padding: 1.08rem 2rem; font-size: 0.95rem; }
.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.76rem; }
.btn--block { display: flex; width: 100%; }

/* Signature flicker: 2-3 quick opacity blips, then a steady neon glow. */
.btn--flicker::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  filter: blur(11px);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.btn--flicker.is-lit::after { animation: neon-flicker 900ms steps(1, end) 1 forwards; }
.btn--flicker:hover::after,
.btn--flicker:focus-visible::after { animation: neon-flicker 640ms steps(1, end) 1 forwards; }

@keyframes neon-flicker {
  0%   { opacity: 0; }
  8%   { opacity: 0.85; }
  14%  { opacity: 0.05; }
  24%  { opacity: 0.95; }
  30%  { opacity: 0.1; }
  42%  { opacity: 0.8; }
  48%  { opacity: 0.25; }
  100% { opacity: 0.62; }
}

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

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

/* --------------------------------------------------------------------------
   6. Telegram buttons — real Telegram mark, storefront-sign treatment
   -------------------------------------------------------------------------- */
.tg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.6rem 1.2rem 0.6rem 0.6rem;
  border: 1px solid rgba(41, 171, 226, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(41, 171, 226, 0.18) 0%, rgba(11, 23, 48, 0.9) 62%);
  color: var(--color-text-primary);
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), inset 0 0 24px rgba(41, 171, 226, 0.1);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.tg-btn:hover,
.tg-btn:focus-visible {
  transform: translateY(-2px);
  border-color: #29ABE2;
  color: var(--color-text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(41, 171, 226, 0.42);
}

.tg-btn__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #37BBFE 0%, #007DBB 100%);
  box-shadow: 0 0 18px rgba(41, 171, 226, 0.55);
}

.tg-btn__mark svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #fff;
}

.tg-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.25;
  text-align: left;
}

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

.tg-btn__meta {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7FD3F5;
}

.tg-btn--sign {
  padding: 0.9rem 1.35rem 0.9rem 0.9rem;
  border-radius: var(--radius-md);
}

.tg-btn--sign::after {
  content: '';
  position: absolute;
  inset: auto 18% -7px 18%;
  height: 10px;
  border-radius: 50%;
  background: rgba(41, 171, 226, 0.4);
  filter: blur(9px);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Navbar — glass bar beneath a thin skyline strip
   -------------------------------------------------------------------------- */
.skystrip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--skyline-strip-h);
  z-index: calc(var(--z-nav) + 1);
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='18' viewBox='0 0 420 18'%3E%3Cpath fill='%230A1226' d='M0 18V8h10V4h8v4h12v-6h9v6h14v9h11V6h10v5h13V2h8v9h12v7h10V7h9v4h14v-8h8v8h13v7h12V5h9v6h13V0h8v11h12v7h11V8h9v3h14v-6h8v6h12v7h11V6h10v5h13V1h8v10h12v7h11V9h9v2h13v-5h8v5h12v7h10V7h9v4h14v-6h8v6h13v7z'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: var(--skyline-strip-h);
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  border-bottom: 1px solid rgba(147, 166, 204, 0.1);
  background: rgba(5, 7, 15, 0.58);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.nav.is-stuck {
  background: rgba(5, 7, 15, 0.9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.52);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  height: 100%;
  width: 100%;
  max-width: calc(var(--shell-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo — rendered completely unmodified. No filter, recolor or overlay ever
   touches the image; only the space around it carries ambient glow. */
.nav__brand {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav__brand::before {
  content: '';
  position: absolute;
  inset: -22% -14%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(58% 68% at 50% 55%, rgba(255, 196, 81, 0.24) 0%, rgba(255, 196, 81, 0) 72%);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
  opacity: 0.85;
}

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

.nav__logo {
  width: auto;
  height: 38px;
}

.nav__links { display: none; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: rgba(17, 33, 63, 0.65);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-cyan-neon);
  box-shadow: 0 0 8px rgba(36, 235, 255, 0.7);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

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

.nav__drawer {
  position: fixed;
  top: calc(var(--nav-h) + var(--skyline-strip-h));
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) - 1);
  max-height: calc(100dvh - var(--nav-h) - var(--skyline-strip-h));
  overflow-y: auto;
  padding: var(--space-md) var(--gutter) var(--space-lg);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    opacity var(--dur-mid) var(--ease-out),
    visibility var(--dur-mid);
}

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

.nav__drawer-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav__drawer-link:hover {
  background: rgba(36, 235, 255, 0.07);
  border-color: rgba(36, 235, 255, 0.22);
  color: var(--color-text-primary);
}

.nav__drawer-link[aria-current='page'] {
  background: rgba(36, 235, 255, 0.1);
  border-color: rgba(36, 235, 255, 0.35);
  color: var(--color-cyan-soft);
}

.nav__drawer-foot { display: grid; gap: var(--space-2xs); }

@media (min-width: 768px) {
  .nav__logo { height: 44px; }
  .nav__cta { display: inline-flex; }
}

@media (min-width: 1200px) {
  .nav__logo { height: 50px; }

  .nav__links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav__link {
    position: relative;
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
  }

  .nav__link::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.22rem;
    height: 2px;
    border-radius: 2px;
    background: var(--color-cyan-neon);
    box-shadow: 0 0 10px var(--color-cyan-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-mid) var(--ease-out);
  }

  .nav__link:hover,
  .nav__link[aria-current='page'] { color: var(--color-text-primary); }

  .nav__link:hover::after,
  .nav__link[aria-current='page']::after { transform: scaleX(1); }

  .nav__toggle,
  .nav__drawer { display: none; }
}

/* --------------------------------------------------------------------------
   8. Page top spacing (content clears the fixed bar)
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--skyline-strip-h));
}

/* --------------------------------------------------------------------------
   9. Billboard card — glass panel with corner mount brackets
   -------------------------------------------------------------------------- */
.billboard {
  position: relative;
  padding: var(--space-md);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(17, 33, 63, 0.9) 0%, rgba(11, 23, 48, 0.86) 55%, rgba(7, 14, 32, 0.9) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

/* Faint diagonal sheen, like glass catching a distant sign. */
.billboard::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(78, 118, 242, 0.1) 0%, rgba(78, 118, 242, 0) 38%, rgba(36, 235, 255, 0.06) 100%);
}

/* Corner mount brackets — the theme's structural signature. */
.billboard__mount {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(36, 235, 255, 0.4);
  pointer-events: none;
}

.billboard__mount::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-cyan-neon);
  box-shadow: 0 0 7px var(--color-cyan-neon);
}

.billboard__mount--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.billboard__mount--tl::after { top: -2px; left: -2px; }
.billboard__mount--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.billboard__mount--tr::after { top: -2px; right: -2px; }
.billboard__mount--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.billboard__mount--bl::after { bottom: -2px; left: -2px; }
.billboard__mount--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.billboard__mount--br::after { bottom: -2px; right: -2px; }

.billboard:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 235, 255, 0.34);
  box-shadow: var(--shadow-card), 0 0 34px rgba(36, 235, 255, 0.16);
}

.billboard--flat:hover { transform: none; }

.billboard--pad-lg { padding: var(--space-lg); }

.billboard__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(36, 235, 255, 0.3);
  border-radius: 14px;
  background: radial-gradient(80% 80% at 50% 20%, rgba(36, 235, 255, 0.2) 0%, rgba(36, 235, 255, 0.02) 70%);
  color: var(--color-cyan-neon);
  box-shadow: inset 0 0 20px rgba(36, 235, 255, 0.12);
}

.billboard__icon svg { width: 1.5rem; height: 1.5rem; }

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

.billboard__text {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.billboard--gold { border-color: rgba(255, 196, 81, 0.28); }
.billboard--gold .billboard__icon {
  border-color: rgba(255, 196, 81, 0.36);
  background: radial-gradient(80% 80% at 50% 20%, rgba(255, 196, 81, 0.2) 0%, rgba(255, 196, 81, 0.02) 70%);
  color: var(--color-gold);
  box-shadow: inset 0 0 20px rgba(255, 196, 81, 0.12);
}
.billboard--gold .billboard__mount { border-color: rgba(255, 196, 81, 0.42); }
.billboard--gold .billboard__mount::after {
  background: var(--color-gold);
  box-shadow: 0 0 7px var(--color-gold);
}

/* --------------------------------------------------------------------------
   10. Grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-sm);
}

.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-md); }
  .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(2, 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)); }
}

/* --------------------------------------------------------------------------
   11. Skyline dividers — the site's only section separator
   -------------------------------------------------------------------------- */
.skydiv {
  position: relative;
  height: 92px;
  margin-top: calc(var(--section-y) * -0.35);
  overflow: hidden;
  pointer-events: none;
}

.skydiv__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: radial-gradient(60% 100% at 50% 118%, rgba(44, 94, 232, 0.45) 0%, rgba(44, 94, 232, 0) 70%);
}

.skydiv__layer {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 100%;
  background-repeat: repeat-x;
  background-position: bottom left;
  will-change: transform;
}

.skydiv__layer--far {
  height: 52px;
  opacity: 0.5;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='52' viewBox='0 0 600 52'%3E%3Cpath fill='%230C1834' d='M0 52V30h14v-9h10v9h18v-14h12v14h16v22h14V26h11v6h20v-16h11v16h18v20h13V22h12v10h19v-20h11v20h17v20h15V28h12v6h18v-12h12v12h16v18h14V24h11v8h21v-14h11v14h18v20h12V30h13v4h18v-10h12v10h17v18z'/%3E%3C/svg%3E");
}

.skydiv__layer--mid {
  height: 72px;
  opacity: 0.82;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='72' viewBox='0 0 700 72'%3E%3Cpath fill='%230A1226' d='M0 72V44h18v-12h14v12h22v-20h16v20h20v28h18V38h14v8h24v-22h15v22h22v26h16V32h15v12h24v-26h14v26h21v26h19V40h15v8h22v-16h15v16h20v24h18V34h14v10h26v-18h14v18h22v26h16V44h16v6h22v-14h15v14h21v22z'/%3E%3C/svg%3E");
}

.skydiv__layer--near {
  height: 92px;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='92' viewBox='0 0 800 92'%3E%3Cpath fill='%23070E20' d='M0 92V60h22v-16h18v16h26v-26h20v26h24v32h22V52h18v10h28v-28h19v28h26v30h20V44h19v16h28v-32h18v32h25v32h23V56h19v10h26v-20h19v20h24v26h22V46h18v14h30v-24h18v24h26v32h20V60h20v8h26v-18h19v18h25v24z'/%3E%3C/svg%3E");
}

/* Window lights scattered over the near layer. */
.skydiv__windows {
  position: absolute;
  inset: auto 0 0 0;
  height: 92px;
  opacity: 0.85;
  background-image:
    radial-gradient(1.5px 1.5px at 6% 62%, var(--color-sapphire-light) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 48%, var(--color-cyan-neon) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 23% 70%, var(--color-sapphire-light) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 31% 55%, var(--color-gold) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 66%, var(--color-sapphire-light) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 53% 44%, var(--color-cyan-neon) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 61% 72%, var(--color-sapphire-light) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 58%, var(--color-gold) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 79% 68%, var(--color-sapphire-light) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 50%, var(--color-cyan-neon) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 95% 66%, var(--color-sapphire-light) 50%, transparent 51%);
  animation: window-twinkle 6.5s ease-in-out infinite;
}

@keyframes window-twinkle {
  0%, 100% { opacity: 0.8; }
  22% { opacity: 0.42; }
  47% { opacity: 0.95; }
  68% { opacity: 0.55; }
}

.skydiv--flip { transform: scaleY(-1); }

/* --------------------------------------------------------------------------
   12. Searchlight beams
   -------------------------------------------------------------------------- */
.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.beams__ray {
  position: absolute;
  bottom: -14%;
  left: 50%;
  width: 46vw;
  max-width: 620px;
  height: 130%;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(78, 118, 242, 0.24) 0%, rgba(78, 118, 242, 0.05) 45%, rgba(78, 118, 242, 0) 78%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0%, 0% 0%);
  filter: blur(6px);
  will-change: transform;
}

.beams__ray--a {
  left: 16%;
  animation: beam-sweep-a 21s var(--ease-in-out) infinite;
}

.beams__ray--b {
  left: 74%;
  background: linear-gradient(to top, rgba(36, 235, 255, 0.2) 0%, rgba(36, 235, 255, 0.04) 45%, rgba(36, 235, 255, 0) 78%);
  animation: beam-sweep-b 27s var(--ease-in-out) infinite;
}

@keyframes beam-sweep-a {
  0%, 100% { transform: translateX(-50%) rotate(-19deg); opacity: 0.65; }
  50% { transform: translateX(-50%) rotate(15deg); opacity: 0.95; }
}

@keyframes beam-sweep-b {
  0%, 100% { transform: translateX(-50%) rotate(17deg); opacity: 0.55; }
  50% { transform: translateX(-50%) rotate(-13deg); opacity: 0.9; }
}

/* --------------------------------------------------------------------------
   13. Reveal on scroll — billboards "power on" with a flicker
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

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

[data-reveal='power'] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal='power'].is-visible {
  transform: none;
  animation: power-on 620ms steps(1, end) forwards;
}

@keyframes power-on {
  0%   { opacity: 0; filter: brightness(0.4); }
  18%  { opacity: 1; filter: brightness(1.6); }
  26%  { opacity: 0.15; filter: brightness(0.5); }
  42%  { opacity: 1; filter: brightness(1.35); }
  52%  { opacity: 0.35; filter: brightness(0.7); }
  70%  { opacity: 1; filter: brightness(1.12); }
  100% { opacity: 1; filter: brightness(1); }
}

/* Stagger helpers */
[data-reveal-delay='1'] { transition-delay: 70ms; animation-delay: 70ms; }
[data-reveal-delay='2'] { transition-delay: 140ms; animation-delay: 140ms; }
[data-reveal-delay='3'] { transition-delay: 210ms; animation-delay: 210ms; }
[data-reveal-delay='4'] { transition-delay: 280ms; animation-delay: 280ms; }
[data-reveal-delay='5'] { transition-delay: 350ms; animation-delay: 350ms; }
[data-reveal-delay='6'] { transition-delay: 420ms; animation-delay: 420ms; }

/* --------------------------------------------------------------------------
   14. Chips — small illuminated shopfront signs
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(11, 23, 48, 0.75);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.chip svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--color-cyan-neon);
}

.chip--lit {
  border-color: rgba(36, 235, 255, 0.32);
  color: var(--color-text-primary);
  box-shadow: 0 0 18px rgba(36, 235, 255, 0.14), inset 0 0 14px rgba(36, 235, 255, 0.06);
}

.chip--gold {
  border-color: rgba(255, 196, 81, 0.34);
  color: var(--color-gold-soft);
  box-shadow: 0 0 18px rgba(255, 196, 81, 0.14);
}

.chip--gold svg { fill: var(--color-gold); }

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

/* --------------------------------------------------------------------------
   15. Ticker marquee — digital sign band
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  padding-block: var(--space-sm);
  border-block: 1px solid var(--color-line);
  background:
    linear-gradient(180deg, rgba(17, 33, 63, 0.7) 0%, rgba(7, 14, 32, 0.85) 100%);
  overflow: hidden;
}

.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 10vw, 130px);
  z-index: 2;
  pointer-events: none;
}

.ticker::before { left: 0; background: linear-gradient(90deg, var(--color-night-sky), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--color-night-sky), transparent); }

.ticker__track {
  display: flex;
  width: max-content;
  gap: var(--space-sm);
  animation: ticker-scroll 46s linear infinite;
  will-change: transform;
}

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

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

.ticker__item {
  flex: none;
  width: min(84vw, 340px);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.7);
}

.ticker__quote {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-sm);
  line-height: 1.66;
  color: var(--color-text-secondary);
}

.ticker__who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.ticker__avatar {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-sapphire-tower), var(--color-cyan-neon));
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #04121C;
}

.ticker__name {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.ticker__stars {
  margin-left: auto;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

/* --------------------------------------------------------------------------
   16. Game tile — a lit storefront down a neon street
   -------------------------------------------------------------------------- */
.tile {
  position: relative;
  /* Flex column so the artwork keeps its ratio and the label sits under it. */
  display: flex;
  flex-direction: column;
  flex: none;
  width: 122px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.8);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(36, 235, 255, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 30px rgba(36, 235, 255, 0.22);
}

.tile__media {
  position: relative;
  display: block;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: var(--color-silhouette);
}

.tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.tile:hover .tile__img { transform: scale(1.06); }

/* Storefront light spill under the awning. */
.tile__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0) 0%, rgba(5, 7, 15, 0.85) 78%, rgba(5, 7, 15, 0.96) 100%);
  pointer-events: none;
}

.tile__body {
  position: relative;
  display: block;
  z-index: 1;
  padding: 0.6rem 0.7rem 0.75rem;
  margin-top: -2.6rem;
}

.tile__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.9rem;
}

.tile__cat {
  display: block;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cyan-neon);
}

.tile__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.16rem 0.45rem;
  border-radius: 5px;
  background: rgba(5, 7, 15, 0.78);
  border: 1px solid rgba(255, 196, 81, 0.45);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .tile { width: 142px; }
  .tile__name { font-size: 0.79rem; }
}

@media (min-width: 1200px) {
  .tile { width: 156px; }
}

/* --------------------------------------------------------------------------
   17. Horizontal strip / carousel
   -------------------------------------------------------------------------- */
.strip {
  position: relative;
}

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

.strip__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--fs-h3);
}

.strip__title::before {
  content: '';
  width: 3px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--color-cyan-neon);
  box-shadow: 0 0 12px var(--color-cyan-neon);
}

.strip__nav {
  display: none;
  gap: 0.4rem;
}

.strip__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(17, 33, 63, 0.75);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.strip__btn:hover:not(:disabled) {
  border-color: rgba(36, 235, 255, 0.5);
  background: rgba(36, 235, 255, 0.12);
}

.strip__btn:disabled { opacity: 0.35; cursor: default; }
.strip__btn svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

.strip__track {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: var(--space-xs);
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 235, 255, 0.4) transparent;
}

.strip__track > * { scroll-snap-align: start; }

.strip__track::-webkit-scrollbar { height: 6px; }
.strip__track::-webkit-scrollbar-track { background: rgba(147, 166, 204, 0.08); border-radius: 999px; }
.strip__track::-webkit-scrollbar-thumb {
  background: rgba(36, 235, 255, 0.4);
  border-radius: 999px;
}

@media (min-width: 768px) {
  .strip__nav { display: flex; }
}

/* --------------------------------------------------------------------------
   18. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { display: grid; gap: 0.6rem; }

.accordion__item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 48, 0.72);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.accordion__item.is-open {
  border-color: rgba(36, 235, 255, 0.3);
  background: rgba(17, 33, 63, 0.85);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--color-text-primary);
  cursor: pointer;
}

.accordion__mark {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(36, 235, 255, 0.35);
  border-radius: 50%;
}

.accordion__mark::before,
.accordion__mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.65rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-cyan-neon);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.accordion__mark::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__item.is-open .accordion__mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

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

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

.accordion__inner {
  overflow: hidden;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.accordion__inner > div { padding: 0 1.1rem 1.1rem; }
.accordion__inner p + p { margin-top: 0.7rem; }

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 0.4rem; margin-bottom: var(--space-sm); }

.field__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.field__control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 15, 0.6);
  color: var(--color-text-primary);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

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

.field__control:focus {
  outline: none;
  border-color: rgba(36, 235, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(36, 235, 255, 0.16);
}

.field__control:focus-visible { outline: none; }

textarea.field__control { min-height: 140px; resize: vertical; line-height: 1.7; }

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

.form__status {
  margin-top: var(--space-sm);
  padding: 0.75rem 1rem;
  border: 1px solid rgba(47, 224, 166, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(47, 224, 166, 0.08);
  font-size: var(--fs-sm);
  color: var(--color-success);
}

.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   20. Notes & compliance callouts
   -------------------------------------------------------------------------- */
.note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-cyan-neon);
  border-radius: var(--radius-sm);
  background: rgba(17, 33, 63, 0.6);
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--color-text-secondary);
}

.note__icon { flex: none; width: 1.3rem; height: 1.3rem; fill: var(--color-cyan-neon); margin-top: 0.2rem; }
.note--warn { border-left-color: var(--color-warning); }
.note--warn .note__icon { fill: var(--color-warning); }
.note--gold { border-left-color: var(--color-gold); }
.note--gold .note__icon { fill: var(--color-gold); }

/* --------------------------------------------------------------------------
   21. Phone mockup on a hologram pad (home hero + download hero)
   -------------------------------------------------------------------------- */
.holo {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  padding-bottom: 2.5rem;
  perspective: 1200px;
}

/* Light-pad the device is projected from. */
.holo__pad {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(84%, 360px);
  aspect-ratio: 3 / 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(36, 235, 255, 0.55) 0%, rgba(36, 235, 255, 0.18) 42%, rgba(36, 235, 255, 0) 74%);
  filter: blur(2px);
  animation: pad-pulse 4.6s var(--ease-in-out) infinite;
  pointer-events: none;
}

.holo__pad::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 62%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(154, 246, 255, 0.5);
  box-shadow: 0 0 26px rgba(36, 235, 255, 0.5), inset 0 0 22px rgba(36, 235, 255, 0.35);
}

@keyframes pad-pulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Projection beam rising off the pad. */
.holo__beam {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  width: min(78%, 330px);
  height: 88%;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(36, 235, 255, 0.22) 0%, rgba(36, 235, 255, 0.07) 42%, rgba(36, 235, 255, 0) 82%);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0%, 0% 0%);
  filter: blur(8px);
  pointer-events: none;
  animation: beam-breathe 5.4s var(--ease-in-out) infinite;
}

@keyframes beam-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

/* The device itself. */
.phone {
  position: relative;
  z-index: 2;
  width: var(--phone-w, 240px);
  padding: 9px;
  border-radius: 34px;
  background:
    linear-gradient(150deg, #2A3A5C 0%, #0D1A33 26%, #060B18 52%, #16233F 78%, #33456B 100%);
  box-shadow:
    0 0 0 1px rgba(154, 246, 255, 0.18),
    0 30px 60px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(36, 235, 255, 0.22);
  transform-style: preserve-3d;
  animation: phone-rise 1500ms var(--ease-out) both, phone-float 7s var(--ease-in-out) 1500ms infinite;
  will-change: transform;
}

@keyframes phone-rise {
  0% { opacity: 0; transform: translateY(70px) rotateX(22deg) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-0.5deg); }
}

.phone__screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #05070F;
  aspect-ratio: 620 / 1307;
}

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

/* Notch / dynamic island */
.phone__notch {
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 3;
  width: 34%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #04060E;
  box-shadow: inset 0 0 0 1px rgba(154, 246, 255, 0.12);
}

.phone__notch::after {
  content: '';
  position: absolute;
  right: 16%;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4E76F2, #0A1226);
}

/* Side buttons */
.phone__side {
  position: absolute;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3A4E78, #16233F);
}

.phone__side--a { left: -2px; top: 20%; height: 6%; }
.phone__side--b { left: -2px; top: 30%; height: 10%; }
.phone__side--c { right: -2px; top: 26%; height: 13%; }

/* Glass sheen sweeping across the screen. */
.phone__glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 32%, rgba(190, 235, 255, 0.16) 46%, rgba(255, 255, 255, 0) 60%);
  background-size: 260% 100%;
  animation: glare-sweep 7.5s var(--ease-in-out) 1.6s infinite;
}

@keyframes glare-sweep {
  0%, 62% { background-position: 130% 0; }
  100% { background-position: -60% 0; }
}

/* Hologram scanlines over the device. */
.phone__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  border-radius: 26px;
  background: repeating-linear-gradient(
    180deg,
    rgba(154, 246, 255, 0.5) 0px,
    rgba(154, 246, 255, 0.5) 1px,
    transparent 1px,
    transparent 4px
  );
  animation: scan-drift 5s linear infinite;
}

@keyframes scan-drift {
  from { background-position: 0 0; }
  to { background-position: 0 40px; }
}

/* Floating spec pills that orbit the device on wide screens. */
.holo__pill {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(36, 235, 255, 0.32);
  border-radius: 999px;
  background: rgba(7, 14, 32, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(36, 235, 255, 0.16);
  white-space: nowrap;
  animation: pill-drift 6s var(--ease-in-out) infinite;
}

.holo__pill svg { width: 0.9rem; height: 0.9rem; fill: var(--color-cyan-neon); }
.holo__pill--a { top: 12%; left: -4%; animation-delay: 0.3s; }
.holo__pill--b { top: 44%; right: -6%; animation-delay: 1.4s; }
.holo__pill--c { bottom: 20%; left: -7%; animation-delay: 2.5s; }

@keyframes pill-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (min-width: 768px) {
  .phone { --phone-w: 262px; }
}

@media (min-width: 1200px) {
  .phone { --phone-w: 292px; }
  .holo__pill { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   22. CTA banner (shared across pages)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
  border-block: 1px solid var(--color-line);
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.4) 0%, rgba(11, 23, 48, 0.7) 55%, rgba(44, 94, 232, 0.22) 100%);
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  justify-items: center;
}

.cta-band__title {
  margin: 0;
  font-size: var(--fs-h2);
  max-width: 22ch;
}

.cta-band__text {
  max-width: 62ch;
  margin: 0;
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
}

.cta-band__micro {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  max-width: 62ch;
}

@media (min-width: 1200px) {
  .cta-band__inner { justify-items: center; }
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: var(--space-2xl);
  padding-top: 96px;
  border-top: 1px solid rgba(147, 166, 204, 0.08);
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.2) 0%, rgba(4, 6, 13, 0.94) 42%, #03050C 100%);
  color: var(--color-text-secondary);
  overflow: hidden;
}

/* Skyline silhouette across the top edge of the footer. */
.footer__skyline {
  position: absolute;
  top: 0;
  left: -4%;
  right: -4%;
  height: 96px;
  pointer-events: none;
}

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

.footer__brand-logo {
  width: auto;
  height: 46px;
  margin-bottom: var(--space-sm);
}

.footer__brand-wrap {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.4rem;
}

.footer__brand-wrap::before {
  content: '';
  position: absolute;
  inset: -20% -12%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(58% 68% at 50% 55%, rgba(255, 196, 81, 0.2) 0%, rgba(255, 196, 81, 0) 72%);
  pointer-events: none;
}

.footer__about {
  max-width: 42ch;
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.footer__col-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}

.footer__link:hover {
  color: var(--color-cyan-soft);
  padding-left: 4px;
}

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

.footer__legal {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-line);
}

.footer__age {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border: 2px solid var(--color-danger);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-danger);
}

.footer__disclaimer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.footer__disclaimer p { max-width: 92ch; }

.footer__restrict {
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 192, 103, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 192, 103, 0.06);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--color-warning);
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0 var(--space-lg);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__bar-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__bar-links a:hover { color: var(--color-cyan-soft); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-lg); }
}

@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: 1.55fr 1fr 1fr 1.25fr; }
}

/* --------------------------------------------------------------------------
   24. Cookie / consent banner
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 0.9rem;
  z-index: var(--z-overlay);
  width: min(100% - 1.6rem, 940px);
  transform: translate(-50%, 140%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-md);
  background: var(--color-glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-slow) var(--ease-out);
}

.consent.is-shown { transform: translate(-50%, 0); }

.consent__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

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

/* --------------------------------------------------------------------------
   25. Sticky mobile CTA bar
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-line-strong);
  background: var(--color-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(110%);
  transition: transform var(--dur-mid) var(--ease-out);
}

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

.sticky-cta__info {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.sticky-cta__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.sticky-cta__meta {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

@media (min-width: 1200px) {
  .sticky-cta { display: none; }
}

/* --------------------------------------------------------------------------
   26. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(0.9rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 2rem);
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(36, 235, 255, 0.35);
  border-radius: 50%;
  background: rgba(11, 23, 48, 0.9);
  color: var(--color-cyan-neon);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    visibility var(--dur-mid),
    box-shadow var(--dur-mid) var(--ease-out);
}

.to-top.is-shown { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: 0 0 26px rgba(36, 235, 255, 0.4); }
.to-top svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* Keep the back-to-top clear of the sticky CTA bar. */
body:has(.sticky-cta.is-shown) .to-top { bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 1200px) {
  body:has(.sticky-cta.is-shown) .to-top { bottom: clamp(0.9rem, 3vw, 2rem); }
}

/* --------------------------------------------------------------------------
   27. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  align-items: center;
  margin-bottom: var(--space-sm);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.crumbs li { display: flex; align-items: center; gap: 0.55rem; }
.crumbs li + li::before { content: '/'; color: var(--color-text-muted); opacity: 0.6; }
.crumbs a { color: var(--color-text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--color-cyan-soft); }
.crumbs [aria-current='page'] { color: var(--color-cyan-soft); }

/* --------------------------------------------------------------------------
   28. Reduced motion — everything falls back to a static state
   -------------------------------------------------------------------------- */
@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],
  [data-reveal='power'] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .phone {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .phone__glare,
  .phone__scan,
  .beams,
  .skydiv__windows,
  .holo__beam { display: none; }

  .holo__pad { opacity: 0.8; }
  .ticker__track { animation: none; transform: none; }
  .btn--flicker::after { animation: none !important; opacity: 0.5; }
}

/* --------------------------------------------------------------------------
   29. Canvas skyline host + hologram tilt wrapper
   -------------------------------------------------------------------------- */
.skyline {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.skyline__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.skyline--bottom {
  top: auto;
  height: min(58%, 420px);
  bottom: 0;
}

/* The tilt wrapper carries pointer parallax so .phone keeps its own
   rise + float keyframes without the two transforms fighting. */
.holo__tilt {
  transform: perspective(1150px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 120ms linear;
  will-change: transform;
}

.holo.is-projected .holo__pad { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .holo__tilt { transform: none !important; }
}

/* --------------------------------------------------------------------------
   30. Terrace railing — foreground silhouette for rooftop sections
   -------------------------------------------------------------------------- */
.railing {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 64px;
  z-index: 3;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64' viewBox='0 0 240 64'%3E%3Cg fill='%23040610'%3E%3Crect y='52' width='240' height='12'/%3E%3Crect y='6' width='240' height='5' rx='2'/%3E%3Crect y='26' width='240' height='3'/%3E%3Crect x='6' y='6' width='4' height='48'/%3E%3Crect x='46' y='6' width='4' height='48'/%3E%3Crect x='86' y='6' width='4' height='48'/%3E%3Crect x='126' y='6' width='4' height='48'/%3E%3Crect x='166' y='6' width='4' height='48'/%3E%3Crect x='206' y='6' width='4' height='48'/%3E%3C/g%3E%3Cg fill='%232C5EE8' opacity='0.35'%3E%3Crect y='4' width='240' height='2' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

.railing::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 22px;
  background: linear-gradient(180deg, rgba(4, 6, 16, 0) 0%, rgba(4, 6, 16, 0.9) 100%);
}

/* --------------------------------------------------------------------------
   31. Inline icon sizing — every raw <svg> we inject needs an explicit box
   -------------------------------------------------------------------------- */
.btn > svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
}

.note > svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.22rem;
  fill: var(--color-cyan-neon);
}

.note--warn > svg { fill: var(--color-warning); }
.note--gold > svg { fill: var(--color-gold); }

.tg-btn__mark > svg { width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   32. Overflow discipline
   Grid and flex children default to min-width:auto, which lets a wide
   scroll-strip push its container past the viewport. Nothing on this site
   is allowed to widen the page, so every layout child is pinned to zero
   minimum and every strip is capped at the width it is given.
   -------------------------------------------------------------------------- */
.grid > *,
.blocks > *,
.az__rows > *,
.lobbies > *,
.gd-body__grid > *,
.shopfronts > *,
.principles > *,
.readouts > *,
.landmarks > *,
.route > *,
.req > * {
  min-width: 0;
}

.strip,
.strip__track,
.ticker {
  min-width: 0;
  max-width: 100%;
}

.strip__track {
  /* An explicit scroll container never contributes its content width. */
  contain: layout;
}
