@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-base:        #0d1117;
  --bg-card:        #161c27;
  --bg-card-hover:  #1c2333;
  --bg-subtle:      rgba(255,255,255,0.04);
  --bg-input:       rgba(0,0,0,0.35);

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-strong:  rgba(255,255,255,0.18);
  --border-focus:   #4b7cf3;

  /* Text */
  --text-primary:   #f0f4ff;
  --text-secondary: #7d8fa8;
  --text-tertiary:  #4a5568;

  /* Brand accent — cool indigo, not generic blue */
  --accent:         #4b7cf3;
  --accent-dim:     rgba(75,124,243,0.14);
  --accent-glow:    rgba(75,124,243,0.22);

  /* Status */
  --correct:        #2dd4a0;
  --correct-dim:    rgba(45,212,160,0.12);
  --wrong:          #f0516a;
  --wrong-dim:      rgba(240,81,106,0.12);
  --amber:          #f5a623;

  /* Grid */
  --grid-line:      rgba(255,255,255,0.035);

  /* Radius scale */
  --r-sm:   0.625rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   1.75rem;
  --r-pill: 9999px;

  /* Transition */
  --ease:   cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─────────────────────────────────────────────
   RESET & BASE (NATIVE APP FEEL)
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%; 
  overscroll-behavior-y: none; /* Voorkomt pull-to-refresh */
  -webkit-tap-highlight-color: transparent; /* Verwijder blauwe tap flits */
}

body {
  min-height: 100vh;
  min-height: 100svh; /* Beter voor mobiele browsers met adresbalk */
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  user-select: none; /* Tekst niet selecteerbaar bij snel tikken */
  -webkit-user-select: none;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
input, textarea, select { 
  font-family: inherit; 
  user-select: auto; /* Invoervelden moeten wel selecteerbaar zijn */
  -webkit-user-select: auto;
}

/* ─────────────────────────────────────────────
   LAYOUT WRAPPERS
───────────────────────────────────────────── */
.theme-hub,
.theme-quiz {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem; /* Aangepast voor kleinere schermen */
}

@media (min-width: 640px) {
  .theme-hub,
  .theme-quiz {
    padding: 3rem 2rem;
    align-items: center;
  }
}

.max-w-4xl { max-width: 58rem;  width: 100%; }
.max-w-3xl { max-width: 50rem;  width: 100%; }
.max-w-2xl { max-width: 44rem;  width: 100%; }
.max-w-md  { max-width: 30rem;  width: 100%; }

/* Fix voor inline paddings op héél kleine telefoons */
@media (max-width: 400px) or (max-height: 700px) {
  .theme-quiz > .max-w-md { padding: 1rem !important; }
}

/* Override voor hardgecodeerde grids in host.html op kleine schermen */
@media (max-width: 768px) {
  #q-options[style] {
    grid-template-columns: 1fr !important;
  }
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────────── */
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

.text-xs  { font-size: 0.75rem;  line-height: 1.4; }
.text-sm  { font-size: 0.875rem; line-height: 1.5; }
.text-lg  { font-size: 1.125rem; line-height: 1.4; }
.text-xl  { font-size: 1.25rem;  line-height: 1.3; }
.text-2xl { font-size: 1.5rem;   line-height: 1.25; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem;  line-height: 1.15; }
.text-5xl { font-size: 3rem;     line-height: 1.1; }
.text-7xl { font-size: 4.5rem;   line-height: 1; letter-spacing: -0.02em; }

@media (max-width: 480px) {
  .text-4xl { font-size: 1.875rem; }
  .text-5xl { font-size: 2.5rem; }
  .text-7xl { font-size: 3.5rem; }
}

.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase   { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }

/* Color utilities */
.text-white       { color: var(--text-primary); }
.text-slate-400   { color: var(--text-secondary); }
.text-slate-500   { color: var(--text-tertiary); }
.text-emerald-400 { color: var(--correct); }
.text-rose-400    { color: var(--wrong); }
.text-amber-400   { color: var(--amber); }

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.hidden { display: none !important; }

.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.flex-1         { flex: 1 1 0%; }
.flex-shrink-0  { flex-shrink: 0; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }
.flex-wrap      { flex-wrap: wrap; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.w-full  { width: 100%; }
.min-h-screen { min-height: 100vh; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 640px) {
  .md\:grid-cols-2   { grid-template-columns: repeat(2, 1fr); }
  .md\:col-span-2    { grid-column: span 2; }
  .md\:flex-row      { flex-direction: row; }
  .md\:items-center  { align-items: center; }
  .md\:w-64          { width: 16rem; }
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10{ padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-3 { padding-bottom: 0.75rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.ml-auto { margin-left: auto; }

.rounded-xl   { border-radius: var(--r-md); }
.rounded-2xl  { border-radius: var(--r-lg); }
.rounded-full { border-radius: var(--r-pill); }

.border-t       { border-top: 1px solid var(--border); }
.border-b       { border-bottom: 1px solid var(--border); }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.inset-0  { inset: 0; }
.z-50     { z-index: 50; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* focus-ring for accessibility */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   EYEBROW LABEL
───────────────────────────────────────────── */
.quiz-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   BENTO CARDS
───────────────────────────────────────────── */
.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.22s var(--ease),
              background  0.22s var(--ease),
              transform   0.22s var(--ease),
              box-shadow  0.22s var(--ease);
}
.bento-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(75,124,243,0.08);
}

/* Grid-pattern inset used as decorative preview */
.bento-grid-pattern {
  position: relative;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid rgba(255,255,255,0.045);
  border-radius: var(--r-md);
}

/* Badge top-right of grid pattern */
.bento-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */

/* Ghost pill — used as "Start sessie ↗" */
.epic-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.epic-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Small round icon button */
.epic-icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.epic-icon-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-strong);
}

/* Primary action button */
.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 0.8rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease,
              transform 0.15s ease,
              box-shadow 0.15s ease;
  white-space: nowrap;
}
/* Touch-friendly state */
.quiz-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: none;
}
@media (hover: hover) {
  .quiz-btn:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(75,124,243,0.35);
  }
}
.quiz-btn:disabled {
  background: rgba(255,255,255,0.09);
  color: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
}

/* ─────────────────────────────────────────────
   QUIZ PANELS & INPUTS
───────────────────────────────────────────── */
.quiz-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.quiz-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.18s ease;
}
.quiz-input:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.quiz-input::placeholder { color: var(--text-secondary); opacity: 0.7; }

/* ─────────────────────────────────────────────
   TIMER RING
───────────────────────────────────────────── */
.ring-track { stroke: rgba(255,255,255,0.07); }
.ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.2s linear, stroke 0.3s ease;
}
.ring-fill.ring-urgent { stroke: var(--wrong); }

/* ─────────────────────────────────────────────
   ANSWER OPTIONS
───────────────────────────────────────────── */
.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
/* Touch state for options */
.quiz-option:active:not(:disabled) {
  transform: scale(0.98);
  background: rgba(255,255,255,0.1);
}
@media (hover: hover) {
  .quiz-option:hover:not(:disabled) {
    background: rgba(255,255,255,0.07);
    border-color: var(--border-strong);
    transform: translateX(2px);
  }
}

.quiz-option-selected {
  border-color: #4b7cf3 !important;
  background: rgba(75, 124, 243, 0.25) !important;
  box-shadow: 0 0 15px rgba(75, 124, 243, 0.5) !important;
}

.quiz-option-selected .quiz-letter {
  background: #4b7cf3 !important;
  color: #ffffff !important;
}
.quiz-option-correct {
  border-color: var(--correct);
  background: var(--correct-dim);
}
.quiz-option-wrong {
  border-color: var(--wrong);
  background: var(--wrong-dim);
}

/* ─────────────────────────────────────────────
   EXTRA STYLING VOOR SELECTIE & AWARDS
───────────────────────────────────────────── */
.team-preset-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--border-strong) !important;
}

.avatar-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--border-strong) !important;
}

/* Letter badge (A B C D) */
.quiz-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
}

.avatar-btn.active {
  border-color: var(--amber) !important;
  color: var(--amber) !important;
  background: rgba(245, 166, 35, 0.1) !important; /* Geeft een subtiele oranje achtergrondgloed */
}

/* ─────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────── */
.bar-track {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  width: 0%;
  transition: width 0.6s ease;
}

/* ─────────────────────────────────────────────
   LEADERBOARD & PODIUM
───────────────────────────────────────────── */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: background 0.15s ease;
}

.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  height: 220px;
  margin: 2rem auto;
  width: 100%;
}
.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 32%;
  animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
/* De balken met 3D schaduw en verloop */
.podium-bar {
  width: 100%;
  position: relative;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Goud, Zilver, Brons kleuren */
.podium-item:nth-child(1) .podium-bar { height: 160px; background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%); z-index: 10; }
.podium-item:nth-child(2) .podium-bar { height: 120px; background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%); }
.podium-item:nth-child(3) .podium-bar { height: 90px; background: linear-gradient(180deg, #d97706 0%, #78350f 100%); }

/* Responsive podium voor kleine telefoons */
@media (max-width: 380px), (max-height: 700px) {
  .podium-container {
    height: 160px;
    margin: 1rem auto;
  }
  .podium-bar { font-size: 1.1rem; padding-top: 0.5rem; }
  .podium-item:nth-child(1) .podium-bar { height: 110px; }
  .podium-item:nth-child(2) .podium-bar { height: 80px; }
  .podium-item:nth-child(3) .podium-bar { height: 50px; }
}

/* ─────────────────────────────────────────────
   PIN ENTRY
───────────────────────────────────────────── */
.pin-container {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.pin-digit-box {
  width: 3.25rem;
  height: 4rem;
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pin-digit-box.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(75,124,243,0.06);
}
.pin-digit-box.filled {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 380px) {
  .pin-digit-box {
    width: 2.85rem;
    height: 3.6rem;
    font-size: 1.5rem;
    border-radius: 0.6rem;
  }
  .pin-container { gap: 0.5rem; }
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fade-up 0.4s var(--ease) backwards;
}
.delay-1 { animation-delay: 0.07s; }
.delay-2 { animation-delay: 0.14s; }
.delay-3 { animation-delay: 0.21s; }
.delay-4 { animation-delay: 0.28s; }

/* Pulse for waiting-room hint text */
@keyframes soft-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.animate-pulse-soft { animation: soft-pulse 2.5s ease-in-out infinite; }

@keyframes slideUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ─────────────────────────────────────────────
   INLINE BG HELPERS used in pubquiz/index.html
───────────────────────────────────────────── */
.bg-white\/5  { background: rgba(255,255,255,0.05); }
.bg-white\/10 { background: rgba(255,255,255,0.10); }
.bg-black\/40 { background: rgba(0,0,0,0.40); }
.bg-black\/80 { background: rgba(0,0,0,0.80); }
.bg-gradient-to-r { background: linear-gradient(to right, rgba(29,53,121,0.35), rgba(37,38,100,0.35)); }
.backdrop-blur-md { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.shadow-2xl   { box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.shadow-lg    { box-shadow: 0 10px 30px rgba(0,0,0,0.35); }

.bg-blue-600         { background: #2563eb; }
.bg-blue-600:hover,
.hover\:bg-blue-500:hover { background: #3b82f6; }
.text-blue-300       { color: #93c5fd; }
.border-blue-500\/30 { border-color: rgba(59,130,246,0.3); }
.border-white\/10    { border-color: rgba(255,255,255,0.10); }
.border-white\/20    { border-color: rgba(255,255,255,0.20); }
.text-rose-300       { color: #fca5a5; }
.hover\:text-rose-300:hover { color: #fca5a5; }
.hover\:text-white:hover    { color: var(--text-primary); }
.hover\:bg-white\/20:hover  { background: rgba(255,255,255,0.20); }
.transition-all      { transition: all 0.18s ease; }
.transition-colors   { transition: color 0.18s ease, background 0.18s ease; }
.leading-relaxed     { line-height: 1.65; }
.tracking-tight      { letter-spacing: -0.015em; }
.font-semibold       { font-weight: 600; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.list-disc { list-style: disc; }
.pl-4 { padding-left: 1rem; }

.filter { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

/* max-w helpers needed in index.html */
.max-w-xl  { max-width: 36rem; }
.max-w-sm  { max-width: 24rem; }
.max-h-\[90vh\] { max-height: 90vh; }

/* ─────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────
   NIEUWE UTILITIES & ANIMATIES (BUGFIXES)
───────────────────────────────────────────── */
.flex-nowrap { flex-wrap: nowrap; }

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

.animate-shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

/* ─────────────────────────────────────────────
   OPEN ANSWER REVIEW BUTTONS (HOST MODE)
───────────────────────────────────────────── */
#open-answers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.open-answer-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.open-answer-row .quiz-btn {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  width: 100%;
  max-width: none;
}

/* Ensure good/bad buttons are visible and not cut off */
.open-answer-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  justify-content: space-between;
}

.open-answer-buttons .quiz-btn {
  flex: 1;
  min-width: 0;
  overflow: visible;
}