:root {
  color-scheme: dark;
  --ink: #f8f3df;
  --muted: #aeb5d8;
  --night: #090b19;
  --night-2: #12162f;
  --panel: rgba(16, 19, 42, 0.92);
  --border: rgba(181, 192, 255, 0.18);
  --lime: #d9ff7a;
  --violet: #8a75ff;
  --pink: #ff6f91;
  --gold: #ffc857;
  --shadow: rgba(0, 0, 0, 0.46);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 22% 16%, rgba(102, 76, 219, 0.23), transparent 30rem),
    radial-gradient(circle at 82% 85%, rgba(255, 96, 141, 0.12), transparent 28rem),
    linear-gradient(140deg, #0b0d20 0%, #070812 100%);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.game-shell {
  width: min(100%, 31rem, calc(66.667svh - 2.8rem));
  height: 100svh;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  padding: max(0.55rem, env(safe-area-inset-top)) max(0.55rem, env(safe-area-inset-right)) max(0.45rem, env(safe-area-inset-bottom)) max(0.55rem, env(safe-area-inset-left));
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 3.75rem;
  padding: 0.45rem 0.15rem 0.55rem;
}

.brand-lockup,
.topbar-actions,
.best-pill {
  display: flex;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
}

.brand-lockup h1 {
  margin: 0;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.75rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.ready-logo {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: -0.25rem auto 1rem;
  user-select: none;
}

.topbar-actions {
  gap: 0.42rem;
  flex-shrink: 0;
}

.best-pill {
  min-height: 2.35rem;
  gap: 0.45rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.best-pill span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.best-pill strong {
  min-width: 1ch;
  color: var(--lime);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(217, 255, 122, 0.45);
  background: rgba(217, 255, 122, 0.12);
}

.icon-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
}

.icon-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.stage {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 204, 255, 0.22);
  border-radius: clamp(1rem, 4vw, 1.6rem);
  background: #11152e;
  box-shadow:
    0 1.5rem 4.5rem var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  isolation: isolate;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 3.5rem rgba(2, 3, 12, 0.32);
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: pointer;
}

.score-hud {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  z-index: 12;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 150ms ease;
}

.score-hud[aria-hidden="true"] {
  opacity: 0;
}

.score-hud span {
  display: block;
  min-width: 3.2rem;
  color: white;
  font-size: clamp(2.5rem, 13vw, 4rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.06em;
  text-shadow: 0 3px 0 rgba(28, 24, 60, 0.7), 0 0 1.5rem rgba(138, 117, 255, 0.6);
  font-variant-numeric: tabular-nums;
}

.score-hud.bump span {
  animation: score-bump 180ms cubic-bezier(0.2, 1.7, 0.5, 1);
}

.mood-chip {
  position: absolute;
  top: 1rem;
  left: 0.85rem;
  z-index: 22;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.35rem;
  min-width: 6.7rem;
  padding: 0.42rem 0.62rem 0.44rem 0.5rem;
  border: 1px solid rgba(217, 255, 122, 0.3);
  border-radius: 999px;
  background: rgba(9, 12, 29, 0.78);
  box-shadow: 0 0.65rem 1.7rem rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.mood-chip[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.mood-chip > span:not(.mood-orb) {
  color: #8e96bd;
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
}

.mood-chip strong {
  grid-column: 2;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.12;
}

.mood-orb {
  grid-row: 1 / span 2;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0.8rem rgba(217, 255, 122, 0.72);
}

.mood-chip[data-reaction="flap"] {
  border-color: rgba(255, 200, 87, 0.48);
}

.mood-chip[data-reaction="flap"] .mood-orb,
.mood-chip[data-reaction="score"] .mood-orb {
  background: var(--gold);
  box-shadow: 0 0 0.8rem rgba(255, 200, 87, 0.75);
}

.mood-chip[data-reaction="fulfilled"] .mood-orb {
  background: #8ef5cf;
  box-shadow: 0 0 0.8rem rgba(142, 245, 207, 0.72);
}

.mood-chip[data-reaction="pain"],
.mood-chip[data-reaction="sad"] {
  border-color: rgba(255, 111, 145, 0.5);
}

.mood-chip[data-reaction="pain"] .mood-orb,
.mood-chip[data-reaction="sad"] .mood-orb {
  background: var(--pink);
  box-shadow: 0 0 0.8rem rgba(255, 111, 145, 0.72);
}

.mood-chip.react {
  animation: mood-pop 260ms cubic-bezier(0.2, 1.65, 0.5, 1);
}

@keyframes score-bump {
  50% { transform: scale(1.3) rotate(-3deg); color: var(--lime); }
}

@keyframes mood-pop {
  50% { transform: scale(1.08) rotate(-1deg); }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(8, 10, 24, 0.12), rgba(8, 10, 24, 0.67));
  backdrop-filter: blur(1.5px);
}

.overlay[hidden] {
  display: none;
}

.game-card {
  width: min(100%, 24rem);
  padding: clamp(1.35rem, 5vw, 2rem);
  border: 1px solid rgba(205, 211, 255, 0.22);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 45%),
    var(--panel);
  box-shadow: 0 1.3rem 3.8rem rgba(0, 0, 0, 0.46);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.game-card h2,
.pause-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 11vw, 4rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.card-copy {
  max-width: 18rem;
  margin: 1rem auto 1.25rem;
  color: #c5cae8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.06em;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.primary-button {
  width: 100%;
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem 0 1.35rem;
  border-radius: 999px;
  color: #17172b;
  background: var(--lime);
  box-shadow: 0 0.65rem 1.8rem rgba(158, 223, 79, 0.2);
}

.primary-button span:last-child {
  font-size: 1.35rem;
}

.primary-button:hover,
.secondary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(0.985);
}

.control-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
  color: #959dc7;
  font-size: 0.72rem;
  font-weight: 750;
}

.loadout-label {
  width: fit-content;
  margin: -0.35rem auto 0.85rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid rgba(217, 255, 122, 0.27);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(217, 255, 122, 0.065);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.customize-launch {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.65rem;
  border: 1px solid rgba(217, 255, 122, 0.42);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(217, 255, 122, 0.075);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.customize-launch:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 255, 122, 0.72);
  background: rgba(217, 255, 122, 0.12);
}

.customize-launch:active {
  transform: translateY(1px) scale(0.99);
}

.customize-overlay {
  z-index: 50;
  padding: 0.7rem;
  background: rgba(6, 8, 20, 0.8);
  backdrop-filter: blur(10px);
}

.customize-card {
  width: min(100%, 27rem);
  height: min(95%, 42rem);
  max-height: none;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(205, 211, 255, 0.25);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 88% 0%, rgba(138, 117, 255, 0.18), transparent 13rem),
    rgba(13, 16, 36, 0.97);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.58);
}

.customize-header,
.customize-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.customize-header .eyebrow {
  margin-bottom: 0.35rem;
}

.customize-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.25rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.customize-close {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.customize-copy {
  margin: 0;
  color: #aeb6d9;
  font-size: 0.72rem;
  line-height: 1.42;
}

.customize-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.customize-tabs button {
  min-height: 2.25rem;
  border: 0;
  border-radius: 999px;
  color: #8f98be;
  background: transparent;
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.customize-tabs button[aria-selected="true"] {
  color: #17172b;
  background: var(--lime);
  box-shadow: 0 0.45rem 1.2rem rgba(158, 223, 79, 0.17);
}

.customize-scroll {
  min-height: 0;
  padding-right: 0.18rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 255, 122, 0.38) transparent;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.choice-card {
  position: relative;
  min-width: 0;
  padding: 0.44rem;
  overflow: hidden;
  border: 1px solid rgba(205, 211, 255, 0.15);
  border-radius: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.038);
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 255, 122, 0.42);
  background: rgba(255, 255, 255, 0.065);
}

.choice-card[aria-checked="true"] {
  border-color: var(--lime);
  background: rgba(217, 255, 122, 0.09);
  box-shadow: inset 0 0 0 1px rgba(217, 255, 122, 0.18);
}

.choice-card.is-locked {
  color: #c7cbe0;
}

.choice-card.is-locked .cat-preview,
.choice-card.is-locked .stage-preview {
  filter: saturate(0.72) brightness(0.78);
}

.cat-preview,
.stage-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0.72rem;
  background-color: #171b3a;
}

.cat-preview {
  aspect-ratio: 1;
  background-image:
    radial-gradient(circle at 50% 54%, rgba(217, 255, 122, 0.18), transparent 45%),
    var(--cat-image);
  background-repeat: no-repeat;
  background-position: center, 0% 0%;
  background-size: 100% 100%, 300% 200%;
}

.stage-preview {
  background: linear-gradient(165deg, var(--stage-top), var(--stage-bottom));
}

.stage-preview::before,
.stage-preview::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 18%;
  border: 2px solid var(--stage-accent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--stage-accent) 38%, #17172b);
  box-shadow: 0 0 1rem color-mix(in srgb, var(--stage-accent) 42%, transparent);
}

.stage-preview::before { left: 8%; }
.stage-preview::after { right: 8%; }

.stage-orb {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 1.55rem;
  height: 1.55rem;
  z-index: 1;
  border-radius: 50%;
  background: var(--stage-orb);
  box-shadow: 0 0 1.3rem var(--stage-orb);
  transform: translateX(-50%);
}

.stage-landscape {
  position: absolute;
  inset: 48% 0 0;
  pointer-events: none;
}

.stage-preview--blossom .stage-landscape {
  inset: 36% 0 0;
  background:
    radial-gradient(ellipse at 7% 44%, #d49ab9 0 20%, transparent 21%),
    radial-gradient(ellipse at 90% 37%, #b27f9f 0 25%, transparent 26%),
    linear-gradient(0deg, #664562, transparent 70%);
}

.stage-preview--coast .stage-landscape {
  background: repeating-linear-gradient(0deg, #347f91 0 13%, #6aa9ac 14% 16%, #347f91 17% 28%);
  border-top: 2px solid #a7c9bd;
  border-bottom: 7px solid #e0c79f;
}

.stage-preview--forest .stage-landscape {
  inset: 12% 0 0;
  background:
    radial-gradient(ellipse at 12% 5%, #163b30 0 23%, transparent 24%),
    radial-gradient(ellipse at 82% 0%, #204637 0 27%, transparent 28%),
    repeating-linear-gradient(90deg, transparent 0 19%, #173c34 20% 24%, transparent 25% 43%);
}

.stage-preview--space .stage-landscape {
  inset: 5% 3%;
  background:
    radial-gradient(circle at 12% 30%, #e3d9ff 0 1px, transparent 2px),
    radial-gradient(circle at 42% 70%, #95daf4 0 1px, transparent 2px),
    radial-gradient(circle at 75% 85%, #e3d9ff 0 1px, transparent 2px),
    radial-gradient(circle at 80% 15%, #95daf4 0 1px, transparent 2px);
}

.stage-preview--space .stage-orb::after {
  content: "";
  position: absolute;
  inset: 31% -42%;
  border: 3px solid #d3b8fc;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.stage-preview:not(.stage-preview--room)::before,
.stage-preview:not(.stage-preview--room)::after {
  top: 16%;
  bottom: -12%;
  z-index: 2;
  width: 13%;
  box-shadow: none;
}

.stage-preview:not(.stage-preview--room)::after { top: -12%; bottom: 45%; }

.choice-copy {
  display: grid;
  gap: 0.11rem;
  padding: 0.46rem 0.18rem 0.08rem;
}

.choice-copy strong {
  overflow: hidden;
  font-size: 0.77rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-copy span {
  overflow: hidden;
  color: #929bc1;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-badge {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 3;
  padding: 0.26rem 0.4rem;
  border-radius: 999px;
  color: #17172b;
  background: var(--lime);
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.3);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.07em;
}

.choice-card.is-locked .choice-badge {
  color: var(--ink);
  background: rgba(17, 19, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.customize-footer {
  padding-top: 0.68rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.customize-footer p {
  min-width: 0;
  margin: 0;
  color: #aeb6d9;
  font-size: 0.64rem;
  line-height: 1.35;
}

.customize-done {
  min-height: 2.35rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  color: #17172b;
  background: var(--lime);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

kbd {
  padding: 0.16rem 0.36rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  color: #cdd3f1;
  background: rgba(255, 255, 255, 0.07);
  font-family: inherit;
  font-size: 0.72em;
  font-weight: 900;
}

.hint-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #69719a;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.25rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.result-grid > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.6rem;
  background: rgba(255, 255, 255, 0.035);
}

.result-grid > div + div {
  border-left: 1px solid var(--border);
}

.result-grid span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-grid strong {
  color: var(--ink);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.record-note {
  margin: -0.25rem 0 0.8rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.tiny-hint {
  margin: 0.9rem 0 0;
  color: #8f96bd;
  font-size: 0.7rem;
}

.pause-overlay {
  background: rgba(7, 8, 19, 0.72);
  backdrop-filter: blur(7px);
}

.pause-card {
  width: min(100%, 18rem);
  text-align: center;
}

.pause-icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border: 1px solid rgba(217, 255, 122, 0.4);
  border-radius: 50%;
  color: var(--lime);
}

.pause-card h2 {
  font-size: 3.2rem;
}

.secondary-button {
  min-width: 9rem;
  min-height: 2.85rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(217, 255, 122, 0.52);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(217, 255, 122, 0.08);
}

.corner-label {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  z-index: 8;
  color: rgba(238, 240, 255, 0.35);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  pointer-events: none;
}

.footer-note {
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #858cad;
  font-size: 0.66rem;
  font-weight: 700;
}

.live-region,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 660px) {
  .game-shell { padding-top: 0.35rem; padding-bottom: 0.2rem; }
  .topbar { min-height: 3.15rem; padding: 0.25rem 0.1rem 0.35rem; }
  .brand-logo { height: 2.4rem; }
  .ready-logo { max-height: 7.5rem; width: 100%; object-fit: contain; margin-bottom: 0.75rem; }
  .footer-note { min-height: 1.35rem; }
  .overlay {
    align-items: safe center;
    padding: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .game-card { padding: 1.15rem; }
  .card-copy { margin: 0.75rem auto 0.9rem; }
  .control-hint { margin-top: 0.8rem; }
  .customize-overlay { overflow: hidden; }
  .customize-card { height: 100%; padding: 0.82rem; gap: 0.55rem; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .customize-copy { display: none; }
  .cat-preview { aspect-ratio: 1; }
  .stage-preview { aspect-ratio: 16 / 8.8; }
}

@media (max-height: 520px) {
  .brand-logo { height: 2.25rem; }
  .ready-logo { max-height: 5rem; margin: 0 auto 0.55rem; }
  .best-pill { min-height: 2rem; padding: 0.25rem 0.48rem; }
  .best-pill span { display: none; }
  .icon-button { width: 2rem; height: 2rem; }
  .game-card { padding: 0.78rem; border-radius: 1rem; }
  .game-card h2 { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .ready-card .eyebrow { margin-bottom: 0.35rem; font-size: 0.55rem; }
  .card-copy { margin: 0.48rem auto 0.58rem; font-size: 0.72rem; line-height: 1.3; }
  .loadout-label { margin-bottom: 0.5rem; padding: 0.28rem 0.5rem; font-size: 0.5rem; }
  .primary-button { min-height: 2.55rem; }
  .customize-launch { min-height: 2.3rem; margin-top: 0.4rem; }
  .control-hint, .tiny-hint { display: none; }
}

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