/* ============================================================
   SPIN FOR SIM — Main Stylesheet
   Fonts: League Spartan (headings) + Poppins (body)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #1A1A1A; background: #FAFAF8; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── KEYBOARD FOCUS ── two-tone ring stays visible on light content AND the dark nav */
:focus-visible { outline: 3px solid #1A1A1A; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255,255,255,0.95); }
.runner-nav :focus-visible, nav :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(0,0,0,0.55); }
[role="tab"]:focus-visible, [role="checkbox"]:focus-visible { outline-offset: -3px; }

/* ── TOKENS ── */
:root {
  --obstetric:   #F5E642;
  --maternal:    #4CAF72;
  --neonatal:    #7EC8E3;
  --anaesthetic: #7B68C8;
  --edi:         #E86FA8;
  --wildcard:    #F5A85A;
  --purple:      #B97FD4;
  --yellow:      #F5E642;
  --dark:        #1A1A1A;
  --bg:          #FAFAF8;
  --white:       #FFFFFF;
  --text-muted:  #666;
  --border:      #eeeeee;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .logo, .hero-wordmark, .cycle-name, .cat-name,
.stat-num, .sec-label, .gr-name, .prob-title, .btn-y, .btn-o,
.nav-cta, .footer-logo, .test-role { font-family: 'League Spartan', sans-serif; }

h2 { font-weight: 900; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.5px; line-height: 1.06; margin-bottom: 12px; }
h3 { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
p { font-family: 'Poppins', sans-serif; }

/* ── NAV ── */
.nav {
  background: #1A1A1A;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-brand { display: flex; flex-direction: column; gap: 1px; margin-right: 20px; }
.logo, .footer-logo { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 21px; color: #fff; letter-spacing: -0.5px; line-height: 1; display: inline-flex; align-items: center; white-space: nowrap; }
.lg-spin { background: var(--yellow); color: #1A1A1A; padding: 2px 7px 4px; border-radius: 7px; margin-right: 6px; letter-spacing: -1px; }
.logo sup, .footer-logo sup { font-size: 9px; color: var(--yellow); vertical-align: super; margin-left: 2px; }
.nav-tagline { font-family: 'Poppins', sans-serif; font-size: 10px; color: #888; letter-spacing: 1.2px; text-transform: uppercase; }
.nav-tagline em { color: var(--yellow); font-style: normal; }
.nav-links { display: flex; gap: 20px; align-items: center; order: 1; }
.nav-links a { font-family: 'Poppins', sans-serif; font-size: 13px; color: #bbb; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  order: 0;
  margin-right: auto;
  background: var(--yellow) !important;
  color: #1A1A1A !important;
  font-family: 'League Spartan', sans-serif !important;
  font-weight: 700;
  font-size: 13px !important;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #ffe800 !important; }
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; order: 3; }

/* ---- "My trust" account box in the nav ---- */
.nav-account { position: relative; order: 2; margin-left: 16px; }
.na-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--purple); border: none; color: #fff; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 0.2px; padding: 9px 15px; border-radius: 11px; cursor: pointer; box-shadow: 0 3px 10px rgba(123,104,200,0.45); transition: filter 0.15s; }
.na-btn:hover { filter: brightness(1.08); }
.na-ic { width: 18px; height: 18px; color: #fff; flex: none; }
.na-chev { width: 13px; height: 13px; color: rgba(255,255,255,0.9); transition: transform 0.15s; flex: none; }
.nav-account.open .na-chev { transform: rotate(180deg); }
.na-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid #e6e4dc; border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,0.18); min-width: 196px; padding: 7px; z-index: 300; }
.nav-account.open .na-menu { display: block; }
.na-menu .na-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #999; padding: 7px 10px 6px; }
.na-menu a { display: block; padding: 9px 11px; margin-bottom: 4px; border-radius: 9px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; color: #1A1A1A !important; text-decoration: none; }
.na-menu a:nth-of-type(1) { background: #e8f3fb; color: #185a73 !important; }
.na-menu a:nth-of-type(2) { background: #f0eafb; color: #4a3a9a !important; }
.na-menu a:nth-of-type(3) { background: #e6f4ec; color: #1c6b3f !important; }
.na-menu a:nth-of-type(4) { background: #fdeef3; color: #9c3a6a !important; }
.na-menu a:hover { filter: brightness(0.96); }
.na-menu .na-logout { color: #b33 !important; background: transparent; border-top: 1px solid #eee; margin: 4px 0 0; border-radius: 0; padding-top: 9px; }

/* Home: hero card on desktop, bar box on mobile */
@media (min-width: 701px) { .home .nav-account { display: none !important; } }
@media (max-width: 700px) { .home .hero-account { display: none !important; } }

/* ── PRINT BAR ── */
.print-bar {
  background: #111;
  border-top: 1px solid #222;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.print-label { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 12px; color: var(--yellow); white-space: nowrap; }
.print-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.pp { background: rgba(255,255,255,0.07); color: #ccc; font-size: 11px; padding: 4px 11px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.13); transition: background 0.15s; white-space: nowrap; }
.pp:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ── HERO ── */
.hero {
  position: relative;
  background: #C8C4B8;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 60px at 15% 20%, rgba(245,230,66,0.3) 0%, transparent 60%),
    radial-gradient(circle 80px at 80% 15%, rgba(76,175,114,0.25) 0%, transparent 60%),
    radial-gradient(circle 50px at 70% 70%, rgba(123,104,200,0.25) 0%, transparent 60%),
    radial-gradient(circle 40px at 20% 75%, rgba(232,111,168,0.2) 0%, transparent 60%),
    radial-gradient(circle 90px at 50% 50%, rgba(200,196,184,0.5) 0%, transparent 70%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(200,196,184,0.88) 0%, rgba(200,196,184,0.7) 55%, rgba(200,196,184,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 56px 36px;
  max-width: 580px;
}
.hero-art {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-wordmark { line-height: 0.9; letter-spacing: -3px; margin-bottom: 16px; }
.hw-spin {
  display: inline-block;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(68px, 17vw, 184px);
  color: #1A1A1A;
  background: var(--yellow);
  padding: 4px 22px 16px;
  border-radius: 16px;
  line-height: 0.92;
  margin-bottom: 8px;
}
.hw-for {
  display: block;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(50px, 12vw, 134px);
  color: #1A1A1A;
  letter-spacing: -2px;
  line-height: 1.02;
}
.hw-sim {
  display: block;
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(68px, 17vw, 184px);
  color: #1A1A1A;
  letter-spacing: -3px;
  line-height: 0.9;
}
.hw-sim sup { font-size: clamp(22px, 4vw, 40px); color: var(--purple); vertical-align: super; letter-spacing: 0; }
.hero-tagline { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 20px; color: #1A1A1A; letter-spacing: -0.2px; margin-bottom: 14px; }
.hero-tagline em { font-style: normal; color: var(--purple); }
.hero-desc { font-size: 14px; color: #333; line-height: 1.7; max-width: 420px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-pills { display: flex; gap: 16px; flex-wrap: wrap; }
.hpill { font-size: 12px; color: #444; display: flex; align-items: center; gap: 7px; font-weight: 500; }
.hpill-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn-y {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #1A1A1A;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-y:hover { background: #ffe800; }
.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #1A1A1A;
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 2.5px solid #1A1A1A;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-o:hover { background: rgba(0,0,0,0.06); }
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1A1A1A;
  color: var(--yellow);
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-dark:hover { background: #333; }

/* ── QUOTE BAND ── */
.quote-band { background: var(--yellow); padding: 40px 36px; text-align: center; }
.quote-text { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: clamp(18px, 3vw, 26px); color: #1A1A1A; line-height: 1.25; max-width: 600px; margin: 0 auto; }
.quote-attr { font-size: 12px; color: #555; margin-top: 12px; font-family: 'Poppins', sans-serif; }

/* ── SECTIONS ── */
.sec { padding: 56px 0; }
.sec-inner { max-width: 1080px; margin: 0 auto; padding: 0 36px; }
.bg-white { background: #fff; }
.bg-off { background: #FAFAF8; }
.bg-dark { background: #1A1A1A; }
.bg-purple { background: var(--purple); }

.sec-label {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 15px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.sec-label--yellow { background: var(--yellow); color: #1A1A1A; }
.sec-label--dark { background: #1A1A1A; color: var(--yellow); }
.sec-sub { font-size: clamp(15px, 1.6vw, 18px); color: #444; margin-bottom: 34px; max-width: 700px; line-height: 1.65; }

/* ── PROBLEM CARDS ── */
.card-grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.prob-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 16px; text-align: center; }
.prob-icon { font-size: 28px; margin-bottom: 10px; }
.prob-title { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.prob-desc { font-size: 11px; color: #777; line-height: 1.5; }

/* ── CYCLE ── */
.cycle { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 8px; }
.cycle-step { text-align: center; padding: 12px 10px; flex: 1; min-width: 80px; }
.cycle-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 20px; }
.cycle-name { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 12px; }
.cycle-desc { font-size: 10px; color: #888; margin-top: 3px; }
.cycle-arrow { color: #ccc; font-size: 24px; flex-shrink: 0; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; }
.cat-card { border-radius: 14px; padding: 22px 18px; cursor: pointer; display: block; transition: transform 0.15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-num { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 32px; opacity: 0.3; line-height: 1; margin-bottom: 6px; }
.cat-name { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.cat-count { font-size: 11px; opacity: 0.75; }

/* ── GROUND RULES ── */
.gr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.gr-item { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 10px; text-align: center; }
.gr-icon { font-size: 22px; margin-bottom: 8px; }
.gr-name { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 11px; color: #fff; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.3; }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 28px; }
.stat-card { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; }
.stat-num { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 42px; color: #fff; line-height: 1; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 8px; line-height: 1.4; }

/* ── TESTIMONIALS ── */
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 24px; }
.test-card { background: #FAFAF8; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; border-left: 4px solid; }
.test-text { font-size: 13px; color: #333; line-height: 1.7; font-style: italic; margin-bottom: 14px; }
.test-role { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── CTA ── */
.cta-sec { background: #1A1A1A; padding: 72px 36px; text-align: center; position: relative; overflow: hidden; }
.cta-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 200px at 20% 50%, rgba(245,230,66,0.06) 0%, transparent 70%),
    radial-gradient(circle 200px at 80% 50%, rgba(185,127,212,0.06) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: clamp(26px, 4vw, 38px); color: #fff; letter-spacing: -0.8px; margin-bottom: 12px; }
.cta-content p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.footer { background: #111; padding: 24px 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
/* .footer-logo styling unified with .logo — see NAV section */
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #666; transition: color 0.15s; }
.footer-links a:hover { color: #aaa; }
.footer-copy { font-size: 11px; color: #444; }

/* ── WHEEL PAGE ── */
.wheel-page { max-width: 680px; margin: 0 auto; padding: 32px 24px 64px; overflow-x: hidden; }
.page-title { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -0.5px; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }

.mode-toggle { display: flex; gap: 10px; margin-bottom: 28px; }
.mode-btn { flex: 1; padding: 14px 10px; border-radius: var(--radius-md); border: 2px solid var(--border); background: #fff; cursor: pointer; text-align: center; transition: all 0.15s; }
.mode-btn.active { border-color: #1A1A1A; background: #1A1A1A; }
.mode-btn-icon { font-size: 22px; margin-bottom: 6px; }
.mode-btn-label { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 13px; color: #1A1A1A; }
.mode-btn.active .mode-btn-label { color: #fff; }
.mode-btn-desc { font-size: 11px; color: #888; margin-top: 2px; }
.mode-btn.active .mode-btn-desc { color: #aaa; }

.filter-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #2e2e2e; margin-bottom: 12px; display: inline-block; background: rgba(255,255,255,0.72); padding: 5px 12px; border-radius: 20px; }
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-pill { padding: 7px 14px; border-radius: 20px; border: 2px solid transparent; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.15s; }

.wheel-area { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.wheel-container { position: relative; width: min(400px, 80vw); aspect-ratio: 1; margin: 50px auto 14px; }
.wheel-container::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: calc(100% + 44px); height: calc(100% + 44px); background: #fff; border-radius: 50%; z-index: 0; box-shadow: 0 20px 50px rgba(0,0,0,0.22); }
.wheel-canvas { border-radius: 50%; width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
.wheel-pin { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 28px solid #1A1A1A; z-index: 10; }
.wheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; background: #1A1A1A; border-radius: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; }
.wheel-center-dot { width: 20px; height: 20px; background: var(--yellow); border-radius: 50%; }

@keyframes spinPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.055); } }
.spin-btn { background: var(--yellow); color: #1A1A1A; font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 27px; padding: 21px 76px; border-radius: 16px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; transition: box-shadow 0.15s, background 0.15s; box-shadow: 0 10px 26px rgba(245,230,66,0.5); letter-spacing: 0.5px; animation: spinPulse 1.7s ease-in-out infinite; }
.spin-btn:hover { background: #ffe800; transform: scale(1.09); animation-play-state: paused; box-shadow: 0 14px 34px rgba(245,230,66,0.65); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) { .spin-btn { animation: none; } }
.spin-sub { font-size: 13px; color: #333; margin-top: 14px; margin-bottom: 8px; background: rgba(255,255,255,0.72); padding: 5px 14px; border-radius: 20px; display: inline-block; }

.result-panel { border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; display: none; animation: slideUp 0.35s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.result-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-bottom: 6px; font-family: 'Poppins', sans-serif; }
.result-category { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 26px; margin-bottom: 16px; }
.scenario-list { display: flex; flex-direction: column; gap: 8px; }
.scenario-item { background: rgba(255,255,255,0.75); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border: 1.5px solid rgba(0,0,0,0.08); }
.scenario-item-name { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; }
.scenario-item-meta { font-size: 11px; color: #666; margin-top: 2px; }
.scenario-run-btn { background: #1A1A1A; color: #fff; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 12px; padding: 7px 14px; border-radius: 6px; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none; display: inline-block; }
.scenario-run-btn:hover { background: #333; }
.result-respin { margin-top: 10px; background: rgba(0,0,0,0.07); color: #1A1A1A; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: var(--radius-sm); border: none; cursor: pointer; width: 100%; }
.result-respin:hover { background: rgba(0,0,0,0.12); }
.pick-status { text-align: center; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: #333; min-height: 18px; margin-top: 6px; }
/* ── LICENCE GATE ── */
.lic-overlay { position: fixed; inset: 0; z-index: 100000; background: rgba(26,26,26,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lic-card { background: #fff; max-width: 640px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.lic-head { padding: 20px 24px 14px; border-bottom: 1px solid var(--border); }
.lic-head h2 { font-family: 'League Spartan', sans-serif; font-size: 20px; margin: 0; color: #1A1A1A; }
.lic-ver { font-family: 'Poppins', sans-serif; font-size: 12px; color: #888; margin-top: 4px; }
.lic-body { padding: 16px 24px; overflow-y: auto; font-family: 'Poppins', sans-serif; font-size: 13px; line-height: 1.6; color: #333; }
.lic-body h3 { font-family: 'League Spartan', sans-serif; font-size: 14px; margin: 16px 0 4px; color: #1A1A1A; }
.lic-body p { margin: 0 0 8px; }
.lic-body ul { margin: 4px 0 8px 18px; padding: 0; }
.lic-body li { margin-bottom: 3px; }
.lic-foot { padding: 16px 24px 20px; border-top: 1px solid var(--border); }
.lic-fields { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.lic-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.lic-field label { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; color: #555; }
.lic-field input { padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: 'Poppins', sans-serif; }
.lic-field input:focus { outline: none; border-color: var(--purple); }
.lic-agree-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-family: 'Poppins', sans-serif; font-size: 13px; color: #333; cursor: pointer; }
.lic-agree-row input { margin-top: 2px; }
.lic-err { color: #c0392b; font-size: 12px; font-family: 'Poppins', sans-serif; margin-bottom: 10px; }
.lic-btns { display: flex; gap: 10px; }
.lic-agree-btn { flex: 1; background: #15803d; color: #fff; border: none; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 10px; cursor: pointer; }
.lic-agree-btn:disabled { background: #bbb; cursor: not-allowed; }
.lic-decline-btn { background: #fff; border: 2px solid var(--border); color: #555; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; padding: 13px 16px; border-radius: 10px; cursor: pointer; }
.lic-decline-btn:hover { background: #f5f5f5; }

/* ── FACILITATOR TOOLKIT (floating quick-reference in the runner) ── */
.factools-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9000; background: #7B68C8; color: #fff; border: none; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 30px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); cursor: pointer; }
.factools-fab:hover { background: #6a58b8; }
.factools-panel { position: fixed; right: 18px; bottom: 70px; z-index: 9000; width: 340px; max-width: calc(100vw - 36px); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 50px rgba(0,0,0,0.28); overflow: hidden; }
.factools-head { display: flex; align-items: center; justify-content: space-between; background: #1A1A1A; color: #fff; padding: 13px 16px; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; }
.factools-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.factools-body { padding: 12px 14px 14px; max-height: 60vh; overflow-y: auto; }
.factool { padding: 10px 0; border-bottom: 1px solid #f0eee6; }
.factool:last-of-type { border-bottom: none; }
.factool b { font-family: 'League Spartan', sans-serif; font-size: 14px; color: #7B68C8; display: block; margin-bottom: 3px; }
.factool i { font-size: 13.5px; color: #333; line-height: 1.45; }
.factools-more { display: block; text-align: center; margin-top: 10px; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 13px; color: #1A1A1A; text-decoration: none; background: #F5E642; border-radius: 9px; padding: 10px; }
@media print { .factools-fab, .factools-panel { display: none !important; } }

/* ── FACILITATOR CERTIFICATE (end of runner) ── */
.fc-box { background: #faf9f4; border: 1px solid var(--border); border-radius: 16px; padding: 22px 20px; margin-top: 16px; text-align: center; }
.fc-box h3 { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 22px; margin: 6px 0 6px; }
.fc-lead { color: #555; font-size: 14px; margin: 0 0 16px; line-height: 1.55; }
.fc-field { text-align: left; margin-bottom: 12px; }
.fc-field label { display: block; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.fc-field input, .fc-field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: 'Poppins', sans-serif; box-sizing: border-box; resize: none; }
.fc-field input:focus, .fc-field textarea:focus { outline: none; border-color: var(--purple); }
.fc-rate { display: flex; gap: 8px; justify-content: center; margin: 4px 0; }
.fc-rate button { flex: 1; max-width: 56px; padding: 10px 0; border: 1.5px solid var(--border); background: #fff; border-radius: 8px; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; cursor: pointer; }
.fc-rate button.sel { background: var(--purple); color: #fff; border-color: var(--purple); }
.fc-msg { font-size: 13px; color: #c0392b; min-height: 16px; margin: 4px 0; }
.fc-create { width: 100%; background: #15803d; color: #fff; border: none; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 10px; cursor: pointer; }
.fc-skip { width: 100%; margin-top: 8px; padding: 11px; background: transparent; border: none; color: #888; font-size: 13.5px; cursor: pointer; text-decoration: underline; font-family: 'Poppins', sans-serif; }
.fc-cert { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.16); margin-top: 8px; }
.fc-cert-inner { position: relative; border: 2.5px solid #1A1A1A; border-radius: 6px; margin: 10px; padding: 30px 26px 24px; text-align: center;
  box-shadow: inset 0 0 0 4px #fffdf6, inset 0 0 0 4.8px rgba(26,26,26,.22);
  background:
    radial-gradient(circle at 12% 10%, rgba(245,230,66,.18), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(123,104,200,.16), transparent 32%),
    linear-gradient(to bottom, rgba(255,253,246,0) 66%, rgba(255,253,246,0.80) 100%),
    radial-gradient(ellipse at center, rgba(255,253,246,0.96) 38%, rgba(255,253,246,0.86) 100%),
    url('bx-rings.png') center/cover no-repeat,
    #fffdf6; }
.fc-brand { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: -.5px; color: #1A1A1A; display: inline-flex; align-items: center; }
.fc-brand .lg-spin { background: #F5E642; color: #1A1A1A; padding: 2px 8px 4px; border-radius: 7px; margin-right: 6px; letter-spacing: -1px; }
.fc-brand sup { font-size: 9px; color: #7B68C8; vertical-align: super; margin-left: 2px; }
.fc-kicker { font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; color: #7B68C8; margin-top: 16px; }
.fc-rule { width: 54px; height: 3px; background: #F5E642; border-radius: 3px; margin: 12px auto 18px; }
.fc-presented { color: #666; font-size: 14px; }
.fc-name { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 34px; color: #1A1A1A; line-height: 1.1; margin: 8px 0 14px; }
.fc-body { color: #333; font-size: 15px; line-height: 1.6; max-width: 430px; margin: 0 auto; }
.fc-scenario { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 20px; color: #7B68C8; margin: 12px auto 4px; max-width: 440px; }
.fc-meta { display: flex; justify-content: center; gap: 34px; margin: 20px 0 6px; flex-wrap: wrap; }
.fc-meta span { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; color: #999; margin-bottom: 3px; }
.fc-meta b { font-family: 'League Spartan', sans-serif; font-size: 15px; color: #1A1A1A; }
.fc-cpd-note { color: #15803d; font-weight: 600; font-size: 13px; margin-top: 12px; }
.fc-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #ececec; text-align: left; }
.fc-foot-col { flex: 1; min-width: 0; }
.fc-foot-col b { display: block; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; color: #1A1A1A; line-height: 1.15; }
.fc-foot-col span { display: block; font-size: 10.5px; color: #888; margin-top: 3px; line-height: 1.4; }
.fc-foot-right { text-align: right; }
.fc-tagline { text-align: center; font-size: 11.5px; color: #5f5f5f; margin-top: 18px; line-height: 1.55; }
.fc-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.fc-dl { width: 100%; background: #1A1A1A; color: #fff; border: none; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 10px; cursor: pointer; }
@media (max-width: 560px) { .fc-cert-inner { padding: 26px 18px 20px; } .fc-foot { gap: 12px; } .fc-foot-col b { font-size: 13px; } }
@media (max-width: 360px) { .fc-foot { flex-direction: column; align-items: center; text-align: center; } .fc-foot-right { text-align: center; } }
@media print {
  body * { visibility: hidden !important; }
  #fcResult, #fcResult * { visibility: visible !important; }
  #fcResult { position: absolute; left: 0; top: 0; width: 100%; }
  .fc-actions { display: none !important; }
}
.pick-card { transition: background 0.07s ease, color 0.07s ease, transform 0.08s ease, box-shadow 0.08s ease; }
.pick-card.lit { transform: scale(1.02); box-shadow: 0 5px 18px rgba(0,0,0,0.18); border-color: transparent; }
.pick-card.lit .sc-meta span { color: inherit; opacity: 0.85; }
.pick-card.picked { background: #15803d; color: #fff; border-left-color: #0f5f2d; transform: scale(1.03); box-shadow: 0 8px 22px rgba(21,128,61,0.35); animation: pickPop 0.4s ease; }
.pick-card.picked .sc-title::before { content: '\2713  '; }
.pick-card.picked .sc-meta span { color: rgba(255,255,255,0.9); }
@keyframes pickPop { 0% { transform: scale(1); } 55% { transform: scale(1.07); } 100% { transform: scale(1.03); } }
.reroll-scenario-btn { width: 100%; background: #fff; border: 2px solid #1A1A1A; color: #1A1A1A; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; transition: background 0.15s; }
.reroll-scenario-btn:hover { background: #f5f5f5; }
@media (prefers-reduced-motion: reduce) { .pick-card, .pick-card.lit, .pick-card.picked { transition: none; animation: none; } }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #444; font-size: 13px; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: rgba(0,0,0,0.16); }
.or-divider span { background: rgba(255,255,255,0.80); padding: 3px 13px; border-radius: 20px; }

.random-btn { width: 100%; background: #fff; border: 2px solid #1A1A1A; color: #1A1A1A; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; padding: 13px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; transition: background 0.15s; }
.random-btn:hover { background: #f5f5f5; }

.manual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.manual-cat { border-radius: var(--radius-md); padding: 18px 12px; text-align: center; cursor: pointer; border: 3px solid transparent; transition: all 0.15s; }
.manual-cat:hover { transform: scale(1.03); }
.manual-cat.selected { border-color: #1A1A1A; }
.manual-cat-num { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 28px; opacity: 0.4; line-height: 1; }
.manual-cat-name { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 12px; margin-top: 4px; line-height: 1.3; }
.manual-cat-count { font-size: 10px; opacity: 0.7; margin-top: 2px; }

.flash { position: fixed; inset: 0; z-index: 999; opacity: 0; pointer-events: none; }

/* ── SCENARIO RUNNER ── */
.runner-nav { background: #1A1A1A; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 58px; position: sticky; top: 0; z-index: 100; }
.runner-nav-left { display: flex; align-items: center; gap: 14px; }
.back-link { color: #aaa; font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.back-link:hover { color: #fff; }
.runner-scenario-name { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 17px; color: #fff; }
.runner-cat { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; font-family: 'Poppins', sans-serif; }
.timer-wrap { display: flex; align-items: center; gap: 8px; }
.timer-display { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 22px; color: var(--yellow); min-width: 54px; text-align: right; }
.timer-toggle { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 32px; height: 32px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.timer-toggle:hover { background: rgba(255,255,255,0.2); }

.progress-wrap { background: #2a2a2a; height: 4px; }
.progress-bar { height: 4px; background: var(--yellow); transition: width 0.4s ease; }

.runner-tabs { display: flex; background: #fff; border-bottom: 2px solid #f0f0f0; overflow-x: auto; }
.rtab { flex: 1; min-width: 70px; padding: 13px 8px; text-align: center; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 12px; color: #999; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.rtab.active { color: #1A1A1A; border-bottom-color: var(--yellow); }
.rtab:hover { color: #555; }

.runner-panel { display: none; padding: 20px; max-width: 680px; margin: 0 auto; }
.runner-panel.active { display: block; }

.overview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.meta-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.meta-lbl { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.meta-val { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; }

.obj-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; }
.obj-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.obj-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.obj-item { font-size: 13px; color: #333; padding: 4px 0 4px 14px; position: relative; line-height: 1.5; }
.obj-item::before { content: '•'; position: absolute; left: 3px; color: var(--purple); }

.equip-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.equip-tag { background: #f5f5f5; border: 1px solid #e8e8e8; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #444; }

.vignette-box { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--anaesthetic); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.box-lbl { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--anaesthetic); margin-bottom: 8px; }
.vignette-text { font-size: 14px; color: #222; line-height: 1.7; }

.prompt-box { background: #FFF8E8; border: 1px solid var(--yellow); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.prompt-box .box-lbl { color: #7a5e00; }
.prompt-item { font-size: 13px; color: #444; padding: 4px 0 4px 16px; position: relative; line-height: 1.55; }
.prompt-item::before { content: '→'; position: absolute; left: 0; color: #7a5e00; font-size: 12px; }

.vitals-box { background: #EEE8F8; border: 1px solid var(--anaesthetic); border-left: 4px solid var(--anaesthetic); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.vitals-box .box-lbl { color: #3a2d8a; }
.vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.vital { background: #fff; border-radius: 8px; padding: 10px 8px; text-align: center; }
.vital-val { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 18px; color: #3a2d8a; line-height: 1; }
.vital-name { font-size: 10px; color: #777; margin-top: 3px; }

.actions-box { background: #F0FAF4; border: 1px solid var(--maternal); border-left: 4px solid var(--maternal); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.actions-box .box-lbl { color: #1a5c35; }
.action-item { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.action-cb { width: 19px; height: 19px; border: 2px solid var(--maternal); border-radius: 4px; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: all 0.15s; }
.action-cb.checked { background: var(--maternal); border-color: var(--maternal); }
.action-cb.checked::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 700; }
.action-text { font-size: 13px; color: #333; line-height: 1.55; }
.action-text.done { text-decoration: line-through; color: #aaa; }

.esc-btn { width: 100%; background: #fff; border: 2px solid var(--edi); color: var(--edi); font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 13px; padding: 11px; border-radius: 8px; cursor: pointer; margin-bottom: 12px; transition: background 0.15s; }
.esc-btn:hover { background: #fce4f0; }
.esc-panel { background: #fce4f0; border: 1px solid var(--edi); border-radius: 10px; padding: 14px; margin-bottom: 14px; display: none; }
.esc-panel.show { display: block; }
.esc-panel .box-lbl { color: #8a2050; margin-bottom: 6px; }
.esc-text { font-size: 13px; color: #5a1035; line-height: 1.6; font-style: italic; }

.stage-header { background: #1A1A1A; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.stage-lbl { font-family: 'Poppins', sans-serif; font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 1.2px; }
.stage-name { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 18px; color: var(--yellow); margin-top: 2px; }
.stage-btns { display: flex; gap: 8px; }
.stage-btns-bottom { justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.stage-btns-bottom .stage-btn { padding: 10px 18px; font-size: 13px; }
.stage-btn { background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 12px; }
.stage-btn:hover { background: rgba(255,255,255,0.2); }
.stage-btn.primary { background: var(--yellow); color: #1A1A1A; }
.stage-btn.primary:hover { background: #ffe800; }

.stage-dots { display: flex; gap: 6px; justify-content: center; padding: 16px 0 6px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: #e0e0e0; cursor: pointer; transition: all 0.2s; }
.sdot.active { background: var(--yellow); width: 22px; border-radius: 4px; }
.sdot.done { background: var(--maternal); }

.debrief-intro { background: var(--purple); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.debrief-intro-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 16px; color: #fff; margin-bottom: 4px; }
.debrief-intro-text { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.55; }

.debrief-prompt { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; border-left: 4px solid var(--purple); }
.dp-type { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple); margin-bottom: 5px; }
.dp-text { font-size: 14px; color: #222; line-height: 1.6; font-style: italic; }

.pearl-box { background: var(--yellow); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.pearl-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 10px; color: #1A1A1A; }
.pearl-item { font-size: 13px; color: #1A1A1A; padding: 5px 0 5px 18px; position: relative; line-height: 1.5; }
.pearl-item::before { content: '★'; position: absolute; left: 0; font-size: 10px; top: 7px; }

.end-session-hero { text-align: center; padding: 28px 0 18px; }
.end-session-emoji { font-size: 52px; margin-bottom: 14px; }
.end-session-title { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 28px; margin-bottom: 6px; }
.end-session-meta { font-size: 14px; color: var(--text-muted); }

.qr-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 16px; text-align: center; }
.qr-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 14px; text-align: left; }
.qr-canvas-wrap { display: flex; justify-content: center; margin-bottom: 10px; }
.qr-url { font-size: 11px; color: #aaa; margin-top: 4px; }

.log-box { background: #F0FAF4; border: 1px solid var(--maternal); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; }
.log-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 14px; color: #1a5c35; margin-bottom: 12px; }
.log-input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #ccc; font-family: 'Poppins', sans-serif; font-size: 13px; margin-bottom: 8px; }
.log-btn { width: 100%; background: var(--maternal); color: #fff; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 8px; border: none; cursor: pointer; margin-top: 4px; }
.log-btn:hover { background: #3d9c61; }

/* ── LIBRARY PAGE ── */
.lib-page { max-width: 1000px; margin: 0 auto; padding: 32px 36px 64px; }
.lib-search { width: 100%; padding: 13px 18px; font-family: 'Poppins', sans-serif; font-size: 14px; border: 2px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; outline: none; }
.lib-search:focus { border-color: var(--purple); }
.lib-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.lib-pill { padding: 7px 14px; border-radius: 20px; border: 2px solid transparent; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.15s; }
.lib-count { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.scenario-cards { display: flex; flex-direction: column; gap: 10px; }
.scenario-card { background: #fff; border: 1px solid var(--border); border-left: 4px solid; border-radius: var(--radius-md); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scenario-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.sc-info { flex: 1; }
.sc-title { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.sc-meta { font-size: 11px; color: #888; display: flex; gap: 10px; flex-wrap: wrap; }
.sc-tag { display: inline-block; background: #f5f5f5; border-radius: 5px; padding: 2px 7px; font-size: 11px; }
.sc-btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ── RESOURCES PAGE ── */
.resources-page { max-width: 1000px; margin: 0 auto; padding: 32px 36px 64px; }
.resource-group { margin-bottom: 40px; }
.resource-group-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px; }
.res-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform 0.15s; }
.res-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.res-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.res-name { font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.2; }
.res-desc { font-size: 11px; color: #888; line-height: 1.5; flex: 1; }
.res-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; width: fit-content; font-family: 'Poppins', sans-serif; }
.badge-pdf { background: #FDECEA; color: #c0392b; }
.badge-canva { background: #E8F0FE; color: #1a56d4; }
.badge-word { background: #E3F2FD; color: #1565C0; }
.badge-link { background: #E8F5E9; color: #2E7D32; }
.badge-png { background: #F3E8FB; color: #7B3FB5; }

.canva-embed-wrap { position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.1); margin-bottom: 8px; }
.canva-embed-wrap iframe { position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; }
.canva-link { font-size: 12px; color: var(--anaesthetic); margin-bottom: 24px; display: inline-block; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: #1A1A1A; padding: 44px 0; }
.page-hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 36px; }
.page-hero-inner.ph-1000 { max-width: 1000px; }
.page-hero-inner.ph-800 { max-width: 800px; padding: 0 20px; }
.page-hero-inner.ph-680 { max-width: 680px; padding: 0 24px; }
.page-hero-inner.ph-620 { max-width: 620px; padding: 0 20px; }
.page-hero-label { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; background: var(--purple); color: #fff; display: inline-block; padding: 6px 15px; border-radius: 20px; margin-bottom: 18px; }
.page-hero h1 { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: clamp(34px, 5.6vw, 54px); color: #fff; letter-spacing: -1px; line-height: 1.02; margin-bottom: 12px; }
.page-hero h1 span { color: var(--yellow); }
.page-hero p { font-size: clamp(15px, 1.6vw, 18px); color: #aaa; max-width: 700px; line-height: 1.6; }

/* ── FEEDBACK PAGE ── */
.feedback-page { max-width: 560px; margin: 0 auto; padding: 32px 24px 64px; }
.feedback-hero { text-align: center; padding: 28px 0 24px; }
.feedback-scenario { font-family: 'League Spartan', sans-serif; font-weight: 900; font-size: 22px; margin-top: 6px; }
.feedback-cat-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600; margin-top: 6px; }

.feedback-section { margin-bottom: 28px; }
.feedback-section-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; }

.stars-row { display: flex; gap: 0; margin-top: 8px; }
.star-btn { font-size: 28px; background: none; border: none; cursor: pointer; padding: 4px; color: #ddd; transition: color 0.15s; }
.star-btn.lit { color: var(--yellow); }
.star-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.role-btn { padding: 10px 8px; border-radius: 8px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 12px; text-align: center; transition: all 0.15s; }
.role-btn.selected { border-color: var(--purple); background: #f3e5f5; color: var(--purple); font-weight: 600; }

.feedback-textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 13px; resize: none; min-height: 80px; outline: none; }
.feedback-textarea:focus { border-color: var(--purple); }

.submit-btn { width: 100%; background: var(--yellow); color: #1A1A1A; font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 17px; padding: 16px; border-radius: var(--radius-md); border: none; cursor: pointer; margin-top: 8px; }
.submit-btn:hover { background: #ffe800; }

.key-learning-box { background: var(--yellow); border-radius: var(--radius-md); padding: 20px; margin-bottom: 20px; }
.kl-title { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.kl-item { font-size: 13px; padding: 4px 0 4px 16px; position: relative; line-height: 1.5; }
.kl-item::before { content: '→'; position: absolute; left: 0; font-size: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #1A1A1A; padding: 20px 24px; gap: 14px; z-index: 199; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .nav-account { margin-left: 10px; }
  .nav-tagline { display: none; }
  .nav-brand { margin-right: 12px; }
  .nav-cta { font-size: 12px !important; padding: 8px 12px; }
  .na-btn { padding: 8px 12px; font-size: 13px; }
  .hero { min-height: auto; }
  .hero-art { display: none; }
  .hero-content { padding: 40px 24px; }
  .hw-spin { font-size: 70px; }
  .hw-for { font-size: 50px; }
  .hw-sim { font-size: 70px; }
  .cycle { gap: 4px; }
  .cycle-arrow { display: none; }
  .cycle-step { min-width: 70px; }
  .sec-inner { padding: 0 20px; }
  .page-hero-inner,
  .page-hero-inner.ph-1000, .page-hero-inner.ph-800,
  .page-hero-inner.ph-680, .page-hero-inner.ph-620 { padding-left: 20px; padding-right: 20px; }
  .print-bar { padding: 9px 16px; }
  .wheel-page, .lib-page, .resources-page, .feedback-page { padding: 24px 16px 48px; }
  .overview-meta { grid-template-columns: 1fr; }
  .vitals-grid { grid-template-columns: repeat(2,1fr); }
  .manual-grid { grid-template-columns: repeat(2,1fr); }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   BRAND ARTWORK / BACKGROUND THEME — Spin for SIM rings
   Asset: bx-original.jpg  (keep it in the site folder root)
   ============================================================ */

/* Homepage hero: real artwork in the existing art slot, kept airy
   (same gentle opacity as the original placeholder). */
.hero-art { opacity: 0.55; width: 460px; }
.hero-art img { width: 100%; height: auto; display: block; }

/* Inner-page + wheel-page headers: a sage wash over the rings with
   dark, readable text — so every page opens on-brand like the home hero. */
.page-hero {
  background-color: #C8C4B8;
  background-image:
    linear-gradient(115deg, rgba(200,196,184,0.92) 0%, rgba(200,196,184,0.70) 50%, rgba(200,196,184,0.30) 100%),
    url('bx-original.jpg');
  background-size: cover;
  background-position: center 28%;
}
.page-hero h1 { color: #1A1A1A; }
.page-hero h1 span {
  color: #1A1A1A;
  background: var(--yellow);
  padding: 0 10px 2px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.page-hero p { color: #2a2a2a; font-weight: 500; }
/* .page-hero-label stays a purple pill — already readable on sage */

/* Full-site background: the original artwork behind every page (crisp).
   Knob to taste — opacity below. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: #C8C4B8 url('bx-original.jpg') center / cover no-repeat;
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

/* Run/spin page: soften the artwork so it doesn't compete with the wheel */
body.run::before { opacity: 0.5; }

/* Homepage: let the rings show across the whole page by making the light
   sections see-through (a soft white veil keeps text readable). */
.home .sec.bg-off  { background: rgba(255,255,255,0.82); }
.home .sec.bg-white { background: rgba(255,255,255,0.90); }
