:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f0e9;
  background: #09090a;
  font-synthesis: none;
}
@font-face {
  font-family: Anton;
  src: url("assets/anton.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  background: #141011b8;
  border: 1px solid #ffffff65;
  padding: 0 18px;
  border-radius: 0;
  transition: background 0.2s;
}
button:hover {
  background: #8f111c;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
canvas:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
main {
  height: 100dvh;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: #09090a;
}
.backdrop,
#scene,
.scrim {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.backdrop {
  object-fit: cover;
  filter: brightness(0.7);
}
#scene {
  touch-action: none;
  cursor: crosshair;
}
.scrim {
  pointer-events: none;
  background: linear-gradient(#0008, transparent 25%, transparent 70%, #000b);
}
header,
footer {
  position: absolute;
  left: 4%;
  right: 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
header {
  top: max(28px, env(safe-area-inset-top));
  align-items: flex-start;
}
header button,
footer button {
  pointer-events: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.wordmark {
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.6;
}
.wordmark b {
  font-size: 20px;
  letter-spacing: 0.12em;
}
.edition {
  font-size: 10px;
  letter-spacing: 0.3em;
  padding-top: 15px;
}
.intro {
  position: absolute;
  left: 12%;
  top: 50%;
  transform: translateY(-45%);
  pointer-events: none;
  transition:
    opacity 0.9s,
    transform 1.2s;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  margin: 0 0 25px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(72px, 10.5vw, 172px);
  letter-spacing: -0.065em;
  line-height: 0.85;
  margin: 0;
  position: relative;
}
h1 em {
  font-style: normal;
  color: #f02b36;
}
.arrow {
  font: 400 0.5em Arial;
  position: absolute;
  bottom: 0;
  margin-left: 0.6em;
  color: #f02b36;
}
#instructions {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 35px 0 0;
  color: #e0dbd5;
}
.finale {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 49%;
  transform: translateY(-35%) scale(1.035);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 2s 0.4s,
    transform 3s 0.4s,
    visibility 0s 0s;
}
.finale p {
  font-size: 10px;
  letter-spacing: 0.35em;
  margin: 0 0 32px;
}
.finale h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.06em;
  font-size: clamp(35px, 9.5vw, 155px);
  line-height: 0.9;
  margin: 0;
  text-shadow: 0 4px 40px #120000b0;
}
.finale span,
.finale strong {
  display: block;
}
.finale strong {
  font-weight: 400;
  font-size: 1.34em;
  color: #ff343c;
}
footer {
  bottom: max(25px, env(safe-area-inset-bottom));
  gap: 24px;
}
.meter {
  width: 150px;
}
#progress-label {
  font-size: 9px;
  letter-spacing: 0.17em;
}
.track {
  height: 2px;
  background: #ffffff40;
  margin-top: 12px;
}
#fill {
  height: 100%;
  width: 0;
  background: #f72a39;
  transition: width 0.2s;
}
.fan-note {
  font-size: 10px;
  color: #d0c6c4;
  letter-spacing: 0.02em;
}
progress {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#flare {
  position: absolute;
  pointer-events: none;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  margin: -5px;
  opacity: 0;
  border-radius: 50%;
  background: #fff3dc;
  box-shadow:
    0 0 8px 3px #fff0c8,
    0 0 24px 10px #ff3727,
    0 0 75px 20px #fb071f;
  transition: opacity 0.25s;
  mix-blend-mode: screen;
}
#flare i {
  position: absolute;
  width: 75px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffcfad, transparent);
  left: -32px;
  top: 4px;
  transform: rotate(-30deg);
}
main[data-state="painting"] .intro,
main[data-state="complete"] .intro {
  opacity: 0;
  transform: translateY(-50%);
}
main[data-state="complete"] .finale {
  opacity: 1;
  visibility: visible;
  transform: translateY(-35%) scale(1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#error,
.notice {
  position: absolute;
  bottom: 100px;
  left: 10%;
  right: 10%;
  text-align: center;
  background: #16090a;
  padding: 15px;
  font-size: 14px;
}
main[data-state="loading"] #scene {
  pointer-events: none;
}
@media (max-width: 640px) {
  header,
  footer {
    left: 6%;
    right: 6%;
  }
  .edition {
    display: none;
  }
  .intro {
    left: 8%;
    top: 48%;
  }
  h1 {
    font-size: 24vw;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .finale {
    left: 3%;
    right: 3%;
    top: 48%;
  }
  .finale h2 {
    font-size: 9.6vw;
  }
  .finale strong {
    font-size: 1.8em;
  }
  .finale p {
    font-size: 8px;
    letter-spacing: 0.15em;
  }
  .fan-note {
    position: absolute;
    bottom: 56px;
    margin: 0;
    font-size: 9px;
  }
  .meter {
    width: 130px;
  }
  footer {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Matchday poster direction: oversized, compressed, stark. */
.intro {
  left: 6%;
  top: 50%;
  transform: translateY(-43%);
}
h1,
.finale h2 {
  font-family: Anton, Impact, "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.89;
}
h1 {
  font-size: clamp(75px, 12.5vw, 190px);
}
h1 em {
  color: transparent;
  -webkit-text-stroke: 1.5px #f04343;
}
.eyebrow {
  letter-spacing: 0.15em;
  font-size: 9px;
  margin-bottom: 28px;
}
#instructions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  margin-top: 30px;
}
.strike {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #a75454;
  color: #ff353f;
  font-size: 25px;
}
.finale {
  top: 48%;
  z-index: 2;
  transition:
    opacity 1.3s 0.2s,
    transform 1.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.finale h2 {
  font-size: clamp(35px, 10.8vw, 170px);
  text-shadow: 0 5px 70px #0008;
}
.finale strong {
  font-size: 1.8em;
  font-weight: 900;
  color: #fff0de;
  letter-spacing: -0.015em;
}
.finale p {
  color: #ffd7d2;
  letter-spacing: 0.24em;
}
#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
header,
footer {
  z-index: 5;
}
.actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
#save {
  background: #e62830;
  border-color: #ff6868;
  color: white;
}
#flare {
  z-index: 4;
  mix-blend-mode: normal;
}
#flare::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 10px;
  height: 55px;
  background: linear-gradient(90deg, #441519, #d7433a 45%, #782321);
  border: 1px solid #ffbda04a;
  transform: rotate(-35deg);
  transform-origin: top;
  border-radius: 1px;
  box-shadow: 0 2px 8px #000;
}
@media (max-width: 640px) {
  .intro {
    left: 6%;
    right: 4%;
  }
  h1 {
    font-size: 18.5vw;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 0.06em;
  }
  .finale h2 {
    font-size: 10.3vw;
  }
  .finale strong {
    font-size: 2.1em;
  }
  .finale p {
    font-size: 8px;
  }
  .actions {
    gap: 6px;
  }
  footer button {
    padding: 0 10px;
    font-size: 9px;
  }
  .meter {
    width: 85px;
  }
  .fan-note {
    bottom: 60px;
  }
  #progress-label {
    font-size: 7px;
  }
  .edition {
    display: none;
  }
}
