:root {
  --night: #0b0b0d;          /* the page */
  --night-up: #16161a;       /* the light at the top of the page */
  --chalk: #f1ede4;          /* words and hairlines */
  --chalk-soft: rgba(241, 237, 228, 0.58);
  --chalk-faint: rgba(241, 237, 228, 0.18);
  --accent: #f2a93b;         /* the only accent: tungsten amber, the take number and the lit play button */
  --sans: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;
  --card-w: min(620px, 80vw, 92vh);   /* the card, measured on width and height */
}

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

html, body { height: 100%; }

body {
  background: var(--night);
  color: var(--chalk);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vh, 28px);
  padding: clamp(10px, 3vh, 36px) clamp(12px, 4vw, 40px);
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, var(--night-up) 0%, var(--night) 62%);
}

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(9px, min(2.6vw, 2.4vh), 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chalk-soft);
}
.eyebrow span { color: var(--chalk-faint); margin-left: 1.2em; }

.scene {
  position: relative;
  width: var(--card-w);
  padding-top: calc(var(--card-w) * 0.13);   /* room for the slate above the card */
}

/* the card: a 2.39:1 frame inside 16:9, with letterbox bars */
.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52vh;
  border: 0;
  border-radius: clamp(10px, 2vw, 18px);
  overflow: hidden;
  cursor: pointer;
  background: #050506;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(241, 237, 228, 0.08);
  -webkit-tap-highlight-color: transparent;
}
.card:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }

.frame { position: absolute; inset: 0; overflow: hidden; }
.frame__sky {
  position: absolute; inset: -10% -10% 40% -10%;
  background: linear-gradient(180deg, #1b2230 0%, #4a3b3a 62%, #a5643a 100%);
}
.frame__sun {
  position: absolute; left: 58%; top: 52%;
  width: 34%; aspect-ratio: 1;
  margin: -17% 0 0 -17%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.95) 0%, rgba(242, 169, 59, 0.55) 22%, rgba(242, 169, 59, 0.12) 48%, rgba(242, 169, 59, 0) 70%);
}
.frame__sea {
  position: absolute; left: -10%; right: -10%; top: 58%; bottom: -10%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 214, 150, 0.0) 0 5px, rgba(255, 214, 150, 0.07) 5px 6px),
    linear-gradient(180deg, #3a2c2a 0%, #141418 70%);
}
.frame__line { position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: rgba(255, 214, 150, 0.35); }
.frame__flash { position: absolute; inset: 0; background: #fff; opacity: 0; mix-blend-mode: overlay; }
.frame__shine {
  position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
}

.bars .bar { position: absolute; left: 0; right: 0; height: 12.6%; background: #050506; }
.bar--top { top: 0; }
.bar--bottom { bottom: 0; }

.play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(40px, calc(var(--card-w) * 0.13), 68px);
  aspect-ratio: 1;
  margin: calc(clamp(40px, calc(var(--card-w) * 0.13), 68px) / -2) 0 0 calc(clamp(40px, calc(var(--card-w) * 0.13), 68px) / -2);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11, 11, 13, 0.42);
  box-shadow: 0 0 0 1px rgba(241, 237, 228, 0.5) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.play svg { width: 44%; height: 44%; fill: var(--chalk); }
.play__ring { position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 1px var(--accent); opacity: 0; }

.hud {
  position: absolute; left: 5%; right: 5%; bottom: 3.4%;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: clamp(8px, calc(var(--card-w) * 0.02), 11px);
  color: var(--chalk-soft);
  letter-spacing: 0.04em;
}
.track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: var(--chalk-faint); }
.track__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.track__head { position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--chalk); opacity: 0; }

/* the slate leans on the top-left corner of the card */
.slate {
  position: absolute;
  left: -3%;
  top: 0;
  width: 34%;
  z-index: 2;
  rotate: -7deg;
  transform-origin: 30% 100%;
  pointer-events: none;
}
.slate__svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)); }
.slate__shadow {
  position: absolute; left: 6%; right: 6%; bottom: -6%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  z-index: -1;
}

.board__edge, .stick__edge { fill: none; stroke: rgba(241, 237, 228, 0.22); stroke-width: 1; }
.hair { stroke: rgba(241, 237, 228, 0.5); stroke-width: 1; }
.hair--soft { stroke: rgba(241, 237, 228, 0.2); }
.hinge { fill: #26262a; stroke: rgba(241, 237, 228, 0.5); stroke-width: 1; }
.hinge__dot { fill: var(--chalk); }
.field-label { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.14em; fill: var(--chalk-soft); }
.field-value { font-family: var(--sans); font-size: 12px; font-weight: 600; font-stretch: 112%; letter-spacing: 0.04em; fill: var(--chalk); }
.field-num { font-family: var(--sans); font-size: 21px; font-weight: 640; font-stretch: 88%; fill: var(--chalk); }
.field-num--accent { fill: var(--accent); }

.caption { text-align: center; display: grid; gap: clamp(4px, 1vh, 8px); }
.title {
  font-weight: 560;
  font-stretch: 112%;
  font-size: clamp(18px, min(5.4vw, 5.2vh), 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.meta {
  font-family: var(--mono);
  font-size: clamp(9px, min(2.6vw, 2.3vh), 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9em;
}
.meta span { width: 1px; height: 0.9em; background: var(--chalk-faint); }

@media (hover: hover) {
  .card:hover .play { box-shadow: 0 0 0 1px rgba(241, 237, 228, 0.8) inset; }
}
