/* UKBT 2025 Wrapped — cinematic slide deck.
   Plain text on black screens; tap to advance scene by scene. */

:root {
  --wx-bg: #000;
  --wx-fg: #f7f7f5;
  --wx-dim: #8b8b8b;
  --wx-pink: #ff4d8d;
  --wx-cyan: #22d3ee;
  --wx-yellow: #f8d210;
  --wx-gold: #ffc83d;
  --wx-silver: #d7dce0;
  --wx-bronze: #cd7f32;
  --wx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

.wx-body {
  margin: 0;
  background: var(--wx-bg);
  color: var(--wx-fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overflow: hidden;
}

#root {
  min-height: 100svh;
}

/* ── Launcher (cinematic home page) ─────────────────────────────────────── */

.wx-home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.wx-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c1c1c;
  padding: calc(14px + env(safe-area-inset-top)) 20px 14px;
}

.wx-nav nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.wx-nav a {
  color: var(--wx-dim);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.wx-nav a:hover {
  color: var(--wx-fg);
}

.wx-nav a.wx-nav-active {
  color: var(--wx-yellow);
}

.wx-launcher {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  gap: 14px;
}

/* Inside the home wrapper the launcher fills the space below the nav. */
.wx-home .wx-launcher {
  min-height: 0;
  flex: 1 1 auto;
}

.wx-launcher-title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wx-launcher-lead {
  margin: 0;
  max-width: 30ch;
  color: var(--wx-dim);
  font-size: 1rem;
  line-height: 1.5;
}

.wx-launcher-form {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: min(420px, 100%);
}

.wx-launcher-form input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #0e0e0e;
  color: var(--wx-fg);
  font-size: 1rem;
}

.wx-launcher-form input:focus {
  outline: none;
  border-color: var(--wx-pink);
}

.wx-launcher-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--wx-dim);
  font-size: 0.9rem;
}

.wx-launcher-status.error {
  color: var(--wx-pink);
}

.wx-launcher-classic {
  margin-top: 8px;
  color: var(--wx-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.wx-launcher-classic:hover {
  text-decoration: underline;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--wx-ease), opacity 0.15s;
}

.wx-btn:active {
  transform: scale(0.97);
}

.wx-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.wx-btn-primary {
  background: linear-gradient(120deg, var(--wx-pink), #ff7a4d);
  color: #fff;
}

.wx-btn-ghost {
  background: transparent;
  border-color: #3a3a3a;
  color: var(--wx-fg);
}

/* ── Stage + scenes ─────────────────────────────────────────────────────── */

.wx-stage {
  position: fixed;
  inset: 0;
  background: var(--wx-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.wx-scene {
  width: min(640px, 100%);
  padding: 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: wx-scene-in 0.6s var(--wx-ease) both;
}

@keyframes wx-scene-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wx-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wx-dim);
  font-weight: 700;
}

.wx-eyebrow--pink {
  color: var(--wx-pink);
}

.wx-num {
  margin: 0;
  font-size: clamp(4.5rem, 22vw, 11rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff 30%, var(--wx-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wx-num--level {
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--wx-yellow), var(--wx-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wx-num--outro {
  font-size: clamp(3rem, 14vw, 6.5rem);
  background: linear-gradient(120deg, var(--wx-pink), #ff7a4d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wx-unit {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 700;
}

.wx-line {
  margin: 6px 0 0;
  font-size: clamp(0.98rem, 3.4vw, 1.2rem);
  color: #d6d6d6;
  line-height: 1.5;
  max-width: 34ch;
}

.wx-line strong {
  color: var(--wx-fg);
}

.wx-quip {
  margin: 10px 0 0;
  font-size: clamp(0.92rem, 3vw, 1.05rem);
  font-style: italic;
  color: var(--wx-dim);
  line-height: 1.5;
  max-width: 36ch;
}

.wx-scene--outro .wx-outro-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  cursor: default;
}

/* ── Podium grid ────────────────────────────────────────────────────────── */

.wx-podium {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wx-podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 26px);
  gap: 7px;
  justify-content: center;
  max-width: 320px;
}

.wx-sq {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #1c1c1c;
  border: 1px solid #2c2c2c;
}

.wx-sq--gold {
  background: linear-gradient(135deg, #ffe27a, var(--wx-gold));
  border-color: var(--wx-gold);
  box-shadow: 0 0 10px rgba(255, 200, 61, 0.5);
}

.wx-sq--silver {
  background: linear-gradient(135deg, #f3f6f8, var(--wx-silver));
  border-color: var(--wx-silver);
}

.wx-sq--bronze {
  background: linear-gradient(135deg, #e0a064, var(--wx-bronze));
  border-color: var(--wx-bronze);
}

.wx-podium-legend {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: var(--wx-dim);
}

.wx-key {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  margin-right: 5px;
  vertical-align: -2px;
}

.wx-key--gold {
  background: var(--wx-gold);
}

.wx-key--silver {
  background: var(--wx-silver);
}

.wx-key--bronze {
  background: var(--wx-bronze);
}

/* ── Chrome ─────────────────────────────────────────────────────────────── */

.wx-chrome {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  cursor: default;
  z-index: 10;
}

.wx-chrome-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #2c2c2c;
  color: var(--wx-fg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.wx-progress {
  position: fixed;
  bottom: calc(46px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.wx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  transition: background 0.3s, transform 0.3s;
}

.wx-dot--active {
  background: var(--wx-pink);
  transform: scale(1.3);
}

.wx-tap-hint {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  animation: wx-fade-hint 2.4s ease-in-out infinite;
}

@keyframes wx-fade-hint {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .wx-scene { animation: none; }
  .wx-tap-hint { animation: none; }
}
