:root {
  color-scheme: dark;
  --ink: #fffafc;
  --muted: #c5b9ca;
  --deep: #160f25;
  --panel: rgba(31, 19, 45, 0.78);
  --pink: #ff5d9b;
  --pink-soft: #ff9ac1;
  --cyan: #69e8de;
  --gold: #ffd16a;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(8, 4, 14, 0.42);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.screen { min-height: 100svh; }
body[data-state="intro"] #game-screen,
body[data-state="intro"] #results-screen,
body[data-state="playing"] #intro-screen,
body[data-state="playing"] #results-screen,
body[data-state="paused"] #intro-screen,
body[data-state="paused"] #results-screen,
body[data-state="results"] #intro-screen,
body[data-state="results"] #game-screen { display: none; }

.intro {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(32px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 93, 155, 0.32), transparent 26rem),
    radial-gradient(circle at 12% 85%, rgba(105, 232, 222, 0.18), transparent 28rem),
    linear-gradient(145deg, #190d28 0%, #271735 52%, #120d20 100%);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.intro__content {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(34px, 8vh, 76px);
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover, .back-link:focus-visible { color: var(--ink); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: .77;
  letter-spacing: -.08em;
  text-shadow: 0 6px 0 rgba(255, 93, 155, .18);
}
h1 span { color: var(--pink); }

.lede {
  max-width: 34rem;
  margin: 28px 0 26px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.song-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.song-card h2 { margin: 1px 0 3px; font-size: clamp(1.2rem, 4vw, 1.55rem); }
.song-card h2 small { display: inline; color: var(--pink-soft); font-size: .68em; font-weight: 650; }
.song-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.song-card__label { letter-spacing: .08em; text-transform: uppercase; }

.record {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #17111d 0 3px, #2d2133 4px 6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.record::before, .record span {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}
.record span { inset: 26px; background: #fff; }

.media-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 2px 12px;
  color: var(--muted);
  font-size: .84rem;
}
.status-light {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: .38em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px currentColor;
}
.media-status[data-ready="true"] .status-light { background: var(--cyan); }
.media-status[data-error="true"] .status-light { background: var(--pink); }

.primary-button, .secondary-button, .text-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(100deg, var(--pink), #ff7d79);
  color: #1a0d1b;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(255, 93, 155, .26);
}
.primary-button:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .44; box-shadow: none; }
.secondary-button {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 750;
}

.settings {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.settings summary { cursor: pointer; padding: 14px 16px; font-weight: 750; }
.settings__body { display: grid; gap: 16px; padding: 2px 16px 18px; }
.settings label:not(.toggle) { display: grid; gap: 7px; }
.settings label > span { display: flex; justify-content: space-between; color: var(--muted); font-size: .87rem; }
.settings output { color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--pink); }
.toggle { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.toggle input { width: 18px; height: 18px; accent-color: var(--pink); }
.control-help { padding-top: 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.control-help p { margin: 10px 0 0; }
.control-help strong { color: var(--ink); }
.disclaimer { margin: 18px 2px 0; color: #998fa0; font-size: .72rem; }

.intro__decoration { position: absolute; inset: 0; pointer-events: none; }
.intro__decoration span {
  position: absolute;
  color: rgba(255,255,255,.035);
  font-size: min(32vw, 25rem);
  font-weight: 900;
  line-height: 1;
}
.intro__decoration span:nth-child(1) { top: -5%; right: -2%; transform: rotate(12deg); }
.intro__decoration span:nth-child(2) { bottom: -8%; left: -3%; transform: rotate(-9deg); }
.intro__decoration span:nth-child(3) { bottom: 5%; right: 10%; transform: rotate(5deg); }

.game {
  position: relative;
  display: grid;
  grid-template-rows: auto 3px 1fr;
  min-height: 100svh;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  background: #120d20;
}
.stage-art, .stage-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-art { object-fit: cover; opacity: .5; filter: saturate(.78) contrast(1.08); pointer-events: none; }
.stage-wash {
  background:
    linear-gradient(to bottom, rgba(13,8,21,.34), rgba(13,8,21,.08) 38%, rgba(13,8,21,.74)),
    linear-gradient(110deg, rgba(23,11,38,.72), rgba(70,18,57,.15));
}

.hud {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(110px, 1.5fr) 44px;
  align-items: center;
  gap: clamp(10px, 2.5vw, 28px);
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(14,8,23,.82), rgba(14,8,23,.28));
}
.hud span { display: block; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hud strong { display: block; font-variant-numeric: tabular-nums; }
.hud__score strong { font-size: clamp(1.1rem, 3vw, 1.45rem); }
.gauge-track { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.14); }
.gauge-track i { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--cyan)); transition: width 180ms ease; }
.icon-button { width: 42px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: rgba(0,0,0,.22); cursor: pointer; font-weight: 900; }
.progress-track { position: relative; z-index: 3; background: rgba(255,255,255,.1); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--pink); }

.playfield {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(54px, auto) minmax(86px, 20vh) 42px minmax(290px, 1fr);
  gap: 8px;
  width: min(100%, 780px);
  margin: 0 auto;
  padding: clamp(12px, 2.5vh, 24px) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.lyric-copy {
  align-self: end;
  min-height: 1.5em;
  overflow: hidden;
  color: #fff;
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 12px #000;
}

.note-lane {
  --note-size: clamp(54px, 13vw, 78px);
  position: relative;
  overflow: visible;
  border-block: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(255,93,155,.12), rgba(0,0,0,.26) 20%, rgba(0,0,0,.16));
  box-shadow: inset 0 0 36px rgba(0,0,0,.24);
}
#lane-notes {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
}
.timing-line {
  position: absolute;
  z-index: 2;
  top: 8%;
  bottom: 8%;
  left: 12%;
  width: 3px;
  border-radius: 99px;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}
.timing-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--note-size) - 4px);
  aspect-ratio: 1;
  border: 2px solid var(--pink-soft);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.lane-note {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: var(--note-size);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(24,14,35,.9);
  box-shadow: 0 6px 18px rgba(0,0,0,.38);
  color: #fff;
  font-size: calc(var(--note-size) * .46);
  font-weight: 900;
  transform: translate(-50%, -50%);
  will-change: left, opacity;
}
.lane-note::after {
  content: attr(data-arrow);
  position: absolute;
  right: -4px;
  bottom: -5px;
  display: grid;
  width: calc(var(--note-size) * .36);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #0b2828;
  font-size: calc(var(--note-size) * .2);
}
.no-hints .lane-note::after { display: none; }
.lane-note.is-active { border-color: var(--gold); box-shadow: 0 0 22px rgba(255,209,106,.52); }
.lane-note.is-display {
  z-index: 2;
  width: calc(var(--note-size) * .5);
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(255,250,252,.62);
  font-size: calc(var(--note-size) * .3);
  font-weight: 700;
  text-shadow: 0 0 2px #120b1d, 0 1px 7px #000;
}
.lane-note.is-display::after { display: none; }

.hit-anchor {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 12%;
  width: 0;
  pointer-events: none;
}
.hit-pop {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0;
  color: var(--gold);
}
.hit-pop[data-grade="FINE"] { color: var(--cyan); }
.hit-pop[data-grade="SAFE"] { color: #b9e66f; }
.hit-pop[data-grade="SAD"] { color: #c9a8ff; }
.hit-pop[data-grade="WORST"] { color: var(--pink); }
.hit-pop__ring,
.hit-pop__label {
  position: absolute;
  left: 0;
  opacity: 0;
}
.hit-pop__ring {
  top: 0;
  width: calc(var(--note-size) - 4px);
  aspect-ratio: 1;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hit-pop__label {
  bottom: calc(var(--note-size) * .43);
  color: currentColor;
  font-size: clamp(1rem, 3.8vw, 1.5rem);
  font-weight: 950;
  letter-spacing: .07em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 2px #000, 0 2px 12px #000;
}
.hit-pop.is-live .hit-pop__label { animation: feedback-rise 560ms cubic-bezier(.2,.72,.3,1) both; }
.hit-pop.is-live .hit-pop__ring { animation: feedback-ring 300ms ease-out both; }
.hit-pop.is-live[data-kind="weak"] .hit-pop__label { animation-name: feedback-rise-short; }
.hit-pop.is-live[data-kind="weak"] .hit-pop__ring { animation: none; }
.hit-pop.is-live[data-kind="miss"] .hit-pop__label { animation-name: feedback-rise-miss; }
.hit-pop.is-live[data-kind="miss"] .hit-pop__ring {
  border-style: dashed;
  animation-name: feedback-ring-miss;
}
.lane-combo {
  position: absolute;
  top: calc(50% + var(--note-size) / 2 + 5px);
  left: 0;
  display: grid;
  justify-items: center;
  min-width: 4.5rem;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 9px #000;
  transform: translateX(-50%);
}
.lane-combo strong {
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}
.lane-combo span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.lane-combo.is-bump strong { animation: combo-bump 160ms ease-out; }
.lane-combo.is-broken { animation: combo-break 420ms ease-out; }
.feedback-gutter { min-height: 1.5rem; }
body[data-state="paused"] .hit-pop *,
body[data-state="paused"] .lane-combo { animation-play-state: paused !important; }

.keypad {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 12px);
  width: min(100%, 700px);
  height: min(100%, 620px);
  min-height: 290px;
  margin: 0 auto;
}
.keypad button {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: clamp(12px, 3vw, 20px);
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 8px 18px rgba(0,0,0,.17);
  cursor: pointer;
  touch-action: none;
  backdrop-filter: blur(12px);
}
.keypad button:nth-child(3n+2) { background: linear-gradient(145deg, rgba(255,93,155,.28), rgba(255,255,255,.08)); }
.keypad button:active, .keypad button.is-pressed { transform: scale(.96); border-color: var(--cyan); box-shadow: 0 0 22px rgba(105,232,222,.3); }
.keypad button > span { font-size: clamp(1.7rem, 6.5vw, 2.6rem); font-weight: 850; }
.keypad__last { grid-column: 2; }

.flick-fan {
  --fan-cell: 72px;
  position: fixed;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, var(--fan-cell));
  grid-template-rows: repeat(3, var(--fan-cell));
  gap: 3px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.flick-fan span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 14px;
  background: rgba(30,18,44,.94);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  color: #fff;
  font-size: calc(var(--fan-cell) * .44);
  font-weight: 850;
}
.flick-fan [data-direction="center"] { grid-area: 2 / 2; }
.flick-fan [data-direction="left"] { grid-area: 2 / 1; }
.flick-fan [data-direction="up"] { grid-area: 1 / 2; }
.flick-fan [data-direction="right"] { grid-area: 2 / 3; }
.flick-fan [data-direction="down"] { grid-area: 3 / 2; }
.flick-fan .is-selected { border-color: var(--cyan); background: var(--cyan); color: #0b2828; box-shadow: 0 0 24px rgba(105,232,222,.55); }
.flick-fan .is-disabled {
  border-style: dashed;
  border-color: rgba(255,255,255,.18);
  background: rgba(30,18,44,.55);
  box-shadow: none;
}
.flick-fan .is-disabled::before { content: "×"; color: rgba(255,255,255,.3); font-size: .6em; }
.flick-fan .is-disabled.is-selected { border-color: var(--pink-soft); background: rgba(255,93,155,.22); }

.countdown {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: #fff;
  font-size: min(34vw, 13rem);
  font-weight: 950;
  text-shadow: 0 8px 50px rgba(255,93,155,.7);
}
.countdown:empty { display: none; }

.modal-layer {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10,6,16,.7);
  backdrop-filter: blur(16px);
}
.modal-card {
  width: min(100%, 380px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #21142f;
  box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 24px; font-size: 2rem; }
.text-button { display: block; margin: 18px auto 0; background: transparent; color: var(--muted); }

.results {
  display: grid;
  place-items: center;
  padding: max(30px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 15%, rgba(255,93,155,.3), transparent 24rem),
    linear-gradient(145deg, #160d24, #28162f);
}
.results__card { width: min(100%, 640px); text-align: center; }
.results h2 { margin: 0 0 24px; font-size: clamp(2.2rem, 8vw, 4.2rem); }
.rank {
  display: grid;
  width: 104px;
  aspect-ratio: 1;
  place-items: center;
  margin: 10px auto 8px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 4rem;
  font-weight: 950;
  box-shadow: 0 0 42px rgba(255,209,106,.24);
  transform: rotate(-5deg);
}
.result-hero, .judgment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.05);
}
.result-hero > div { padding: 16px 8px; }
.result-hero > div + div { border-left: 1px solid var(--line); }
.result-hero span, .judgment-grid span { display: block; color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.result-hero strong { display: block; margin-top: 3px; font-size: clamp(1.15rem, 4vw, 1.8rem); font-variant-numeric: tabular-nums; }
.judgment-grid { grid-template-columns: repeat(5, 1fr); margin-top: 12px; }
.judgment-grid div { padding: 12px 4px; }
.judgment-grid div + div { border-left: 1px solid var(--line); }
.judgment-grid strong { display: block; margin-top: 2px; font-size: 1.1rem; }
.best-line { min-height: 1.5em; color: var(--gold); font-weight: 750; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.debug-panel {
  position: fixed;
  z-index: 50;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 6px;
  width: min(310px, calc(100% - 20px));
  padding: 12px;
  border: 1px solid rgba(105,232,222,.55);
  border-radius: 10px;
  background: rgba(5,12,15,.9);
  color: #d8fffb;
  font: 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: var(--shadow);
}
.debug-panel span, .debug-panel label { display: flex; justify-content: space-between; gap: 12px; }
.debug-panel input { width: 180px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-height: 670px) and (orientation: landscape) {
  .hud { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .playfield {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 1.3fr);
    grid-template-rows: 40px minmax(64px, 1fr) 30px;
    gap: 6px 12px;
    width: min(100%, 1040px);
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .note-lane { --note-size: clamp(50px, 17svh, 72px); }
  .lyric-copy { grid-column: 1; grid-row: 1; font-size: clamp(.9rem, 2.4vw, 1.25rem); }
  .note-lane { grid-column: 1; grid-row: 2; }
  .feedback-gutter { grid-column: 1; grid-row: 3; }
  .keypad { grid-column: 2; grid-row: 1 / 4; width: 100%; height: 100%; min-height: 0; max-height: 560px; gap: 6px; }
  .keypad button > span { font-size: clamp(1.4rem, 9svh, 2.4rem); }
}

@media (max-width: 520px) {
  .hud { grid-template-columns: 1fr 1.2fr 40px; gap: 8px; }
  .hud__gauge > span { font-size: .56rem; }
  .result-actions { grid-template-columns: 1fr; }
  .intro { place-items: start center; }
}

@media (max-width: 520px) and (orientation: portrait) {
  .playfield {
    grid-template-rows: 28px 62px 34px minmax(286px, 1fr);
    gap: 4px;
    padding: 6px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }
  .note-lane { --note-size: 54px; }
  .lyric-copy { font-size: .98rem; }
  .keypad {
    align-self: end;
    width: min(96%, 420px);
    height: clamp(228px, 32svh, 260px);
    min-height: 0;
    max-height: 260px;
    gap: 6px;
  }
  .keypad button > span { font-size: clamp(1.8rem, 9vw, 2.4rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .record { animation: turn 8s linear infinite; }
  .stage-art { animation: breathe 7s ease-in-out infinite alternate; }
}
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { to { transform: scale(1.025); } }
@keyframes feedback-rise {
  0% { opacity: 0; transform: translate(-50%, 7px) scale(.86); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.07); }
  48% { opacity: 1; transform: translate(-50%, -7px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -28px) scale(.98); }
}
@keyframes feedback-rise-short {
  0% { opacity: 0; transform: translate(-50%, 5px) scale(.9); }
  20%, 55% { opacity: .92; transform: translate(-50%, -3px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -18px) scale(.98); }
}
@keyframes feedback-rise-miss {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(.9); }
  18%, 55% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -14px) scale(.96); }
}
@keyframes feedback-ring {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.88); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}
@keyframes feedback-ring-miss {
  from { opacity: .9; transform: translate(-50%, -50%) scale(1.08); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(.78); }
}
@keyframes combo-bump {
  from { transform: scale(.86); color: var(--gold); }
  65% { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes combo-break {
  0% { color: var(--pink); transform: translateX(-50%) translateY(-2px); }
  35% { transform: translateX(-50%) translateY(2px); }
  70% { transform: translateX(-50%) translateY(-1px); }
  100% { color: #fff; transform: translateX(-50%); }
}
@keyframes feedback-fade {
  0%, 62% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}
@keyframes ring-fade {
  from { opacity: .8; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hit-pop.is-live .hit-pop__label { animation: feedback-fade 600ms linear both !important; }
  .hit-pop.is-live .hit-pop__ring { animation: ring-fade 300ms linear both !important; }
  .hit-pop.is-live[data-kind="weak"] .hit-pop__ring { animation: none !important; }
  .lane-combo.is-bump strong { animation: none !important; }
  .lane-combo.is-broken { animation: none !important; }
}
