:root {
  --red: #b80b12;
  --bright-red: #e51820;
  --ink: #090909;
}

* { box-sizing: border-box; }
html { background: #fafbfc; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: start center;
  color: var(--ink);
  background: #fafbfc;
  font-family: "DM Sans", Arial, sans-serif;
}

button, a { -webkit-tap-highlight-color: transparent; }

.phone-card {
  position: relative;
  width: min(100%, 460px);
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: #e8e6e6;
  box-shadow: 0 12px 36px rgba(16, 20, 24, .08);
}

.cover,
.details {
  position: absolute;
  inset: 0;
  transition: transform .75s cubic-bezier(.77, 0, .18, 1), opacity .45s ease;
}

.cover { z-index: 2; background: #e8e6e6; }

.credit-footer {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  background: #050505;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.credit-footer span {
  color: #ff6268;
  font-size: inherit;
  font-weight: inherit;
}

.countdown {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f4f3f3;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1), opacity .25s ease, visibility .25s ease;
}

.countdown.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.countdown__checker {
  position: absolute;
  inset: 0 0 auto;
  height: 44px;
  background: conic-gradient(from 90deg, #090909 25%, #fff 0 50%, #090909 0 75%, #fff 0) 0 0 / 36px 36px;
}

.countdown__content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.countdown p {
  margin: 0 0 18px;
  color: var(--bright-red);
  font: italic 900 26px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 4px;
}

.countdown span {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 6px solid var(--bright-red);
  border-radius: 50%;
  color: #fff;
  background: #090909;
  box-shadow: 0 0 0 10px rgba(229,24,32,.15), 0 12px 30px rgba(0,0,0,.25);
  font: italic 900 72px/1 "Barlow Condensed", Impact, sans-serif;
  text-align: center;
  text-indent: -5px;
}

.countdown small {
  margin-top: 22px;
  color: #696969;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.countdown.tick span { animation: countdown-pop .68s cubic-bezier(.2,.9,.25,1) both; }

.stage-credit {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 42px;
  color: #fff;
  background: #050505;
  border-top: 3px solid var(--bright-red);
  text-decoration: none;
  font: 600 12px/1 "DM Sans", Arial, sans-serif;
}

.stage-credit b { color: #ff6268; font-size: inherit; }
.stage-credit:hover b { color: #fff; }
.stage-credit:focus-visible { outline: 3px solid #ff6268; outline-offset: -5px; }

.race-screen {
  position: absolute;
  z-index: 21;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 32.7%, rgba(255,255,255,.65) 32.7% 33.3%, transparent 33.3% 66%, rgba(255,255,255,.65) 66% 66.6%, transparent 66.6%),
    #d8d6d6;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.77,0,.18,1), opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}

.race-screen.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.winner-popup {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: min(84%, 350px);
  padding: 18px 20px 22px;
  color: #111;
  background: #fff;
  box-shadow: 8px 8px 0 var(--bright-red), 0 18px 45px rgba(0,0,0,.35);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -45%) scale(.82);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.25,1);
}

.race-screen.red-wins .winner-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.race-screen.red-wins { pointer-events: auto; }

.winner-popup__photo {
  width: 132px;
  height: 132px;
  margin: -2px auto 13px;
  overflow: hidden;
  border: 5px solid #111;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bright-red);
}

.winner-popup__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.winner-popup__kicker {
  margin: 0 0 5px;
  color: var(--bright-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.winner-popup h3 {
  margin: 0 0 17px;
  font: italic 900 clamp(29px, 8.5vw, 40px)/.9 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.5px;
}

.winner-popup button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  color: #fff;
  background: #111;
  cursor: pointer;
  font: italic 800 14px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1.5px;
}

.winner-popup button span { color: #ff6268; font-size: 20px; }
.winner-popup button:focus-visible { outline: 3px solid var(--bright-red); outline-offset: 3px; }

.race-screen.red-wins::before {
  content: "";
  position: absolute;
  z-index: 9;
  inset: 0;
  background: rgba(0,0,0,.52);
}

.race-screen__title {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 50%;
  padding: 8px 24px;
  transform: translateX(-50%) skewX(-8deg);
  color: #fff;
  background: var(--bright-red);
  box-shadow: 5px 5px 0 #111;
  font: italic 900 34px/1 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 2px;
}

.race-lanes { position: absolute; inset: 0; }
.race-lanes span { position: absolute; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(to bottom, #fff 0 20px, transparent 20px 40px); }
.race-lanes span:first-child { left: 33.3%; }
.race-lanes span:last-child { left: 66.6%; }

.racer {
  position: absolute;
  z-index: 3;
  top: auto;
  bottom: -36%;
  width: 29%;
  height: 42%;
  object-fit: contain;
  animation: race-up var(--race-time, 7s) cubic-bezier(.38,.02,.62,.42) forwards;
  animation-play-state: paused;
}

.race-screen:not(.is-visible) .racer { animation-name: none; }
.race-screen.is-visible .racer { animation-name: race-up; animation-play-state: running; }
.racer--orange { left: 2%; --race-time: 5.6s; animation-delay: .08s; }
.racer--red { left: 35.5%; --race-time: 5s; animation-delay: 0s; }
.racer--blue { left: 69%; --race-time: 5.9s; animation-delay: .12s; }

.race-finish {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 94px;
  bottom: auto;
  left: 0;
  height: 30px;
  background: conic-gradient(from 90deg, #090909 25%, #fff 0 50%, #090909 0 75%, #fff 0) 0 0 / 30px 30px;
}

.cover-scene {
  position: absolute;
  inset: 0;
}

.traffic-light {
  position: absolute;
  z-index: 1;
  top: -25px;
  left: 5.9%;
  width: 21.75%;
  filter: drop-shadow(8px 9px 2px rgba(0,0,0,.25));
}

.traffic-light img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(.6);
  user-select: none;
  -webkit-user-drag: none;
}

.signal {
  position: absolute;
  left: 50%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: .2;
  animation: signal-light 3.6s linear infinite;
  pointer-events: none;
}

.signal--red {
  top: 41.3%;
  background: #ff0d16;
  --glow: 255, 13, 22;
}

.signal--yellow {
  top: 57%;
  background: #ffb814;
  --glow: 255, 184, 20;
  animation-delay: 1.2s;
}

.signal--green {
  top: 72.8%;
  background: #07901a;
  --glow: 7, 180, 36;
  animation-delay: 2.4s;
}

.envelope-wrap {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(78.25%, 360px);
  transform: translate(-50%, -50%);
  animation: arrive .8s cubic-bezier(.2,.9,.3,1) both;
}

.envelope-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(7px 10px 4px rgba(0,0,0,.3));
  user-select: none;
  -webkit-user-drag: none;
}

.car-art {
  position: absolute;
  z-index: 2;
  top: 20.7%;
  left: 49.2%;
  width: 29%;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(2px 4px 2px rgba(0,0,0,.2));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

h1 {
  position: absolute;
  z-index: 2;
  top: 31.2%;
  left: 0;
  width: 100%;
  margin: 0;
  transform: none;
  color: #020202;
  text-align: center;
  white-space: nowrap;
  font: italic 900 clamp(38px, 11vw, 52px)/.76 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -1px;
}

.tire-hotspot {
  position: absolute;
  z-index: 4;
  top: 67.15%;
  left: 48.2%;
  display: grid;
  place-items: center;
  width: 27%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  cursor: pointer;
  animation: none;
}

.tire-hotspot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 5px 3px rgba(0,0,0,.28));
  user-select: none;
  -webkit-user-drag: none;
  animation: tire-spin 3.2s linear infinite;
  will-change: transform;
}

.tire-hotspot:hover img,
.tire-hotspot:focus-visible img { animation-duration: 1.15s; }

.tire-hotspot:active img { animation-duration: .45s; }

.tire-hotspot::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -3px;
  border: 3px solid rgba(229,24,32,.8);
  border-radius: inherit;
  pointer-events: none;
  animation: tire-pulse 1.8s ease-in-out infinite;
}

.tire-hotspot:hover::after,
.tire-hotspot:focus-visible::after { border-color: #fff; }
.tire-hotspot:focus-visible { outline: 3px solid var(--bright-red); outline-offset: 4px; }

.cones {
  position: absolute;
  z-index: 5;
  right: -12%;
  bottom: -1%;
  width: 36.7%;
  filter: drop-shadow(6px 8px 3px rgba(0,0,0,.2));
  pointer-events: none;
}

.open-copy {
  position: absolute;
  z-index: 6;
  top: auto;
  bottom: 146px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  font: italic clamp(13px, 4.1vw, 20px)/1 Georgia, serif;
}

.details {
  z-index: 1;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  background: #f7f7f6;
}

.checker {
  height: 42px;
  background: conic-gradient(from 90deg, #0a0a0a 25%, #fff 0 50%, #0a0a0a 0 75%, #fff 0) 0 0 / 36px 36px;
}

.back-button {
  position: absolute;
  top: 54px;
  left: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font: 700 21px/1 Arial, sans-serif;
  cursor: pointer;
}

.back-button:focus-visible,
.rsvp:focus-visible { outline: 3px solid var(--bright-red); outline-offset: 3px; }
.details__content { padding: 41px 30px 30px; text-align: center; }

.kicker {
  margin: 0;
  color: var(--bright-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
}

h2 {
  margin: 8px 0 13px;
  font: italic 900 clamp(51px, 15vw, 68px)/.72 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -2px;
}

h2 span { color: var(--bright-red); }

.lead {
  max-width: 300px;
  margin: 0 auto 22px;
  color: #666;
  font: italic 16px/1.2 Georgia, serif;
}

.race-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 360px;
  margin: 0 auto;
  border-block: 1px solid #d2d2d2;
}

.info-block { padding: 15px 8px 13px; }
.info-block + .info-block { border-left: 1px solid #d2d2d2; }
.info-block span,
.venue small { display: block; margin-bottom: 4px; color: #888; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; }
.info-block strong,
.venue strong { display: block; font: italic 900 19px/1 "Barlow Condensed", sans-serif; }
.info-block p,
.venue p { margin: 3px 0 0; font-size: 9px; }

.venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 4px 11px;
}

.venue > div { text-align: left; }

.map-pin {
  position: relative;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 5px solid var(--bright-red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-pin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bright-red); }
.dress-code { margin: 7px 0 16px; color: #666; font: italic 12px/1.2 Georgia, serif; }

.rsvp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 14px 18px;
  color: white;
  background: var(--bright-red);
  box-shadow: 5px 5px 0 #111;
  text-decoration: none;
  font: italic 800 14px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1.2px;
}

.rsvp b { font-size: 19px; }

.details-cone {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 108px;
  opacity: .35;
}

/* Racing-poster details screen */
.details {
  min-height: 0;
  background: #e7e4e4;
  overscroll-behavior: contain;
}

.details .back-button {
  position: fixed;
  z-index: 40;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, calc(50% - 216px));
  color: #fff;
  border-color: #fff;
  background: #111;
  box-shadow: 3px 3px 0 var(--bright-red);
}

.poster-bunting {
  position: absolute;
  z-index: 20;
  top: -24px;
  left: -25%;
  display: block;
  width: 165%;
  height: auto;
  object-fit: fill;
  filter: drop-shadow(0 3px 2px #0003);
  pointer-events: none;
}

.track-card {
  position: absolute;
  z-index: 2;
  top: 60px;
  right: 5%;
  width: 70%;
  height: 420px;
  padding: 42px 34px 28px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: url("assets/card-bg.webp") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 7px rgba(0,0,0,.25));
}

.track-card::before {
  display: none;
}

.track-card > * { position: relative; z-index: 1; }
.track-card > p { margin: 0 0 11px; font-size: 11px; font-weight: 800; letter-spacing: .35px; }

.track-card > p,
.track-card h2,
.track-card h3 {
  left: 18px;
  width: calc(100% - 32px);
  text-align: center;
}

.track-card h2 {
  margin: 0;
  color: #fff;
  font: italic 900 clamp(28px, 9vw, 42px)/.86 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: -.45px;
  white-space: nowrap;
}

.track-card h2 b { font-size: 1.06em; }
.track-card h2 em { font-size: .73em; }
.track-card h3 { margin: 13px 0 0; font: 800 24px/.92 "Barlow Condensed", sans-serif; }
.track-card h3 strong { font-size: 1.82em; font-style: italic; }
.track-card h3 small { font-size: .78em; letter-spacing: .25px; }

.track-card > .kart-graphic {
  position: absolute;
  z-index: 2;
  right: 15%;
  bottom: 49px;
  left: auto;
  width: 55%;
  transform: none;
  filter: drop-shadow(2px 4px 1px #0004);
}

.poster-stop-group {
  position: absolute;
  z-index: 12;
  top: 478px;
  left: 3%;
  width: min(50%, 188px);
  height: auto;
  transform: translateY(-100%);
  filter: drop-shadow(4px 7px 3px rgba(0,0,0,.22));
  pointer-events: none;
}

.poster-stop-group > img { display: block; width: 100%; height: auto; }

.poster-stop-group span {
  position: absolute;
  z-index: 2;
  display: block;
  left: 48.5%;
  width: 68%;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  font: 800 clamp(12px, 3.5vw, 17px)/1 "Barlow Condensed", sans-serif;
  letter-spacing: .3px;
  text-shadow: 1px 1px 1px #0005;
}

.stop-venue { top: 42.2%; transform: translate(-50%, -50%) rotate(-15deg); }
.stop-location { top: 57.3%; transform: translate(-50%, -50%) rotate(5deg); letter-spacing: -.2px; }

.date-sign {
  position: absolute;
  z-index: 9;
  top: 535px;
  left: -5%;
  width: 220px;
  height: 90px;
  padding: 8px 12px 8px 68px;
  color: #fff;
  text-align: center;
  background: url("assets/date-and-time.webp") center / 100% 100% no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Barlow Condensed", sans-serif;
}

.date-sign strong { display: block; font-size: 29px; line-height: .9; }
.date-sign span,
.date-sign b { display: block; font-size: 18px; line-height: 1; }

.side-road {
  position: absolute;
  z-index: 7;
  top: 390px;
  right: -215px;
  width: 501px;
  height: auto;
  pointer-events: none;
}

.incar-scene {
  position: absolute;
  z-index: 8;
  top: 545px;
  left: -15%;
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 6px 3px rgba(0,0,0,.2));
}

.event-countdown {
  position: absolute;
  z-index: 12;
  top: 900px;
  left: 50%;
  width: 100%;
  padding: 8px 7px 10px;
  transform: translateX(-50%);
  color: #fff;
  background: linear-gradient(180deg, #090909, #1a1a1a);
  border: 0;
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  box-shadow: none;
  text-align: center;
}

.event-countdown__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 7px;
}

.event-countdown__header p {
  margin: 0;
  color: #fff;
  font: italic 900 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 2.2px;
}

.event-countdown__lights {
  display: flex;
  gap: 4px;
  padding: 3px 5px;
  background: #262626;
  border: 1px solid #555;
  border-radius: 9px;
  box-shadow: inset 0 1px 3px #000;
}

.event-countdown__lights i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #050505;
  border-radius: 50%;
  opacity: .24;
}

.signal-red { background: #ff1c25; animation: traffic-red 3s infinite; }
.signal-yellow { background: #ffbf00; animation: traffic-yellow 3s infinite; }
.signal-green { background: #12d83b; animation: traffic-green 3s infinite; }

@keyframes traffic-red {
  0%, 30% { opacity: 1; box-shadow: 0 0 8px #ff1c25; }
  34%, 100% { opacity: .24; box-shadow: none; }
}

@keyframes traffic-yellow {
  0%, 31%, 67%, 100% { opacity: .24; box-shadow: none; }
  34%, 64% { opacity: 1; box-shadow: 0 0 8px #ffbf00; }
}

@keyframes traffic-green {
  0%, 65% { opacity: .24; box-shadow: none; }
  68%, 100% { opacity: 1; box-shadow: 0 0 8px #12d83b; }
}

.event-countdown__units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.event-countdown__units > span {
  position: relative;
  padding: 8px 3px 5px;
  overflow: hidden;
  background: linear-gradient(180deg, #292929, #111);
  border: 1px solid #333;
  border-top: 4px solid var(--bright-red);
  box-shadow: inset 0 0 10px #000, 0 2px 0 #000;
}

.event-countdown__units > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 38%;
  height: 2px;
  transform: translateX(-50%);
  background: #ff7a7f;
  box-shadow: 0 0 7px var(--bright-red);
}

.event-countdown strong,
.event-countdown small { display: block; }
.event-countdown strong { font: italic 900 clamp(23px, 7vw, 32px)/1 "Barlow Condensed", sans-serif; }
.event-countdown small { margin-top: 2px; color: #bdbdbd; font-size: 7px; font-weight: 800; letter-spacing: 1px; }

.birthday-music {
  position: absolute;
  z-index: 12;
  top: 1025px;
  left: 50%;
  width: min(88%, 405px);
  padding: 0;
  overflow: hidden;
  transform: translateX(-50%);
  color: #fff;
  background: linear-gradient(145deg, #262626, #080808);
  border: 2px solid #050505;
  border-top: 4px solid var(--bright-red);
  box-shadow: 0 7px 0 #050505, 0 12px 18px rgba(0,0,0,.28);
  text-align: center;
}

.music-player__header {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 9px;
  background: #101010;
  border-bottom: 1px solid #3c3c3c;
}

.music-player__header p {
  flex: 1;
  margin: 0;
  text-align: left;
  font: italic 900 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1.2px;
}

.music-player__flag {
  width: 15px;
  height: 15px;
  background: conic-gradient(from 90deg, #fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 8px 8px;
  transform: skewY(-8deg);
}

.music-player__status {
  color: #ff6268;
  font: 800 7px/1 "DM Sans", sans-serif;
  letter-spacing: 1px;
}

.music-player__body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 8px;
}

.music-player__play {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--bright-red);
  box-shadow: 0 0 0 3px #202020, 0 3px 8px #000;
  cursor: pointer;
}

.music-player__play span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.music-player__play.is-playing span {
  width: 11px;
  height: 14px;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%);
}

.music-player__play:focus-visible { outline: 3px solid #ffb4b7; outline-offset: 3px; }
.music-player__display { flex: 1; min-width: 0; }

#musicAnalyzer {
  display: block;
  width: 100%;
  height: 32px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,.035) 5px 6px);
}

.music-player__seek {
  display: block;
  width: 100%;
  height: 4px;
  margin: 4px 0 3px;
  accent-color: var(--bright-red);
  cursor: pointer;
}

.music-player__time {
  display: flex;
  justify-content: space-between;
  color: #bbb;
  font: 700 7px/1 "DM Sans", sans-serif;
  letter-spacing: .5px;
}

.closing-message {
  position: absolute;
  z-index: 12;
  top: 1135px;
  left: 50%;
  width: min(84%, 380px);
  margin: 0;
  transform: translateX(-50%);
  color: #292929;
  text-align: center;
  font: italic 600 14px/1.45 Georgia, serif;
}

.closing-message::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin: 0 auto 10px;
  background: repeating-linear-gradient(90deg, #111 0 7px, #fff 7px 14px);
}

.inkbar-promo {
  position: absolute;
  z-index: 12;
  top: 1215px;
  left: 0;
  width: 100%;
  min-height: 178px;
  padding: 28px 13px 17px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(229,24,32,.12), transparent 42%),
    linear-gradient(180deg, #171717, #050505);
  border-top: 5px solid var(--bright-red);
  border-bottom: 4px solid var(--bright-red);
  box-shadow: inset 0 3px 12px rgba(0,0,0,.7);
}

.inkbar-promo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 11px;
  background: conic-gradient(from 90deg, #fff 25%, #090909 0 50%, #fff 0 75%, #090909 0) 0 0 / 18px 18px;
}

.inkbar-promo h3 {
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 2px 2px 0 #8f0b10;
  font: italic 900 clamp(21px, 6vw, 29px)/.9 "Barlow Condensed", Impact, sans-serif;
  letter-spacing: .3px;
}

.inkbar-promo > p {
  margin: 0;
  color: #fff;
  font: 700 clamp(10px, 2.8vw, 13px)/1.35 "DM Sans", Arial, sans-serif;
}

.inkbar-promo strong { color: #ff6268; }

.inkbar-promo__contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 18px);
  margin-top: 16px;
}

.inkbar-promo__contacts > a,
.inkbar-promo__contacts > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font: 800 clamp(8px, 2.3vw, 11px)/1 "DM Sans", Arial, sans-serif;
}

.inkbar-promo__contacts i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--bright-red);
  box-shadow: 0 0 0 2px #fff;
  font: normal 900 12px/1 Arial, sans-serif;
}

.inkbar-promo__contacts .instagram-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.inkbar-promo__contacts .instagram-icon__dot {
  fill: currentColor;
  stroke: none;
}

.poster-credit { position: absolute; z-index: 2; top: 1393px; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: center; gap: 3px; color: #fff; background: #050505; font-size: 12px; }
.poster-credit span { color: #ff6268; }

/* Scroll-triggered details animations */
.details-animate {
  opacity: 0;
  translate: 0 24px;
  scale: .98;
  transition:
    opacity .65s ease var(--detail-delay, 0s),
    translate .7s cubic-bezier(.2,.85,.25,1) var(--detail-delay, 0s),
    scale .7s cubic-bezier(.2,.85,.25,1) var(--detail-delay, 0s);
  will-change: opacity, translate, scale;
}

.poster-bunting.details-animate { translate: 0 -22px; }
.poster-stop-group.details-animate { translate: -28px 0; }
.side-road.details-animate { translate: 40px 0; }
.incar-scene.details-animate { translate: -38px 0; }
.date-sign.details-animate { translate: -24px 12px; }

.details-animate.is-in-view {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.track-card.is-in-view .kart-graphic {
  animation: kart-idle 2.2s ease-in-out .55s infinite;
}

.poster-bunting.is-in-view {
  transform-origin: 50% 0;
  animation: bunting-sway 3.4s ease-in-out .7s infinite;
}

.inkbar-promo.is-in-view::before {
  animation: checker-drive 1.4s linear infinite;
}

@keyframes kart-idle {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-4px) rotate(.5deg); }
}

@keyframes bunting-sway {
  0%, 100% { rotate: -.35deg; }
  50% { rotate: .35deg; }
}

@keyframes checker-drive {
  from { background-position: 0 0; }
  to { background-position: 36px 0; }
}

/* Text motion on screen load and scroll reveal */
.cover h1 {
  animation: text-load-pop .7s cubic-bezier(.2,.9,.25,1) .45s both;
}

.cover .open-copy {
  animation: open-copy-in .7s ease .8s both;
}

.countdown.is-visible .countdown__content p {
  animation: text-race-in .45s cubic-bezier(.2,.9,.25,1) both;
}

.countdown.is-visible .countdown__content small {
  animation: text-rise-in .5s ease .2s both;
}

.race-screen.is-visible .race-screen__title {
  animation: race-title-in .5s cubic-bezier(.2,.9,.25,1) both;
}

.track-card.is-in-view > p { animation: text-rise-in .5s ease .18s both; }
.track-card.is-in-view h2 { animation: text-race-in .58s cubic-bezier(.2,.9,.25,1) .28s both; }
.track-card.is-in-view h3 { animation: text-race-in-right .58s cubic-bezier(.2,.9,.25,1) .42s both; }

.date-sign.is-in-view strong { animation: text-load-pop .45s ease .2s both; }
.date-sign.is-in-view span { animation: text-rise-in .4s ease .32s both; }
.date-sign.is-in-view b { animation: text-rise-in .4s ease .4s both; }

.event-countdown.is-in-view .event-countdown__header { animation: text-rise-in .45s ease .12s both; }
.event-countdown.is-in-view .event-countdown__units > span { animation: timer-cell-in .42s cubic-bezier(.2,.9,.25,1) both; }
.event-countdown.is-in-view .event-countdown__units > span:nth-child(1) { animation-delay: .2s; }
.event-countdown.is-in-view .event-countdown__units > span:nth-child(2) { animation-delay: .28s; }
.event-countdown.is-in-view .event-countdown__units > span:nth-child(3) { animation-delay: .36s; }
.event-countdown.is-in-view .event-countdown__units > span:nth-child(4) { animation-delay: .44s; }

.birthday-music.is-in-view .music-player__header { animation: text-race-in .48s ease .12s both; }
.birthday-music.is-in-view .music-player__body { animation: text-rise-in .52s ease .28s both; }
.inkbar-promo.is-in-view h3 { animation: text-load-pop .55s cubic-bezier(.2,.9,.25,1) .14s both; }
.inkbar-promo.is-in-view > p { animation: text-rise-in .5s ease .3s both; }
.inkbar-promo.is-in-view .inkbar-promo__contacts { animation: text-rise-in .5s ease .46s both; }

@keyframes text-load-pop {
  from { opacity: 0; transform: translateY(14px) scale(.78); letter-spacing: 5px; }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes open-copy-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes text-race-in {
  from { opacity: 0; transform: translateX(28px) skewX(-8deg); }
  to { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes text-race-in-right {
  from { opacity: 0; transform: translateX(-28px) skewX(8deg); }
  to { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes race-title-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-30px) skewX(-8deg) scale(.75); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) skewX(-8deg) scale(1); }
}

@keyframes timer-cell-in {
  from { opacity: 0; transform: translateY(12px) scale(.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-hint {
  position: absolute;
  z-index: 40;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 9px 14px;
  transform: translateX(-50%);
  border: 2px solid #fff;
  border-radius: 22px;
  color: #fff;
  background: rgba(5,5,5,.94);
  box-shadow: 0 4px 0 var(--bright-red), 0 7px 15px rgba(0,0,0,.3);
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.scroll-hint span {
  font: italic 900 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: 1.5px;
}

.scroll-hint i {
  color: #ff6268;
  font: normal 900 19px/.6 Arial, sans-serif;
  animation: scroll-hint-bounce 1s ease-in-out infinite;
}

.scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.phone-card:not(.is-open) .scroll-hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-hint:focus-visible { outline: 3px solid #ff6268; outline-offset: 3px; }

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

.phone-card.is-open .cover { transform: translateX(-100%); opacity: 0; }
.phone-card.is-open .details { z-index: 3; transform: translateX(0); opacity: 1; }
.phone-card.is-revealing .envelope-wrap { animation: envelope-open .55s ease-in both; }
.phone-card.is-opening .car-art { animation: car-drive-left .9s cubic-bezier(.55,.05,.25,1) both; }

@keyframes arrive {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 25px)) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes tire-pulse {
  0%, 100% { opacity: .2; transform: scale(.94); box-shadow: 0 0 0 0 rgba(229,24,32,0); }
  50% { opacity: 1; transform: scale(1.08); box-shadow: 0 0 0 9px rgba(229,24,32,.18); }
}

@keyframes tire-spin {
  to { transform: rotate(360deg); }
}

@keyframes signal-light {
  0%, 29% {
    opacity: 1;
    box-shadow: 0 0 8px 3px rgba(var(--glow), .8), 0 0 20px 8px rgba(var(--glow), .35);
    filter: brightness(1.18);
  }
  34%, 100% {
    opacity: .18;
    box-shadow: none;
    filter: brightness(.65);
  }
}

@keyframes car-drive-left {
  0% { transform: translateX(-50%) translateY(0) rotate(0); opacity: 1; }
  18% { transform: translateX(-44%) translateY(-1px) rotate(0); }
  35% { transform: translateX(-65%) translateY(1px) rotate(-1deg); }
  72% { transform: translateX(-230%) translateY(0) rotate(-1deg); opacity: 1; }
  100% { transform: translateX(-470%) translateY(-2px) rotate(-1deg); opacity: 0; }
}

@keyframes countdown-pop {
  0% { transform: scale(.55); opacity: 0; }
  35% { transform: scale(1.12); opacity: 1; }
  72% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.88); opacity: .2; }
}

@keyframes race-up {
  0% { bottom: -38%; transform: translateY(0) scale(.82) rotate(-360deg); }
  38% { transform: translateY(-3px) scale(.92) rotate(-360deg); }
  72% { transform: translateY(4px) scale(1) rotate(-360deg); }
  100% { bottom: 104%; transform: translateY(0) scale(1.08) rotate(-360deg); }
}

@keyframes envelope-open {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.035); }
  100% { transform: translate(-50%, calc(-50% + 35px)) scale(.88); opacity: 0; }
}

@media (max-height: 670px) {
  .open-copy { bottom: 102px; }
  .details__content { padding-top: 31px; }
  .lead { margin-bottom: 13px; }
  .info-block { padding-block: 11px; }
  .venue { padding-top: 13px; }
}

@media (max-width: 390px) {
  .phone-card { width: 100%; height: 100svh; }
  .details__content { padding-inline: 22px; }
}

@media (min-width: 461px) {
  body { padding-block: 18px; }
  .phone-card {
    height: min(680px, calc(100svh - 36px));
    box-shadow: 0 12px 36px rgba(16, 20, 24, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
