/* ============================================================
   QUIZ SYSTEM — STYLES
   Dark, soft-glow, futuristic theme with glass panels
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg:          #060614;
  --navy:        #0d0d2b;
  --purple:      #7c3aed;
  --purple-mid:  #9333ea;
  --purple-light: #a78bfa;
  --pink:        #ec4899;
  --pink-light:  #f472b6;
  --accent:      linear-gradient(135deg, var(--purple), var(--pink));
  --glow-purple: rgba(124, 58, 237, 0.55);
  --glow-pink:   rgba(236, 72, 153, 0.45);

  /* Glass */
  --glass-bg:    rgba(255, 255, 255, 0.055);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);

  /* Text */
  --text:        #f0f0ff;
  --text-dim:    rgba(240, 240, 255, 0.58);
  --text-muted:  rgba(240, 240, 255, 0.35);

  /* Semantic */
  --correct:     #10b981;
  --correct-glow: rgba(16, 185, 129, 0.5);
  --wrong:       #ef4444;
  --wrong-glow:  rgba(239, 68, 68, 0.5);
  --warning:     #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.5);

  /* Sizing */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Animated background ──────────────────────────────────── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 80% at 20% 10%, #1a0533 0%, transparent 60%),
              radial-gradient(ellipse 60% 60% at 80% 90%, #0d0530 0%, transparent 55%),
              radial-gradient(ellipse 100% 100% at 50% 50%, #0a0a1e 0%, var(--bg) 100%);
  animation: bgPulse 18s ease-in-out infinite;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  animation-delay: 0s;
  animation-duration: 22s;
}
.bg-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
  animation-delay: -7s;
  animation-duration: 18s;
}
.bg-orb-3 {
  width: 300px; height: 300px;
  top: 50%; left: 55%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(147,51,234,0.1) 0%, transparent 70%);
  animation-delay: -14s;
  animation-duration: 25s;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.85; }
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  33%       { transform: translateY(-40px) scale(1.05); }
  66%       { transform: translateY(25px) scale(0.96); }
}

/* ── Screens ──────────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  overflow: hidden auto;
  padding: 24px;
}

.screen-active {
  opacity: 1;
  pointer-events: auto;
  animation: screenFadeIn 0.6s var(--ease-out) forwards;
}

.screen-exit {
  animation: screenFadeOut 0.25s var(--ease-in-out) forwards;
  pointer-events: none;
}

.screen-enter {
  animation: screenSlideUp 0.4s var(--ease-out) forwards;
  pointer-events: auto;
}

@keyframes screenFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes screenFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes screenSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Password Screen ──────────────────────────────────────── */
.password-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}

.password-logo {
  font-size: 3rem;
  animation: logoBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px var(--glow-purple));
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.password-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.password-subtitle {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -6px;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  gap: 0;
}

.password-input-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.password-input-wrapper:focus-within::before {
  opacity: 1;
  animation: glowBorderPulse 2s ease-in-out infinite;
}

@keyframes glowBorderPulse {
  0%, 100% { opacity: 0.8; filter: blur(0px); }
  50%       { opacity: 1;   filter: blur(2px); }
}

.password-input {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 16px 20px;
  background: rgba(13, 13, 43, 0.8);
  border: 1px solid var(--glass-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(12px);
  letter-spacing: 0.15em;
}

.password-input:focus {
  background: rgba(20, 10, 50, 0.9);
  border-color: transparent;
}

.password-input.input-pulse {
  animation: inputPulse 0.15s ease-out;
}

@keyframes inputPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.008); }
  100% { transform: scale(1); }
}

.password-input.input-wrong {
  animation: shakeWrong 0.35s ease-out;
  border-color: var(--wrong);
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(3px); }
}

.password-submit-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-size: 1.1rem;
}

.password-submit-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.password-submit-btn:active {
  transform: scale(0.96);
}

.password-error {
  font-size: 0.82rem;
  color: var(--wrong);
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 1.2em;
  filter: blur(3px);
}

.password-error.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: errorAppear 0.3s var(--ease-out) forwards;
}

@keyframes errorAppear {
  from { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ── Home Screen ──────────────────────────────────────────── */
.home-container {
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.home-header {
  text-align: center;
  margin-bottom: 48px;
}

.home-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.home-subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 400;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
}

/* ── Quiz Card ────────────────────────────────────────────── */
.quiz-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  list-style: none;

  /* Staggered entrance — set via JS */
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    opacity 0.35s ease;
}

/* Inner wrapper carries the float animation so the card's hit-box stays stable */
.quiz-card-inner {
  position: relative;
  padding: 32px 28px;
  animation: cardFloat 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.quiz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.quiz-card:hover::before { opacity: 1; }

.quiz-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(167, 139, 250, 0.45);
  background: var(--glass-bg-hover);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.4),
    0 0 24px var(--glow-purple),
    0 0 0 1px rgba(167,139,250,0.25) inset;
}

.quiz-card:active {
  transform: translateY(-2px) scale(0.97);
  transition-duration: 0.1s;
}

.quiz-card-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.quiz-card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.3));
}

.quiz-card:hover .quiz-card-icon {
  transform: scale(1.12) rotate(-3deg);
}

.quiz-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  transition: color 0.3s;
}

.quiz-card-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 20px;
}

.quiz-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quiz-card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quiz-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Quiz Screen ──────────────────────────────────────────── */
.quiz-wrapper {
  width: 100%;
  max-width: 760px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */
.quiz-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-icon:hover {
  background: var(--glass-bg-hover);
  color: var(--text);
  border-color: var(--glass-border-hover);
  transform: scale(1.07);
}

.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 99px;
  transition: width 0.5s var(--ease-out);
  box-shadow: 0 0 10px var(--glow-purple);
}

.progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 40px;
  text-align: right;
}

/* Timer Ring */
.timer-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.timer-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.timer-bg-path {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 2.8;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.timer-fg-path {
  fill: none;
  stroke: var(--correct);
  stroke-width: 2.8;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.timer-ring.timer-warning .timer-fg-path { stroke: var(--warning); }
.timer-ring.timer-danger  .timer-fg-path { stroke: var(--wrong); }
.timer-ring.timer-danger {
  animation: timerPulse 0.6s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

/* Question Area */
.question-area {
  min-height: 140px;
  display: flex;
  align-items: center;
}

.question-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.question-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 14px;
}

.question-text {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* Question transition animations */
.question-exit-left {
  animation: questionExitLeft 0.3s var(--ease-in-out) forwards;
}
.question-enter-right {
  animation: questionEnterRight 0.35s var(--ease-out) forwards;
}

@keyframes questionExitLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes questionEnterRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Answers Grid */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
}

.answer-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(12px);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.answer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.05));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.answer-card:hover:not(.disabled)::before { opacity: 1; }

.answer-card:hover:not(.disabled) {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(167,139,250,0.4);
  background: var(--glass-bg-hover);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), 0 0 16px rgba(124,58,237,0.2);
}

.answer-card:active:not(.disabled) {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.answer-label {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-light);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.answer-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

/* Answer states */
.answer-card.correct {
  background: rgba(16,185,129,0.15);
  border-color: var(--correct);
  box-shadow: 0 0 20px var(--correct-glow), inset 0 0 20px rgba(16,185,129,0.08);
  animation: correctPulse 0.5s ease-out;
}

.answer-card.correct .answer-label {
  background: var(--correct);
  border-color: var(--correct);
  color: #fff;
}

.answer-card.wrong {
  background: rgba(239,68,68,0.15);
  border-color: var(--wrong);
  box-shadow: 0 0 20px var(--wrong-glow);
  animation: wrongShake 0.35s ease-out;
}

.answer-card.wrong .answer-label {
  background: var(--wrong);
  border-color: var(--wrong);
  color: #fff;
}

.answer-card.show-correct {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.5);
}

.answer-card.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.answer-card.disabled.correct,
.answer-card.disabled.wrong,
.answer-card.disabled.show-correct {
  opacity: 1;
}

@keyframes correctPulse {
  0%   { box-shadow: 0 0 0 0 var(--correct-glow); }
  50%  { box-shadow: 0 0 0 16px transparent, 0 0 30px var(--correct-glow); }
  100% { box-shadow: 0 0 20px var(--correct-glow); }
}

@keyframes wrongShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ── Results Screen ───────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.results-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  width: 100%;
  max-width: 440px;
}

.results-icon {
  font-size: 3.5rem;
  animation: trophyBounce 1.2s var(--ease-out) forwards;
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.5));
}

@keyframes trophyBounce {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(5deg); }
  80%  { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.results-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.5s 0.3s var(--ease-out) forwards;
}

/* Score Ring */
.score-ring {
  position: relative;
  width: 160px;
  height: 160px;
  opacity: 0;
  animation: fadeInUp 0.5s 0.5s var(--ease-out) forwards;
}

.score-ring-svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}

.score-ring-fill {
  fill: none;
  stroke: url(#score-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.29; /* 2π×54 */
  stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1.2s var(--ease-out);
  filter: drop-shadow(0 0 8px var(--glow-purple));
}

.score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.score-denom {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

/* Score gradient definition (hidden SVG) */
body::after {
  content: '';
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
}

.results-message {
  font-size: 1rem;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeInUp 0.5s 0.8s var(--ease-out) forwards;
}

.results-actions {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: fadeInUp 0.5s 1s var(--ease-out) forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.55);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.96);
}

/* ── SVG gradient defs (inline, hidden) ──────────────────── */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .answers-grid {
    grid-template-columns: 1fr;
  }

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

  .home-title {
    font-size: 1.8rem;
  }

  .question-card {
    padding: 24px 20px;
  }

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

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

  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .password-title {
    font-size: 1.6rem;
  }
}
