/* ============================================================
   PTCG Case & Odds Lab — lab.css (unified design system)
   Ground-up rebuild replacing styles.css + site-theme.css on all
   sub pages (deck / penalty / penalty-navi / about / guides).
   index.html -> home.css, converter.html -> converter.css,
   opponent-error.html -> legacy styles.css (intentional).
   Assembled from scratch/lab-*.css — edit sections there and
   re-run scripts/assemble-lab.mjs, or edit this file directly
   for hotfixes (keep section banners intact).
   ============================================================ */


/* ==================== scratch/lab-shared.css ==================== */

/* ===== shared: design tokens ===== */
/* Holo Night Lab — single source of truth. No hardcoded colors below
   this block except token-alpha rgba() variants and the wizard's
   local pastel orb palette. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  /* Ink / Navy */
  --ink-950: #04080f;
  --ink-900: #060d16;
  --ink-800: #0a1828;
  --ink-700: #0e2236;
  --navy: #0f2a44;
  --navy-bright: #143a5c;
  --navy-dark: #07182a;

  /* Platinum */
  --plat-50: #fbfbfc;
  --plat-100: #f4f5f7;
  --plat-200: #e6e8ec;
  --plat-300: #cdd2d9;
  --plat-400: #9aa1ab;
  --plat-500: #5f6873;

  /* Accents */
  --gold: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-deep: #b76e0b;
  --gold-dark: #b76e0b;
  --gold-pale: #ffe9b8;
  --blue: #0b65b1;
  --blue-bright: #3ea2ef;
  --blue-pale: #bfe0f8;
  --blue-dark: #06477f;
  --red: #d91f2f;
  --red-soft: #ff6b74;
  --red-dark: #a9101f;
  --success: #0f766e;
  --success-bright: #36d39d;
  --warning: #b45309;
  --warning-bright: #fcae4a;

  /* Night surfaces */
  --bg: var(--ink-950);
  --text: var(--plat-200);
  --muted: var(--plat-400);
  --surface: rgba(13, 28, 45, 0.62);
  --surface-solid: #0c1a2b;
  --surface-soft: rgba(230, 232, 236, 0.045);
  --surface-blue: rgba(62, 162, 239, 0.1);
  --line: rgba(230, 232, 236, 0.12);
  --line-strong: rgba(230, 232, 236, 0.24);

  /* Depth */
  --shadow: 0 14px 30px rgba(2, 5, 9, 0.4);
  --shadow-strong: 0 24px 60px rgba(2, 5, 9, 0.55);
  --shadow-card: 0 1px 0 rgba(230, 232, 236, 0.05) inset, 0 18px 44px rgba(2, 5, 9, 0.45);

  /* Type */
  --font-display: "Space Grotesk", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --font-body: "Space Grotesk", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic UI", Meiryo, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, Menlo,
    "Hiragino Kaku Gothic ProN", monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.3, 1);

  /* Signature assets */
  --foil: linear-gradient(120deg, #8a5a0a 0%, var(--gold) 35%, var(--gold-pale) 52%, var(--gold) 68%, #8a5a0a 100%);
  --holo: linear-gradient(115deg, var(--gold) 0%, var(--gold-bright) 20%, #7dd3fc 46%, #c4b5fd 72%, var(--gold) 100%);
  --holo-line: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.9) 30%, rgba(125, 211, 252, 0.9) 55%, rgba(196, 181, 253, 0.85) 75%, transparent);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --glass: linear-gradient(165deg, rgba(15, 42, 68, 0.5) 0%, rgba(6, 13, 22, 0.78) 100%);
  --glass-soft: linear-gradient(180deg, rgba(15, 42, 68, 0.38), rgba(6, 13, 22, 0.6));
}

/* ===== shared: reset & base elements ===== */
* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100vw;
  color: var(--text);
  font-family: var(--font-body);
  /* Night atmosphere: depth glows + ink gradient + dot grid. Painted on
     body (scrolls with page) — no fixed background-attachment (iOS). */
  background-image:
    radial-gradient(rgba(230, 232, 236, 0.045) 1px, transparent 1.4px),
    radial-gradient(110% 60% at 85% -5%, rgba(15, 42, 68, 0.85) 0%, rgba(15, 42, 68, 0) 55%),
    radial-gradient(70% 50% at 0% 30%, rgba(14, 34, 54, 0.6) 0%, rgba(14, 34, 54, 0) 60%),
    radial-gradient(60% 40% at 100% 80%, rgba(98, 78, 162, 0.14) 0%, rgba(98, 78, 162, 0) 65%),
    linear-gradient(175deg, var(--ink-900) 0%, var(--ink-950) 45%, #030609 100%);
  background-size: 26px 26px, auto, auto, auto, auto;
  background-color: var(--ink-950);
}

/* Film grain — sits above everything except the wizard mist (z90). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: 0.55;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

a {
  color: var(--blue-bright);
  text-decoration-color: rgba(62, 162, 239, 0.45);
  text-underline-offset: 3px;
}

label {
  display: grid;
  gap: 7px;
}

label > span,
.load-message,
.condition-help,
.error-text,
.section-kicker {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.error-text {
  color: var(--warning-bright);
}

.regulation-ok {
  color: var(--success-bright);
}

[hidden],
.hidden {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.2);
}

::selection {
  background: rgba(245, 158, 11, 0.35);
}

/* ===== shared: form controls ===== */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 38px;
  padding: 0 14px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

button:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

input,
select,
textarea {
  background: rgba(4, 8, 15, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 38px;
  outline: none;
  padding: 0 11px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--plat-500);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--plat-400) 50%),
    linear-gradient(135deg, var(--plat-400) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 28px;
}

select option {
  background: var(--ink-800);
  color: var(--text);
}

textarea {
  line-height: 1.6;
  min-height: 286px;
  padding: 12px;
  resize: vertical;
}

/* ===== shared: button system ===== */
.primary-button {
  background: linear-gradient(170deg, rgba(62, 162, 239, 0.22) 0%, rgba(11, 101, 177, 0.3) 100%);
  border: 1px solid rgba(62, 162, 239, 0.5);
  color: var(--blue-pale);
}

.primary-button:hover {
  background: linear-gradient(170deg, rgba(62, 162, 239, 0.32) 0%, rgba(11, 101, 177, 0.42) 100%);
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(62, 162, 239, 0.16), 0 0 24px rgba(62, 162, 239, 0.18);
}

.ghost-button {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--plat-300);
}

.ghost-button:hover {
  border-color: var(--plat-300);
  color: var(--plat-100);
}

/* Gold foil CTAs — the one loud action per screen. */
.hero-cta,
.share-cta,
.pdoc-cta,
.pdoc-start-cta,
.guide-cta-card a,
.guide-site-note > a {
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 18% 0;
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #1d1303;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.05em;
  transition: background-position 0.55s var(--ease-out), transform 0.16s ease, box-shadow 0.16s ease;
}

.hero-cta:hover,
.share-cta:hover,
.pdoc-cta:hover,
.pdoc-start-cta:hover,
.guide-cta-card a:hover,
.guide-site-note > a:hover {
  background-position: 82% 0;
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.hero-cta:active,
.share-cta:active,
.pdoc-cta:active,
.pdoc-start-cta:active {
  transform: translateY(0);
}

/* ===== shared: kicker labels with measurement tick ===== */
.eyebrow,
.section-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ===== shared: corner measurement ticks (Lab Instrument) ===== */
.panel,
.pdoc-card,
.guide-related {
  position: relative;
}

.panel::before,
.pdoc-card::before,
.guide-related::before,
.guide-shell article > h1::after,
.guide-index-hero::after,
.beginner-hero::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    linear-gradient(rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.6)) left top / 14px 1.5px,
    linear-gradient(rgba(245, 158, 11, 0.6), rgba(245, 158, 11, 0.6)) left top / 1.5px 14px,
    linear-gradient(rgba(230, 232, 236, 0.26), rgba(230, 232, 236, 0.26)) right bottom / 14px 1.5px,
    linear-gradient(rgba(230, 232, 236, 0.26), rgba(230, 232, 236, 0.26)) right bottom / 1.5px 14px;
  background-repeat: no-repeat;
}

/* ===== shared: footer ===== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
  margin: 48px auto 24px;
  max-width: 1200px;
  padding: 24px 24px 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 180px;
  height: 1px;
  background: var(--holo-line);
}

.site-footer .footer-disclaimer {
  color: var(--plat-300);
  margin: 0 0 12px;
}

.site-footer .footer-disclaimer a {
  color: var(--blue-bright);
  font-weight: 800;
  text-decoration-color: rgba(62, 162, 239, 0.55);
  text-underline-offset: 3px;
}

.site-footer .footer-disclaimer strong {
  color: var(--plat-50);
}

.site-footer .footer-meta {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 16px 0 0;
  opacity: 0.8;
}

/* ===== shared: keyframes ===== */
@keyframes stAurora {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* ===== shared: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-cta,
  .share-cta,
  .pdoc-cta,
  .pdoc-start-cta,
  .guide-cta-card a,
  .guide-site-note > a {
    transition: none;
  }
}


/* ==================== scratch/lab-deck.css ==================== */

/* ===== deck: hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px clamp(16px, 3vw, 36px) 56px;
  color: var(--plat-50);
  background:
    radial-gradient(110% 80% at 85% -10%, rgba(15, 42, 68, 0.9) 0%, rgba(15, 42, 68, 0) 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(14, 34, 54, 0.8) 0%, rgba(14, 34, 54, 0) 60%),
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.14), transparent 50%),
    linear-gradient(168deg, var(--ink-900) 0%, var(--ink-950) 64%, #030609 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(230, 232, 236, 0.07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: -34vmax;
  width: 64vmax;
  height: 64vmax;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.13), rgba(245, 158, 11, 0) 70%);
  filter: blur(28px);
  transform-origin: 50% 62%;
  animation: stAurora 38s linear infinite;
}

.hero-inner {
  margin: 0 auto;
  max-width: 880px;
  position: relative;
  text-align: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  text-decoration: none;
}

.hero-logo {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.hero-brand-text {
  display: inline-block;
}

.hero-title {
  color: var(--plat-50);
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 auto 14px;
  max-width: 720px;
}

/* Holo foil headline accent — the new signature. */
.hero-accent {
  background: var(--holo);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: var(--plat-300);
  font-size: clamp(14px, 1.8vw, 17px);
  margin: 0 auto 28px;
}

.hero-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(6, 13, 22, 0.6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-strong);
}

.hero-input input {
  height: 52px;
  min-height: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  width: 100%;
  background: rgba(4, 8, 15, 0.72);
  border: 1px solid var(--line);
  color: var(--plat-100);
}

.hero-input input::placeholder {
  color: var(--plat-400);
}

.hero-input input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  min-height: 0;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 16px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 0;
}

.hero-sample {
  border-radius: 999px;
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(230, 232, 236, 0.28);
  color: var(--plat-300);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hero-sample:hover {
  box-shadow: none;
  background: rgba(230, 232, 236, 0.08);
  border-color: rgba(245, 158, 11, 0.6);
  color: var(--gold-pale);
}

.hero-tagline {
  color: var(--plat-400);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-status {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 0;
  min-height: 20px;
}

.hero-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 36px auto 0;
  max-width: 720px;
  padding: 0;
}

.hero-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(15, 42, 68, 0.32);
  border: 1px solid var(--line);
  color: var(--plat-200);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  background: var(--gold);
  color: #1d1303;
}

/* ===== deck: app shell & glass panels ===== */
.app-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 0.88fr) minmax(480px, 1.28fr);
  margin: -32px auto 0;
  max-width: 1480px;
  padding: 0 clamp(14px, 3vw, 36px) 36px;
  position: relative;
  z-index: 2;
}

.panel {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  padding: 18px;
}

.input-panel {
  grid-column: 1;
}

.calc-panel {
  grid-column: 2;
}

.results-panel,
.deck-panel {
  grid-column: 1 / -1;
}

.features-panel {
  grid-column: 1 / -1;
}

.guides-panel {
  background: var(--glass-soft);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-title h2 {
  color: var(--plat-100);
}

.deck-title {
  align-items: start;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.summary-strip div {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 12px;
  background: var(--glass-soft);
}

.summary-strip span {
  display: block;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.summary-strip small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.raw-deck-input {
  display: none;
}

.load-message {
  min-height: 20px;
  margin-bottom: 10px;
}

.deck-image-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.deck-image-panel img {
  display: block;
  width: 100%;
  background: var(--plat-100);
}

.deck-image-panel figcaption {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

/* ===== deck: condition tabs & cards ===== */
.condition-tabs {
  display: flex;
  gap: 6px;
  margin: -2px 0 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}

.condition-tab {
  background: var(--surface-soft);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 142px;
}

.condition-tab.active {
  background: linear-gradient(170deg, var(--navy) 0%, var(--ink-800) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--plat-50);
}

.columns {
  display: grid;
  gap: 12px;
}

.condition-card {
  background: rgba(6, 13, 22, 0.45);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  gap: 13px;
  padding: 14px;
}

.condition-card.active {
  display: grid;
}

.condition-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.condition-title {
  display: block;
  color: var(--plat-100);
  font-size: 16px;
  line-height: 1.35;
}

.condition-kind-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 3px;
}

.disable-condition {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  justify-self: start;
  padding: 8px 10px;
}

.disable-condition input {
  accent-color: var(--red-soft);
  min-height: auto;
  width: auto;
}

.disable-condition span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.condition-selection {
  display: grid;
  gap: 8px;
}

.selected-condition-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  min-height: 112px;
  padding: 10px;
  background: rgba(4, 8, 15, 0.45);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}

.condition-token {
  position: relative;
  width: 70px;
}

.condition-token img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  background: var(--plat-100);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.condition-token-name {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
  text-align: center;
}

.condition-remove {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  font-size: 16px;
}

.condition-empty {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.picker-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.picker-tab {
  background: var(--surface-soft);
  color: var(--muted);
  flex: 0 0 auto;
  min-height: 33px;
}

.picker-tab.active {
  background: linear-gradient(170deg, var(--navy) 0%, var(--ink-800) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: var(--plat-50);
}

.picker-tabs.locked .picker-tab:not(.active) {
  display: none;
}

.quick-picks {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(176px, 100%), 1fr));
  max-height: 268px;
  overflow: auto;
  padding-right: 2px;
}

.quick-picks button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  justify-items: start;
  min-height: 52px;
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
  background: rgba(6, 13, 22, 0.5);
}

.pick-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4.2;
  background: var(--plat-100);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 4px;
  width: 34px;
}

.pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick-name {
  color: var(--plat-200);
  line-height: 1.3;
  min-width: 0;
}

.pick-name small {
  color: var(--muted);
}

.pick-count,
.count-value {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.condition-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== deck: results ===== */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.result-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.share-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.share-cta:disabled {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--plat-500);
  box-shadow: none;
  transform: none;
}

.share-preview {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 14px;
  overflow: hidden;
}

.share-preview img {
  display: block;
  width: 100%;
}

.share-preview figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.results-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-card {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 9px;
  min-height: 142px;
  padding: 16px;
}

.result-card.combined {
  position: relative;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(15, 42, 68, 0.9) 0%, rgba(15, 42, 68, 0) 60%),
    linear-gradient(165deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--plat-50);
  grid-column: 1 / -1;
  overflow: hidden;
}

.result-card.combined::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--holo-line);
  pointer-events: none;
}

.result-card.combined .result-value {
  color: var(--gold-pale);
}

.result-card.combined .result-meta,
.result-card.combined .result-top span {
  color: var(--plat-300);
}

.result-card.combined .warning-text {
  color: var(--gold-pale);
}

.result-card.deck-validation {
  border-color: rgba(252, 174, 74, 0.5);
  grid-column: 1 / -1;
}

.result-card.deck-validation .result-value {
  color: var(--warning-bright);
}

.validation-list {
  color: var(--warning-bright);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
}

.result-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: space-between;
}

.result-top strong {
  color: var(--plat-100);
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-top span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.result-value {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.result-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.warning-text {
  color: var(--warning-bright);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== deck: card list & official search ===== */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  flex-wrap: wrap;
  justify-content: end;
  max-width: none;
}

.filter-row input {
  flex: 1 1 280px;
  min-width: 180px;
}

.filter-row select {
  flex: 0 0 150px;
}

.filter-row button {
  flex: 0 0 auto;
}

.deck-code-message {
  margin: -4px 0 12px;
}

.deck-code-message a {
  color: var(--gold-bright);
  font-weight: 800;
}

.guides-lede {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.official-search {
  background: rgba(4, 8, 15, 0.4);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.official-search-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) 150px auto;
}

.official-search-results {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  max-height: 300px;
  overflow: auto;
}

.official-card-button {
  background: rgba(6, 13, 22, 0.5);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  justify-items: start;
  min-height: 64px;
  padding: 7px;
  font-size: 13px;
  text-align: left;
}

.official-card-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.deck-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  max-height: 720px;
  overflow: auto;
  padding-right: 2px;
}

.card-row {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 54px 1fr auto;
  min-height: 80px;
  padding: 8px;
}

.card-row.is-zero {
  opacity: 0.45;
}

.card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4.2;
  background: var(--plat-100);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  border-radius: 6px;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb span {
  color: var(--ink-700);
  font-size: 10px;
  text-align: center;
}

.card-main {
  min-width: 0;
}

.card-main strong {
  display: block;
  color: var(--plat-100);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-main small {
  color: var(--muted);
}

.count-control {
  display: grid;
  align-items: center;
  gap: 6px;
  grid-template-columns: 30px 36px 30px;
}

.count-button {
  background: var(--surface-soft);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  min-height: 30px;
  padding: 0;
}

.count-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.count-value {
  font-size: 13px;
  font-weight: 900;
  padding: 8px 0;
  text-align: center;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

/* ===== deck: probability dock (dark glass instrument) ===== */
.probability-dock {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--visual-viewport-bottom, 0px));
  transform: translate(-50%, 18px);
  width: min(780px, calc(100vw - 28px));
  max-width: min(780px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  background: rgba(6, 13, 22, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(2, 5, 9, 0.55), 0 0 0 1px rgba(4, 8, 15, 0.5);
}

.probability-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.probability-dock.is-empty {
  display: none;
}

.probability-dock.is-error {
  border-color: rgba(255, 107, 116, 0.55);
  box-shadow: 0 24px 60px rgba(2, 5, 9, 0.55), 0 0 24px rgba(255, 107, 116, 0.18);
}

.probability-dock[data-count="1"] {
  width: min(360px, calc(100vw - 28px));
}

.probability-dock[data-count="2"] {
  width: min(420px, calc(100vw - 28px));
}

.probability-dock[data-count="3"] {
  width: min(560px, calc(100vw - 28px));
}

.probability-dock-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.probability-dock-head strong {
  display: block;
  color: var(--plat-100);
  font-size: 15px;
  line-height: 1.2;
}

.probability-dock-kicker {
  display: block;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.probability-dock-jump {
  background: rgba(230, 232, 236, 0.1);
  border-radius: 8px;
  color: var(--plat-200);
  font-size: 12px;
  font-weight: 900;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.probability-dock-items {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(var(--probability-dock-count, 4), minmax(116px, 1fr));
}

.probability-dock-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.probability-dock-label {
  color: var(--plat-400);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.probability-dock-item strong {
  color: var(--plat-100);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-dock-item b {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.probability-dock-item small {
  color: var(--plat-400);
  font-size: 10px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-dock-item.is-combined {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(138, 90, 10, 0.16));
  border-color: rgba(245, 158, 11, 0.5);
}

.probability-dock-item.is-combined .probability-dock-label,
.probability-dock-item.is-combined strong,
.probability-dock-item.is-combined small {
  color: var(--gold-pale);
}

.probability-dock-item.is-combined b {
  color: var(--gold-pale);
}

.probability-dock-item.is-invalid {
  background: linear-gradient(180deg, rgba(252, 174, 74, 0.16), rgba(120, 70, 12, 0.18));
  border-color: rgba(252, 174, 74, 0.5);
  grid-column: 1 / -1;
}

.probability-dock-item.is-invalid b,
.probability-dock-item.is-warning b {
  color: var(--red-soft);
}

.probability-dock-item.is-invalid small {
  color: var(--warning-bright);
}

body.has-probability-dock {
  padding-bottom: calc(var(--probability-dock-height, 104px) + 24px + env(safe-area-inset-bottom, 0px));
}

/* ===== deck: features / guide links / disclaimer ===== */
.features-lede {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 860px;
}

.features-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin: 0;
}

.features-list div {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: 14px;
}

.features-list dt {
  color: var(--gold-bright);
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 6px;
}

.features-list dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.features-list a {
  color: var(--blue-bright);
  font-weight: 800;
  text-decoration: none;
}

.features-list a:hover {
  text-decoration: underline;
}

.guides-link-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.guides-link-grid li {
  margin: 0;
}

.guides-link-grid a {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 16px 16px 18px;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.guides-link-grid a:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 8px 24px rgba(2, 5, 9, 0.4), 0 0 0 3px rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.guides-link-tag {
  display: inline-block;
  background: rgba(62, 162, 239, 0.16);
  border: 1px solid rgba(62, 162, 239, 0.4);
  border-radius: 999px;
  color: var(--blue-pale);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  width: max-content;
}

.guides-link-grid strong {
  color: var(--plat-100);
  font-size: 14.5px;
  line-height: 1.5;
}

.guides-link-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.disclaimer-banner {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(62, 162, 239, 0.1)),
    rgba(12, 26, 43, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(2, 5, 9, 0.34);
  color: var(--plat-100);
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.6;
  margin: 16px 0;
  padding: 12px 16px;
}

.disclaimer-banner strong {
  color: var(--gold-bright);
  font-weight: 900;
  margin-right: 6px;
}

/* ===== deck: media queries ===== */
@media (max-width: 1080px) {
  .app-shell,
  .input-panel,
  .calc-panel,
  .results-panel,
  .deck-panel {
    grid-column: 1;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-steps {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px 16px 48px;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.25;
  }

  .hero-input {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .hero-input input {
    height: 48px;
    padding: 0 14px;
  }

  .hero-cta {
    height: 48px;
    justify-content: center;
    width: 100%;
  }

  .hero-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .panel {
    padding: 14px;
  }

  .summary-strip span {
    font-size: 26px;
  }

  .summary-strip small {
    font-size: 11px;
    line-height: 1.3;
  }

  .summary-strip div {
    padding: 10px 6px;
  }

  .panel-title,
  .deck-title {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .result-actions button {
    padding: 0 8px;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-row input {
    grid-column: 1 / -1;
  }

  .official-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .official-search-row input {
    grid-column: 1 / -1;
  }

  .deck-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .summary-strip span {
    font-size: 24px;
  }

  .result-value {
    font-size: 30px;
  }

  .hero-brand-text {
    font-size: 13px;
  }

  .panel {
    padding: 12px;
  }

  .card-row {
    gap: 8px;
    padding: 6px;
  }

  .count-control {
    grid-template-columns: 28px 32px 28px;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  .probability-dock {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + var(--visual-viewport-bottom, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    padding: 10px;
    transform: translateY(18px);
  }

  .probability-dock.is-visible {
    transform: translateY(0);
  }

  .probability-dock-head strong {
    font-size: 14px;
  }

  .probability-dock-items {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .probability-dock-item {
    flex: 0 0 126px;
    scroll-snap-align: start;
  }

  .probability-dock-item.is-combined {
    flex-basis: 156px;
  }

  .probability-dock-item.is-invalid {
    flex-basis: 100%;
  }

  .probability-dock-item b {
    font-size: 21px;
  }

  body.has-probability-dock {
    padding-bottom: calc(var(--probability-dock-height, 132px) + 22px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .probability-dock {
    transition: none;
  }

  .hero::after {
    animation: none;
  }
}


/* ==================== scratch/lab-penalty-doc.css ==================== */

/* ===== penalty-doc: page ===== */
body.penalty-doc-body {
  height: auto;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== penalty-doc: hero ===== */
.pdoc-hero {
  position: relative;
  overflow: hidden;
  color: var(--plat-50);
  padding: 30px clamp(16px, 4vw, 40px) 52px;
  background:
    radial-gradient(110% 80% at 85% -10%, rgba(15, 42, 68, 0.9) 0%, rgba(15, 42, 68, 0) 55%),
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.12), transparent 45%),
    linear-gradient(168deg, var(--ink-900) 0%, var(--ink-950) 64%, #030609 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

.pdoc-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 64vmax;
  height: 64vmax;
  left: 50%;
  top: -34vmax;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.13), rgba(245, 158, 11, 0) 70%);
  filter: blur(28px);
  transform-origin: 50% 62%;
  animation: stAurora 38s linear infinite;
}

.pdoc-hero-inner {
  margin: 0 auto;
  position: relative;
  max-width: 1120px;
  text-align: left;
}

.pdoc-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  text-decoration: none;
}

.pdoc-brand:hover {
  color: #fff;
}

.pdoc-hero-stage {
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
}

.pdoc-hero-copy {
  min-width: 0;
}

.pdoc-kicker {
  color: var(--gold-bright);
  font-size: 12px;
  margin-bottom: 8px;
}

.pdoc-title {
  color: var(--plat-50);
  font-family: var(--font-display);
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

/* Holo foil accent in the headline */
.pdoc-accent {
  background: var(--holo);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.pdoc-sub {
  color: var(--plat-300);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.75;
  max-width: 620px;
  margin: 16px 0 0;
}

.pdoc-sub strong {
  color: var(--plat-50);
  font-weight: 800;
}

.pdoc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  justify-content: flex-start;
  margin-top: 26px;
}

.pdoc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 16px;
  padding: 13px 24px;
  text-decoration: none;
}

.pdoc-tagline {
  color: var(--plat-400);
  font-size: 13px;
  font-weight: 700;
}

/* ===== penalty-doc: diagnosis orb scene ===== */
.pdoc-navi-visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 420px;
  max-width: 100%;
}

.pdoc-navi-visual::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.26), transparent 62%);
  filter: blur(8px);
}

.pdoc-orb-visual {
  display: grid;
  justify-items: center;
}

.pdoc-orb-scene {
  position: relative;
  aspect-ratio: 10 / 11;
  width: min(100%, 420px);
  max-width: 420px;
  margin-inline: auto;
}

.pdoc-orb-halo {
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(48% 44% at 50% 40%, rgba(245, 158, 11, 0.16), transparent 72%),
    radial-gradient(40% 38% at 26% 66%, rgba(62, 162, 239, 0.12), transparent 74%),
    radial-gradient(34% 32% at 76% 70%, rgba(126, 217, 184, 0.1), transparent 72%);
  filter: blur(2px);
}

.pdoc-orb-halo::before,
.pdoc-orb-halo::after {
  content: "";
  position: absolute;
  inset: 16% 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 233, 184, 0.28);
  animation: stBreathRing 7.5s ease-out infinite;
}

.pdoc-orb-halo::after {
  animation-delay: 3.75s;
  border-color: rgba(62, 162, 239, 0.22);
}

.pdoc-orb {
  --po-a: rgba(255, 248, 235, 0.2);
  --po-b: rgba(243, 221, 174, 0.07);
  --po-ring: rgba(245, 158, 11, 0.4);
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  padding: 12px;
  text-align: center;
  background:
    radial-gradient(42% 34% at 32% 24%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 74%),
    radial-gradient(135% 135% at 32% 26%, var(--po-a) 0%, var(--po-b) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--po-ring);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 34px -6px var(--po-ring);
}

.pdoc-orb--q {
  left: 50%;
  top: 4%;
  translate: -50% 0;
  width: 56%;
  padding: 24px;
  z-index: 1;
  animation: stBubbleA 10.5s ease-in-out infinite alternate;
}

.pdoc-orb--q .pdoc-orb-step {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.pdoc-orb--q strong {
  color: var(--plat-50);
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pdoc-orb--q .pdoc-orb-note {
  color: var(--plat-400);
  font-size: clamp(9px, 2.4vw, 11px);
  letter-spacing: 0.08em;
}

.pdoc-orb--sat {
  color: var(--plat-200);
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pdoc-orb--sat-a {
  --po-a: rgba(238, 245, 252, 0.2);
  --po-b: rgba(205, 223, 242, 0.07);
  --po-ring: rgba(62, 162, 239, 0.4);
  left: 2%;
  top: 38%;
  width: 27%;
  animation: stBubbleB 9s ease-in-out infinite alternate;
  animation-delay: -3s;
}

.pdoc-orb--sat-b {
  --po-a: rgba(237, 247, 242, 0.2);
  --po-b: rgba(203, 228, 216, 0.07);
  --po-ring: rgba(58, 187, 142, 0.38);
  right: 0%;
  top: 46%;
  width: 24%;
  animation: stBubbleA 8.2s ease-in-out infinite alternate;
  animation-delay: -5.4s;
}

.pdoc-orb--sat-c {
  --po-a: rgba(244, 242, 251, 0.2);
  --po-b: rgba(217, 212, 236, 0.07);
  --po-ring: rgba(151, 134, 224, 0.38);
  left: 16%;
  top: 64%;
  width: 21%;
  animation: stBubbleB 11.4s ease-in-out infinite alternate;
  animation-delay: -1.6s;
}

.pdoc-orb-result {
  position: absolute;
  bottom: 2%;
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: 92%;
  display: grid;
  gap: 3px;
  justify-items: center;
  text-align: center;
  padding: 14px clamp(18px, 5vw, 30px);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(15, 42, 68, 0.66), rgba(4, 8, 15, 0.8));
  border: 1px solid rgba(255, 233, 184, 0.34);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(2, 5, 9, 0.45);
  animation: stBubbleA 12.5s ease-in-out infinite alternate;
  animation-delay: -6s;
}

.pdoc-orb-result > span {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.pdoc-orb-result strong {
  color: var(--plat-50);
  font-size: clamp(14px, 3.8vw, 17px);
  letter-spacing: 0.02em;
}

.pdoc-orb-result em {
  color: var(--plat-400);
  font-size: clamp(9px, 2.4vw, 11px);
  font-style: normal;
  letter-spacing: 0.06em;
}

/* ===== penalty-doc: hero steps ===== */
.pdoc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
}

.pdoc-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 232, 236, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--plat-200);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 15px 8px 8px;
}

/* ===== penalty-doc: main flow ===== */
.pdoc-main {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 2.4vw, 24px) 56px;
}

.pdoc-start {
  position: relative;
  z-index: 1;
  margin-top: -64px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
  padding: 30px 24px 28px;
  overflow: hidden;
}

.pdoc-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--holo-line);
  pointer-events: none;
}

.pdoc-start-kicker {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.pdoc-start-title {
  color: var(--plat-50);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.pdoc-start-sub {
  color: var(--plat-200);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 540px;
}

.pdoc-start-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  font-size: 16px;
  margin-top: 8px;
  padding: 15px 28px;
  text-decoration: none;
}

.pdoc-start-note {
  color: var(--plat-300);
  font-size: 12.5px;
  font-weight: 700;
}

.pdoc-section {
  display: grid;
  gap: 16px;
}

.pdoc-h2 {
  color: var(--plat-50);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 14px;
}

.pdoc-h2::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--blue-bright), #c4b5fd);
  border-radius: 999px;
}

.pdoc-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.pdoc-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.pdoc-card h3 {
  color: var(--plat-100);
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.pdoc-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pdoc-card a {
  color: var(--blue-bright);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.pdoc-card a:hover {
  text-decoration: underline;
}

.pdoc-card-mark {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(62, 162, 239, 0.14);
  border: 1px solid rgba(62, 162, 239, 0.35);
  color: var(--blue-pale);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Gold check list — marker restored (was mojibake-broken in styles.css) */
.pdoc-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 20px 22px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pdoc-list li {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.pdoc-list li::before {
  content: "✔";
  color: var(--gold-bright);
  font-weight: 900;
  left: 0;
  position: absolute;
}

.pdoc-qa {
  display: grid;
  gap: 0;
  margin: 0;
}

.pdoc-qa dt {
  border-top: 1px solid var(--line);
  color: var(--plat-100);
  font-size: 15.5px;
  font-weight: 800;
  padding: 16px 0 6px;
}

.pdoc-qa dt:first-child {
  border-top: none;
}

.pdoc-qa dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
  padding: 0 0 16px;
}

.pdoc-cta-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 26px clamp(20px, 3vw, 34px);
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(20, 58, 92, 0.92) 0%, rgba(15, 42, 68, 0.12) 60%),
    linear-gradient(165deg, rgba(10, 24, 40, 0.98) 0%, rgba(4, 8, 15, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: var(--plat-50);
  overflow: hidden;
}

.pdoc-cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--holo-line);
  pointer-events: none;
}

.pdoc-cta-band h2 {
  color: var(--plat-50);
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 900;
  margin: 0;
}

.pdoc-cta-band p {
  color: var(--plat-200);
  font-size: 14px;
  margin-top: 4px;
}

.pdoc-cta-band .pdoc-start-cta {
  margin-top: 0;
}

.pdoc-source-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.penalty-onepage-disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

body.penalty-doc-body .penalty-onepage-disclaimer {
  margin-top: -4px;
}

.penalty-onepage-disclaimer a {
  color: var(--blue-bright);
  font-weight: 900;
  text-decoration: none;
}

.penalty-onepage-disclaimer a:hover {
  text-decoration: underline;
}

/* ===== penalty-doc: media queries ===== */
@media (max-width: 900px) {
  body.penalty-doc-body .pdoc-hero-inner {
    text-align: center;
  }

  .pdoc-hero-stage {
    grid-template-columns: 1fr;
  }

  body.penalty-doc-body .pdoc-sub {
    margin-left: auto;
    margin-right: auto;
  }

  body.penalty-doc-body .pdoc-hero-actions {
    justify-content: center;
  }

  .pdoc-navi-visual {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .pdoc-hero {
    padding: 22px 14px 44px;
  }

  .pdoc-start {
    margin-top: -44px;
    padding: 24px 18px;
  }

  .pdoc-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdoc-cta-band .pdoc-start-cta {
    width: 100%;
    justify-content: center;
  }

  .pdoc-main {
    padding-bottom: 40px;
  }

  .pdoc-navi-visual {
    min-height: 330px;
  }

  body.penalty-doc-body .pdoc-hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  body.penalty-doc-body .pdoc-cta {
    justify-content: center;
    width: min(100%, 240px);
  }

  body.penalty-doc-body .pdoc-tagline {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdoc-hero::after,
  .pdoc-orb,
  .pdoc-orb-halo::before,
  .pdoc-orb-halo::after,
  .pdoc-orb-result {
    animation: none;
  }
}


/* ==================== scratch/lab-wizard.css ==================== */

/* ===== wizard: single-screen app skeleton =====
   Lifeline chain: body 100svh/overflow hidden -> shell rows auto/1fr/auto
   -> stage rows auto/1fr/auto + overflow hidden -> wizard-screen
   min-height:0 -> question (5 rows) / result (scroll). Do not break. */
body.penalty-onepage-body {
  height: 100svh;
  overflow: hidden;
}

.penalty-onepage-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  height: 100svh;
  min-height: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(12px, 2vw, 22px);
}

.penalty-onepage-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--plat-50);
  background:
    radial-gradient(120% 120% at 90% -20%, rgba(15, 42, 68, 0.95) 0%, rgba(15, 42, 68, 0) 60%),
    linear-gradient(165deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
}

.penalty-back-link {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.penalty-back-link:hover {
  color: #fff;
}

.penalty-onepage-title {
  min-width: 0;
}

.penalty-onepage-title .section-kicker {
  color: var(--gold-bright);
  font-size: 11px;
  margin-bottom: 2px;
}

.penalty-onepage-title h1 {
  color: var(--plat-50);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.2;
}

.penalty-onepage-title p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.penalty-source-note {
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
  max-width: 270px;
}

/* ===== wizard: stage (dark glass instrument) ===== */
.penalty-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-strong);
}

.penalty-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--holo-line);
  pointer-events: none;
}

.stage-progress {
  display: grid;
  gap: 8px;
}

.stage-progress > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.stage-progress span {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.stage-progress strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stage-progress-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(230, 232, 236, 0.08);
}

.stage-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--holo);
  transition: width 0.18s ease;
}

.wizard-screen {
  min-height: 0;
  overflow: hidden;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

/* ===== wizard: question screen ===== */
.single-question {
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(52% 40% at 86% 10%, rgba(245, 158, 11, 0.12), transparent 75%),
    radial-gradient(56% 44% at 4% 86%, rgba(62, 162, 239, 0.1), transparent 76%),
    radial-gradient(40% 34% at 62% 96%, rgba(54, 211, 157, 0.08), transparent 74%);
}

.single-question h2 {
  color: var(--plat-50);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
}

.single-question > p:not(.question-kicker) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 720px;
}

.question-kicker {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* condition-question: yes/no screens — hook kept for parity */
.condition-question {
  min-height: 0;
}

.single-choice-grid,
.single-choice-grid.is-short {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 14px);
  min-height: 0;
  overflow: visible;
  padding: 6px 0 10px;
}

.single-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding: 2px 3px 8px;
}

/* yes / no / unknown — dark glass with semantic glow */
.single-answer {
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 96px;
  min-width: 0;
  padding: 13px 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.single-answer.yes {
  background: rgba(54, 211, 157, 0.08);
  border-color: rgba(54, 211, 157, 0.45);
  color: #7ce8c4;
}

.single-answer.no {
  background: rgba(255, 107, 116, 0.08);
  border-color: rgba(255, 107, 116, 0.45);
  color: #ffaeb3;
}

.single-answer.unknown {
  background: rgba(62, 162, 239, 0.08);
  border-color: rgba(62, 162, 239, 0.45);
  color: var(--blue-pale);
}

/* ===== wizard: luminous pastel orbs (the mindfulness bubbles) =====
   Light orbs glowing against the night stage. --orb-a / --orb-b are a
   JS contract: bubble-fx.js copies them into the mist ripple. */
.single-choice {
  --orb-a: #fff8eb;
  --orb-b: #f3ddae;
  --ring: rgba(245, 158, 11, 0.45);
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  width: clamp(112px, 30vw, 150px);
  min-height: 0;
  padding: 14px;
  background: radial-gradient(135% 135% at 32% 26%, #fff 0%, var(--orb-a) 46%, var(--orb-b) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 44px -6px var(--ring),
    0 18px 44px -10px rgba(2, 5, 9, 0.7);
  animation: stBubbleA 9.5s ease-in-out infinite alternate;
  transition: scale 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.single-choice::before,
.single-choice::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--ring);
  pointer-events: none;
  animation: stBreathRing 6.5s ease-out infinite;
}

.single-choice::after {
  animation-delay: 3.25s;
}

.single-choice:nth-child(1) {
  animation-duration: 11s;
  width: clamp(126px, 34vw, 166px);
}

.single-choice:nth-child(2) {
  --orb-a: #eef5fc;
  --orb-b: #cddff2;
  --ring: rgba(62, 162, 239, 0.4);
  animation: stBubbleB 9.8s ease-in-out infinite alternate;
  animation-delay: -3.1s;
  margin-left: -12px;
  margin-top: 38px;
  width: clamp(102px, 27vw, 134px);
  z-index: 1;
}

.single-choice:nth-child(3) {
  --orb-a: #edf7f2;
  --orb-b: #cbe4d8;
  --ring: rgba(54, 211, 157, 0.35);
  animation-delay: -5.2s;
  margin-top: -16px;
  width: clamp(116px, 31vw, 148px);
}

.single-choice:nth-child(4) {
  --orb-a: #f4f2fb;
  --orb-b: #d9d4ec;
  --ring: rgba(151, 134, 224, 0.4);
  animation: stBubbleB 11.6s ease-in-out infinite alternate;
  animation-delay: -1.9s;
  margin-left: -10px;
  margin-top: 30px;
  width: clamp(98px, 26vw, 128px);
}

.single-choice:nth-child(5) {
  --orb-a: #fdf2ec;
  --orb-b: #f0d4c2;
  --ring: rgba(217, 119, 66, 0.4);
  animation-delay: -6.8s;
  margin-top: -12px;
  width: clamp(106px, 28vw, 140px);
}

.single-choice:nth-child(6) {
  --orb-a: #eef5fc;
  --orb-b: #cddff2;
  --ring: rgba(62, 162, 239, 0.4);
  animation: stBubbleB 8.9s ease-in-out infinite alternate;
  animation-delay: -4.2s;
  margin-top: 22px;
  width: clamp(96px, 25vw, 126px);
}

.single-choice:hover {
  scale: 1.05;
  z-index: 2;
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 6px color-mix(in srgb, var(--ring) 45%, transparent),
    0 0 60px -4px var(--ring),
    0 24px 52px -10px rgba(2, 5, 9, 0.7);
}

.single-choice:active {
  scale: 0.96;
}

.choice-icon {
  display: none;
}

.choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: center;
  color: inherit;
}

.choice-copy strong {
  color: rgba(15, 42, 68, 0.86);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.choice-copy > span {
  color: rgba(15, 42, 68, 0.52);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 13em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.answer-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 74px;
  overflow: auto;
}

.answer-trail span {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-pale);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  padding: 6px 9px;
}

/* ===== wizard: result screen ===== */
.result-screen {
  display: grid;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 2px 3px 8px;
}

.result-main {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 5px solid var(--blue-bright);
}

.result-main.penalty-warning {
  border-left-color: var(--gold-bright);
}

.result-main.penalty-danger {
  border-left-color: var(--warning-bright);
}

.result-main.penalty-critical {
  border-left-color: var(--red-soft);
}

.result-main.penalty-minor {
  border-left-color: var(--success-bright);
}

.result-main.penalty-neutral {
  border-left-color: var(--blue-bright);
}

.result-main h2 {
  color: var(--plat-50);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.result-main dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.result-main dl div {
  background: rgba(4, 8, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
}

.result-main dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 3px;
}

.result-main dd {
  color: var(--plat-100);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  margin: 0;
}

.result-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.result-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.result-headline span {
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  color: var(--plat-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.result-headline strong {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--gold-pale);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.candidate-list strong {
  display: block;
  color: var(--gold-bright);
  font-size: 13px;
  margin-bottom: 4px;
}

.candidate-list ul {
  margin: 0;
  padding-left: 18px;
}

.candidate-list li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.penalty-comparison {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
}

.penalty-comparison > strong {
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
}

.penalty-comparison > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.penalty-comparison section {
  display: grid;
  gap: 4px;
  padding: 9px;
  background: rgba(4, 8, 15, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
}

.penalty-comparison span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.penalty-comparison b {
  color: var(--plat-100);
  font-size: 14px;
  line-height: 1.4;
}

.penalty-comparison p {
  font-size: 12.5px;
  line-height: 1.5;
}

.judge-memo-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.judge-memo-card h3 {
  color: var(--plat-100);
  font-size: 17px;
  line-height: 1.35;
  margin: 0;
}

.judge-memo-card ul {
  margin: 0;
  padding-left: 18px;
}

.judge-memo-card li {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.result-memo {
  margin-top: 4px;
}

.result-memo textarea {
  min-height: 82px;
}

.result-share-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.result-share-card h3 {
  color: var(--plat-100);
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.result-share-card p {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.result-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-share-actions button {
  min-height: 42px;
}

.penalty-share-preview {
  margin: 0;
  padding: 8px;
  background: rgba(4, 8, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.penalty-share-preview img {
  display: block;
  width: 100%;
  border-radius: 7px;
}

.penalty-share-preview figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
  text-align: center;
}

.copy-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  min-height: 1em;
}

.candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-links {
  padding-bottom: 2px;
}

.candidate-links a {
  background: rgba(62, 162, 239, 0.1);
  border: 1px solid rgba(62, 162, 239, 0.4);
  border-radius: 999px;
  color: var(--blue-pale);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 10px;
  text-decoration: none;
}

.candidate-links a:hover {
  border-color: var(--blue-bright);
}

/* ===== wizard: tap mist FX (bubble-fx.js contract) ===== */
.single-choice.is-popping {
  animation: stPop 0.85s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 3;
}

.single-choice.is-popping::before,
.single-choice.is-popping::after {
  animation: stPopRing 0.85s ease-out forwards;
}

.st-ripple {
  --ra: #fff8eb;
  --rb: #f3ddae;
  position: fixed;
  z-index: 90;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--ra) 94%, #fff) 0%,
    color-mix(in srgb, var(--ra) 82%, transparent) 26%,
    color-mix(in srgb, var(--rb) 52%, transparent) 48%,
    color-mix(in srgb, var(--rb) 22%, transparent) 64%,
    transparent 80%
  );
  animation: stRipple 1.35s cubic-bezier(0.25, 0.7, 0.25, 1) forwards;
}

.wizard-screen.st-enter .single-question {
  animation: stEnter 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes stBubbleA {
  from {
    translate: 0 -5px;
  }
  to {
    translate: 0 7px;
  }
}

@keyframes stBubbleB {
  from {
    translate: -3px 6px;
  }
  to {
    translate: 3px -6px;
  }
}

@keyframes stBreathRing {
  0% {
    opacity: 0.5;
    scale: 0.88;
  }
  72% {
    opacity: 0;
    scale: 1.16;
  }
  100% {
    opacity: 0;
    scale: 1.16;
  }
}

@keyframes stPop {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    filter: blur(2px);
    opacity: 0.7;
    transform: scale(1.18);
  }
  100% {
    filter: blur(9px);
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes stPopRing {
  to {
    opacity: 0;
    scale: 1.7;
  }
}

@keyframes stRipple {
  0% {
    opacity: 0;
    transform: scale(0.05);
  }
  18% {
    opacity: 0.92;
  }
  55% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes stEnter {
  0% {
    filter: blur(10px);
    opacity: 0;
    translate: 0 6px;
  }
  55% {
    filter: blur(3px);
    opacity: 0.85;
  }
  100% {
    filter: blur(0);
    opacity: 1;
    translate: 0 0;
  }
}

/* ===== wizard: media queries ===== */
@media (max-width: 760px) {
  .penalty-onepage-shell {
    gap: 8px;
    padding: 8px;
  }

  .penalty-onepage-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 10px;
  }

  .penalty-onepage-title p,
  .penalty-onepage-header .penalty-source-note {
    display: none;
  }

  .penalty-stage {
    padding: 12px;
  }

  .single-question h2 {
    font-size: 25px;
  }

  .single-answer-grid,
  .result-main dl,
  .penalty-comparison > div {
    grid-template-columns: 1fr;
  }

  .single-answer {
    min-height: 64px;
  }
}

@media (max-height: 720px) {
  .single-choice {
    width: clamp(98px, 26vw, 128px);
  }

  .single-choice:nth-child(2) {
    margin-top: 24px;
  }

  .single-choice:nth-child(4) {
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-choice,
  .single-choice::before,
  .single-choice::after,
  .wizard-screen.st-enter .single-question {
    animation: none;
  }

  .stage-progress-bar span {
    transition: none;
  }
}


/* ==================== scratch/lab-guides.css ==================== */

/* ===== guides: shells ===== */
.guide-shell {
  margin: 0 auto;
  max-width: 760px;
  padding: 32px clamp(16px, 4vw, 36px) 48px;
}

.guide-index-shell {
  max-width: 980px;
}

.beginner-guide {
  max-width: 900px;
}

.guide-nav {
  color: var(--plat-300);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.guide-nav a {
  color: var(--blue-pale);
  text-decoration: none;
}

.guide-nav a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* ===== guides: article header plates (dark glass + holo hairline) ===== */
.guide-shell article > h1,
.guide-index-hero,
.beginner-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(15, 42, 68, 0.8) 0%, rgba(15, 42, 68, 0) 60%),
    linear-gradient(165deg, rgba(14, 34, 54, 0.85) 0%, rgba(6, 13, 22, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  color: var(--plat-50);
}

.guide-shell article > h1::before,
.guide-index-hero::before,
.beginner-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--holo-line);
  pointer-events: none;
}

.guide-shell article > h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 14px;
  padding: clamp(20px, 4vw, 30px);
}

.guide-shell article > .guide-lede {
  background:
    linear-gradient(135deg, rgba(62, 162, 239, 0.1), rgba(245, 158, 11, 0.06)),
    rgba(12, 26, 43, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--plat-200);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  padding: 16px 18px;
}

.guide-lede strong {
  color: var(--plat-50);
}

/* ===== guides: article typography ===== */
.guide-shell h2 {
  border-left: 5px solid var(--gold);
  color: var(--plat-100);
  font-size: 22px;
  margin-top: 36px;
  padding-left: 12px;
}

/* Editorial numbered headings — now unified across guide AND beginner pages */
.guide-shell article {
  counter-reset: stH2;
}

.guide-shell article > h2 {
  align-items: baseline;
  border-left: none;
  counter-increment: stH2;
  display: flex;
  gap: 12px;
  margin-top: 46px;
  padding-left: 0;
}

.guide-shell article > h2::before {
  color: var(--gold-bright);
  content: counter(stH2, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.74em;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.guide-shell article > h2::after {
  align-self: center;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 4px;
  min-width: 36px;
}

.guide-shell h3 {
  color: var(--plat-100);
  font-size: 17px;
  margin-top: 24px;
}

.guide-shell p,
.guide-shell li {
  color: var(--plat-200);
  font-size: 15.5px;
  line-height: 1.85;
}

.guide-shell .section-kicker {
  color: var(--gold-bright);
  font-size: 13px;
  line-height: 1.5;
}

.guide-shell article a {
  color: var(--blue-pale);
  font-weight: 800;
  text-decoration-color: rgba(62, 162, 239, 0.55);
  text-underline-offset: 3px;
}

.guide-shell article a:hover {
  color: var(--gold-bright);
}

.guide-shell ul,
.guide-shell ol {
  padding-left: 22px;
}

.guide-shell article > ul > li::marker,
.guide-shell article > ol > li::marker {
  color: var(--gold-bright);
  font-weight: 700;
}

.guide-shell code {
  background: rgba(62, 162, 239, 0.12);
  border: 1px solid rgba(62, 162, 239, 0.25);
  border-radius: 5px;
  color: var(--blue-pale);
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 6px;
}

.guide-shell strong {
  color: var(--plat-50);
}

/* ===== guides: CTA card (ink + holo + foil) ===== */
.guide-cta-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -20%, rgba(15, 42, 68, 0.9) 0%, rgba(15, 42, 68, 0) 60%),
    linear-gradient(165deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 16px;
  color: var(--plat-50);
  margin: 36px 0 28px;
  padding: 24px 22px;
  text-align: center;
}

.guide-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--holo-line);
  pointer-events: none;
}

.guide-cta-card strong {
  display: block;
  color: var(--plat-50);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.guide-cta-card p {
  color: var(--plat-200);
  font-size: 14px;
  margin: 0 0 16px;
}

.guide-cta-card a {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 24px;
  text-decoration: none;
}

.guide-cta-card a + a {
  margin-left: 8px;
}

/* ===== guides: table ===== */
.guide-table {
  border-collapse: collapse;
  display: block;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.guide-table th,
.guide-table td {
  border: 1px solid var(--line);
  font-size: 14px;
  min-width: 112px;
  padding: 8px 12px;
  text-align: left;
}

.guide-table th {
  background: rgba(15, 42, 68, 0.85);
  border-color: rgba(62, 162, 239, 0.25);
  color: var(--plat-100);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.guide-table td {
  color: var(--plat-200);
  font-variant-numeric: tabular-nums;
}

.guide-table tbody tr:nth-child(even) td {
  background: rgba(230, 232, 236, 0.04);
}

.beginner-table a {
  color: var(--blue-bright);
  font-weight: 800;
  text-decoration: none;
}

.beginner-table a:hover {
  text-decoration: underline;
}

/* ===== guides: related ===== */
.guide-related {
  background:
    linear-gradient(165deg, rgba(15, 42, 68, 0.46), rgba(6, 13, 22, 0.72));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-top: 36px;
  padding: 18px;
}

.guide-related h2 {
  border-left: none;
  padding-left: 0;
}

.guide-related ul {
  list-style: none;
  padding: 0;
}

.guide-related li {
  border-top: 1px solid rgba(230, 232, 236, 0.08);
  margin: 0;
  padding: 9px 0;
}

.guide-related li:first-child {
  border-top: 0;
  padding-top: 0;
}

.guide-related a {
  color: var(--plat-100);
  font-weight: 700;
  text-decoration: none;
  text-decoration-color: rgba(245, 158, 11, 0.6);
  text-underline-offset: 3px;
}

.guide-related a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* ===== guides index: section heads & card grids ===== */
.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-section-head h2 {
  color: var(--plat-50);
  font-size: clamp(22px, 3vw, 30px);
}

.guide-index-subhead {
  margin-top: 26px;
}

.guide-index-subhead + .guide-index-grid {
  margin-top: 10px;
}

.guide-index-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-index-grid a {
  background:
    linear-gradient(165deg, rgba(15, 42, 68, 0.42), rgba(6, 13, 22, 0.68));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.guide-index-grid a:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 12px 30px rgba(2, 5, 9, 0.4);
  transform: translateY(-1px);
}

.guide-index-grid span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 900;
}

.guide-index-grid strong {
  color: var(--plat-100);
  font-size: 15px;
  line-height: 1.45;
}

.guide-index-grid p {
  color: var(--plat-300);
  font-size: 13px;
  line-height: 1.6;
}

/* ===== guides index: hero ===== */
.guide-index-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 34px);
  align-items: stretch;
}

.guide-index-hero-copy {
  align-self: center;
}

.guide-index-hero h1 {
  color: var(--plat-50);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 48px);
  margin: 6px 0 10px;
}

.guide-index-hero .section-kicker {
  color: var(--gold-bright);
}

.guide-index-hero .guide-lede {
  color: var(--plat-200);
  max-width: 780px;
}

.guide-hero-with-media {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.guide-hero-media {
  align-self: stretch;
  background: rgba(230, 232, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 210px;
  overflow: hidden;
}

.guide-hero-media img {
  display: block;
  height: auto;
  max-width: 100%;
  width: min(280px, 100%);
}

/* ===== guides index: use-case cards ===== */
.guide-use-cases {
  margin: 18px 0 30px;
}

.guide-use-cases-head {
  display: grid;
  align-items: end;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  margin-bottom: 14px;
}

.guide-use-cases-head h2 {
  color: var(--plat-50);
  font-size: 28px;
  margin: 2px 0 0;
}

.guide-use-cases-head p:not(.section-kicker) {
  color: var(--plat-300);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.guide-use-case-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-use-case {
  background:
    linear-gradient(165deg, rgba(15, 42, 68, 0.42), rgba(6, 13, 22, 0.72));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 12px;
  min-height: 390px;
  overflow: hidden;
  padding: 16px;
  position: relative;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.guide-use-case::before {
  content: "";
  height: 5px;
  left: 0;
  right: 0;
  top: 0;
  position: absolute;
}

.guide-use-case.is-odds::before {
  background: var(--holo);
}

.guide-use-case.is-case::before {
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

.guide-use-case.is-beginner::before {
  background: linear-gradient(90deg, #46708f, var(--success-bright));
}

.guide-use-case:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12), 0 18px 40px rgba(2, 5, 9, 0.5);
  transform: translateY(-1px);
}

.guide-use-case-label {
  background: rgba(62, 162, 239, 0.14);
  border: 1px solid rgba(62, 162, 239, 0.35);
  border-radius: 999px;
  color: var(--blue-pale);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 6px 10px;
}

.guide-use-case strong {
  color: var(--plat-100);
  font-size: 16px;
  line-height: 1.45;
}

.guide-use-case p {
  color: var(--plat-300);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.guide-use-case small {
  align-self: end;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 900;
}

/* mini decorative boards inside use-case cards */
.odds-mini-board,
.case-flow-board,
.beginner-check-board {
  background: rgba(4, 8, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 150px;
}

.odds-mini-board {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.odds-url-chip {
  background: rgba(230, 232, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--plat-300);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}

.odds-card-row {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.odds-card-row i {
  aspect-ratio: 0.72;
  background: linear-gradient(180deg, var(--plat-50) 0%, #f8ead2 52%, var(--red) 53%, var(--red-dark) 100%);
  border: 1px solid rgba(230, 232, 236, 0.25);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(2, 5, 9, 0.4);
}

.odds-zone-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odds-zone-grid span {
  background: rgba(230, 232, 236, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  min-height: 54px;
  padding: 7px;
}

.odds-zone-grid b {
  color: var(--muted);
  font-size: 11px;
}

.odds-zone-grid em {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.case-flow-board {
  align-content: center;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.case-flow-board span {
  background: rgba(230, 232, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--plat-100);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 10px;
}

.case-flow-board i {
  background: var(--blue-bright);
  display: block;
  height: 18px;
  justify-self: center;
  position: relative;
  width: 2px;
}

.case-flow-board i::after {
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--blue-bright);
  bottom: -5px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.beginner-check-board {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 14px;
}

.beginner-check-board li {
  align-items: center;
  background: rgba(230, 232, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--plat-100);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 34px;
  padding: 8px 10px;
}

.beginner-check-board span {
  border: 2px solid var(--success-bright);
  border-radius: 5px;
  display: inline-block;
  height: 18px;
  width: 18px;
  position: relative;
}

.beginner-check-board span::after {
  content: "";
  border-bottom: 2px solid var(--success-bright);
  border-right: 2px solid var(--success-bright);
  height: 9px;
  width: 5px;
  left: 5px;
  top: 1px;
  position: absolute;
  transform: rotate(45deg);
}

/* ===== guides index: site note ===== */
.guide-site-note {
  align-items: center;
  background:
    linear-gradient(165deg, rgba(15, 42, 68, 0.42), rgba(6, 13, 22, 0.72));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 18px;
}

.guide-site-note h2 {
  color: var(--plat-50);
  font-size: 20px;
  margin: 2px 0 6px;
}

.guide-site-note p:not(.section-kicker) {
  color: var(--plat-300);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.guide-site-note > a {
  display: inline-block;
  border-radius: 999px;
  font-size: 14px;
  padding: 10px 16px;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== beginner pages ===== */
.beginner-hero {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.beginner-hero h1 {
  color: var(--plat-50);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.22;
  margin: 4px 0 12px;
}

.beginner-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 30px;
}

.beginner-point {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 16px;
}

.beginner-point span {
  align-items: center;
  background: rgba(62, 162, 239, 0.16);
  border: 1px solid rgba(62, 162, 239, 0.4);
  border-radius: 999px;
  color: var(--blue-pale);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  margin-bottom: 10px;
  min-width: 32px;
  padding: 0 8px;
}

.beginner-point strong {
  color: var(--plat-100);
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.beginner-point p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.beginner-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.beginner-quick-nav a {
  background: rgba(62, 162, 239, 0.1);
  border: 1px solid rgba(62, 162, 239, 0.35);
  border-radius: 999px;
  color: var(--blue-pale);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
}

.beginner-quick-nav a:hover {
  border-color: var(--blue-bright);
}

.beginner-callout {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  margin: 20px 0;
  padding: 16px 18px;
}

.beginner-callout strong {
  color: var(--gold-pale);
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.beginner-callout p {
  color: var(--muted);
  margin: 0;
}

.beginner-do-dont,
.beginner-checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.beginner-do-dont {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beginner-checklist {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.beginner-do-dont > div,
.beginner-checklist > section {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.beginner-do-dont h3,
.beginner-checklist h3 {
  color: var(--plat-100);
  font-size: 16px;
  margin: 0 0 8px;
}

.beginner-do-dont ul,
.beginner-checklist ul {
  margin: 0;
}

.beginner-phrase-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}

.beginner-phrase-list p {
  background: rgba(62, 162, 239, 0.08);
  border: 1px solid rgba(62, 162, 239, 0.3);
  border-radius: 10px;
  color: var(--plat-100);
  font-weight: 800;
  margin: 0;
  padding: 13px 15px;
}

.beginner-step-list {
  counter-reset: beginner-step;
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}

.beginner-step-list li {
  background: var(--glass-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 10px 0;
  padding: 14px 16px 14px 54px;
  position: relative;
}

.beginner-step-list li::before {
  content: counter(beginner-step);
  counter-increment: beginner-step;
  align-items: center;
  background: rgba(54, 211, 157, 0.16);
  border: 1px solid rgba(54, 211, 157, 0.5);
  border-radius: 999px;
  color: var(--success-bright);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  left: 16px;
  position: absolute;
  top: 16px;
  width: 28px;
}

.beginner-step-list strong {
  color: var(--plat-100);
  display: block;
  margin-bottom: 2px;
}

.beginner-step-list p {
  color: var(--muted);
  margin: 0;
}

/* beginner-cta keeps the shared .guide-cta-card look */
.beginner-cta {
  border-radius: 16px;
}

/* ===== guides: media queries ===== */
@media (max-width: 760px) {
  .guide-index-grid {
    grid-template-columns: 1fr;
  }

  .guide-index-hero {
    grid-template-columns: 1fr;
  }

  .guide-site-note {
    grid-template-columns: 1fr;
  }

  .guide-site-note > a {
    justify-self: start;
  }

  .home-section-head {
    flex-direction: column;
    align-items: start;
  }

  .guide-use-cases-head,
  .guide-use-case-grid {
    grid-template-columns: 1fr;
  }

  .guide-use-cases-head {
    align-items: start;
  }

  .guide-use-case {
    min-height: 0;
  }

  .beginner-summary,
  .beginner-do-dont,
  .beginner-checklist {
    grid-template-columns: 1fr;
  }

  .guide-hero-with-media {
    grid-template-columns: 1fr;
  }

  .guide-hero-media {
    min-height: 160px;
  }

  .guide-cta-card a + a {
    margin-left: 0;
    margin-top: 8px;
  }
}
