/* =========================================================================
   AWS conference kiosk (presentation mockup)
   Direction: event keynote in the AWS visual language. Squid ink stage,
   AWS orange, the AWS logo, and service icons drawn as the gradient
   category squares used in AWS architecture diagrams.
   ========================================================================= */

:root {
  --font: "Inter", "Amazon Ember", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ink-950: #0b1119;
  --ink-900: #0f1b2a;
  --squid: #232f3e;
  --ink-700: #31465f;
  --line: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: #a8b3c2;

  --orange: #ff9900;
  --orange-press: #ec7211;

  /* AWS architecture-icon category gradients. */
  --cat-compute:   linear-gradient(225deg, #f78e04 0%, #d05c17 100%);
  --cat-storage:   linear-gradient(225deg, #60a337 0%, #277116 100%);
  --cat-database:  linear-gradient(225deg, #4d72f3 0%, #3334b9 100%);
  --cat-analytics: linear-gradient(225deg, #945df2 0%, #5a30b5 100%);
  --cat-security:  linear-gradient(225deg, #f54749 0%, #c7131f 100%);
  --cat-ml:        linear-gradient(225deg, #4ab29a 0%, #116d5b 100%);
  --cat-general:   linear-gradient(225deg, #4a5d75 0%, #232f3e 100%);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--ink-900);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body, button, h1, h2, strong, span, p, li {
  -webkit-user-select: none;
  user-select: none;
}

img { -webkit-user-drag: none; user-drag: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

h1:focus, h2:focus { outline: none; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: clamp(12px, 0.8vw, 15px);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.orange { color: var(--orange); }

.aws-logo {
  display: block;
  width: auto;
  aspect-ratio: 304 / 182;
  color: #fff;
}

/* ------------------------------------------------- category icon squares */

/* The rounded gradient square with a white glyph that AWS uses for every
   service in its architecture diagrams. */
.svc {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 0.16em;
  color: #fff;
  background: var(--cat-general);
}

.svc .icon { width: 0.62em; height: 0.62em; stroke-width: 1.6; }

.svc.compute   { background: var(--cat-compute); }
.svc.storage   { background: var(--cat-storage); }
.svc.database  { background: var(--cat-database); }
.svc.analytics { background: var(--cat-analytics); }
.svc.security  { background: var(--cat-security); }
.svc.ml        { background: var(--cat-ml); }

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

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-900);
}

.screen.is-active { display: flex; animation: stage-in 480ms var(--ease) both; }

/* Squid-ink stage with a faint technical grid and one warm light. */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 65% at 100% 0%, rgba(255, 153, 0, 0.14) 0%, transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(77, 114, 243, 0.12) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 64px 64px;
  pointer-events: none;
}

.top-bar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 96px;
  padding: 0 clamp(24px, 3vw, 64px);
  background: var(--squid);
  border-bottom: 1px solid var(--line);
}

.top-bar .aws-logo { height: 44px; }

.crumbs { display: flex; align-items: center; gap: 12px; }
.crumbs .sep { color: var(--ink-700); }

.top-bar-spacer { flex: 1; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 600;
  transition: transform 160ms var(--ease), border-color 160ms ease;
}

.ghost-button .icon { font-size: 1.3em; }
.ghost-button:active { transform: scale(0.95); border-color: var(--orange); }

.orange-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink-950);
  font-size: clamp(16px, 1.15vw, 21px);
  font-weight: 700;
  transition: transform 160ms var(--ease), background-color 160ms ease;
}

.orange-button .icon { font-size: 1.3em; stroke-width: 2.2; }
.orange-button:active { transform: scale(0.95); background: var(--orange-press); }

/* ---------------------------------------------------------------- welcome */

.welcome-screen { justify-content: space-between; }

.ticker {
  position: relative;
  flex: none;
  overflow: hidden;
  padding: clamp(14px, 2vh, 24px) 0;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 16px;
  animation: ticker 70s linear infinite;
}

.ticker.reverse .ticker-track { animation-direction: reverse; animation-duration: 85s; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(35, 47, 62, 0.75);
  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 600;
}

.chip .svc { font-size: clamp(40px, 3vw, 54px); }

.welcome-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 0 clamp(24px, 5vw, 120px);
}

.welcome-copy { display: flex; flex-direction: column; gap: clamp(18px, 2.4vh, 32px); }

.welcome-copy .aws-logo { align-self: flex-start; height: clamp(80px, 8vw, 140px); }

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 136px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.welcome-copy p {
  margin: 0;
  max-width: 30em;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.45;
  color: var(--muted);
}

.live { display: inline-flex; align-items: center; gap: 12px; }

.live i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  animation: live 1.8s ease-out infinite;
}

.start {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(200px, 16vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-950);
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  box-shadow: 0 0 80px rgba(255, 153, 0, 0.35);
  transition: transform 200ms var(--ease);
}

.start:active { transform: scale(0.94); }

.start::before,
.start::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 153, 0, 0.55);
  border-radius: 50%;
  animation: ring 2.6s ease-out infinite;
}

.start::after { animation-delay: 1.3s; }

.start .icon { display: block; margin: 8px auto 0; font-size: 1.4em; stroke-width: 2.4; }

.welcome-foot {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 0 clamp(24px, 5vw, 120px) 4px;
}

/* ----------------------------------------------------------------- agenda */

.agenda {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vh, 20px);
  padding: clamp(20px, 3.4vh, 52px) clamp(24px, 5vw, 120px);
  overflow-y: auto;
}

.agenda-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(6px, 1.4vh, 20px);
}

.agenda-head h1 {
  margin: 0;
  font-size: clamp(44px, 4.4vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.agenda-row {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.4vw, 48px);
  min-height: 150px;
  padding: 0 clamp(20px, 2vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(35, 47, 62, 0.72);
  text-align: left;
  overflow: hidden;
  transition: transform 200ms var(--ease), border-color 200ms ease;
  animation: slide-in 600ms var(--ease) both;
}

.agenda-row:nth-of-type(2) { animation-delay: 80ms; }
.agenda-row:nth-of-type(3) { animation-delay: 160ms; }

.agenda-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform 220ms var(--ease);
}

.agenda-row:active { transform: scale(0.99); border-color: rgba(255, 153, 0, 0.6); }
.agenda-row:active::after { transform: scaleY(1); }

.agenda-icons { display: flex; gap: 10px; font-size: clamp(56px, 4.6vw, 84px); }

.agenda-row .mono { display: block; margin-bottom: 8px; color: var(--orange); }

.agenda-row strong {
  display: block;
  font-size: clamp(30px, 2.8vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.agenda-row .agenda-sub {
  display: block;
  margin-top: 8px;
  font-size: clamp(16px, 1.15vw, 22px);
  color: var(--muted);
}

.agenda-go {
  display: grid;
  place-items: center;
  width: clamp(64px, 5vw, 88px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-950);
  font-size: clamp(28px, 2.2vw, 38px);
}

.agenda-go .icon { stroke-width: 2.2; }

/* ------------------------------------------------------------------ track */

.deck {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

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

.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 96px);
  padding: clamp(20px, 3vh, 48px) clamp(24px, 5vw, 120px);
  scroll-snap-align: start;
}

.slide-copy { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); min-width: 0; }

.slide-head { display: flex; align-items: center; gap: 18px; }
.slide-head .svc { font-size: clamp(56px, 4.2vw, 76px); }

.slide h2 {
  margin: 0;
  font-size: clamp(52px, 5.4vw, 104px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.slide-sub {
  margin: 0;
  max-width: 28em;
  font-size: clamp(18px, 1.4vw, 28px);
  line-height: 1.4;
  color: var(--muted);
}

/* Service rows read like the AWS console's service list. */
.services { display: grid; gap: 10px; max-width: 640px; }

.service-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(35, 47, 62, 0.7);
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 500;
}

.service-row .svc { font-size: 40px; }

.slide-actions { display: flex; gap: 14px; margin-top: 6px; }

.slide-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 56vh);
  aspect-ratio: 1;
}

.slide-art .halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 153, 0, 0.22) 0%, rgba(255, 153, 0, 0.04) 55%, transparent 70%);
}

.slide-art .orbit {
  position: absolute;
  inset: 4%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: spin 50s linear infinite;
}

.slide-art .orbit.inner { inset: 18%; animation-duration: 34s; animation-direction: reverse; }

.slide-art .svc {
  position: relative;
  font-size: clamp(150px, 15vw, 260px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* Slides with a video show it as a framed screen instead of the icon art. */
.slide-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: transform 200ms var(--ease);
}

.slide-video:active { transform: scale(0.98); }
.slide-video img { width: 100%; height: 100%; object-fit: cover; }

.slide-video .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-950);
  font-size: 40px;
}

.slide-video .play .icon { fill: currentColor; stroke: none; margin-left: 6px; }

.slide-video .mono {
  position: absolute;
  left: 18px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(15, 27, 42, 0.85);
  color: #fff;
}

.deck-nav {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 120px) clamp(20px, 3vh, 40px);
}

.progress { flex: 1; display: flex; gap: 8px; }

.progress button { flex: 1; height: 28px; position: relative; }

.progress button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
}

.progress button.is-done::before { background: rgba(255, 153, 0, 0.45); }
.progress button.is-current::before { background: var(--orange); height: 6px; }

.round-button {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 30px;
  transition: transform 160ms var(--ease), opacity 160ms ease;
}

.round-button:active { transform: scale(0.92); }
.round-button:disabled { opacity: 0.25; }

/* ------------------------------------------------------------------ reels */

.reels {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 24px);
  padding: clamp(16px, 2.4vh, 32px) clamp(24px, 5vw, 120px);
}

.reel-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 420px);
  gap: clamp(20px, 2.4vw, 48px);
  align-items: end;
}

.reel-player {
  height: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.reel-player iframe { display: block; width: 100%; height: 100%; border: 0; }

.reel-info { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }

.reel-info h2 {
  margin: 0;
  font-size: clamp(26px, 2vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.filmstrip {
  flex: none;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

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

.frame {
  flex: 0 0 clamp(220px, 15vw, 290px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--squid);
  text-align: left;
  transition: transform 160ms var(--ease);
}

.frame:active { transform: scale(0.97); }
.frame.is-playing { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

.frame-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.frame-thumb img { width: 100%; height: 100%; object-fit: cover; }

.frame strong { font-size: clamp(13px, 0.9vw, 16px); font-weight: 600; line-height: 1.3; }

.video-offline {
  display: grid;
  place-content: center;
  gap: 10px;
  height: 100%;
  padding: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------- detail takeover */

.takeover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--ink-900);
  animation: takeover-in 460ms var(--ease) both;
}

.takeover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(255, 153, 0, 0.16) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 64px 64px;
  pointer-events: none;
}

.takeover-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 96px);
  padding: clamp(20px, 3.4vh, 52px) clamp(24px, 5vw, 120px);
}

.takeover-right { min-height: 0; overflow-y: auto; }

.takeover-left { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 24px); min-height: 0; }

.takeover-left .svc { font-size: clamp(80px, 6vw, 112px); }

.takeover h2 {
  margin: 0;
  font-size: clamp(48px, 4.6vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.takeover-sub {
  margin: 0;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.45;
  color: var(--muted);
}

.takeover-cue {
  display: grid;
  grid-template-columns: clamp(150px, 12vw, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--squid);
  text-align: left;
}

.takeover-cue:active { transform: scale(0.98); }

.takeover-cue .frame-thumb { position: relative; }

.takeover-cue .play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink-950);
  font-size: 18px;
}

.takeover-cue .play .icon { fill: currentColor; stroke: none; margin-left: 3px; }

.takeover-cue strong { display: block; margin-top: 4px; font-size: clamp(15px, 1.05vw, 19px); font-weight: 600; line-height: 1.3; }

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

.takeover-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 12px 22px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(35, 47, 62, 0.75);
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  animation: slide-in 520ms var(--ease) both;
}

.takeover-list li .svc { font-size: 54px; }

.takeover-list li:nth-child(2) { animation-delay: 50ms; }
.takeover-list li:nth-child(3) { animation-delay: 100ms; }
.takeover-list li:nth-child(4) { animation-delay: 150ms; }
.takeover-list li:nth-child(5) { animation-delay: 200ms; }
.takeover-list li:nth-child(6) { animation-delay: 250ms; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.team-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--squid);
}

.team-card .svc { font-size: 52px; }
.team-card strong { display: block; margin-top: 14px; font-size: clamp(16px, 1.15vw, 21px); }
.team-card span { display: block; margin-top: 4px; font-size: clamp(13px, 0.9vw, 16px); color: var(--muted); }

/* ---------------------------------------------------------------- theater */

.theater {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vh, 40px);
  background: rgba(11, 17, 25, 0.94);
  animation: fade-in 200ms ease both;
}

.theater-inner { display: flex; flex-direction: column; gap: 14px; max-width: 100%; }

.theater-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.theater-title { margin: 0; font-size: clamp(18px, 1.5vw, 30px); font-weight: 700; }

.theater-frame {
  height: min(76vh, calc(94vw * 9 / 16));
  aspect-ratio: 16 / 9;
  max-width: 94vw;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.theater-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------- countdown banner */

.countdown {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 96px;
  background: var(--orange);
  color: var(--ink-950);
  animation: drop-in 360ms var(--ease) both;
}

.countdown strong { font-size: clamp(22px, 1.8vw, 34px); font-weight: 800; letter-spacing: -0.02em; }

.countdown button {
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--squid);
  color: #fff;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
}

/* ----------------------------------------------------------- build stamp */

.build-stamp {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 70;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(168, 179, 194, 0.5);
  pointer-events: none;
}

#debug-log {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  max-height: 40vh;
  overflow-y: auto;
  padding: 12px 16px;
  background: rgba(120, 12, 24, 0.94);
  color: #fff;
  font: 16px/1.4 monospace;
}

/* -------------------------------------------------------------- animation */

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

@keyframes stage-in {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translate3d(-32px, 0, 0); }
  to   { opacity: 1; transform: none; }
}

@keyframes takeover-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes drop-in {
  from { transform: translate3d(0, -100%, 0); }
  to   { transform: none; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes ring {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.55); opacity: 0; }
}

@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(255, 153, 0, 0); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- responsive */

@media (max-aspect-ratio: 1/1) {
  .welcome-stage { flex-direction: column; justify-content: center; }
  .slide { grid-template-columns: 1fr; align-content: center; }
  .slide-art { width: min(100%, 30vh); }
  .takeover-body { grid-template-columns: 1fr; overflow-y: auto; }
  .reel-stage { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
