/* ============================================================
   style.css — Global stylesheet for the re-live Quizshow Platform
   Clean, modern, dark-capable design system
   ============================================================ */
/* overcast von inline Styles */
.qs-logo{
	max-width: 30ex !important;
  max-height: 20ex !important;
	margin-top: 1.5rem;
}

/* overcast ende */

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

:root {
  --clr-primary:    #0ea5e9;
  --clr-primary-d:  #0284c7;
  --clr-primary-10: rgba(14,165,233,0.1);
  --clr-primary-20: rgba(14,165,233,0.2);

  --clr-secondary:  #1e293b;
  --clr-accent:     #22c55e;
  --clr-accent-d:   #16a34a;
  --clr-warn:       #f59e0b;
  --clr-danger:     #ef4444;
  --clr-danger-d:   #dc2626;
  --clr-success:    #22c55e;

  --clr-surface:    #f8fafc;
  --clr-white:      #ffffff;
  --clr-border:     #e2e8f0;
  --clr-border-d:   #cbd5e1;
  --clr-muted:      #64748b;
  --clr-text:       #0f172a;
  --clr-text-light: #475569;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.22);

  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { color: var(--clr-text-light); line-height: 1.65; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 64px 0; }
.flex       { display: flex; align-items: center; }
.gap-sm     { gap: 8px; }
.gap-md     { gap: 16px; }
.gap-lg     { gap: 24px; }
.center     { text-align: center; }
.hidden     { display: none !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; user-select: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  min-height: 44px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary   { background: var(--clr-primary);  color: #fff; box-shadow: 0 2px 8px rgba(14,165,233,0.35); }
.btn-primary:hover { background: var(--clr-primary-d); text-decoration: none; box-shadow: 0 4px 16px rgba(14,165,233,0.45); }

.btn-secondary { background: var(--clr-white); color: var(--clr-text); border: 1.5px solid var(--clr-border); }
.btn-secondary:hover { background: var(--clr-surface); text-decoration: none; border-color: var(--clr-border-d); }

.btn-danger    { background: var(--clr-danger); color: #fff; }
.btn-danger:hover { background: var(--clr-danger-d); text-decoration: none; }

.btn-success   { background: var(--clr-accent); color: #fff; box-shadow: 0 2px 8px rgba(34,197,94,0.3); }
.btn-success:hover { background: var(--clr-accent-d); text-decoration: none; }

.btn-sm  { padding: 7px 14px; font-size: 0.8125rem; min-height: 32px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 15px 36px; font-size: 1.0625rem; min-height: 52px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 8px 12px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 0.8125rem;
  color: var(--clr-text);
  letter-spacing: 0.01em;
}
.form-control {
  display: block; width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--font); font-size: 0.9375rem;
  color: var(--clr-text); background: var(--clr-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.form-control:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-20);
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control   { appearance: none; cursor: pointer; }
.form-hint  { font-size: 0.8rem; color: var(--clr-muted); margin-top: 4px; }
.form-error { font-size: 0.85rem; color: var(--clr-danger); margin-top: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
}
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }

/* ---- Alerts ---- */
.alert {
  padding: 13px 17px; border-radius: var(--radius-md);
  font-size: 0.875rem; margin-bottom: 20px;
  border-left: 4px solid transparent;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #dcfce7; border-color: var(--clr-success); color: #166534; }
.alert-error   { background: #fee2e2; border-color: var(--clr-danger);  color: #991b1b; }
.alert-info    { background: #e0f2fe; border-color: var(--clr-primary); color: #0c4a6e; }
.alert-warn    { background: #fef3c7; border-color: var(--clr-warn);    color: #78350f; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-blue    { background: #e0f2fe; color: #0369a1; }
.badge-green   { background: #dcfce7; color: #166534; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-grey    { background: #f1f5f9; color: #475569; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.tbl th {
  text-align: left; padding: 10px 16px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--clr-muted);
  border-bottom: 2px solid var(--clr-border);
  background: var(--clr-surface);
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--clr-border); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: var(--clr-surface); }

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 50px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  display: flex; align-items: center;
  padding: 0.5em 1em;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-brand { font-weight: 800; font-size: 1.2rem; color: var(--clr-text); letter-spacing: -0.04em; display: flex; align-items: center; flex-shrink: 0; }
.navbar-brand span { color: var(--clr-primary); margin-left: 4px; }
.navbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; padding-left: 32px; }
.navbar-logo { height: 30px; width: auto; object-fit: contain; display: block; }
.navbar-brand-sep { width: 1px; height: 22px; background: var(--clr-border-d); border-radius: 1px; flex-shrink: 0; }
.navbar-nav  { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-nav a { font-size: 0.875rem; font-weight: 500; color: var(--clr-text); padding: 6px 12px; border-radius: var(--radius-sm); transition: background var(--transition); }
.navbar-nav a:hover { background: var(--clr-surface); text-decoration: none; }

.page-body { padding-top: 60px; }

/* ---- Hero (landing) ---- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  padding: 80px 24px;
}
.hero-tag {
  display: inline-block; background: var(--clr-primary-10);
  color: var(--clr-primary); font-size: 0.75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 20px; max-width: 680px; }
.hero p   { max-width: 520px; margin: 0 auto 40px; font-size: 1.0625rem; }

.alias-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.alias-form .form-control { flex: 1; min-width: 220px; }

/* ===========================================================
   PLAYER SCENE — full-page wrapper
   =========================================================== */
.player-scene {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 50px);
  padding-top: 50px;
 /* background: #0f172a;*/
}

/* Quiz panel — hidden until quiz-active */
.quiz-panel {
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease, padding 0.45s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.player-scene.quiz-active .quiz-panel {
  width: 44%;
  opacity: 1;
  pointer-events: all;
  padding: 24px 32px 24px 16px;
  overflow-y: auto;
}

/* Video column */
.player-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 24px;
  transition: padding 0.45s cubic-bezier(0.4,0,0.2,1);
  min-width: 0;
}

.player-scene.quiz-active .player-wrap {
  padding: 24px 32px 24px 16px;
  align-items: center;
}

.player-wrap video {
  width: 100%;
  max-height: calc(100vh - 98px);
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* Quiz card inside the panel */
.quiz-card {
  background: #1e2d45;
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: translateX(-24px);
  transition: transform 0.45s cubic-bezier(0.34,1.2,0.64,1), opacity 0.35s ease;
  opacity: 0;
  overflow-y: auto;
  max-height: calc(100vh - 114px);
  border: 1px solid rgba(255,255,255,0.08);
}
.quiz-panel.active .quiz-card {
  transform: translateX(0);
  opacity: 1;
}

/* Top bar: question label + timer */
.quiz-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* Navbar video elapsed time pill */
.navbar-video-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15,40,80,0.9);
  border: 1.5px solid rgba(56,189,248,0.4);
  border-radius: 999px;
  padding: 5px 15px 5px 11px;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 3px rgba(56,189,248,0.08), 0 2px 10px rgba(0,0,0,0.4);
  user-select: none;
  flex-shrink: 0;
}
.navbar-video-timer svg {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Question header */
.quiz-card-header {
  margin-bottom: 24px;
}
.quiz-question-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #38bdf8;
  background: rgba(56,189,248,0.12);
  padding: 4px 12px; border-radius: 100px;
}
.quiz-card h2 {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: #f1f5f9;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.quiz-type-hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Answer options */
.quiz-options {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.15s ease;
  font-size: 0.9375rem;
  color: #e2e8f0;
  background: rgba(255,255,255,0.04);
  min-height: 52px;
  user-select: none;
  position: relative;
}
.quiz-option:hover {
  border-color: var(--clr-primary);
  background: rgba(14,165,233,0.12);
  transform: translateX(2px);
}
.quiz-option.selected {
  border-color: var(--clr-primary);
  background: rgba(14,165,233,0.15);
}
.quiz-option.correct {
  border-color: var(--clr-accent);
  background: rgba(34,197,94,0.12);
  color: #86efac;
}
.quiz-option.wrong {
  border-color: var(--clr-danger);
  background: rgba(239,68,68,0.1);
  color: #fca5a5;
}
.quiz-option.disabled {
  cursor: default;
  pointer-events: none;
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  display: none;
}

/* Option letter badge — shape indicates single (round) vs. multiple (rounded square) */
.option-letter {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  font-size: 0.75rem; font-weight: 700;
  color: #94a3b8;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.quiz-options--radio .option-letter {
  border-radius: 50%;
}
.quiz-option.selected .option-letter {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.quiz-option.correct .option-letter {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}
.quiz-option.wrong .option-letter {
  background: var(--clr-danger);
  border-color: var(--clr-danger);
  color: #fff;
}

.quiz-option-text { flex: 1; line-height: 1.45; }

/* Result icon on option */
.option-result-icon {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.quiz-option.correct .option-result-icon,
.quiz-option.wrong   .option-result-icon {
  opacity: 1;
}
.quiz-option.correct .option-result-icon { color: var(--clr-accent); }
.quiz-option.wrong   .option-result-icon { color: var(--clr-danger); }

/* Submit button */
.quiz-submit-btn { width: 100%; }

/* Feedback block after answering */
.quiz-feedback {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  animation: fadeSlideUp 0.35s ease forwards;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feedback-result {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.feedback-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  font-weight: 700;
}
.feedback-icon.correct { background: rgba(34,197,94,0.15); color: var(--clr-accent); border: 2px solid rgba(34,197,94,0.3); }
.feedback-icon.wrong   { background: rgba(239,68,68,0.12);  color: var(--clr-danger); border: 2px solid rgba(239,68,68,0.25); }
.feedback-text-wrap { flex: 1; }
.feedback-label {
  font-size: 1rem; font-weight: 700;
  line-height: 1.2;
}
.feedback-label.correct { color: #86efac; }
.feedback-label.wrong   { color: #fca5a5; }
.feedback-sub { font-size: 0.8rem; color: #94a3b8; margin-top: 2px; }

/* Global stat bar */
.stat-bar-section { margin-bottom: 16px; }
.stat-bar-label {
  font-size: 0.8rem; color: #94a3b8; margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.stat-bar-label strong { color: #e2e8f0; }
.stat-bar-wrap {
  height: 7px; background: rgba(255,255,255,0.1);
  border-radius: 100px; overflow: hidden;
}
.stat-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
  width: 0%;
}
.stat-bar-section--cert .stat-bar-label strong { color: #34d399; }
.stat-bar--cert { background: linear-gradient(90deg, #34d399, #22c55e); }

/* Continue button */
.quiz-continue-btn {
  width: 100%;
  margin-top: 4px;
}

/* ---- Highscore ---- */
.hs-row-me { background: rgba(14,165,233,0.06) !important; font-weight: 700; }
.hs-rank   { font-size: 1rem; font-weight: 800; color: var(--clr-muted); width: 40px; }
.hs-rank.top-1 { color: #d97706; }
.hs-rank.top-2 { color: #6b7280; }
.hs-rank.top-3 { color: #92400e; }

/* ---- Access / login forms ---- */
.access-wrap {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.access-card { max-width: 440px; width: 100%; }
.access-logo { max-width: 120px; margin: 0 auto 28px; }

/* ---- Player navbar extras ---- */
.navbar-score-pills {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.score-pill--correct {
  background: #dcfce7; color: #15803d;
  border: 1.5px solid #bbf7d0;
}
.score-pill--wrong {
  background: #fee2e2; color: #b91c1c;
  border: 1.5px solid #fecaca;
}
.score-pill--bump {
  transform: scale(1.22);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.navbar-quizshow-title {
  font-size: 0.875rem; font-weight: 600; color: var(--clr-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}
.navbar-results-link {
  font-size: 0.8125rem; font-weight: 600; color: var(--clr-primary);
  padding: 6px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-primary); white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.navbar-results-link:hover {
  background: var(--clr-primary); color: #fff; text-decoration: none;
}
.navbar-logout-btn {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); border: 1.5px solid rgba(255,255,255,0.18);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.navbar-logout-btn:hover {
  background: rgba(239,68,68,0.12); color: #ef4444;
  border-color: rgba(239,68,68,0.4); text-decoration: none;
}

/* ---- Player no-video state ---- */
.player-no-video {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px); padding-top: 60px;
}
.no-video-msg { text-align: center; padding: 40px; }
.no-video-msg h2 { margin-bottom: 12px; }

/* ---- Subtitle toggle ---- */
.sub-toggle-btn {
  position: absolute; bottom: 72px; right: 16px; z-index: 600;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 7px 13px;
  font-size: 0.8rem; cursor: pointer;
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 5px;
  transition: background var(--transition);
}
.sub-toggle-btn:hover { background: rgba(0,0,0,0.78); }
.sub-toggle-btn.active { background: var(--clr-primary); }

/* ===========================================================
   RLMODAL — shared alert / confirm modal
   =========================================================== */
.rlmodal-backdrop {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.rlmodal-backdrop.rlmodal-visible {
  opacity: 1;
  pointer-events: all;
}
.rlmodal-box {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 420px;
  padding: 32px 32px 28px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s ease;
  opacity: 0;
}
.rlmodal-backdrop.rlmodal-visible .rlmodal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.rlmodal-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 18px;
  flex-shrink: 0;
}
.rlmodal-icon--info    { background: #e0f2fe; color: var(--clr-primary); border: 2px solid rgba(14,165,233,0.25); }
.rlmodal-icon--error   { background: #fee2e2; color: var(--clr-danger);  border: 2px solid rgba(239,68,68,0.25);  }
.rlmodal-icon--warn    { background: #fef3c7; color: var(--clr-warn);    border: 2px solid rgba(245,158,11,0.25); }
.rlmodal-icon--confirm { background: #fef3c7; color: var(--clr-warn);    border: 2px solid rgba(245,158,11,0.25); }
.rlmodal-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--clr-text); text-align: center;
  margin-bottom: 8px; line-height: 1.3;
}
.rlmodal-body {
  font-size: 0.9rem; color: var(--clr-text-light);
  text-align: center; line-height: 1.6;
  margin-bottom: 24px;
}
.rlmodal-actions {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
}
.rlmodal-actions .btn { flex: 1; min-width: 100px; }

@media (max-width: 480px) {
  .rlmodal-box { padding: 24px 20px 20px; }
  .rlmodal-actions .btn { font-size: 0.875rem; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .card { padding: 20px; }
  .quiz-card { padding: 24px 18px 20px; }
  .container { padding: 0 16px; }
  .quiz-option { padding: 12px 14px; gap: 10px; }
  .btn-lg { padding: 14px 24px; }
  .navbar-quizshow-title { max-width: 130px; }
  .navbar-logo { height: 26px; }

  .player-scene {
    flex-direction: column;
  }
  .player-scene.quiz-active .quiz-panel {
    width: 100%;
    padding: 20px 16px 0;
    max-height: 55vh;
  }
  .player-scene.quiz-active .player-wrap {
    padding: 12px 16px 20px;
  }
  .player-wrap video {
    max-height: 35vh;
  }
  .quiz-card {
    max-height: none;
  }
}

/* ===========================================================
   TUTORIAL OVERLAY
   =========================================================== */
.tutorial-backdrop {
  position: fixed; inset: 0; z-index: 9950;
  background: rgba(10, 18, 35, 0.72);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tutorial-backdrop.tutorial-visible {
  opacity: 1;
  pointer-events: all;
}
.tutorial-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 560px;
  padding: 40px 36px 32px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34,1.46,0.64,1), opacity 0.28s ease;
  opacity: 0;
}
.tutorial-backdrop.tutorial-visible .tutorial-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.tutorial-title {
  font-size: 1.35rem; font-weight: 800;
  color: var(--clr-text);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.tutorial-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.tutorial-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.tutorial-step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tutorial-step-icon svg {
  display: block;
}
.tutorial-step:nth-child(1) .tutorial-step-icon { background: #e0f2fe; color: #0ea5e9; }
.tutorial-step:nth-child(2) .tutorial-step-icon { background: #fef3c7; color: #d97706; }
.tutorial-step:nth-child(3) .tutorial-step-icon { background: #dcfce7; color: #16a34a; }
.tutorial-step:nth-child(4) .tutorial-step-icon { background: #fee2e2; color: #dc2626; }
.tutorial-step:nth-child(5) .tutorial-step-icon,
.tutorial-step .tutorial-step-icon--info { background: #f0f9ff; color: #0284c7; }
.tutorial-step-text {}
.tutorial-step-title {
  font-size: 0.9rem; font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
}
.tutorial-step-body {
  font-size: 0.82rem; color: var(--clr-text-light);
  line-height: 1.5;
}
.tutorial-close-btn {
  display: block; width: 100%;
  padding: 14px 24px;
  background: var(--clr-primary);
  color: #fff;
  border: none; border-radius: var(--radius-lg);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
  letter-spacing: 0.01em;
}
.tutorial-close-btn:hover {
  background: var(--clr-primary-dark, #0284c7);
  transform: translateY(-1px);
}
.tutorial-close-btn:active { transform: translateY(0); }

@media (max-width: 480px) {
  .tutorial-box { padding: 28px 20px 24px; }
  .tutorial-steps { grid-template-columns: 1fr; gap: 16px; }
  .tutorial-step { flex-direction: row; align-items: flex-start; }
  .tutorial-step-icon { border-radius: 12px; width: 44px; height: 44px; }
}
