/* v9 styling (IBC brand) — same base as v8 with additions */
:root {
  --bg-surface:#ffffff; --bg-card:#f8fafc; --bg-card-border:rgba(15,23,42,0.08);
  --bg-card-hover:rgba(199,65,72,0.06);
  --text-main:#1e293b; --text-dim:#475569; --text-dimmer:#64748b;
  --accent:#c74148; --accent-soft:rgba(199,65,72,.08);
  --purple:#6366f1; --purple-soft:rgba(99,102,241,.08);
  --danger:#dc2626; --warn:#facc15; --success:#16a34a;
  --radius-card:1rem; --radius-pill:999px;
  --shadow-card:0 24px 48px rgba(0,0,0,.08);
  --border-card:1px solid var(--bg-card-border);
  --timer-grad:radial-gradient(circle at 30% 30%, rgba(199,65,72,0.12) 0%, rgba(199,65,72,0.02) 70%);
    --brand: rgb(199, 65, 72);       /* IBC red */
  --brand-ink: #fff;               /* text on brand */
  --brand-chip: rgba(255,255,255,.14);
  --brand-chip-border: rgba(255,255,255,.25);
}


body{margin:0;background:var(--bg-surface);color:var(--text-main);font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial;}
a{color:var(--accent);text-decoration:none;} a:hover{text-decoration:underline;}
.app-header{
  background:#000 !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 8px 24px rgba(0,0,0,.6) !important;
}
.app-header .restricted,
.app-header .logout-link,
.app-header .app-header-right a,
.app-header .btn-ghost.small{ color:#fff !important; }
.brand-row .logo-full{ filter: brightness(0) invert(1); } /* makes red logo show as white on black */

.play-layout{ gap:1rem; }
.restricted{color:var(--text-dimmer);font-size:.8rem;margin-top:.4rem}
.app-header-right{display:flex;gap:.5rem;align-items:center}
.btn-ghost.small{background:transparent;border:none;color:var(--accent);font-size:.8rem;font-weight:500;cursor:pointer}
.page-shell{max-width:1200px;margin:1.5rem auto;padding:0 1rem 2rem;display:grid;gap:1.5rem}
.card-clean{background:var(--bg-card);border-radius:var(--radius-card);border:var(--border-card);box-shadow:var(--shadow-card);padding:1.25rem}
.section-title{font-weight:600;font-size:1rem;margin-bottom:.75rem}
.quiz-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}@media(min-width:900px){.quiz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.quiz-card{background:#fff;border-radius:.75rem;border:1px solid rgba(15,23,42,.08);box-shadow:0 16px 32px rgba(0,0,0,.06);padding:1rem;display:flex;flex-direction:column}
.quiz-card-title{font-weight:600;margin-bottom:.5rem}.quiz-card-meta{font-size:.75rem;margin:0 0 .75rem 1rem}
.btn-accent{background:var(--accent);color:#fff;font-weight:600;border:none;border-radius:.6rem;padding:.6rem .75rem;box-shadow:0 16px 32px rgba(0,0,0,.08),0 0 12px rgba(199,65,72,.4);cursor:pointer}
.btn-accent:hover{background:#a83238}.btn-block{width:100%}
.btn-outline-light{border-radius:var(--radius-pill);border:1px solid var(--accent);padding:.5rem .75rem;color:var(--accent);background:transparent}
.small{font-size:.8rem; padding:0.5rem;}.hint{font-size:.7rem;color:var(--text-dimmer)}
.form-group{margin-bottom:1rem}.form-label{font-size:.8rem;color:var(--text-dim);font-weight:500;margin:.4rem 0;display:block}
.input-dark{width:100%;border-radius:.5rem;border:1px solid #94a3b8;background:#fff;color:var(--text-main);padding:.6rem}
.play-layout{display:flex;max-width:1400px;margin:1.5rem auto;padding:0 1rem 2rem;position:relative}
.play-main{flex:1 1 auto}
.audience-toggle-row{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}
.aud-btn{border-radius:var(--radius-pill);padding:.5rem .75rem;font-size:.8rem;font-weight:600;border:1px solid rgba(15,23,42,.12);background:#fff;color:var(--text-main);box-shadow:0 12px 24px rgba(0,0,0,.06)}
.aud-btn.active{border-color:var(--accent);background:var(--accent-soft);color:var(--accent);box-shadow:0 20px 40px rgba(0,0,0,.08),0 0 12px rgba(199,65,72,.4)}
.chapter-pick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-top:.75rem}
.chapter-pick-btn{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:.75rem;box-shadow:0 16px 32px rgba(0,0,0,.06);padding:.75rem;display:flex;flex-direction:column;min-height:90px;transition:.12s}
.chapter-pick-btn:hover{background:var(--bg-card-hover);border-color:var(--accent);box-shadow:0 20px 40px rgba(0,0,0,.08),0 0 12px rgba(199,65,72,.4)}
.chapter-pick-btn.disabled{opacity:.4;pointer-events:none;filter:grayscale(1)}
.chapter-big{font-weight:600}.chapter-left{margin-top:.5rem;color:var(--text-dimmer)}
.play-side{display:none}.play-side.visible{display:flex;position:fixed;inset:0 0 0 auto;width:280px;background:rgba(0,0,0,.2);z-index:9999}
.side-inner{background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 24px 48px rgba(0,0,0,.12);border-radius:1rem;padding:1rem;height:100vh;overflow:auto;width:280px}
.side-head{display:flex;justify-content:space-between;margin-bottom:1rem}
.score-flex{display:flex;gap:1rem;flex-wrap:wrap}.score-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:.75rem;box-shadow:0 16px 32px rgba(0,0,0,.06);padding:.75rem}
.score-label{color:var(--text-dimmer);font-size:.7rem;font-weight:600;text-transform:uppercase}
.score-value{font-size:1.8rem;font-weight:600}

.question-card .question-top-row{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.team-pill{background:var(--accent);color:#fff;font-weight:700;border-radius:.5rem;padding:.4rem .6rem;font-size:.8rem;box-shadow:0 10px 20px rgba(0,0,0,.12)}
.teamB-pill{background:var(--purple)}
.timer-box{min-width:150px;text-align:center;background:var(--timer-grad);border-radius:1rem;padding:.75rem 1rem;border:1px solid rgba(199,65,72,.4);box-shadow:0 24px 48px rgba(0,0,0,.08)}
.timer-label{color:var(--accent);font-size:.7rem;font-weight:600;text-transform:uppercase;margin-bottom:.25rem}
.timer-value{font-size:3.5rem;font-weight:700;line-height:1.1;color:var(--text-main);text-shadow:0 6px 18px rgba(0,0,0,.08);font-variant-numeric:tabular-nums}

.question-card {
  /* override the reds only inside question card */
  --accent: #0ea5e9;                 /* sky/cyan for outlines & subtle accents */
  --accent-ink: #0b3757;             /* readable ink on light blue */
  --accent-soft: #eaf6ff;            /* ← light sky blue background */
  --accent-soft-border: rgba(14,165,233,.25);
}

/* Apply the soft blue panel + border */
.question-card .question-body {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  border-radius:.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  padding:1rem;
  margin-bottom:1rem
}

.question-body {
  background: rgba(14,165,233,.06);
  border: 1px solid var(--accent-soft-border);
  border-radius:.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.06);
  padding:1rem;
  margin-bottom:1rem
}

/* Optional: make the “James 3” chip match the new palette */
.question-card .question-label {
  color: var(--accent-ink);
  background: transparent;          /* or keep whatever you had */
}

/* Optional: subtle hover on options in the same palette */
.question-card .answers-wrap .answer-line:hover {
  background: rgba(14,165,233,.06);
}

.text-cor{
  align-items:center; gap:.5rem;
  padding: 1rem;
  border-radius:0.6rem;
  font-weight:600;
  color:var(--ok-ink);
  background:#cbf5dd;
  border:1px solid var(--ok-border);
  line-height:1.1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* ❌ Wrong */
.text-wron{
  align-items:center; gap:.5rem;
  padding: 1rem;
  border-radius:0.6rem;
  font-weight:600;
  color:var(--brand-red-ink);
  color:white;
  background:#d14a0d ;
  border:1px solid var(--brand-red-border);
  line-height:1.1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.question-label{color:var(--accent);font-size:.7rem;font-weight:600;text-transform:uppercase;margin-bottom:.5rem}

/*
.question-body{background:var(--accent-soft);border:1px solid rgba(199,65,72,.3);border-radius:.75rem;box-shadow:0 20px 40px rgba(0,0,0,.06);padding:1rem;margin-bottom:1rem}
.question-label{color:var(--accent);font-size:.7rem;font-weight:600;text-transform:uppercase;margin-bottom:.5rem}
*/

/* Slide-out scoreboard panel so it doesn't cover the header */
#sidePanel{ top:64px; }
#sidePanel.visible{
  display:block; position:fixed; right:0; top:64px; bottom:0;
  background:#111; width:320px; z-index:9999;
}
#sidePanel .side-inner{ background:#111; color:#fff; border-color:rgba(255,255,255,.1); }
#sidePanel .score-card{ background:#1b1b1b; border-color:rgba(255,255,255,.08); }
#sidePanel .score-value{ color:#fff; }
/* Explanation highlight (stronger) */
.question-text.explain{
  background:#fff8e1;
  border:1px solid rgba(251,191,36,.6);
  border-left:6px solid #f59e0b;
  border-radius:.75rem;
  padding:1rem;
  font-size:1rem;
  line-height:1.55;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.answers-wrap{display:flex;flex-direction:column;gap:.6rem}
.answer-line{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:.75rem;padding:.75rem;box-shadow:0 16px 32px rgba(0,0,0,.06);display:flex;gap:.75rem;cursor:pointer;transition:.12s}
.answer-line:hover{background:var(--bg-card-hover);border-color:var(--accent);box-shadow:0 20px 40px rgba(0,0,0,.08),0 0 12px rgba(199,65,72,.4)}
.answer-letter{background:var(--accent);color:#fff;font-weight:700;min-width:2rem;min-height:2rem;text-align:center;line-height:2rem;border-radius:.5rem}
.answer-text{font-size:.95rem;line-height:1.4;font-weight:500}
.btn-success{background:var(--success);color:#fff;border:none;border-radius:.6rem;padding:.6rem .75rem;font-weight:600;cursor:pointer}
.btn-warn{background:var(--warn);color:#111;border:none;border-radius:.6rem;padding:.6rem .75rem;font-weight:600;cursor:pointer}
.btn-danger-outline{background:transparent;border:1px solid var(--danger);color:var(--danger);border-radius:.6rem;padding:.6rem .75rem;font-weight:600;cursor:pointer}
.results-table{width:100%;border-collapse:collapse;font-size:.8rem;min-width:720px}
.results-table th{border-bottom:1px solid rgba(15,23,42,.08);text-align:left;padding:.5rem .75rem;font-size:.7rem;text-transform:uppercase}
.results-table td{border-bottom:1px solid rgba(15,23,42,.05);padding:.5rem .75rem}
.pill.team-pill{display:inline-block;padding:.3rem .5rem;border-radius:.5rem;color:#fff;background:var(--accent);font-size:.7rem;font-weight:600}
.results-table .teamB-pill{background:var(--purple)}
.alert.alert-danger{background:rgba(220,38,38,.1);color:#dc2626;border:1px solid rgba(220,38,38,.3);padding:.5rem .75rem;border-radius:.5rem;margin-bottom:1rem;text-align:center}
@media(max-width:600px){.timer-value{font-size:2.5rem}.question-text{font-size:1rem}}

/* Explanation highlight */
.question-text.explain{
  background:#fff8e1;
  border:1px solid rgba(251,191,36,.6);
  border-left:6px solid #f59e0b;
  border-radius:.75rem;
  padding:1rem;
  font-size:1rem;
  line-height:1.55;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.question-label{
  letter-spacing:.02em;
}


/* v9.6 header layout & overlap fix */
:root{ --header-h:60px; }
.app-header{
  position: fixed; top:0; left:0; right:0;
  height: var(--header-h);
  display:flex; align-items:center;
  background:#000 !important; color:#fff !important;
  border-bottom:1px solid rgba(255,255,255,.12);
  z-index: 1200;
  padding: 0 16px;
}
.app-header .brand-row{ display:flex; align-items:center; gap:.65rem; }
.app-header .brand-row img,.app-header .logo,.app-header .logo-full{ max-height:50px; width:auto; height:auto; }

.app-header .app-header-right{ margin-left:auto; display:flex; align-items:center; gap:1rem; }
.app-header a{ color:#fff !important; text-decoration:none; }

/* push page content below header */
body{ padding-top: var(--header-h); }

/* Top meta row tucks under header nicely and wraps */
.top-meta{ margin-top:.25rem; padding:.5rem 1rem; display:flex; gap:.75rem; flex-wrap:wrap; color:#fff; }
.top-meta .crumb{ max-width:70vw; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* Score panel respects header */
#sidePanel{ top: var(--header-h); }
#sidePanel.visible{ top: var(--header-h); }


/* footer default rules */

/* Footer shell */
.quiz-footer {
  margin-top: 24px;
  background: var(--brand);        /* solid brand color */
  color: var(--brand-ink);
  border-radius:0.6em;
}

/* Center the content and control width */
.quiz-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;                  /* centers the inner container */
  padding: 12px 16px;
}

/* Rules list: centered, wraps nicely */
.quiz-footer .rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;         /* centers items */
  gap: 12px 16px;
  text-align: center;
}

/* Each rule as a “pill” */
.quiz-footer .rules li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-chip);   /* translucent white on red */
  border: 1px solid var(--brand-chip-border);
  color: var(--brand-ink);
  font-size: 0.95rem;
  line-height: 1.3;
  text-wrap: balance;
}

/* Slight emphasis for labels */
.quiz-footer .rules li strong {
  font-weight: 600;
  color: var(--brand-ink);
}

/* Links inside the footer (if any) */
.quiz-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.quiz-footer a:hover { opacity: .9; }

/* Optional: single-line on wide screens */
@media (min-width: 1024px) {
  .quiz-footer .rules { flex-wrap: nowrap; }
}


/* === Final UI polish v10 === */

/* Hide stray/empty bullets */
.card ul:empty,
.card ul li:empty,
.card ul li:has(> br:only-child){
  display:none !important;
  list-style:none !important;
}

/* Content width & padding */
.container, .content-wrap, .page, main {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 18px;
}

/* Form card spacing */
.form-card .form-group + .form-group { margin-top: 12px; }

/* Button bar for Results header */
.btn-bar{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
}
.ml-auto{ margin-left:auto; }

/* Primary buttons */
.btn-primary{
  background:#bc4242;
  color:#fff; border:0;
  padding:.8rem 1.15rem;
  border-radius:14px;
  font-weight:700;
  box-shadow:0 10px 26px rgba(188,66,66,.25);
  text-decoration:none;
  display:inline-flex; align-items:center; gap:.5rem;
}
.btn-primary:hover{ filter:brightness(1.05); }

/* Outline variant to match */
.btn-primary.outline{
  background:transparent; color:#bc4242;
  border:2px solid #bc4242; box-shadow:none;
}
.btn-primary.outline:hover{ background:#bc4242; color:#fff; }


/* === v11 polish === */
.container, .content-wrap, .page, main { max-width: 1200px; margin-inline:auto; padding-inline:18px; }
.btn-bar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.ml-auto{ margin-left:auto; }
.btn-primary{ background:#bc4242; color:#fff; border:0; padding:.8rem 1.15rem; border-radius:14px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; box-shadow:0 10px 26px rgba(188,66,66,.25); }
.btn-primary:hover{ filter:brightness(1.05); }
.btn-primary.outline{ background:transparent; color:#bc4242; border:2px solid #bc4242; box-shadow:none; }
.btn-primary.outline:hover{ background:#bc4242; color:#fff; }
.answer-banner{ margin:12px 0; padding:12px 14px; border-radius:12px; font-weight:700; }
.answer-banner.correct{ background:#ecfdf5; color:#065f46; border:1px solid #10b98155; }
.answer-banner.wrong{ background:#fef2f2; color:#991b1b; border:1px solid #ef444444; }
.choice.highlight-correct{ background:#ecfdf5 !important; border-color:#10b98155 !important; }
.choice.highlight-wrong{ background:#fef2f2 !important; border-color:#ef444444 !important; }
.logout-fallback{ position:fixed; top:10px; right:12px; z-index:1500; }
.logout-fallback a{ background:#111; color:#fff; padding:.5rem .8rem; border-radius:10px; text-decoration:none; border:1px solid rgba(255,255,255,.15); }


/* vFinal UI additions */
.container, .content-wrap, .page, main { max-width:1200px; margin-inline:auto; padding-inline:18px; }
.btn-bar{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.ml-auto{ margin-left:auto; }
.btn-primary{ background:#bc4242; color:#fff; border:0; padding:.8rem 1.15rem; border-radius:14px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; box-shadow:0 10px 26px rgba(188,66,66,.25); }
.btn-primary:hover{ filter:brightness(1.05); }
.btn-primary.outline{ background:transparent; color:#bc4242; border:2px solid #bc4242; box-shadow:none; }
.btn-primary.outline:hover{ background:#bc4242; color:#fff; }
.answer-banner{ margin:12px 0; padding:12px 14px; border-radius:12px; font-weight:700; }
.answer-banner.correct{ background:#ecfdf5; color:#065f46; border:1px solid #10b98155; }
.answer-banner.wrong{ background:#fef2f2; color:#991b1b; border:1px solid #ef444444; }
.choice.highlight-correct{ background:#ecfdf5 !important; border-color:#10b98155 !important; }
.choice.highlight-wrong{ background:#fef2f2 !important; border-color:#ef444444 !important; }
/* Hide empty bullets */
.card ul:empty, .card ul li:empty, .card ul li:has(> br:only-child){ display:none !important; list-style:none !important; }


/* v3 footer alignment + status label sanity */
footer, .footer, .site-footer { text-align:center; }
.footer-rules, .rules-footer, .default-rules {
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  margin:8px auto; padding:6px 10px; color:#667085;
}
.header-status, .status-label { font-weight:700; }
/* If any status label exists without data-status='correct'/'wrong', hide it by default */
.header-status:not([data-status]), .status-label:not([data-status]) { display:none; }


/* === vFinal-Align === */
/* Center main content across layouts */
.container, .content-wrap, .page, main, .wrapper, .shell { 
  max-width: 1200px; margin-left:auto; margin-right:auto; padding-left:18px; padding-right:18px;
}

/* Cards centered */
.card, .panel, .question-card, .recap-card { margin-left:auto; margin-right:auto; }

/* Footer rules centered */
footer, .footer, .site-footer { text-align:center; }
.footer-rules, .rules-footer, .default-rules {
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  margin:8px auto; padding:6px 10px; color:#667085;
}


.btn-ghost{
    background: #ffffd4;
    border:1px solid var(--danger);
    border-color: #ffffa1
    box-shadow: 0 0 0 3px rgba(255,255,255,.28);
    color: #fff;
    color:var(--danger);
    border-radius:.6rem;
    padding:.6rem .75rem;
    font-weight:600;
    cursor:pointer
}


/* Hide all top status labels by default; JS will enable on recap only */
.top-status, .header-status, .status-label, .result-flag { display:none; }
body.has-decision-correct .top-status,
body.has-decision-correct .header-status,
body.has-decision-correct .status-label,
body.has-decision-wrong   .top-status,
body.has-decision-wrong   .header-status,
body.has-decision-wrong   .status-label { display:inline-flex; }

/* Color tokens for status when shown */
body.has-decision-correct .header-status, body.has-decision-correct .status-label { color:#065f46; }
body.has-decision-wrong   .header-status, body.has-decision-wrong   .status-label { color:#991b1b; }

/* Answer highlights (keep) */
.answer-banner{ margin:12px 0; padding:12px 14px; border-radius:12px; font-weight:700; }
.answer-banner.correct{ background:#ecfdf5; color:#065f46; border:1px solid #10b98155; }
.answer-banner.wrong{ background:#fef2f2; color:#991b1b; border:1px solid #ef444444; }
.choice.highlight-correct{ background:#ecfdf5 !important; border-color:#10b98155 !important; }
.choice.highlight-wrong{ background:#fef2f2 !important; border-color:#ef444444 !important; }

/* Remove stray empty bullets */
.card ul:empty, .card ul li:empty, .card ul li:has(> br:only-child){ display:none !important; list-style:none !important; }


/* FINAL: scores card + centering */
.scores-card {
  max-width: 860px;
  margin: 24px auto;
  padding: 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16,24,40,.08);
}
/* ensure the scores badges align nicely */
.scores-card .badge, .scores-card .stat, .scores-card .pill {
  display:inline-flex; align-items:center; justify-content:center;
}


/* Verified final footer rules card */
.footer-rules, .default-rules, .rules-footer {
  display:flex; align-items:center; justify-content:center;
  margin: 12px auto; padding: 10px 14px; border-radius: 12px;
  max-width: 1000px; background:#fff; box-shadow:0 10px 26px rgba(16,24,40,.08);
}
footer, .footer, .site-footer { text-align:center; }


/* Status hidden by default; shown post-verdict */
.top-status, .status-label, .header-status, #resultStatus { display:none; }
body.has-decision-correct .top-status,
body.has-decision-correct .status-label,
body.has-decision-correct .header-status,
body.has-decision-correct #resultStatus,
body.has-decision-wrong .top-status,
body.has-decision-wrong .status-label,
body.has-decision-wrong .header-status,
body.has-decision-wrong #resultStatus { display:inline-flex; }

/* Footer rules card centered */
.footer-rules, .default-rules, .rules-footer {
  display:flex; align-items:center; justify-content:center;
  margin: 12px auto; padding: 10px 14px; border-radius: 12px;
  max-width: 1000px; background:#fff; box-shadow:0 10px 26px rgba(16,24,40,.08);
}
footer, .footer, .site-footer { text-align:center; }


/* Top result bar */
.result-bar{
  margin: 14px auto 8px auto;
  max-width: 1100px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 8px 22px rgba(16,24,40,.08);
}
.result-bar.is-correct{ background:#ecfdf5; color:#065f46; border:1px solid #10b98155; }
.result-bar.is-wrong{ background:#fef2f2; color:#991b1b; border:1px solid #ef444444; }

/* Keep footer rules centered but do NOT wrap quiz scores in extra cards */
.footer-rules, .default-rules, .rules-footer {
  display:flex; align-items:center; justify-content:center;
  margin: 12px auto; padding: 10px 14px; border-radius: 12px;
  max-width: 1000px; background:#fff; box-shadow:0 10px 26px rgba(16,24,40,.08);
}
footer, .footer, .site-footer { text-align:center; }
