:root {
  color-scheme: dark;
  --ink: #f5f7f8;
  --ink-soft: #d9dde0;
  --muted: #8e969d;
  --muted-strong: #b4bbc1;
  --page: #0f1115;
  --glass: rgba(24, 27, 32, 0.72);
  --glass-strong: rgba(31, 35, 41, 0.84);
  --glass-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --ios-blue: #7aa7ff;
  --ios-green: #4cd964;
  --ios-red: #ff5f57;
  --result-correct: #36e06f;
  --result-wrong: #ff453a;
  --result-missed: #ffd60a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-tight: 0 14px 36px rgba(0, 0, 0, 0.3);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --radius: 8px;
  --page-bg:
    radial-gradient(circle at 18% 0%, rgba(122, 167, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #111318 0%, #0d0f13 48%, #17191f 100%);
  --page-shade: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0.38));
  --splash-bg:
    radial-gradient(circle at 50% 38%, rgba(122, 167, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(12, 14, 18, 0.96), rgba(18, 21, 28, 0.98));
  --shell-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(16, 19, 24, 0.74);
  --shell-border: rgba(255, 255, 255, 0.14);
  --topbar-bg: var(--glass);
  --stage-bg:
    linear-gradient(180deg, rgba(34, 38, 45, 0.82), rgba(17, 19, 23, 0.72)),
    linear-gradient(118deg, rgba(122, 167, 255, 0.08), rgba(255, 255, 255, 0.03));
  --question-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    linear-gradient(120deg, rgba(122, 167, 255, 0.08), transparent);
  --panel-bg: rgba(255, 255, 255, 0.07);
  --join-bg: rgba(24, 27, 32, 0.82);
  --button-gradient: linear-gradient(135deg, #5f8fe8, var(--ios-blue));
  --accent-soft: rgba(122, 167, 255, 0.14);
  --accent-border: rgba(122, 167, 255, 0.32);
}

@property --progress {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

body[data-theme="emerald"] {
  --ios-blue: #00a94f;
  --ios-green: #00893d;
  --line: rgba(180, 255, 211, 0.15);
  --line-strong: rgba(180, 255, 211, 0.3);
  --page-bg:
    radial-gradient(circle at 12% 0%, rgba(0, 137, 61, 0.32), transparent 31%),
    radial-gradient(circle at 88% 12%, rgba(208, 234, 67, 0.11), transparent 26%),
    linear-gradient(135deg, #06110b 0%, #101513 45%, #071d12 100%);
  --page-shade: linear-gradient(180deg, rgba(215, 255, 232, 0.045), rgba(0, 0, 0, 0.13) 44%, rgba(0, 0, 0, 0.45));
  --splash-bg:
    radial-gradient(circle at 50% 38%, rgba(0, 137, 61, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(5, 17, 10, 0.96), rgba(12, 20, 18, 0.98));
  --shell-bg:
    linear-gradient(180deg, rgba(214, 255, 231, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(10, 22, 16, 0.78);
  --shell-border: rgba(161, 242, 196, 0.2);
  --topbar-bg: rgba(12, 25, 18, 0.8);
  --stage-bg:
    linear-gradient(180deg, rgba(25, 44, 33, 0.86), rgba(8, 18, 13, 0.76)),
    linear-gradient(118deg, rgba(0, 137, 61, 0.16), rgba(210, 236, 65, 0.045));
  --question-bg:
    linear-gradient(180deg, rgba(213, 255, 231, 0.1), rgba(255, 255, 255, 0.035)),
    linear-gradient(120deg, rgba(0, 137, 61, 0.15), transparent);
  --panel-bg: rgba(213, 255, 231, 0.068);
  --join-bg: rgba(10, 23, 16, 0.9);
  --button-gradient: linear-gradient(135deg, #007934, #00a94f 58%, #d6e83e);
  --accent-soft: rgba(0, 137, 61, 0.18);
  --accent-border: rgba(0, 169, 79, 0.44);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 52px rgba(0, 137, 61, 0.11);
}

body[data-theme="ruby"] {
  --ios-blue: #c7d0d8;
  --ios-green: #e7edf2;
  --line: rgba(226, 234, 241, 0.15);
  --line-strong: rgba(226, 234, 241, 0.28);
  --page-bg:
    radial-gradient(circle at 18% 0%, rgba(230, 238, 245, 0.14), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(118, 128, 138, 0.16), transparent 27%),
    linear-gradient(135deg, #0c0d0f 0%, #17191c 48%, #24272b 100%);
  --page-shade: linear-gradient(180deg, rgba(245, 248, 250, 0.04), rgba(0, 0, 0, 0.13) 44%, rgba(0, 0, 0, 0.45));
  --splash-bg:
    radial-gradient(circle at 50% 38%, rgba(217, 225, 232, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(12, 13, 15, 0.96), rgba(31, 33, 36, 0.98));
  --shell-bg:
    linear-gradient(180deg, rgba(244, 248, 250, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(22, 24, 27, 0.78);
  --shell-border: rgba(226, 234, 241, 0.18);
  --topbar-bg: rgba(24, 26, 29, 0.82);
  --stage-bg:
    linear-gradient(180deg, rgba(58, 62, 67, 0.82), rgba(18, 20, 23, 0.78)),
    linear-gradient(118deg, rgba(225, 235, 242, 0.11), rgba(92, 99, 106, 0.055));
  --question-bg:
    linear-gradient(180deg, rgba(238, 243, 247, 0.1), rgba(255, 255, 255, 0.035)),
    linear-gradient(120deg, rgba(198, 208, 216, 0.12), transparent);
  --panel-bg: rgba(233, 240, 246, 0.06);
  --join-bg: rgba(25, 27, 30, 0.9);
  --button-gradient: linear-gradient(135deg, #8f9aa4, #e3e9ee 58%, #717b85);
  --accent-soft: rgba(199, 208, 216, 0.14);
  --accent-border: rgba(221, 229, 236, 0.36);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 46px rgba(220, 230, 238, 0.07);
}

body[data-theme="solar"] {
  --ios-blue: #ff7a18;
  --ios-green: #ffb000;
  --line: rgba(255, 182, 106, 0.16);
  --line-strong: rgba(255, 182, 106, 0.3);
  --page-bg:
    radial-gradient(circle at 14% 0%, rgba(255, 122, 24, 0.28), transparent 31%),
    radial-gradient(circle at 86% 14%, rgba(255, 176, 0, 0.12), transparent 27%),
    linear-gradient(135deg, #101113 0%, #202124 50%, #2a2018 100%);
  --page-shade: linear-gradient(180deg, rgba(255, 230, 199, 0.045), rgba(0, 0, 0, 0.13) 44%, rgba(0, 0, 0, 0.45));
  --splash-bg:
    radial-gradient(circle at 50% 38%, rgba(255, 122, 24, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(15, 16, 18, 0.96), rgba(34, 28, 23, 0.98));
  --shell-bg:
    linear-gradient(180deg, rgba(255, 221, 184, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(27, 28, 30, 0.78);
  --shell-border: rgba(255, 169, 82, 0.2);
  --topbar-bg: rgba(30, 30, 31, 0.82);
  --stage-bg:
    linear-gradient(180deg, rgba(61, 57, 52, 0.84), rgba(18, 19, 21, 0.78)),
    linear-gradient(118deg, rgba(255, 122, 24, 0.15), rgba(255, 176, 0, 0.045));
  --question-bg:
    linear-gradient(180deg, rgba(255, 224, 190, 0.1), rgba(255, 255, 255, 0.035)),
    linear-gradient(120deg, rgba(255, 122, 24, 0.14), transparent);
  --panel-bg: rgba(255, 225, 195, 0.062);
  --join-bg: rgba(27, 28, 30, 0.9);
  --button-gradient: linear-gradient(135deg, #f15e00, #ff7a18 55%, #ffb000);
  --accent-soft: rgba(255, 122, 24, 0.16);
  --accent-border: rgba(255, 122, 24, 0.42);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.52), 0 0 50px rgba(255, 122, 24, 0.11);
}

body[data-theme="arctic"] {
  --ios-blue: #7aa7ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  background: var(--page-bg);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  display: none;
}

body::after {
  background: var(--page-shade);
}

html.copy-guard,
html.copy-guard body,
html.copy-guard * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

html.copy-guard img,
html.copy-guard a {
  -webkit-user-drag: none;
  user-drag: none;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--splash-bg);
  animation: splashFadeOut 4s ease forwards;
}

.splash-icon-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(630px, 86vw);
  aspect-ratio: 1;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(25, 29, 36, 0.72);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(122, 167, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  backdrop-filter: blur(30px) saturate(1.3);
}

.splash-icon-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.28), transparent 38%, rgba(122, 167, 255, 0.14));
  pointer-events: none;
}

.splash-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-backdrop,
.app-shell {
  opacity: 0;
  animation: pageFadeIn 4s ease forwards;
}

@keyframes splashFadeOut {
  0%,
  74% {
    opacity: 1;
    visibility: visible;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes pageFadeIn {
  0%,
  74% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes stageSuspenseGlow {
  0%,
  100% {
    box-shadow: var(--shadow), var(--inner-highlight), 0 0 0 rgba(122, 167, 255, 0);
  }

  50% {
    box-shadow: var(--shadow), var(--inner-highlight), 0 0 44px rgba(122, 167, 255, 0.12);
  }
}

@keyframes stageLightSweep {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-2%);
  }

  50% {
    opacity: 0.72;
    transform: translateX(2%);
  }
}

@keyframes liveStatusBreath {
  0%,
  100% {
    border-color: rgba(122, 167, 255, 0.26);
    box-shadow: var(--inner-highlight);
  }

  50% {
    border-color: rgba(122, 167, 255, 0.46);
    box-shadow: var(--inner-highlight), 0 0 22px rgba(122, 167, 255, 0.12);
  }
}

@keyframes leaderboardCardRefresh {
  0% {
    opacity: 1;
    filter: brightness(1);
  }

  45% {
    opacity: 0.48;
    filter: brightness(1.18);
  }

  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes questionSheen {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translateX(-70%);
  }

  68% {
    opacity: 0.7;
  }

  82% {
    opacity: 0;
    transform: translateX(70%);
  }
}

@keyframes questionWatermarkFloat {
  0% {
    opacity: 0;
    filter: blur(1.5px);
    transform: translate(-50%, -50%) scale(0.35) rotate(var(--rotate));
  }

  16%,
  58% {
    opacity: var(--alpha);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    filter: blur(2.6px);
    transform: translate(-50%, -72%) scale(1.75) rotate(calc(var(--rotate) + 18deg));
  }
}

@keyframes answerWatermarkFloat {
  0% {
    opacity: 0;
    filter: blur(1.2px);
    transform: translate(-50%, -50%) scale(0.45) rotate(var(--rotate));
  }

  18%,
  64% {
    opacity: var(--alpha);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translate(-50%, -66%) scale(1.55) rotate(calc(var(--rotate) - 14deg));
  }
}

@keyframes answerFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes difficultyPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(122, 167, 255, 0));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(122, 167, 255, 0.28));
    transform: scale(1.025);
  }
}

@keyframes hallButtonSweep {
  0%,
  64%,
  100% {
    opacity: 0;
    transform: translateX(-80%);
  }

  76% {
    opacity: 0.65;
  }

  90% {
    opacity: 0;
    transform: translateX(80%);
  }
}

@keyframes leaderboardRise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-backdrop::before {
  display: none;
}

.backdrop-art {
  display: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  width: min(1180px, calc(100% - 28px));
  height: calc(100svh - 20px);
  min-height: 0;
  margin: 10px auto;
  padding: 10px;
  border: 1px solid var(--shell-border);
  border-radius: var(--radius);
  background: var(--shell-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
  -webkit-backdrop-filter: blur(34px) saturate(1.28);
  backdrop-filter: blur(34px) saturate(1.28);
  transition: filter 180ms ease, transform 180ms ease;
  overflow: hidden;
}

body.is-locked .app-shell {
  filter: blur(10px) saturate(0.72) brightness(0.8);
  pointer-events: none;
  transform: scale(0.986);
  user-select: none;
}

.topbar,
.game-layout,
.question-head,
.panel-title,
.brand,
.top-status,
.difficulty-track,
.leaderboard-row,
.answer-button {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--topbar-bg);
  box-shadow: var(--shadow-tight), var(--inner-highlight);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  backdrop-filter: blur(28px) saturate(1.35);
}

.brand {
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.brand h1,
.player-panel h2,
.join-modal h2 {
  margin: 0;
}

.brand h1 {
  color: var(--ink);
  font-size: 1.52rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brand-credit {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
  margin-left: auto;
  color: var(--muted-strong);
  text-align: right;
  line-height: 1.05;
}

.brand-credit strong,
.brand-credit a {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-credit strong {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-credit a {
  color: var(--ios-blue);
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-credit a:hover {
  text-decoration: underline;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--ios-blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-status {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 13px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  animation: liveStatusBreath 3.8s ease-in-out infinite;
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 0 5px rgba(76, 217, 100, 0.12), 0 0 20px rgba(76, 217, 100, 0.42);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 298px);
  align-items: stretch;
  column-gap: 12px;
  row-gap: 12px;
  width: 100%;
  min-height: 0;
  min-width: 0;
  padding-right: 8px;
  overflow: hidden;
}

.game-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 46px;
  row-gap: 11px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--stage-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
  -webkit-backdrop-filter: blur(30px) saturate(1.38);
  backdrop-filter: blur(30px) saturate(1.38);
  animation: stageSuspenseGlow 5.8s ease-in-out infinite;
}

.game-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(112deg, transparent 0 12%, rgba(255, 255, 255, 0.08) 13%, transparent 24%),
    linear-gradient(74deg, transparent 0 67%, rgba(122, 167, 255, 0.08) 68%, transparent 78%);
  opacity: 0.62;
  pointer-events: none;
  animation: stageLightSweep 7s ease-in-out infinite;
}

.game-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--ios-blue), transparent);
  opacity: 0.58;
}

.stage-art {
  display: none;
}

.game-stage > *:not(.stage-art) {
  position: relative;
  z-index: 1;
}

.question-head {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 150px;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--inner-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  backdrop-filter: blur(24px) saturate(1.28);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.round-number {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 850;
}

.question-db-id {
  margin: 5px 0 0;
  color: rgba(210, 218, 232, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.timer-ring {
  --progress: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 56%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow:
    0 18px 46px rgba(122, 167, 255, 0.18),
    inset 0 0 0 8px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: --progress 250ms linear;
}

.timer-ring::before,
.timer-ring::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.timer-ring::before {
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  -webkit-mask: radial-gradient(circle, transparent 0 56%, #000 57% 72%, transparent 73%);
  mask: radial-gradient(circle, transparent 0 56%, #000 57% 72%, transparent 73%);
}

.timer-ring::after {
  inset: -5px;
  z-index: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent calc(var(--progress) - 46deg),
      rgba(76, 132, 255, 0.08) calc(var(--progress) - 45deg),
      rgba(76, 132, 255, 0.38) calc(var(--progress) - 22deg),
      rgba(122, 167, 255, 1) calc(var(--progress) - 1deg),
      #ffffff var(--progress),
      transparent calc(var(--progress) + 2deg),
      transparent 360deg
    );
  filter:
    drop-shadow(0 0 8px rgba(76, 132, 255, 0.95))
    drop-shadow(0 0 20px rgba(122, 167, 255, 0.48));
  -webkit-mask: radial-gradient(circle, transparent 0 56%, #000 57% 72%, transparent 73%);
  mask: radial-gradient(circle, transparent 0 56%, #000 57% 72%, transparent 73%);
}

.timer-ring strong {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.timer-ring span {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.question-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 186px;
  min-height: 186px;
  margin-top: -6px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--question-bg);
  box-shadow: var(--shadow-tight), var(--inner-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  backdrop-filter: blur(24px) saturate(1.24);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  overflow: hidden;
}

.question-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 24%, rgba(122, 167, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 64%, rgba(255, 255, 255, 0.08), transparent 33%);
  opacity: 0;
  transition: opacity 240ms ease, background 240ms ease;
  pointer-events: none;
}

.question-card.is-question-active::before {
  opacity: 0.58;
}

.question-card.is-answer-reveal {
  border-color: rgba(76, 217, 100, 0.36);
  box-shadow: var(--shadow-tight), var(--inner-highlight), 0 0 36px rgba(76, 217, 100, 0.08);
}

.question-card.is-answer-reveal::before {
  opacity: 0.72;
  background:
    radial-gradient(circle at 18% 24%, rgba(76, 217, 100, 0.22), transparent 31%),
    radial-gradient(circle at 78% 70%, rgba(54, 224, 111, 0.16), transparent 34%),
    linear-gradient(120deg, rgba(76, 217, 100, 0.08), transparent 58%);
}

.question-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.1) 46%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-60%);
  animation: questionSheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

.question-watermarks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.question-watermark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: rgba(122, 167, 255, 0.32);
  font-size: var(--size);
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 18px rgba(122, 167, 255, 0.26);
  transform: translate(-50%, -50%) scale(0.35) rotate(var(--rotate));
  animation: questionWatermarkFloat var(--duration) ease-in-out var(--delay) infinite;
  will-change: opacity, transform, filter;
}

.question-card.is-answer-reveal .question-watermark {
  color: rgba(76, 217, 100, 0.34);
  text-shadow: 0 0 18px rgba(76, 217, 100, 0.28);
  animation-name: answerWatermarkFloat;
}

.difficulty-track,
.question-text {
  position: relative;
  z-index: 2;
}

.question-text {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 1.78rem;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.difficulty-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-direction: column;
  width: 78px;
  gap: 7px;
  min-height: 78px;
  margin: 0;
  color: var(--muted-strong);
  font-weight: 850;
}

.difficulty-track span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.difficulty-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: difficultyPulse 4.8s ease-in-out infinite;
}

.difficulty-chart i {
  --difficulty-progress: 0deg;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ios-blue) var(--difficulty-progress), rgba(255, 255, 255, 0.11) 0);
  transition: background 220ms ease;
}

.difficulty-chart i::after {
  position: absolute;
  inset: 7px;
  content: "";
  border-radius: 50%;
  background: rgba(24, 27, 32, 0.96);
}

.difficulty-chart strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 40%);
  grid-template-rows: repeat(2, 80px);
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 170px;
}

.answer-button {
  position: relative;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 80px;
  min-height: 80px;
  padding: 12px 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-tight), var(--inner-highlight);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  backdrop-filter: blur(22px) saturate(1.28);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
  animation: answerFloat 5.2s ease-in-out infinite;
}

.answer-button:nth-child(2) {
  animation-delay: 0.3s;
}

.answer-button:nth-child(3) {
  animation-delay: 0.6s;
}

.answer-button:nth-child(4) {
  animation-delay: 0.9s;
}

.answer-button::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 44%);
  pointer-events: none;
}

.answer-button:not(:disabled):hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(122, 167, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), var(--inner-highlight);
}

.answer-button:not(:disabled):active {
  transform: translate3d(0, 0, 0) scale(0.99);
}

.answer-button:disabled {
  cursor: not-allowed;
}

.answer-button .answer-letter {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--ios-blue);
  font-size: 0.82rem;
  font-weight: 950;
  border: 1px solid rgba(122, 167, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(122, 167, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.answer-button .answer-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.answer-button.is-selected {
  border-color: rgba(122, 167, 255, 0.62);
  background: rgba(122, 167, 255, 0.14);
  box-shadow: 0 18px 38px rgba(122, 167, 255, 0.12), var(--inner-highlight);
}

.answer-button.is-selected .answer-letter {
  color: #ffffff;
  background: var(--ios-blue);
}

.answer-button.is-correct {
  border-color: rgba(76, 217, 100, 0.58);
  background: rgba(76, 217, 100, 0.12);
  box-shadow: 0 18px 38px rgba(76, 217, 100, 0.12), var(--inner-highlight);
}

.answer-button.is-correct .answer-letter {
  color: #ffffff;
  border-color: rgba(76, 217, 100, 0.38);
  background: var(--ios-green);
}

.answer-button.is-wrong {
  border-color: rgba(255, 95, 87, 0.58);
  background: rgba(255, 95, 87, 0.12);
  box-shadow: 0 18px 38px rgba(255, 95, 87, 0.12), var(--inner-highlight);
}

.answer-button.is-wrong .answer-letter {
  color: #ffffff;
  border-color: rgba(255, 95, 87, 0.38);
  background: var(--ios-red);
}

.round-message {
  display: flex;
  align-items: center;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  overflow-y: auto;
  border: 1px solid rgba(122, 167, 255, 0.16);
  border-left: 4px solid var(--ios-blue);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  backdrop-filter: blur(18px) saturate(1.22);
}

.side-panel {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.player-panel,
.leaderboard-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight), var(--inner-highlight);
  -webkit-backdrop-filter: blur(26px) saturate(1.32);
  backdrop-filter: blur(26px) saturate(1.32);
}

.player-panel {
  border-color: rgba(122, 167, 255, 0.2);
}

.panel-title {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.player-panel h2 {
  display: block;
  max-width: 100%;
  font-size: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.stat-grid div {
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--glass-soft);
  box-shadow: var(--inner-highlight);
}

.stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.leaderboard-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  scrollbar-color: rgba(122, 167, 255, 0.5) rgba(255, 255, 255, 0.08);
}

#liveLeaderboard {
  padding-right: 4px;
}

.leaderboard-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  min-height: 44px;
  padding: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--inner-highlight);
  animation: leaderboardRise 420ms ease both;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.leaderboard-row > * {
  position: relative;
  z-index: 1;
}

.leaderboard-row.is-refreshing {
  animation: leaderboardCardRefresh 200ms ease both;
}

.leaderboard-row.is-current {
  border-color: rgba(122, 167, 255, 0.3);
  background: linear-gradient(90deg, rgba(122, 167, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 3px 0 0 var(--ios-blue), var(--inner-highlight);
}

.leaderboard-row.has-answered:not(.has-result-correct):not(.has-result-missed):not(.has-result-wrong) {
  border-color: rgba(122, 167, 255, 0.44);
  background:
    linear-gradient(90deg, rgba(122, 167, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 22px rgba(122, 167, 255, 0.2),
    inset 3px 0 0 var(--ios-blue),
    0 0 18px rgba(122, 167, 255, 0.12),
    var(--inner-highlight);
}

.leaderboard-row.has-answered:not(.has-result-correct):not(.has-result-missed):not(.has-result-wrong) .leaderboard-rank {
  background: var(--button-gradient);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.22),
    0 0 22px rgba(122, 167, 255, 0.42);
}

.leaderboard-row.has-result-correct {
  border-color: rgba(54, 224, 111, 0.46);
  background:
    linear-gradient(90deg, rgba(54, 224, 111, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 24px rgba(54, 224, 111, 0.22),
    inset 3px 0 0 var(--result-correct),
    0 0 20px rgba(54, 224, 111, 0.14),
    var(--inner-highlight);
}

.leaderboard-row.has-result-missed {
  border-color: rgba(255, 214, 10, 0.48);
  background:
    linear-gradient(90deg, rgba(255, 214, 10, 0.15), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 24px rgba(255, 214, 10, 0.24),
    inset 3px 0 0 var(--result-missed),
    0 0 20px rgba(255, 214, 10, 0.15),
    var(--inner-highlight);
}

.leaderboard-row.has-result-wrong {
  border-color: rgba(255, 69, 58, 0.5);
  background:
    linear-gradient(90deg, rgba(255, 69, 58, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 0 24px rgba(255, 69, 58, 0.24),
    inset 3px 0 0 var(--result-wrong),
    0 0 20px rgba(255, 69, 58, 0.15),
    var(--inner-highlight);
}

.leaderboard-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  color: #ffffff;
  font-weight: 950;
  border-radius: var(--radius);
  background: var(--ios-blue);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.leaderboard-row.has-result-correct .leaderboard-rank {
  background: var(--result-correct);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.2),
    inset 0 0 18px rgba(15, 100, 48, 0.38),
    0 0 22px rgba(54, 224, 111, 0.52);
}

.leaderboard-row.has-result-missed .leaderboard-rank {
  color: #15171b;
  background: var(--result-missed);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.26),
    inset 0 0 18px rgba(145, 105, 0, 0.34),
    0 0 22px rgba(255, 214, 10, 0.52);
}

.leaderboard-row.has-result-wrong .leaderboard-rank {
  background: var(--result-wrong);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.2),
    inset 0 0 18px rgba(120, 14, 8, 0.38),
    0 0 22px rgba(255, 69, 58, 0.54);
}

.leaderboard-speed {
  position: absolute;
  top: 50%;
  right: 38px;
  z-index: 0;
  color: rgba(122, 167, 255, 0.2);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(122, 167, 255, 0.28);
  transform: translateY(-50%) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.leaderboard-row.has-answered .leaderboard-speed {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.leaderboard-row.has-result-correct .leaderboard-speed {
  color: rgba(54, 224, 111, 0.24);
  text-shadow: 0 0 18px rgba(54, 224, 111, 0.32);
}

.leaderboard-row.has-result-wrong .leaderboard-speed {
  color: rgba(255, 69, 58, 0.24);
  text-shadow: 0 0 18px rgba(255, 69, 58, 0.32);
}

.leaderboard-name {
  min-width: 0;
  grid-column: 2;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  grid-column: 3;
  color: var(--ios-blue);
  font-weight: 950;
  white-space: nowrap;
}

.leaderboard-meta {
  grid-column: 2 / 4;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-list {
  min-height: 46px;
  padding: 12px;
  color: var(--muted);
  line-height: 1.4;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hall-action-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 72px;
}

.mobile-live-action-panel {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 72px;
}

.hall-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 72px;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(122, 167, 255, 0.2);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--shadow-tight), var(--inner-highlight);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  backdrop-filter: blur(24px) saturate(1.24);
  overflow: hidden;
}

.hall-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.14) 49%, transparent 60% 100%);
  animation: hallButtonSweep 6.8s ease-in-out infinite;
  pointer-events: none;
}

.hall-button:hover {
  border-color: rgba(122, 167, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.hall-button-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: rgba(122, 167, 255, 0.13);
}

.hall-button-icon svg {
  width: 25px;
  height: 25px;
  fill: var(--ios-blue);
}

.hall-button strong,
.hall-button small {
  display: block;
}

.hall-button strong {
  font-size: 1rem;
}

.hall-button small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 850;
}

.hall-overlay,
.live-overlay,
.report-overlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 6, 8, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.hall-overlay.is-open,
.live-overlay.is-open,
.report-overlay.is-open {
  display: grid;
}

.hall-modal {
  width: min(680px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--join-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
  -webkit-backdrop-filter: blur(30px) saturate(1.28);
  backdrop-filter: blur(30px) saturate(1.28);
}

.hall-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hall-modal-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.modal-count {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.hall-close-button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.report-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86vh, 780px);
}

.report-modal::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--ios-blue), transparent);
  pointer-events: none;
}

.report-body {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.report-hero,
.report-metrics-grid,
.report-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.report-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.report-hero span,
.report-metric span,
.report-answer-row span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-hero strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 2.7rem;
  line-height: 0.95;
  text-shadow: 0 0 22px var(--accent-soft);
}

.report-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 850;
  text-align: right;
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.report-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    var(--glass-soft);
  box-shadow: var(--inner-highlight);
}

.report-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.18rem;
}

.report-section {
  padding: 14px;
}

.report-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.report-category-list,
.report-answer-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.report-category-row,
.report-answer-row {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.report-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-category-row strong,
.report-answer-row strong {
  color: var(--ink);
}

.report-category-row span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.report-answer-list {
  list-style: none;
}

.report-answer-row {
  display: grid;
  gap: 6px;
}

.report-answer-row.is-correct {
  border-color: rgba(54, 224, 111, 0.34);
  background:
    linear-gradient(90deg, rgba(54, 224, 111, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: inset 3px 0 0 var(--result-correct), var(--inner-highlight);
}

.report-answer-row.is-wrong {
  border-color: rgba(255, 69, 58, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 69, 58, 0.1), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: inset 3px 0 0 var(--result-wrong), var(--inner-highlight);
}

.report-answer-row.is-missed {
  border-color: rgba(255, 214, 10, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 214, 10, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: inset 3px 0 0 var(--result-missed), var(--inner-highlight);
}

.report-answer-row p,
.report-empty {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

body.report-page {
  overflow: hidden;
}

body.report-page .app-shell,
body.report-page .page-backdrop {
  opacity: 1;
  animation: none;
}

.report-shell {
  width: min(1440px, calc(100% - 24px));
}

.report-topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, auto);
  align-items: center;
}

.report-brand-link {
  color: inherit;
  text-decoration: none;
}

.report-brand-link h1 {
  max-width: none;
  white-space: nowrap;
}

.report-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}

.report-refresh-button {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
  white-space: nowrap;
}

.report-status {
  min-width: 240px;
  white-space: nowrap;
}

.report-theme-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.report-theme-pills button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted-strong);
  font-size: 0.75rem;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.report-theme-pills button.is-active {
  color: var(--ink);
  border-color: var(--accent-border);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.06)),
    var(--panel-bg);
}

.report-dashboard-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.report-sidebar,
.report-dashboard {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stage-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
  -webkit-backdrop-filter: blur(30px) saturate(1.28);
  backdrop-filter: blur(30px) saturate(1.28);
  overflow: hidden;
}

.report-sidebar {
  display: flex;
  flex-direction: column;
}

.report-sidebar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.report-sidebar-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.report-sidebar-head > span {
  align-self: start;
  min-width: 34px;
  padding: 6px 8px;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.report-search {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.report-search span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--inner-highlight);
}

.report-search input:focus {
  border-color: var(--accent-border);
}

.report-sidebar-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.report-date-group h3 {
  margin: 0 0 8px;
  padding-left: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-player-group {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.report-player-toggle,
.report-session-button {
  width: 100%;
  color: var(--ink);
  border: 0;
}

.report-player-toggle {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
}

.report-player-toggle:hover,
.report-session-button:hover,
.report-session-button.is-selected {
  background: rgba(255, 255, 255, 0.075);
}

.report-player-toggle span:not(.report-player-avatar) {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-player-toggle small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.report-player-toggle i {
  color: var(--muted);
  font-style: normal;
  text-align: center;
  transition: transform 160ms ease;
}

.report-player-toggle.is-open i {
  transform: rotate(180deg);
}

.report-player-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.report-session-list {
  background: rgba(0, 0, 0, 0.18);
}

.report-session-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 11px 8px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
  background: transparent;
}

.report-session-button.is-selected {
  box-shadow: inset 3px 0 0 var(--ios-blue);
}

.report-session-main {
  display: grid;
  gap: 2px;
}

.report-session-main strong {
  font-size: 0.88rem;
}

.report-session-main small {
  color: var(--ios-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.report-session-main small.is-eliminated {
  color: var(--result-wrong);
}

.report-session-main small.is-retired {
  color: var(--ios-blue);
}

.report-session-score {
  padding: 4px 7px;
  color: var(--result-correct);
  font-size: 0.82rem;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.report-sidebar-empty,
.report-dashboard-empty {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 850;
  line-height: 1.4;
}

.report-dashboard {
  overflow-y: auto;
}

.report-dashboard-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 32px;
  text-align: center;
}

.report-dashboard-empty strong {
  color: var(--ink);
  font-size: 1.28rem;
}

.report-dashboard-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.report-dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.report-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.report-title-row h2 {
  margin: 0;
  font-size: 2rem;
  overflow-wrap: anywhere;
}

.report-dashboard-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 800;
}

#dashReportId {
  max-width: min(680px, 62vw);
  color: rgba(210, 218, 232, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.report-status-badge {
  padding: 5px 8px;
  color: var(--ios-blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.report-status-badge.is-eliminated {
  color: var(--result-wrong);
  border-color: rgba(255, 69, 58, 0.35);
  background: rgba(255, 69, 58, 0.1);
}

.report-status-badge.is-retired {
  color: var(--ios-blue);
}

.report-score-card,
.report-dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.report-score-card {
  min-width: 168px;
  padding: 14px 16px;
  text-align: right;
}

.report-score-card span,
.report-dashboard-card h3,
.report-big-line span,
.report-stat-list dt,
.report-split-line span,
.report-meter-label span,
.report-answer-dashboard-body span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.report-score-card strong {
  display: block;
  margin-top: 4px;
  color: var(--result-correct);
  font-size: 2.5rem;
  line-height: 0.95;
}

.report-insight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

.report-overview-card,
.report-chart-card {
  min-height: 184px;
}

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

.report-overview-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: var(--inner-highlight);
}

.report-overview-item span,
.report-overview-item small,
.report-chart-legend span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.report-overview-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.report-overview-item small {
  margin-top: 5px;
  color: var(--muted-strong);
  text-transform: none;
}

.report-donut-card,
.report-score-breakdown,
.report-response-chart {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 120px;
}

.report-donut-card {
  justify-items: center;
}

.report-donut {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.report-donut strong {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: var(--ink);
  font-size: 1.28rem;
  border-radius: 50%;
  background: rgba(21, 24, 29, 0.92);
  box-shadow: var(--inner-highlight);
}

.report-chart-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.report-chart-legend span {
  padding: 5px 7px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.report-chart-legend .is-correct {
  color: var(--result-correct);
}

.report-chart-legend .is-wrong {
  color: var(--result-wrong);
}

.report-chart-legend .is-missed {
  color: var(--result-missed);
}

.report-stacked-bar {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.report-stacked-bar i {
  display: block;
  min-width: 0;
  height: 100%;
}

.report-stacked-bar .is-base {
  background: var(--ios-blue);
}

.report-stacked-bar .is-speed {
  background: var(--result-correct);
}

.report-score-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-response-chart {
  align-content: start;
  max-height: 132px;
  overflow-y: auto;
}

.report-response-bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
}

.report-response-bar-row span,
.report-response-bar-row strong {
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 900;
}

.report-response-bar-row strong {
  text-align: right;
}

.report-response-track {
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.report-response-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-response-track .is-correct {
  background: var(--result-correct);
}

.report-response-track .is-wrong {
  background: var(--result-wrong);
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-dashboard-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
}

.report-dashboard-card > * {
  position: relative;
  z-index: 1;
}

.report-dashboard-card::after {
  position: absolute;
  right: 12px;
  bottom: -8px;
  z-index: 0;
  content: attr(data-icon);
  color: rgba(255, 255, 255, 0.055);
  font-size: 3.4rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.report-dashboard-card h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--line);
}

.report-big-line,
.report-split-line,
.report-meter-label,
.report-stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-big-line {
  align-items: end;
  margin-bottom: 10px;
}

.report-big-line strong {
  color: var(--ink);
  font-size: 1.65rem;
}

.report-big-line strong small,
.report-split-line strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  vertical-align: baseline;
}

.report-stat-list {
  display: grid;
  gap: 7px;
  margin: 0;
}

.report-stat-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.report-split-line,
.report-meter-label {
  margin-top: 9px;
}

.report-split-line strong,
.report-meter-label strong {
  color: var(--ink);
}

.report-meter {
  width: 100%;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.report-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ios-blue), var(--ios-green));
  transition: width 220ms ease;
}

#dashMistakesBar {
  background: linear-gradient(90deg, var(--result-missed), var(--result-wrong));
}

.report-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 2fr);
  gap: 12px;
  min-height: 0;
}

.report-category-panel,
.report-answer-panel {
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100svh - 410px));
  min-height: 360px;
}

.report-category-dashboard-list,
.report-answer-dashboard-list {
  display: grid;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.report-category-dashboard-row,
.report-answer-dashboard-row {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--inner-highlight);
}

.report-category-dashboard-head,
.report-answer-dashboard-head,
.report-answer-dashboard-body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.report-category-dashboard-head strong {
  color: var(--ink);
}

.report-category-dashboard-head span {
  color: var(--result-correct);
  font-weight: 950;
  white-space: nowrap;
}

.report-category-dashboard-row p,
.report-category-dashboard-row small {
  margin: 7px 0 0;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-category-dashboard-row small {
  display: block;
  color: var(--muted);
  text-align: right;
}

.report-answer-dashboard-row {
  display: grid;
  gap: 10px;
}

.report-answer-dashboard-row.is-correct {
  border-color: rgba(54, 224, 111, 0.34);
  box-shadow: inset 4px 0 0 var(--result-correct), var(--inner-highlight);
}

.report-answer-dashboard-row.is-wrong {
  border-color: rgba(255, 69, 58, 0.34);
  box-shadow: inset 4px 0 0 var(--result-wrong), var(--inner-highlight);
}

.report-answer-dashboard-row.is-missed {
  border-color: rgba(255, 214, 10, 0.34);
  box-shadow: inset 4px 0 0 var(--result-missed), var(--inner-highlight);
}

.report-answer-dashboard-head {
  align-items: start;
}

.report-answer-dashboard-head p,
.report-answer-dashboard-body p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 850;
  line-height: 1.35;
}

.report-answer-dashboard-head strong {
  color: var(--ios-blue);
  font-size: 0.8rem;
  white-space: nowrap;
}

.report-answer-dashboard-row.is-correct .report-answer-dashboard-head strong {
  color: var(--result-correct);
}

.report-answer-dashboard-row.is-wrong .report-answer-dashboard-head strong {
  color: var(--result-wrong);
}

.report-answer-dashboard-row.is-missed .report-answer-dashboard-head strong {
  color: var(--result-missed);
}

.report-answer-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.hall-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 12px;
  list-style: none;
  overflow-y: auto;
  scrollbar-color: rgba(122, 167, 255, 0.5) rgba(255, 255, 255, 0.08);
}

.live-dialog-list {
  padding: 12px;
}

.hall-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--inner-highlight);
}

.hall-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  font-weight: 950;
  border-radius: var(--radius);
  background: var(--ios-blue);
}

.hall-main {
  min-width: 0;
}

.hall-main strong,
.hall-main small {
  display: block;
}

.hall-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-main small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.hall-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.hall-metrics span {
  padding: 6px 8px;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.ghost-button,
.primary-button,
.secondary-button {
  min-height: 40px;
  border-radius: var(--radius);
  font-weight: 900;
}

.ghost-button {
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.ghost-button:hover:not(:disabled) {
  border-color: rgba(122, 167, 255, 0.38);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:disabled {
  opacity: 0.45;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  color: #ffffff;
  border: 0;
  background: var(--button-gradient);
  box-shadow: 0 18px 36px rgba(122, 167, 255, 0.18);
}

.primary-button:hover {
  filter: brightness(1.03);
}

.primary-button:active {
  transform: scale(0.99);
}

.secondary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel-bg);
  box-shadow: var(--inner-highlight), 0 12px 24px rgba(0, 0, 0, 0.16);
}

.secondary-button:hover {
  color: var(--ink);
  border-color: var(--accent-border);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.04)),
    var(--panel-bg);
}

.secondary-button:active {
  transform: scale(0.99);
}

.join-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 1;
  padding: 20px;
  background: rgba(5, 6, 8, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

body:not(.is-locked) .join-overlay {
  display: none;
}

.join-modal {
  position: relative;
  width: min(560px, 100%);
  min-height: 590px;
  max-height: min(92vh, 860px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--join-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  backdrop-filter: blur(30px) saturate(1.35);
}

.join-modal::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--ios-blue), transparent);
}

.join-modal h2 {
  font-size: 1.86rem;
}

.modal-copy,
.rules-line {
  color: var(--muted-strong);
  line-height: 1.55;
}

.join-modal label {
  display: block;
  margin: 14px 0 8px;
  color: var(--ink-soft);
  font-weight: 900;
}

.join-modal input {
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  outline: none;
  box-shadow: var(--inner-highlight);
}

.join-modal input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--inner-highlight);
}

.join-modal input:disabled {
  color: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  cursor: not-allowed;
  opacity: 1;
}

.language-picker,
.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0;
  border: 0;
}

.language-picker {
  margin-top: 2px;
}

.language-picker legend,
.theme-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 900;
}

.language-option,
.theme-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 10px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--inner-highlight);
  cursor: pointer;
}

.language-option {
  min-height: 58px;
}

.language-option::before,
.theme-option::before {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.language-option::before {
  display: grid;
  place-items: center;
  color: #081014;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--ios-green), var(--ios-blue));
}

.language-option:first-of-type::before {
  content: "RO";
}

.language-option:last-of-type::before {
  content: "EN";
}

.language-option input,
.theme-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.language-option span,
.language-option strong,
.language-option small,
.theme-option span,
.theme-option strong,
.theme-option small {
  display: block;
  min-width: 0;
}

.language-option strong,
.theme-option strong {
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.05;
}

.language-option small,
.theme-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.language-option:has(input:checked),
.theme-option:has(input:checked) {
  border-color: var(--accent-border);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--inner-highlight), 0 0 26px var(--accent-soft);
}

.theme-option-arctic::before {
  background: linear-gradient(135deg, #7aa7ff, #d9dde0);
}

.theme-option-emerald::before {
  background: linear-gradient(135deg, #00893d, #00a94f 58%, #d6e83e);
}

.theme-option-ruby::before {
  background: linear-gradient(135deg, #6f7780, #e4ebf0 54%, #262a2f);
}

.theme-option-solar::before {
  background: linear-gradient(135deg, #3a3b3f, #ff7a18 58%, #ffb000);
}

.rules-line {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .top-status,
  .game-stage,
  .question-head,
  .question-card,
  .round-message,
  .player-panel,
  .leaderboard-panel,
  .answer-button,
  .hall-button,
  .hall-modal,
  .join-modal {
    background: rgba(24, 27, 32, 0.96);
  }
}

@media (min-width: 921px) {
  body {
    overflow: hidden;
  }
}

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

body.is-backgrounded *,
body.is-backgrounded *::before,
body.is-backgrounded *::after {
  animation-play-state: paused !important;
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .top-status,
  .game-stage,
  .game-stage::before,
  .question-card::before,
  .question-watermark,
  .answer-button,
  .difficulty-track,
  .hall-button::after {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .topbar,
  .top-status,
  .game-stage,
  .question-head,
  .question-card,
  .round-message,
  .player-panel,
  .leaderboard-panel,
  .answer-button,
  .hall-button,
  .hall-overlay,
  .live-overlay,
  .report-overlay,
  .hall-modal,
  .live-modal,
  .report-modal,
  .join-overlay,
  .join-modal {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .app-shell {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052)),
      rgba(16, 19, 24, 0.92);
  }

  .topbar,
  .question-head,
  .question-card,
  .round-message,
  .player-panel,
  .leaderboard-panel,
  .hall-modal,
  .live-modal,
  .report-modal,
  .join-modal {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04)),
      rgba(24, 27, 32, 0.94);
  }

  .hall-overlay,
  .live-overlay,
  .report-overlay,
  .join-overlay {
    background: rgba(5, 6, 8, 0.78);
  }

  body.is-locked .app-shell {
    filter: none;
    transform: none;
  }

  .timer-ring {
    box-shadow:
      inset 0 0 0 7px rgba(255, 255, 255, 0.035),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition-duration: 500ms;
  }

  .timer-ring::after {
    filter: none;
  }
}

@media (max-width: 1040px) {
  .side-panel {
    width: 292px;
  }

  .question-text {
    font-size: 1.62rem;
  }
}

@media (max-width: 920px) {
  .app-shell {
    display: block;
    width: min(100% - 20px, 760px);
    height: auto;
    min-height: 100vh;
    margin: 8px auto;
    padding: 10px;
  }

  .topbar {
    margin-bottom: 8px;
  }

  .game-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding-right: 0;
  }

  .game-stage {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    min-height: auto;
  }

  .side-panel {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  #liveLeaderboard {
    max-height: 230px;
  }

  .hall-action-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 720px);
    padding-top: 6px;
  }

  .topbar,
  .question-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 10px;
  }

  .brand-credit {
    width: 100%;
    margin-left: 0;
  }

  .brand h1 {
    font-size: 1.36rem;
  }

  .top-status {
    width: 100%;
  }

  .game-stage {
    padding: 12px;
  }

  .stage-art {
    top: 4%;
    right: -24%;
    width: 96%;
  }

  .question-head {
    height: 58px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .timer-ring {
    width: 96px;
    height: 96px;
  }

  .question-card {
    height: 177px;
    min-height: 77px;
    padding: 10px 12px;
    gap: 12px;
  }

  .question-text {
    min-height: 0;
    padding: 0;
    font-size: 1.42rem;
  }

  .answers-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .answers-grid {
    grid-template-columns: repeat(2, 40%);
    justify-content: center;
    width: 100%;
    grid-template-rows: repeat(2, 88px);
    height: 186px;
  }

  .difficulty-track {
    align-items: center;
    flex-direction: column;
    width: 66px;
    min-height: 66px;
  }

  .difficulty-chart {
    width: 54px;
    height: 54px;
  }

  .leaderboard-meta {
    display: none;
  }

  .join-modal {
    min-height: auto;
    max-height: calc(100svh - 80px);
    padding: 23px 18px 20px;
    overflow-y: auto;
  }

  .language-picker,
  .theme-picker {
    gap: 7px;
  }

  .language-option,
  .theme-option {
    min-height: 58px;
    padding: 8px;
  }

  .language-option::before,
  .theme-option::before {
    width: 24px;
    height: 24px;
  }

  .language-option strong,
  .theme-option strong {
    font-size: 0.76rem;
  }

  .language-option small,
  .theme-option small {
    font-size: 0.62rem;
  }

  .hall-modal {
    max-height: 86vh;
  }

  .hall-row {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
  }

  .hall-metrics {
    grid-column: 2;
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .question-text {
    font-size: 1.28rem;
  }

  .question-card {
    gap: 10px;
  }

  .difficulty-track {
    width: 58px;
  }

  .difficulty-chart {
    width: 48px;
    height: 48px;
  }

  .difficulty-chart strong {
    font-size: 0.78rem;
  }

  .answer-button {
    height: 84px;
    min-height: 84px;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100svh;
    min-height: 0;
    margin: 0;
    padding: calc(41px + env(safe-area-inset-top, 0px)) 6px 6px;
    border-radius: 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 58px;
    margin-bottom: 0;
    padding: 5px 7px;
    column-gap: 8px;
    row-gap: 1px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand .eyebrow {
    display: none;
  }

  .brand-credit {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
    width: 100%;
    min-width: 0;
    margin: 2px 0 0;
    gap: 1px;
    line-height: 1;
    text-align: left;
  }

  .brand-credit strong,
  .brand-credit a {
    max-width: 150px;
  }

  .brand-credit strong {
    font-size: 0.56rem;
  }

  .brand-credit a {
    font-size: 0.52rem;
  }

  .brand h1 {
    overflow: hidden;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-status {
    grid-column: 2;
    grid-row: 1 / 3;
    width: auto;
    min-height: 32px;
    padding: 0 8px;
    gap: 7px;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .live-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(76, 217, 100, 0.1), 0 0 14px rgba(76, 217, 100, 0.36);
  }

  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
    height: 100%;
    min-height: 0;
    padding-right: 0;
    overflow: hidden;
  }

  .game-stage {
    grid-template-rows: 71px 105px 128px 36px;
    row-gap: 9px;
    min-height: 0;
    padding: 8px;
  }

  .question-head {
    flex-direction: row;
    align-items: center;
    height: 71px;
    min-height: 71px;
    padding: 6px 8px;
    gap: 8px;
  }

  .question-head .eyebrow {
    margin-bottom: 2px;
    font-size: 0.58rem;
  }

  .round-number {
    font-size: 0.78rem;
  }

  .question-db-id {
    margin-top: 2px;
    font-size: 0.58rem;
  }

  .timer-ring {
    width: 58px;
    height: 58px;
  }

  .timer-ring strong {
    font-size: 1.22rem;
  }

  .timer-ring span {
    margin-top: 3px;
    font-size: 0.48rem;
  }

  .question-card {
    height: 116px;
    min-height: 116px;
    margin-top: 0;
    padding: 8px;
    gap: 8px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
  }

  .difficulty-track {
    width: 50px;
    min-height: 50px;
    gap: 4px;
  }

  .difficulty-track span {
    font-size: 0.48rem;
  }

  .difficulty-chart {
    width: 44px;
    height: 44px;
  }

  .difficulty-chart i::after {
    inset: 5px;
  }

  .difficulty-chart strong {
    font-size: 0.68rem;
  }

  .question-text {
    display: -webkit-box;
    font-size: 1.05rem;
    line-height: 1.12;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .answers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, 61px);
    gap: 6px;
    height: 128px;
    margin-top: 9px;
  }

  .answer-button {
    height: 61px;
    min-height: 61px;
    padding: 8px;
    gap: 6px;
  }

  .answer-button .answer-letter {
    width: 22px;
    height: 22px;
    font-size: 0.68rem;
  }

  .answer-button .answer-text {
    display: -webkit-box;
    font-size: 0.78rem;
    line-height: 1.12;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .round-message {
    height: 36px;
    min-height: 36px;
    margin-top: 5px;
    padding: 6px 8px;
    font-size: 0.75rem;
    line-height: 1.15;
    overflow: hidden;
  }

  .side-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 6px;
    min-height: 0;
    overflow: hidden;
  }

  .player-panel {
    grid-column: 1 / -1;
    padding: 7px;
  }

  .panel-title {
    margin-bottom: 5px;
  }

  .player-panel h2 {
    font-size: 0.98rem;
  }

  .ghost-button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.72rem;
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 7px;
  }

  .stat-grid div {
    min-height: 40px;
    padding: 6px;
  }

  .stat-grid span {
    font-size: 0.54rem;
  }

  .stat-grid strong {
    margin-top: 2px;
    font-size: 0.9rem;
  }

  .leaderboard-panel {
    display: none;
  }

  .mobile-live-action-panel {
    display: block;
  }

  .hall-action-panel {
    grid-column: auto;
    min-height: 52px;
  }

  .mobile-live-action-panel {
    min-height: 52px;
  }

  .hall-button {
    min-height: 52px;
    padding: 8px;
    gap: 8px;
  }

  .hall-button-icon {
    width: 32px;
    height: 32px;
  }

  .hall-button-icon svg {
    width: 20px;
    height: 20px;
  }

  .hall-button strong {
    font-size: 0.86rem;
  }

  .hall-button small {
    margin-top: 1px;
    font-size: 0.66rem;
  }

  .hall-overlay,
  .live-overlay,
  .report-overlay {
    padding: calc(25px + env(safe-area-inset-top, 0px)) 10px 10px;
  }

  .hall-modal,
  .live-modal,
  .report-modal {
    width: 100%;
    height: calc(100svh - 35px - env(safe-area-inset-top, 0px));
    max-height: calc(100svh - 35px - env(safe-area-inset-top, 0px));
    background:
      linear-gradient(180deg, rgba(34, 38, 45, 0.96), rgba(17, 19, 23, 0.96)),
      rgba(17, 19, 23, 0.96);
  }

  .hall-modal-head {
    padding: 12px;
  }

  .hall-modal-head h2 {
    font-size: 1.24rem;
  }

  .live-dialog-list,
  .hall-list {
    align-content: start;
    padding: 10px;
  }

  .report-body {
    gap: 10px;
    padding: 10px;
  }

  .report-hero {
    align-items: start;
    flex-direction: column;
    padding: 13px;
  }

  .report-hero strong {
    font-size: 2rem;
  }

  .report-hero p {
    text-align: left;
  }

  .report-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-category-row {
    align-items: start;
    flex-direction: column;
  }

  .report-category-row span {
    text-align: left;
  }

  .hall-row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 7px 9px;
    min-height: 76px;
    padding: 9px;
  }

  .hall-rank {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .hall-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .hall-main strong {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.05;
  }

  .hall-main small {
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  .hall-metrics {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    white-space: normal;
  }

  .hall-metrics span {
    padding: 4px 7px;
    font-size: 0.76rem;
    line-height: 1;
  }
}

@media (max-width: 1180px) {
  body.report-page .report-dashboard-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  body.report-page .report-insight-grid,
  body.report-page .report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.report-page .report-detail-grid {
    grid-template-columns: 1fr;
  }

  body.report-page .report-category-panel,
  body.report-page .report-answer-panel {
    height: auto;
    max-height: 460px;
  }
}

@media (max-width: 920px) {
  body.report-page {
    overflow: hidden;
  }

  body.report-page .report-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100svh;
    min-height: 0;
    margin: 0;
    padding: 8px;
    border-radius: 0;
  }

  body.report-page .report-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    margin-bottom: 0;
    padding: 10px;
  }

  body.report-page .report-brand-link {
    min-width: 0;
  }

  body.report-page .report-brand-link .eyebrow {
    display: block;
    margin-bottom: 3px;
    font-size: 0.62rem;
  }

  body.report-page .report-brand-link h1 {
    overflow: hidden;
    font-size: 1.18rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.report-page .report-topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  body.report-page .report-theme-pills {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.report-page .report-status {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
  }

  body.report-page .report-refresh-button {
    grid-column: 2;
    width: auto;
    min-height: 40px;
  }

  body.report-page .report-dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 30svh) minmax(0, 1fr);
    overflow: hidden;
  }

  body.report-page .report-sidebar,
  body.report-page .report-dashboard {
    min-height: 0;
  }

  body.report-page .report-dashboard-content {
    padding: 12px;
  }

  body.report-page .report-dashboard-head {
    display: grid;
  }

  body.report-page .report-score-card {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  body.report-page .report-insight-grid,
  body.report-page .report-stat-grid,
  body.report-page .report-overview-grid,
  body.report-page .report-score-values {
    grid-template-columns: 1fr;
  }

  body.report-page .report-theme-pills button {
    flex: 0 0 auto;
  }

  body.report-page .report-answer-dashboard-head,
  body.report-page .report-answer-dashboard-body,
  body.report-page .report-category-dashboard-head {
    display: grid;
  }

  body.report-page .report-answer-meta {
    justify-items: start;
    text-align: left;
    white-space: normal;
  }

  body.report-page #dashReportId {
    max-width: 100%;
  }
}

body.report-page .report-topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

body.report-page .report-brand-link {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.report-page .report-brand-link h1 {
  overflow: hidden;
  font-size: 1.42rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.report-page .report-theme-pills {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: max-content;
}

body.report-page .report-theme-pills button {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-indent: -999px;
  box-shadow: var(--inner-highlight), 0 10px 20px rgba(0, 0, 0, 0.18);
}

body.report-page .report-theme-pills button::after {
  position: absolute;
  inset: 6px;
  content: "";
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

body.report-page .report-theme-pills button[data-theme-choice="arctic"] {
  background: linear-gradient(135deg, #26344f, #7aa7ff 55%, #d9dde0);
}

body.report-page .report-theme-pills button[data-theme-choice="emerald"] {
  background: linear-gradient(135deg, #072417, #00a94f 58%, #d6e83e);
}

body.report-page .report-theme-pills button[data-theme-choice="ruby"] {
  background: linear-gradient(135deg, #16191d, #e4ebf0 54%, #6f7780);
}

body.report-page .report-theme-pills button[data-theme-choice="solar"] {
  background: linear-gradient(135deg, #2b2d30, #ff7a18 58%, #ffb000);
}

body.report-page .report-theme-pills button.is-active {
  border-color: var(--ios-blue);
  box-shadow:
    var(--inner-highlight),
    0 0 0 2px var(--accent-border),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

body.report-page .report-refresh-button {
  grid-column: 3;
  justify-self: end;
  flex: 0 0 auto;
  width: auto;
  min-width: 96px;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
}

body.report-page .report-big-line strong small,
body.report-page .report-split-line strong small {
  font-size: 0.72rem;
  line-height: 1;
}

@media (max-width: 1080px) {
  body.report-page .report-topbar {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  body.report-page .report-topbar {
    grid-template-columns: 1fr;
  }

  body.report-page .report-theme-pills {
    grid-column: 1;
    justify-content: start;
  }

  body.report-page .report-refresh-button {
    grid-column: 1;
    justify-self: start;
    width: auto;
    min-width: 88px;
  }
}

body.reject-page {
  overflow: hidden;
}

body.reject-page .app-shell,
body.reject-page .page-backdrop {
  opacity: 1;
  animation: none;
}

.reject-shell {
  width: min(1320px, calc(100% - 24px));
}

.reject-topbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 420px) minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.reject-brand-link {
  color: inherit;
  text-decoration: none;
}

.reject-brand-link h1 {
  overflow: hidden;
  font-size: 1.42rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reject-topbar-center {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.reject-search {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr);
  align-items: center;
  width: min(420px, 100%);
  min-height: 42px;
  padding: 4px 6px 4px 12px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.reject-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reject-search input {
  min-width: 0;
  min-height: 32px;
  color: var(--ink);
  border: 0;
  outline: none;
  background: transparent;
}

.reject-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.reject-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 950;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-soft);
  white-space: nowrap;
}

.reject-live-pill::before {
  width: 9px;
  height: 9px;
  margin-right: 8px;
  content: "";
  border-radius: 50%;
  background: var(--ios-green);
  box-shadow: 0 0 0 5px rgba(76, 217, 100, 0.12);
}

.reject-refresh-button {
  width: auto;
  min-width: 96px;
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
}

.reject-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.reject-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reject-summary-card,
.reject-board,
.reject-player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, 0.035)),
    var(--panel-bg);
  box-shadow: var(--inner-highlight);
}

.reject-summary-card {
  min-height: 96px;
  padding: 14px;
}

.reject-summary-card::after,
.reject-player-card::after {
  position: absolute;
  right: 10px;
  bottom: -8px;
  content: attr(data-icon);
  color: rgba(255, 255, 255, 0.055);
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.reject-summary-card span,
.reject-player-metric span,
.reject-player-details span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.reject-summary-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.reject-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: var(--stage-bg);
  box-shadow: var(--shadow), var(--inner-highlight);
}

.reject-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.reject-board-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.reject-board-head p:last-child {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: right;
}

.reject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
}

.reject-player-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 14px;
}

.reject-player-card > * {
  position: relative;
  z-index: 1;
}

.reject-player-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.reject-avatar,
.reject-rank {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.reject-avatar {
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-weight: 950;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
}

.reject-rank {
  min-width: 34px;
  height: 30px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.reject-player-title {
  min-width: 0;
}

.reject-player-title strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reject-player-title span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 900;
}

.reject-player-title .is-connected {
  color: var(--result-correct);
}

.reject-player-title .is-disconnected {
  color: var(--result-missed);
}

.reject-player-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reject-player-metric {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: var(--inner-highlight);
}

.reject-player-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1;
}

.reject-player-details {
  display: grid;
  gap: 5px;
}

.reject-player-details span {
  color: var(--muted-strong);
  text-transform: none;
}

.reject-kick-button {
  min-height: 44px;
  color: #ffffff;
  font-weight: 950;
  border: 1px solid rgba(255, 95, 87, 0.48);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 95, 87, 0.96), rgba(160, 32, 32, 0.92)),
    rgba(255, 95, 87, 0.2);
  box-shadow: 0 14px 28px rgba(255, 69, 58, 0.14), var(--inner-highlight);
}

.reject-kick-button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.reject-kick-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.reject-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted-strong);
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 960px) {
  .reject-topbar {
    grid-template-columns: 1fr;
  }

  .reject-topbar-center {
    justify-items: stretch;
  }

  .reject-actions {
    justify-content: start;
  }

  .reject-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.reject-page {
    overflow: auto;
  }

  .reject-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    margin: 0;
    border-radius: 0;
  }

  .reject-summary-grid,
  .reject-player-metrics {
    grid-template-columns: 1fr;
  }

  .reject-board-head,
  .reject-actions {
    align-items: start;
    flex-direction: column;
  }

  .reject-refresh-button {
    width: auto;
  }
}
