:root {
  color-scheme: dark;
  --ink: #f8f5ff;
  --muted: #a9acc8;
  --panel: rgba(14, 18, 45, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd774;
  --cyan: #8de8e1;
  --bg: #090c20;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(61, 55, 127, 0.28), transparent 38%),
    linear-gradient(145deg, #090b1c 0%, #0d1230 53%, #07091a 100%);
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.page-glow {
  position: fixed;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow--one {
  top: -24vw;
  left: -10vw;
  background: #7f5cff;
}

.page-glow--two {
  right: -16vw;
  bottom: -30vw;
  background: #ff5a8b;
}

.game-app {
  position: relative;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 30px;
  width: min(100%, 1600px);
  height: 100svh;
  margin: 0 auto;
  padding: 0 18px;
}

.topbar {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
}

.brand__mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 215, 116, 0.5);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 215, 116, 0.2);
  font-size: 12px;
}

.brand__name {
  font-weight: 800;
  font-size: 13px;
}

.brand__tag {
  color: #777b9c;
  font-size: 8px;
  font-weight: 700;
}

.topbar__actions {
  display: flex;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #cdd0e8;
  background: rgba(18, 22, 50, 0.65);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  background: rgba(35, 40, 79, 0.86);
  transform: translateY(-1px);
}

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

.game-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(50, 55, 118, 0.23), transparent 43%),
    #080b1f;
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

#game-canvas,
.arena-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#game-canvas {
  z-index: 1;
  cursor: crosshair;
  touch-action: none;
}

.arena-vignette {
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 100px 24px rgba(4, 5, 17, 0.52);
}

.hud {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  pointer-events: none;
}

.hud__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud__block strong {
  letter-spacing: 0.1em;
  font-size: 12px;
}

.hud__block--heart {
  align-items: center;
}

.hud__block--score {
  align-items: flex-end;
}

.hud__block--score strong {
  font-variant-numeric: tabular-nums;
  font-size: 17px;
}

.hud__label {
  color: #747998;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.progress-track {
  width: 136px;
  height: 2px;
  margin-top: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8de8e1, #ffd774);
  box-shadow: 0 0 7px #8de8e1;
  transition: width 300ms ease;
}

.heart-pips {
  display: flex;
  gap: 6px;
  color: #ff708d;
  filter: drop-shadow(0 0 5px rgba(255, 112, 141, 0.6));
}

.heart-pips span {
  transition: 240ms ease;
}

.heart-pips span.is-empty {
  color: #353950;
  filter: none;
  transform: scale(0.82);
}

.combo-label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.8;
}

.power-panel {
  position: absolute;
  z-index: 7;
  right: 78px;
  bottom: 15px;
  left: 78px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 24, 54, 0.76), rgba(10, 13, 35, 0.92));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.power-panel__heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
  color: #777c9e;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.power-dock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.power-card {
  --power: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #f5f5ff;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.power-card::before {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--power);
  box-shadow: 0 0 12px var(--power);
  content: "";
  opacity: 0.35;
}

.power-card:hover {
  border-color: color-mix(in srgb, var(--power) 45%, transparent);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

.power-card.is-active {
  border-color: var(--power);
  background: color-mix(in srgb, var(--power) 13%, rgba(14, 18, 44, 0.9));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--power) 10%, transparent), 0 0 16px color-mix(in srgb, var(--power) 10%, transparent);
}

.power-card.is-active::before {
  height: 3px;
  opacity: 1;
}

.power-card__glyph {
  color: var(--power);
  text-align: center;
  text-shadow: 0 0 10px var(--power);
  font-size: 18px;
}

.power-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.power-card__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.power-card__copy small {
  overflow: hidden;
  color: #868baa;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
}

.power-card kbd,
.resonance-button kbd {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #8388a5;
  background: rgba(0, 0, 0, 0.14);
  font: 7px/1 ui-monospace, monospace;
  padding: 3px 4px;
}

.resonance-button {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 18px;
  display: flex;
  width: 52px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: white;
  background: rgba(14, 18, 44, 0.85);
  cursor: pointer;
  transition: 180ms ease;
}

.resonance-button__orb {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 215, 116, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.resonance-button__orb > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0%;
  background: linear-gradient(#8de8e1, #ffd774);
  transition: height 250ms ease;
}

.resonance-button__orb b {
  z-index: 1;
  color: #fff3c5;
  font-size: 11px;
  text-shadow: 0 0 8px white;
}

.resonance-button__copy,
.resonance-button kbd {
  display: none;
}

.resonance-button:not(:disabled):hover {
  border-color: #ffd774;
  box-shadow: 0 0 24px rgba(255, 215, 116, 0.26);
  transform: translateY(-2px);
}

.resonance-button.is-ready {
  border-color: rgba(255, 215, 116, 0.75);
  animation: readyPulse 1.5s ease-in-out infinite;
}

.resonance-button:disabled {
  cursor: default;
}

.pair-callout,
.wave-callout,
.aim-hint,
.toast {
  position: absolute;
  z-index: 9;
  pointer-events: none;
}

.pair-callout {
  top: 82px;
  left: 50%;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #d9dbed;
  background: rgba(10, 13, 34, 0.76);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: 180ms ease;
  backdrop-filter: blur(8px);
}

.pair-callout.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wave-callout {
  top: 42%;
  left: 50%;
  width: min(80%, 500px);
  color: white;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.wave-callout.is-visible {
  animation: waveTitle 2.5s ease both;
}

.wave-callout small,
.wave-callout strong,
.wave-callout span {
  display: block;
}

.wave-callout small {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.wave-callout strong {
  letter-spacing: 0.08em;
  font-size: clamp(22px, 4vw, 42px);
}

.wave-callout span {
  margin-top: 7px;
  color: #b0b4d0;
  font-size: 11px;
}

.aim-hint {
  --aim-color: #8de8e1;
  top: 50%;
  left: 50%;
  color: var(--aim-color);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0;
  text-shadow: 0 0 10px color-mix(in srgb, var(--aim-color) 70%, transparent);
  transform: translate(-50%, 82px);
  transition: color 160ms ease, opacity 300ms ease;
}

.aim-hint span {
  margin: 0 4px;
  color: currentColor;
}

.aim-hint.is-visible {
  opacity: 0.8;
}

.toast {
  top: 88px;
  right: 20px;
  max-width: 250px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #e5e6f3;
  background: rgba(8, 11, 30, 0.9);
  font-size: 9px;
  opacity: 0;
  transform: translateX(12px);
  transition: 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.modal-layer {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  padding: 20px;
  overflow: auto;
  place-items: center;
  background: rgba(5, 7, 23, 0.64);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  backdrop-filter: blur(10px);
}

.modal-layer--visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(680px, 100%);
  padding: 24px clamp(22px, 5vw, 54px) 21px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(128, 102, 221, 0.17), transparent 40%),
    linear-gradient(150deg, rgba(25, 29, 65, 0.97), rgba(9, 12, 35, 0.98));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.08);
}

.modal-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 0.6px, transparent 0.7px);
  background-size: 16px 16px;
  content: "";
  opacity: 0.15;
  pointer-events: none;
}

.title-sigil {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 13px;
  place-items: center;
}

.title-sigil::before,
.title-sigil::after,
.title-sigil__ring {
  position: absolute;
  border: 1px solid rgba(255, 215, 116, 0.35);
  border-radius: 50%;
  content: "";
}

.title-sigil::before {
  inset: 0;
}

.title-sigil::after {
  inset: 9px;
  border-style: dashed;
  animation: spin 12s linear infinite;
}

.title-sigil__ring {
  inset: 18px;
  background: rgba(255, 215, 116, 0.08);
  box-shadow: 0 0 25px rgba(255, 215, 116, 0.16);
}

.title-sigil__heart {
  z-index: 1;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 215, 116, 0.8);
}

.eyebrow {
  margin: 0 0 8px;
  color: #a69ed8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

.modal-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(35px, 7vw, 62px);
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-shadow: 0 4px 32px rgba(141, 120, 235, 0.22);
}

.hero-copy {
  margin: 13px 0 19px;
  color: #b9bcd3;
  font-size: 12px;
  line-height: 1.6;
}

.how-to-play {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(3, 5, 19, 0.18);
}

.how-to-play > div {
  position: relative;
  display: grid;
  min-height: 76px;
  align-content: center;
  padding: 11px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.how-to-play > div:last-child {
  border-right: 0;
}

.step-number {
  position: absolute;
  top: 8px;
  right: 9px;
  color: rgba(255, 255, 255, 0.16);
  font: 700 12px ui-monospace, monospace;
}

.how-to-play b {
  margin-bottom: 4px;
  color: #f1f1fa;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.how-to-play small {
  max-width: 130px;
  color: #858aa8;
  font-size: 9px;
  line-height: 1.35;
}

.modal-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.primary-button {
  display: flex;
  width: min(100%, 330px);
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(255, 235, 178, 0.75);
  border-radius: 10px;
  color: #171122;
  background: linear-gradient(105deg, #ffd774, #ffbd83);
  box-shadow: 0 10px 28px rgba(255, 187, 105, 0.16);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: 180ms ease;
}

.primary-button:hover {
  box-shadow: 0 13px 36px rgba(255, 187, 105, 0.28);
  transform: translateY(-2px);
}

.text-button {
  border: 0;
  color: #9da1bd;
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.text-button:hover {
  color: white;
}

.control-note {
  margin: 14px 0 0;
  color: #666b8b;
  font-size: 8px;
}

kbd {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #aeb2ca;
  background: rgba(0, 0, 0, 0.16);
  font: 8px ui-monospace, monospace;
  padding: 2px 4px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.guide-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.guide-pair span {
  font-size: 10px;
}

.guide-pair span:first-child {
  color: #989cb8;
  text-align: right;
}

.guide-pair b {
  font-size: 15px;
}

.guide-copy {
  margin: 10px 0 3px;
  color: #8f94b1;
  font-size: 10px;
  line-height: 1.55;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.result-stat {
  padding: 14px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.result-stat:last-child {
  border-right: 0;
}

.result-stat strong,
.result-stat span {
  display: block;
}

.result-stat strong {
  color: var(--gold);
  font-size: 18px;
}

.result-stat span {
  margin-top: 3px;
  color: #777c9b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
  color: #555a78;
  font-size: 8px;
  letter-spacing: 0.03em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 215, 116, 0); }
  50% { box-shadow: 0 0 24px rgba(255, 215, 116, 0.38); }
}

@keyframes waveTitle {
  0% { opacity: 0; transform: translate(-50%, -44%) scale(0.94); }
  18%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(1.02); }
}

@media (min-width: 1200px) {
  .power-panel {
    right: 172px;
    left: 172px;
  }

  .resonance-button {
    right: 18px;
    width: 143px;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 10px;
  }

  .resonance-button__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .resonance-button__copy small {
    color: #777c9a;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.11em;
  }

  .resonance-button__copy strong {
    font-size: 10px;
  }

  .resonance-button kbd {
    display: inline;
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .game-app {
    grid-template-rows: 48px minmax(0, 1fr);
    padding: 0;
  }

  .topbar {
    padding: 0 10px;
  }

  .brand__tag,
  .footer-note,
  .power-panel__keyboard {
    display: none;
  }

  .game-shell {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .hud {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .hud__block strong {
    font-size: 9px;
  }

  .hud__block--score strong {
    font-size: 13px;
  }

  .progress-track {
    width: 90px;
  }

  .power-panel {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    padding: 8px;
  }

  .power-dock {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .power-card {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 43px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .power-card kbd {
    display: none;
  }

  .power-card__copy strong {
    font-size: 9px;
  }

  .power-panel__heading {
    margin-bottom: 6px;
  }

  .resonance-button {
    right: 11px;
    bottom: 123px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }

  .pair-callout {
    top: 68px;
  }

  .toast {
    top: 66px;
    right: 10px;
  }

  .modal-layer {
    padding: 12px;
    align-items: center;
  }

  .modal-card {
    padding: 20px 16px 17px;
  }

  .title-sigil {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .modal-card h1 {
    font-size: 37px;
  }

  .hero-copy {
    margin: 10px 0 14px;
  }

  .how-to-play > div {
    min-height: 65px;
    padding: 9px;
  }

  .how-to-play small {
    font-size: 8px;
  }

  .guide-grid {
    gap: 5px;
  }

  .guide-pair {
    padding: 8px 6px;
  }
}

@media (max-width: 390px) {
  .brand__name {
    font-size: 11px;
  }

  .brand__mark {
    width: 24px;
    height: 24px;
  }

  .how-to-play {
    grid-template-columns: 1fr;
  }

  .how-to-play > div {
    min-height: 49px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .how-to-play > div:last-child {
    border-bottom: 0;
  }

  .how-to-play small {
    max-width: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 700px) and (min-width: 600px) {
  .game-app {
    grid-template-rows: 48px minmax(0, 1fr) 24px;
  }

  .modal-card {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .modal-layer {
    align-items: start;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .title-sigil {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .modal-card h1 {
    font-size: 38px;
  }

  .hero-copy {
    margin: 8px 0 12px;
  }

  .how-to-play {
    margin-bottom: 12px;
  }

  .how-to-play > div {
    min-height: 61px;
  }

  .control-note {
    margin-top: 8px;
  }
}

@media (max-height: 420px) and (min-width: 600px) {
  .modal-layer {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .modal-card {
    padding: 8px 34px;
  }

  .title-sigil {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
  }

  .title-sigil::after {
    inset: 6px;
  }

  .title-sigil__ring {
    inset: 12px;
  }

  .eyebrow {
    margin-bottom: 4px;
  }

  .modal-card h1 {
    font-size: 32px;
  }

  .hero-copy {
    margin: 5px 0 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  .how-to-play {
    margin-bottom: 8px;
  }

  .how-to-play > div {
    min-height: 48px;
    padding: 6px 12px;
  }

  .how-to-play small {
    font-size: 8px;
  }

  .primary-button {
    min-height: 40px;
  }

  .modal-actions {
    gap: 4px;
  }

  .control-note {
    display: none;
  }

  .power-card {
    grid-template-columns: 22px minmax(0, 1fr);
    padding-right: 6px;
    padding-left: 6px;
  }

  .power-card kbd {
    display: none;
  }

  .power-card__copy strong {
    font-size: 8px;
  }

  .aim-hint {
    display: none;
  }
}

.game-shell.is-compact .power-panel {
  right: 56px;
  bottom: 6px;
  left: 56px;
  padding: 5px 6px;
  border-radius: 12px;
}

.game-shell.is-compact .power-panel__heading {
  display: none;
}

.game-shell.is-compact .power-dock {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.game-shell.is-compact .power-card {
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 36px;
  padding: 4px;
  border-radius: 8px;
}

.game-shell.is-compact .power-card__glyph {
  font-size: 14px;
}

.game-shell.is-compact .power-card__copy strong {
  font-size: 7px;
}

.game-shell.is-compact .power-card__copy small {
  display: none;
}

.game-shell.is-compact .resonance-button {
  right: 8px;
  bottom: 7px;
  width: 42px;
  height: 42px;
}

.game-shell.is-compact .pair-callout {
  top: 52px;
  font-size: 8px;
}

.game-shell.is-compact .toast {
  top: 51px;
}

.game-shell.is-compact .aim-hint {
  display: none;
}

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