/* Named game-client to avoid nginx's /quiz WebSocket prefix route. */
.jwq-root {
  --jwq-bg: #08070a;
  --jwq-panel: rgba(24, 22, 28, 0.96);
  --jwq-panel-soft: rgba(255, 255, 255, 0.045);
  --jwq-border: rgba(255, 255, 255, 0.11);
  --jwq-text: #f7f3ea;
  --jwq-muted: #aaa39a;
  --jwq-yellow: #e6d15b;
  --jwq-yellow-strong: #f3dc5d;
  --jwq-green: #74d69b;
  --jwq-red: #ef7f7f;
  --jwq-radius: 22px;
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 12000;
  overflow: hidden;
  color: var(--jwq-text);
  background:
    radial-gradient(circle at 12% 15%, rgba(230, 209, 91, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(110, 72, 139, 0.13), transparent 32rem),
    var(--jwq-bg);
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.jwq-root.hidden {
  display: none !important;
}

.jwq-root.jwq-root--help-open {
  z-index: 12020;
}

.jwq-root *,
.jwq-root *::before,
.jwq-root *::after {
  box-sizing: border-box;
}

.jwq-root button,
.jwq-root input,
.jwq-root select {
  font: inherit;
}

.jwq-root button {
  -webkit-tap-highlight-color: transparent;
}

.jwq-shell {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.jwq-header {
  min-height: 74px;
  padding:
    max(12px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    12px
    max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 7, 10, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

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

.jwq-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(230, 209, 91, 0.5);
  border-radius: 14px;
  background: rgba(230, 209, 91, 0.08);
}

.jwq-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jwq-brand > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.jwq-brand strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-brand small {
  margin-top: 2px;
  color: var(--jwq-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jwq-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jwq-help-button {
  min-height: 38px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--jwq-border);
  border-radius: 999px;
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  cursor: pointer;
}

.jwq-help-button > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17140b;
  background: var(--jwq-yellow);
  font-weight: 900;
}

.jwq-help-button > span > svg {
  width: 15px;
  height: 15px;
  display: block;
  overflow: visible;
}

.jwq-help-button > b {
  font-weight: 750;
  white-space: nowrap;
}

.jwq-help-button:hover,
.jwq-help-button:focus-visible {
  border-color: rgba(230, 209, 91, 0.58);
  outline: none;
  background: rgba(230, 209, 91, 0.08);
}

.jwq-connection {
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--jwq-border);
  border-radius: 999px;
  color: var(--jwq-muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  white-space: nowrap;
}

.jwq-connection i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.jwq-connection--online {
  color: var(--jwq-green);
}

.jwq-connection--connecting,
.jwq-connection--authenticating,
.jwq-connection--reconnecting {
  color: var(--jwq-yellow);
}

.jwq-connection--offline,
.jwq-connection--auth-required {
  color: var(--jwq-red);
}

.jwq-icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--jwq-border);
  border-radius: 14px;
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.jwq-icon-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.085);
}

.jwq-main {
  min-height: 0;
  overflow: auto;
  padding:
    clamp(24px, 4vw, 56px)
    max(clamp(18px, 4vw, 52px), env(safe-area-inset-right))
    max(34px, env(safe-area-inset-bottom))
    max(clamp(18px, 4vw, 52px), env(safe-area-inset-left));
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.34) transparent;
  -webkit-overflow-scrolling: touch;
}

.jwq-main--gameplay {
  overflow: hidden;
  padding:
    clamp(10px, 2.2vh, 22px)
    max(clamp(12px, 3vw, 36px), env(safe-area-inset-right))
    max(clamp(10px, 2.2vh, 22px), env(safe-area-inset-bottom))
    max(clamp(12px, 3vw, 36px), env(safe-area-inset-left));
  padding:
    clamp(10px, 2.2dvh, 22px)
    max(clamp(12px, 3vw, 36px), env(safe-area-inset-right))
    max(clamp(10px, 2.2dvh, 22px), env(safe-area-inset-bottom))
    max(clamp(12px, 3vw, 36px), env(safe-area-inset-left));
}

.jwq-main h1,
.jwq-main h2,
.jwq-main p {
  margin-top: 0;
}

.jwq-main h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.jwq-main h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.jwq-main p {
  color: var(--jwq-muted);
  line-height: 1.55;
}

.jwq-home,
.jwq-lobby,
.jwq-round,
.jwq-results,
.jwq-game-over {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.jwq-home {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.jwq-hero {
  width: min(820px, 100%);
}

.jwq-hero > p:not(.jwq-eyebrow) {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(16px, 2vw, 20px);
}

.jwq-mode-selector {
  width: min(820px, 100%);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.jwq-mode-selector legend {
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  color: var(--jwq-text);
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0.01em;
}

.jwq-mode-selector legend span {
  color: var(--jwq-muted);
  font-size: 12px;
  font-weight: 600;
}

.jwq-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jwq-mode-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.jwq-mode-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.jwq-mode-choice__surface {
  min-height: 108px;
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--jwq-border);
  border-radius: 20px;
  color: var(--jwq-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    var(--jwq-panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.jwq-mode-choice__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 209, 91, 0.22);
  border-radius: 16px;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.07);
}

.jwq-mode-choice__icon svg {
  width: 29px;
  height: 29px;
  display: block;
}

.jwq-mode-choice__copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.jwq-mode-choice__copy strong {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.2;
}

.jwq-mode-choice__copy small {
  color: var(--jwq-muted);
  font-size: 12px;
  line-height: 1.4;
}

.jwq-mode-choice__selected {
  min-width: 18px;
  min-height: 18px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: transparent;
  font-size: 10px;
  font-weight: 820;
  white-space: nowrap;
}

.jwq-mode-choice:hover:not(.is-disabled) .jwq-mode-choice__surface {
  border-color: rgba(230, 209, 91, 0.42);
  transform: translateY(-1px);
}

.jwq-mode-choice > input:checked + .jwq-mode-choice__surface {
  border-color: rgba(230, 209, 91, 0.72);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 209, 91, 0.15), transparent 55%),
    linear-gradient(145deg, rgba(230, 209, 91, 0.08), rgba(255, 255, 255, 0.018)),
    var(--jwq-panel);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(230, 209, 91, 0.08);
}

.jwq-mode-choice > input:checked + .jwq-mode-choice__surface .jwq-mode-choice__selected {
  border-color: rgba(230, 209, 91, 0.38);
  color: #1a1608;
  background: var(--jwq-yellow);
}

.jwq-mode-choice > input:focus-visible + .jwq-mode-choice__surface {
  outline: 3px solid rgba(230, 209, 91, 0.76);
  outline-offset: 3px;
}

.jwq-mode-choice.is-disabled {
  cursor: default;
}

.jwq-mode-choice.is-disabled .jwq-mode-choice__surface {
  opacity: 0.68;
}

.jwq-mode-selector--compact {
  width: 100%;
  grid-column: 1 / -1;
  padding-bottom: 4px;
}

.jwq-mode-selector--compact .jwq-mode-choice__surface {
  min-height: 76px;
  padding: 11px 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  border-radius: 15px;
  box-shadow: none;
}

.jwq-mode-selector--compact .jwq-mode-choice__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.jwq-mode-selector--compact .jwq-mode-choice__icon svg {
  width: 22px;
  height: 22px;
}

.jwq-mode-selector--compact .jwq-mode-choice__copy strong {
  font-size: 13px;
}

.jwq-mode-selector--compact .jwq-mode-choice__copy small {
  font-size: 10px;
}

.jwq-mode-selector--compact .jwq-mode-choice__selected {
  display: none;
}

.jwq-mode-badge {
  width: fit-content;
  min-height: 28px;
  margin: 0 0 11px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(230, 209, 91, 0.27);
  border-radius: 999px;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.065);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jwq-mode-badge--lyrics {
  border-color: rgba(165, 132, 237, 0.38);
  color: #cbb7ff;
  background: rgba(132, 94, 215, 0.09);
}

.jwq-eyebrow,
.jwq-round-label {
  margin-bottom: 12px !important;
  color: var(--jwq-yellow) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.jwq-home-grid,
.jwq-lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.jwq-card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--jwq-border);
  border-radius: var(--jwq-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--jwq-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.jwq-card--primary {
  border-color: rgba(230, 209, 91, 0.23);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 209, 91, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--jwq-panel);
}

.jwq-card > p {
  margin-bottom: 25px;
}

.jwq-card-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, 0.13);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.jwq-training-card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 88px minmax(240px, 1fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(230, 209, 91, 0.34);
  border-radius: var(--jwq-radius);
  background:
    radial-gradient(circle at 0 0, rgba(230, 209, 91, 0.17), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(132, 94, 215, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--jwq-panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.jwq-training-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  top: -110px;
  border: 1px solid rgba(230, 209, 91, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.jwq-training-visual {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 209, 91, 0.34);
  border-radius: 26px;
  color: var(--jwq-yellow);
  background:
    linear-gradient(145deg, rgba(230, 209, 91, 0.16), rgba(230, 209, 91, 0.045)),
    rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.jwq-training-visual svg {
  width: 58px;
  height: 58px;
  display: block;
}

.jwq-training-copy {
  min-width: 0;
}

.jwq-training-copy .jwq-eyebrow {
  margin-bottom: 8px !important;
}

.jwq-training-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 34px);
}

.jwq-training-copy > p:not(.jwq-eyebrow) {
  max-width: 570px;
  margin: 0;
  font-size: 14px;
}

.jwq-training-facts {
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.jwq-training-facts li {
  min-height: 27px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--jwq-muted);
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.jwq-training-form {
  min-width: 0;
  display: grid;
  gap: 13px;
}

.jwq-training-difficulty {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.jwq-training-difficulty legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--jwq-text);
  font-size: 12px;
  font-weight: 780;
}

.jwq-training-difficulty > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.jwq-training-difficulty-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.jwq-training-difficulty-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.jwq-training-difficulty-choice > span {
  min-height: 65px;
  padding: 9px 8px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--jwq-border);
  border-radius: 13px;
  color: var(--jwq-text);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.jwq-training-difficulty-choice strong {
  font-size: 12px;
}

.jwq-training-difficulty-choice small {
  color: var(--jwq-muted);
  font-size: 9px;
  line-height: 1.25;
}

.jwq-training-difficulty-choice:hover:not(.is-disabled) > span {
  border-color: rgba(230, 209, 91, 0.42);
  transform: translateY(-1px);
}

.jwq-training-difficulty-choice > input:checked + span {
  border-color: rgba(230, 209, 91, 0.72);
  color: #fff4ad;
  background: rgba(230, 209, 91, 0.11);
  box-shadow: inset 0 0 0 1px rgba(230, 209, 91, 0.08);
}

.jwq-training-difficulty-choice > input:focus-visible + span {
  outline: 3px solid rgba(230, 209, 91, 0.76);
  outline-offset: 3px;
}

.jwq-training-difficulty-choice.is-disabled {
  cursor: not-allowed;
}

.jwq-training-difficulty-choice.is-disabled > span {
  opacity: 0.5;
}

.jwq-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.jwq-settings-note {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: var(--jwq-muted);
  font-size: 12px;
  line-height: 1.45;
}

.jwq-setting label,
.jwq-join-form > label {
  display: grid;
  gap: 7px;
  color: var(--jwq-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.jwq-setting select,
.jwq-join-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--jwq-border);
  border-radius: 13px;
  outline: none;
  color: var(--jwq-text);
  background: rgba(0, 0, 0, 0.24);
}

.jwq-setting select {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  color: #fffdf7;
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0;
  background-color: #15131a;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--jwq-yellow) 50%),
    linear-gradient(135deg, var(--jwq-yellow) 50%, transparent 50%),
    linear-gradient(#15131a, #15131a);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px),
    0 0;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  cursor: pointer;
}

.jwq-setting select:hover:not(:disabled) {
  border-color: rgba(230, 209, 91, 0.42);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--jwq-yellow-strong) 50%),
    linear-gradient(135deg, var(--jwq-yellow-strong) 50%, transparent 50%),
    linear-gradient(#1b1820, #1b1820);
}

.jwq-setting select option {
  color: #fffdf7;
  font-size: 15px;
  font-weight: 700;
  background-color: #15131a;
}

.jwq-setting select option:checked {
  color: #fff4ad;
  background-color: #40391d;
}

.jwq-setting select:focus,
.jwq-join-form input:focus {
  border-color: rgba(230, 209, 91, 0.68);
  box-shadow: 0 0 0 3px rgba(230, 209, 91, 0.09);
}

.jwq-setting select:focus-visible {
  border-color: var(--jwq-yellow);
  outline: 2px solid rgba(230, 209, 91, 0.72);
  outline-offset: 2px;
  box-shadow:
    0 0 0 5px rgba(230, 209, 91, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.jwq-setting select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.jwq-setting-hint {
  color: var(--jwq-yellow);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
}

.jwq-categories {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  grid-column: 1 / -1;
  border: 0;
}

.jwq-categories legend {
  margin-bottom: 10px;
  color: var(--jwq-text);
  font-size: 13px;
  font-weight: 750;
}

.jwq-categories legend span {
  margin-left: 6px;
  color: var(--jwq-muted);
  font-size: 11px;
  font-weight: 500;
}

.jwq-category-status,
.jwq-filter-empty-note {
  grid-column: 1 / -1;
  color: var(--jwq-muted);
  font-size: 11px;
  line-height: 1.45;
}

.jwq-filter-empty-note {
  margin: 12px 0 20px !important;
  padding: 10px 12px;
  border: 1px solid rgba(230, 209, 91, 0.12);
  border-radius: 11px;
  background: rgba(230, 209, 91, 0.035);
}

.jwq-category-status {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jwq-category-status button {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(230, 209, 91, 0.34);
  border-radius: 999px;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.06);
  font: inherit;
  cursor: pointer;
}

.jwq-category-groups {
  display: grid;
  gap: 8px;
}

.jwq-category-group {
  overflow: hidden;
  border: 1px solid var(--jwq-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.jwq-category-group:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.jwq-category-group[open] {
  border-color: rgba(230, 209, 91, 0.26);
  background: rgba(230, 209, 91, 0.035);
}

.jwq-category-group:focus-within {
  border-color: rgba(230, 209, 91, 0.7);
  box-shadow: 0 0 0 3px rgba(230, 209, 91, 0.09);
}

.jwq-category-group:has(> summary input[name="categories"]:checked),
.jwq-category-group:has(> .jwq-category-grid > .jwq-category input:checked) {
  border-color: rgba(230, 209, 91, 0.5);
  background:
    linear-gradient(135deg, rgba(230, 209, 91, 0.075), rgba(230, 209, 91, 0.025)),
    rgba(255, 255, 255, 0.022);
}

.jwq-category-group:has(> summary input[name="categories"]:checked) > summary,
.jwq-category-group:has(> .jwq-category-grid > .jwq-category input:checked) > summary {
  color: #fff4ad;
}

.jwq-category-group summary {
  min-height: 44px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--jwq-text);
  cursor: pointer;
  list-style: none;
}

.jwq-category-group summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.jwq-category-group summary:focus-visible {
  outline: 2px solid var(--jwq-yellow);
  outline-offset: -3px;
}

.jwq-category-group summary::-webkit-details-marker {
  display: none;
}

.jwq-category-group summary::after {
  display: none;
  content: none;
}

.jwq-category-group summary > [data-jwq-category-root-choice] {
  flex: 1 1 auto;
  min-width: 0;
}

.jwq-category-group summary > button {
  min-height: 34px;
  max-width: 56%;
  padding: 5px 7px 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(230, 209, 91, 0.28);
  border-radius: 10px;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.055);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.jwq-category-group summary > button::after {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  color: #17140b;
  background-color: var(--jwq-yellow);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 2px, 2px 10px;
}

.jwq-category-group summary > button:hover:not(:disabled),
.jwq-category-group summary > button:focus-visible {
  border-color: rgba(230, 209, 91, 0.68);
  background: rgba(230, 209, 91, 0.12);
}

.jwq-category-group summary > button:focus-visible {
  outline: 2px solid var(--jwq-yellow);
  outline-offset: 2px;
}

.jwq-category-group summary > button:disabled {
  cursor: default;
  opacity: 0.55;
}

.jwq-category-group[open] summary > button::after {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 10px 2px;
}

.jwq-category-group summary strong {
  font-size: 12px;
}

.jwq-category-group summary > span {
  color: var(--jwq-muted);
  font-size: 10px;
}

.jwq-category-grid {
  padding: 0 10px 11px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.jwq-category {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.jwq-category input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.jwq-category span {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: var(--jwq-muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.jwq-category span b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-category span small {
  flex: 0 0 auto;
  color: inherit;
  font-size: 9px;
  opacity: 0.72;
}

.jwq-category:hover span {
  border-color: rgba(255, 255, 255, 0.2);
}

.jwq-category input:checked + span {
  border-color: rgba(230, 209, 91, 0.52);
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.1);
}

.jwq-category input:focus-visible + span {
  outline: 2px solid var(--jwq-yellow);
  outline-offset: 2px;
}

.jwq-category input:disabled + span {
  cursor: default;
  opacity: 0.7;
}

.jwq-primary-button,
.jwq-secondary-button,
.jwq-ghost-button,
.jwq-sound-button,
.jwq-inline-connection button,
.jwq-connection-overlay button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.jwq-primary-button {
  border: 1px solid var(--jwq-yellow);
  color: #17140b;
  background: var(--jwq-yellow);
  box-shadow: 0 12px 30px rgba(230, 209, 91, 0.13);
}

.jwq-primary-button:hover:not(:disabled) {
  background: var(--jwq-yellow-strong);
  transform: translateY(-1px);
}

.jwq-secondary-button {
  border: 1px solid rgba(230, 209, 91, 0.36);
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.075);
}

.jwq-secondary-button:hover:not(:disabled) {
  border-color: rgba(230, 209, 91, 0.7);
  background: rgba(230, 209, 91, 0.12);
}

.jwq-ghost-button {
  border: 1px solid var(--jwq-border);
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.035);
}

.jwq-ghost-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.jwq-sound-button {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--jwq-border);
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.045);
}

.jwq-sound-button:hover {
  border-color: rgba(230, 209, 91, 0.45);
  background: rgba(255, 255, 255, 0.075);
}

.jwq-sound-button[role="status"] {
  cursor: default;
}

.jwq-sound-button[role="status"]:hover {
  border-color: rgba(116, 214, 155, 0.35);
  background: rgba(116, 214, 155, 0.07);
  transform: none;
}

.jwq-sound-button.is-enabled {
  border-color: rgba(116, 214, 155, 0.35);
  color: var(--jwq-green);
  background: rgba(116, 214, 155, 0.07);
}

.jwq-sound-button__icon {
  font-size: 16px;
  line-height: 1;
}

.jwq-sound-button__label {
  white-space: nowrap;
}

.jwq-sound-button__volume {
  min-width: 38px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--jwq-muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.jwq-sound-button.is-enabled .jwq-sound-button__volume {
  border-color: rgba(116, 214, 155, 0.24);
  color: var(--jwq-green);
}

.jwq-sound-switch {
  width: 34px;
  height: 20px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transition: border-color 150ms ease, background 150ms ease;
}

.jwq-sound-switch i {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
  background: var(--jwq-muted);
  transition: transform 150ms ease, background 150ms ease;
}

.jwq-sound-button.is-enabled .jwq-sound-switch {
  border-color: rgba(116, 214, 155, 0.48);
  background: rgba(116, 214, 155, 0.18);
}

.jwq-sound-button.is-enabled .jwq-sound-switch i {
  background: var(--jwq-green);
  transform: translateX(14px);
}

.jwq-primary-button:disabled,
.jwq-secondary-button:disabled,
.jwq-ghost-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.45;
}

.jwq-primary-button:focus-visible,
.jwq-secondary-button:focus-visible,
.jwq-ghost-button:focus-visible,
.jwq-sound-button:focus-visible,
.jwq-icon-button:focus-visible,
.jwq-answer:focus-visible,
.jwq-room-code button:focus-visible {
  outline: 2px solid var(--jwq-yellow);
  outline-offset: 3px;
}

.jwq-full {
  width: 100%;
}

.jwq-join-form {
  display: grid;
  gap: 13px;
}

.jwq-join-form input {
  height: 70px;
  text-align: center;
  color: var(--jwq-yellow);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.32em;
}

.jwq-join-form input::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.jwq-notice {
  padding: 13px 16px;
  border: 1px solid rgba(230, 209, 91, 0.25);
  border-radius: 14px;
  color: #e8dfb2;
  background: rgba(230, 209, 91, 0.07);
  font-size: 13px;
  line-height: 1.45;
}

.jwq-lobby {
  display: grid;
  gap: 22px;
}

.jwq-lobby-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.jwq-lobby-top h1 {
  margin-bottom: 0;
}

.jwq-lobby-meta {
  width: min(100%, 300px);
  display: grid;
  flex: none;
  gap: 9px;
}

.jwq-lobby-expiry {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(230, 209, 91, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.jwq-lobby-expiry > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jwq-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.jwq-lobby-expiry > span > i {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--jwq-green);
  box-shadow: 0 0 0 4px rgba(116, 214, 155, 0.08);
}

.jwq-lobby-expiry > strong {
  flex: none;
  color: var(--jwq-yellow);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.04em;
}

.jwq-lobby-expiry > strong.is-warning {
  color: #ffad71;
}

.jwq-room-code {
  min-width: 0;
  padding: 17px 20px;
  border: 1px solid rgba(230, 209, 91, 0.28);
  border-radius: 18px;
  background: rgba(230, 209, 91, 0.065);
}

.jwq-room-code > span {
  display: block;
  color: var(--jwq-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jwq-room-code > strong {
  margin: 4px 0 9px;
  display: block;
  color: var(--jwq-yellow);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.22em;
}

.jwq-room-code > div {
  display: flex;
  gap: 8px;
}

.jwq-room-code button {
  padding: 0;
  border: 0;
  color: var(--jwq-text);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.jwq-room-code button + button {
  padding-left: 8px;
  border-left: 1px solid var(--jwq-border);
}

.jwq-training-lobby-meta {
  min-width: 0;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 14px;
  border: 1px solid rgba(230, 209, 91, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(230, 209, 91, 0.1), rgba(255, 255, 255, 0.025));
}

.jwq-training-lobby-meta > span,
.jwq-training-lobby-meta > small {
  color: var(--jwq-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jwq-training-lobby-meta > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--jwq-yellow);
  font-size: 22px;
}

.jwq-card-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jwq-card-heading h2 {
  margin: 0;
}

.jwq-card-heading > span {
  color: var(--jwq-muted);
  font-size: 12px;
}

.jwq-lobby-grid {
  --jwq-lobby-row-height: clamp(400px, 48vh, 470px);
  --jwq-lobby-row-height: clamp(400px, 48dvh, 470px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  align-items: stretch;
}

.jwq-lobby-grid--training {
  grid-template-columns: minmax(0, 1fr);
}

.jwq-lobby-grid--training .jwq-lobby-players {
  height: auto;
  grid-template-rows: auto auto;
}

.jwq-lobby-grid--training .jwq-player-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.jwq-lobby-players {
  height: var(--jwq-lobby-row-height);
  padding: 23px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.jwq-lobby-players .jwq-card-heading {
  margin-bottom: 12px;
}

.jwq-lobby-players .jwq-player-list {
  min-height: 0;
  max-height: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.3) transparent;
}

.jwq-player {
  min-height: 58px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.jwq-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  color: #161208;
  background: linear-gradient(145deg, #f0de78, #a79236);
  font-weight: 900;
}

.jwq-player-copy {
  min-width: 0;
  display: grid;
  flex: 1;
}

.jwq-player-copy strong,
.jwq-player-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-player-copy strong {
  font-size: 14px;
}

.jwq-player-copy small {
  margin-top: 2px;
  color: var(--jwq-muted);
  font-size: 11px;
}

.jwq-host-badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.095);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.jwq-online-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--jwq-green);
  box-shadow: 0 0 0 4px rgba(116, 214, 155, 0.08);
}

.jwq-player--empty {
  min-height: 47px;
  justify-content: center;
  border-style: dashed;
  color: rgba(255, 255, 255, 0.25);
  background: transparent;
  font-size: 12px;
}

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

.jwq-lobby-chat {
  height: var(--jwq-lobby-row-height);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.jwq-lobby-chat-messages {
  min-height: 0;
  max-height: none;
  margin: 0 0 14px;
  padding: 4px;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.3) transparent;
}

.jwq-lobby-settings-card {
  width: 100%;
}

.jwq-lobby-settings-card .jwq-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jwq-lobby-chat-message {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.jwq-lobby-chat-message.is-own {
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(230, 209, 91, 0.065);
}

.jwq-lobby-chat-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #161208;
  background: linear-gradient(145deg, #f0de78, #a79236);
  font-size: 12px;
  font-weight: 900;
}

.jwq-lobby-chat-message > div {
  min-width: 0;
}

.jwq-lobby-chat-message strong {
  display: block;
  overflow: hidden;
  color: var(--jwq-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-lobby-chat-message p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: var(--jwq-text);
  font-size: 14px;
  line-height: 1.4;
}

.jwq-lobby-chat-empty {
  min-height: 104px;
  display: grid;
  place-items: center;
  color: var(--jwq-muted);
  font-size: 13px;
}

.jwq-lobby-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.jwq-lobby-chat-form input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--jwq-border);
  border-radius: 14px;
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
}

.jwq-lobby-chat-form input:focus {
  border-color: rgba(230, 209, 91, 0.7);
  outline: 2px solid rgba(230, 209, 91, 0.18);
  outline-offset: 1px;
}

.jwq-lobby-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.jwq-lobby-actions .jwq-primary-button {
  min-width: 210px;
}

.jwq-wait-label {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--jwq-muted);
  font-size: 13px;
}

.jwq-wait-label span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jwq-yellow);
  animation: jwq-pulse 1.4s ease-in-out infinite;
}

.jwq-center-state {
  width: min(720px, 100%);
  min-height: calc(100dvh - 180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.jwq-main--countdown > .jwq-countdown {
  width: min(720px, 100%);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding-block: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.28) transparent;
  overscroll-behavior: contain;
}

.jwq-center-state > p:not(.jwq-eyebrow):not(.jwq-round-label) {
  max-width: 550px;
}

.jwq-vinyl {
  width: clamp(130px, 25vw, 220px);
  aspect-ratio: 1;
  margin-bottom: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 8px, rgba(255, 255, 255, 0.045) 9px 10px),
    radial-gradient(circle, var(--jwq-yellow) 0 15%, #252029 16% 21%, #0d0c0f 22% 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  animation: jwq-spin 3s linear infinite;
}

.jwq-vinyl i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b090b;
}

.jwq-quote-mark {
  width: clamp(116px, 22vw, 188px);
  aspect-ratio: 1;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 132, 237, 0.35);
  border-radius: 34%;
  color: #d6c5ff;
  background:
    radial-gradient(circle at 35% 28%, rgba(230, 209, 91, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(139, 99, 222, 0.2), rgba(255, 255, 255, 0.025));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(88px, 16vw, 145px);
  font-weight: 800;
  line-height: 0.65;
}

.jwq-loader {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.jwq-loader i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jwq-yellow);
  animation: jwq-loader 1.1s ease-in-out infinite;
}

.jwq-loader i:nth-child(2) {
  animation-delay: 120ms;
}

.jwq-loader i:nth-child(3) {
  animation-delay: 240ms;
}

.jwq-loader--small {
  height: 18px;
}

.jwq-loader--small i {
  width: 5px;
  height: 5px;
}

.jwq-timer-ring {
  --jwq-progress: 1;
  width: clamp(124px, 24vh, 190px);
  width: clamp(124px, 24dvh, 190px);
  aspect-ratio: 1;
  margin: clamp(5px, 1.5vh, 12px) 0 clamp(12px, 2.4vh, 24px);
  margin: clamp(5px, 1.5dvh, 12px) 0 clamp(12px, 2.4dvh, 24px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111014 61%, transparent 62%),
    conic-gradient(var(--jwq-yellow) calc(var(--jwq-progress) * 1turn), rgba(255, 255, 255, 0.08) 0);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.28);
}

.jwq-timer-ring strong {
  font-size: clamp(50px, 9vh, 82px);
  font-size: clamp(50px, 9dvh, 82px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.jwq-countdown h1 {
  margin-bottom: clamp(6px, 1.4vh, 12px);
  margin-bottom: clamp(6px, 1.4dvh, 12px);
  font-size: clamp(30px, 5vh, 50px);
  font-size: clamp(30px, 5dvh, 50px);
}

.jwq-round {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  display: grid;
  align-content: center;
  gap: clamp(8px, 1.6vh, 16px);
  gap: clamp(8px, 1.6dvh, 16px);
  padding-block: 2px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.28) transparent;
  overscroll-behavior: contain;
}

.jwq-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jwq-round-head h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4.2vh, 44px);
  font-size: clamp(28px, 4.2dvh, 44px);
}

.jwq-timer-ring--small {
  width: clamp(66px, 10vh, 88px);
  width: clamp(66px, 10dvh, 88px);
  margin: 0;
  flex: none;
}

.jwq-timer-ring--small strong {
  font-size: clamp(27px, 4.4vh, 36px);
  font-size: clamp(27px, 4.4dvh, 36px);
}

.jwq-audio-stage {
  height: clamp(90px, 15vh, 140px);
  height: clamp(90px, 15dvh, 140px);
  min-height: clamp(90px, 15vh, 140px);
  min-height: clamp(90px, 15dvh, 140px);
  padding: clamp(12px, 2vh, 20px);
  padding: clamp(12px, 2dvh, 20px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 209, 91, 0.18);
  border-radius: var(--jwq-radius);
  background:
    radial-gradient(circle, rgba(230, 209, 91, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.025);
}

.jwq-lyric-stage {
  position: relative;
  height: clamp(138px, 24vh, 230px);
  height: clamp(138px, 24dvh, 230px);
  min-height: clamp(138px, 24vh, 230px);
  min-height: clamp(138px, 24dvh, 230px);
  padding: clamp(16px, 3vh, 34px);
  padding: clamp(16px, 3dvh, 34px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(165, 132, 237, 0.34);
  border-radius: var(--jwq-radius);
  background:
    radial-gradient(circle at 15% 20%, rgba(230, 209, 91, 0.1), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(139, 99, 222, 0.16), transparent 43%),
    rgba(255, 255, 255, 0.026);
  text-align: center;
}

.jwq-lyric-stage__mark {
  position: absolute;
  top: -18px;
  left: clamp(16px, 4vw, 42px);
  color: rgba(230, 209, 91, 0.11);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(130px, 24vw, 230px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.jwq-lyric-stage blockquote {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 100%;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.28) transparent;
}

.jwq-lyric-stage blockquote p {
  margin: 0;
  color: var(--jwq-text);
  font-size: clamp(21px, 4vh, 40px);
  font-size: clamp(21px, 4dvh, 40px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.jwq-lyric-stage > small {
  position: relative;
  z-index: 1;
  color: #c9b7f4;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.04em;
}

.jwq-audio-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.jwq-wave {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.jwq-wave i {
  width: 7px;
  height: 25%;
  border-radius: 999px;
  background: linear-gradient(to top, #927f25, var(--jwq-yellow));
  box-shadow: 0 0 14px rgba(230, 209, 91, 0.14);
  animation: jwq-wave 0.9s ease-in-out infinite alternate;
}

.jwq-wave i:nth-child(2),
.jwq-wave i:nth-child(6) {
  animation-delay: -0.15s;
}

.jwq-wave i:nth-child(3),
.jwq-wave i:nth-child(5) {
  animation-delay: -0.3s;
}

.jwq-wave i:nth-child(4) {
  animation-delay: -0.45s;
}

.jwq-audio-warning {
  color: var(--jwq-red);
  font-size: 13px;
  font-weight: 700;
}

.jwq-audio-finished {
  color: var(--jwq-yellow);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.jwq-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vh, 12px);
  gap: clamp(8px, 1.3dvh, 12px);
}

.jwq-answer {
  height: clamp(54px, 7.5vh, 72px);
  height: clamp(54px, 7.5dvh, 72px);
  min-height: clamp(54px, 7.5vh, 72px);
  min-height: clamp(54px, 7.5dvh, 72px);
  padding: clamp(9px, 1.5vh, 13px) 15px;
  padding: clamp(9px, 1.5dvh, 13px) 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--jwq-border);
  border-radius: 17px;
  color: var(--jwq-text);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.jwq-answer:hover:not(:disabled) {
  border-color: rgba(230, 209, 91, 0.52);
  background: rgba(230, 209, 91, 0.075);
  transform: translateY(-1px);
}

.jwq-answer-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: var(--jwq-muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 850;
}

.jwq-option-copy {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 2px;
}

.jwq-option-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jwq-answer .jwq-option-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jwq-answer.has-alias .jwq-option-copy strong {
  -webkit-line-clamp: 1;
}

.jwq-track-alias {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #96919e;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-answer.is-selected {
  border-color: var(--jwq-yellow);
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.11);
}

.jwq-answer.is-selected > .jwq-answer-index {
  border-color: rgba(230, 209, 91, 0.45);
  color: #19150a;
  background: var(--jwq-yellow);
}

.jwq-answer.is-selected .jwq-track-alias {
  color: #cfc486;
}

.jwq-answer:disabled:not(.is-selected) {
  cursor: default;
  opacity: 0.48;
}

.jwq-answer-status {
  height: 22px;
  min-height: 22px;
  overflow: hidden;
  color: var(--jwq-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jwq-answer-status.is-empty {
  visibility: hidden;
}

.jwq-answer-status.is-ok {
  color: var(--jwq-green);
}

.jwq-key-hint {
  margin: -6px 0 0 !important;
  font-size: 11px;
  text-align: center;
}

.jwq-results {
  display: grid;
  justify-items: center;
}

.jwq-results h1 {
  margin-bottom: 8px;
  text-align: center;
}

.jwq-result-prompt {
  position: relative;
  width: min(760px, 100%);
  margin: 5px 0 18px;
  padding: 20px clamp(20px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(165, 132, 237, 0.25);
  border-radius: 18px;
  background: rgba(132, 94, 215, 0.07);
  text-align: center;
}

.jwq-result-prompt > span {
  position: absolute;
  top: -24px;
  left: 12px;
  color: rgba(230, 209, 91, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  line-height: 1;
}

.jwq-result-prompt p {
  position: relative;
  margin: 0;
  color: var(--jwq-text);
  font-size: clamp(17px, 2.6vw, 23px);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.jwq-correct-name {
  margin-bottom: 28px !important;
  color: var(--jwq-yellow) !important;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 850;
  text-align: center;
}

.jwq-correct-name > span {
  margin-bottom: 4px;
  display: block;
  color: var(--jwq-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jwq-correct-name > strong {
  display: block;
  overflow-wrap: anywhere;
}

.jwq-correct-name > .jwq-track-alias {
  max-width: min(680px, 90vw);
  margin: 5px auto 0;
  color: var(--jwq-muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.jwq-result-options {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.jwq-result-option {
  min-height: 58px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--jwq-border);
  border-radius: 14px;
  color: var(--jwq-muted);
  background: rgba(255, 255, 255, 0.025);
}

.jwq-result-option .jwq-option-copy strong {
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.jwq-result-option .jwq-track-alias {
  font-size: 11px;
}

.jwq-result-option b {
  color: var(--jwq-green);
}

.jwq-result-option.is-correct {
  border-color: rgba(116, 214, 155, 0.55);
  color: #d7f3e2;
  background: rgba(116, 214, 155, 0.09);
}

.jwq-result-option.is-wrong {
  border-color: rgba(239, 127, 127, 0.42);
  color: #efb2b2;
  background: rgba(239, 127, 127, 0.07);
}

.jwq-scoreboard {
  width: min(760px, 100%);
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--jwq-border);
  border-radius: var(--jwq-radius);
  background: rgba(255, 255, 255, 0.025);
}

.jwq-scoreboard h2 {
  margin-bottom: 13px;
}

.jwq-scoreboard ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.jwq-scoreboard li {
  min-height: 48px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.jwq-score-rank {
  color: var(--jwq-muted);
  font-size: 11px;
}

.jwq-score-player {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.jwq-score-player > strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-score-player > small,
.jwq-score-value > small {
  color: var(--jwq-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}

.jwq-score-values {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.jwq-score-value {
  min-width: 48px;
  display: grid;
  justify-items: end;
  gap: 1px;
}

.jwq-score-value > b {
  color: var(--jwq-yellow);
  font-size: 14px;
}

.jwq-score-value--round > b {
  color: var(--jwq-green);
}

.jwq-next-round {
  margin: 18px 0 0 !important;
  font-size: 12px;
}

.jwq-pause-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 209, 91, 0.3);
  border-radius: 50%;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.07);
  font-size: 38px;
  font-weight: 900;
}

.jwq-pause-time {
  margin-top: 12px;
  color: var(--jwq-yellow);
  font-size: 24px;
}

.jwq-game-over {
  min-height: calc(100dvh - 180px);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.jwq-game-over h1 {
  margin-bottom: 26px;
}

.jwq-game-over > .jwq-notice {
  margin-top: -12px;
  margin-bottom: 18px;
}

.jwq-final-list {
  width: min(720px, 100%);
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--jwq-border);
  border-radius: var(--jwq-radius);
  background: rgba(255, 255, 255, 0.025);
  list-style: none;
}

.jwq-final-player {
  min-height: 68px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.jwq-final-player:first-child {
  border: 1px solid rgba(230, 209, 91, 0.25);
  background: rgba(230, 209, 91, 0.075);
}

.jwq-final-rank {
  font-size: 25px;
  text-align: center;
}

.jwq-final-player > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.jwq-final-player strong,
.jwq-final-player small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jwq-final-player small {
  margin-top: 3px;
  color: var(--jwq-muted);
  font-size: 11px;
}

.jwq-final-player > b {
  color: var(--jwq-yellow);
  font-size: 13px;
}

.jwq-final-player > .jwq-final-practice {
  padding: 5px 8px;
  border: 1px solid rgba(116, 214, 155, 0.28);
  border-radius: 999px;
  color: var(--jwq-green);
  background: rgba(116, 214, 155, 0.07);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.jwq-final-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.jwq-inline-connection {
  min-height: 58px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--jwq-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.jwq-inline-connection p {
  margin: 0;
  font-size: 13px;
}

.jwq-inline-connection button,
.jwq-connection-overlay button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(230, 209, 91, 0.4);
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.07);
}

.jwq-connection-overlay {
  position: absolute;
  inset: 74px 0 0;
  z-index: 5;
  padding: 22px;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 10, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jwq-connection-overlay > div {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--jwq-border);
  border-radius: var(--jwq-radius);
  background: #151318;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.jwq-connection-overlay h2 {
  margin: 12px 0 8px;
}

.jwq-connection-overlay p {
  margin-bottom: 18px;
  font-size: 13px;
}

.jwq-help-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(5, 4, 7, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.jwq-help-overlay.hidden {
  display: none;
}

.jwq-help-dialog {
  width: min(780px, 100%);
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 4vw, 36px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(230, 209, 91, 0.26);
  border-radius: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(circle at 100% 0, rgba(230, 209, 91, 0.11), transparent 42%),
    #111015;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.68);
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 209, 91, 0.34) transparent;
}

.jwq-help-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.jwq-help-heading h2 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(27px, 5vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.jwq-help-lead {
  max-width: 620px;
  margin: 18px 0 22px;
  color: var(--jwq-muted);
  font-size: 15px;
  line-height: 1.55;
}

.jwq-help-modes {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jwq-help-modes article {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(230, 209, 91, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(230, 209, 91, 0.065), rgba(255, 255, 255, 0.018));
}

.jwq-help-modes article + article {
  border-color: rgba(165, 132, 237, 0.28);
  background:
    linear-gradient(145deg, rgba(132, 94, 215, 0.1), rgba(255, 255, 255, 0.018));
}

.jwq-help-modes strong {
  color: var(--jwq-text);
  font-size: 14px;
}

.jwq-help-modes span {
  color: var(--jwq-muted);
  font-size: 12px;
  line-height: 1.48;
}

.jwq-help-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  counter-reset: jwq-help-step;
}

.jwq-help-steps li {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--jwq-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
  counter-increment: jwq-help-step;
}

.jwq-help-steps strong {
  color: var(--jwq-text);
  font-size: 13px;
}

.jwq-help-steps strong::before {
  content: "0" counter(jwq-help-step) " · ";
  color: var(--jwq-yellow);
}

.jwq-help-steps span,
.jwq-help-notes span {
  color: var(--jwq-muted);
  font-size: 12px;
  line-height: 1.48;
}

.jwq-help-notes {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jwq-help-notes article {
  min-width: 0;
  padding: 13px;
  display: grid;
  gap: 5px;
  border-radius: 14px;
  background: rgba(230, 209, 91, 0.055);
}

.jwq-help-notes strong {
  color: var(--jwq-yellow);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jwq-offline-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 209, 91, 0.3);
  border-radius: 50%;
  color: var(--jwq-yellow);
  background: rgba(230, 209, 91, 0.07);
  font-size: 27px;
  font-weight: 800;
}

@keyframes jwq-spin {
  to { transform: rotate(1turn); }
}

@keyframes jwq-loader {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  35% { transform: translateY(-7px); opacity: 1; }
}

@keyframes jwq-wave {
  from { height: 22%; }
  to { height: 100%; }
}

@keyframes jwq-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
  .jwq-home-grid,
  .jwq-lobby-grid {
    grid-template-columns: 1fr;
  }

  .jwq-training-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .jwq-training-visual {
    width: 72px;
    height: 72px;
    border-radius: 21px;
  }

  .jwq-training-visual svg {
    width: 48px;
    height: 48px;
  }

  .jwq-training-form {
    grid-column: 1 / -1;
  }

  .jwq-lobby-players,
  .jwq-lobby-chat {
    height: auto;
  }

  .jwq-lobby-players .jwq-player-list {
    max-height: 278px;
  }

  .jwq-lobby-chat {
    min-height: 360px;
    grid-template-rows: auto minmax(200px, 1fr) auto;
  }

  .jwq-lobby-chat-messages {
    min-height: 200px;
    max-height: 330px;
  }

  .jwq-lobby-top {
    align-items: stretch;
    flex-direction: column;
  }

  .jwq-lobby-meta {
    width: 100%;
  }

  .jwq-room-code {
    width: 100%;
    min-width: 0;
  }

  .jwq-center-state,
  .jwq-game-over {
    min-height: calc(100dvh - 150px);
  }
}

@media (max-width: 620px) {
  .jwq-lobby-grid--training .jwq-player-list {
    grid-template-columns: 1fr;
  }

  .jwq-header {
    min-height: 64px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      8px
      max(12px, env(safe-area-inset-left));
  }

  .jwq-brand-mark {
    width: 40px;
    height: 40px;
  }

  .jwq-brand small {
    display: none;
  }

  .jwq-help-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }

  .jwq-help-button > b {
    display: none;
  }

  .jwq-connection {
    width: 10px;
    min-height: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: transparent;
    background: transparent;
  }

  .jwq-connection i {
    width: 9px;
    height: 9px;
    color: var(--jwq-muted);
  }

  .jwq-connection--online i { color: var(--jwq-green); }
  .jwq-connection--connecting i,
  .jwq-connection--authenticating i,
  .jwq-connection--reconnecting i { color: var(--jwq-yellow); }
  .jwq-connection--offline i,
  .jwq-connection--auth-required i { color: var(--jwq-red); }

  .jwq-main {
    padding:
      22px
      max(14px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .jwq-main--gameplay {
    padding:
      9px
      max(10px, env(safe-area-inset-right))
      max(9px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .jwq-main h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .jwq-card {
    padding: 20px 17px;
    border-radius: 18px;
  }

  .jwq-training-card {
    padding: 20px 17px;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    border-radius: 18px;
  }

  .jwq-training-visual {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .jwq-training-visual svg {
    width: 38px;
    height: 38px;
  }

  .jwq-training-copy h2 {
    font-size: 23px;
  }

  .jwq-training-copy > p:not(.jwq-eyebrow),
  .jwq-training-facts {
    grid-column: 1 / -1;
  }

  .jwq-training-difficulty > div {
    grid-template-columns: 1fr;
  }

  .jwq-training-difficulty-choice > span {
    min-height: 50px;
    padding: 8px 11px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .jwq-mode-options {
    grid-template-columns: 1fr;
  }

  .jwq-mode-choice__surface {
    min-height: 88px;
    padding: 13px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .jwq-mode-choice__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .jwq-mode-choice__selected {
    min-width: 16px;
    padding: 4px 7px;
  }

  .jwq-mode-selector--compact .jwq-mode-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jwq-mode-selector--compact .jwq-mode-choice__surface {
    min-height: 74px;
  }

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

  .jwq-lobby-settings-card .jwq-settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jwq-setting:nth-child(3) {
    grid-column: 1 / -1;
  }

  .jwq-categories legend span {
    margin: 4px 0 0;
    display: block;
  }

  .jwq-category-group summary {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .jwq-category-group summary > [data-jwq-category-root-choice],
  .jwq-category-group summary > button {
    width: 100%;
    max-width: none;
  }

  .jwq-category-group summary > button {
    justify-content: space-between;
  }

  .jwq-category-grid,
  .jwq-help-modes,
  .jwq-help-steps,
  .jwq-help-notes {
    grid-template-columns: 1fr;
  }

  .jwq-help-overlay {
    place-items: stretch;
    padding: 10px;
  }

  .jwq-help-dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .jwq-lobby-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .jwq-lobby-actions .jwq-primary-button,
  .jwq-lobby-actions .jwq-ghost-button {
    width: 100%;
  }

  .jwq-lobby-actions .jwq-sound-button {
    width: 100%;
  }

  .jwq-lobby-chat-form {
    grid-template-columns: 1fr;
  }

  .jwq-lobby-chat-form .jwq-primary-button {
    width: 100%;
  }

  .jwq-lobby-chat {
    min-height: 360px;
    grid-template-rows: auto minmax(200px, 1fr) auto;
  }

  .jwq-lobby-chat-messages {
    min-height: 200px;
    max-height: 300px;
  }

  .jwq-wait-label {
    justify-content: center;
  }

  .jwq-round {
    gap: 9px;
  }

  .jwq-lyric-stage {
    height: clamp(128px, 22vh, 170px);
    height: clamp(128px, 22dvh, 170px);
    min-height: clamp(128px, 22vh, 170px);
    min-height: clamp(128px, 22dvh, 170px);
    padding: clamp(14px, 2.2vh, 20px) 16px;
    padding: clamp(14px, 2.2dvh, 20px) 16px;
    border-radius: 18px;
  }

  .jwq-lyric-stage blockquote p {
    font-size: clamp(19px, 5.8vw, 29px);
    line-height: 1.18;
  }

  .jwq-result-prompt {
    padding: 16px;
  }

  .jwq-round-head {
    gap: 12px;
  }

  .jwq-round-head h1 {
    font-size: clamp(23px, 7vw, 29px);
  }

  .jwq-timer-ring--small {
    width: clamp(62px, 9vh, 72px);
    width: clamp(62px, 9dvh, 72px);
  }

  .jwq-timer-ring--small strong {
    font-size: 28px;
  }

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

  .jwq-result-options {
    grid-template-columns: 1fr;
  }

  .jwq-answer {
    height: clamp(54px, 7.5vh, 62px);
    height: clamp(54px, 7.5dvh, 62px);
    min-height: clamp(54px, 7.5vh, 62px);
    min-height: clamp(54px, 7.5dvh, 62px);
    padding: 8px 10px;
    gap: 8px;
  }

  .jwq-answer > .jwq-answer-index {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .jwq-answer .jwq-option-copy strong {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .jwq-key-hint {
    display: none;
  }

  .jwq-scoreboard {
    padding: 13px;
  }

  .jwq-scoreboard li {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .jwq-score-values {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .jwq-score-value {
    min-width: 54px;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
  }

  .jwq-final-actions {
    width: 100%;
    flex-direction: column;
  }

  .jwq-final-actions button {
    width: 100%;
  }

  .jwq-inline-connection {
    flex-wrap: wrap;
  }

  .jwq-connection-overlay {
    inset: 64px 0 0;
  }
}

@media (max-width: 390px) {
  .jwq-brand > span:last-child {
    max-width: 145px;
  }

  .jwq-settings {
    grid-template-columns: 1fr;
  }

  .jwq-lobby-settings-card .jwq-settings {
    grid-template-columns: 1fr;
  }

  .jwq-mode-selector--compact .jwq-mode-options {
    grid-template-columns: 1fr;
  }

  .jwq-setting:nth-child(3) {
    grid-column: auto;
  }

  .jwq-room-code > strong {
    font-size: 30px;
  }
}

@media (min-width: 821px) and (min-height: 761px) {
  .jwq-answer {
    height: clamp(72px, 8.8dvh, 88px);
    min-height: clamp(72px, 8.8dvh, 88px);
    padding: 13px 18px;
    gap: 15px;
    border-radius: 19px;
  }

  .jwq-answer > .jwq-answer-index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .jwq-answer .jwq-option-copy strong {
    font-size: clamp(16px, 1.2vw, 19px);
  }

  .jwq-answer .jwq-track-alias {
    font-size: 12px;
  }

  .jwq-result-options {
    gap: 12px;
  }

  .jwq-result-option {
    min-height: 76px;
    padding: 12px 16px;
    gap: 13px;
    border-radius: 17px;
  }

  .jwq-result-option > .jwq-answer-index {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .jwq-result-option .jwq-option-copy strong {
    font-size: 15px;
  }

  .jwq-result-option .jwq-track-alias {
    font-size: 12px;
  }
}

@media (max-height: 760px) {
  .jwq-main--gameplay {
    padding:
      8px
      max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .jwq-round {
    gap: 7px;
  }

  .jwq-round-label {
    margin-bottom: 5px !important;
  }

  .jwq-round-head {
    gap: 12px;
  }

  .jwq-round-head .jwq-mode-badge {
    min-height: 24px;
    margin-bottom: 5px;
    padding-block: 3px;
  }

  .jwq-round-head h1 {
    font-size: clamp(24px, 4.4vh, 34px);
    font-size: clamp(24px, 4.4dvh, 34px);
  }

  .jwq-timer-ring--small {
    width: clamp(60px, 9.5vh, 72px);
    width: clamp(60px, 9.5dvh, 72px);
  }

  .jwq-audio-stage {
    height: clamp(74px, 13vh, 104px);
    height: clamp(74px, 13dvh, 104px);
    min-height: clamp(74px, 13vh, 104px);
    min-height: clamp(74px, 13dvh, 104px);
    padding: 10px;
  }

  .jwq-wave {
    height: 52px;
  }

  .jwq-lyric-stage {
    height: clamp(108px, 21vh, 154px);
    height: clamp(108px, 21dvh, 154px);
    min-height: clamp(108px, 21vh, 154px);
    min-height: clamp(108px, 21dvh, 154px);
    padding: 12px 16px;
    gap: 8px;
  }

  .jwq-lyric-stage blockquote p {
    font-size: clamp(18px, 3.8vh, 28px);
    font-size: clamp(18px, 3.8dvh, 28px);
  }

  .jwq-answer {
    height: clamp(50px, 7.4vh, 58px);
    height: clamp(50px, 7.4dvh, 58px);
    min-height: clamp(50px, 7.4vh, 58px);
    min-height: clamp(50px, 7.4dvh, 58px);
    padding-block: 7px;
  }

  .jwq-key-hint {
    display: none;
  }

  .jwq-countdown .jwq-timer-ring {
    width: clamp(108px, 21vh, 145px);
    width: clamp(108px, 21dvh, 145px);
    margin-block: 4px 10px;
  }

  .jwq-countdown h1 {
    font-size: clamp(28px, 5.4vh, 40px);
    font-size: clamp(28px, 5.4dvh, 40px);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .jwq-header {
    min-height: 52px;
    padding:
      max(4px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      4px
      max(10px, env(safe-area-inset-left));
  }

  .jwq-brand-mark {
    width: 40px;
    height: 40px;
  }

  .jwq-brand small,
  .jwq-help-button > b {
    display: none;
  }

  .jwq-main--gameplay {
    padding:
      5px
      max(10px, env(safe-area-inset-right))
      max(5px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .jwq-round {
    gap: 6px;
  }

  .jwq-round-head h1 {
    font-size: 22px;
  }

  .jwq-timer-ring--small {
    width: 56px;
  }

  .jwq-timer-ring--small strong {
    font-size: 25px;
  }

  .jwq-audio-stage {
    height: 68px;
    min-height: 68px;
  }

  .jwq-lyric-stage {
    height: 82px;
    min-height: 82px;
    padding: 9px 14px;
  }

  .jwq-lyric-stage blockquote p {
    font-size: clamp(17px, 4.8vh, 23px);
    font-size: clamp(17px, 4.8dvh, 23px);
  }

  .jwq-answer {
    height: 46px;
    min-height: 46px;
  }

  .jwq-countdown .jwq-timer-ring {
    width: 92px;
  }
}

@media (min-width: 821px) and (max-height: 560px) {
  .jwq-lobby-grid {
    --jwq-lobby-row-height: clamp(300px, 70dvh, 360px);
  }
}

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