* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-top: #3b1774;
  --bg-bottom: #14011f;
  --surface: rgba(25, 11, 45, 0.78);
  --text: #f5eefe;
  --muted: #c8b5ea;
  --line: rgba(232, 201, 255, 0.12);
  --primary: #ffb84d;
  --primary-strong: #ff8f2b;
  --accent: #5eead4;
  --glow: rgba(255, 163, 64, 0.28);
  --shadow: 0 24px 70px rgba(7, 1, 16, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(114, 31, 191, 0.16), transparent 42%),
    linear-gradient(180deg, var(--bg-top) 0%, #2a0c4f 38%, var(--bg-bottom) 100%);
  position: relative;
  overflow-x: hidden;
}

body.page-led {
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.06) 0 34px, transparent 35px),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.05) 0 28px, transparent 29px),
    linear-gradient(115deg, transparent 0 49.4%, rgba(210, 60, 255, 0.9) 49.8%, rgba(210, 60, 255, 0.9) 50.2%, transparent 50.6%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  opacity: 0.95;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.95;
  background-image:
    radial-gradient(circle at 10% 10%, transparent 0 52px, rgba(156, 89, 214, 0.22) 52px 56px, transparent 56px),
    radial-gradient(circle at 30% 28%, transparent 0 120px, rgba(156, 89, 214, 0.18) 120px 124px, transparent 124px),
    radial-gradient(circle at 78% 25%, transparent 0 96px, rgba(156, 89, 214, 0.16) 96px 100px, transparent 100px),
    radial-gradient(circle at 18% 74%, transparent 0 150px, rgba(156, 89, 214, 0.12) 150px 154px, transparent 154px),
    radial-gradient(circle at 84% 72%, transparent 0 170px, rgba(156, 89, 214, 0.13) 170px 174px, transparent 174px),
    radial-gradient(circle at 52% 52%, rgba(255, 255, 255, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 54% 54%, transparent 0 84px, rgba(156, 89, 214, 0.14) 84px 88px, transparent 88px);
  background-size: cover;
}

.hit-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 247, 204, 0.34), rgba(255, 184, 77, 0.12) 34%, transparent 64%);
}

.hit-flash-active .hit-flash {
  animation: hit-flash-burst 320ms ease-out;
}

.impact-rings,
.edge-pulse {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.impact-rings {
  z-index: 3;
}

.impact-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22vw;
  height: 22vw;
  min-width: 180px;
  min-height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 210, 110, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.impact-rings.is-active .impact-ring-1 {
  animation: impact-ring-burst 520ms ease-out;
}

.impact-rings.is-active .impact-ring-2 {
  animation: impact-ring-burst 520ms ease-out 60ms;
}

.impact-rings.is-active .impact-ring-3 {
  animation: impact-ring-burst 520ms ease-out 120ms;
}

.edge-pulse {
  z-index: 2;
  opacity: 0;
  box-shadow: inset 0 0 0 0 rgba(255, 184, 77, 0.7);
}

.edge-pulse.is-active {
  animation: edge-pulse-burst 420ms ease-out;
}

.end-message-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: rgba(10, 2, 20, 0.18);
}

.end-message-overlay.is-visible {
  opacity: 1;
}

.end-message-card {
  width: min(760px, calc(100vw - 36px));
  padding: 34px 34px 30px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: #2b1100;
  box-shadow: 0 30px 80px rgba(10, 2, 20, 0.38);
  transform: translateY(26px) scale(0.9) rotate(-1deg);
  opacity: 0;
}

.end-message-overlay.is-win .end-message-card {
  background: linear-gradient(180deg, rgba(255, 239, 170, 0.98), rgba(255, 167, 61, 0.95));
}

.end-message-overlay.is-loss .end-message-card {
  background: linear-gradient(180deg, rgba(165, 255, 241, 0.96), rgba(94, 234, 212, 0.92));
}

.end-message-card.is-visible {
  animation: end-message-pop 2200ms cubic-bezier(.19,.89,.23,1) forwards;
}

.end-message-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.end-message-title {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.end-message-text {
  max-width: 32rem;
  margin: 16px auto 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(43, 17, 0, 0.78);
}

.level-up-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  background: rgba(12, 4, 24, 0.28);
  backdrop-filter: blur(8px);
}

.level-up-overlay.is-visible {
  opacity: 1;
}

.level-up-card {
  width: min(620px, calc(100vw - 36px));
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 246, 180, 0.96), rgba(255, 184, 77, 0.94));
  color: #381300;
  text-align: center;
  box-shadow: 0 24px 54px rgba(255, 163, 64, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(18px) scale(0.9);
  opacity: 0;
}

.level-up-card.is-visible {
  animation: level-up-pop 1600ms cubic-bezier(.18,.88,.24,1) forwards;
}

.level-up-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.level-up-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.level-up-card p {
  margin-top: 12px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(56, 19, 0, 0.78);
}

.super-power-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
}

.super-power-overlay.is-visible {
  opacity: 1;
}

.super-power-card {
  width: min(680px, calc(100vw - 36px));
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 248, 196, 0.98), rgba(255, 184, 77, 0.94));
  color: #381300;
  text-align: center;
  box-shadow: 0 24px 54px rgba(255, 163, 64, 0.3);
  transform: translateY(18px) scale(0.9);
  opacity: 0;
}

.super-power-overlay.is-activated .super-power-card {
  background: linear-gradient(180deg, rgba(176, 255, 242, 0.96), rgba(94, 234, 212, 0.9));
  color: #052726;
  box-shadow: 0 24px 54px rgba(94, 234, 212, 0.26);
}

.super-power-card.is-visible {
  animation: super-power-pop 1800ms cubic-bezier(.18,.88,.24,1) forwards;
}

.super-power-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.super-power-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 0.95;
}

.super-power-card p {
  margin-top: 12px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(56, 19, 0, 0.78);
}

.super-power-overlay.is-activated .super-power-card p {
  color: rgba(5, 39, 38, 0.78);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(26, 11, 46, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(221, 130, 255, 0.07), var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff5fe1, #942eff);
  color: #fff8ff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px rgba(169, 57, 255, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
.hero h1,
.panel-heading h2,
.feature-strip h2,
.results-hero h1,
.indicator-title,
.led-tile-large strong,
.streak-card strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy strong {
  font-size: 1.15rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.hero,
.workspace,
.results-hero {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-card,
.panel,
.feature-strip article,
.results-hero {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #f1baff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.results-hero h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 5vw, 5.25rem);
  line-height: 0.95;
}

.hero-text,
.panel-heading p,
.feature-strip p,
.results-hero p,
.small-note,
.hero-card-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin: 28px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(180deg, #ffd47a, var(--primary-strong));
  color: #2f1600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px var(--glow);
}

.button-secondary {
  background: rgba(94, 234, 212, 0.12);
  color: #d9fffb;
  border: 1px solid rgba(94, 234, 212, 0.28);
}

.button-accent {
  width: 100%;
  background: linear-gradient(180deg, #86fff0, #32cdbd);
  color: #052726;
  box-shadow: 0 18px 34px rgba(50, 205, 189, 0.22);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-metrics article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics strong,
.flow-list strong,
.player-cell strong {
  display: block;
  margin-bottom: 8px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.hero-card-guide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6ddff;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 79, 216, 0.12);
}

.led-stage-card {
  overflow: hidden;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(64, 24, 104, 0.94), rgba(20, 1, 31, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.led-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.led-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 140px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #fdf8ff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.page-led .led-tile::before {
  content: "";
  position: absolute;
  inset: -20% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0;
  transform: scale(0.6);
}

.led-tile span {
  margin-bottom: 12px;
  color: #d6b6fa;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.led-tile.active {
  background: linear-gradient(180deg, #ff84ea, #b93cff);
  box-shadow: 0 0 40px rgba(196, 70, 255, 0.4);
  transform: translateY(-2px);
}

.page-led .led-tile.active {
  animation: active-led-pulse 720ms ease-in-out infinite alternate;
}

.page-led .led-tile.active::before {
  animation: active-led-core 720ms ease-in-out infinite alternate;
}

.page-led #led0 {
  border-color: rgba(120, 186, 255, 0.34);
  background: linear-gradient(180deg, rgba(120, 186, 255, 0.2), rgba(87, 126, 255, 0.08));
}

.page-led #led1 {
  border-color: rgba(255, 228, 128, 0.34);
  background: linear-gradient(180deg, rgba(255, 228, 128, 0.2), rgba(255, 184, 77, 0.08));
}

.page-led #led2 {
  border-color: rgba(110, 255, 170, 0.34);
  background: linear-gradient(180deg, rgba(110, 255, 170, 0.2), rgba(46, 208, 122, 0.08));
}

.page-led #led3 {
  border-color: rgba(255, 123, 123, 0.34);
  background: linear-gradient(180deg, rgba(255, 123, 123, 0.2), rgba(255, 89, 89, 0.08));
}

.page-led #led0.active {
  background: linear-gradient(180deg, #8ed0ff, #4b8dff);
  box-shadow: 0 0 46px rgba(102, 168, 255, 0.46);
}

.page-led #led1.active {
  background: linear-gradient(180deg, #ffe680, #ffb84d);
  box-shadow: 0 0 46px rgba(255, 214, 97, 0.46);
}

.page-led #led2.active {
  background: linear-gradient(180deg, #8dffc2, #31cc73);
  box-shadow: 0 0 46px rgba(88, 241, 149, 0.46);
}

.page-led #led3.active {
  background: linear-gradient(180deg, #ff9f9f, #ff5e5e);
  box-shadow: 0 0 46px rgba(255, 108, 108, 0.46);
}

.led-stage-card-large {
  padding: 26px;
}

.led-stage-wrap {
  position: relative;
}

.led-grid-large {
  gap: 18px;
}

.led-tile-large {
  min-height: 210px;
  padding: 22px;
  border-radius: 28px;
}

.led-tile-large span {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.led-tile-large strong {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}

.hero-card-note {
  margin-top: 18px;
}

.flow-list {
  display: grid;
  gap: 14px;
}

.flow-list article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-list span {
  color: var(--muted);
  line-height: 1.6;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.feature-strip article {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.feature-strip h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.workspace {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: start;
}

.panel {
  padding: 32px;
  border-radius: var(--radius-xl);
}

.panel-heading {
  margin-bottom: 24px;
}

.panel-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.panel-form,
.panel-indicator,
.panel-leaderboard {
  padding: 28px;
}

.indicator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.indicator-head-main {
  display: grid;
  gap: 12px;
}

.indicator-title {
  font-size: clamp(1.35rem, 2.7vw, 2.3rem);
  line-height: 1.08;
}

.streak-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.streak-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.streak-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.streak-card strong {
  display: block;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1;
}

.input-group {
  display: block;
  margin-bottom: 18px;
}

.input-group span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.input-group input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.camera-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-top: 20px;
}

.camera-card,
.preview-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#camera,
.preview-frame {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.08);
}

#camera {
  object-fit: cover;
}

.small-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 79, 216, 0.16), rgba(140, 44, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
}

#preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

#preview.is-visible {
  opacity: 1;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.status-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-message[data-state="success"] {
  background: rgba(180, 97, 255, 0.16);
}

.status-message[data-state="error"] {
  background: rgba(255, 79, 216, 0.16);
}

.status-message[data-state="loading"] {
  background: rgba(211, 60, 255, 0.16);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 0 0 16px;
  text-align: left;
  color: #e4c5ff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody td {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-cell img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
}

.player-avatar-fallback {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff84ea, #b93cff);
  color: #fff7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.player-cell span,
.empty-state {
  color: var(--muted);
}

.page-results .results-hero,
.led-hero {
  grid-template-columns: minmax(0, 1fr);
  padding: 36px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
}

.page-led .site-shell {
  width: min(1320px, calc(100% - 32px));
  min-height: 100vh;
  height: 100vh;
  padding: 12px 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.led-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  align-items: stretch;
}

.panel-indicator-screen {
  position: relative;
  padding: 36px;
  min-height: 0;
}

.page-led .site-header {
  margin-bottom: 12px;
  padding: 12px 18px;
}

.page-led .led-hero {
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 0;
  height: 100%;
  align-content: start;
}

.page-led .results-hero h1 {
  max-width: 10ch;
  margin-bottom: 2px;
  font-size: clamp(1.8rem, 2.3vw, 2.7rem);
}

.page-led #playerSummary {
  line-height: 1.45;
  font-size: 0.96rem;
}

.page-led .results-meta {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.page-led .results-meta span {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.page-led .panel-indicator-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.page-led .indicator-head {
  margin-bottom: 12px;
}

.page-led .live-pill {
  padding: 7px 11px;
  font-size: 0.78rem;
}

.page-led .streak-card {
  padding: 10px 12px;
}

.page-led .streak-card span {
  margin-bottom: 6px;
  font-size: 0.76rem;
}

.page-led .streak-card strong {
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
}

.page-led .led-tile-large {
  min-height: 0;
  height: 100%;
  padding: 16px;
}

.page-led .indicator-title {
  font-size: clamp(1.4rem, 2.1vw, 2.15rem);
}

.super-power-ready-card {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 6, 33, 0.68);
  box-shadow: 0 16px 30px rgba(5, 1, 14, 0.24);
  transform: translateY(18px) scale(0.92);
  opacity: 0;
}

.super-power-ready-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.super-power-ready-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c4f6;
}

.super-power-ready-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.1;
  color: #fff2c9;
}

.page-led .led-stage-card-large {
  height: 100%;
  padding: 16px;
}

.page-led .led-grid-large {
  height: 100%;
  gap: 12px;
}

.page-led .status-message {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.page-led .led-stage-wrap {
  min-height: 0;
}

.page-led .led-stage-card,
.page-led .led-grid {
  min-height: 0;
}

.page-led .led-tile-large span {
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.page-led .led-tile-large strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.indicator-timer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 168px;
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(8, 2, 20, 0.42));
}

.indicator-timer::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle, rgba(15, 7, 28, 0.92), rgba(24, 10, 46, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.timer-slice-line,
.timer-slice-drop,
.timer-freeze-glow,
.timer-freeze-crystal,
.timer-frost-overlay {
  position: absolute;
  opacity: 0;
}

.timer-slice-line {
  width: 112px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 248, 191, 0), rgba(255, 248, 191, 0.95) 22%, rgba(255, 129, 129, 0.95) 50%, rgba(255, 248, 191, 0.95) 78%, rgba(255, 248, 191, 0));
  box-shadow: 0 0 18px rgba(255, 124, 124, 0.45);
  transform: rotate(-24deg) scaleX(0.2);
}

.timer-slice-drop {
  top: 62%;
  left: 50%;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 238, 182, 0.98), rgba(255, 138, 138, 0.96));
  color: #521313;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -6px) rotate(-6deg) scale(0.88);
  box-shadow: 0 12px 28px rgba(20, 4, 26, 0.32);
}

.timer-freeze-glow {
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(187, 245, 255, 0.28), rgba(125, 224, 255, 0.08) 56%, transparent 72%);
  filter: blur(4px);
}

.timer-freeze-crystal {
  width: 18px;
  height: 34px;
  background: linear-gradient(180deg, rgba(233, 252, 255, 0.98), rgba(126, 214, 255, 0.72));
  clip-path: polygon(50% 0%, 100% 28%, 82% 100%, 18% 100%, 0% 28%);
  box-shadow: 0 0 18px rgba(155, 233, 255, 0.38);
}

.timer-freeze-crystal-1 {
  top: 14px;
  left: 24px;
  transform: rotate(-24deg) scale(0.7);
}

.timer-freeze-crystal-2 {
  top: 10px;
  right: 22px;
  transform: rotate(18deg) scale(0.82);
}

.timer-freeze-crystal-3 {
  bottom: 18px;
  right: 30px;
  transform: rotate(32deg) scale(0.66);
}

.timer-frost-overlay {
  inset: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 58%),
    radial-gradient(circle at 28% 30%, rgba(233, 252, 255, 0.62), transparent 18%),
    radial-gradient(circle at 70% 26%, rgba(233, 252, 255, 0.34), transparent 14%),
    linear-gradient(135deg, rgba(212, 247, 255, 0.24), rgba(132, 226, 255, 0.06));
  backdrop-filter: blur(2px);
}

.indicator-timer-copy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
}

.indicator-timer-copy span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d5c0f1;
}

.indicator-timer-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1;
  color: #fff8db;
}

.indicator-timer.is-sliced::before {
  animation: timer-face-slice 960ms cubic-bezier(.19,.89,.23,1);
}

.indicator-timer.is-sliced .indicator-timer-copy {
  animation: timer-copy-slice 960ms cubic-bezier(.19,.89,.23,1);
}

.indicator-timer.is-sliced .timer-slice-line {
  animation: timer-slice-slash 520ms cubic-bezier(.2,.86,.24,1);
}

.indicator-timer.is-sliced .timer-slice-drop {
  animation: timer-slice-drop 980ms cubic-bezier(.18,.88,.24,1);
}

.indicator-timer.is-frozen::before {
  animation: timer-freeze-face 1800ms cubic-bezier(.18,.88,.24,1);
}

.indicator-timer.is-frozen .indicator-timer-copy {
  animation: timer-freeze-copy 1800ms cubic-bezier(.18,.88,.24,1);
}

.indicator-timer.is-frozen .timer-freeze-glow {
  animation: timer-freeze-glow 1200ms ease-out forwards;
}

.indicator-timer.is-frozen .timer-frost-overlay {
  animation: timer-frost-spread 1800ms cubic-bezier(.18,.88,.24,1) forwards;
}

.indicator-timer.is-frozen .timer-freeze-crystal-1 {
  animation: timer-ice-crystal-left 1500ms cubic-bezier(.2,.86,.24,1) forwards;
}

.indicator-timer.is-frozen .timer-freeze-crystal-2 {
  animation: timer-ice-crystal-right 1500ms cubic-bezier(.2,.86,.24,1) 60ms forwards;
}

.indicator-timer.is-frozen .timer-freeze-crystal-3 {
  animation: timer-ice-crystal-bottom 1500ms cubic-bezier(.2,.86,.24,1) 120ms forwards;
}

.play-aura {
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(94, 234, 212, 0.12), transparent 52%),
    radial-gradient(circle at 50% 110%, rgba(255, 184, 77, 0.1), transparent 40%);
  filter: blur(8px);
}

.play-aura.is-live {
  animation: aura-breathe 2200ms ease-in-out infinite;
}

.combo-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.combo-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff8bf, #ffb84d 55%, #ff7a25 100%);
  box-shadow: 0 0 18px rgba(255, 184, 77, 0.45);
  animation: combo-particle-rise 900ms ease-out forwards;
}

.ambient-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(94, 234, 212, 0.75) 55%, rgba(94, 234, 212, 0.05));
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.42);
  animation: ambient-particle-float linear forwards;
}

.speed-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

.speed-lines span {
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg) translateY(-8%);
}

.speed-lines span:nth-child(1) { left: 9%; }
.speed-lines span:nth-child(2) { left: 24%; animation-delay: 0.08s; }
.speed-lines span:nth-child(3) { left: 40%; animation-delay: 0.14s; }
.speed-lines span:nth-child(4) { right: 40%; animation-delay: 0.1s; }
.speed-lines span:nth-child(5) { right: 24%; animation-delay: 0.18s; }
.speed-lines span:nth-child(6) { right: 9%; animation-delay: 0.04s; }

.speed-lines.is-live {
  opacity: 1;
}

.speed-lines.is-live span {
  animation: speed-line-sweep 880ms linear infinite;
}

.combo-meter {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 6, 33, 0.62);
  box-shadow: 0 16px 30px rgba(5, 1, 14, 0.24);
  text-align: right;
  transform: translateY(18px) scale(0.92);
  opacity: 0;
}

.combo-meter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.combo-meter.is-max {
  box-shadow: 0 0 0 1px rgba(255, 184, 77, 0.22), 0 0 30px rgba(255, 184, 77, 0.24);
}

.combo-meter-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c4f6;
}

.combo-meter strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1;
  color: #fff2c9;
}

.streak-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.streak-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 8px;
  min-width: min(520px, calc(100vw - 40px));
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 199, 92, 0.96), rgba(255, 122, 37, 0.95));
  color: #381300;
  text-align: center;
  box-shadow: 0 24px 48px rgba(255, 133, 46, 0.28);
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
}

.streak-popup.is-visible {
  animation: streak-popup-burst 1400ms cubic-bezier(.18,.88,.24,1) forwards;
}

.streak-popup-label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.streak-popup strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.streak-fire-burst {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(640px, calc(100vw - 60px));
  height: 240px;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.streak-fire-burst.is-active {
  animation: fire-burst-fade 900ms ease-out forwards;
}

.fire-blob,
.fire-spark {
  position: absolute;
  display: block;
}

.fire-blob {
  bottom: 0;
  width: 120px;
  height: 160px;
  border-radius: 60% 60% 30% 30%;
  background: radial-gradient(circle at 50% 28%, #fff8bf 0 18%, #ffbf55 18% 42%, #ff7f2b 42% 70%, rgba(255, 88, 26, 0.1) 70%);
  filter: blur(2px);
  transform-origin: center bottom;
}

.fire-blob-1 {
  left: 10%;
  animation: flame-rise-1 760ms ease-out infinite alternate;
}

.fire-blob-2 {
  left: 28%;
  width: 138px;
  height: 188px;
  animation: flame-rise-2 700ms ease-out infinite alternate;
}

.fire-blob-3 {
  right: 28%;
  width: 138px;
  height: 188px;
  animation: flame-rise-3 720ms ease-out infinite alternate;
}

.fire-blob-4 {
  right: 10%;
  animation: flame-rise-4 780ms ease-out infinite alternate;
}

.fire-spark {
  bottom: 54px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4a8, #ff8f2b);
  box-shadow: 0 0 18px rgba(255, 176, 70, 0.6);
}

.fire-spark-1 {
  left: 18%;
  animation: spark-fly-1 820ms linear infinite;
}

.fire-spark-2 {
  left: 34%;
  animation: spark-fly-2 760ms linear infinite;
}

.fire-spark-3 {
  left: 50%;
  animation: spark-fly-3 860ms linear infinite;
}

.fire-spark-4 {
  right: 34%;
  animation: spark-fly-4 720ms linear infinite;
}

.fire-spark-5 {
  right: 18%;
  animation: spark-fly-5 820ms linear infinite;
}

.screen-shake .site-shell {
  animation: screen-shake-burst 460ms ease-in-out;
}

@keyframes streak-popup-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 26px)) scale(0.92);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }

  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 10px)) scale(0.98);
  }
}

@keyframes fire-burst-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  16% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes flame-rise-1 {
  from { transform: translateY(0) scaleY(0.94) rotate(-7deg); }
  to { transform: translateY(-20px) scaleY(1.05) rotate(4deg); }
}

@keyframes flame-rise-2 {
  from { transform: translateY(0) scaleY(0.96) rotate(-4deg); }
  to { transform: translateY(-24px) scaleY(1.08) rotate(3deg); }
}

@keyframes flame-rise-3 {
  from { transform: translateY(0) scaleY(0.96) rotate(4deg); }
  to { transform: translateY(-22px) scaleY(1.08) rotate(-3deg); }
}

@keyframes flame-rise-4 {
  from { transform: translateY(0) scaleY(0.94) rotate(7deg); }
  to { transform: translateY(-18px) scaleY(1.04) rotate(-4deg); }
}

@keyframes spark-fly-1 {
  from { transform: translate(0, 0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate(-26px, -120px) scale(1.15); opacity: 0; }
}

@keyframes spark-fly-2 {
  from { transform: translate(0, 0) scale(0.8); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translate(-12px, -138px) scale(1.05); opacity: 0; }
}

@keyframes spark-fly-3 {
  from { transform: translate(0, 0) scale(0.8); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translate(0, -150px) scale(1.18); opacity: 0; }
}

@keyframes spark-fly-4 {
  from { transform: translate(0, 0) scale(0.8); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translate(12px, -132px) scale(1.06); opacity: 0; }
}

@keyframes spark-fly-5 {
  from { transform: translate(0, 0) scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translate(26px, -120px) scale(1.15); opacity: 0; }
}

@keyframes screen-shake-burst {
  0%, 100% { transform: translate3d(0, 0, 0); }
  14% { transform: translate3d(-5px, 2px, 0); }
  28% { transform: translate3d(6px, -3px, 0); }
  42% { transform: translate3d(-4px, -1px, 0); }
  56% { transform: translate3d(5px, 3px, 0); }
  70% { transform: translate3d(-3px, -2px, 0); }
  84% { transform: translate3d(2px, 1px, 0); }
}

@keyframes hit-flash-burst {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes impact-ring-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

@keyframes edge-pulse-burst {
  0% {
    opacity: 0;
    box-shadow: inset 0 0 0 0 rgba(255, 184, 77, 0.7);
  }

  30% {
    opacity: 1;
    box-shadow: inset 0 0 0 12px rgba(255, 184, 77, 0.22);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 36px rgba(255, 184, 77, 0);
  }
}

@keyframes aura-breathe {
  0%, 100% {
    opacity: 0.26;
    transform: scale(0.98);
  }

  50% {
    opacity: 0.52;
    transform: scale(1.01);
  }
}

@keyframes combo-particle-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--drift-x), calc(var(--drift-y) * -1)) scale(1.18);
  }
}

@keyframes ambient-particle-float {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }

  18% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(var(--ambient-x), calc(var(--ambient-y) * -1)) scale(1.08);
  }
}

@keyframes speed-line-sweep {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateY(-18%);
  }

  20% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: skewX(-18deg) translateY(20%);
  }
}

@keyframes active-led-pulse {
  from {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 0 32px rgba(196, 70, 255, 0.32);
  }

  to {
    transform: translateY(-3px) scale(1.018);
    box-shadow: 0 0 52px rgba(255, 132, 234, 0.5);
  }
}

@keyframes active-led-core {
  from {
    opacity: 0.3;
    transform: scale(0.62);
  }

  to {
    opacity: 0.78;
    transform: scale(1);
  }
}

@keyframes end-message-pop {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.9) rotate(-1deg);
  }

  14% {
    opacity: 1;
    transform: translateY(-6px) scale(1.03) rotate(0deg);
  }

  26% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  84% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98) rotate(0deg);
  }
}

@keyframes level-up-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }

  16% {
    opacity: 1;
    transform: translateY(-6px) scale(1.05);
  }

  28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@keyframes super-power-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9) rotate(-1deg);
  }

  16% {
    opacity: 1;
    transform: translateY(-8px) scale(1.04) rotate(0deg);
  }

  28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.results-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5e7ff;
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  body.page-led {
    height: auto;
    overflow-y: auto;
  }

  .hero,
  .workspace,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .camera-layout {
    grid-template-columns: 1fr;
  }

  .page-led .site-shell {
    height: auto;
    min-height: 100vh;
  }

  .page-led .led-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.page-led {
    height: auto;
    overflow-y: auto;
  }

  .page-led .site-shell {
    min-height: auto;
    display: block;
    padding-bottom: 20px;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .results-hero {
    padding: 24px;
  }

  .hero h1,
  .results-hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .indicator-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .indicator-timer {
    width: 132px;
  }

  .indicator-timer::before {
    inset: 16px;
  }

  .super-power-ready-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .streak-popup {
    top: 50%;
    min-width: calc(100vw - 28px);
    padding: 16px 18px;
    border-radius: 22px;
  }

  .streak-fire-burst {
    width: calc(100vw - 24px);
    height: 180px;
    top: 50%;
  }

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

  .page-led .led-tile-large {
    min-height: 156px;
  }

  .action-row,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@keyframes timer-face-slice {
  from {
    box-shadow: inset 0 0 0 rgba(255, 148, 148, 0), 0 0 0 rgba(255, 148, 148, 0);
  }

  24% {
    box-shadow: inset 0 0 0 1px rgba(255, 187, 187, 0.22), 0 0 26px rgba(255, 116, 116, 0.18);
  }

  100% {
    box-shadow: inset 0 0 0 rgba(255, 148, 148, 0), 0 0 0 rgba(255, 148, 148, 0);
  }
}

@keyframes timer-copy-slice {
  0% {
    transform: translateY(0) scale(1);
    filter: none;
  }

  26% {
    transform: translateY(-2px) rotate(-3deg) scale(1.02);
    filter: drop-shadow(0 0 12px rgba(255, 184, 184, 0.28));
  }

  100% {
    transform: translateY(0) scale(1);
    filter: none;
  }
}

@keyframes timer-slice-slash {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scaleX(0.2);
  }

  20% {
    opacity: 1;
    transform: rotate(-24deg) scaleX(1.06);
  }

  100% {
    opacity: 0;
    transform: rotate(-24deg) scaleX(1.16);
  }
}

@keyframes timer-slice-drop {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px) rotate(-8deg) scale(0.82);
  }

  24% {
    opacity: 1;
    transform: translate(-50%, -28px) rotate(-8deg) scale(1);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, 18px) rotate(6deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 48px) rotate(10deg) scale(0.94);
  }
}

@keyframes timer-freeze-face {
  0% {
    box-shadow: inset 0 0 0 rgba(170, 241, 255, 0), 0 0 0 rgba(170, 241, 255, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }

  22% {
    box-shadow: inset 0 0 0 1px rgba(212, 247, 255, 0.28), 0 0 28px rgba(125, 224, 255, 0.18);
    border-color: rgba(206, 247, 255, 0.42);
  }

  78% {
    box-shadow: inset 0 0 0 1px rgba(212, 247, 255, 0.22), 0 0 18px rgba(125, 224, 255, 0.12);
    border-color: rgba(206, 247, 255, 0.32);
  }

  100% {
    box-shadow: inset 0 0 0 rgba(170, 241, 255, 0), 0 0 0 rgba(170, 241, 255, 0);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

@keyframes timer-freeze-copy {
  0% {
    transform: scale(1);
    color: inherit;
    filter: none;
  }

  24% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 14px rgba(194, 245, 255, 0.42));
  }

  70% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 8px rgba(194, 245, 255, 0.22));
  }

  100% {
    transform: scale(1);
    filter: none;
  }
}

@keyframes timer-freeze-glow {
  0% {
    opacity: 0;
    transform: scale(0.78);
  }

  26% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes timer-frost-spread {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }

  24% {
    opacity: 0.9;
    transform: scale(1);
  }

  76% {
    opacity: 0.68;
    transform: scale(1.02);
  }

  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes timer-ice-crystal-left {
  0% {
    opacity: 0;
    transform: translate(8px, 10px) rotate(-30deg) scale(0.3);
  }

  28% {
    opacity: 1;
    transform: translate(0, 0) rotate(-24deg) scale(0.84);
  }

  100% {
    opacity: 0;
    transform: translate(-8px, -10px) rotate(-18deg) scale(0.78);
  }
}

@keyframes timer-ice-crystal-right {
  0% {
    opacity: 0;
    transform: translate(-8px, 8px) rotate(26deg) scale(0.34);
  }

  28% {
    opacity: 1;
    transform: translate(0, 0) rotate(18deg) scale(0.94);
  }

  100% {
    opacity: 0;
    transform: translate(8px, -10px) rotate(12deg) scale(0.86);
  }
}

@keyframes timer-ice-crystal-bottom {
  0% {
    opacity: 0;
    transform: translate(-6px, -4px) rotate(20deg) scale(0.28);
  }

  28% {
    opacity: 1;
    transform: translate(0, 0) rotate(32deg) scale(0.72);
  }

  100% {
    opacity: 0;
    transform: translate(6px, 10px) rotate(38deg) scale(0.64);
  }
}
