/* ============================================================== tokens == */
:root {
  --ink: #2b1a2e;
  --bg: #1a1024;
  --amber: #ffb347;
  --amber-hot: #ffd23f;
  --red: #e0452f;
  --cyan: #3fe0f2;
  --paper: #fdf6ee;
  --shadow: 0 14px 40px rgba(20, 8, 26, 0.55);
  --hud-bg: rgba(26, 14, 32, 0.62);
  --hud-border: rgba(255, 210, 150, 0.22);
  --font-display: "Bebas Neue", Impact, "Haettenschweiler", sans-serif;
  --font-ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  font-family: var(--font-ui);
  color: var(--paper);
  overscroll-behavior: none;
}

body { overflow: hidden; }

.app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* =============================================================== stage == */
.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(#241a44, #a8455a 55%, #ffd07a);
}

.stage:focus-visible {
  outline: 3px solid var(--amber-hot);
  outline-offset: -6px;
}

/* The stage is a WebGL canvas. */
.scene { position: absolute; inset: 0; }
.scene canvas { display: block; width: 100%; height: 100%; }

/* ============================================================ overlays == */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 92% at 50% 44%, transparent 42%, rgba(26, 10, 30, 0.5) 78%, rgba(18, 6, 22, 0.86) 100%);
}

.grain {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-12px, 7px); }
  66%  { transform: translate(9px, -10px); }
  100% { transform: translate(0, 0); }
}

/* Thin cinematic bars — enough to frame, not enough to crop the fight. */
.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(14px, 2.6vh, 30px);
  background: #120814;
  pointer-events: none;
  z-index: 3;
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* ================================================================ hud === */
.topbar {
  position: absolute;
  top: clamp(20px, 4.2vh, 44px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 3vw, 34px);
  pointer-events: none;
}

.title-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  max-width: 5.2em;
}

.site-title span {
  display: block;
  color: var(--red);
}

.tagline b { font-weight: inherit; }

.tagline {
  margin: 0;
  max-width: 26em;
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.5vw, 14px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
  opacity: 0.8;
}

/* --- integrity --- */
.integrity {
  width: clamp(150px, 26vw, 290px);
  padding: 9px 12px 10px;
  border-radius: 12px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: var(--shadow);
}

.integrity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.integrity-label {
  font-size: clamp(8px, 1.2vw, 11px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.integrity-value {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 20px);
  color: var(--cyan);
  letter-spacing: 0.015em;
}

.integrity-track {
  height: 9px;
  border-radius: 99px;
  background: rgba(10, 4, 14, 0.7);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.integrity-fill {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, #17b6e6, var(--cyan) 55%, #b8fbff);
  box-shadow: 0 0 14px rgba(63, 224, 242, 0.65);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.integrity.is-critical .integrity-fill {
  background: linear-gradient(90deg, #d0341f, #ff8a3d 60%, #ffd23f);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.7);
  animation: crit-pulse 0.55s ease-in-out infinite alternate;
}

.integrity.is-critical .integrity-value { color: var(--amber-hot); }

@keyframes crit-pulse {
  from { opacity: 0.72; }
  to   { opacity: 1; }
}

.round {
  display: block;
  margin-top: 7px;
  font-size: clamp(9px, 1.3vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.round b {
  font-family: var(--font-display);
  font-size: 1.45em;
  color: var(--amber);
  letter-spacing: 0.015em;
}

/* --- continent leaderboard --- */
.counter {
  position: relative;
  width: clamp(180px, 29vw, 310px);
  padding: 11px 14px 12px;
  background: linear-gradient(155deg, rgba(24, 14, 34, 0.88), rgba(10, 18, 28, 0.84));
  border: 1px solid rgba(63, 224, 242, 0.4);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
  animation: hud-pulse 3.2s ease-in-out infinite;
}

.counter::before,
.counter::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan);
  opacity: 0.85;
}

.counter::before { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.counter::after { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }

@keyframes hud-pulse {
  0%, 100% { box-shadow: var(--shadow), 0 0 14px rgba(63, 224, 242, 0.12), inset 0 0 16px rgba(63, 224, 242, 0.04); }
  50%      { box-shadow: var(--shadow), 0 0 24px rgba(63, 224, 242, 0.24), inset 0 0 22px rgba(63, 224, 242, 0.09); }
}

.counter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.2vw, 11px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(63, 224, 242, 0.55);
}

.counter-chevron {
  display: none;
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex: none;
  transition: transform 180ms ease-out;
}

.counter-label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px 1px rgba(63, 224, 242, 0.9);
  animation: status-blink 1.6s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leaderboard-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2.5px 7px;
  font-family: var(--font-mono);
  opacity: 0.62;
  transition: opacity 160ms ease-out, background 160ms ease-out;
}

.leaderboard-row.is-mine {
  opacity: 1;
  background: linear-gradient(90deg, rgba(63, 224, 242, 0.18), transparent 85%);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.leaderboard-name {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: clamp(9px, 1.2vw, 11.5px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(253, 246, 238, 0.55);
}

.leaderboard-row.is-mine .leaderboard-name { color: var(--paper); }

.leaderboard-rank {
  min-width: 1.1em;
  font-variant-numeric: tabular-nums;
  color: rgba(63, 224, 242, 0.4);
}

.leaderboard-row.is-mine .leaderboard-rank { color: var(--cyan); }

.leaderboard-value {
  min-width: 3ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: clamp(13px, 1.9vw, 18px);
  font-weight: 700;
  color: rgba(253, 246, 238, 0.5);
  transition: transform 90ms ease-out;
}

.leaderboard-row.is-mine .leaderboard-value {
  color: var(--amber-hot);
  text-shadow: 0 0 10px rgba(255, 210, 63, 0.65);
}

.leaderboard-value.is-bumped { animation: bump 260ms cubic-bezier(0.3, 1.5, 0.4, 1); }

@keyframes bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

/* ============================================================= banner === */
.banner {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
}

.banner.is-showing { animation: banner-in 2s cubic-bezier(0.2, 1.3, 0.35, 1) forwards; }

@keyframes banner-in {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-6deg); }
  14%  { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(2deg); }
  24%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  78%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.06); }
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 118px);
  line-height: 0.88;
  letter-spacing: 0.015em;
  color: var(--amber-hot);
  -webkit-text-stroke: clamp(3px, 0.7vw, 6px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 rgba(43, 26, 46, 0.45), 0 18px 40px rgba(0, 0, 0, 0.6);
}

.banner-sub {
  font-size: clamp(10px, 1.7vw, 16px);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 2px 0 var(--ink), 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* ============================================================= streak === */
.streak {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 6;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 62px);
  letter-spacing: 0.015em;
  color: var(--paper);
  -webkit-text-stroke: clamp(2px, 0.45vw, 4px) var(--ink);
  paint-order: stroke fill;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.streak.is-popping { animation: streak-pop 760ms cubic-bezier(0.25, 1.4, 0.4, 1) forwards; }

@keyframes streak-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-8deg); }
  22%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(3deg); }
  60%  { opacity: 1; transform: translate(-50%, -62%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -96%) scale(0.94); }
}

/* ========================================================= charge bar === */
.charge-meter {
  position: absolute;
  left: 50%;
  bottom: clamp(60px, 11vh, 104px);
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}

.charge-meter.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.charge-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.charge-track {
  width: clamp(100px, 22vw, 180px);
  height: 9px;
  border-radius: 99px;
  background: rgba(10, 4, 14, 0.72);
  overflow: hidden;
}

.charge-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--amber), var(--amber-hot) 60%, #fff3c4);
  box-shadow: 0 0 12px rgba(255, 210, 63, 0.7);
}

.charge-meter.is-full .charge-fill { animation: charge-flash 0.28s ease-in-out infinite alternate; }
.charge-meter.is-full .charge-label { color: var(--amber-hot); }

@keyframes charge-flash {
  from { filter: brightness(1); }
  to   { filter: brightness(1.7); }
}

/* =============================================================== hint === */
.hint {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 5.4vh, 52px);
  z-index: 5;
  margin: 0;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  animation: hint-breathe 2.6s ease-in-out infinite;
}

@keyframes hint-breathe {
  0%, 100% { opacity: 0.68; }
  50%      { opacity: 1; }
}

.hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  animation: none;
}

/* ===================================================== scene fallback === */
/* Shown in place of the 3D scene when WebGL is off, a script fails to
 * download, or the graphics context is lost and doesn't come back. */
.scene-fallback {
  position: absolute;
  left: 50%;
  /* below centre, clear of the HUD; under the topbar (5) if they ever meet */
  top: 60%;
  z-index: 4;
  width: min(400px, calc(100% - 32px));
  transform: translate(-50%, -50%);
  padding: 22px 24px 24px;
  border-radius: 14px;
  background: var(--hud-bg);
  border: 1px solid var(--hud-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: center;
}

.scene-fallback[hidden] { display: none; }

.scene-fallback-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--amber);
}

.scene-fallback-body {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
}

.scene-fallback-btn {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(63, 224, 242, 0.4);
  border-radius: 99px;
  background: rgba(10, 18, 28, 0.84);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.scene-fallback-btn:hover { background: rgba(63, 224, 242, 0.14); }
.scene-fallback-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* =============================================================== mute === */
.mute-btn {
  position: absolute;
  right: clamp(12px, 3vw, 30px);
  bottom: clamp(24px, 5vh, 46px);
  z-index: 7;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hud-border);
  background: var(--hud-bg);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transition: opacity 240ms ease-out, transform 140ms ease-out;
}

.mute-btn.is-visible { opacity: 0.85; }
.mute-btn:hover { opacity: 1; transform: scale(1.07); }
.mute-btn:active { transform: scale(0.94); }
.mute-btn svg { grid-area: 1 / 1; width: 22px; height: 22px; }
.mute-btn svg[hidden] { display: none; }

/* ============================================================= coffee === */
.coffee-btn {
  position: absolute;
  left: clamp(12px, 3vw, 30px);
  bottom: clamp(24px, 5vh, 46px);
  z-index: 7;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(63, 224, 242, 0.4);
  background:
    linear-gradient(100deg, transparent 30%, rgba(63, 224, 242, 0.28) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat,
    linear-gradient(155deg, rgba(24, 14, 34, 0.88), rgba(10, 18, 28, 0.84));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(63, 224, 242, 0.55);
  opacity: 0.9;
  animation: hud-pulse 3.2s ease-in-out infinite;
  transition: opacity 140ms ease-out, transform 140ms ease-out, color 140ms ease-out, border-color 140ms ease-out;
}

.coffee-btn::before,
.coffee-btn::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  opacity: 0.85;
}

.coffee-btn::before { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.coffee-btn::after { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }

.coffee-btn:hover,
.coffee-btn:focus-visible {
  opacity: 1;
  color: var(--amber-hot);
  border-color: rgba(255, 210, 63, 0.6);
  text-shadow: 0 0 10px rgba(255, 210, 63, 0.6);
  animation: hud-pulse 3.2s ease-in-out infinite, coffee-scan 900ms ease-out;
}

.coffee-btn:active { transform: scale(0.96); }
.coffee-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  filter: drop-shadow(0 0 4px currentColor);
}

@keyframes coffee-scan {
  from { background-position: -150% 0, 0 0; }
  to   { background-position: 250% 0, 0 0; }
}

/* ========================================================== responsive == */
/* Phones: title + compact health across the top, the leaderboard collapsed
 * beside the corner buttons, and the tagline pinned as a one-line strip. */
@media (max-width: 720px) {
  .topbar {
    top: calc(clamp(18px, 3vh, 30px) + env(safe-area-inset-top));
    align-items: center;
    gap: 10px;
  }
  .title-group { flex: 0 1 auto; min-width: 0; }
  .site-title { font-size: clamp(22px, 7vw, 32px); }

  /* --- health: one compact card, label / round / value over the bar --- */
  .integrity {
    flex: 0 1 200px;
    width: auto;
    min-width: 0;
    padding: 7px 10px 8px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 5px;
  }
  .integrity-head { display: contents; }
  .integrity-label { grid-area: 1 / 1; font-size: 9px; }
  .integrity-value { grid-area: 1 / 3; font-size: 16px; line-height: 1; }
  .round { grid-area: 1 / 2; margin: 0; font-size: 9px; text-align: right; }
  .integrity-track { grid-area: 2 / 1 / 3 / 4; height: 7px; }

  /* --- tagline: a fixed one-line strip along the bottom edge --- */
  .tagline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    max-width: none;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: #120814;
    border-top: 1px solid rgba(255, 210, 150, 0.12);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    color: rgba(253, 246, 238, 0.8);
  }
  .tagline-extra { display: none; }
  .tagline b { color: var(--red); font-weight: 800; }
  .letterbox--bottom { display: none; }

  /* --- leaderboard: pinned bottom-centre, collapsed to your continent --- */
  .counter {
    position: fixed;
    left: 50%;
    bottom: calc(44px + env(safe-area-inset-bottom));
    z-index: 8;
    width: min(230px, calc(100vw - 132px));
    padding: 6px 9px 7px;
    transform: translateX(-50%);
    cursor: pointer;
  }
  .counter-label {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    cursor: pointer;
  }
  .counter-chevron { display: block; }
  .counter.is-expanded .counter-chevron { transform: rotate(180deg); }
  .counter:not(.is-expanded) .leaderboard-row:not(.is-mine) { display: none; }
  .counter.is-expanded .counter-label { margin-bottom: 6px; }
  .leaderboard-row { padding: 2px 6px; }
  .leaderboard-value { font-size: clamp(11px, 3.6vw, 15px); }

  /* --- bottom row & the prompts that float above it --- */
  .mute-btn,
  .coffee-btn { bottom: calc(44px + env(safe-area-inset-bottom)); }
  .mute-btn { right: 16px; }
  .coffee-btn { left: 16px; width: 44px; padding: 0; justify-content: center; }
  .coffee-btn span { display: none; }
  .hint { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .charge-meter { bottom: calc(160px + env(safe-area-inset-bottom)); }
}

@media (max-height: 520px) {
  .hint { bottom: 14px; padding: 6px 13px; }
  .charge-meter { bottom: 46px; }
  .letterbox { height: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hint { animation: none; opacity: 0.85; }
  .integrity.is-critical .integrity-fill { animation: none; }
  .charge-meter.is-full .charge-fill { animation: none; }
  .counter { animation: none; }
  .counter-chevron {
  display: none;
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex: none;
  transition: transform 180ms ease-out;
}

.counter-label::before { animation: none; }
  .coffee-btn, .coffee-btn:hover { animation: none; }
}
