/* Auscyclopedia — shared quiz styles */
:root { --gold: #ffcd00; --green: #00843d; --green-dark: #005a2a; --red-dirt: #c84e1a; --sand: #f6efe1; --ink: #1c1c1e; --ink-soft: #3a3a3c; --ink-mute: #6a6a70; --paper: #fffaf0; --shadow: rgba(0,0,0,0.1); }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.65; }
header.hero { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 70%, #2fa55f 100%); color: white; padding: 56px 24px 60px; text-align: center; }
header.hero .crumbs { font-size: 0.85rem; opacity: 0.85; margin-bottom: 14px; }
header.hero .crumbs a { color: var(--gold); text-decoration: none; }
header.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin: 0 0 14px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
header.hero .lede { font-size: 1.1rem; max-width: 620px; margin: 0 auto; opacity: 0.95; }
main { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.card { background: white; border: 1px solid #e0d6bf; border-radius: 16px; padding: 32px 28px; box-shadow: 0 4px 20px var(--shadow); }
.start-card { text-align: center; }
.start-card h2 { color: var(--green-dark); font-size: 1.5rem; margin: 0 0 14px; }
.start-card p { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 22px; }
.primary-btn { background: var(--red-dirt); color: white; border: none; padding: 16px 36px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 3px 12px rgba(200, 78, 26, 0.35); transition: transform 0.15s, box-shadow 0.15s; font-family: inherit; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200, 78, 26, 0.45); }
.secondary-btn { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-left: 8px; font-family: inherit; transition: background 0.15s; }
.secondary-btn:hover { background: var(--green-dark); color: white; }
.progress-bar { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--red-dirt)); transition: width 0.3s; border-radius: 999px; }
.progress-text { font-size: 0.85rem; color: var(--ink-mute); text-align: center; margin-bottom: 14px; letter-spacing: 0.5px; }
.question h3 { color: var(--green-dark); font-size: 1.25rem; margin: 0 0 22px; line-height: 1.4; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { background: var(--sand); border: 2px solid transparent; border-radius: 12px; padding: 14px 18px; cursor: pointer; text-align: left; font-size: 1rem; font-family: inherit; color: var(--ink); transition: all 0.15s; }
.choice:hover { border-color: var(--green-dark); background: white; }
.choice.selected { border-color: var(--green-dark); background: white; box-shadow: 0 2px 8px rgba(0, 132, 61, 0.15); }
.choice-letter { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--green-dark); color: white; text-align: center; line-height: 26px; font-weight: 700; font-size: 0.85rem; margin-right: 10px; }
.feedback { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.95rem; display: none; }
.feedback.show { display: block; }
.nav-buttons { display: flex; justify-content: space-between; margin-top: 24px; align-items: center; }
.score-hero { text-align: center; padding: 40px 30px; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: white; border-radius: 16px; margin-bottom: 24px; }
.score-hero .score-num { font-size: 4rem; font-weight: 900; margin: 0; letter-spacing: -3px; }
.score-hero .score-total { font-size: 1.5rem; opacity: 0.7; }
.score-hero .score-band { font-size: 1.6rem; font-weight: 800; margin: 12px 0 8px; }
.score-hero .score-band-sub { font-size: 1rem; opacity: 0.9; max-width: 480px; margin: 0 auto; }
.breakdown { margin-top: 24px; }
.breakdown h3 { color: var(--green-dark); font-size: 1.2rem; margin: 0 0 16px; }
.breakdown-item { background: var(--sand); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; border-left: 4px solid var(--green-dark); }
.breakdown-item.wrong { border-left-color: var(--red-dirt); }
.breakdown-item .bq { font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.breakdown-item .ba { font-size: 0.9rem; color: var(--ink-soft); }
.breakdown-item .ba .yours { color: var(--red-dirt); font-weight: 600; }
.breakdown-item .ba .right { color: var(--green-dark); font-weight: 600; }
.breakdown-item.correct-item { border-left-color: var(--green); background: #f0f8f3; }
.signup-cta { background: var(--sand); border: 2px dashed var(--gold); border-radius: 16px; padding: 28px; margin: 30px 0; text-align: center; }
.signup-cta h3 { color: var(--green-dark); margin: 0 0 10px; font-size: 1.3rem; }
.signup-cta p { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.98rem; }
.signup-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup-form input { flex: 1; min-width: 200px; padding: 12px 16px; border: 2px solid #d4c8a8; border-radius: 999px; font-size: 1rem; font-family: inherit; }
.signup-form input:focus { outline: none; border-color: var(--green-dark); }
.signup-form button { padding: 12px 24px; background: var(--red-dirt); color: white; border: none; border-radius: 999px; font-weight: 700; cursor: pointer; font-family: inherit; }
.signup-form button:hover { background: #b04216; }
.signup-status { margin-top: 12px; font-size: 0.9rem; min-height: 18px; }
.signup-status.success { color: var(--green-dark); }
.signup-status.error { color: var(--red-dirt); }
.share-block { margin-top: 30px; padding-top: 26px; border-top: 1px solid #e0d6bf; text-align: center; }
.share-block h4 { color: var(--green-dark); margin: 0 0 12px; font-size: 1rem; }
.share-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn { padding: 10px 18px; background: white; border: 2px solid var(--green-dark); color: var(--green-dark); border-radius: 999px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.9rem; font-family: inherit; }
.share-btn:hover { background: var(--green-dark); color: white; }
.retry-line { text-align: center; margin-top: 24px; }
.retry-line a { color: var(--red-dirt); font-weight: 600; text-decoration: none; }
footer { background: var(--ink); color: white; text-align: center; padding: 36px 20px; font-size: 0.9rem; margin-top: 60px; }
footer a { color: var(--gold); text-decoration: none; }
.hidden { display: none !important; }
@media (max-width: 500px) {
  .card { padding: 24px 20px; }
  .score-hero { padding: 30px 20px; }
  .score-hero .score-num { font-size: 3rem; }
  .signup-form { flex-direction: column; }
  .signup-form input { min-width: 0; width: 100%; }
  .nav-buttons { flex-direction: column-reverse; gap: 12px; }
  .nav-buttons button { width: 100%; }
}
