/* ============================================================
   AMERICA 250 — fireworks-stand maximalism
   Old Glory Red  #B22234 | Old Glory Blue #3C3B6E
   Star White     #FFFFFF | Mattress-Sale Gold #FFD700
   Night Sky      #10101f
   ============================================================ */

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

html, body {
  height: 100%;
  overflow: hidden;
  background: #10101f;
  font-family: 'Anton', Impact, sans-serif;
  color: #fff;
}

html.shake-big  { animation: shake-big 0.7s ease-out; }
html.shake-beat { animation: shake-beat 0.22s ease-out; }
@keyframes shake-big {
  0%   { transform: translate(0, 0) rotate(0); }
  10%  { transform: translate(-18px, 10px) rotate(-0.8deg); }
  25%  { transform: translate(16px, -12px) rotate(0.7deg); }
  40%  { transform: translate(-12px, 8px) rotate(-0.5deg); }
  55%  { transform: translate(10px, -6px) rotate(0.4deg); }
  70%  { transform: translate(-6px, 4px) rotate(-0.2deg); }
  85%  { transform: translate(4px, -2px) rotate(0.1deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
@keyframes shake-beat {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.018) translateY(-3px); }
  100% { transform: scale(1); }
}

/* ---------- backdrop: dimmed stars & stripes ---------- */
.backdrop {
  position: fixed; inset: 0;
  opacity: 0.22;
  pointer-events: none;
}
.stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    180deg,
    #B22234 0 7.7vh,
    #ffffff 7.7vh 15.4vh
  );
}
.canton {
  position: absolute; top: 0; left: 0;
  width: 42vw; height: 53.9vh;
  background-color: #3C3B6E;
  background-image: radial-gradient(#fff 1.6px, transparent 1.9px);
  background-size: 4vw 5vh;
  background-position: 2vw 2.5vh;
}

/* ---------- sad-part black & white overlay ----------
   A backdrop-filter overlay instead of filtering <html>:
   filtering the root repaints the whole page every frame
   and can stall rendering entirely. Slow fade in (.on),
   fast snap back out (base transition). */
#bw {
  position: fixed; inset: 0;
  z-index: 12;
  pointer-events: none;
  backdrop-filter: grayscale(0) brightness(1);
  -webkit-backdrop-filter: grayscale(0) brightness(1);
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
#bw.on {
  backdrop-filter: grayscale(1) brightness(0.74) contrast(1.06);
  -webkit-backdrop-filter: grayscale(1) brightness(0.74) contrast(1.06);
  transition: backdrop-filter 3s ease, -webkit-backdrop-filter 3s ease;
}

/* ---------- beat flash ---------- */
#flash {
  position: fixed; inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

/* ---------- raining bullets ---------- */
#bullets {
  position: fixed; inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.bullet {
  position: absolute;
  top: -60px;
  width: 7px; height: 26px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #ffe9a0 0%, #FFD700 30%, #b8860b 85%, #7a5b06 100%);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
  transform: rotate(168deg);
  animation: bullet-fall linear forwards;
}
.bullet.tracer {
  box-shadow: 0 0 14px 3px rgba(255, 80, 40, 0.8);
  background: linear-gradient(180deg, #fff 0%, #ff9d5c 40%, #B22234 100%);
}
@keyframes bullet-fall {
  to { transform: translateY(115vh) rotate(168deg); }
}

/* ---------- fireworks canvas ---------- */
#fireworks {
  position: fixed; inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ---------- flag marquees ---------- */
.flagline {
  position: fixed; left: 0;
  z-index: 6;
  width: 200%;
  font-size: clamp(22px, 4vh, 42px);
  white-space: nowrap;
  letter-spacing: 0.4em;
  pointer-events: none;
  animation: marquee 28s linear infinite;
}
.flagline-top { top: 6px; }
.flagline-bottom { bottom: 6px; animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 7;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.45);
}
.eyebrow {
  font-family: 'Rye', serif;
  font-size: clamp(11px, 1.6vw, 18px);
  letter-spacing: 0.28em;
  color: #FFD700;
  margin-bottom: 1.5vh;
}
.big250 {
  font-family: 'Bungee Shade', Impact, sans-serif;
  font-size: clamp(96px, 30vh, 340px);
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255,215,0,0.35),
    6px 6px 0 #B22234,
    12px 12px 0 #3C3B6E;
}
.america {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(40px, 9vh, 110px);
  letter-spacing: 0.32em;
  margin-left: 0.32em; /* optically recenters the tracked text */
  color: #B22234;
  -webkit-text-stroke: 2px #fff;
  margin-top: 1vh;
}
.tagline {
  font-family: 'Rye', serif;
  font-size: clamp(12px, 2vh, 20px);
  letter-spacing: 0.18em;
  color: #cfd2ff;
  margin-top: 1.4vh;
}
.tm { font-size: 0.6em; vertical-align: super; }

#start {
  margin-top: 4.5vh;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(20px, 3.4vh, 36px);
  letter-spacing: 0.12em;
  color: #10101f;
  background: linear-gradient(180deg, #ffe9a0, #FFD700 55%, #d4a900);
  border: 4px solid #fff;
  border-radius: 14px;
  padding: 2vh 4vw;
  cursor: pointer;
  box-shadow: 0 0 0 4px #B22234, 0 0 34px rgba(255,215,0,0.5), 0 10px 0 rgba(0,0,0,0.4);
  animation: throb 0.706s ease-in-out infinite; /* one beat at 85bpm */
}
#start:hover { transform: scale(1.06); }
#start:active { transform: scale(0.96) translateY(4px); box-shadow: 0 0 0 4px #B22234, 0 0 34px rgba(255,215,0,0.5); }
#start:focus-visible { outline: 4px dashed #FFD700; outline-offset: 6px; }
.eagle { display: inline-block; animation: flap 0.706s ease-in-out infinite alternate; }
@keyframes throb { 50% { box-shadow: 0 0 0 4px #B22234, 0 0 60px rgba(255,215,0,0.9), 0 10px 0 rgba(0,0,0,0.4); } }
@keyframes flap  { to { transform: translateY(-6px) rotate(-8deg); } }

.warning {
  margin-top: 2vh;
  font-family: 'Rye', serif;
  font-size: clamp(10px, 1.4vh, 14px);
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}

/* section-jump chips */
.jump {
  margin-top: 2.6vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.jump-label {
  font-family: 'Rye', serif;
  font-size: clamp(10px, 1.4vh, 14px);
  letter-spacing: 0.14em;
  color: #cfd2ff;
  width: 100%;
}
.chip {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(12px, 1.8vh, 18px);
  letter-spacing: 0.1em;
  color: #FFD700;
  background: rgba(0,0,0,0.35);
  border: 2px solid #FFD700;
  border-radius: 999px;
  padding: 0.9vh 1.6vw;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.chip:hover { background: #FFD700; color: #10101f; transform: scale(1.07); }
.chip:focus-visible { outline: 3px dashed #FFD700; outline-offset: 4px; }

.hero.playing .eyebrow,
.hero.playing .tagline,
.hero.playing #start,
.hero.playing .jump,
.hero.playing .warning { visibility: hidden; }
.hero.playing .big250,
.hero.playing .america { opacity: 0.28; transition: opacity 0.4s; }

/* ---------- satire stock-photo polaroids ---------- */
#photos {
  position: fixed; inset: 0;
  z-index: 6;
  pointer-events: none;
}
.polaroid {
  position: absolute;
  background: #fdfdf4;
  padding: 10px 10px 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.55);
  transform: rotate(var(--tilt)) scale(1);
  animation: pol-in 0.35s cubic-bezier(0.2, 1.9, 0.4, 1) backwards;
}
.polaroid img {
  display: block;
  width: clamp(150px, 20vw, 280px);
  height: clamp(110px, 15vw, 210px);
  object-fit: cover;
}
.polaroid .caption {
  font-family: 'Rye', serif;
  font-size: clamp(10px, 1.2vw, 15px);
  letter-spacing: 0.08em;
  color: #222;
  text-align: center;
  padding-top: 7px;
}
.polaroid.out { animation: pol-out 0.3s ease-in forwards; }
@keyframes pol-in {
  from { transform: rotate(var(--tilt)) scale(0.2) translateY(40px); opacity: 0; }
  to   { transform: rotate(var(--tilt)) scale(1) translateY(0); opacity: 1; }
}
@keyframes pol-out {
  to { transform: rotate(var(--tilt)) scale(0.6) translateY(30px); opacity: 0; }
}

/* ---------- eagles & fighter jets ---------- */
#flyers {
  position: fixed; inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}
.flyer {
  position: absolute;
  left: 0;
  will-change: transform;
  animation: fly linear forwards;
}
.flyer.rtl { animation-name: fly-rtl; }
@keyframes fly     { from { transform: translateX(-20vw); } to { transform: translateX(120vw); } }
@keyframes fly-rtl { from { transform: translateX(120vw); } to { transform: translateX(-20vw); } }
.flyer .bob { display: inline-block; animation: bob 1.4s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(-10px) rotate(2deg); } to { transform: translateY(10px) rotate(-2deg); } }
.flyer.eagle { font-size: clamp(34px, 6vw, 70px); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.flyer .flip { display: inline-block; }
.flyer.eagle .flip { transform: scaleX(-1); } /* emoji faces left by default; flip for L→R flights */
.flyer.rtl.eagle .flip { transform: none; }
.flyer.jet svg { width: clamp(70px, 10vw, 130px); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.6)); }
.flyer.rtl.jet svg { transform: scaleX(-1); }
.flyer.jet .contrail {
  position: absolute;
  top: 50%; right: 92%;
  width: 30vw; height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85));
  border-radius: 3px;
}
.flyer.rtl.jet .contrail {
  right: auto; left: 92%;
  background: linear-gradient(270deg, transparent, rgba(255,255,255,0.85));
}

/* ---------- crowd response: FUCK YEAH! ---------- */
#fy {
  position: fixed;
  left: 0; right: 0;
  bottom: 18vh;
  z-index: 9;
  text-align: center;
  pointer-events: none;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(44px, 11vh, 120px);
  letter-spacing: 0.04em;
  color: #FFD700;
  -webkit-text-stroke: 3px #B22234;
  text-shadow: 0 0 40px rgba(255,215,0,0.7), 6px 6px 0 rgba(0,0,0,0.5);
  animation: fy-pop 0.55s ease-out forwards;
}
@keyframes fy-pop {
  0%   { transform: scale(0.3) rotate(-4deg); opacity: 0; }
  30%  { transform: scale(1.2) rotate(2deg);  opacity: 1; }
  70%  { transform: scale(1.05) rotate(0);    opacity: 1; }
  100% { transform: scale(1.35);              opacity: 0; }
}

/* ---------- chorus text ---------- */
#chorus-zone {
  position: fixed; inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.chorus {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(48px, 16vw, 220px);
  letter-spacing: 0.04em;
  color: #fff;
  -webkit-text-stroke: 4px #B22234;
  text-shadow: 0 0 50px rgba(255,215,0,0.8), 8px 8px 0 #3C3B6E;
  animation: chorus-pop 0.706s ease-out forwards;
  white-space: nowrap;
}
@keyframes chorus-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  25%  { transform: scale(1.15); opacity: 1; }
  70%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.chorus.chorus-small { font-size: clamp(30px, 7.5vw, 110px); } /* long lines fit on screen */

/* ---------- cycling lyrics ---------- */
#lyrics {
  position: fixed;
  left: 0; right: 0;
  bottom: 10vh;
  z-index: 8;
  text-align: center;
  pointer-events: none;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(26px, 6.5vh, 68px);
  letter-spacing: 0.05em;
  line-height: 1.15;
  padding: 0 4vw;
}
#lyrics.item-line {
  font-size: clamp(38px, 10vh, 110px);
  bottom: 38vh; /* item call-outs jump to center stage */
}
.lw {
  display: inline-block;
  margin: 0 0.17em;
  opacity: 0;
  animation: lyric-pop 0.24s cubic-bezier(0.2, 1.8, 0.4, 1) forwards;
  text-shadow: 0 4px 0 rgba(0,0,0,0.55), 0 0 26px rgba(0,0,0,0.65);
}
.lw.c0 { color: #ffffff; }
.lw.c1 { color: #ff4655; }
.lw.c2 { color: #7d9bff; }
@keyframes lyric-pop {
  from { transform: translateY(34px) scale(0.6) rotate(-3deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------- act 2: the 250-years montage ---------- */
body.act2 .backdrop { opacity: 0.08; }
body.act2 .hero .big250,
body.act2 .hero .america { opacity: 0.1; }

#montage {
  position: fixed; inset: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.slide {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6vh;
  max-width: 88vw;
  text-align: center;
  opacity: 1;
  transition: opacity 0.16s ease-out;
  animation: slide-punch 0.22s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}
.slide.out { opacity: 0; }
@keyframes slide-punch {
  from { transform: scale(1.14); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.slide img {
  max-height: 56vh;
  max-width: 82vw;
  border: 8px solid #fff;
  box-shadow: 0 0 90px rgba(0,0,0,0.85), 0 0 44px rgba(255,215,0,0.22);
  animation: kenburns 5s ease-out forwards;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.045); } }
.m-year {
  font-family: 'Bungee Shade', Impact, sans-serif;
  font-size: clamp(26px, 5.5vh, 60px);
  color: #FFD700;
  text-shadow: 0 4px 0 rgba(0,0,0,0.55);
}
.m-title {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(24px, 5vh, 58px);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,0.55), 0 0 30px rgba(0,0,0,0.7);
}
.slide.title-card .m-year { font-size: clamp(30px, 7vh, 76px); }
.slide.title-card .m-title { font-size: clamp(30px, 7.5vh, 84px); max-width: 80vw; }

/* ---------- the imperial rage interlude ---------- */
#kilo {
  position: fixed;
  top: 50%; left: 50%;
  z-index: 13;
  pointer-events: none;
  text-align: center;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(44px, 11vw, 150px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #ff2222;
  -webkit-text-stroke: 3px #fff;
  text-shadow: 0 0 40px rgba(255,0,0,0.8), 8px 8px 0 rgba(0,0,0,0.7);
  animation: kilo-rage 0.09s linear infinite, kilo-grow 2s ease-in forwards;
}
@keyframes kilo-rage {
  0%   { transform: translate(-50%, -50%) rotate(-2.5deg) translate(-6px, 3px); }
  25%  { transform: translate(-50%, -50%) rotate(1.8deg)  translate(5px, -5px); }
  50%  { transform: translate(-50%, -50%) rotate(-1.4deg) translate(-4px, -3px); }
  75%  { transform: translate(-50%, -50%) rotate(2.2deg)  translate(6px, 4px); }
  100% { transform: translate(-50%, -50%) rotate(-2deg)   translate(-5px, 2px); }
}
@keyframes kilo-grow {
  from { font-size: clamp(44px, 11vw, 150px); }
  to   { font-size: clamp(54px, 14vw, 190px); }
}

/* ---------- tap-to-continue fallback (mobile autoplay) ---------- */
#resume {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 22;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(18px, 5vw, 32px);
  letter-spacing: 0.1em;
  color: #10101f;
  background: linear-gradient(180deg, #ffe9a0, #FFD700 55%, #d4a900);
  border: 4px solid #fff;
  border-radius: 14px;
  padding: 16px 26px;
  cursor: pointer;
  box-shadow: 0 0 0 4px #B22234, 0 0 34px rgba(255,215,0,0.5);
  animation: throb 0.423s ease-in-out infinite; /* one beat at 142bpm */
}

/* ---------- replay button ---------- */
#replay {
  position: fixed;
  top: 62%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 22;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(20px, 3.4vh, 36px);
  letter-spacing: 0.12em;
  color: #10101f;
  background: linear-gradient(180deg, #ffe9a0, #FFD700 55%, #d4a900);
  border: 4px solid #fff;
  border-radius: 14px;
  padding: 2vh 4vw;
  cursor: pointer;
  box-shadow: 0 0 0 4px #B22234, 0 0 34px rgba(255,215,0,0.5), 0 10px 0 rgba(0,0,0,0.4);
  animation: replay-in 0.5s cubic-bezier(0.2, 1.8, 0.4, 1) backwards, throb 0.706s ease-in-out 0.5s infinite;
}
#replay:hover { transform: translate(-50%, -50%) scale(1.06); }
#replay:focus-visible { outline: 4px dashed #FFD700; outline-offset: 6px; }
@keyframes replay-in {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ---------- calibration HUD ---------- */
#hud {
  position: fixed;
  top: 60px; right: 16px;
  z-index: 20;
  background: rgba(0,0,0,0.85);
  border: 2px solid #FFD700;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: Consolas, monospace;
  max-width: 300px;
}
.hud-time { font-size: 42px; color: #FFD700; }
.hud-help { font-size: 11px; color: #aaa; margin: 6px 0; }
.hud-log { font-size: 13px; color: #7CFC00; max-height: 30vh; overflow-y: auto; white-space: pre; }

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  #flash, .flagline, .eagle, #start, html.shake-big, html.shake-beat { animation: none !important; }
  .bullet, .flyer { display: none; }
}

/* ============================================================
   MOBILE (max-width: 700px) — same show, phone-sized.
   Desktop sizes are vh-driven; on a tall narrow screen that
   overflows sideways, so everything rescales against vw and
   long text is allowed to wrap.
   ============================================================ */
@media (max-width: 700px) {
  .hero { height: 100dvh; padding: 0 12px; }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    padding: 0 8vw;
    line-height: 1.6;
  }
  .big250 {
    font-size: clamp(88px, 36vw, 160px);
    text-shadow:
      0 0 16px rgba(255,215,0,0.35),
      4px 4px 0 #B22234,
      8px 8px 0 #3C3B6E;
  }
  .america {
    font-size: clamp(30px, 11.5vw, 52px);
    letter-spacing: 0.18em;
    margin-left: 0.18em;
    -webkit-text-stroke: 1.5px #fff;
  }
  .tagline { font-size: 11px; letter-spacing: 0.12em; padding: 0 6vw; }

  #start {
    font-size: clamp(17px, 5.5vw, 24px);
    padding: 14px 22px;
    border-width: 3px;
    margin-top: 3.5vh;
  }
  .jump { gap: 7px; margin-top: 2vh; padding: 0 4vw; }
  .jump-label { font-size: 10px; }
  .chip { font-size: clamp(11px, 3.4vw, 14px); padding: 7px 13px; border-width: 1.5px; }
  .warning { font-size: 9px; padding: 0 8vw; line-height: 1.6; }

  .flagline { font-size: 20px; letter-spacing: 0.3em; }

  /* lyrics + call-outs: vw-scaled, wrap instead of overflowing */
  #lyrics { font-size: clamp(19px, 6.5vw, 30px); bottom: 12vh; padding: 0 3vw; }
  #lyrics.item-line { font-size: clamp(26px, 9.5vw, 44px); bottom: 40vh; }
  #fy {
    font-size: clamp(30px, 12vw, 52px);
    bottom: 20vh;
    -webkit-text-stroke: 2px #B22234;
    padding: 0 4vw;
  }

  /* chorus text was nowrap — let it wrap and shrink */
  .chorus {
    white-space: normal;
    font-size: clamp(40px, 17vw, 78px);
    line-height: 1.05;
    padding: 0 5vw;
    text-align: center;
    -webkit-text-stroke: 2.5px #B22234;
  }
  .chorus.chorus-small { font-size: clamp(24px, 9.5vw, 40px); }

  /* polaroids: smaller and never off the right edge */
  .polaroid { padding: 7px 7px 5px; box-shadow: 0 5px 18px rgba(0,0,0,0.55); }
  .polaroid img { width: clamp(105px, 36vw, 150px); height: clamp(80px, 27vw, 115px); }
  .polaroid .caption { font-size: 8.5px; padding-top: 5px; }

  /* act 2 montage */
  .slide { gap: 1vh; max-width: 94vw; }
  .slide img { max-height: 42vh; max-width: 88vw; border-width: 5px; }
  .m-year { font-size: clamp(18px, 6.5vw, 30px); }
  .m-title { font-size: clamp(17px, 6vw, 28px); padding: 0 3vw; line-height: 1.15; }
  .slide.title-card .m-year { font-size: clamp(22px, 8vw, 38px); }
  .slide.title-card .m-title { font-size: clamp(24px, 9vw, 44px); }

  #kilo { font-size: clamp(38px, 14vw, 72px); -webkit-text-stroke: 2px #fff; width: 96vw; }

  .flyer.eagle { font-size: clamp(26px, 9vw, 42px); }
  .flyer.jet svg { width: clamp(52px, 16vw, 80px); }
  .flyer.jet .contrail { width: 22vw; height: 3px; }

  #replay { font-size: clamp(16px, 5.5vw, 24px); padding: 14px 22px; border-width: 3px; top: 66%; }

  #hud { top: 46px; right: 8px; padding: 8px 10px; max-width: 220px; }
  .hud-time { font-size: 28px; }
}
