/* DareZone website — the one-page site: the night sky, the header, the tab
   bar copied from the app's own (lib/widgets/home/home_bottom_nav.dart), the
   five tabs, and the motion. Loaded after site.css, which holds the tokens,
   type, wordmark, buttons, phone frame and question card. Logical properties
   throughout, so one sheet serves Arabic (RTL) and English (LTR). Every
   moving part stops for prefers-reduced-motion (end of this file and of
   site.css). */

:root {
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tb-h: 66px;
  --tb-space: calc(var(--tb-h) + 40px + env(safe-area-inset-bottom, 0px));
}

/* ---------- the night sky ---------- */

body.one {
  background: #0a0614;
  overflow-x: clip;
}

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

.sky .glow {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  border-radius: 50%;
  will-change: transform;
}

.sky .g1 {
  top: -42vmax;
  inset-inline-start: -22vmax;
  background: radial-gradient(closest-side, rgba(146, 64, 236, 0.5), rgba(146, 64, 236, 0.14) 55%, transparent);
  animation: dz-drift-a 28s ease-in-out infinite alternate;
}

.sky .g2 {
  top: 28vh;
  inset-inline-end: -46vmax;
  background: radial-gradient(closest-side, rgba(255, 61, 139, 0.32), rgba(255, 61, 139, 0.08) 55%, transparent);
  animation: dz-drift-b 34s ease-in-out infinite alternate;
}

.sky .g3 {
  bottom: -52vmax;
  inset-inline-start: -8vmax;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.05) 55%, transparent);
  animation: dz-drift-c 40s ease-in-out infinite alternate;
}

.sky .stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 8% 12%, #fff 50%, transparent 55%),
    radial-gradient(1px 1px at 27% 64%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 46% 28%, #ffd6ea 50%, transparent 55%),
    radial-gradient(1px 1px at 63% 82%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 78% 40%, #e4d4ff 50%, transparent 55%),
    radial-gradient(1px 1px at 91% 8%, #fff 50%, transparent 55%);
  background-size: 360px 360px;
  opacity: 0.55;
  animation: dz-twinkle 7s ease-in-out infinite alternate;
}

.sky .s2 {
  background-size: 540px 540px;
  background-position: 120px 80px;
  opacity: 0.35;
  animation-duration: 11s;
  animation-delay: -4s;
}

@keyframes dz-drift-a {
  to { transform: translate3d(14vmax, 8vmax, 0) scale(1.08); }
}

@keyframes dz-drift-b {
  to { transform: translate3d(-12vmax, -10vmax, 0) scale(1.12); }
}

@keyframes dz-drift-c {
  to { transform: translate3d(10vmax, -6vmax, 0) scale(0.94); }
}

@keyframes dz-twinkle {
  from { opacity: 0.2; }
  to { opacity: 0.6; }
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
  view-transition-name: top;
}

.top.scrolled {
  background: rgba(11, 7, 22, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.top .bar {
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top .wm {
  font-size: 1.45rem;
  transition: transform 0.3s var(--spring);
}

.home-link:hover .wm {
  transform: scale(1.04) rotate(-1deg);
}

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

.top .chipb {
  padding: 9px 14px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--spring);
}

.top .chipb:hover {
  transform: translateY(-1px);
}

.progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff3d8b, #b35cff, #38bdf8);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(255, 61, 139, 0.8);
}

[dir='rtl'] .progress i {
  transform-origin: right center;
}

.lang-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px var(--gutter);
  font-size: 0.88rem;
  color: var(--i1);
  background: rgba(179, 92, 255, 0.16);
  border-top: 1px solid var(--line);
}

.lang-pill a {
  font-weight: 800;
}

.lang-pill button {
  border: 0;
  background: none;
  color: var(--i1);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

/* ---------- the tab bar, as in the app ---------- */

.tabbar {
  position: fixed;
  z-index: 30;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  pointer-events: none;
  view-transition-name: tabbar;
}

.tb-pill {
  pointer-events: auto;
  position: relative;
  width: min(100%, 520px);
  height: var(--tb-h);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding: 0 6px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(37, 23, 64, 0.8), rgba(11, 7, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  animation: dz-bar-in 0.7s var(--out) 0.2s backwards;
}

@keyframes dz-bar-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
}

.tb-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 2px 9px;
  color: var(--i2);
  text-decoration: none;
  font: 700 0.69rem/1.15 var(--fb);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, transform 0.12s ease-in-out;
}

.tb-item:hover {
  color: var(--i0);
}

.tb-item:active {
  transform: scale(0.88);
}

.tb-item:focus-visible {
  outline-offset: -4px;
  border-radius: 20px;
}

.ic {
  width: 23px;
  height: 23px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.ic .pip {
  fill: currentColor;
  stroke: none;
}

.tb-item[aria-current] {
  color: #fff;
}

.tb-item[aria-current] .ic {
  filter: drop-shadow(0 0 8px rgba(255, 61, 139, 0.55));
  animation: dz-ic-pop 0.45s var(--spring);
}

.tb-item[aria-current] .ic .fill {
  fill: url(#g-brand);
  stroke: transparent;
}

.tb-item[aria-current] .ic .pip {
  fill: #fff;
}

.tb-item[aria-current] .ic path:not(.fill):not(.pip) {
  stroke: #fff;
}

@keyframes dz-ic-pop {
  40% { transform: scale(1.22) translateY(-2px); }
}

.tb-l {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-bar {
  position: absolute;
  bottom: 5px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transition: width 0.25s var(--out);
}

.tb-item[aria-current] .tb-bar {
  width: 14px;
  view-transition-name: tb-bar;
}

/* the raised home button, punched out of the pill by a ring in the page colour */
.tb-home {
  justify-content: flex-end;
  color: var(--i1);
}

.tb-orb {
  position: absolute;
  top: -24px;
  left: 50%;
  translate: -50% 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #ff7ab3, #ff3d8b 52%, #d42a76);
  box-shadow:
    0 0 0 5px #0b0716,
    0 12px 26px -8px rgba(255, 61, 139, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.3s var(--spring), filter 0.3s;
}

.tb-home .tb-orb .ic {
  width: 28px;
  height: 28px;
  filter: none;
  animation: none;
}

.tb-home .tb-orb .ic .fill,
.tb-home[aria-current] .tb-orb .ic .fill {
  fill: #fff;
  stroke: #fff;
  stroke-width: 1.2;
}

.tb-home:not([aria-current]) .tb-orb {
  filter: saturate(0.7) brightness(0.82);
}

.tb-home:hover .tb-orb {
  transform: translateY(-2px) scale(1.04);
  filter: none;
}

.tb-home[aria-current] .tb-orb::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 61, 139, 0.55);
  animation: dz-halo 2.4s ease-out infinite;
}

@keyframes dz-halo {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

/* ---------- tabs and their changing ---------- */

main {
  min-height: 70vh;
}

.panel.enter {
  animation: dz-panel-in 0.55s var(--out) backwards;
}

@keyframes dz-panel-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

::view-transition-old(root) {
  animation: dz-vt-out 0.2s ease-in both;
}

::view-transition-new(root) {
  animation: dz-vt-in 0.5s var(--out) backwards;
}

::view-transition-group(tb-bar) {
  animation-duration: 0.4s;
  animation-timing-function: var(--out);
}

@keyframes dz-vt-out {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}

@keyframes dz-vt-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ---------- motion: reveal, neon, flip ---------- */

/* Waiting below the fold (.rv), then rising in (.rise), each after the one
   before it (--d). Lists, headings and the clock add their own on top. */
.js .rv {
  opacity: 0;
}

.rise {
  animation: dz-rise 0.85s var(--out) var(--d, 0ms) backwards;
}

.js .rv .draw path {
  animation: none;
}

/* A heading switches on like a neon sign the first time it scrolls in. */
.neon {
  text-shadow: 0 0 22px rgba(179, 92, 255, 0.38);
}

.neon.rise {
  animation: dz-neon 1.5s linear var(--d, 0ms) backwards;
}

@keyframes dz-neon {
  0% { opacity: 0.08; text-shadow: none; }
  5% { opacity: 1; text-shadow: 0 0 26px rgba(255, 61, 139, 0.75); }
  8% { opacity: 0.25; text-shadow: none; }
  13% { opacity: 1; text-shadow: 0 0 26px rgba(255, 61, 139, 0.75); }
  18% { opacity: 0.55; }
  22%, 100% { opacity: 1; text-shadow: 0 0 22px rgba(179, 92, 255, 0.38); }
}

/* The night clock's tiles flip in, one after the other. */
.time.rise .flip span:not(.c) {
  animation: dz-flip 0.7s var(--out) backwards;
}

.time.rise .flip span:nth-child(2) { animation-delay: 0.07s; }
.time.rise .flip span:nth-child(3) { animation-delay: 0.14s; }
.time.rise .flip span:nth-child(4) { animation-delay: 0.21s; }
.time.rise .flip span:nth-child(5) { animation-delay: 0.28s; }

@keyframes dz-flip {
  from {
    opacity: 0;
    transform: perspective(240px) rotateX(-100deg);
  }
}

/* Lists rise item by item. */
.rise > li {
  animation: dz-up 0.7s var(--out) backwards;
}

.rise > li:nth-child(2) { animation-delay: 0.08s; }
.rise > li:nth-child(3) { animation-delay: 0.16s; }
.rise > li:nth-child(4) { animation-delay: 0.24s; }
.rise > li:nth-child(5) { animation-delay: 0.32s; }
.rise > li:nth-child(6) { animation-delay: 0.4s; }

@keyframes dz-up {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
}

/* The gradient words shimmer. */
.shimmer {
  background-image: linear-gradient(90deg, #ff3d8b, #c04dff, #ff8ac2, #ff3d8b);
  background-size: 300% 100%;
  animation: dz-shimmer 7s linear infinite;
}

@keyframes dz-shimmer {
  to { background-position: 300% 0; }
}

/* ---------- shared pieces ---------- */

.sec {
  padding-block: 56px;
}

.page-head {
  padding-block: 40px 8px;
}

.page-head .lead {
  max-width: 46ch;
  text-wrap: balance;
}

.wrap.narrow {
  max-width: 780px;
}

.time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.flip {
  display: inline-flex;
  gap: 3px;
  unicode-bidi: isolate;
}

.flip span {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 34px;
  padding: 0 4px;
  border-radius: 7px;
  background: linear-gradient(180deg, #2c1e48 0 49%, #22163b 51% 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 6px 14px -8px rgba(0, 0, 0, 0.8);
  font: 800 1.12rem/1 var(--fb);
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.flip span.c {
  min-width: auto;
  padding: 0 1px;
  background: none;
  box-shadow: none;
  color: var(--i2);
  animation: dz-colon 1s steps(1) infinite;
}

@keyframes dz-colon {
  50% { opacity: 0.25; }
}

.time .ap {
  font: 700 0.85rem/1 var(--fb);
  color: var(--i2);
}

.time .lbl {
  font: 800 0.85rem/1 var(--fb);
  color: var(--pink);
}

.panel-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--out), border-color 0.35s, box-shadow 0.35s;
}

.panel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 139, 0.35);
  box-shadow: 0 18px 40px -26px rgba(255, 61, 139, 0.8);
}

.panel-card p {
  margin: 0;
  color: var(--i1);
}

.panel-card.glow {
  border-color: rgba(199, 125, 255, 0.5);
  box-shadow: 0 0 40px -18px rgba(199, 125, 255, 0.9);
}

.ib {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 61, 139, 0.2), rgba(179, 92, 255, 0.16));
  border: 1px solid rgba(255, 61, 139, 0.35);
  color: #ffc2dc;
}

.ib .ic .fill {
  fill: rgba(255, 61, 139, 0.18);
}

.two {
  display: grid;
  gap: 16px;
}

.center-link {
  margin: 26px 0 0;
  text-align: center;
}

.note {
  color: var(--i2);
  font-size: 0.95rem;
  margin: 14px 0 0;
}

.more {
  margin: 14px 0 0;
  font-weight: 700;
}

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

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 45%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--out);
}

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

.btn.ghost-btn::after {
  display: none;
}

.btn.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.badge {
  transition: transform 0.25s var(--spring), filter 0.25s;
}

.badge:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(255, 61, 139, 0.35));
}

/* ---------- Home: the hero ---------- */

.hero {
  position: relative;
  padding-block: 14px 8px;
}

.hero-grid {
  display: grid;
  gap: 6px;
}

.hero-copy {
  min-width: 0;
}

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font: 700 0.85rem/1 var(--fb);
  color: var(--i1);
  animation: dz-rise 0.8s var(--out) 0.05s backwards;
}

.clock .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: dz-pulse 2s infinite;
}

.clock .t {
  color: var(--i0);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.clock .t:empty {
  display: none;
}

.clock .t:not(:empty)::after {
  content: '·';
  margin-inline-start: 8px;
  color: var(--i2);
}

@keyframes dz-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-h {
  font-size: clamp(2.7rem, 11vw, 5.4rem);
}

.hero-h .l1 {
  animation: dz-rise 0.9s var(--out) 0.12s backwards;
}

.hero-h .l2 {
  position: relative;
  width: max-content;
  max-width: 100%;
  animation: dz-rise 0.9s var(--out) 0.26s backwards, dz-neon 1.6s linear 0.5s backwards;
}

.hero-copy .lead {
  animation: dz-rise 0.9s var(--out) 0.4s backwards;
}

.hero-copy .ctas {
  animation: dz-rise 0.9s var(--out) 0.5s backwards;
}

.hero-copy .tags {
  animation: dz-rise 0.9s var(--out) 0.6s backwards;
}

@keyframes dz-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

.swoosh {
  display: block;
  width: 150px;
  height: 22px;
  margin-top: -6px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
}

.tags li {
  font: 700 0.78rem/1 var(--fb);
  color: var(--i1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.ctas.center + .tags {
  justify-content: center;
}

/* The visual: the real wheel phone, the app's game logos around it, the
   first card landing. --sy (scroll) gives the layers depth; --rx/--ry (the
   pointer, on a computer) tilt them. */
.hero-visual {
  --sy: 0;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  height: 410px;
  margin-top: 4px;
  perspective: 900px;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}

.hv-phone {
  position: absolute;
  inset-inline-end: 22px;
  top: 6px;
  translate: 0 calc(var(--sy) * -0.12px);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--out);
  animation: dz-phone-in 1.1s var(--out) 0.25s backwards;
}

@keyframes dz-phone-in {
  from {
    opacity: 0;
    transform: translateY(80px) rotate(8deg) scale(0.92);
  }
}

.p-hero {
  width: 172px;
  transform: rotate(5deg);
  animation: dz-bob 6s ease-in-out 1.4s infinite;
}

[dir='ltr'] .p-hero {
  transform: rotate(-5deg);
}

@keyframes dz-bob {
  50% { translate: 0 -8px; }
}

.orbit .o {
  position: absolute;
  width: 92px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  animation: dz-pop-in 0.8s var(--spring) backwards, dz-hover 6s ease-in-out infinite;
}

.orbit .o1 {
  inset-inline-start: 0;
  top: 2px;
  translate: 0 calc(var(--sy) * -0.32px);
  animation-delay: 0.7s, 1.5s;
}

.orbit .o2 {
  inset-inline-start: 96px;
  top: 292px;
  width: 78px;
  translate: 0 calc(var(--sy) * -0.22px);
  animation-delay: 0.85s, 2.1s;
}

.orbit .o3 {
  inset-inline-end: 160px;
  top: -6px;
  width: 64px;
  translate: 0 calc(var(--sy) * -0.4px);
  animation-delay: 1s, 2.6s;
  opacity: 0.9;
}

@keyframes dz-pop-in {
  from {
    opacity: 0;
    scale: 0.3;
    rotate: -25deg;
  }
}

@keyframes dz-hover {
  50% { transform: translateY(-10px) rotate(-4deg); }
}

.qmini {
  position: absolute;
  z-index: 2;
  inset-inline-start: 0;
  top: 160px;
  width: min(178px, 50%);
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(38, 22, 66, 0.96), rgba(26, 15, 46, 0.96));
  border: 1px solid rgba(255, 79, 139, 0.55);
  transform: rotate(-6deg);
  translate: 0 calc(var(--sy) * -0.2px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 30px -12px rgba(255, 79, 139, 0.6);
  animation: dz-land 0.8s var(--spring) 1.1s backwards;
}

[dir='ltr'] .qmini {
  transform: rotate(6deg);
}

.qmini .k {
  display: block;
  margin-bottom: 6px;
  font: 800 0.7rem/1.2 var(--fb);
  color: var(--rose);
}

.qmini p {
  margin: 0;
  font: 700 0.92rem/1.55 var(--fb);
}

@keyframes dz-land {
  from {
    opacity: 0;
    translate: 0 -40px;
    scale: 1.12;
  }
}

.note-turn {
  position: absolute;
  z-index: 2;
  inset-inline-start: 104px;
  top: 104px;
  margin: 0;
  transform: rotate(-8deg);
  animation: dz-rise 0.7s var(--out) 1.3s backwards;
}

.arrow-turn {
  position: absolute;
  z-index: 2;
  inset-inline-start: 150px;
  top: 118px;
  width: 64px;
  height: 42px;
}

[dir='ltr'] .arrow-turn {
  transform: scaleX(-1);
}

.arrow-turn path {
  animation-delay: 1.5s;
}

.hero-visual .s1 {
  inset-inline-end: 4px;
  top: 120px;
  animation: dz-twinkle-s 2.6s ease-in-out infinite;
}

.hero-visual .s2 {
  inset-inline-end: 200px;
  top: 10px;
  width: 12px;
  height: 12px;
  animation: dz-twinkle-s 3.4s ease-in-out 0.6s infinite;
}

.hero-visual .s3 {
  inset-inline-start: 36px;
  top: 270px;
  width: 14px;
  height: 14px;
  animation: dz-twinkle-s 3s ease-in-out 1.2s infinite;
}

@keyframes dz-twinkle-s {
  50% {
    opacity: 0.35;
    transform: scale(0.6) rotate(45deg);
  }
}

.spinbtn {
  position: absolute;
  z-index: 3;
  inset-inline-start: 12px;
  top: 346px;
  font: 800 0.8rem/1 var(--fb);
  color: #fff;
  background: rgba(255, 79, 139, 0.18);
  border: 1px solid rgba(255, 79, 139, 0.6);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--spring);
  animation: dz-rise 0.7s var(--out) 1.4s backwards;
}

.spinbtn:hover {
  background: rgba(255, 79, 139, 0.32);
  transform: translateY(-2px);
}

/* ---------- Home: the questions drifting past ---------- */

.ticker {
  display: grid;
  gap: 10px;
  padding-block: 18px 6px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tk-row {
  overflow: hidden;
}

.tk-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: dz-marquee 90s linear infinite;
}

.r2 .tk-track {
  animation-direction: reverse;
  animation-duration: 110s;
}

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

[dir='rtl'] .tk-track {
  animation-name: dz-marquee-rtl;
}

@keyframes dz-marquee {
  to { transform: translateX(-50%); }
}

@keyframes dz-marquee-rtl {
  to { transform: translateX(50%); }
}

.tk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--c) 40%, transparent);
  background: rgba(255, 255, 255, 0.035);
  color: var(--i1);
  font: 700 0.9rem/1.2 var(--fb);
  white-space: nowrap;
}

.tk-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

/* ---------- Home: the rail that follows the night (wide screens) ---------- */

.rail {
  display: none;
}

/* ---------- Home: 9:30 set up ---------- */

.steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  inset-inline-start: 19px;
  top: 24px;
  bottom: 24px;
  border-inline-start: 2px dashed rgba(255, 61, 139, 0.45);
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  position: relative;
}

.steps b {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 1rem/1 var(--fb);
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #ff6aa6, #c0267a);
  box-shadow: 0 0 0 4px #0b0716, 0 0 18px rgba(255, 61, 139, 0.55);
}

.steps.rise b {
  animation: dz-pop-in 0.6s var(--spring) backwards;
}

.steps.rise li:nth-child(2) b { animation-delay: 0.12s; }
.steps.rise li:nth-child(3) b { animation-delay: 0.24s; }
.steps.rise li:nth-child(4) b { animation-delay: 0.36s; }

.steps strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.45;
}

.steps span {
  display: block;
  color: var(--i1);
  font-size: 0.95rem;
}

/* ---------- Home: 10:00 try a question ---------- */

/* The reaction burst flies past the card's sides: kept inside the section. */
.try {
  overflow-x: hidden;
  overflow-x: clip;
}

.try-grid {
  display: grid;
  gap: 8px;
}

.qwrap {
  max-width: 470px;
}

.qstack {
  position: relative;
  padding-top: 14px;
  margin-bottom: 16px;
}

.qcard.back {
  position: absolute;
  inset: 14px 10px auto;
  height: calc(100% - 14px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  opacity: 0.55;
}

.qcard.b1 {
  transform: rotate(-4deg) translateY(-6px);
}

.qcard.b2 {
  transform: rotate(3deg) translateY(-12px);
  opacity: 0.35;
}

.qstack .qcard.front {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.qstack .qcard.front:active {
  cursor: grabbing;
}

.qcard.dealt {
  animation: dz-deal 0.5s var(--spring);
}

@keyframes dz-deal {
  from {
    opacity: 0.4;
    transform: translateY(-22px) rotate(-7deg) scale(0.95);
  }
}

.react {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.react button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--i0);
  font: 700 0.95rem/1 var(--fb);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.react button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: color-mix(in oklab, var(--c) 50%, transparent);
}

.react button i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--i1);
  min-width: 0.8em;
}

.react button.pop {
  animation: dz-react-pop 0.45s var(--spring);
}

@keyframes dz-react-pop {
  40% { transform: scale(1.28); }
}

.burst {
  position: absolute;
  z-index: 5;
  font-size: 1.5rem;
  pointer-events: none;
  translate: -50% 0;
  animation: dz-burst 1s var(--out) both;
}

@keyframes dz-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) scale(1.3) rotate(var(--br));
  }
}

.rowbtns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.next {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: var(--grad);
  color: #fff;
  font: 800 0.98rem/1 var(--fb);
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(255, 61, 139, 0.9);
  transition: transform 0.2s var(--spring);
}

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

.counter {
  font: 700 0.85rem/1 var(--fb);
  color: var(--i2);
  font-variant-numeric: tabular-nums;
}

.swipe-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--i2);
}

.note2 {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0 0;
  max-width: 30ch;
}

.note2 .hand {
  font-size: 1.25rem;
}

.arrow-up {
  flex: none;
  width: 34px;
  height: 34px;
}

/* ---------- Home: 10:40 the four games ---------- */

.gcards {
  list-style: none;
  margin: 8px 0 0;
  padding: 10px var(--gutter) 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74%, 280px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

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

.gcards li {
  scroll-snap-align: start;
  display: grid;
}

.gc {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 340px;
  padding: 16px 18px 20px;
  border-radius: 26px;
  overflow: hidden;
  color: var(--i0);
  text-decoration: none;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--c) 30%, transparent), transparent 70%),
    linear-gradient(180deg, #1f1336, #140c25);
  border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
  box-shadow: 0 24px 50px -30px var(--c);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--out), box-shadow 0.4s, border-color 0.4s;
}

.gc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gc:hover {
  color: var(--i0);
  border-color: var(--c);
  box-shadow: 0 30px 60px -28px var(--c);
}

.gc:hover::after {
  opacity: 1;
}

.gc-n {
  font: 800 0.75rem/1 var(--fb);
  letter-spacing: 0.08em;
  color: var(--i2);
}

.gc-logo {
  width: 124px;
  height: auto;
  justify-self: center;
  margin: -6px 0 -8px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--spring);
}

.gc:hover .gc-logo {
  transform: translateY(-6px) scale(1.07) rotate(-3deg);
}

.gc-k {
  font: 800 0.72rem/1.2 var(--fb);
  letter-spacing: 0.04em;
  color: var(--c);
  text-transform: uppercase;
}

.gc-nm {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.25;
}

.gc-ln {
  color: var(--i1);
  font-size: 0.93rem;
  line-height: 1.6;
}

.gc-mt {
  justify-self: start;
  margin-top: 8px;
  font: 700 0.75rem/1 var(--fb);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--i1);
}

.gc-go {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: color-mix(in oklab, var(--c) 70%, #1d1233);
  transition: transform 0.35s var(--spring);
}

[dir='ltr'] .gc-go {
  transform: scaleX(-1);
}

.gc:hover .gc-go {
  transform: translateX(-4px);
}

[dir='ltr'] .gc:hover .gc-go {
  transform: scaleX(-1) translateX(-4px);
}

/* ---------- Home: 11:20 the AI ---------- */

.ai-grid {
  display: grid;
  gap: 18px;
}

.aicard {
  position: relative;
  margin: 0;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(199, 125, 255, 0.55);
  background: linear-gradient(180deg, #24143c, #170c29);
  box-shadow: 0 0 40px -16px rgba(199, 125, 255, 0.9);
}

.aicard .who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.aicard .who span {
  font: 700 0.78rem/1 var(--fb);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--i1);
}

.aicard.rise .who span {
  animation: dz-pop-in 0.5s var(--spring) backwards;
}

.aicard.rise .who span:nth-child(2) { animation-delay: 0.1s; }
.aicard.rise .who span:nth-child(3) { animation-delay: 0.2s; }

.typed {
  margin: 0;
  min-height: 3.3em;
  font: 800 1.2rem/1.65 var(--fb);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-inline-start: 2px;
  vertical-align: -0.15em;
  background: var(--deep);
  animation: dz-blink 1s steps(1) infinite;
}

@keyframes dz-blink {
  50% { opacity: 0; }
}

.aicard .ex {
  display: block;
  margin-top: 10px;
  font: 600 0.78rem/1.4 var(--fb);
  color: var(--i2);
}

.bul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.bul li {
  position: relative;
  padding-inline-start: 26px;
  color: var(--i1);
}

.bul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad);
  transform: rotate(45deg);
}

/* ---------- Home: 12:30 two of you or the crew ---------- */

.scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.scene {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--out), border-color 0.35s;
}

.scene:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 139, 0.35);
}

.scene .ph {
  display: block;
  height: 124px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scene .ph img {
  display: block;
  width: 100%;
  transition: transform 0.6s var(--out);
}

.ph-deep img {
  transform: translateY(-13%);
}

.ph-lobby img {
  transform: translateY(-24%);
}

.scene:hover .ph-deep img {
  transform: translateY(-16%) scale(1.04);
}

.scene:hover .ph-lobby img {
  transform: translateY(-27%) scale(1.04);
}

.scene .t {
  display: block;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

.scene .d {
  display: block;
  margin-top: 4px;
  color: var(--i1);
  font-size: 0.95rem;
}

/* ---------- Home: true numbers ---------- */

.nums-sec {
  padding-block: 18px 36px;
}

.nums {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.nums li {
  display: grid;
  gap: 2px;
  position: relative;
  padding-top: 8px;
}

.nums b {
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.8rem);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 61, 139, 0.6);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.nums li:last-child b {
  font-size: clamp(1.1rem, 4.6vw, 2rem);
  line-height: 1.5;
}

.nums span {
  font: 700 0.75rem/1.3 var(--fb);
  color: var(--i2);
}

.nums .ring {
  position: absolute;
  inset-inline: -6px;
  top: -4px;
  width: calc(100% + 12px);
  height: 58px;
  pointer-events: none;
}

/* ---------- Home: the ambassador band, a neon tube ---------- */

@property --a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.amb-band .amb-inner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 61, 139, 0.22), transparent 70%),
    linear-gradient(180deg, #1f1236, #150c26);
  box-shadow: 0 0 50px -18px rgba(255, 61, 139, 0.8);
  isolation: isolate;
}

.amb-band .amb-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--a), #ff3d8b, #b35cff, #38bdf8, #ff3d8b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: dz-turn 6s linear infinite;
}

@keyframes dz-turn {
  to { --a: 360deg; }
}

.amb-band .h2 {
  margin-bottom: 8px;
}

.amb-band .sub {
  margin: 0;
}

.amb-band .btn {
  justify-self: start;
}

/* ---------- Home: 1:13 last call ---------- */

.last {
  text-align: center;
  padding-block: 56px 64px;
}

.last .time {
  justify-content: center;
}

.last .sub {
  margin-inline: auto;
  max-width: 34ch;
}

.last.small {
  padding-block: 40px 56px;
}

.qr-desk {
  display: none;
  margin: 26px auto 0;
  width: max-content;
}

.qr-desk figcaption {
  margin-top: 8px;
  color: var(--i2);
  font-size: 0.85rem;
}

/* ---------- Games tab ---------- */

.games-head {
  text-align: center;
  padding-block: 36px 10px;
}

.games-head .lead {
  margin-inline: auto;
}

.gt-bar {
  position: sticky;
  top: 58px;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 8px var(--gutter) 10px;
}

.gt-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 560px);
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(37, 23, 64, 0.82), rgba(11, 7, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.gt {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px 8px;
  border-radius: 20px;
  color: var(--i2);
  text-decoration: none;
  font: 800 0.72rem/1.2 var(--fb);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s;
}

.gt:hover {
  color: var(--i0);
}

.gt-logo {
  width: 54px;
  height: auto;
  margin: -6px 0 -10px;
  opacity: 0.55;
  filter: saturate(0.6);
  transition: transform 0.45s var(--spring), opacity 0.3s, filter 0.3s;
}

.gt:hover .gt-logo {
  opacity: 0.85;
}

.gt[aria-selected='true'] {
  color: #fff;
}

.gt[aria-selected='true'] .gt-logo {
  opacity: 1;
  filter: saturate(1.15) drop-shadow(0 6px 14px color-mix(in oklab, var(--c) 60%, transparent));
  transform: translateY(-3px) scale(1.12);
}

.gt-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gt-ink {
  --ix: 0px;
  --iw: 0px;
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: var(--iw);
  border-radius: 20px;
  background: color-mix(in oklab, var(--c, #ff3d8b) 22%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c, #ff3d8b) 60%, transparent), 0 0 24px -8px var(--c, #ff3d8b);
  transform: translateX(var(--ix));
  transition: transform 0.5s var(--out), width 0.5s var(--out), background-color 0.4s, box-shadow 0.4s;
}

.gt-list:has(.c-wheel[aria-selected='true']) .gt-ink { --c: var(--rose); }
.gt-list:has(.c-most-likely[aria-selected='true']) .gt-ink { --c: var(--amber); }
.gt-list:has(.c-guess[aria-selected='true']) .gt-ink { --c: var(--sky); }
.gt-list:has(.c-deep[aria-selected='true']) .gt-ink { --c: var(--deep); }

/* A game slides in from the side: clipped here, or a phone could scroll
   sideways while it moves. clip (not hidden) keeps the glows above visible. */
.g-stage {
  position: relative;
  padding-bottom: 24px;
  touch-action: pan-y;
  overflow-x: hidden;
  overflow-x: clip;
}

.game {
  position: relative;
  padding-top: 18px;
}

.game::before {
  content: '';
  position: absolute;
  inset: -80px 0 auto;
  height: 620px;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 30%, color-mix(in oklab, var(--c) 26%, transparent), transparent 70%);
  pointer-events: none;
}

.game.from-next {
  animation: dz-game-next 0.55s var(--out) backwards;
}

.game.from-prev {
  animation: dz-game-prev 0.55s var(--out) backwards;
}

@keyframes dz-game-next {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
}

@keyframes dz-game-prev {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
}

[dir='rtl'] .game.from-next {
  animation-name: dz-game-prev;
}

[dir='rtl'] .game.from-prev {
  animation-name: dz-game-next;
}

.g-grid {
  display: grid;
  gap: 18px;
  align-items: center;
}

.g-card {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 30px;
  background:
    radial-gradient(90% 60% at 100% 0%, color-mix(in oklab, var(--c) 24%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(36, 21, 62, 0.92), rgba(19, 11, 35, 0.94));
  border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
  box-shadow: 0 30px 60px -36px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.g-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.g-count {
  font: 800 0.8rem/1 var(--fb);
  letter-spacing: 0.12em;
  color: var(--i2);
}

.g-kicker {
  font: 800 0.75rem/1.2 var(--fb);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c);
}

.g-logo {
  display: block;
  width: 150px;
  height: auto;
  margin: 2px auto -10px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  animation: dz-hover 6s ease-in-out infinite;
}

.game.from-next .g-logo,
.game.from-prev .g-logo {
  animation: dz-pop-in 0.7s var(--spring) backwards, dz-hover 6s ease-in-out 0.7s infinite;
}

.g-name {
  margin: 0;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.15;
  text-shadow: 0 0 24px color-mix(in oklab, var(--c) 55%, transparent);
}

.g-h {
  margin: 8px 0 0;
  font: 800 1.15rem/1.5 var(--fb);
}

.g-h .cc {
  color: var(--c);
}

.g-lead {
  margin: 8px 0 0;
  color: var(--i1);
}

.g-card .ctas {
  margin-top: 18px;
}

.g-visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 10px;
}

.g-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 45%, transparent), transparent);
  animation: dz-breathe 5s ease-in-out infinite;
}

@keyframes dz-breathe {
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.g-phone {
  position: relative;
  width: 196px;
  transform: rotate(-4deg);
  animation: dz-bob 6s ease-in-out infinite;
}

[dir='ltr'] .g-phone {
  transform: rotate(4deg);
}

.g-more {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.g-box {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.g-box .h3 {
  margin-bottom: 12px;
}

.g-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: st;
}

.g-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: st;
  color: var(--i1);
}

.g-steps li::before {
  content: counter(st);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 0.95rem/1 var(--fb);
  color: #fff;
  background: color-mix(in oklab, var(--c) 75%, #1d1233);
  box-shadow: 0 0 16px -2px var(--c);
}

.g-steps strong {
  color: var(--i0);
}

.g-samples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.g-samples li {
  position: relative;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #22143b, #170d2a);
  border: 1px solid color-mix(in oklab, var(--c) 40%, transparent);
  border-inline-start-width: 3px;
  font-weight: 800;
  line-height: 1.6;
  transition: transform 0.3s var(--out);
}

.g-samples li:hover {
  transform: translateX(-4px);
}

[dir='ltr'] .g-samples li:hover {
  transform: translateX(4px);
}

.g-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.g-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: 800 1.6rem/1 var(--fb);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--spring), background-color 0.2s;
}

.g-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

[dir='ltr'] .g-arrow span {
  transform: scaleX(-1);
}

.g-arrow span {
  display: block;
  margin-top: -3px;
}

.g-dots {
  display: flex;
  gap: 7px;
}

.g-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.35s var(--out), background-color 0.35s;
}

.g-dots i.on {
  width: 24px;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}

/* ---------- How tab ---------- */

.ways {
  padding-top: 16px;
}

.ways-grid {
  display: grid;
  gap: 16px;
  align-items: center;
}

.mini-steps {
  margin: 14px 0 0;
  padding-inline-start: 22px;
  color: var(--i1);
  display: grid;
  gap: 4px;
}

.ways-shot,
.ends-shot {
  display: grid;
  justify-items: center;
  padding-block: 10px;
}

.p-way {
  width: 196px;
  transform: rotate(-4deg);
}

.p-end {
  width: 196px;
  transform: rotate(4deg);
}

[dir='ltr'] .p-way {
  transform: rotate(4deg);
}

[dir='ltr'] .p-end {
  transform: rotate(-4deg);
}

.moods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mood {
  --c: var(--sky);
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in oklab, var(--c) 22%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}

.mood:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 20px 40px -24px var(--c);
}

.mood.m1 { --c: var(--sky); }
.mood.m2 { --c: var(--amber); }
.mood.m3 { --c: var(--rose); }
.mood.m4 { --c: var(--deep); }

.mood strong {
  font-family: var(--fd);
  font-size: 1.25rem;
}

.mood > span:last-child {
  color: var(--i1);
  font-size: 0.92rem;
}

.meter {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.meter i {
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.meter i.on {
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.moods.rise .meter i.on {
  animation: dz-meter 0.4s var(--out) backwards;
}

.moods.rise .meter i:nth-child(2) { animation-delay: 0.1s; }
.moods.rise .meter i:nth-child(3) { animation-delay: 0.2s; }
.moods.rise .meter i:nth-child(4) { animation-delay: 0.3s; }

@keyframes dz-meter {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
}

.ends-grid {
  display: grid;
  gap: 16px;
  align-items: center;
}

.ends {
  display: grid;
  gap: 16px;
}

/* ---------- Ambassadors tab ---------- */

.amb-hero {
  padding-block: 26px 10px;
}

.amb-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

.amb-h {
  font-size: clamp(2.6rem, 10vw, 4.6rem);
}

.amb-visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 18px 6px;
  perspective: 900px;
}

.amb-visual .s1 {
  inset-inline-start: 4%;
  top: 4px;
}

.amb-visual .s2 {
  inset-inline-end: 6%;
  bottom: 0;
  width: 13px;
  height: 13px;
}

.pass {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 1.58;
  padding: 18px 20px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 61, 139, 0.4), transparent 60%),
    radial-gradient(90% 90% at 0% 100%, rgba(179, 92, 255, 0.4), transparent 60%),
    #150c27;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 61, 139, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(255, 61, 139, 0.8);
  transform: rotate(-3deg);
  animation: dz-pass 7s ease-in-out infinite;
}

[dir='ltr'] .pass {
  transform: rotate(3deg);
}

@keyframes dz-pass {
  50% { translate: 0 -8px; }
}

.pass-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 44%, rgba(56, 189, 248, 0.12) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: dz-shine 5s 1.2s ease-in-out infinite;
  pointer-events: none;
}

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

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pass-label {
  font: 800 0.72rem/1 var(--fb);
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
}

.pass-ring {
  position: absolute;
  inset-inline-end: -40px;
  top: 30%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.03);
  animation: dz-rot 30s linear infinite;
}

.pass-name {
  align-self: end;
  margin: 0 0 8px;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pass-foot {
  display: grid;
  gap: 2px;
  font-size: 0.72rem;
  color: var(--i2);
}

.pass-link {
  color: #ffd0e4;
  font-weight: 800;
  unicode-bidi: isolate;
}

@media (max-width: 999px) {
  .amb-visual {
    z-index: 2;
    justify-items: end;
    margin-bottom: -58px;
    padding-block: 4px 0;
  }

  .pass {
    width: min(250px, 76%);
    padding: 14px 16px;
    border-radius: 18px;
  }

  .pass .wm {
    font-size: 1rem;
  }

  .pass-name {
    font-size: 1.35rem;
    margin-bottom: 4px;
  }

  .pass-ring {
    width: 110px;
    height: 110px;
  }

  .amb-grid .form-card {
    padding-top: 70px;
  }
}

.form-card {
  position: relative;
  overflow-x: clip;
  padding: 24px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(31, 18, 54, 0.92), rgba(17, 10, 31, 0.94));
  box-shadow: 0 30px 70px -40px rgba(255, 61, 139, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  scroll-margin-top: 80px;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--a), rgba(255, 61, 139, 0.9), rgba(179, 92, 255, 0.6), rgba(56, 189, 248, 0.5), rgba(255, 61, 139, 0.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: dz-turn 8s linear infinite;
}

.form-card .h2 {
  margin-bottom: 4px;
}

.form-card .sub {
  margin: 0 0 18px;
}

.amb-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.field label {
  font-weight: 800;
  font-size: 0.95rem;
}

.amb-form input[type='text'],
.amb-form input[type='email'],
.amb-form input[type='tel'] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--i0);
  font: 600 1.02rem/1.4 var(--fb);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.amb-form input::placeholder {
  color: #8d82a6;
}

.amb-form input:focus,
.dial:focus-within {
  outline: none;
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.25);
}

.amb-form [aria-invalid='true'] {
  border-color: #ff7a8a;
  animation: dz-shake 0.4s;
}

@keyframes dz-shake {
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.phone-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.dial {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dial-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 30px 0 12px;
  font: 700 1rem/1 var(--fb);
  font-variant-numeric: tabular-nums;
  color: var(--i0);
  white-space: nowrap;
}

.dial::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 2px solid var(--i1);
  border-bottom: 2px solid var(--i1);
  transform: rotate(45deg);
  pointer-events: none;
}

.dial select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
}

.field-err {
  margin: 0;
  color: #ff9aa8;
  font-size: 0.88rem;
  font-weight: 700;
}

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

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 90, 110, 0.12);
  border: 1px solid rgba(255, 122, 138, 0.5);
  color: #ffd2d8;
  font-weight: 700;
}

.amb-form .btn.big {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.amb-form .btn[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.consent {
  margin: -4px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--i2);
  text-align: center;
}

.amb-success {
  position: relative;
  text-align: center;
  padding: 10px 4px 4px;
}

.amb-success:focus {
  outline: none;
}

.ok-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, 0.7));
}

.ok-mark circle,
.ok-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dz-draw 0.7s var(--out) forwards;
}

.ok-mark path {
  animation-delay: 0.45s;
}

.amb-success p {
  color: var(--i1);
}

.confetti {
  position: absolute;
  top: 0;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  animation: dz-confetti 1.6s cubic-bezier(0.2, 0.6, 0.4, 1) both;
}

@keyframes dz-confetti {
  0% {
    opacity: 1;
    transform: translate(0, -20px) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--cx), var(--cy)) rotate(var(--cr));
  }
}

.gains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.gain {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--out), border-color 0.35s;
}

.gain:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 61, 139, 0.4);
}

.gain strong {
  display: block;
  font-family: var(--fd);
  font-size: 1.25rem;
  line-height: 1.3;
}

.gain span {
  display: block;
  margin-top: 4px;
  color: var(--i1);
}

.gain.g1 {
  border-color: rgba(245, 197, 81, 0.5);
  box-shadow: 0 0 30px -16px rgba(245, 197, 81, 0.8);
}

.gain.g1 strong {
  color: var(--gold);
}

.rules {
  margin: 0;
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
  color: var(--i1);
}

.rules li::marker {
  color: var(--pink);
}

.privacy-box {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 4px 18px;
}

.privacy-box summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.privacy-box summary::-webkit-details-marker {
  display: none;
}

.privacy-box summary .h3 {
  margin: 0;
  font-size: 1.1rem;
}

.privacy-box summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pink);
  transition: transform 0.3s var(--out);
}

.privacy-box[open] summary::after {
  transform: rotate(45deg);
}

.privacy {
  margin: 0 0 8px;
  padding-inline-start: 22px;
  display: grid;
  gap: 8px;
  color: var(--i1);
  font-size: 0.95rem;
}

.small {
  color: var(--i2);
  font-size: 0.85rem;
}

/* ---------- FAQ (tab and ambassadors) ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.faq details:hover {
  background: rgba(255, 255, 255, 0.06);
}

.faq details[open] {
  border-color: rgba(255, 61, 139, 0.5);
  box-shadow: 0 0 30px -18px rgba(255, 61, 139, 0.8);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 18px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--pink);
  background: rgba(255, 61, 139, 0.12);
  transition: transform 0.35s var(--spring), background-color 0.3s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: rgba(255, 61, 139, 0.24);
}

.faq .ans {
  padding: 0 18px 18px;
  color: var(--i1);
}

.faq details[open] .ans {
  animation: dz-ans 0.45s var(--out);
}

@keyframes dz-ans {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.faq .ans p {
  margin: 0;
}

.faq .more {
  margin-top: 8px;
}

.faq-end {
  margin-top: 30px;
  text-align: center;
}

.faq-end .mail {
  display: inline-block;
  margin-bottom: 14px;
  font: 800 1.1rem/1.4 var(--fb);
}

/* ---------- footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-block: 40px var(--tb-space);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 5, 15, 0.4), rgba(7, 5, 15, 0.85));
}

.foot .brand p {
  margin: 10px 0 14px;
  color: var(--i1);
}

.foot .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.foot h2 {
  margin: 0 0 8px;
  font: 800 0.85rem/1.4 var(--fb);
  color: var(--i2);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.foot a {
  color: var(--i1);
  text-decoration: none;
  overflow-wrap: break-word;
}

.foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.foot .cols > div:last-child {
  grid-column: 1 / -1;
}

.foot .rights {
  margin: 28px 0 0;
  font-size: 0.82rem;
  color: var(--i2);
}

/* ---------- wider screens ---------- */

@media (min-width: 700px) {
  .gcards {
    grid-auto-columns: min(42%, 300px);
  }

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

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

  .form-card {
    padding: 30px 28px;
  }
}

@media (min-width: 1000px) {
  .sec {
    padding-block: 80px;
  }

  .sec.page-head {
    padding-block: 64px 12px;
  }

  .sec.games-head {
    padding-block: 52px 8px;
  }

  .hero {
    padding-block: 30px 0;
    min-height: calc(100vh - 66px);
    display: grid;
    align-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 30px;
  }

  .hero-visual {
    height: 560px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hv-phone {
    inset-inline-end: 70px;
    top: 30px;
  }

  .p-hero {
    width: 228px;
  }

  .orbit .o1 {
    inset-inline-start: 0;
    top: 40px;
    width: 128px;
  }

  .orbit .o2 {
    inset-inline-start: 70px;
    top: 380px;
    width: 112px;
  }

  .orbit .o3 {
    inset-inline-end: 0;
    inset-inline-start: auto;
    top: 300px;
    width: 96px;
  }

  .qmini {
    top: 210px;
    width: 230px;
  }

  .note-turn {
    inset-inline-start: 120px;
    top: 120px;
  }

  .arrow-turn {
    inset-inline-start: 168px;
    top: 136px;
    width: 92px;
    height: 58px;
  }

  .spinbtn {
    top: 480px;
    inset-inline-start: 40px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

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

  .steps::before {
    inset-inline: 20px 20px;
    top: 30px;
    bottom: auto;
    border-inline-start: 0;
    border-top: 2px dashed rgba(255, 61, 139, 0.45);
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .try-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
  }

  .gcards {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    max-width: var(--max);
    margin-inline: auto;
    overflow: visible;
  }

  .ai-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }

  .scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .amb-band .amb-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 34px 42px;
  }

  .qr-desk {
    display: block;
  }

  .gt-bar {
    top: 62px;
  }

  .gt {
    font-size: 0.8rem;
  }

  .gt-logo {
    width: 66px;
  }

  .g-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
  }

  .g-card {
    padding: 30px 32px 32px;
  }

  .g-logo {
    width: 180px;
  }

  .g-phone {
    width: 232px;
  }

  .g-halo {
    width: 420px;
    height: 420px;
  }

  .ways-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

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

  .ends-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
  }

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

  .amb-hero {
    padding-block: 50px 20px;
  }

  .amb-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
  }

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

  .foot .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
    gap: 40px;
  }

  .foot .cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
  }

  .foot .cols > div:last-child {
    grid-column: auto;
  }

  .foot .rights {
    grid-column: 1 / -1;
  }
}

/* The rail beside the night, where there is room for it. */
@media (min-width: 1300px) {
  .rail {
    position: fixed;
    z-index: 15;
    top: 50%;
    inset-inline-start: 22px;
    display: block;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }

  .rail.on {
    opacity: 1;
    pointer-events: auto;
  }

  .rail ol {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .rail ol::before {
    content: '';
    position: absolute;
    inset-inline-start: 5px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(var(--pink), var(--violet));
    opacity: 0.3;
  }

  .rail a {
    display: grid;
    grid-template-columns: 12px auto;
    column-gap: 10px;
    align-items: center;
    padding: 5px 0;
    color: var(--i2);
    text-decoration: none;
    font: 800 0.8rem/1.2 var(--fb);
  }

  .rail a i {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1d1233;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--spring);
  }

  .rail a b {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
  }

  .rail a span {
    grid-column: 2;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.72rem;
    color: var(--pink);
    transition: opacity 0.3s, max-height 0.3s;
  }

  .rail a:hover b,
  .rail a[aria-current] b {
    color: #fff;
  }

  .rail a[aria-current] i {
    background: var(--pink);
    border-color: #fff;
    box-shadow: 0 0 14px var(--pink);
    transform: scale(1.2);
  }

  .rail a[aria-current] span {
    max-height: 2em;
    opacity: 1;
  }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  /* No intro choreography either: what waits for its turn shows at once. */
  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
  }

  .js .rv {
    opacity: 1;
  }

  .tk-track {
    animation: none;
  }

  .ticker {
    overflow-x: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}
