/* =========================================================
   QuizArena - design system (on top of Bootstrap 5.3)
   Flat surfaces, one brand color, neutral backgrounds.
   Sections:
     1. Tokens & Bootstrap overrides
     2. Brand, buttons, forms, badges
     3. Shared game components (choices, timer, states, leaderboard, podium)
     4. Public pages (landing, auth, join)
     5. Player screen (dark game surface)
     6. Panel layout & components
     7. Host game screen
   ========================================================= */

/* ---------- 1. Tokens & Bootstrap overrides ---------- */

:root {
  --qa-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --qa-primary: #3346d3;
  --qa-primary-600: #2a3ab5;
  --qa-primary-700: #222f92;
  --qa-primary-100: #e0e4fa;
  --qa-primary-50: #f0f2fd;
  --qa-accent: #f0b429;

  --qa-bg: #f6f6f3;
  --qa-surface: #ffffff;
  --qa-surface-2: #f1f1ed;
  --qa-border: #e5e5e0;
  --qa-border-strong: #d4d4ce;
  --qa-text: #18181b;
  --qa-muted: #6b6b73;
  --qa-dark: #18181b;

  --qa-game-bg: #14161f;
  --qa-game-surface: #1d202c;
  --qa-game-surface-2: #262a38;
  --qa-game-border: #2e3242;
  --qa-game-muted: #9a9fb2;

  --qa-success: #15803d;
  --qa-danger: #c92a2a;
  --qa-warning: #b45309;
  --qa-info: #0369a1;

  --qa-choice-a: #3b5bdb;
  --qa-choice-b: #0c8f7f;
  --qa-choice-c: #d9731f;
  --qa-choice-d: #c8355f;

  --qa-radius: 12px;
  --qa-shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --qa-shadow: 0 4px 16px rgba(24, 24, 27, 0.06);
  --qa-shadow-lg: 0 12px 32px rgba(24, 24, 27, 0.1);

  --bs-body-font-family: var(--qa-font);
  --bs-body-color: var(--qa-text);
  --bs-body-bg: var(--qa-bg);
  --bs-secondary-color: var(--qa-muted);
  --bs-border-color: var(--qa-border);
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 12px;
  --bs-primary: #3346d3;
  --bs-primary-rgb: 51, 70, 211;
  --bs-link-color: #3346d3;
  --bs-link-color-rgb: 51, 70, 211;
  --bs-link-hover-color: #222f92;
  --bs-link-hover-color-rgb: 34, 47, 146;
}

body {
  font-family: var(--qa-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fw-black {
  font-weight: 800 !important;
}

.text-muted,
.text-secondary {
  color: var(--qa-muted) !important;
}

.text-primary {
  color: var(--qa-primary) !important;
}

.bg-primary-subtle {
  background-color: var(--qa-primary-50) !important;
}

.min-w-0 {
  min-width: 0;
}

kbd {
  background: var(--qa-surface-2);
  color: var(--qa-text);
  border: 1px solid var(--qa-border-strong);
  font-size: 0.8em;
}

/* ---------- 2. Brand, buttons, forms, badges ---------- */

.qa-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--qa-text);
  text-decoration: none;
}

.qa-brand:hover {
  color: var(--qa-text);
}

.qa-brand img {
  width: 1.9rem;
  height: 1.9rem;
}

.qa-brand em {
  font-style: normal;
  color: var(--qa-primary);
}

.btn {
  font-weight: 600;
}

.btn-lg {
  --bs-btn-font-size: 1rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-padding-x: 1.25rem;
}

.btn-primary {
  --bs-btn-bg: var(--qa-primary);
  --bs-btn-border-color: var(--qa-primary);
  --bs-btn-hover-bg: var(--qa-primary-600);
  --bs-btn-hover-border-color: var(--qa-primary-600);
  --bs-btn-active-bg: var(--qa-primary-700);
  --bs-btn-active-border-color: var(--qa-primary-700);
  --bs-btn-disabled-bg: var(--qa-primary);
  --bs-btn-disabled-border-color: var(--qa-primary);
  --bs-btn-focus-shadow-rgb: 51, 70, 211;
}

.btn-outline-primary {
  --bs-btn-color: var(--qa-primary);
  --bs-btn-border-color: var(--qa-primary);
  --bs-btn-hover-bg: var(--qa-primary);
  --bs-btn-hover-border-color: var(--qa-primary);
  --bs-btn-active-bg: var(--qa-primary-600);
  --bs-btn-active-border-color: var(--qa-primary-600);
}

.btn-soft {
  --bs-btn-color: var(--qa-primary);
  --bs-btn-bg: var(--qa-primary-50);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--qa-primary-700);
  --bs-btn-hover-bg: var(--qa-primary-100);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--qa-primary-100);
  --bs-btn-active-color: var(--qa-primary-700);
}

.btn-light-border {
  --bs-btn-bg: var(--qa-surface);
  --bs-btn-border-color: var(--qa-border-strong);
  --bs-btn-color: var(--qa-text);
  --bs-btn-hover-bg: var(--qa-surface-2);
  --bs-btn-hover-border-color: var(--qa-border-strong);
  --bs-btn-hover-color: var(--qa-text);
  --bs-btn-active-bg: var(--qa-surface-2);
  --bs-btn-active-border-color: var(--qa-border-strong);
}

.btn-qa {
  --bs-btn-bg: var(--qa-dark);
  --bs-btn-border-color: var(--qa-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-color: #fff;
}

/* Main action on dark game screens */
.btn-accent {
  --bs-btn-bg: var(--qa-accent);
  --bs-btn-border-color: var(--qa-accent);
  --bs-btn-color: var(--qa-dark);
  --bs-btn-hover-bg: #f5c451;
  --bs-btn-hover-border-color: #f5c451;
  --bs-btn-hover-color: var(--qa-dark);
  --bs-btn-active-bg: #e0a516;
  --bs-btn-active-border-color: #e0a516;
  --bs-btn-active-color: var(--qa-dark);
  --bs-btn-font-weight: 700;
}

/* Secondary action on dark game screens */
.btn-glass {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--qa-game-border);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--qa-game-surface-2);
  --bs-btn-hover-border-color: var(--qa-game-border);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--qa-game-surface-2);
  --bs-btn-active-border-color: var(--qa-game-border);
  --bs-btn-active-color: #fff;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--qa-border-strong);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--qa-primary);
  box-shadow: 0 0 0 3px rgba(51, 70, 211, 0.15);
}

.form-check-input:checked {
  background-color: var(--qa-primary);
  border-color: var(--qa-primary);
}

.form-check-input:focus {
  border-color: var(--qa-primary);
  box-shadow: 0 0 0 3px rgba(51, 70, 211, 0.15);
}

.qa-input-lg {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
}

/* Şifre alanı: göster/gizle ikonu input'un içinde */
.qa-password {
  position: relative;
}

.qa-password .form-control {
  padding-right: 3rem;
}

.qa-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--qa-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.qa-password-toggle:hover {
  color: var(--qa-text);
  background-color: var(--qa-surface-2);
}

.qa-password-toggle:focus-visible {
  outline: 2px solid var(--qa-primary);
  outline-offset: 1px;
}

.qa-pin-input {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qa-pin-input::placeholder {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05rem;
  color: #a1a1aa;
}

.badge {
  font-weight: 600;
}

.badge-soft-primary { background: var(--qa-primary-50); color: var(--qa-primary-700); }
.badge-soft-success { background: #e7f5ec; color: #166534; }
.badge-soft-danger { background: #fdecec; color: #a61e1e; }
.badge-soft-warning { background: #fdf3e1; color: #92400e; }
.badge-soft-info { background: #e6f2fa; color: #075985; }
.badge-soft-secondary { background: var(--qa-surface-2); color: #52525b; }

.qa-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.qa-live-dot {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #e03131;
}

.qa-live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #e03131;
  animation: qa-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes qa-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Pill: light by default, dark variant inside .qa-game */
.qa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--qa-border);
  border-radius: 999px;
  background: var(--qa-surface);
  color: var(--qa-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.qa-pill-accent {
  background: var(--qa-accent) !important;
  border-color: var(--qa-accent) !important;
  color: var(--qa-dark) !important;
}

/* ---------- 3. Shared game components ---------- */

.qa-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 576px) {
  .qa-choices {
    grid-template-columns: 1fr 1fr;
  }
}

.qa-choice {
  --c: var(--qa-choice-a);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: var(--qa-radius);
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.08s ease, opacity 0.2s ease, filter 0.15s ease;
}

button.qa-choice:hover {
  filter: brightness(1.06);
}

button.qa-choice:active {
  transform: translateY(2px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.qa-choice-a { --c: var(--qa-choice-a); }
.qa-choice-b { --c: var(--qa-choice-b); }
.qa-choice-c { --c: var(--qa-choice-c); }
.qa-choice-d { --c: var(--qa-choice-d); }

.qa-choice-letter {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 800;
}

.qa-choice-mark {
  margin-left: auto;
  font-size: 1.4rem;
}

.qa-choice.is-dimmed {
  opacity: 0.3;
}

.qa-choice.is-correct {
  box-shadow: 0 0 0 3px #fff;
}

/* Small colored letter tile used in panel lists & editors */
.qa-letter {
  --c: var(--qa-choice-a);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.qa-letter-sm {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 5px;
  font-size: 0.7rem;
}

.qa-letter.qa-choice-a { --c: var(--qa-choice-a); }
.qa-letter.qa-choice-b { --c: var(--qa-choice-b); }
.qa-letter.qa-choice-c { --c: var(--qa-choice-c); }
.qa-letter.qa-choice-d { --c: var(--qa-choice-d); }

.qa-timer {
  --p: 70;
  --ring: #fff;
  --ring-bg: rgba(255, 255, 255, 0.14);
  --inner: var(--qa-game-bg);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--ring-bg) 0);
}

.qa-timer span {
  display: grid;
  place-items: center;
  width: calc(100% - 0.45rem);
  height: calc(100% - 0.45rem);
  border-radius: 50%;
  background: var(--inner);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* Single page state panels (play.html / host-game.html). JS toggles .is-active */
.qa-state {
  display: none;
}

.qa-state.is-active {
  display: flex;
}

.qa-leaderboard {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa-leaderboard li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--qa-game-border);
  border-radius: 10px;
  background: var(--qa-game-surface);
  font-weight: 600;
}

.qa-leaderboard li.is-me {
  border-color: #fff;
  background: #fff;
  color: var(--qa-text);
}

.qa-rank {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 7px;
  background: var(--qa-game-surface-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qa-leaderboard li.is-me .qa-rank {
  background: var(--qa-primary);
  color: #fff;
}

.qa-leaderboard .qa-score {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qa-delta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
}

.qa-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 520px;
}

.qa-podium-place {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 700;
}

.qa-podium-avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: #fff;
  color: var(--qa-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.qa-podium-name {
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qa-podium-points {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
}

.qa-podium-block {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.6rem;
  border-radius: 8px 8px 0 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--qa-dark);
}

.qa-podium-1 .qa-podium-block { height: 9.5rem; background: #f0b429; }
.qa-podium-2 .qa-podium-block { height: 7rem; background: #cfd3dc; }
.qa-podium-3 .qa-podium-block { height: 5rem; background: #d99a6c; }

.qa-pulse {
  animation: qa-pulse 1.6s ease-in-out infinite;
}

@keyframes qa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.qa-pop {
  animation: qa-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes qa-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.qa-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.qa-confetti span {
  position: absolute;
  top: -1rem;
  width: 0.45rem;
  height: 0.8rem;
  border-radius: 2px;
  opacity: 0.85;
  animation: qa-fall linear infinite;
}

@keyframes qa-fall {
  to { transform: translateY(110vh) rotate(540deg); }
}

/* ---------- 4. Public pages ---------- */

.qa-public {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--qa-bg);
}

.qa-card {
  background: var(--qa-surface);
  color: var(--qa-text);
  border: 1px solid var(--qa-border);
  border-radius: 16px;
  box-shadow: var(--qa-shadow);
}

.qa-public-nav {
  padding: 1rem 0;
  border-bottom: 1px solid var(--qa-border);
  background: var(--qa-surface);
}

.qa-public-nav .nav-link {
  color: var(--qa-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.qa-public-nav .nav-link:hover {
  color: var(--qa-text);
}

.qa-hero {
  padding: 5rem 0 5rem;
  background: var(--qa-surface);
  border-bottom: 1px solid var(--qa-border);
}

.qa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--qa-primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.qa-hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.qa-hero-title span {
  color: var(--qa-primary);
}

.qa-hero-lead {
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--qa-muted);
}

.qa-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: var(--qa-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.qa-hero-points i {
  color: var(--qa-success);
  margin-right: 0.3rem;
}

.qa-join-card {
  max-width: 400px;
  padding: 1.75rem;
}

.qa-section {
  padding: 5rem 0;
}

.qa-section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.qa-feature {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--qa-border);
  border-radius: 14px;
  background: var(--qa-surface);
}

.qa-feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: 1.25rem;
}

.qa-step {
  display: flex;
  gap: 1rem;
}

.qa-step-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--qa-border-strong);
  border-radius: 50%;
  background: var(--qa-surface);
  color: var(--qa-text);
  font-weight: 700;
}

.qa-cta {
  padding: 3rem 2rem;
  border-radius: 20px;
  background: var(--qa-dark);
  color: #fff;
}

.qa-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--qa-border);
  color: var(--qa-muted);
}

.qa-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

.qa-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

@media (max-width: 575.98px) {
  .qa-auth-card,
  .qa-join-card {
    padding: 1.5rem 1.25rem;
  }
}

.qa-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--qa-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.qa-divider::before,
.qa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--qa-border);
}

/* ---------- 5. Player screen (dark game surface) ---------- */

.qa-game {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--qa-game-bg);
  color: #fff;
}

.qa-game .qa-brand,
.qa-game .qa-brand:hover {
  color: #fff;
}

.qa-game .qa-brand em {
  color: #9aa8ff;
}

.qa-game .qa-pill {
  border-color: var(--qa-game-border);
  background: var(--qa-game-surface);
  color: #fff;
}

.qa-game .text-white-50 {
  color: var(--qa-game-muted) !important;
}

.qa-glass {
  border: 1px solid var(--qa-game-border);
  border-radius: var(--qa-radius);
  background: var(--qa-game-surface);
}

.qa-play {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.qa-play-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--qa-game-border);
  background: var(--qa-game-surface);
  font-weight: 600;
}

.qa-play-main > .qa-state > .qa-play-bar {
  border-top: 1px solid var(--qa-game-border);
  border-bottom: 0;
}

.qa-play-main {
  flex: 1;
  display: flex;
}

.qa-play-main > .qa-state {
  flex: 1;
  flex-direction: column;
}

.qa-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  padding: 2rem 1.25rem;
  text-align: center;
}

.qa-play-question {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
}

.qa-question-text {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.qa-question-image {
  width: 100%;
  max-height: 200px;
  border-radius: var(--qa-radius);
  object-fit: cover;
}

.qa-big-icon {
  font-size: 3.75rem;
  line-height: 1;
}

.qa-result-correct { background: #12703a; }
.qa-result-wrong { background: #a82424; }
.qa-result-neutral { background: var(--qa-game-surface); }

.qa-result-correct .qa-glass,
.qa-result-wrong .qa-glass {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
}

.qa-result-correct .qa-pill,
.qa-result-wrong .qa-pill {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.15);
}

.qa-points {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.qa-avatar-xl {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--qa-primary);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
}

/* ---------- 6. Panel layout & components ---------- */

.qa-panel {
  background: var(--qa-bg);
}

.qa-shell {
  display: flex;
  min-height: 100vh;
}

.qa-sidebar {
  --bs-offcanvas-width: 272px;
  flex-shrink: 0;
  width: 256px;
}

.qa-sidebar-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1.1rem 0.85rem;
  background: var(--qa-surface);
  border-right: 1px solid var(--qa-border);
}

@media (min-width: 992px) {
  .qa-sidebar-inner {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.qa-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 1.1rem;
}

.qa-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow-y: auto;
}

.qa-nav-label {
  margin: 1rem 0.65rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.qa-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #3f3f46;
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.qa-nav-link i {
  font-size: 1.05rem;
  color: #71717a;
}

.qa-nav-link:hover {
  background: var(--qa-surface-2);
  color: var(--qa-text);
}

.qa-nav-link.active {
  background: var(--qa-primary-50);
  color: var(--qa-primary-700);
  font-weight: 600;
}

.qa-nav-link.active i {
  color: var(--qa-primary);
}

.qa-nav-link .badge {
  margin-left: auto;
}

.qa-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
}

.qa-promo {
  padding: 0.9rem;
  border: 1px solid var(--qa-border);
  border-radius: 10px;
  background: var(--qa-surface-2);
}

.qa-live-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--qa-border);
  border-left: 3px solid #e03131;
  border-radius: 12px;
  background: var(--qa-surface);
  box-shadow: var(--qa-shadow-sm);
}

.qa-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.qa-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.6rem 1.5rem;
  background: rgba(246, 246, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--qa-border);
}

.qa-topbar .breadcrumb {
  --bs-breadcrumb-divider-color: #a1a1aa;
  --bs-breadcrumb-item-active-color: var(--qa-text);
  margin: 0;
  font-weight: 500;
  font-size: 0.875rem;
}

.qa-topbar .breadcrumb a {
  color: var(--qa-muted);
  text-decoration: none;
}

.qa-topbar .breadcrumb a:hover {
  color: var(--qa-text);
}

.qa-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #f5c2c2;
  border-radius: 999px;
  background: #fff;
  color: #a61e1e;
  font-weight: 600;
  font-size: 0.825rem;
  text-decoration: none;
}

.qa-live-pill:hover {
  background: #fdecec;
  color: #a61e1e;
}

.qa-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--qa-primary-50);
  color: var(--qa-primary-700);
  font-weight: 700;
  font-size: 0.8rem;
}

.qa-avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.7rem;
}

.qa-user-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.45rem 0.2rem 0.2rem;
  border: 1px solid var(--qa-border-strong);
  border-radius: 999px;
  background: var(--qa-surface);
  font-weight: 600;
  font-size: 0.875rem;
}

.qa-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  padding: 1.75rem 1.5rem 3rem;
}

@media (max-width: 575.98px) {
  .qa-topbar {
    padding: 0.55rem 1rem;
  }

  .qa-content {
    padding: 1.25rem 1rem 2.5rem;
  }
}

.qa-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qa-page-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.qa-page-header p {
  margin: 0.25rem 0 0;
  color: var(--qa-muted);
}

.qa-panel .card {
  --bs-card-border-color: var(--qa-border);
  --bs-card-border-radius: 12px;
  --bs-card-inner-border-radius: 11px;
  --bs-card-cap-bg: transparent;
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.25rem;
  box-shadow: var(--qa-shadow-sm);
}

.qa-panel .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.qa-panel .card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.qa-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 100%;
}

.qa-stat-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  font-size: 1.2rem;
}

.qa-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.qa-stat-label {
  color: var(--qa-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.qa-icon-primary { background: var(--qa-primary-50); color: var(--qa-primary); }
.qa-icon-success { background: #e7f5ec; color: #15803d; }
.qa-icon-warning { background: #fdf3e1; color: #b45309; }
.qa-icon-info { background: #e6f2fa; color: #0369a1; }
.qa-icon-pink { background: #fbecf0; color: #b4294f; }
.qa-icon-teal { background: #e3f4f1; color: #0c7a6c; }

.qa-table {
  --bs-table-bg: transparent;
  margin: 0;
  vertical-align: middle;
  font-size: 0.925rem;
}

.qa-table thead th {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom-width: 1px;
  background: #fafaf8;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.qa-table td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.qa-table .btn,
.qa-table .badge {
  white-space: nowrap;
}

.qa-table > :not(caption) > * > *:first-child {
  padding-left: 1.25rem;
}

.qa-table > :not(caption) > * > *:last-child {
  padding-right: 1.25rem;
}

.qa-quiz-card {
  overflow: hidden;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qa-quiz-card:hover {
  border-color: var(--qa-border-strong);
  box-shadow: var(--qa-shadow);
}

/* Quiz cover placeholder: flat tinted surface + icon (real cover images replace it) */
.qa-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  border-bottom: 1px solid var(--qa-border);
  font-size: 2.25rem;
}

.qa-cover-1 { background: #eef0fd; color: #3346d3; }
.qa-cover-2 { background: #e3f4f1; color: #0c7a6c; }
.qa-cover-3 { background: #fdf0e3; color: #c2610f; }
.qa-cover-4 { background: #eceef3; color: #3f4a63; }
.qa-cover-5 { background: #fbecf0; color: #b4294f; }
.qa-cover-6 { background: #ecf5e6; color: #3f7a1f; }

.qa-cover .badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  border: 1px solid var(--qa-border);
  font-size: 0.72rem;
}

.qa-cover-sm {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 9px;
  font-size: 1.2rem;
}

.qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  color: var(--qa-muted);
  font-size: 0.825rem;
  font-weight: 500;
}

.qa-meta i {
  margin-right: 0.25rem;
}

.pagination {
  --bs-pagination-color: var(--qa-muted);
  --bs-pagination-hover-color: var(--qa-primary);
  --bs-pagination-active-bg: var(--qa-primary);
  --bs-pagination-active-border-color: var(--qa-primary);
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(51, 70, 211, 0.15);
  font-weight: 600;
}

.qa-filter-tabs {
  --bs-nav-pills-link-active-bg: var(--qa-surface);
  --bs-nav-pills-link-active-color: var(--qa-text);
  --bs-nav-link-color: var(--qa-muted);
  --bs-nav-link-hover-color: var(--qa-text);
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 9px;
  background: var(--qa-surface-2);
}

.qa-filter-tabs .nav-link {
  padding: 0.35rem 0.8rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.875rem;
}

.qa-filter-tabs .nav-link.active {
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.08);
}

.qa-question-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--qa-border);
}

.qa-question-item:last-child {
  border-bottom: 0;
}

.qa-question-item:hover {
  background: #fcfcfa;
}

.qa-question-no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--qa-border);
  border-radius: 8px;
  background: var(--qa-surface-2);
  color: var(--qa-text);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 575.98px) {
  .qa-question-item {
    gap: 0.6rem;
    padding: 0.9rem 1rem;
  }

  .qa-question-item .qa-question-no {
    display: none;
  }

  .qa-question-item > .d-flex:last-child {
    flex-direction: column;
  }
}

.qa-order-btns {
  display: flex;
  flex-direction: column;
}

.qa-order-btns .btn {
  --bs-btn-padding-y: 0;
  --bs-btn-padding-x: 0.3rem;
  color: #a1a1aa;
}

.qa-order-btns .btn:hover {
  color: var(--qa-primary);
}

.qa-choice-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.qa-choice-preview span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem 0.15rem 0.2rem;
  border: 1px solid var(--qa-border);
  border-radius: 7px;
  background: var(--qa-surface);
  font-size: 0.8rem;
  font-weight: 500;
}

.qa-choice-preview span.is-correct {
  border-color: #b7e0c4;
  background: #e7f5ec;
  color: #166534;
  font-weight: 600;
}

.qa-choice-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--qa-border-strong);
  border-radius: 10px;
  background: var(--qa-surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qa-choice-row:focus-within {
  border-color: var(--qa-primary);
  box-shadow: 0 0 0 3px rgba(51, 70, 211, 0.12);
}

.qa-choice-row:has(.qa-correct-toggle:checked) {
  border-color: #8fd0a6;
  background: #f3faf5;
}

.qa-choice-row .form-control {
  border: 0;
  box-shadow: none;
  background: transparent;
  font-weight: 500;
}

.qa-correct-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qa-correct-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--qa-border-strong);
  border-radius: 999px;
  background: var(--qa-surface);
  color: var(--qa-muted);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.qa-correct-toggle:checked + .qa-correct-label {
  border-color: var(--qa-success);
  background: var(--qa-success);
  color: #fff;
}

.qa-option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qa-option-group .btn {
  --bs-btn-padding-x: 0.85rem;
  --bs-btn-padding-y: 0.4rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-color: var(--qa-border-strong);
  --bs-btn-hover-bg: var(--qa-surface-2);
  --bs-btn-hover-border-color: var(--qa-border-strong);
  background: var(--qa-surface);
}

.btn-check:checked + .btn {
  background: var(--qa-primary-50);
  border-color: var(--qa-primary);
  color: var(--qa-primary-700);
}

.qa-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem;
  border: 1px dashed var(--qa-border-strong);
  border-radius: 10px;
  background: #fafaf8;
  color: var(--qa-muted);
  text-align: center;
  cursor: pointer;
}

.qa-dropzone:hover {
  border-color: var(--qa-primary);
  color: var(--qa-primary);
}

.qa-dropzone i {
  font-size: 1.5rem;
}

/* Phone frame preview (landing & question editor) */
.qa-phone {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: 1.9rem;
  background: #0b0c10;
  box-shadow: var(--qa-shadow-lg);
}

.qa-phone-screen {
  overflow: hidden;
  border-radius: 1.45rem;
  background: var(--qa-game-bg);
  color: #fff;
}

.qa-phone .qa-pill {
  border-color: var(--qa-game-border);
  background: var(--qa-game-surface);
  color: #fff;
}

.qa-phone .qa-choices {
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.qa-phone .qa-choice {
  min-height: 3rem;
  padding: 0.45rem;
  gap: 0.4rem;
  font-size: 0.72rem;
  border-radius: 7px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.qa-phone .qa-choice-letter {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.qa-phone .qa-timer {
  width: 2.3rem;
  height: 2.3rem;
}

.qa-phone .qa-timer span {
  font-size: 0.8rem;
  width: calc(100% - 0.3rem);
  height: calc(100% - 0.3rem);
}

.qa-progress-thin {
  height: 0.4rem;
  border-radius: 999px;
  background: var(--qa-surface-2);
}

.qa-progress-thin .progress-bar {
  border-radius: 999px;
}

.qa-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--qa-muted);
}

.qa-checklist {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.qa-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.qa-checklist .bi-check-circle-fill { color: var(--qa-success); }
.qa-checklist .bi-x-circle-fill { color: var(--qa-danger); }

.qa-mini-podium {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.qa-mini-podium > div {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.qa-mini-podium .qa-podium-avatar {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.85rem;
  background: var(--qa-primary-50);
  color: var(--qa-primary-700);
}

.qa-mini-podium .qa-podium-block {
  font-size: 1.1rem;
  border-radius: 6px 6px 0 0;
}

.qa-mini-podium .qa-podium-1 .qa-podium-block { height: 5rem; }
.qa-mini-podium .qa-podium-2 .qa-podium-block { height: 3.75rem; }
.qa-mini-podium .qa-podium-3 .qa-podium-block { height: 2.75rem; }

.qa-rank-badge {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  background: var(--qa-surface-2);
  font-weight: 700;
  font-size: 0.8rem;
}

.qa-rank-badge.is-1 { background: #f0b429; color: var(--qa-dark); }
.qa-rank-badge.is-2 { background: #cfd3dc; color: var(--qa-dark); }
.qa-rank-badge.is-3 { background: #d99a6c; color: var(--qa-dark); }

/* ---------- 7. Host game screen ---------- */

.qa-host {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.qa-host-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--qa-game-border);
  background: var(--qa-game-surface);
}

.qa-host-main {
  flex: 1;
  display: flex;
}

.qa-host-main > .qa-state {
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 2rem 1.5rem;
}

.qa-host-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.qa-join-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3rem;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  background: #fff;
  color: var(--qa-text);
}

.qa-join-banner .qa-join-url {
  font-size: 1.3rem;
  font-weight: 700;
}

.qa-host-pin {
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--qa-text);
}

.qa-qr {
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  border: 1px solid var(--qa-border);
  border-radius: 12px;
  background: #fff;
  color: var(--qa-text);
  font-size: 6.5rem;
  line-height: 1;
}

.qa-player-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.qa-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border: 1px solid var(--qa-game-border);
  border-radius: 999px;
  background: var(--qa-game-surface);
  font-size: 1rem;
  font-weight: 600;
  animation: qa-pop 0.3s ease both;
}

.qa-player-chip button {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--qa-game-muted);
  font-size: 0.75rem;
}

.qa-player-chip button:hover {
  background: var(--qa-danger);
  color: #fff;
}

.qa-host-question {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.qa-host-media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.qa-host-image {
  width: 100%;
  max-width: 520px;
  max-height: 300px;
  border-radius: 14px;
  object-fit: cover;
}

.qa-host .qa-timer {
  width: 6.5rem;
  height: 6.5rem;
}

.qa-host .qa-timer span {
  font-size: 2.4rem;
  width: calc(100% - 0.7rem);
  height: calc(100% - 0.7rem);
}

.qa-answer-counter {
  text-align: center;
  font-weight: 600;
}

.qa-answer-counter strong {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.qa-host .qa-choices {
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.qa-host .qa-choice {
  min-height: 5.5rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

@media (max-width: 767.98px) {
  .qa-host .qa-choices {
    grid-template-columns: 1fr;
  }

  .qa-host-media {
    flex-direction: column;
  }
}

.qa-host-placeholder {
  display: grid;
  place-items: center;
  flex-grow: 1;
  height: 12rem;
  border: 1px dashed var(--qa-game-border);
  border-radius: 14px;
  color: var(--qa-game-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.qa-distribution {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  height: 200px;
}

.qa-dist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 5.5rem;
  height: 100%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qa-dist-bar {
  --c: var(--qa-choice-a);
  width: 100%;
  min-height: 0.4rem;
  border-radius: 6px 6px 0 0;
  background: var(--c);
}

.qa-dist-col.is-dimmed .qa-dist-bar {
  opacity: 0.35;
}

.qa-dist-col.qa-choice-a .qa-dist-bar { --c: var(--qa-choice-a); }
.qa-dist-col.qa-choice-b .qa-dist-bar { --c: var(--qa-choice-b); }
.qa-dist-col.qa-choice-c .qa-dist-bar { --c: var(--qa-choice-c); }
.qa-dist-col.qa-choice-d .qa-dist-bar { --c: var(--qa-choice-d); }

.qa-host .qa-leaderboard {
  max-width: 800px;
  gap: 0.6rem;
}

.qa-host .qa-leaderboard li {
  padding: 0.9rem 1.25rem;
  font-size: 1.3rem;
}

.qa-host .qa-rank {
  width: 2.5rem;
  height: 2.5rem;
}

.qa-host .qa-podium {
  max-width: 760px;
}

.qa-host .qa-podium-block {
  font-size: 3rem;
}

.qa-host .qa-podium-1 .qa-podium-block { height: 15rem; }
.qa-host .qa-podium-2 .qa-podium-block { height: 11rem; }
.qa-host .qa-podium-3 .qa-podium-block { height: 8rem; }

.qa-host .qa-podium-name {
  font-size: 1.4rem;
}

.qa-host .qa-podium-avatar {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

/* Sidebar'daki çıkış butonu link gibi görünsün */
.qa-nav-link-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  font: inherit;
}

/* ---------- 8. Live game runtime (JS ile değişen durumlar) ---------- */

.qa-delta.is-down {
  color: #fca5a5;
}

.qa-qr canvas,
.qa-qr img {
  width: 7.25rem;
  height: 7.25rem;
}

button.qa-choice:disabled {
  cursor: default;
  filter: saturate(0.6);
}

.qa-leaderboard li.is-separated {
  margin-top: 0.6rem;
}

/* Sarmalayıcı form/span'i düzenden çıkarır; buton doğrudan flex öğesi olur (_StartGameButton) */
.d-contents {
  display: contents;
}
