@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

:root {
  --bg: #030611;
  --card: rgba(6, 14, 32, 0.82);
  --card-2: rgba(5, 18, 43, 0.92);
  --accent: #13d0ff;
  --accent-2: #8c6ff7;
  --text: #d3deff;
  --muted: #93a9da;
  --heading: #f6f8ff;
  --border: rgba(19, 208, 255, 0.32);
  --shadow: 0 28px 80px rgba(2, 6, 17, 0.55);
  --shadow-strong: 0 45px 90px rgba(0, 0, 0, 0.55);
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --gradient-primary: linear-gradient(120deg, #13d0ff 0%, #8c6ff7 55%, #ff7ad9 100%);
  --gradient-page: radial-gradient(circle at 10% 15%, rgba(19, 208, 255, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 90% 5%, rgba(140, 111, 247, 0.25) 0%, transparent 40%),
    linear-gradient(135deg, #02050b 0%, #050f1f 50%, #0b1f33 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Roboto", "Open Sans", "Segoe UI", sans-serif;
  background: var(--gradient-page);
  color: var(--text);
  min-height: 100vh;
  padding: 32px;
  position: relative;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
  z-index: 100;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

body.theme-light {
  --bg: #f4f6fb;
  --card: #ffffff;
  --card-2: #f7f9ff;
  --accent: #2563eb;
  --accent-2: #f97316;
  --text: #0f172a;
  --muted: #64748b;
  --heading: #0f172a;
  --border: rgba(15, 23, 42, 0.12);
  --gradient-page: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 40%), #eef2ff;
}

body.theme-dark {
  --bg: #050505;
  --card: #0d0d12;
  --card-2: #0f172a;
  --accent: #22c55e;
  --accent-2: #f97316;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --border: rgba(226, 232, 240, 0.15);
  --gradient-page: linear-gradient(135deg, #060608 0%, #0f172a 60%, #111827 100%);
}

.landing-body::before,
.landing-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.landing-body::before {
  background: linear-gradient(180deg, rgba(4, 8, 22, 0.7), rgba(5, 12, 24, 0.5)),
    url("assets/images/assets/logo_black.png") center/600px auto no-repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.landing-body::after {
  background: radial-gradient(circle at 70% 20%, rgba(140, 111, 247, 0.25) 0%, transparent 45%),
    url("assets/images/assets/mascotte_contact.png") right 8% top 6% / 420px auto no-repeat;
  opacity: 0.08;
  filter: blur(0.5px);
}

.top-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 8px;
  border-radius: 14px;
  background: rgba(6, 10, 20, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-btn {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.nav-btn.active {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9f5e 100%);
  color: #0f0f10;
  border: none;
}

.lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.lang-switch label {
  color: var(--muted);
}

.lang-switch select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 120px;
}

@media (max-width: 720px) {
  .lang-switch {
    width: 100%;
    justify-content: flex-end;
  }
}

.landing-body {
  display: block;
  padding: clamp(18px, 4vw, 36px);
}

.landing {
  text-align: center;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.landing-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.landing-btn {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
}

.landing-btn.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9f5e 100%);
  color: #0f0f10;
  border: none;
}

.pack-grid .pack-tile.custom {
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.pack-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.pack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.pack-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.file-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
}

.pack-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.pack-modal[hidden] {
  display: none;
}

.pack-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 17, 0.72);
  backdrop-filter: blur(6px);
}

.pack-modal__card {
  position: relative;
  z-index: 1;
  width: min(720px, 92vw);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 12px;
}

.pack-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pack-modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pack-modal__preview {
  display: grid;
  gap: 10px;
}

.pack-preview-row {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pack-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pack-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 2px;
}

.pack-pages {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pack-pages .page-btn {
  min-width: 34px;
}

.pack-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.pack-pagination .ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.brand .spark {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 8px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39, 208, 174, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(39, 208, 174, 0.2);
  font-size: 13px;
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.pack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 12px 0;
  min-height: 120px;
}

.pack-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.1s ease, border 0.1s ease, box-shadow 0.2s ease;
}

.pack-tile h3 {
  margin: 0;
}

.pack-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pack-cover {
  position: relative;
  min-height: 140px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pack-cover--placeholder {
  background: linear-gradient(135deg, rgba(19, 208, 255, 0.2), rgba(140, 111, 247, 0.2));
}

.pack-cover__badges {
  position: absolute;
  inset: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #e6f0ff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.pack-pill.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #0f111a;
  border-color: rgba(255, 255, 255, 0.3);
}

.pack-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.pack-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.pack-meta--inline span::before {
  content: "•";
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.pack-meta--inline span:first-child::before {
  content: none;
}

.pack-tile button {
  width: 100%;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.live-meta .pill,
.live-meta .pill-toggle,
.live-meta button {
  white-space: nowrap;
}

.live-track {
  flex: 1;
  display: grid;
  gap: 6px;
}

.live-track__label {
  font-size: 0.9rem;
  color: var(--muted);
}

.live-track__bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.live-track__bar span {
  display: block;
  height: 100%;
  width: 8%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.live-timeline {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.live-dot.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(19, 208, 255, 0.15);
}

.live-contrast-toggle {
  margin-left: auto;
}

.live-contrast-toggle input {
  width: auto;
}

body.live-contrast {
  background: #050505;
  color: #f5f7ff;
}

body.live-contrast .card {
  background: #0d0d12;
  border-color: rgba(255, 255, 255, 0.35);
}

body.live-contrast .choice {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.live-page {
  background: radial-gradient(circle at 20% 20%, rgba(91, 214, 255, 0.12), transparent 30%), radial-gradient(circle at 80% 0%, rgba(255, 92, 146, 0.18), transparent 32%), #0b1021;
  color: #f8fbff;
  padding: 16px;
  min-height: 100vh;
  overflow: auto;
}

.live-page .card {
  background: rgba(14, 18, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 38px rgba(5, 7, 18, 0.45);
  padding: 14px;
}

.live-page.live-compact {
  padding: 12px;
}

.live-page.live-compact .hero {
  display: none;
}

.live-page.live-compact .layout {
  grid-template-columns: 1fr;
  gap: 12px;
}

.live-page.live-compact .card {
  padding: 12px;
}

.live-page.live-compact .audio-settings {
  display: none;
}

.live-page.live-compact .team-scoreboard {
  display: none;
}

.live-page .question-block {
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}

.live-page .choices .choice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.live-page .choice label {
  color: rgba(255, 255, 255, 0.85);
}

.live-page .choice .muted {
  color: rgba(255, 255, 255, 0.65);
}

.live-page .live-timeline .live-dot {
  box-shadow: 0 0 0 6px rgba(19, 208, 255, 0.12);
}

.live-page .live-timer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 120px;
}

.live-timer__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.7);
}

.live-timer__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.live-timer__bar span {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, #22d3ee, #8b5cf6);
  transition: width 0.2s linear;
}

.live-timer__time {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f8fbff;
  font-size: 18px;
}

.live-timer__time.warning {
  color: #f97316;
}

.live-timer__bar span.warning {
  background: linear-gradient(120deg, #f97316, #ef4444);
}

.live-choice.correct {
  border-color: rgba(39, 208, 174, 0.8);
  box-shadow: 0 0 0 1px rgba(39, 208, 174, 0.4), 0 8px 18px rgba(0, 0, 0, 0.28);
  background: linear-gradient(140deg, rgba(39, 208, 174, 0.15), rgba(255, 255, 255, 0.06));
}

.pill.ghost#live-sound.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
  color: #c0f5d7;
}

.live-choice.correct::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(39, 208, 174, 0.18);
  color: #23c18f;
  font-weight: 800;
  margin-right: 8px;
}

.live-status {
  min-height: 18px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.live-status.visible {
  opacity: 1;
  color: #23c18f;
}

.live-page .player-list .player {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-page .player .score {
  color: #90e0ff;
}

.live-page #board-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, rgba(13, 18, 37, 0.92), rgba(10, 16, 32, 0.88));
}

.live-page #board-card::before,
.live-page #board-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.live-page #board-card::before {
  background: radial-gradient(circle at 18% 20%, rgba(19, 208, 255, 0.25), transparent 38%),
    radial-gradient(circle at 84% 12%, rgba(255, 77, 109, 0.18), transparent 42%);
  filter: blur(2px);
}

.live-page #board-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
  mix-blend-mode: screen;
  opacity: 0.45;
}

.live-page #board-card > * {
  position: relative;
  z-index: 1;
}

.board-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: sticky;
  top: 0;
  z-index: 2;
}

.board-track {
  position: relative;
  isolation: isolate;
  transform: perspective(900px) rotateX(4deg) rotateZ(-0.3deg);
  transform-style: preserve-3d;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.12), transparent 58%),
    linear-gradient(120deg, rgba(48, 212, 180, 0.2), rgba(12, 18, 36, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 46px rgba(0, 0, 0, 0.38), 0 36px 90px rgba(0, 0, 0, 0.42);
  overflow: auto;
  flex: 1;
  backdrop-filter: blur(4px);
}

.board-track::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  background: repeating-linear-gradient(90deg, rgba(19, 208, 255, 0.08) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(19, 208, 255, 0.05) 0 1px, transparent 1px 72px);
  opacity: 0.6;
  pointer-events: none;
}

.board-track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.5) 42%, transparent 80%),
    radial-gradient(circle at 30% 60%, rgba(255, 190, 11, 0.16), transparent 45%),
    radial-gradient(circle at 78% 24%, rgba(140, 111, 247, 0.18), transparent 42%);
  opacity: 0.92;
  pointer-events: none;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
}

.board-tile {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 22%, transparent 22%),
    linear-gradient(180deg, var(--tile-accent, #13d0ff) 0%, var(--tile-accent, #13d0ff) 14%, rgba(182, 242, 225, 0.82) 14%, rgba(12, 18, 36, 0.92) 100%);
  min-height: 92px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.3), 0 18px 0 0 rgba(5, 9, 18, 0.6);
  transform: translateY(0);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.board-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(19, 208, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.board-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.5) 100%);
  transform: translateZ(-18px) translateY(14px);
  filter: blur(18px);
  opacity: 0.8;
  pointer-events: none;
}

.board-tile::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.board-tile:nth-child(7n + 1) {
  --tile-accent: #24d8ff;
}

.board-tile:nth-child(7n + 2) {
  --tile-accent: #4ade80;
}

.board-tile:nth-child(7n + 3) {
  --tile-accent: #f97316;
}

.board-tile:nth-child(7n + 4) {
  --tile-accent: #facc15;
}

.board-tile:nth-child(7n + 5) {
  --tile-accent: #8b5cf6;
}

.board-tile:nth-child(7n + 6) {
  --tile-accent: #ef4444;
}

.board-tile:nth-child(7n) {
  --tile-accent: #10b981;
}

.board-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.45px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.board-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--tile-accent, #13d0ff), #8c6ff7);
  box-shadow: 0 0 0 6px rgba(19, 208, 255, 0.12);
}

.board-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.board-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  color: var(--heading);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  transform: translateZ(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
}

.board-token:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  border-color: rgba(19, 208, 255, 0.45);
}

.board-token::after {
  content: "";
  position: absolute;
  inset: -2px 2px auto auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.board-token .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #13d0ff;
  box-shadow: 0 0 0 4px rgba(19, 208, 255, 0.2), 0 6px 10px rgba(0, 0, 0, 0.35);
}

.board-token.leader {
  border-color: rgba(255, 186, 80, 0.7);
  background: linear-gradient(125deg, rgba(255, 186, 80, 0.26), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 0 1px rgba(255, 186, 80, 0.5), 0 10px 26px rgba(255, 186, 80, 0.28);
}

.board-tile.lead-tile {
  border-color: rgba(255, 186, 80, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 186, 80, 0.5), 0 16px 36px rgba(255, 186, 80, 0.18);
  background: linear-gradient(180deg, #ffd166 0%, #ffd166 16%, rgba(182, 242, 225, 0.85) 16%, rgba(12, 18, 36, 0.96) 100%);
}

.board-token.move {
  animation: token-pop 0.35s ease;
}

@keyframes token-pop {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(19, 208, 255, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(19, 208, 255, 0);
  }
}

@media (max-width: 720px) {
  .live-page {
    padding: 12px;
    overflow: auto;
  }
  .live-page .layout {
    grid-template-areas:
      "connect"
      "question"
      "board"
      "podium";
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    overflow: visible;
  }
  .board-track {
    transform: none;
  }
  .board-track {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .board-token {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .live-page .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "question"
      "connect"
      "board"
      "podium";
  }
  #board-card,
  #podium {
    height: auto;
  }
  #live-connect-card {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .live-meta {
    gap: 8px;
  }
  .live-track {
    flex: 1 1 100%;
  }
  .live-timer {
    flex: 1 1 100%;
  }
  .audio-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .live-page .layout {
    gap: 10px;
  }
  .live-meta {
    flex-direction: column;
    align-items: stretch;
  }
  .live-meta .pill,
  .live-meta .pill-toggle,
  .live-meta button {
    width: 100%;
    text-align: center;
  }
  .question-block {
    padding: 10px;
  }
  .live-page .choices .choice {
    padding: 10px;
  }
  #live-connect-card {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .live-page .layout {
    padding: 0;
  }
  .live-timer__time {
    font-size: 18px;
  }
  .board-track {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
}

.live-page .hero {
  display: none;
}

.live-page .layout {
  align-items: stretch;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "question board"
    "connect board"
    "podium board";
  grid-auto-flow: row;
  min-height: calc(100vh - 32px);
  height: auto;
  overflow: visible;
  gap: 12px;
}

.live-page:not(.live-podium) #podium {
  display: none !important;
}

.live-page.live-podium .layout {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "podium board";
  height: calc(100vh - 32px);
  align-items: stretch;
  justify-items: stretch;
  gap: 16px;
}

.live-page.live-podium #live-question,
.live-page.live-podium #live-connect-card {
  display: none !important;
}

.live-page.live-podium #podium,
.live-page.live-podium #board-card {
  height: calc(100vh - 32px);
  max-height: none;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.live-page.live-podium #celebration-banner,
.live-page.live-podium #podium .card-header p {
  display: none;
}

.live-page.live-podium #podium .podium-grid,
.live-page.live-podium #board-card .board-track {
  flex: 1;
}

#live-connect-card {
  grid-area: connect;
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
}

#live-question {
  grid-area: question;
  overflow: auto;
}

#board-card {
  grid-area: board;
  align-self: start;
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: 100%;
  margin: 0;
  width: 100%;
  min-width: 0;
}

#podium {
  grid-area: podium;
  align-self: start;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
  height: 100%;
  margin: 0;
  width: 100%;
  min-width: 0;
}

.live-page #podium {
  display: none;
}

.live-page #podium {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 18% 24%, rgba(19, 208, 255, 0.18), transparent 38%),
    radial-gradient(circle at 82% 10%, rgba(255, 186, 80, 0.18), transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(42, 252, 191, 0.14), transparent 46%),
    linear-gradient(135deg, rgba(10, 18, 36, 0.94), rgba(6, 12, 28, 0.9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  min-height: 420px;
  padding: 18px 14px 14px;
  flex: 1;
}

.live-page.live-podium #podium {
  display: flex;
}

.live-page #podium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 255, 255, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.live-page .podium-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.live-page .podium-card {
  position: relative;
  background: linear-gradient(185deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transform: translateY(0) translateZ(0);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding-bottom: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
  overflow: hidden;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 22px 16px 24px;
}

.live-page .podium-card::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10px;
  height: 14px;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.45), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.live-page .podium-card .name {
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  z-index: 1;
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-page .podium-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  border-color: rgba(19, 208, 255, 0.35);
}

.live-page .podium-card .podium-base {
  position: relative;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0.8), rgba(4, 6, 12, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.live-page .podium-card .podium-base::before {
  content: "";
  position: absolute;
  inset: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0.6;
}

.live-podium {
  background: radial-gradient(circle at 15% 20%, rgba(255, 209, 102, 0.18), transparent 32%), radial-gradient(circle at 80% 10%, rgba(99, 183, 255, 0.22), transparent 36%), #070911;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.live-podium .top-nav {
  display: none;
}

.live-podium #podium {
  border: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  background: linear-gradient(160deg, rgba(18, 24, 48, 0.95), rgba(10, 12, 28, 0.92));
}

.live-podium .layout {
  grid-template-columns: 1fr;
  align-items: center;
}

.live-podium .card {
  background: linear-gradient(180deg, rgba(12, 16, 32, 0.9), rgba(8, 10, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.live-podium .podium-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: end;
}

.live-podium .podium-card {
  animation: podium-pop 0.6s ease both;
  position: relative;
  overflow: hidden;
}

.live-podium .podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%);
  pointer-events: none;
}

.live-podium .podium-card.rank-1 {
  animation-delay: 0.15s;
  transform: translateY(-6px);
}
.live-podium .podium-card.rank-2 {
  animation-delay: 0.05s;
}
.live-podium .podium-card.rank-3 {
  animation-delay: 0.25s;
}

@keyframes podium-pop {
  0% {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.celebration-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 213, 94, 0.18), rgba(106, 196, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.celebration-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.celebration-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.celebration-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.podium-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.14), transparent 38%),
    radial-gradient(circle at 20% 0%, rgba(90, 196, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(255, 165, 90, 0.18), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.live-podium .podium-card.rank-1 {
  position: relative;
  overflow: hidden;
}

.live-podium .podium-card.rank-1::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-120%);
  }
  35% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.live-page .podium-card .podium-medal {
  font-size: 26px;
  margin: 10px 0 4px;
  text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.live-page .podium-card .rank {
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.live-page .podium-card.rank-1 {
  background: radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(185deg, rgba(255, 214, 102, 0.95), rgba(255, 194, 40, 0.8));
  border-color: rgba(255, 214, 102, 0.65);
  transform: translateY(-12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 214, 102, 0.45),
    0 0 0 8px rgba(255, 214, 102, 0.12);
  color: #1f1300;
  min-height: 220px;
}

.live-page .podium-card.rank-2 {
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(185deg, rgba(203, 213, 225, 0.95), rgba(120, 144, 156, 0.85));
  border-color: rgba(203, 213, 225, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(203, 213, 225, 0.3),
    0 0 0 6px rgba(203, 213, 225, 0.1);
  min-height: 200px;
}

.live-page .podium-card.rank-3 {
  background: radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(185deg, rgba(255, 170, 132, 0.94), rgba(170, 90, 60, 0.85));
  border-color: rgba(255, 170, 132, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), 0 0 0 2px rgba(255, 170, 132, 0.28),
    0 0 0 6px rgba(255, 170, 132, 0.1);
  min-height: 190px;
}

.live-page.live-contrast .card {
  background: #0b0e1a;
}

.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.pill-toggle input {
  width: auto;
}

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.landing-body .layout {
  max-width: 720px;
  margin: 0 auto;
}

.landing-body .layout.home-hero,
.landing-body .layout.pricing-layout {
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-header h2 {
  margin: 0 0 4px;
}

.card-header p {
  margin: 0;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

button.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9f5e 100%);
  color: #0f0f10;
  border: none;
}

button.ghost {
  border: 1px solid var(--border);
}

a.primary,
a.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

a.primary {
  background: linear-gradient(120deg, var(--accent) 0%, #ff9f5e 100%);
  color: #0f0f10;
  border: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

a.ghost {
  border: 1px solid var(--border);
}

a.primary:hover,
a.ghost:hover {
  transform: translateY(-1px);
}

a.primary:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

a.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

a.primary:active,
a.ghost:active {
  transform: translateY(0);
}

a.primary:focus-visible,
a.ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 208, 255, 0.3);
}

.divider {
  border-bottom: 1px solid var(--border);
  margin: 12px 0;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.question-editor h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.choice {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.choice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.choice-badge {
  font-weight: 700;
  color: var(--accent);
}

.choice-actions {
  display: flex;
  gap: 4px;
  display: none;
}

.choice-actions button {
  padding: 4px 6px;
  font-size: 12px;
}

.order-enabled .choice-actions {
  display: flex;
}

.choice input[type="text"] {
  width: 100%;
  margin-top: 6px;
}

.choice-correct {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}

.correct-flag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.correct-flag input {
  width: auto;
}

.correct-multi {
  display: none;
}

.multi-enabled .correct-multi {
  display: inline-flex;
}

.multi-enabled .correct-single {
  display: none;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: 1 / -1;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.order-index {
  min-width: 28px;
  font-weight: 700;
  color: var(--accent);
}

.order-text {
  flex: 1;
}

.order-actions {
  display: flex;
  gap: 6px;
}

.order-actions .order-btn {
  padding: 6px 8px;
  font-size: 12px;
}

.choice .choice-actions .ghost {
  border-color: var(--border);
}

.order-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  grid-column: 1 / -1;
}

.order-solution {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

.order-locked .order-btn {
  opacity: 0.5;
  pointer-events: none;
}

.question-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid var(--border);
  max-height: 240px;
  object-fit: cover;
}

.question-media {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid var(--border);
  max-height: 240px;
  background: #000;
}

.choice label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.multi-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.message {
  min-height: 20px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.import-box {
  margin-top: 8px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.import-box textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

.muted {
  color: var(--muted);
}

.pin-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(39, 208, 174, 0.1);
  border: 1px solid rgba(39, 208, 174, 0.4);
}

.pin {
  font-size: 32px;
  letter-spacing: 4px;
  margin: 4px 0;
  color: var(--accent-2);
}

.qr-box {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 12px;
  margin: 12px 0;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

.qr-visual img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}

.qr-infos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qr-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.qr-link code {
  word-break: break-all;
  background: none;
  padding: 0;
  color: var(--text);
}

@media (max-width: 640px) {
  .qr-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .qr-link {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.player-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.player.first {
  border-color: rgba(39, 208, 174, 0.5);
}
.player.second {
  border-color: rgba(255, 255, 255, 0.3);
}
.player.third {
  border-color: rgba(255, 122, 61, 0.5);
}

.player .score {
  color: var(--accent-2);
  font-weight: 700;
}

.timer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 122, 61, 0.08);
  border: 1px solid rgba(255, 122, 61, 0.3);
  font-weight: 700;
  color: #ffb184;
  margin-bottom: 10px;
}

.timer-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.timer-bar div {
  height: 100%;
  width: 100%;
  background: linear-gradient(120deg, var(--accent) 0%, #ff9f5e 100%);
  transition: width 0.2s linear;
}
.timer-bar div.timer-warning {
  filter: drop-shadow(0 0 4px rgba(255, 159, 94, 0.5));
}
.timer-urgent {
  animation: pulse-timer 0.8s ease-in-out infinite;
}

@keyframes pulse-timer {
  0% {
    filter: drop-shadow(0 0 0 rgba(255, 122, 61, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(255, 122, 61, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 122, 61, 0.5));
  }
}
.toast {
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(6px);
}

.toast.success {
  background: linear-gradient(120deg, #22c55e, #16a34a);
}

.toast.error {
  background: linear-gradient(120deg, #f97316, #ef4444);
}

.toast.bonus {
  background: linear-gradient(120deg, #8c6ff7, #13d0ff);
}

.podium-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.podium-card.animate {
  animation: pop-in 0.6s ease;
}

@keyframes pop-in {
  0% {
    transform: translateY(18px) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.mvp-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  margin-top: 6px;
}

.streak-badge {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(39, 208, 174, 0.12);
  border: 1px solid rgba(39, 208, 174, 0.35);
  color: #e6f8ff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.streak-badge::before {
  content: "🔥";
}

.streak-badge.streak-hot {
  background: rgba(255, 122, 61, 0.14);
  border-color: rgba(255, 122, 61, 0.5);
  box-shadow: 0 0 0 6px rgba(255, 122, 61, 0.08);
}

.gamification {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.gamification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gamification-level {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
}

.gamification-score {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.xp-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.xp-fill {
  height: 100%;
  width: 12%;
  background: var(--gradient-primary);
  box-shadow: 0 0 14px rgba(19, 208, 255, 0.35);
  transition: width 0.4s ease;
}

.badge-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge-chip {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.badge-chip.bonus {
  border-color: rgba(19, 208, 255, 0.45);
  background: rgba(19, 208, 255, 0.08);
}

.question-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.question-block h3 {
  margin: 0;
}

.choice-button {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: transform 0.1s ease, border 0.1s ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

.choice-button.selected {
  border-color: rgba(39, 208, 174, 0.6);
  background: rgba(39, 208, 174, 0.08);
}

.choice-button.correct {
  border-color: rgba(39, 208, 174, 0.8);
  background: rgba(39, 208, 174, 0.12);
  animation: flash-correct 0.5s ease;
}

.choice-button.incorrect {
  border-color: rgba(255, 122, 61, 0.8);
  background: rgba(255, 122, 61, 0.12);
  animation: flash-incorrect 0.5s ease;
}

@keyframes flash-correct {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 208, 174, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(39, 208, 174, 0);
  }
}

@keyframes flash-incorrect {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 61, 0.6);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(255, 122, 61, 0);
  }
}

.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.image-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.choice-button.image-choice {
  padding: 10px;
  text-align: center;
}

.image-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-thumb--empty {
  color: var(--muted);
  font-size: 13px;
}

.image-label {
  font-weight: 700;
  color: var(--heading);
}

.podium-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.podium-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.podium-card .rank {
  font-size: 14px;
  color: var(--muted);
}

.podium-card .name {
  margin: 6px 0;
  font-weight: 700;
}

.podium-card.rank-1 {
  border-color: rgba(39, 208, 174, 0.6);
}
.podium-card.rank-2 {
  border-color: rgba(255, 255, 255, 0.25);
}
.podium-card.rank-3 {
  border-color: rgba(255, 122, 61, 0.5);
}

#maze-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#maze-overlay[hidden] {
  display: none !important;
}

.target-area {
  position: relative;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08));
  overflow: hidden;
  margin: 12px 0;
  padding: 10px 0;
}

.target-lane {
  position: relative;
  height: 46px;
  margin: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.target-label {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 13px;
  pointer-events: none;
}

.target {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, #ff9f5e 60%, rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 12px rgba(255, 122, 61, 0.6);
  cursor: pointer;
}

.maze-modal {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  width: min(420px, 90vw);
  box-shadow: var(--shadow);
}

.arcade-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Landing hero + storytelling EVA */
.landing-hero {
  width: min(1200px, 100%);
  margin: 0 auto clamp(28px, 6vw, 48px);
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(6, 14, 32, 0.9), rgba(5, 18, 43, 0.92));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.landing-hero::after {
  content: "";
  inset: 0;
  position: absolute;
  background: radial-gradient(circle at 20% 20%, rgba(19, 208, 255, 0.14), transparent 55%);
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.landing-hero .spark {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--heading);
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(5, 12, 26, 0.8), rgba(4, 21, 48, 0.85));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 208, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  padding: clamp(18px, 3vw, 26px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.hero-panel::before {
  content: "";
  inset: 0;
  position: absolute;
  background: radial-gradient(circle at 70% 0%, rgba(140, 111, 247, 0.22), transparent 50%);
  pointer-events: none;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pin-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.pin-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.pin-value {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--heading);
}

.panel-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.panel-card {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 208, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  min-height: 120px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.panel-card h3 {
  margin: 0 0 6px;
}

.panel-card p {
  margin: 0;
  color: var(--muted);
}

.panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 208, 255, 0.4);
}

.landing-body main {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section {
  margin: clamp(32px, 5vw, 52px) 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 34px);
  color: var(--heading);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.section-description {
  color: var(--muted);
  text-align: center;
  margin: 10px auto 0;
  max-width: 740px;
}

.story-section {
  position: relative;
}

.story-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-guide .story-header {
  margin-bottom: 0.5rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 1rem;
}

.guide-card {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(19, 208, 255, 0.2);
  box-shadow: 0 18px 38px rgba(1, 9, 25, 0.35);
  display: grid;
  gap: 0.5rem;
}

.guide-index {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.65);
}

.guide-card h3 {
  margin: 0;
}

.guide-card ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}

.guide-card li::marker {
  color: var(--accent);
}

.storyline {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.story-card {
  position: relative;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(19, 208, 255, 0.2);
  box-shadow: 0 18px 38px rgba(1, 9, 25, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.story-card::after {
  content: "";
  inset: 0;
  position: absolute;
  background: radial-gradient(circle at 50% 0%, rgba(140, 111, 247, 0.25), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}

.story-card:hover::after {
  opacity: 1;
}

.story-card img {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.story-step {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
}

.eva-journey {
  margin-top: 2.4rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: rgba(4, 12, 30, 0.75);
  border: 1px solid rgba(19, 208, 255, 0.2);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

.eva-journey::after {
  content: "";
  inset: 0;
  position: absolute;
  background: radial-gradient(circle at 70% 20%, rgba(140, 111, 247, 0.18), transparent 55%);
  pointer-events: none;
  opacity: 0.6;
}

.eva-journey__hud {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.eva-journey__path {
  flex: 2 1 360px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  position: relative;
  padding: 2rem 0.5rem 0.5rem;
  z-index: 1;
}

.eva-progress {
  position: absolute;
  top: calc(50% - 1px);
  left: 4%;
  right: 4%;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  border-radius: 999px;
}

.eva-progress span {
  display: block;
  height: 100%;
  width: var(--progress, 12%);
  background: var(--gradient-primary);
  transition: width 0.45s ease;
}

.eva-node {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.3);
  background: rgba(5, 15, 36, 0.8);
  color: var(--heading);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.eva-node small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eva-node::after {
  content: "";
  inset: 8px;
  position: absolute;
  border-radius: var(--radius-md);
  border: 1px dashed transparent;
  transition: border 0.25s ease;
}

.eva-node:hover,
.eva-node:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(19, 208, 255, 0.9);
  outline: none;
}

.eva-node:hover::after,
.eva-node:focus-visible::after {
  border-color: rgba(19, 208, 255, 0.4);
}

.eva-node__index {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: rgba(226, 245, 255, 0.65);
}

.eva-node__title {
  font-size: 1.05rem;
}

.eva-node--active {
  background: rgba(19, 208, 255, 0.12);
  border-color: rgba(19, 208, 255, 0.55);
  box-shadow: 0 18px 28px rgba(19, 208, 255, 0.15);
}

.btn-ghost {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost.is-pulsing {
  box-shadow: 0 0 0 10px rgba(19, 208, 255, 0.08);
}

/* Mascotte companion */
.mascot-guide {
  position: fixed;
  width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 99;
  pointer-events: auto;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.35s ease, right 0.35s ease, left 0.35s ease;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.5));
}

.mascot-guide--right {
  right: 32px;
}

.mascot-guide--left {
  left: 32px;
}

.mascot-guide img {
  width: 120px;
  height: auto;
  animation: mascotFloat 6s ease-in-out infinite, mascotGlow 8s ease-in-out infinite;
  will-change: transform;
}

.mascot-bubble {
  background: rgba(3, 10, 26, 0.9);
  border: 1px solid rgba(19, 208, 255, 0.35);
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--heading);
  text-align: center;
  box-shadow: 0 18px 40px rgba(1, 9, 25, 0.55);
}

.mascot-guide--mirrored img {
  transform: scaleX(-1);
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mascotGlow {
  0%,
  100% {
    filter: drop-shadow(0 12px 18px rgba(19, 208, 255, 0.22));
  }
  50% {
    filter: drop-shadow(0 14px 26px rgba(140, 111, 247, 0.35));
    transform: translateY(-4px);
  }
}

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 3vw, 42px);
  padding-top: clamp(24px, 6vw, 64px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.login-body::before,
.login-body::after {
  content: "";
  position: fixed;
  inset: -10% -10% auto;
  height: 60%;
  pointer-events: none;
  z-index: 0;
}

.login-body::before {
  background: radial-gradient(circle at 20% 30%, rgba(19, 208, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 122, 217, 0.12), transparent 45%);
  opacity: 0.9;
  filter: blur(10px);
}

.login-body::after {
  inset: auto -15% -10%;
  height: 55%;
  background: radial-gradient(circle at 30% 20%, rgba(140, 111, 247, 0.2), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(255, 159, 94, 0.2), transparent 60%);
  opacity: 0.55;
  filter: blur(18px);
}

.login-shell {
  position: relative;
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 4vw, 36px);
  align-items: stretch;
  z-index: 1;
}

.login-intro {
  padding: clamp(12px, 2vw, 16px);
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  color: var(--heading);
  letter-spacing: -0.02em;
}

.login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: var(--heading);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.login-chip.ghost {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
}

.login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(9, 16, 32, 0.9), rgba(5, 12, 26, 0.85));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 60%;
  background: radial-gradient(circle at 30% 30%, rgba(19, 208, 255, 0.25), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(255, 122, 217, 0.2), transparent 45%);
  opacity: 0.8;
  filter: blur(30px);
  z-index: 0;
}

.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  z-index: 0;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .login-body {
    padding: 16px;
    padding-top: 24px;
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form .field {
  margin: 6px 0 4px;
}

.login-form .field span {
  color: var(--heading);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.login-form input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input:focus {
  border-color: rgba(19, 208, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(19, 208, 255, 0.15), 0 12px 32px rgba(0, 0, 0, 0.3);
}

.login-form .primary {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: #0a0d16;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form .primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(19, 208, 255, 0.25);
}

.login-form .primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.login-form .primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 208, 255, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.login-form .help-text {
  margin: 6px 0 0;
  font-size: 13px;
}

.login-card .message {
  min-height: 22px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 208, 255, 0.08);
  border: 1px solid rgba(19, 208, 255, 0.25);
  color: var(--heading);
}

.login-card .message.error {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffd1d1;
}

.login-card .message.success {
  background: rgba(61, 240, 179, 0.12);
  border-color: rgba(61, 240, 179, 0.35);
  color: #c8ffea;
}

.account-grid {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.account-row strong {
  font-weight: 600;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 16px;
}

.auth-tabs .ghost {
  padding: 10px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-tabs .ghost.active {
  background: rgba(19, 208, 255, 0.2);
  border-color: rgba(19, 208, 255, 0.5);
}

.auth-tabs .ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.turnstile-box {
  margin: 4px 0 6px;
}

.auth-section {
  margin-top: 16px;
}

.auth-section h3 {
  margin: 0 0 4px;
}

.auth-section + .login-form {
  margin-top: 4px;
}

.auth-toggle {
  width: 100%;
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 208, 255, 0.35);
  background: linear-gradient(120deg, rgba(19, 208, 255, 0.18), rgba(255, 159, 94, 0.14));
  color: var(--heading);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 208, 255, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-toggle:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.auth-toggle:focus-visible {
  outline: none;
  border-color: rgba(19, 208, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(19, 208, 255, 0.3), 0 14px 34px rgba(0, 0, 0, 0.35);
}

.auth-back {
  width: 100%;
  margin-top: 6px;
}

.signup-section {
  margin-top: 10px;
}

.home-clear {
  background: radial-gradient(circle at top right, rgba(19, 208, 255, 0.18), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(255, 140, 90, 0.18), transparent 45%),
    #0c0f1a;
}

.home-hero {
  display: grid;
  gap: 32px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero-card > * {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-card-panel .card {
  background: rgba(8, 12, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.step-card h3 {
  margin: 6px 0 8px;
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-layout {
  display: grid;
  gap: 28px;
}

.pricing-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  min-width: 0;
}

.pricing-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.pricing-card.featured {
  border-color: rgba(19, 208, 255, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: rgba(12, 22, 38, 0.75);
}

.pricing-price {
  display: grid;
  gap: 4px;
}

.pricing-price .price {
  font-size: 22px;
  font-weight: 600;
}

.pricing-price .price-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-faq {
  margin-top: 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

.admin-filters {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 8px;
  margin: 10px 0 16px;
}

.admin-filters input,
.admin-filters select {
  width: 100%;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 2.2fr 0.8fr 0.9fr 1.4fr 0.7fr 0.7fr 0.6fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.admin-header {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  background: rgba(19, 208, 255, 0.12);
  border-color: rgba(19, 208, 255, 0.3);
}

.admin-row input,
.admin-row select {
  padding: 6px 8px;
  font-size: 12px;
}

@media (max-width: 920px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
}

.wave-decor {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.wave {
  position: absolute;
  width: 160%;
  height: 46%;
  left: -25%;
  background: linear-gradient(135deg, rgba(19, 208, 255, 0.22), rgba(140, 111, 247, 0.22));
  filter: blur(20px);
  opacity: 0.6;
  transform: rotate(-2deg);
  border-radius: 55% 45% 60% 40%;
  animation: waveFloat 18s ease-in-out infinite, waveDrift 38s linear infinite;
  mix-blend-mode: screen;
}

.wave-1 {
  top: -14%;
}

.wave-2 {
  bottom: -18%;
  animation-duration: 22s, 52s;
  animation-delay: -4s, -10s;
  opacity: 0.5;
  background: linear-gradient(135deg, rgba(255, 122, 217, 0.16), rgba(19, 208, 255, 0.18));
}

.wave-3 {
  top: 30%;
  height: 38%;
  animation-duration: 26s, 64s;
  animation-delay: -8s, -18s;
  opacity: 0.42;
  background: linear-gradient(135deg, rgba(19, 208, 255, 0.12), rgba(255, 159, 94, 0.2));
}

.wave-pulse {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 12%;
  background: radial-gradient(circle, rgba(140, 111, 247, 0.22) 0%, transparent 60%);
  filter: blur(18px);
  animation: pulseGlow 7s ease-in-out infinite;
}

.wave-lines {
  position: absolute;
  left: -50%;
  right: -50%;
  top: 34%;
  height: 140px;
  opacity: 0.6;
  filter: drop-shadow(0 16px 32px rgba(19, 208, 255, 0.32));
  mix-blend-mode: screen;
  animation: waveLineTravel 18s linear infinite -1.5s, waveLineFloat 12s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -0.5s;
}

.wave-lines::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 14px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #13d0ff, #8c6ff7, #ff7ad9);
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(19, 208, 255, 0.4), 0 0 60px rgba(140, 111, 247, 0.3);
  animation: waveLineFloat 10s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -0.75s;
}

.wave-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 50% 50%, rgba(140, 111, 247, 0.2) 0%, rgba(19, 208, 255, 0.12) 25%, transparent 55%);
  filter: blur(26px);
  opacity: 0.35;
  animation: waveLineFloat 12s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite reverse -1.2s;
}

.wave-lines-alt {
  top: 38%;
  height: 110px;
  opacity: 0.42;
  filter: drop-shadow(0 10px 24px rgba(255, 122, 217, 0.24));
  animation: waveLineTravel 22s linear infinite reverse -2.5s, waveLineFloat 11s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -1s;
}

.wave-lines-alt::before {
  height: 10px;
  background: linear-gradient(90deg, #ff9f5e, #ff7ad9, #13d0ff);
  animation-duration: 12s;
  animation-direction: reverse;
  animation-delay: -1.5s;
}

.wave-lines-alt::after {
  width: 130%;
  height: 130%;
  opacity: 0.28;
  filter: blur(24px);
  animation-duration: 14s;
  animation-delay: -2s;
}

.wave-lines-3 {
  top: 30%;
  height: 90px;
  opacity: 0.38;
  animation: waveLineTravel 26s linear infinite -3s, waveLineFloatBig 11s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -1.3s;
}

.wave-lines-3::before {
  height: 8px;
  background: linear-gradient(90deg, #ff7ad9, #13d0ff, #8c6ff7);
}

.wave-lines-3::after {
  opacity: 0.22;
  filter: blur(20px);
}

.wave-lines-4 {
  top: 42%;
  height: 120px;
  opacity: 0.52;
  animation: waveLineTravel 20s linear infinite reverse -1.8s, waveLineFloatBig 9s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -0.6s;
  filter: drop-shadow(0 12px 26px rgba(19, 208, 255, 0.26));
}

.wave-lines-4::before {
  height: 12px;
  background: linear-gradient(90deg, #13d0ff, #ff9f5e, #ff7ad9);
}

.wave-lines-4::after {
  width: 110%;
  height: 110%;
  opacity: 0.3;
  filter: blur(20px);
}

.wave-lines-5 {
  top: 46%;
  height: 100px;
  opacity: 0.33;
  animation: waveLineTravel 24s linear infinite -2.8s, waveLineFloatBig 12s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite reverse -1s;
  filter: drop-shadow(0 8px 20px rgba(255, 159, 94, 0.22));
}

.wave-lines-5::before {
  height: 9px;
  background: linear-gradient(90deg, #ff9f5e, #13d0ff, #8c6ff7);
}

.wave-lines-5::after {
  opacity: 0.24;
  filter: blur(18px);
}

.wave-lines-6 {
  top: 50%;
  height: 80px;
  opacity: 0.28;
  animation: waveLineTravel 28s linear infinite reverse -3.5s, waveLineFloatBig 14s cubic-bezier(0.45, 0.05, 0.15, 0.95) infinite -1.8s;
}

.wave-lines-6::before {
  height: 7px;
  background: linear-gradient(90deg, #8c6ff7, #ff7ad9, #13d0ff);
}

.wave-lines-6::after {
  opacity: 0.2;
  filter: blur(16px);
}

@keyframes waveFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}

@keyframes waveDrift {
  0% {
    transform: translateX(0) rotate(-2deg);
  }
  50% {
    transform: translateX(4%) rotate(-1deg);
  }
  100% {
    transform: translateX(0) rotate(-2deg);
  }
}

@keyframes waveLineTravel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-16%);
  }
}

@keyframes waveLineFloat {
  0%,
  100% {
    transform: translateY(-2px) rotate(-2deg);
  }
  25% {
    transform: translateY(-6px) rotate(-1.6deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1.2deg);
  }
  75% {
    transform: translateY(-5px) rotate(-1.5deg);
  }
}

@keyframes waveLineFloatBig {
  0%,
  100% {
    transform: translateY(-4px) rotate(-2deg);
  }
  25% {
    transform: translateY(-10px) rotate(-1.6deg);
  }
  50% {
    transform: translateY(-16px) rotate(-1deg);
  }
  75% {
    transform: translateY(-9px) rotate(-1.4deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

@media (max-width: 700px) {
body {
  padding: 18px;
}

  .login-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .login-card {
    padding: 18px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .storyline {
    grid-template-columns: 1fr;
  }

  .eva-journey__path {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .eva-progress {
    display: none;
  }

  .mascot-guide {
    width: 160px;
    right: 12px;
    left: auto;
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-actions .pill,
  .hero-actions select,
  .hero-actions a {
    width: 100%;
  }

  .card {
    padding: 16px;
  }

  .pack-toolbar {
    grid-template-columns: 1fr;
  }

  .pack-actions {
    flex-direction: column;
  }

  body.pack-focus .top-nav,
  body.pack-focus .hero,
  body.pack-focus #host-setup,
  body.pack-focus #host-lobby {
    display: none;
  }

  body.pack-focus #pack-library {
    margin-top: 0;
  }

  .field input {
    font-size: 16px;
  }

  .timer {
    gap: 8px;
  }

  .timer-bar {
    height: 10px;
  }

  button,
  .choice-button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .question-block h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .player-page.player-focus {
    padding: 10px;
  }

  .player-page.player-focus .hero,
  .player-page.player-focus #player-join,
  .player-page.player-focus #scoreboard,
  .player-page.player-focus #podium,
  .player-page.player-focus .gamification,
  .player-page.player-focus .powerups,
  .player-page.player-focus .team-scoreboard,
  .player-page.player-focus .timer,
  .player-page.player-focus #player-live .card-header {
    display: none;
  }

  .player-page.player-focus .layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .player-page.player-focus #player-live.card {
    padding: 12px;
  }

  .player-page.player-focus #player-live .question-block {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  body.player-page {
    padding: 12px;
  }

  .player-page .hero {
    display: none;
  }

  .player-page .layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .player-page .hero-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .player-page #player-join {
    padding: 20px;
    width: 100%;
    margin: 0;
  }

  .player-page #player-join .card-header h2 {
    font-size: 22px;
  }

  .player-page #player-join .card-header p {
    font-size: 14px;
  }

  .player-page #player-join .field span {
    font-size: 15px;
  }

  .player-page #player-join input {
    font-size: 16px;
    padding: 14px 14px;
  }

  .player-page #player-join .pill-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .player-page #player-join #join-game {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }

  .player-page #player-live {
    padding: 16px;
    width: 100%;
    margin: 0;
  }

  .player-page #player-live .question-block h3 {
    font-size: 20px;
    line-height: 1.35;
  }

  .player-page #player-live .choice-button {
    padding: 16px;
    font-size: 16px;
  }

  .player-page.player-focus {
    padding: 10px;
  }

  .player-page.player-focus .hero,
  .player-page.player-focus #player-join,
  .player-page.player-focus #scoreboard,
  .player-page.player-focus #podium,
  .player-page.player-focus .gamification,
  .player-page.player-focus .powerups,
  .player-page.player-focus .team-scoreboard,
  .player-page.player-focus .timer,
  .player-page.player-focus #player-live .card-header {
    display: none;
  }

  .player-page.player-focus #player-live.card {
    padding: 12px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 6px;
  }

  .top-nav .nav-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .audio-settings {
    padding: 10px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .live-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .live-timer {
    width: 100%;
  }

  .powerups {
    width: 100%;
  }
}

/* Options / equipes / power-ups */
.options-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 12px;
}

.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.range-row input[type="range"] {
  flex: 1;
}

.card-header.compact h3 {
  margin: 0;
}

.team-settings {
  display: grid;
  gap: 10px;
}

.team-board,
.team-scoreboard {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 208, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.team-list,
.team-scoreboard {
  display: grid;
  gap: 8px;
}

.team-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.team-row.leader {
  border-color: rgba(255, 186, 80, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 186, 80, 0.3);
}

.powerups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.powerups .pill {
  position: relative;
}

.powerups .pill::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0f1c;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.powerups .pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.powerups .pill.active {
  background: rgba(39, 208, 174, 0.2);
  border-color: rgba(39, 208, 174, 0.6);
}

.poll-results {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.poll-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.poll-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.poll-bar span {
  display: block;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.poll-value {
  text-align: right;
  color: var(--muted);
}

.question-editor.tf-enabled .choice:nth-child(n + 3) {
  display: none;
}

.question-editor.poll-enabled .choice-correct {
  display: none;
}

.score-boost {
  animation: scorePop 0.6s ease;
}

.audio-settings {
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 12px;
}

.summary-block {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.summary-block h3 {
  margin: 0 0 8px;
}

@keyframes scorePop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(19, 208, 255, 0.2);
  }
  60% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(19, 208, 255, 0);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  .poll-row {
    grid-template-columns: 1fr;
  }

  .poll-value {
    text-align: left;
  }
}
