/* ===== JURY - module styles =====
   Identity: courthouse warmth. Oxblood red → brass gold instead of the
   indigo-violet of the other rooms. Serif typography (Georgia) for case
   titles and question prompts. Roman numerals in the sidebar. Ornamental
   diamond-pip dividers separate sections. Architectural pattern matches
   Bias Lab (top progress bar, sidebar + card, reveal below). */

:root {
  --accent: #991b1b;             /* red-800, oxblood */
  --accent-dim: rgba(153,27,27,0.10);
  --accent-2: #ca8a04;           /* yellow-600, brass */
  --glow: 0 0 40px rgba(153,27,27,0.14);

  --jr-card-bg: var(--bg-elevated);
  --jr-card-border: var(--border);
  --jr-dist-track: rgba(0,0,0,0.06);
  --jr-axis-track: rgba(0,0,0,0.06);
  --jr-axis-mid: rgba(0,0,0,0.18);
  --jr-marker-ring: #ffffff;
  --jr-paper: rgba(202,138,4,0.04);    /* faint warm paper tint for the card */
  --jr-paper-border: rgba(202,138,4,0.20);
  --jr-ornament: rgba(153,27,27,0.40);
  --jr-serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}
[data-theme="dark"] {
  --accent: #ef4444;             /* red-500 */
  --accent-dim: rgba(239,68,68,0.18);
  --accent-2: #f59e0b;           /* amber-500 */
  --glow: 0 0 40px rgba(239,68,68,0.22);

  --jr-dist-track: rgba(255,255,255,0.06);
  --jr-axis-track: rgba(255,255,255,0.06);
  --jr-axis-mid: rgba(255,255,255,0.22);
  --jr-marker-ring: #15151a;
  --jr-paper: rgba(245,158,11,0.04);
  --jr-paper-border: rgba(245,158,11,0.18);
  --jr-ornament: rgba(245,158,11,0.50);
}

.is-fading {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ===================================================================
   PROGRESS BAR (fixed top)
   =================================================================== */
.jr-progress-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
  background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .jr-progress-bar { background: rgba(255,255,255,0.06); }
.jr-progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===================================================================
   INTRO
   =================================================================== */
.jr-intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 16px 64px;
  text-align: center;
}
.jr-intro h1 {
  font-family: var(--jr-serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 28px;
}
.jr-intro-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 auto 40px;
  max-width: 520px;
  font-style: italic;
  font-family: var(--jr-serif);
}

/* Hero image sits above the title - wide letterbox courtroom interior.
   If the file isn't present, the <img> removes itself in JS and the SVG
   fallback below takes over. */
.jr-hero-img {
  display: block;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  margin: 0 auto 28px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(40,20,10,0.18);
}
[data-theme="dark"] .jr-hero-img {
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
}

/* Scales-of-justice motif. Always rendered, hidden when the hero image
   loads successfully. */
.jr-hero-svg {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto 16px;
  color: var(--accent);
  opacity: 0.78;
}
.jr-hero-svg.is-hidden { display: none; }
[data-theme="dark"] .jr-hero-svg { opacity: 0.85; }
.jr-intro-cta {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px rgba(153,27,27,0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jr-intro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(153,27,27,0.36);
}

/* ===================================================================
   CASE STAGE
   =================================================================== */
/* Atmospheric courtroom backdrop: the same hero image from the intro,
   blurred heavily and faded to ~12% opacity, sits fixed behind every
   case page. The page literally takes place inside the courtroom the
   user just walked into. Combined with a soft oak-tone vignette in the
   corners for a hint of paneled walls. */
#juryRoot {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at top left,    rgba(120,60,20,0.06), transparent 55%),
    radial-gradient(ellipse at top right,   rgba(120,60,20,0.06), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(120,60,20,0.05), transparent 55%),
    radial-gradient(ellipse at bottom right,rgba(120,60,20,0.05), transparent 55%);
}
#juryRoot::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/jury/intro-hero.webp') center top / cover no-repeat;
  /* Very mild blur - the courtroom should be clearly recognisable as a
     courtroom, not a beige haze. Text on case cards sits on the card's
     own solid bg, so a sharper backdrop doesn't hurt legibility. */
  filter: blur(3px) saturate(1.05);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}
[data-theme="dark"] #juryRoot {
  background:
    radial-gradient(ellipse at top left,    rgba(180,90,30,0.10), transparent 55%),
    radial-gradient(ellipse at top right,   rgba(180,90,30,0.10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(180,90,30,0.08), transparent 55%),
    radial-gradient(ellipse at bottom right,rgba(180,90,30,0.08), transparent 55%);
}
[data-theme="dark"] #juryRoot::before {
  /* Dark mode: drop brightness so the daylight courtroom doesn't blow out
     against near-black page bg. Keep mild blur for consistency. */
  filter: blur(3px) brightness(0.45) saturate(0.95);
  opacity: 0.48;
}

.jr-stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 56px) clamp(20px, 3vw, 40px) 64px;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}
.jr-layout {
  display: flex;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
}
.jr-sidebar {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.jr-sidebar-step {
  font-family: var(--jr-serif);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 10px;
}
.jr-sidebar-eyebrow {
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}
/* Ornamental SVG rule under the sidebar step. Inherits color from
   --jr-ornament so it sits a touch softer than the case-number text. */
.jr-ornament {
  display: block;
  width: 80px;
  height: 10px;
  color: var(--jr-ornament);
  margin-bottom: 12px;
}
.jr-sidebar-title {
  font-family: var(--jr-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
  line-height: 1.28;
}
/* Ghost-pill restart action - sidebar-sized version of the result-page
   action buttons. Keeps Georgia serif italic for the room's identity but
   wears a button shell so it's visually consistent with the page's
   other actions. */
.jr-sidebar-restart {
  margin-top: 22px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--jr-serif);
  font-size: 0.84rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  align-self: flex-start;
}
.jr-sidebar-restart:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.jr-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 860px) {
  .jr-layout {
    flex-direction: column;
    gap: 16px;
  }
  .jr-sidebar {
    width: 100%;
    position: static;
    display: flex; align-items: baseline; gap: 16px;
    flex-wrap: wrap;
  }
  .jr-sidebar-step { margin-bottom: 0; }
  .jr-sidebar-eyebrow { margin-bottom: 0; }
  .jr-sidebar-title { font-size: 1rem; }
}

/* ---- Card ---- */
.jr-card {
  /* Warm "paper" tint sitting on top of the elevated bg - the underlying
     bg-elevated remains the source of contrast; the gold cast is subtle. */
  background:
    linear-gradient(var(--jr-paper), var(--jr-paper)),
    var(--jr-card-bg);
  border: 1px solid var(--jr-paper-border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 36px rgba(60,30,10,0.06);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
[data-theme="dark"] .jr-card {
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}

/* Per-case hero image at the top of the card. Optional - if the file at
   /images/jury/cases/<case-id>.webp isn't present, the <img> removes
   itself and the card opens straight into the facts. */
.jr-case-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
  box-shadow: 0 10px 28px rgba(40,20,10,0.14);
}
[data-theme="dark"] .jr-case-img {
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* ---- Facts ---- */
.jr-facts {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jr-facts p {
  font-family: var(--jr-serif);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text);
}
.jr-facts p:first-child {
  font-family: var(--jr-serif);
  font-size: clamp(1.12rem, 1.9vw, 1.28rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.jr-facts p:first-child::first-letter {
  /* Mild drop-cap on the opening sentence - gives the case a "narrative
     opens here" feel without going full medieval manuscript. */
  font-size: 1.6em;
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.04em;
}

/* Ornamental divider between facts and the verdict prompt. */
.jr-card-ornament {
  display: block;
  width: 100%;
  max-width: 200px;
  height: 12px;
  margin: 4px auto 18px;
  color: var(--jr-ornament);
}

/* ---- Question ---- */
.jr-question {
  font-family: var(--jr-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.005em;
  margin: 8px 0 20px;
  text-align: center;
}

/* ---- Options ---- */
.jr-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jr-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.jr-option:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.jr-option:disabled { cursor: default; }
.jr-option.is-chosen {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.jr-option.is-faded {
  opacity: 0.5;
}
.jr-option-marker {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.jr-option.is-chosen .jr-option-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.jr-option-label { flex: 1; line-height: 1.4; }

/* ===================================================================
   REVEAL PANEL
   =================================================================== */
.jr-reveal {
  margin-top: 32px;
  padding: 26px clamp(20px, 4vw, 32px);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.jr-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Typographic verdict band - flanked by thin gold rules on either side
   so the verdict label reads like a section heading in a court file
   rather than a casual tag. */
.jr-reveal-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--jr-serif);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 auto 18px;
  text-align: center;
}
.jr-reveal-flag::before,
.jr-reveal-flag::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-2), transparent);
  max-width: 120px;
  opacity: 0.65;
}
.jr-reveal-flag::before { margin-right: 14px; }
.jr-reveal-flag::after  { margin-left: 14px; }
.jr-reveal-flag > * { white-space: nowrap; }
.jr-reveal-dist-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ---- Distribution bars ---- */
.jr-dist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.jr-dist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}
.jr-dist-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.jr-dist-row.is-chosen .jr-dist-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.jr-dist-bar {
  position: relative;
  flex: 1;
  height: 10px;
  background: var(--jr-dist-track);
  border-radius: 5px;
  overflow: hidden;
}
.jr-dist-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.45;
  border-radius: 5px;
  transition: width 0.7s cubic-bezier(0.22, 0.85, 0.30, 1);
}
.jr-dist-bar-fill.is-in { width: var(--target); }
.jr-dist-row.is-chosen .jr-dist-bar-fill { opacity: 1; }
.jr-dist-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  width: 38px;
  text-align: right;
}
.jr-dist-row.is-chosen .jr-dist-pct { color: var(--text); }
.jr-dist-you {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 6px;
}

.jr-reveal-insight {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}
.jr-reveal-citation {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}
.jr-reveal-citation a {
  color: var(--accent);
  font-weight: 500;
}

.jr-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.jr-next {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(153,27,27,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jr-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(153,27,27,0.34);
}

/* ===================================================================
   RESULTS
   =================================================================== */
.jr-results {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.jr-results-header {
  text-align: center;
  padding: 8px 0;
}
.jr-results-title {
  font-family: var(--jr-serif);
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.jr-results-sub {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ---- Dominant pattern card ---- */
.jr-results-headline-card {
  background: var(--jr-card-bg);
  border: 1px solid var(--jr-card-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(20,16,40,0.05);
}
.jr-results-headline-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.jr-results-headline {
  font-family: var(--jr-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 10px;
}
.jr-results-headline-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---- Four-axis profile ---- */
.jr-axes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jr-axis {
  background: var(--jr-card-bg);
  border: 1px solid var(--jr-card-border);
  border-radius: 18px;
  padding: 22px 24px 20px;
}
.jr-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.jr-axis-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.jr-axis-sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.jr-axis-bar {
  position: relative;
  height: 22px;
  border-radius: 11px;
  margin-bottom: 10px;
}
.jr-axis-track {
  position: absolute;
  inset: 0;
  background: var(--jr-axis-track);
  border-radius: 11px;
}
.jr-axis-mid {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  background: var(--jr-axis-mid);
  border-radius: 1px;
}
.jr-axis-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 11px;
  transition: left 0.9s cubic-bezier(0.22, 0.85, 0.30, 1), width 0.9s cubic-bezier(0.22, 0.85, 0.30, 1);
  opacity: 0.55;
}
.jr-axis-fill.is-in {
  left: var(--start);
  width: calc(var(--target) - var(--start));
}
.jr-axis-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: left 1s cubic-bezier(0.22, 0.85, 0.30, 1);
  pointer-events: none;
}
.jr-axis-marker.is-in { left: var(--target); }
.jr-axis-marker-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px var(--jr-marker-ring), 0 8px 20px rgba(153,27,27,0.42);
}
.jr-axis-poles {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.jr-axis-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Standout cases ---- */
.jr-standouts {
  background: var(--jr-card-bg);
  border: 1px solid var(--jr-card-border);
  border-radius: 18px;
  padding: 22px 24px;
}
.jr-standouts h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.jr-standouts-sub {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.jr-standouts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jr-standouts li {
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}
.jr-standout-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.jr-standout-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.jr-standout-yours {
  font-weight: 600;
  color: var(--accent);
}
.jr-standout-pct {
  color: var(--text-tertiary);
}

/* ---- Notes ---- (single paragraph; context, not a wall of caveats) */
.jr-notes {
  padding: 0 4px;
}
.jr-notes p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Actions ---- */
.jr-results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.jr-action {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.jr-action--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 10px 26px rgba(153,27,27,0.30);
}
.jr-action--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(153,27,27,0.36);
}
.jr-action--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.jr-action--ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  text-decoration: none;
}

/* ===================================================================
   RESPONSIVE / REDUCED MOTION
   =================================================================== */
@media (max-width: 600px) {
  .jr-stage { padding: 32px 16px 56px; }
  .jr-results { padding: 32px 12px 64px; }
  .jr-option { padding: 16px 18px; font-size: 0.96rem; }
  .jr-dist-pct { width: 32px; }
  .jr-axis { padding: 18px 18px 16px; }
  .jr-axis-sub { font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jr-axis-marker, .jr-axis-fill, .jr-dist-bar-fill, .jr-progress-bar-fill { transition: none; }
  .is-fading, .jr-reveal { transition: none; }
}
