/* TDT Plays · "Midnight arcade"
   Dark and kinetic. Blues carry the energy, gold marks achievement only.
   Diagonal chevrons come from the Plays submark's play-button geometry. */

:root {
  --void: #020414;          /* near-black, tinted toward Deep Blue */
  --void-2: #070b26;
  --void-3: #0d1438;
  --surface: var(--void);
  --surface-2: var(--void-2);
  --on-surface: var(--white);
  --on-surface-muted: rgb(255 255 255 / 0.66);
  --line: rgb(255 255 255 / 0.12);
  --accent-1: var(--plays-royal-blue);
  --accent-2: var(--plays-sky-blue);
  --on-accent: var(--white);
  --accent-grad: linear-gradient(100deg, var(--plays-deep-blue), var(--plays-royal-blue) 45%, var(--plays-electric-blue) 70%, var(--plays-sky-blue));
  --focus: var(--plays-sky-blue);
  --mast-bg: rgb(2 4 20 / 0.82);
  --mast-line: rgb(255 255 255 / 0.08);
  --nav-active-bg: var(--white);
  --nav-active-fg: var(--void);
  --logo-h: 38px;
  --foot-bg: #000;
}

body { background: var(--void); }
.masthead { position: sticky; top: var(--rail-h); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.masthead__nav { margin-left: auto; }
.masthead__cta { min-height: 40px; padding-inline: 1.1em; font-size: 0.75rem; }
@media (max-width: 720px) { .masthead { position: relative; top: 0; } .masthead__cta { margin-left: auto; } .masthead__inner > .masthead__cta { order: 2; } }

/* HUD label */
.hud {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plays-sky-blue);
}
.hud--gold { color: var(--plays-light-gold); }
.hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plays-sky-blue); box-shadow: 0 0 12px var(--plays-sky-blue); }
@media (prefers-reduced-motion: no-preference) { .hud__dot { animation: blink 1.6s steps(2, jump-none) infinite; } @keyframes blink { 50% { opacity: 0.25; } } }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 40% -10% -20% -10%;
  background-image: linear-gradient(rgb(68 186 254 / 0.16) 1px, transparent 1px), linear-gradient(90deg, rgb(68 186 254 / 0.16) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(600px) rotateX(62deg); transform-origin: top;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__grid { animation: grid-run 3.2s linear infinite; }
  @keyframes grid-run { to { background-position: 0 56px, 0 0; } }
}
/* Chevrons: the play-triangle from the submark, as big translucent shapes */
.hero__chev { position: absolute; clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%); opacity: 0.9; }
.hero__chev--1 { width: 46vw; height: 54vw; max-height: 900px; right: -12vw; top: -8vw; background: linear-gradient(135deg, #0316b3, #0646fe); opacity: 0.55; filter: blur(2px); }
.hero__chev--2 { width: 26vw; height: 30vw; right: 20vw; top: 22vw; background: linear-gradient(135deg, #1170fe, #44bafe); opacity: 0.18; }
.hero__chev--3 { width: 12vw; height: 14vw; left: -3vw; top: 6vw; background: linear-gradient(135deg, #0646fe, #44bafe); opacity: 0.22; }
@media (prefers-reduced-motion: no-preference) {
  .hero__chev--1 { animation: drift 12s var(--ease-in-out) infinite alternate; }
  .hero__chev--2 { animation: drift 9s var(--ease-in-out) infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(-2vw, 1vw) rotate(-3deg); } }
}

.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s-7); align-items: center; padding-bottom: var(--s-8); }
.hero__title {
  font-size: clamp(3.25rem, 1.6rem + 7.4vw, 9.5rem); font-weight: 800; line-height: 0.86; letter-spacing: -0.045em;
  text-transform: uppercase; margin-top: var(--s-5);
}
.hero__title span { display: block; }
.hero__title-hi {
  /* Electric to sky only: deep and royal blue fall below 3:1 on --void (1.7:1 and 3.2:1). */
  background: linear-gradient(100deg, var(--plays-electric-blue), var(--plays-sky-blue) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.06em; padding-right: 0.06em;
}
.hero__lede { font-size: var(--step-1); color: var(--on-surface-muted); margin-top: var(--s-5); }
.hero__lede a { color: var(--white); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.btn--grad { box-shadow: 0 10px 30px -8px rgb(6 70 254 / 0.7); }
.btn--grad:hover { box-shadow: 0 16px 40px -8px rgb(68 186 254 / 0.75); }
.btn svg.icon { width: 24px; height: 24px; margin-inline: -4px; }

/* Cabinet: the vertical short in an arcade-style frame */
.cabinet { position: relative; justify-self: center; width: min(100%, 360px); }
.cabinet__frame {
  position: relative; padding: 14px; border-radius: 28px;
  background: linear-gradient(160deg, #1170fe, #0316b3 40%, #020414 75%, #44bafe);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 40px 120px -20px rgb(6 70 254 / 0.65);
  transform: perspective(1000px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg));
  transition: transform var(--dur-3) var(--ease-out);
}
.cabinet__screen { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.cabinet__screen img { width: 100%; height: 100%; object-fit: cover; }
.cabinet__screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(0 0 0 / 0.12) 0 2px, transparent 2px 4px); pointer-events: none; mix-blend-mode: multiply; }
.cabinet__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; display: grid; place-items: center;
  background: var(--accent-grad); color: var(--white);
  clip-path: polygon(8% 0, 100% 50%, 8% 100%); padding-left: 0;
  transition: transform var(--dur-2) var(--ease-out);
}
.cabinet__play svg { display: none; }
.cabinet__screen:hover .cabinet__play { transform: scale(1.12); }
.cabinet__hud { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px 2px; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: rgb(255 255 255 / 0.8); }
.hud__tag { padding: 0.3em 0.7em; border-radius: 4px; background: rgb(255 255 255 / 0.14); }
.cabinet__health {
  position: absolute; left: -28px; top: 14%; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; background: rgb(2 4 20 / 0.85); border: 1px solid var(--line);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; backdrop-filter: blur(6px);
  transform: rotate(-6deg);
}
.cabinet__health i { position: relative; width: 90px; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.cabinet__health i::after { content: ""; position: absolute; inset: 0; width: 14%; background: var(--plays-grad-gold); border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .cabinet__health i::after { animation: hp 3s var(--ease-in-out) infinite; }
  @keyframes hp { 0%, 100% { width: 14%; } 50% { width: 8%; } }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); background: rgb(255 255 255 / 0.02); overflow: hidden; }
.ticker__track { display: flex; align-items: center; gap: var(--s-6); width: max-content; padding-block: var(--s-4); font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); text-transform: uppercase; letter-spacing: -0.01em; }
.ticker__track span:nth-of-type(3n+2) { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.6); }
.ticker__track i { width: 18px; height: 20px; background: var(--plays-grad-bright); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (prefers-reduced-motion: no-preference) { .ticker__track { animation: tick 32s linear infinite; } @keyframes tick { to { transform: translateX(-50%); } } }

/* ---- Featured ------------------------------------------------------------ */
.feature__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: end; }
.feature__title { font-size: var(--step-5); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; margin-top: var(--s-4); }
.feature__title span { display: block; color: var(--plays-sky-blue); }
.feature__dek { font-size: var(--step-1); color: var(--on-surface-muted); margin-top: var(--s-5); max-width: 36ch; }
.feature__by { display: inline-flex; align-items: center; gap: 0.6em; margin-top: var(--s-5); font-weight: 600; }
.beats { list-style: none; padding: 0; display: grid; gap: var(--s-3); counter-reset: beat; }
.beats li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-m); background: linear-gradient(90deg, rgb(17 112 254 / 0.14), rgb(17 112 254 / 0.02)); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}
.beats__n { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--plays-sky-blue); }
.beats b { font-family: var(--font-display); font-size: var(--step-1); }
.beats li span:last-child { color: var(--on-surface-muted); font-size: 0.9375rem; }

/* ---- Platforms ------------------------------------------------------------ */
.sec-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.sec-head h2 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; text-transform: uppercase; }
.sec-head__lede { color: var(--on-surface-muted); font-size: var(--step-1); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); list-style: none; padding: 0; }
.platform {
  position: relative; display: grid; gap: var(--s-1); min-height: 260px; padding: var(--s-6); text-decoration: none;
  border-radius: var(--radius-l); background: var(--void-2); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2);
}
.platform::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-grad);
  clip-path: polygon(0 100%, 0 100%, 0 100%); transition: clip-path var(--dur-3) var(--ease-out);
}
.platform:hover::before, .platform:focus-visible::before { clip-path: polygon(0 -60%, 160% 50%, 0 160%); }
.platform:hover { transform: translateY(-6px); border-color: transparent; }
.platform__n { font-family: var(--font-display); font-weight: 800; font-size: 0.875rem; color: var(--plays-sky-blue); margin-bottom: auto; }
.platform:hover .platform__n { color: var(--white); }
.platform__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; margin-top: var(--s-7); }
.platform__handle { color: var(--on-surface-muted); }
.platform:hover .platform__handle { color: rgb(255 255 255 / 0.85); }
.platform__cta { margin-top: var(--s-4); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Journey (quest track) ----------------------------------------------- */
.journey { position: relative; isolation: isolate; overflow: hidden; }
.journey__bg { position: absolute; inset: 0; z-index: -1; }
.journey__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; transform: scale(1.05); }
.journey__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--void) 0%, rgb(2 4 20 / 0.55) 40%, rgb(2 4 20 / 0.75) 70%, var(--void)); }
.quest { position: relative; list-style: none; padding: 0; display: grid; align-items: start; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.quest__track { position: absolute; left: 16.66%; right: 16.66%; top: 46px; height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.14); }
.quest__track i { position: absolute; inset: 0; width: var(--fill, 0%); background: var(--plays-grad-gold); border-radius: 4px; box-shadow: 0 0 16px rgb(255 216 111 / 0.6); transition: width 1.6s var(--ease-out); }
.quest__node { position: relative; text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.quest__btn { display: grid; justify-items: center; gap: var(--s-4); }
.quest__gem {
  width: 96px; height: 96px; display: grid; place-items: center; rotate: 45deg; border-radius: 18px;
  background: var(--void-3); border: 2px solid rgb(255 216 111 / 0.4);
  transition: background-color var(--dur-3), border-color var(--dur-3), box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out);
}
.quest__gem .num { rotate: -45deg; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--plays-light-gold); }
.quest__node.is-lit .quest__gem { background: var(--plays-grad-gold); border-color: var(--plays-light-gold); box-shadow: 0 0 40px -4px rgb(228 168 18 / 0.7); }
.quest__node.is-lit .quest__gem .num { color: var(--void); }
.quest__btn:hover .quest__gem, .quest__btn[aria-expanded="true"] .quest__gem { transform: scale(1.08); }
.quest__name { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); text-transform: uppercase; letter-spacing: -0.02em; }
.quest__btn[aria-expanded="true"] .quest__name { color: var(--plays-light-gold); }
.quest__note { color: var(--on-surface-muted); max-width: 26ch; font-size: 0.9375rem; }
.journey__foot { margin-top: var(--s-8); text-align: center; font-size: 0.875rem; color: var(--on-surface-muted); }
.journey__foot a { color: var(--white); }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--accent-grad); }
.cta-band__inner { display: flex; align-items: center; gap: var(--s-6); padding-block: var(--s-7); flex-wrap: wrap; }
.cta-band img { width: 56px; height: auto; }
.cta-band p { flex: 1; min-width: 240px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.15; }
.cta-band .btn--explore { --btn-fg: var(--white); }
.cta-band .btn__chip { background: var(--white); color: var(--plays-deep-blue); }

.btn--explore .btn__chip { background: var(--white); color: var(--void); }
.btn--ghost { --btn-fg: var(--white); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .cabinet { width: min(78%, 320px); }
  .feature__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .platforms { grid-template-columns: 1fr; }
  .platform { min-height: 180px; }
  .platform__name { margin-top: var(--s-4); }
}
@media (max-width: 640px) {
  .quest { grid-template-columns: 1fr; gap: var(--s-6); }
  .quest__track { left: 46px; right: auto; top: 48px; bottom: 48px; width: 4px; height: auto; }
  .quest__track i { width: 100%; height: var(--fill, 0%); }
  .quest__node { grid-template-columns: 96px 1fr; justify-items: start; text-align: left; column-gap: var(--s-5); }
  .quest__btn { grid-column: 1 / -1; grid-template-columns: 96px 1fr; align-items: center; justify-items: start; column-gap: var(--s-5); }
  .quest__note { grid-column: 2; margin-top: calc(-1 * var(--s-5)); }
  .cabinet__health { left: -10px; }
}
