:root {
  --felt: #07160f;
  --felt-deep: #04110c;
  --felt-mid: #0e3a28;
  --felt-card: #0c2b1e;
  --gold: #f0d48a;
  --gold-deep: #c8963e;
  --cream: #f7f1e4;
  --muted: #c5d2c8;
  --red: #e24b4b;
  --ink: #102018;
  --line: rgba(240, 212, 138, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(36, 122, 78, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(200, 150, 62, 0.12), transparent 40%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(12, 60, 40, 0.5), transparent 50%),
    var(--felt);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus { top: 0.6rem; }

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

.pip-float {
  position: absolute;
  font-size: clamp(8rem, 22vw, 18rem);
  opacity: 0.045;
  line-height: 1;
}

.p1 { top: 8%; left: -2%; }
.p2 { top: 18%; right: -1%; color: var(--red); }
.p3 { bottom: 8%; left: 6%; color: var(--red); }
.p4 { bottom: 4%; right: 4%; }

.scorebug,
main,
.colophon,
.noscript { position: relative; z-index: 1; }

.scorebug {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding: 0.7rem 6vw;
  background: rgba(4, 17, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.bug-live,
.bug-title,
.bug-when {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
}

.bug-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulse 1.6s ease-out infinite;
}

.bug-title {
  flex: 1 1 auto;
  font-size: 1.05rem;
  text-align: center;
}
.bug-when { color: var(--muted); font-size: 0.95rem; }
.clock .bug-when {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

.hero { text-align: center; padding: 1.2rem 0 0.4rem; }

.eyebrow,
.clock-kicker,
.deal-kicker,
.section-head p {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

h1, .deal-title {
  margin: 0.25rem 0 0.4rem;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  letter-spacing: -0.045em;
  line-height: 0.88;
}

h1 em, .deal-title em {
  font-style: italic;
  font-weight: 560;
  color: var(--gold);
}

.lede, .window, .colophon, .status, .noscript {
  color: var(--muted);
}

.lede {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
}

.clock {
  margin: 2rem auto 0;
  max-width: 860px;
  text-align: center;
  padding: 1.4rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 64, 45, 0.55), rgba(6, 20, 14, 0.72));
  box-shadow: var(--shadow);
}

.clock-kicker { margin-top: 0; font-size: 1.05rem; }

.digits {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.25rem, 1.4vw, 0.75rem);
  margin: 0.9rem 0 0.85rem;
}

.digit {
  flex: 1 1 0;
  max-width: 10.5rem;
  padding: 0.55rem 0.35rem 0.7rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.08), transparent 28%),
    linear-gradient(180deg, #164833, #071910);
  border: 1px solid rgba(240, 212, 138, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.num {
  display: block;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 14vw, 7.2rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}

.num.tick { animation: digit-pop 0.28s cubic-bezier(0.2, 1.4, 0.3, 1); }

.digit small,
.chip,
.pip,
.field-count {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.digit small {
  display: block;
  margin-top: 0.15rem;
  color: var(--gold);
  font-size: 0.95rem;
}

.colon {
  align-self: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.35;
  transform: translateY(-0.35rem);
}

.colon.on { opacity: 1; }

.window { margin: 0; font-size: 1rem; }

.deal { padding: 0.4rem 0 0.2rem; }

.deal-title { font-size: clamp(2.8rem, 8vw, 5.4rem); }

.fan {
  display: flex;
  justify-content: center;
  margin-top: 0.4rem;
}

.fan span {
  width: 3.1rem;
  height: 4.4rem;
  margin: 0 -0.35rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(240, 212, 138, 0.3), transparent 40%),
    repeating-linear-gradient(45deg, #123826 0 6px, #0b2418 6px 12px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.fan span:nth-child(1) { transform: rotate(-14deg) translateY(6px); }
.fan span:nth-child(2) { transform: translateY(-4px); background-color: #f7f1e4; }
.fan span:nth-child(3) { transform: rotate(14deg) translateY(6px); }

.field, .rules { margin-top: 3.2rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}

h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 560;
  letter-spacing: -0.03em;
}

.section-head p { font-size: 0.95rem; }

.status { min-height: 1.2rem; margin: 0 0 0.6rem; }

.lineup, .rule-list { list-style: none; margin: 0; padding: 0; }

.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 0.8rem;
}

.seat { position: relative; display: flex; flex-direction: column; min-width: 0; }

.seat:hover,
.seat:focus-within { z-index: 3; }

.toon {
  transform-origin: 50% 92%;
  animation-name: toon-in, toon-idle;
  animation-duration: 1.05s, 1.45s;
  animation-timing-function: cubic-bezier(0.16, 1.55, 0.28, 1), cubic-bezier(0.45, 0.02, 0.55, 1);
  animation-delay: calc(var(--i) * 70ms), calc(1.05s + var(--i) * 70ms);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

.card-face {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(240, 212, 138, 0.16), transparent 42%),
    linear-gradient(180deg, #184e36, #07160f);
  border: 1px solid rgba(240, 212, 138, 0.45);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s cubic-bezier(0.2, 1.6, 0.32, 1);
}

.seat:hover .card-face,
.seat:focus-within .card-face { transform: scale(1.08) rotate(-3.5deg); }

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.card-face.missing::after {
  content: "♠";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: rgba(240, 212, 138, 0.8);
  background:
    repeating-linear-gradient(45deg, rgba(18, 56, 38, 0.2) 0 8px, rgba(8, 28, 18, 0.2) 8px 16px);
}

.card-face.missing img { display: none; }

.chip {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
}

.chip {
  top: 0.55rem;
  left: 0.55rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  background:
    radial-gradient(circle at 35% 30%, #fff8e4, #f0d48a 42%, #a8742a 78%);
  box-shadow: 0 0 0 3px rgba(8, 28, 18, 0.45), 0 4px 8px rgba(0, 0, 0, 0.35);
}

.nameplate {
  margin-top: 0.7rem;
  padding: 0 0.15rem 0 0.65rem;
  border-left: 3px solid var(--gold);
  min-width: 0;
}

.given, .family, .nick { display: block; }

.given {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}

.nick {
  margin-top: 0.18rem;
  color: #ffe3a1;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.family {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seat-skel .card-face,
.rule-skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: sheen 1.3s ease-in-out infinite;
}

.rule-list { display: grid; gap: 0.7rem; }

.rule-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(8, 32, 22, 0.72);
  border: 1px solid rgba(240, 212, 138, 0.18);
}

.rule-no {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.rule-skel { height: 3.2rem; border-radius: 14px; }

.colophon {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.4rem 0 2.4rem;
  border-top: 1px solid rgba(240, 212, 138, 0.18);
}

.colophon p { margin: 0.7rem 0 0; font-size: 0.92rem; }

.noscript {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}

.missing-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 12vh 8vw;
}

.home-link {
  margin-top: 0.6rem;
  color: var(--ink);
  background: var(--gold);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
}

@keyframes digit-pop {
  0% { transform: scaleX(1.25) scaleY(0.7); }
  55% { transform: scaleX(0.94) scaleY(1.08); }
  100% { transform: scale(1); }
}

@keyframes toon-in {
  0% { transform: translateY(130%) scaleX(0.38) scaleY(1.75) rotate(-14deg); opacity: 0; }
  34% { transform: translateY(-22%) scaleX(1.34) scaleY(0.64) rotate(8deg); opacity: 1; }
  52% { transform: translateY(10%) scaleX(0.78) scaleY(1.32) rotate(-6deg); }
  70% { transform: translateY(-12%) scaleX(1.14) scaleY(0.86) rotate(3.5deg); }
  86% { transform: translateY(5%) scaleX(0.94) scaleY(1.1) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(0); }
}

@keyframes toon-idle {
  0%, 100% { transform: translateY(3px) rotate(-2deg) scaleX(1.04) scaleY(0.96); }
  35% { transform: translateY(-8px) rotate(2deg) scaleX(0.96) scaleY(1.05); }
  70% { transform: translateY(2px) rotate(-1.5deg) scaleX(1.05) scaleY(0.95); }
}

@keyframes toon-idle-mobile {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-4px) rotate(0.8deg); }
}

@keyframes sheen {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 720px) {
  .scorebug { padding-inline: 1rem; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .toon {
    animation-name: toon-in, toon-idle-mobile;
    animation-duration: 0.85s, 3.2s;
    animation-timing-function: cubic-bezier(0.16, 1.2, 0.28, 1), ease-in-out;
    animation-delay: calc(var(--i) * 55ms), calc(0.85s + var(--i) * 55ms);
  }

  .seat:hover .card-face,
  .seat:focus-within .card-face { transform: none; }
}

@media (min-width: 900px) {
  .lineup { grid-template-columns: repeat(5, 1fr); gap: 1.35rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .colon { opacity: 1; }
}
