/* ── Combat Replay Viewer ── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --bg: #02040a;
  --bg2: #0a1628;
  --text: #a8d4f0;
  --accent: #00c8ff;
  --border: rgba(0,180,255,0.2);
  --att-color: #ff4422;
  --def-color: #22aaff;
  --panel-bg: rgba(6, 18, 40, 0.88);
}

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

body {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(0,200,255,0.08), transparent 20%),
    radial-gradient(circle at top right, rgba(255,68,34,0.07), transparent 18%),
    linear-gradient(180deg, #02040a 0%, #061228 100%);
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#replay-utility-bar {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,200,255,0.14);
  background: linear-gradient(180deg, rgba(6,18,40,0.9), rgba(6,18,40,0.72));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,200,255,0.25);
  background: rgba(255,255,255,0.03);
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
}

.utility-link:hover {
  color: #eaf8ff;
  border-color: rgba(0,200,255,0.42);
  box-shadow: 0 0 18px rgba(0,200,255,0.14);
}

.utility-copy {
  display: grid;
  gap: 3px;
}

.utility-kicker {
  color: rgba(168,212,240,0.54);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.utility-line {
  color: rgba(168,212,240,0.82);
  font-size: 12px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle at center, transparent 52%, rgba(1, 4, 10, 0.58) 100%);
  z-index: 1;
}

body::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 16%);
  z-index: 1;
}

#replay-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
}

/* ── Loading / Error ── */
#loading-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg);
  font-family: 'Orbitron', sans-serif;
  color: var(--accent);
  gap: 16px;
}
#loading-screen .spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(0,200,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#error-screen {
  position: fixed; inset: 0; z-index: 100;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg);
  color: #ff6b6b;
  font-size: 14px; gap: 12px;
}
#error-screen a { color: var(--accent); }

/* ── Header ── */
#replay-header {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(2,4,10,0.95) 0%, rgba(2,4,10,0.22) 100%);
  pointer-events: none;
}
#replay-header .title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--bright, #e6f6ff);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(0,200,255,0.16);
  background: rgba(6,18,40,0.62);
}
#replay-header .location {
  font-size: 12px; color: rgba(168,212,240,0.72);
}
#replay-header .outcome {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}
#replay-header .outcome.victory { background: rgba(0,200,100,0.2); color: #00cc66; border: 1px solid rgba(0,200,100,0.3); }
#replay-header .outcome.defeat  { background: rgba(255,60,60,0.2); color: #ff4444; border: 1px solid rgba(255,60,60,0.3); }
#replay-header .outcome.draw    { background: rgba(255,200,0,0.2); color: #ffcc00; border: 1px solid rgba(255,200,0,0.3); }

/* ── Side HUD Panels ── */
/* Both fleet HUDs live in ONE column so attacker and defender can be read
   against each other at a glance, instead of the eye crossing the whole
   viewport to compare two numbers. The Current Beat panel takes the opposite
   side (see #replay-spotlight), which also clears the centre for the ships. */
#hud-stack {
  position: fixed;
  top: 138px; right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  pointer-events: none;
}

.replay-hud {
  position: static; z-index: 10;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  min-width: 170px;
  pointer-events: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}
#hud-left  { border-left: 3px solid var(--att-color); }
#hud-right { border-left: 3px solid var(--def-color); }

.hud-side-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
#hud-left .hud-side-label  { color: var(--att-color); }
#hud-right .hud-side-label { color: var(--def-color); }

.hud-fleet-name {
  font-size: 12px; color: #ddeeff;
  margin-bottom: 4px;
  max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hud-stat {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 2px 0;
  color: rgba(168,212,240,0.7);
}
.hud-stat .val { color: var(--text); font-weight: bold; }

.hud-ship-bar {
  margin-top: 6px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.hud-ship-bar .fill {
  height: 100%; border-radius: 2px;
  transition: width 0.3s ease;
}
#hud-left .hud-ship-bar .fill  { background: var(--att-color); }
#hud-right .hud-ship-bar .fill { background: var(--def-color); }

/* ── Phase Banner ── */
#phase-banner {
  position: fixed;
  top: 38%; left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 28px; font-weight: 900;
  color: var(--accent);
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(0,200,255,0.6), 0 0 60px rgba(0,200,255,0.3);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 30;
  pointer-events: none;
}
#phase-banner.visible {
  opacity: 1;
  animation: phasePulse 2.5s ease forwards;
}
@keyframes phasePulse {
  0% { opacity: 0; transform: translateX(-50%) scale(0.8); }
  15% { opacity: 1; transform: translateX(-50%) scale(1.05); }
  25% { transform: translateX(-50%) scale(1.0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(1.0); }
}

/* ── Result Banner ── */
#result-banner {
  position: fixed;
  top: 35%; left: 50%;
  transform: translateX(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 36px; font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  opacity: 0;
  z-index: 35;
  pointer-events: none;
  text-shadow: 0 0 40px currentColor;
}
#result-banner.visible { opacity: 1; animation: resultAppear 1s ease forwards; }
@keyframes resultAppear {
  0% { opacity: 0; transform: translateX(-50%) scale(1.5); }
  40% { opacity: 1; transform: translateX(-50%) scale(0.95); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.0); }
}

/* ── Spotlight ── */
#replay-spotlight {
  position: fixed;
  top: 136px;
  left: 12px;
  z-index: 16;
  width: min(300px, calc(100vw - 420px));
  min-width: 210px;
  padding: 7px 11px;
  border-radius: 11px;
  border: 1px solid rgba(0, 200, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(4, 16, 36, 0.94), rgba(6, 18, 40, 0.78)),
    radial-gradient(circle at top center, rgba(0, 200, 255, 0.08), transparent 55%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

#replay-spotlight.phase-long {
  border-color: rgba(91, 168, 255, 0.22);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(91, 168, 255, 0.12);
}

#replay-spotlight.phase-medium {
  border-color: rgba(255, 205, 90, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 205, 90, 0.1);
}

#replay-spotlight.phase-brawl {
  border-color: rgba(255, 116, 72, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 116, 72, 0.1);
}

.spotlight-kicker {
  color: rgba(168,212,240,0.52);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.spotlight-phase {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e8f7ff;
  margin-bottom: 3px;
}

.spotlight-summary {
  color: rgba(232,247,255,0.88);
  font-size: 11px;
  line-height: 1.35;
  min-height: 14px;
}

.spotlight-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.spotlight-meta span {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(168,212,240,0.78);
  font-size: 11px;
}

/* ── Event Feed ── */
#event-feed-shell {
  position: fixed;
  bottom: 80px; left: 12px;
  z-index: 10;
  width: 340px;
  pointer-events: none;
}

.shell-label {
  margin-bottom: 8px;
  color: rgba(168,212,240,0.52);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.shell-label-inline {
  margin-bottom: 10px;
}

#event-feed {
  width: 100%;
  display: flex; flex-direction: column-reverse;
  gap: 1px;
}
.event-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(6,18,40,0.72);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  animation: eventFade 8s ease forwards;
  min-height: 34px;
}
.event-entry.attacker {
  border-left: 2px solid rgba(255, 68, 34, 0.44);
}
.event-entry.defender {
  border-left: 2px solid rgba(34, 170, 255, 0.42);
}
.event-tag {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  color: rgba(232,247,255,0.72);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.event-copy {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes eventFade {
  0% { opacity: 0.9; } 70% { opacity: 0.9; } 100% { opacity: 0; }
}
.event-entry.kill     { color: #ff5555; }
.event-entry.disabled { color: #ff9944; }
.event-entry.shield   { color: #4fc3f7; }
.event-entry.intercept { color: #ffcc00; }
.event-entry.hit      { color: #88aacc; }
.event-entry.overkill { color: #cc66ff; }
.event-entry.miss     { color: #556677; }
.event-entry.arrival  { color: #66d9ff; }
.event-entry.retreat  { color: #f5a020; }
.event-entry.retreat_denied { color: #ff6666; }

/* ── Playback Bar ── */
#playback-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  pointer-events: all;
  backdrop-filter: blur(10px);
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.32);
}

#phase-timeline {
  display: flex; height: 8px;
  border-radius: 3px; overflow: hidden;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.05);
}
.phase-segment {
  height: 100%;
  position: relative;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.phase-segment.long   { background: rgba(50,120,255,0.5); }
.phase-segment.medium { background: rgba(255,200,50,0.5); }
.phase-segment.brawl  { background: rgba(255,80,50,0.5); }
.phase-segment.active {
  filter: saturate(1.35) brightness(1.18);
}
.phase-segment:not(.active) {
  opacity: 0.78;
}
.phase-segment .phase-label {
  position: absolute; top: -16px; left: 4px;
  font-size: 11px; color: rgba(168,212,240,0.5);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
#phase-timeline-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.timeline-marker {
  position: absolute;
  top: -4px;
  width: 8px;
  height: 16px;
  margin-left: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 14px rgba(255,255,255,0.12);
  opacity: 0.9;
}
.timeline-marker.arrival {
  background: linear-gradient(180deg, #5be7ff, #2aa9d6);
}
.timeline-marker.retreat {
  background: linear-gradient(180deg, #ffc04d, #f58a1f);
}
.timeline-marker.kill {
  background: linear-gradient(180deg, #ff8970, #ff3d24);
}
.timeline-marker.swing {
  background: linear-gradient(180deg, #ffd45f, #ff6c3b);
}
.timeline-marker.disabled {
  background: linear-gradient(180deg, #c084fc, #7c3aed);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.45);
}
.timeline-marker.phase {
  background: linear-gradient(180deg, rgba(168,212,240,0.85), rgba(120,160,200,0.65));
  width: 3px;
  height: 14px;
  border-radius: 2px;
  border-color: rgba(255,255,255,0.25);
  opacity: 0.7;
}
.timeline-marker:hover {
  transform: scale(1.45) translateY(-1px);
  opacity: 1;
  z-index: 4;
  box-shadow: 0 0 22px rgba(255,255,255,0.45);
}
.btn-mark-nav {
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.btn-mark-nav:hover {
  background: rgba(0,200,255,0.18);
  border-color: rgba(0,200,255,0.4);
}
#playback-marker {
  position: absolute; top: -2px; width: 2px; height: 12px;
  background: #fff;
  border-radius: 1px;
  transition: left 0.15s linear;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 16px rgba(255,255,255,0.5);
}

#transport-controls {
  display: flex; align-items: center; gap: 10px;
}

#transport-controls button {
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.25);
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
#transport-controls button:hover { background: rgba(0,200,255,0.2); }
#transport-controls button.active { background: rgba(0,200,255,0.3); border-color: var(--accent); }

#speed-select {
  background: rgba(0,200,255,0.1);
  border: 1px solid rgba(0,200,255,0.25);
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
}
#speed-select option { background: var(--bg2); color: var(--text); }

#scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 0 8px rgba(0,200,255,0.5);
}
#scrubber::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--accent);
  border: none; border-radius: 50%;
  cursor: grab;
}

#time-display {
  font-size: 12px;
  color: rgba(168,212,240,0.6);
  min-width: 80px;
  text-align: right;
}

#replay-hint {
  margin-top: 10px;
  color: rgba(168,212,240,0.62);
  font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #replay-utility-bar {
    top: 10px;
    right: 10px;
    left: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .replay-hud { min-width: 130px; padding: 6px 8px; font-size: 11px; }
  #replay-spotlight {
    width: min(280px, calc(100vw - 40px));
    top: 184px;
  }
  #hud-stack { top: 184px; }
  #event-feed-shell { width: 250px; }
  #phase-banner { font-size: 20px; letter-spacing: 3px; }
  #result-banner { font-size: 24px; }
  #replay-header .title { font-size: 12px; }
}

@media (max-width: 480px) {
  body {
    height: 100dvh;
  }

  #replay-canvas {
    height: 100dvh;
  }

  #replay-utility-bar {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    min-height: 44px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .utility-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .utility-copy {
    min-width: 0;
    gap: 0;
  }

  .utility-kicker {
    font-size: 11px;
    letter-spacing: 1.4px;
  }

  .utility-line {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  #replay-header {
    top: calc(62px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
    align-items: center;
    gap: 4px 8px;
    padding: 6px 8px;
    background: linear-gradient(180deg, rgba(2,4,10,0.86) 0%, rgba(2,4,10,0.24) 100%);
  }

  #replay-header .title {
    grid-column: 1;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
    letter-spacing: 1.7px;
    white-space: nowrap;
  }

  #replay-header .outcome {
    grid-column: 2;
    justify-self: end;
    padding: 3px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  #replay-header .location {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  /* Phones keep the side-by-side pair: two stacked full-width HUDs plus the
     beat panel would swallow the screen. `display: contents` drops the stack
     wrapper out of layout so the rules below apply exactly as they always
     have. */
  #hud-stack { display: contents; }

  .replay-hud {
    position: fixed;
    top: calc(122px + env(safe-area-inset-top));
    width: calc(50vw - 12px);
    min-width: 0;
    padding: 7px 8px;
    font-size: 11px;
    border-radius: 8px;
  }

  #hud-left { left: 8px; right: auto; }
  #hud-right { right: 8px; left: auto; }

  .hud-side-label {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .hud-fleet-name {
    max-width: 100%;
    margin-bottom: 3px;
    font-size: 11px;
  }

  .hud-stat {
    gap: 6px;
    margin: 1px 0;
  }

  .hud-ship-bar {
    margin-top: 4px;
  }

  #replay-spotlight {
    top: auto;
    bottom: calc(108px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .spotlight-kicker {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .spotlight-phase {
    margin-bottom: 3px;
    font-size: 12px;
    letter-spacing: 1.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spotlight-summary {
    min-height: 0;
    max-height: 34px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.25;
  }

  .spotlight-meta {
    margin-top: 5px;
    gap: 4px;
  }

  .spotlight-meta span {
    padding: 2px 6px;
    font-size: 11px;
  }

  #event-feed-shell {
    display: none;
  }

  #playback-bar {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  #phase-timeline {
    height: 7px;
    margin-bottom: 9px;
  }

  .phase-segment .phase-label {
    display: none;
  }

  .shell-label-inline {
    margin-bottom: 6px;
    font-size: 11px;
  }

  #transport-controls {
    display: grid;
    grid-template-columns: 34px 40px 40px 40px 34px minmax(74px, auto);
    gap: 6px;
    align-items: center;
  }

  #transport-controls button {
    min-width: 0;
    min-height: 34px;
    padding: 0 7px;
    font-size: 13px;
  }

  #speed-select {
    min-width: 0;
    height: 34px;
    font-size: 12px;
  }

  #scrubber {
    grid-column: 1 / -2;
    width: 100%;
  }

  #time-display {
    grid-column: -2 / -1;
    min-width: 0;
    text-align: right;
    font-size: 11px;
  }

  #replay-hint {
    display: none;
  }
}

@media (max-width: 380px) {
  .utility-line {
    display: none;
  }

  #replay-header {
    top: calc(58px + env(safe-area-inset-top));
  }

  .replay-hud {
    top: calc(112px + env(safe-area-inset-top));
  }

  .replay-hud .hud-stat:nth-of-type(n + 4) {
    display: none;
  }

  #replay-spotlight {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}
