:root {
  color-scheme: dark;
  --bg: #0f1020;
  --panel: #1a1b28;
  --panel-2: #212233;
  --accent: #6842ff;
  --accent-2: #8a6dff;
  --green: #2fd67b;
  --orange: #ff8a2b;
  --red: #ff4d5e;
  --gold: #ffcf3a;
  --text: #fff;
  --muted: #aaadbe;
  --line: rgba(255, 255, 255, 0.08);
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body {
  padding: 8px;
}
button {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.hs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hs-shell {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---------- HUD ---------- */
.hs-hud {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.hs-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #26273a, var(--panel));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.25);
}
.hs-side-right {
  padding: 5px 5px 5px 12px;
  justify-content: flex-end;
  text-align: right;
}
.hs-crest {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c1, #ff4d3d);
  background-image: linear-gradient(135deg, transparent 55%, var(--c2, #ffd23a) 55%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.hs-side-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-name {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}
.hs-meter {
  position: relative;
  display: block;
  height: 9px;
  border-radius: 99px;
  background: #0d0e1a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.hs-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffe680, #ffb300);
  transition: width 0.15s ease-out;
}
.hs-side-right .hs-meter-fill {
  inset: 0 0 0 auto;
}
.hs-side.is-ready .hs-meter-fill {
  background: linear-gradient(90deg, #ffe34d, #ff7a1a, #ffe34d);
  background-size: 200% 100%;
  animation: hs-ready 0.8s linear infinite;
}
.hs-side.is-ready {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(255, 207, 58, 0.7),
    0 4px 14px rgba(255, 170, 0, 0.35);
}
@keyframes hs-ready {
  to {
    background-position: -200% 0;
  }
}
.hs-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 14px 4px;
  border-radius: 16px;
  background: linear-gradient(180deg, #7a5cff, var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 6px 14px rgba(104, 66, 255, 0.35);
  line-height: 1;
}
.hs-score {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hs-score.is-pop {
  animation: hs-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.hs-time {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #e8e2ff;
  font-variant-numeric: tabular-nums;
}
.hs-time.is-low {
  color: #ffd84d;
}
.hs-time.is-golden {
  color: #ffd84d;
  letter-spacing: 0.04em;
}
.hs-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #33344a, #2a2b3d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.hs-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.hs-icon:disabled {
  opacity: 0.45;
  cursor: default;
}
.hs-icon .hs-x {
  display: none;
}
.hs-icon[aria-pressed="true"] .hs-x {
  display: block;
}
.hs-icon[aria-pressed="true"] .hs-wave {
  display: none;
}

/* ---------- Stage ---------- */
.hs-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #1b1d4a;
  box-shadow:
    0 0 0 1px var(--line),
    0 18px 40px rgba(0, 0, 0, 0.45);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hs-stage.is-shake {
  animation: hs-shake 0.4s ease;
}
#hs-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}
.hs-stage:has(#hs-canvas:focus-visible) {
  box-shadow:
    0 0 0 3px var(--accent-2),
    0 18px 40px rgba(0, 0, 0, 0.45);
}
@keyframes hs-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-6px, 3px);
  }
  40% {
    transform: translate(5px, -4px);
  }
  60% {
    transform: translate(-4px, 2px);
  }
  80% {
    transform: translate(3px, -1px);
  }
}

.hs-banner {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%) scale(0);
  font-size: clamp(34px, 10vw, 92px);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  color: #fff;
  -webkit-text-stroke: 3px #2a1470;
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 #2a1470,
    0 10px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.hs-banner.is-gold {
  color: #ffd84d;
}
.hs-banner.is-small {
  font-size: clamp(22px, 6vw, 54px);
}
.hs-banner.is-on {
  animation: hs-banner 1.5s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
@keyframes hs-banner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(-8deg);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12) rotate(2deg);
  }
  30% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -62%) scale(0.9);
  }
}

.hs-hint {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 20px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 16, 32, 0.78);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  font-weight: 800;
  pointer-events: none;
  animation: hs-hint-in 0.4s ease-out;
}
.hs-hint .hs-hk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.hs-hint kbd {
  animation: hs-press 1.2s ease-in-out infinite;
}
.hs-hint .hs-hk:nth-child(2) kbd {
  animation-delay: 0.3s;
}
.hs-hint .hs-hk:nth-child(3) kbd {
  animation-delay: 0.6s;
}
.hs-hint .hs-hk:nth-child(4) kbd {
  animation-delay: 0.9s;
}
@keyframes hs-hint-in {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
}
@keyframes hs-press {
  0%,
  60%,
  100% {
    transform: translateY(0);
    box-shadow: 0 3px 0 #0b0c18;
  }
  30% {
    transform: translateY(3px);
    box-shadow: 0 0 0 #0b0c18;
    background: var(--accent);
  }
}
kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 7px;
  background: #2a2b3d;
  box-shadow: 0 3px 0 #0b0c18;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  color: #fff;
}

/* ---------- Overlays ---------- */
.hs-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: radial-gradient(ellipse at center, rgba(15, 16, 32, 0.55), rgba(15, 16, 32, 0.86));
  overflow: auto;
  animation: hs-fade 0.25s ease-out;
}
@keyframes hs-fade {
  from {
    opacity: 0;
  }
}
.hs-card {
  width: min(560px, 100%);
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(38, 39, 60, 0.97), rgba(26, 27, 40, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: hs-card-in 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes hs-card-in {
  from {
    transform: scale(0.85) translateY(10px);
    opacity: 0;
  }
}
.hs-card-select,
.hs-card-hub {
  width: min(700px, 100%);
}
.hs-logo {
  width: 64px;
  height: 64px;
  margin: -4px auto 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #9a82ff, var(--accent) 60%, #3b1fb0);
  box-shadow:
    0 8px 20px rgba(104, 66, 255, 0.5),
    inset 0 -4px 0 rgba(0, 0, 0, 0.2);
  animation: hs-bob 1.6s ease-in-out infinite;
}
.hs-logo-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #1f2033 0 22%, transparent 23%),
    radial-gradient(circle at 12% 30%, #1f2033 0 12%, transparent 13%),
    radial-gradient(circle at 88% 30%, #1f2033 0 12%, transparent 13%),
    radial-gradient(circle at 25% 92%, #1f2033 0 12%, transparent 13%),
    radial-gradient(circle at 75% 92%, #1f2033 0 12%, transparent 13%),
    radial-gradient(circle at 35% 30%, #fff, #dfe3f0);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, 0.12);
  animation: hs-spin 3s linear infinite;
}
@keyframes hs-bob {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes hs-spin {
  to {
    transform: rotate(360deg);
  }
}
.hs-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 0 #2a1470;
}
.hs-title span {
  color: var(--gold);
}
.hs-title-small {
  font-size: 32px;
  margin-bottom: 12px;
}
.hs-lead {
  margin: 8px auto 14px;
  max-width: 420px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.hs-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.hs-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hs-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #34354c, #2a2b3d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    0 5px 12px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    filter 0.12s ease;
}
.hs-btn:hover {
  filter: brightness(1.1);
}
.hs-btn:active {
  transform: translateY(2px) scale(0.98);
}
.hs-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.hs-btn-primary {
  background: linear-gradient(180deg, #8467ff, var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    0 6px 16px rgba(104, 66, 255, 0.45);
}
.hs-btn-green {
  background: linear-gradient(180deg, #4be38f, #1fb863);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(47, 214, 123, 0.3);
}
.hs-btn-orange {
  background: linear-gradient(180deg, #ffa552, #f47414);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(255, 138, 43, 0.3);
}
.hs-btn-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: 20px;
  padding: 12px 8px;
}
.hs-mode-name {
  font-size: 17px;
  line-height: 1.1;
}
.hs-mode-sub {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.85;
}
.hs-btn-wide {
  min-width: 170px;
}
.hs-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hs-menu-stats {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.hs-menu-stats b {
  color: var(--gold);
}
button:focus-visible,
.hs-char:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* roster */
.hs-roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hs-char {
  position: relative;
  min-height: 44px;
  padding: 6px 4px 8px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.hs-char canvas {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}
.hs-char-name {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.hs-char-team {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
}
.hs-char[aria-checked="true"] {
  transform: scale(1.06);
  box-shadow:
    0 0 0 3px #fff,
    0 8px 18px rgba(0, 0, 0, 0.4);
}
.hs-char.is-taken {
  opacity: 0.4;
}
.hs-char.is-locked {
  background: linear-gradient(180deg, #34354c, #23243a);
}
.hs-char.is-locked canvas {
  filter: brightness(0) opacity(0.45);
}
.hs-char-lock {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
}
.hs-power-info {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}
.hs-power-info p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.hs-power-info strong {
  color: #fff;
}
.hs-power-badge {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe680, #ffb300);
  box-shadow: 0 3px 8px rgba(255, 179, 0, 0.4);
}

/* hub */
.hs-hub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.hs-hub-head .hs-kicker {
  text-align: left;
  margin-bottom: 6px;
}
.hs-hub-trophy {
  width: 56px;
  height: 56px;
}
.hs-path {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.hs-step {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #2a2b3d;
  color: var(--muted);
}
.hs-step.is-won {
  background: #1f8f53;
  color: #fff;
}
.hs-step.is-lost {
  background: #9a2a36;
  color: #fff;
}
.hs-step.is-now {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.hs-hub-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  align-items: center;
}
.hs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 3px;
  font-size: 13px;
  font-weight: 800;
}
.hs-table th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  padding: 0 4px;
}
.hs-table td {
  padding: 5px 4px;
  background: rgba(255, 255, 255, 0.05);
}
.hs-table td:first-child {
  border-radius: 10px 0 0 10px;
  text-align: left;
  padding-left: 8px;
}
.hs-table td:last-child {
  border-radius: 0 10px 10px 0;
  color: var(--gold);
}
.hs-table tr.is-you td {
  background: rgba(104, 66, 255, 0.4);
}
.hs-table tr.is-q td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}
.hs-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--c1);
  box-shadow: inset -2px -2px 0 var(--c2);
  vertical-align: -1px;
}
.hs-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hs-vs-head {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}
.hs-flip {
  transform: scaleX(-1);
}
.hs-vs {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 3px 0 #2a1470;
}
.hs-next-team {
  margin: 4px 0 0;
  font-weight: 900;
  font-size: 16px;
}
.hs-next-diff {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hs-next-diff b {
  color: var(--gold);
  letter-spacing: 1px;
}

/* result */
.hs-trophy {
  width: 110px;
  height: 110px;
  margin: -6px auto 0;
  display: block;
  animation: hs-bob 1.6s ease-in-out infinite;
}
.hs-big {
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 4px 0 #2a1470;
}
.hs-big.is-win {
  color: var(--gold);
}
.hs-res-score {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 900;
}
.hs-res-note {
  margin: 6px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.hs-unlock {
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 207, 58, 0.25), rgba(255, 207, 58, 0.08));
  box-shadow: inset 0 0 0 2px rgba(255, 207, 58, 0.5);
  animation: hs-pop 0.6s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.hs-unlock canvas {
  width: 56px;
  height: 56px;
}
.hs-unlock p {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.hs-unlock span {
  font-size: 12px;
  font-weight: 900;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hs-unlock strong {
  font-size: 22px;
  font-weight: 900;
}
@keyframes hs-pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- touch pads ---------- */
.hs-pads {
  width: 100%;
  display: none;
  gap: 8px;
}
body.is-touch .hs-pads {
  display: flex;
}
.hs-pad {
  flex: 1 1 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.hs-pad-group {
  display: flex;
  gap: 8px;
}
.hs-key {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3a3b54, #2a2b3d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 0 rgba(0, 0, 0, 0.3),
    0 5px 12px rgba(0, 0, 0, 0.35);
  touch-action: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}
.hs-key svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hs-key.is-down {
  transform: translateY(2px) scale(0.94);
  filter: brightness(1.25);
}
.hs-key-kick {
  width: 66px;
  height: 66px;
  background: linear-gradient(180deg, #8467ff, var(--accent));
}
.hs-key-jump {
  background: linear-gradient(180deg, #4be38f, #1fb863);
}
.hs-key-power {
  background: linear-gradient(180deg, #4a4b62, #34354a);
  font-size: 22px;
  opacity: 0.55;
}
.hs-key-power.is-ready {
  opacity: 1;
  background: linear-gradient(180deg, #ffe680, #ffab00);
  animation: hs-bob 0.9s ease-in-out infinite;
}
.hs-pads.is-dual .hs-key {
  width: 44px;
  height: 44px;
}
.hs-pads.is-dual .hs-key-kick {
  width: 50px;
  height: 50px;
  font-size: 11px;
}
.hs-pads.is-dual .hs-pad {
  gap: 4px;
}
.hs-pads.is-dual .hs-pad-group {
  gap: 4px;
}

.hs-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.9;
}
body.is-touch .hs-help {
  display: none;
}

/* ---------- small screens ---------- */
@media (max-width: 620px) {
  body {
    padding: 6px;
  }
  .hs-side {
    gap: 5px;
    padding: 4px 8px 4px 4px;
  }
  .hs-side-right {
    padding: 4px 4px 4px 8px;
  }
  .hs-crest {
    width: 24px;
    height: 24px;
  }
  .hs-name {
    font-size: 11px;
  }
  .hs-score {
    font-size: 18px;
  }
  .hs-center {
    padding: 3px 10px 4px;
  }
  .hs-icon {
    width: 40px;
    height: 40px;
  }
  .hs-hud {
    gap: 4px;
  }
  .hs-stage {
    border-radius: 14px;
  }
  body.has-overlay {
    min-height: 620px;
  }
  .hs-overlay {
    position: fixed;
    z-index: 5;
    padding: 10px;
    background: rgba(15, 16, 32, 0.94);
  }
  .hs-modes {
    grid-template-columns: 1fr;
  }
  .hs-hub-body {
    grid-template-columns: 1fr;
  }
  .hs-roster {
    gap: 6px;
  }
  .hs-char canvas {
    width: 48px;
    height: 48px;
  }
  .hs-char-name {
    font-size: 13px;
  }
  .hs-char-team {
    display: none;
  }
  .hs-char-lock {
    top: 16px;
  }
  .hs-card {
    padding: 14px 12px;
  }
  .hs-hint {
    top: 6px;
    gap: 8px;
    padding: 5px 10px;
    font-size: 11px;
  }
  .hs-hint kbd {
    min-width: 18px;
    padding: 1px 4px;
    font-size: 10px;
  }
}
.hs-rotate {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
@media (orientation: portrait) and (max-width: 620px) {
  body.is-touch .hs-rotate {
    display: block;
  }
}
@media (max-width: 360px) {
  .hs-icon#hs-mute {
    display: none;
  }
  .hs-key {
    width: 50px;
    height: 50px;
  }
  .hs-key-kick {
    width: 56px;
    height: 56px;
  }
  .hs-pad-group {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hs-banner.is-on {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
