/* 60 Second Adventure: polished daily quest overlay */

.adventure-overlay {
  --adv-backdrop: rgba(8, 12, 28, 0.62);
  --adv-panel-bg:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(251, 191, 36, 0.14), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(124, 115, 255, 0.16), transparent 50%),
    linear-gradient(165deg, #fffdf8 0%, #f8f5ff 38%, #eef2ff 100%);
  --adv-panel-border: rgba(124, 115, 255, 0.28);
  --adv-panel-shadow: 0 28px 80px rgba(49, 46, 129, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.65) inset;
  --adv-accent: linear-gradient(90deg, #f59e0b, #f97316, #a855f7, #6366f1);
  --adv-text: #1e1b4b;
  --adv-text-muted: #4b5563;
  --adv-text-soft: #6b7280;
  --adv-heading: #312e81;
  --adv-eyebrow: #7c3aed;
  --adv-header-border: rgba(124, 115, 255, 0.16);
  --adv-close-bg: rgba(124, 115, 255, 0.1);
  --adv-close-color: #4338ca;
  --adv-close-hover: rgba(124, 115, 255, 0.2);
  --adv-timer-track: rgba(124, 115, 255, 0.14);
  --adv-timer-caption: #6b7280;
  --adv-timer-label: #1f2937;
  --adv-story-bg: rgba(255, 255, 255, 0.88);
  --adv-story-border: rgba(124, 115, 255, 0.22);
  --adv-dialogue: #7c3aed;
  --adv-choice-bg: rgba(255, 255, 255, 0.95);
  --adv-choice-border: rgba(124, 115, 255, 0.28);
  --adv-choice-text: #1f2937;
  --adv-choice-letter-bg: linear-gradient(135deg, #7c73ff, #6366f1);
  --adv-choice-hover-bg: rgba(124, 115, 255, 0.1);
  --adv-choice-hover-border: #7c73ff;
  --adv-scene-bg: radial-gradient(circle at 50% 70%, rgba(167, 139, 250, 0.28), rgba(124, 115, 255, 0.08) 55%, transparent 75%);
  --adv-banner-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(124, 115, 255, 0.12));
  --adv-banner-border: rgba(251, 191, 36, 0.35);
  --adv-cosmetic-bg: rgba(124, 115, 255, 0.1);
  --adv-cosmetic-border: rgba(124, 115, 255, 0.35);
  --adv-chip-gp-bg: rgba(245, 158, 11, 0.18);
  --adv-chip-gp-text: #b45309;
  --adv-chip-bonus-bg: rgba(16, 185, 129, 0.16);
  --adv-chip-bonus-text: #047857;
  --adv-chip-speed-bg: rgba(99, 102, 241, 0.16);
  --adv-chip-speed-text: #4338ca;
  --adv-badge-dot-border: #faf8ff;

  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--adv-text);
}

html[data-theme="dark"] .adventure-overlay,
:root:not([data-theme="light"]) .adventure-overlay {
  --adv-backdrop: rgba(0, 0, 0, 0.82);
  --adv-panel-bg:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(251, 191, 36, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(124, 115, 255, 0.2), transparent 50%),
    linear-gradient(165deg, #1e1b4b 0%, #12101f 45%, #0c0a16 100%);
  --adv-panel-border: rgba(167, 139, 250, 0.32);
  --adv-panel-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --adv-text: #f3f4f6;
  --adv-text-muted: #d1d5db;
  --adv-text-soft: #9ca3af;
  --adv-heading: #e9d5ff;
  --adv-eyebrow: #c4b5fd;
  --adv-header-border: rgba(167, 139, 250, 0.18);
  --adv-close-bg: rgba(255, 255, 255, 0.08);
  --adv-close-color: #e9d5ff;
  --adv-close-hover: rgba(167, 139, 250, 0.22);
  --adv-timer-track: rgba(255, 255, 255, 0.1);
  --adv-timer-caption: #9ca3af;
  --adv-timer-label: #f9fafb;
  --adv-story-bg: rgba(0, 0, 0, 0.28);
  --adv-story-border: rgba(167, 139, 250, 0.22);
  --adv-dialogue: #c4b5fd;
  --adv-choice-bg: rgba(0, 0, 0, 0.32);
  --adv-choice-border: rgba(167, 139, 250, 0.3);
  --adv-choice-text: #f3f4f6;
  --adv-choice-letter-bg: linear-gradient(135deg, #8b5cf6, #6366f1);
  --adv-choice-hover-bg: rgba(99, 102, 241, 0.24);
  --adv-choice-hover-border: #a78bfa;
  --adv-scene-bg: radial-gradient(circle at 50% 70%, rgba(167, 139, 250, 0.22), rgba(99, 102, 241, 0.08) 55%, transparent 75%);
  --adv-banner-bg: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(99, 102, 241, 0.16));
  --adv-banner-border: rgba(251, 191, 36, 0.28);
  --adv-cosmetic-bg: rgba(99, 102, 241, 0.2);
  --adv-cosmetic-border: rgba(167, 139, 250, 0.45);
  --adv-chip-gp-bg: rgba(251, 191, 36, 0.22);
  --adv-chip-gp-text: #fcd34d;
  --adv-chip-bonus-bg: rgba(52, 211, 153, 0.2);
  --adv-chip-bonus-text: #6ee7b7;
  --adv-chip-speed-bg: rgba(129, 140, 248, 0.22);
  --adv-chip-speed-text: #c7d2fe;
  --adv-badge-dot-border: #1a1630;
}

.adventure-overlay--enter .adventure-overlay__panel {
  animation: adventure-panel-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.adventure-overlay--celebrate .adventure-overlay__panel {
  animation: adventure-win-pulse 0.6s ease;
}

.adventure-overlay-open {
  overflow: hidden;
}

.adventure-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--adv-backdrop);
  backdrop-filter: blur(4px);
}

.adventure-overlay__panel {
  position: relative;
  width: min(600px, 100%);
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--adv-panel-bg);
  border: 1px solid var(--adv-panel-border);
  border-radius: 22px;
  box-shadow: var(--adv-panel-shadow);
  overflow: hidden;
  color: var(--adv-text);
}

.adventure-overlay__accent {
  height: 4px;
  background: var(--adv-accent);
  background-size: 200% 100%;
  animation: adventure-accent-shift 4s linear infinite;
}

.adventure-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--adv-header-border);
}

.adventure-overlay__brand {
  min-width: 0;
}

.adventure-overlay__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
  margin-bottom: 4px;
}

.adventure-overlay__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.adventure-overlay__title-wrap i {
  color: #f59e0b;
  font-size: 1.05rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
}

.adventure-overlay__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--adv-heading);
  line-height: 1.2;
}

.adventure-overlay__close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: var(--adv-close-bg);
  color: var(--adv-close-color);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.adventure-overlay__close:hover {
  background: var(--adv-close-hover);
  transform: scale(1.04);
}

.adventure-overlay__timer-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(124, 115, 255, 0.08);
  border: 1px solid rgba(124, 115, 255, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adventure-overlay__timer-wrap--warn {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12) inset;
}

.adventure-overlay__timer-wrap--urgent {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.18);
  animation: adventure-timer-urgent 0.9s ease-in-out infinite;
}

.adventure-overlay__timer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(124, 115, 255, 0.14);
  color: #7c3aed;
  flex-shrink: 0;
}

.adventure-overlay__timer-main {
  flex: 1;
  min-width: 0;
}

.adventure-overlay__timer-caption {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-timer-caption);
  margin-bottom: 6px;
}

.adventure-overlay__timer-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--adv-timer-track);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.adventure-overlay__timer-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #10b981, #22c55e);
  transition: width 0.1s linear, background 0.25s;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.adventure-overlay__timer-fill--warn {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #f97316);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.adventure-overlay__timer-fill--danger {
  background: linear-gradient(90deg, #f87171, #ef4444, #dc2626);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.adventure-overlay__timer-label {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.15rem;
  min-width: 3.4em;
  text-align: right;
  color: var(--adv-timer-label);
}

.adventure-overlay__timer-wrap--urgent .adventure-overlay__timer-label {
  color: #ef4444;
}

.adventure-overlay__body {
  padding: 16px 18px 20px;
  overflow-y: auto;
  flex: 1;
  color: var(--adv-text);
}

.adventure-overlay__body--fade {
  animation: adventure-body-fade 0.28s ease;
}

/* Scene illustration */
.adventure-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--adv-scene-bg);
  overflow: hidden;
}

.adventure-scene--compact {
  min-height: 88px;
  margin-bottom: 10px;
}

.adventure-scene--small {
  min-height: 96px;
  margin-bottom: 12px;
}

.adventure-scene__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(251, 191, 36, 0.18), transparent 60%);
  animation: adventure-glow-pulse 3s ease-in-out infinite;
}

.adventure-scene__emoji {
  font-size: 3.4rem;
  line-height: 1;
  z-index: 1;
  animation: adventure-emoji-float 2.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.adventure-scene--compact .adventure-scene__emoji,
.adventure-scene--small .adventure-scene__emoji {
  font-size: 2.6rem;
}

.adventure-scene__sparkles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  opacity: 0.7;
  animation: adventure-sparkle 2.4s ease-in-out infinite;
}

.adventure-scene__sparkles span:nth-child(1) { top: 18%; left: 22%; animation-delay: 0s; }
.adventure-scene__sparkles span:nth-child(2) { top: 28%; right: 18%; animation-delay: 0.8s; }
.adventure-scene__sparkles span:nth-child(3) { bottom: 22%; left: 38%; animation-delay: 1.4s; }

/* Step progress */
.adventure-step-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.adventure-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(124, 115, 255, 0.2);
  border: 1px solid rgba(124, 115, 255, 0.25);
  transition: transform 0.2s, background 0.2s;
}

.adventure-step-dot--done {
  background: #10b981;
  border-color: #10b981;
}

.adventure-step-dot--active {
  background: #7c3aed;
  border-color: #7c3aed;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.45);
}

.adventure-step-label {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adv-text-soft);
}

/* Story card */
.adventure-story-card {
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: var(--adv-story-bg);
  border: 1px solid var(--adv-story-border);
  box-shadow: 0 8px 24px rgba(124, 115, 255, 0.08);
  margin-bottom: 14px;
}

.adventure-story-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
  margin-bottom: 10px;
}

.adventure-node__text,
.adventure-intro__hook,
.adventure-recap__quote,
.adventure-result__recap {
  font-size: 1.06rem;
  line-height: 1.62;
  margin: 0;
  color: var(--adv-text);
}

.adventure-dialogue {
  color: var(--adv-dialogue);
  font-weight: 700;
}

.adventure-node__prompt {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-text-soft);
}

/* Intro */
.adventure-intro__card {
  padding: 16px;
  border-radius: 16px;
  background: var(--adv-story-bg);
  border: 1px solid var(--adv-story-border);
  margin-bottom: 16px;
}

.adventure-intro__hook {
  margin-bottom: 12px;
}

.adventure-intro__stakes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--adv-banner-bg);
  border: 1px solid var(--adv-banner-border);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--adv-heading);
}

.adventure-intro__stakes i {
  color: #f59e0b;
}

.adventure-intro__btn,
.adventure-recap__btn,
.adventure-result__btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px 18px;
  border-radius: 14px;
}

/* Choices */
.adventure-node__choices--locked .adventure-choice-btn--locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.adventure-choice-btn--locked:not([disabled]) {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.adventure-choice-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(124, 115, 255, 0.1);
  border: 1px dashed rgba(124, 115, 255, 0.35);
  color: var(--adv-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.adventure-choice-wait i {
  color: #7c3aed;
}

.adventure-penalty-banner,
.adventure-path-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 700;
  animation: adventure-path-banner-in 0.28s ease-out;
}

html[data-theme="dark"] .adventure-penalty-banner,
:root:not([data-theme="light"]) .adventure-penalty-banner,
html[data-theme="dark"] .adventure-path-banner--wrong,
:root:not([data-theme="light"]) .adventure-path-banner--wrong {
  color: #fca5a5;
}

.adventure-penalty-banner i,
.adventure-path-banner--wrong i {
  color: #ef4444;
}

.adventure-path-banner--correct {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
}

html[data-theme="dark"] .adventure-path-banner--correct,
:root:not([data-theme="light"]) .adventure-path-banner--correct {
  color: #6ee7b7;
}

.adventure-path-banner--correct i {
  color: #10b981;
}

.adventure-path-banner--recover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.38);
  color: #1d4ed8;
}

html[data-theme="dark"] .adventure-path-banner--recover,
:root:not([data-theme="light"]) .adventure-path-banner--recover {
  color: #93c5fd;
}

.adventure-path-banner--recover i {
  color: #3b82f6;
}

.adventure-path-banner--hint {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #b45309;
}

html[data-theme="dark"] .adventure-path-banner--hint,
:root:not([data-theme="light"]) .adventure-path-banner--hint {
  color: #fcd34d;
}

.adventure-path-banner--hint i {
  color: #f59e0b;
}

@keyframes adventure-path-banner-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adventure-node--penalty .adventure-scene {
  filter: saturate(1.15);
}

.adventure-node--success .adventure-scene {
  filter: saturate(1.08);
}

.adventure-story-card--penalty {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.08);
}

.adventure-story-card--success {
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

.adventure-node__choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adventure-node__choices--urgent .adventure-choice-btn {
  animation: adventure-choice-urgent 0.55s ease-in-out infinite;
}

.adventure-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--adv-choice-border);
  background: var(--adv-choice-bg);
  color: var(--adv-choice-text);
  font-size: 0.98rem;
  line-height: 1.38;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.adventure-choice-btn:hover {
  background: var(--adv-choice-hover-bg);
  border-color: var(--adv-choice-hover-border);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 115, 255, 0.14);
}

.adventure-choice-btn:active,
.adventure-choice-btn--picked {
  transform: scale(0.98);
}

.adventure-choice-btn--dimmed {
  opacity: 0.45;
  pointer-events: none;
}

.adventure-choice-btn--correct {
  border-color: rgba(16, 185, 129, 0.65) !important;
  background: rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  transform: scale(1.01);
}

.adventure-choice-btn--correct .adventure-choice-btn__letter {
  background: #10b981;
}

.adventure-choice-btn--recover {
  border-color: rgba(59, 130, 246, 0.65) !important;
  background: rgba(59, 130, 246, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22);
}

.adventure-choice-btn--recover .adventure-choice-btn__letter {
  background: #3b82f6;
}

.adventure-choice-btn--wrong {
  border-color: rgba(239, 68, 68, 0.65) !important;
  background: rgba(239, 68, 68, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22);
  animation: adventure-choice-shake 0.38s ease;
}

.adventure-choice-btn--wrong .adventure-choice-btn__letter {
  background: #ef4444;
}

.adventure-choice-btn--hint {
  border-color: rgba(245, 158, 11, 0.7) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

.adventure-choice-btn--hint .adventure-choice-btn__letter {
  background: #f59e0b;
}

@keyframes adventure-choice-shake {
  0%, 100% { transform: translateX(0) scale(0.98); }
  25% { transform: translateX(-4px) scale(0.98); }
  75% { transform: translateX(4px) scale(0.98); }
}

.adventure-choice-btn__letter {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--adv-choice-letter-bg);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.adventure-choice-btn__label {
  flex: 1;
}

.adventure-choice-btn__arrow {
  flex-shrink: 0;
  opacity: 0.35;
  font-size: 0.8rem;
  transition: opacity 0.15s, transform 0.15s;
}

.adventure-choice-btn:hover .adventure-choice-btn__arrow {
  opacity: 0.9;
  transform: translateX(2px);
}

/* Meta chips */
.adventure-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.adventure-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(124, 115, 255, 0.1);
  color: var(--adv-heading);
}

.adventure-meta-chip--streak {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

html[data-theme="dark"] .adventure-meta-chip--streak,
:root:not([data-theme="light"]) .adventure-meta-chip--streak {
  color: #fdba74;
}

/* Recap & results */
.adventure-recap,
.adventure-result {
  text-align: center;
  color: var(--adv-text);
}

.adventure-recap__badge,
.adventure-result__icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.adventure-recap__badge {
  color: #10b981;
}

.adventure-result--win .adventure-result__icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.45));
}

.adventure-result--lose .adventure-result__icon {
  color: var(--adv-text-soft);
}

.adventure-recap__title,
.adventure-result__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--adv-heading);
}

.adventure-result__subtitle {
  margin: 0 0 12px;
  color: var(--adv-text-muted);
  font-size: 0.98rem;
}

.adventure-recap__scenario {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--adv-text-muted);
}

.adventure-recap__quote,
.adventure-result__recap {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--adv-story-bg);
  border: 1px solid var(--adv-story-border);
  font-style: italic;
}

.adventure-recap__milestone,
.adventure-result__progress,
.adventure-result__cosmetic-hint {
  font-size: 0.95rem;
  color: var(--adv-text-muted);
}

.adventure-tomorrow-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--adv-banner-bg);
  border: 1px solid var(--adv-banner-border);
  font-weight: 700;
  color: var(--adv-heading);
}

.adventure-tomorrow-banner--subtle {
  font-size: 0.92rem;
}

.adventure-tomorrow-banner i {
  color: #f59e0b;
}

.adventure-result__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.adventure-result__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.adventure-result__chip--gp {
  background: var(--adv-chip-gp-bg);
  color: var(--adv-chip-gp-text);
}

.adventure-result__chip--bonus {
  background: var(--adv-chip-bonus-bg);
  color: var(--adv-chip-bonus-text);
}

.adventure-result__chip--speed {
  background: var(--adv-chip-speed-bg);
  color: var(--adv-chip-speed-text);
}

.adventure-result__cosmetic {
  margin: 12px 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--adv-cosmetic-bg);
  border: 1px solid var(--adv-cosmetic-border);
  color: var(--adv-text);
}

.adventure-result__cosmetic-label {
  color: var(--adv-text-muted);
  margin: 0;
}

.adventure-result__cosmetic-name {
  margin: 4px 0;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--adv-heading);
}

/* Loading & empty */
.adventure-loading,
.adventure-empty-state {
  text-align: center;
  padding: 28px 12px;
  color: var(--adv-text-muted);
}

.adventure-loading__spinner {
  font-size: 2rem;
  color: #7c3aed;
  margin-bottom: 12px;
}

.adventure-empty-state__text {
  margin: 0;
  font-size: 1rem;
}

/* Win confetti */
.adventure-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}

.adventure-confetti::before {
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  top: -35%;
  height: 50%;
  background-image:
    radial-gradient(circle, #f59e0b 2px, transparent 2.5px),
    radial-gradient(circle, #a855f7 2px, transparent 2.5px),
    radial-gradient(circle, #10b981 2px, transparent 2.5px);
  background-size: 88px 88px, 112px 112px, 100px 100px;
  background-position: 0 0, 28px 20px, 14px 40px;
  opacity: 0;
  animation: adventure-confetti-burst 2.4s ease-out forwards;
}

.adventure-result {
  position: relative;
}

/* Dashboard badge */
.student-action-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
  border: 2px solid var(--adv-badge-dot-border, #faf8ff);
  pointer-events: none;
  animation: adventure-badge-pulse 1.6s ease-in-out infinite;
}

.action-btn-small,
.student-mobile-action-btn {
  position: relative;
}

.action-btn-small.action-ninety-second-adventure:not(:disabled) {
  border-left: 3px solid #f59e0b;
}

html[data-theme="light"] .adventure-overlay .btn.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

html[data-theme="light"] .adventure-overlay .btn.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

html[data-theme="light"] .adventure-overlay .btn.btn-secondary {
  color: #1f2937;
  border-color: rgba(124, 115, 255, 0.45);
  background: #ffffff;
}

html[data-theme="light"] .adventure-overlay .btn.btn-secondary:hover:not(:disabled) {
  background: rgba(124, 115, 255, 0.1);
  border-color: #7c73ff;
}

/* Animations */
@keyframes adventure-panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes adventure-body-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes adventure-accent-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes adventure-emoji-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes adventure-glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes adventure-sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes adventure-timer-urgent {
  0%, 100% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.18); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.32); }
}

@keyframes adventure-choice-urgent {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

@keyframes adventure-win-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes adventure-confetti-burst {
  0% {
    opacity: 0;
    transform: translateY(-15%);
  }
  18% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translateY(130%);
  }
}

@keyframes adventure-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 520px) {
  .adventure-overlay {
    padding: 10px;
  }

  .adventure-overlay__panel {
    border-radius: 18px;
    max-height: 94dvh;
  }

  .adventure-overlay__title {
    font-size: 1.05rem;
  }

  .adventure-scene__emoji {
    font-size: 2.8rem;
  }

  .adventure-node__text,
  .adventure-intro__hook {
    font-size: 1rem;
  }

  .adventure-choice-btn {
    padding: 12px;
  }
}

.adventure-overlay--lobby .adventure-overlay__panel {
  width: min(960px, 100%);
  max-height: min(92vh, 820px);
}

.adventure-overlay--lobby .adventure-overlay__timer-wrap {
  display: none !important;
}

.adventure-overlay__body:has(.adventure-lobby) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Adventure lobby: today's quest + achievements + leaderboard */
.adventure-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.adventure-lobby__panel {
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adventure-lobby__panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adventure-lobby__panel--quest {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 247, 237, 0.94) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.adventure-lobby__panel--quest .adventure-lobby__panel-label {
  color: #b45309;
}

.adventure-lobby__panel--records {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(99, 102, 241, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(238, 242, 255, 0.98) 0%, rgba(224, 231, 255, 0.94) 100%);
  border: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 16px 18px 16px 22px;
}

.adventure-lobby__panel--records .adventure-lobby__panel-label {
  color: #4338ca;
}

html[data-theme="dark"] .adventure-lobby__panel--quest,
:root:not([data-theme="light"]) .adventure-lobby__panel--quest {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(251, 191, 36, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(69, 45, 12, 0.55) 0%, rgba(28, 22, 14, 0.72) 100%);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .adventure-lobby__panel--records,
:root:not([data-theme="light"]) .adventure-lobby__panel--records {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(99, 102, 241, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(30, 27, 75, 0.72) 0%, rgba(15, 14, 32, 0.82) 100%);
  border-color: rgba(129, 140, 248, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.adventure-lobby__main {
  min-width: 0;
  overflow-y: auto;
}

.adventure-lobby__sidebar {
  min-width: 0;
  gap: 12px;
  overflow: hidden;
}

.adventure-records-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adventure-records-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0 2px;
}

.adventure-records-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(255, 255, 255, 0.55);
  color: var(--adv-text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.adventure-records-tab--active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
}

.adventure-records-panels {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.adventure-records-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 4px;
  display: none;
}

.adventure-records-panel--active {
  display: flex;
  flex-direction: column;
}

.adventure-today-results {
  margin-top: 4px;
}

.adventure-today-results__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
}

.adventure-today-results__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.adventure-today-results__banner--win {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
}

.adventure-today-results__banner--lose {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b91c1c;
}

.adventure-result__chips--inline {
  justify-content: flex-start;
  margin: 10px 0;
}

.adventure-path-steps {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--adv-story-border);
}

.adventure-path-steps--compact .adventure-path-steps__list {
  max-height: 140px;
}

.adventure-path-steps__title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-text-soft);
}

.adventure-path-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adventure-path-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.8rem;
  line-height: 1.4;
}

.adventure-path-steps__num {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--adv-timer-track);
  color: var(--adv-text-muted);
}

.adventure-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adventure-history-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--adv-story-border);
}

.adventure-history-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.adventure-history-item__date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--adv-text-soft);
}

.adventure-history-item__outcome {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adventure-history-item__outcome--win { color: #047857; }
.adventure-history-item__outcome--timeout { color: #b91c1c; }
.adventure-history-item__outcome--failed { color: #c2410c; }
.adventure-history-item__outcome--abandon { color: var(--adv-text-soft); }

.adventure-history-item__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--adv-heading);
}

.adventure-history-item__recap {
  margin: 0 0 6px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--adv-text-muted);
}

.adventure-history-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--adv-text-soft);
}

.adventure-history-item__meta i {
  margin-right: 3px;
}

html[data-theme="dark"] .adventure-records-tab,
:root:not([data-theme="light"]) .adventure-records-tab {
  background: rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .adventure-history-item,
html[data-theme="dark"] .adventure-path-steps,
:root:not([data-theme="light"]) .adventure-history-item,
:root:not([data-theme="light"]) .adventure-path-steps {
  background: rgba(0, 0, 0, 0.22);
}

.adventure-lobby__section {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.adventure-lobby__section--leaderboard {
  flex: 1;
  min-height: 0;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.22);
}

.adventure-lobby__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.adventure-lobby__section-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
}

.adventure-lobby__section-help {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--adv-text-soft);
}

.adventure-lobby__points-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--adv-chip-gp-bg);
  color: var(--adv-chip-gp-text);
}

.adventure-lobby__today-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
}

.adventure-lobby__quest-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--adv-heading);
}

.adventure-lobby__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.adventure-difficulty {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.adventure-difficulty--easy {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.adventure-difficulty--medium {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.adventure-difficulty--hard {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.adventure-achievement__quest .adventure-difficulty {
  margin-left: 4px;
  vertical-align: middle;
}

.adventure-lobby__start-hint {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--adv-text-muted);
}

.adventure-lobby__empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--adv-text-soft);
  font-style: italic;
}

.adventure-scene--lobby {
  margin-bottom: 12px;
}

.adventure-scene--lobby .adventure-scene__emoji {
  font-size: 3.2rem;
}

.adventure-intro__card--lobby {
  margin-bottom: 12px;
}

.adventure-today-reward {
  margin: 12px 0 10px;
}

.adventure-today-reward__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
}

.adventure-today-reward__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--adv-banner-bg);
  border: 1px solid var(--adv-banner-border);
}

.adventure-today-reward__emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.adventure-today-reward__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  color: var(--adv-text);
}

.adventure-today-reward__text strong {
  color: var(--adv-heading);
}

.adventure-today-reward__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.adventure-today-reward__pts {
  font-size: 0.78rem;
  font-weight: 800;
  color: #f59e0b;
}

.adventure-achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  max-height: min(34vh, 260px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adventure-achievement {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--adv-story-bg);
  border: 1px solid var(--adv-story-border);
}

.adventure-achievement--earned {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}

.adventure-achievement--missed {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  opacity: 0.88;
}

.adventure-achievement__status {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--adv-chip-gp-text);
}

.adventure-achievement--missed .adventure-achievement__status {
  color: #dc2626;
}

.adventure-lobby__empty-item {
  list-style: none;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--adv-text-soft);
  font-style: italic;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(99, 102, 241, 0.25);
}

.adventure-achievement__icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.adventure-achievement__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adventure-achievement__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--adv-heading);
}

.adventure-achievement__quest {
  font-size: 0.72rem;
  color: var(--adv-text-soft);
}

.adventure-achievement__pts,
.adventure-achievement__desc {
  display: none;
}

.adventure-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adventure-leaderboard__row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--adv-story-bg);
  border: 1px solid var(--adv-story-border);
  font-size: 0.84rem;
}

.adventure-leaderboard__row--self {
  border-color: var(--adv-choice-hover-border);
  background: var(--adv-choice-hover-bg);
}

.adventure-leaderboard__rank {
  font-weight: 800;
  color: var(--adv-text-soft);
  min-width: 2rem;
}

.adventure-leaderboard__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--adv-story-border);
}

.adventure-leaderboard__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--adv-timer-track);
  color: var(--adv-text-soft);
  font-size: 0.75rem;
}

.adventure-leaderboard__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--adv-text);
}

.adventure-leaderboard__score {
  font-weight: 800;
  color: var(--adv-chip-gp-text);
}

.adventure-recap__badge--inline {
  margin: 8px auto 10px;
}

.adventure-recap__title--inline {
  text-align: center;
  margin: 0 0 8px;
}

.adventure-recap__quote--inline {
  margin-bottom: 12px;
}

.adventure-result__chip--achievement {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.adventure-result__achievement {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--adv-banner-bg);
  border: 1px solid var(--adv-banner-border);
  text-align: center;
}

.adventure-result__achievement-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adv-eyebrow);
}

.adventure-result__achievement-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--adv-heading);
}

.adventure-result__achievement-points {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
}

@media (max-width: 760px) {
  .adventure-overlay--lobby .adventure-overlay__panel {
    width: min(600px, 100%);
    max-height: min(94vh, 900px);
  }

  .adventure-lobby {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .adventure-lobby__sidebar {
    border-top: none;
    padding-top: 0;
  }

  .adventure-lobby__main {
    overflow: visible;
  }

  .adventure-achievement-list {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .adventure-overlay--enter .adventure-overlay__panel,
  .adventure-overlay__body--fade,
  .adventure-scene__emoji,
  .adventure-scene__glow,
  .adventure-scene__sparkles span,
  .adventure-overlay__timer-wrap--urgent,
  .adventure-node__choices--urgent .adventure-choice-btn,
  .student-action-badge-dot,
  .adventure-confetti::before {
    animation: none !important;
  }
}
