/* UniGames, one viewport over the video. */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --team-blue: #2f6bff;
  --team-green: #23b14d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100vh;
  height: 100dvh;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ── Background video ── */
.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Pixel plasma canvas, rendered tiny and upscaled into fat pixels */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 0;
}

.bg-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(0, 0, 0, 0.42),
    rgba(0, 0, 0, 0.16) 55%,
    rgba(0, 0, 0, 0.34)
  );
}

/* ── Page frame ── */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* ── Header ── */
.site-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.nav-pill {
  background: #fff;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  flex: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: stretch;
}

.nav-link {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow:
    -5px 0 0 #000,
    5px 0 0 #000;
}

.signin {
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 20px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.signin:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.x-btn {
  width: clamp(44px, 5.2vw, 48px);
  height: clamp(44px, 5.2vw, 48px);
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: clamp(17px, 2vw, 20px);
  box-shadow: var(--nav-shadow);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.x-btn:hover {
  transform: translateY(-2px) rotate(-8deg) scale(1.08);
}

.x-btn:active {
  transform: translateY(1px) scale(0.96);
}

.burger {
  display: none;
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

/* Trust row: the golden rule of the game */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.avatar i {
  font-size: calc(var(--trust-size) * 0.34);
  color: #111;
}

.avatar .flag-blue {
  color: var(--team-blue);
}

.avatar .flag-green {
  color: var(--team-green);
}

.avatar.a1 {
  z-index: 1;
}

.avatar.a2 {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 2;
}

.avatar.a3 {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 4;
}

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

.avatar.a2:hover {
  transform: translateY(-4px);
}

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

.trust-pill {
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
}

.headline.anim {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.headline .line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline .l1 {
  animation-delay: 0.12s;
}

.headline .l2 {
  animation-delay: 0.3s;
}

/* Subhead */
.subhead {
  max-width: min(500px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  font-weight: 400;
  margin-top: clamp(10px, 1.6vh, 16px);
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(18px, 2.8vh, 30px);
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(15.5px, 1.8vw, 18px);
  padding: clamp(14px, 2vh, 18px) clamp(32px, 4.5vw, 46px);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  animation: revealPulse 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.cta:active {
  transform: translateY(2px) scale(0.99);
}

.cta:hover {
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.2);
}

/* ── Stats footer ── */
.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  color: #fff;
  line-height: 1;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
}

/* ── Shared entrance ── */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 0 22px rgba(255, 255, 255, 0.32),
      0 0 44px rgba(255, 255, 255, 0.12);
  }
  80% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.3),
      0 0 34px rgba(255, 255, 255, 0.5),
      0 0 64px rgba(255, 255, 255, 0.22);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Mobile menu pieces ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 40;
  animation: overlayIn 0.28s ease both;
}

.overlay[hidden],
.sheet[hidden] {
  display: none;
}

.sheet {
  position: fixed;
  top: 86px;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 50;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-link {
  position: relative;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--nav-text);
  text-align: center;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

.sheet-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sheet-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow:
    -5px 0 0 #000,
    5px 0 0 #000;
}

.sheet-signin {
  margin-top: 10px;
  width: 100%;
  padding: 14px 0;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: 15px;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Mobile ≤720px ── */
@media (max-width: 720px) {
  .nav-pill,
  .signin,
  .x-btn {
    display: none;
  }

  .site-header {
    justify-content: space-between;
    max-width: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    transition: background 0.25s ease;
  }

  .burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    margin: 2.5px 0;
    transition:
      transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.2s ease,
      background 0.25s ease;
  }

  .burger.open {
    background: #fff;
  }

  .burger.open span {
    background: #000;
  }

  .burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .burger.open span:nth-child(2) {
    opacity: 0;
  }

  .burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

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

  .trust-pill {
    font-size: 12px;
  }
}

/* ── ≤420px ── */
@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

/* ── Short viewports ── */
@media (max-height: 700px) {
  .trust {
    margin-bottom: 10px;
  }

  .subhead {
    margin-top: 8px;
  }

  .cta {
    margin-top: 12px;
  }
}

/* ══════════ Sub pages (How to play, Scoreboard) ══════════ */

.subpage {
  overflow-y: auto;
  overflow-x: hidden;
}

.subpage .page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  justify-content: flex-start;
}

.subpage .bg-canvas,
.subpage .bg-shade {
  position: fixed;
}

.subpage .bg-shade {
  background: rgba(6, 6, 8, 0.78);
}

.sub-main {
  width: 100%;
  max-width: 860px;
  padding: clamp(28px, 5vh, 56px) 0 64px;
}

.sub-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(26px, 4.6vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
}

.sub-lede {
  max-width: min(560px, 92%);
  margin: 14px auto 0;
  text-align: center;
  color: #d0d0d0;
  opacity: 0.85;
  line-height: 1.55;
  font-size: clamp(14px, 1.5vw, 16.5px);
}

.section {
  margin-top: clamp(28px, 4.5vh, 44px);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(19px, 2.6vw, 27px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section p {
  color: #c9c9c9;
  line-height: 1.62;
  font-size: clamp(14px, 1.5vw, 16px);
  margin-bottom: 10px;
  max-width: 720px;
}

.section strong {
  color: #fff;
  font-weight: 600;
}

.card {
  background: rgba(20, 20, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: clamp(16px, 2.4vw, 24px);
}

/* Teams board */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(20px, 3.5vh, 32px);
}

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

.team.blue {
  --edge: #1b47c2;
  border-color: rgba(47, 107, 255, 0.45);
}

.team.green {
  --edge: #157a36;
  border-color: rgba(35, 177, 77, 0.45);
}

.team::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
}

.team.blue::before {
  background: var(--team-blue);
}

.team.green::before {
  background: var(--team-green);
}

.team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.team-flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.team:hover .team-flag {
  transform: rotate(-10deg) scale(1.1) translateY(-2px);
}

.team.blue .team-flag i {
  color: var(--team-blue);
}

.team.green .team-flag i {
  color: var(--team-green);
}

.team-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: -0.02em;
  color: #fff;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: clamp(12.5px, 1.4vw, 14px);
  color: var(--muted);
}

.team-row b {
  color: #fff;
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0;
}

.lead-track {
  margin-top: 12px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.lead-fill {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.team.blue .lead-fill {
  background: var(--team-blue);
}

.team.green .lead-fill {
  background: var(--team-green);
}

.join {
  margin-top: 18px;
  width: 100%;
  padding: 15px 0;
  border-radius: 18px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 6px 0 var(--edge, #111);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.join:hover {
  transform: translateY(-2px) rotate(-1.2deg);
  box-shadow: 0 8px 0 var(--edge, #111);
  filter: brightness(1.08);
}

.join:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--edge, #111);
}

.team.blue .join {
  background: var(--team-blue);
}

.team.green .join {
  background: var(--team-green);
}

.join.picked {
  outline: 3px solid #ffc93c;
  outline-offset: 3px;
}

.vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 27px);
  color: #111;
  background: #ffc93c;
  border: 3px solid #111;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.45);
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.board-wrap:hover .vs {
  transform: translate(-50%, -50%) rotate(6deg) scale(1.08);
}

/* The reveal after connecting: the honest coin-rimmed banner */
.launch-banner {
  margin-top: 20px;
  text-align: center;
  background: rgba(20, 20, 22, 0.94);
  border: 2px solid #ffc93c;
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.launch-banner[hidden] {
  display: none;
}

.launch-banner h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: #ffc93c;
  font-size: clamp(18px, 2.8vw, 27px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.launch-banner p {
  color: #d0d0d0;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto;
}

.board-wrap {
  position: relative;
}

.status-line {
  margin-top: 14px;
  text-align: center;
  color: #d0d0d0;
  font-size: clamp(13px, 1.4vw, 15px);
  min-height: 22px;
}

/* Pool row on app page */
.pool {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(20px, 3.5vh, 30px);
}

.pool .stat {
  background: rgba(20, 20, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 18px 12px;
}

/* Rules strip */
.rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(20px, 3.5vh, 30px);
}

.rule {
  text-align: center;
}

.rule .glyph {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(20px, 2.6vw, 28px);
  display: block;
  margin-bottom: 8px;
}

.rule p {
  color: #c9c9c9;
  font-size: clamp(12.5px, 1.4vw, 14px);
  line-height: 1.5;
  margin: 0;
}

.rules.four {
  grid-template-columns: repeat(2, 1fr);
}

.rules.four .rule {
  text-align: left;
  background: rgba(20, 20, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: clamp(16px, 2.2vw, 22px);
}

.rules.four .rule h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.loop-line {
  font-family: var(--font-display);
  color: #fff;
  text-align: center;
  font-size: clamp(13px, 1.9vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.8;
  padding: clamp(14px, 2.2vw, 22px);
  overflow-x: auto;
  white-space: nowrap;
}

.loop-line .step-blue {
  color: var(--team-blue);
}

.loop-line .step-green {
  color: var(--team-green);
}

.loop-line .step-gold {
  color: #ffc93c;
}

@media (max-width: 720px) {
  .rules.four {
    grid-template-columns: 1fr;
  }
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.cover-line {
  margin-top: clamp(26px, 4vh, 40px);
  text-align: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: -0.02em;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .board {
    grid-template-columns: 1fr;
  }

  .vs {
    display: none;
  }

  .pool,
  .rules {
    grid-template-columns: 1fr;
  }
}

/* ══════════ Idle life: everything breathes ══════════ */

@keyframes bobS {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}

@keyframes bobRot {
  from {
    transform: rotate(-7deg) translateY(0);
  }
  to {
    transform: rotate(7deg) translateY(-2px);
  }
}

@keyframes floatY {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}

@keyframes vsWobble {
  from {
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  }
  to {
    transform: translate(-50%, -50%) rotate(-2deg) scale(1.06);
  }
}

@keyframes glowPulse {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@keyframes chase {
  0%,
  55%,
  100% {
    opacity: 0.3;
  }
  25% {
    opacity: 1;
  }
}

.logo img {
  animation: bobS 3.6s ease-in-out infinite alternate;
}

.avatar .avatar-inner {
  animation: bobS 3.1s ease-in-out infinite alternate;
}

.avatar.a2 .avatar-inner {
  animation-delay: 0.4s;
  animation-duration: 3.5s;
}

.avatar.a3 .avatar-inner {
  animation-delay: 0.8s;
  animation-duration: 2.8s;
}

.headline {
  animation: floatY 5.5s ease-in-out 1.2s infinite alternate;
}

.cta {
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  box-shadow: 0 0 36px 8px rgba(255, 255, 255, 0.38);
  opacity: 0.5;
  pointer-events: none;
  animation: glowPulse 2.4s ease-in-out infinite alternate;
}

.stat-icon {
  display: inline-block;
  animation: bobRot 5.2s ease-in-out infinite alternate;
}

.stat:nth-child(2) .stat-icon {
  animation-delay: 0.6s;
}

.stat:nth-child(3) .stat-icon {
  animation-delay: 1.2s;
}

.stat:nth-child(4) .stat-icon {
  animation-delay: 1.8s;
}

.vs {
  animation: vsWobble 3.2s ease-in-out infinite alternate;
}

.team-flag {
  animation: bobS 2.7s ease-in-out infinite alternate;
}

.team.green .team-flag {
  animation-delay: 0.6s;
}

.loop-line .step-gold {
  display: inline-block;
  animation: chase 1.8s ease-in-out infinite;
}

.loop-line .step-gold:nth-of-type(2) {
  animation-delay: 0.22s;
}

.loop-line .step-gold:nth-of-type(3) {
  animation-delay: 0.44s;
}

.loop-line .step-gold:nth-of-type(4) {
  animation-delay: 0.66s;
}

.loop-line .step-gold:nth-of-type(5) {
  animation-delay: 0.88s;
}

/* Scroll reveal on sub pages */
.rv {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.rv.rv-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .anim,
  .headline,
  .headline .line,
  .cta,
  .cta::before,
  .overlay,
  .sheet,
  .sheet-link,
  .sheet-signin,
  .logo img,
  .avatar .avatar-inner,
  .stat-icon,
  .vs,
  .team-flag,
  .loop-line .step-gold {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .vs {
    transform: translate(-50%, -50%) rotate(-8deg) !important;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .headline {
    color: #fff;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
