:root {
  --cream: #f7f0dc;
  --paper: #fffaf0;
  --ink: #21372c;
  --muted: #667469;
  --moss: #35634b;
  --moss-dark: #183f2c;
  --leaf: #86a96f;
  --carrot: #e87d4d;
  --honey: #eab85e;
  --sky: #85b8b3;
  --lilac: #9a8ab7;
  --rose: #cd7e83;
  --line: rgba(33, 55, 44, 0.16);
  --shadow: 0 22px 60px rgba(40, 58, 43, 0.13);
  --companion-preview-background: var(--moss-dark);
  --companion-preview-color: #fffaf0;
  --companion-preview-muted: rgba(255, 250, 240, .68);
  --companion-preview-border: var(--honey);
  --companion-preview-radius: 14px;
  --companion-preview-reference-underline: var(--moss);
  --companion-preview-reference-active-color: var(--moss-dark);
  --companion-preview-reference-active-background: rgba(234, 184, 94, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 12%, rgba(234, 184, 94, 0.22), transparent 24rem),
    radial-gradient(circle at 92% 34%, rgba(134, 169, 111, 0.18), transparent 26rem),
    var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  z-index: -1;
  background-image: radial-gradient(rgba(33, 55, 44, 0.22) 0.65px, transparent 0.65px);
  background-size: 6px 6px;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--moss-dark);
  color: white;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }
.noscript { width: min(1180px, calc(100% - 40px)); margin: 20px auto; padding: 16px; background: #fff1cf; border-left: 4px solid var(--carrot); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-configuration-selector] {
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 16px auto 0;
  padding: 4px;
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  position: relative;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 10px 28px rgba(40, 58, 43, 0.1);
  backdrop-filter: blur(16px);
}

[data-configuration-selector] a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--moss-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

[data-configuration-selector] a:hover,
[data-configuration-selector] a:focus-visible {
  background: #edf4de;
  outline: 2px solid transparent;
}

[data-configuration-selector] a[aria-current="page"] {
  background: var(--moss-dark);
  color: white;
}

.topbar {
  width: min(1240px, calc(100% - 40px));
  margin: 16px auto 0;
  min-height: 62px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(40, 58, 43, 0.08);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span { font-size: 1.45rem; }
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { color: var(--moss-dark); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--carrot); }

.hero {
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 0;
  min-height: 690px;
  padding: clamp(34px, 6vw, 78px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.95), rgba(239, 244, 222, 0.86)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -95px;
  height: 190px;
  background: #6f9866;
  border-radius: 50% 55% 0 0;
  opacity: 0.18;
}

.hero-copy, .hero-art { position: relative; z-index: 2; }
.status-line {
  width: fit-content;
  margin-bottom: 32px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #edf4de;
  border: 1px solid rgba(53, 99, 75, 0.18);
  color: var(--moss-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--carrot); box-shadow: 0 0 0 4px rgba(232, 125, 77, 0.16); }
.kicker { margin-bottom: 9px; color: var(--carrot); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.hero h1 { margin-bottom: 22px; font-size: clamp(3.5rem, 6.4vw, 6.5rem); line-height: 0.88; letter-spacing: -0.065em; color: var(--moss-dark); }
.hero-lede { max-width: 650px; margin-bottom: 28px; font-size: clamp(1.05rem, 1.4vw, 1.24rem); color: #506257; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primary-action { padding: 13px 17px; display: inline-flex; gap: 16px; align-items: center; background: var(--moss-dark); color: white; text-decoration: none; font-weight: 800; box-shadow: 0 10px 24px rgba(24, 63, 44, 0.2); }
.primary-action:hover, .primary-action:focus-visible { background: var(--carrot); transform: translateY(-1px); }
.text-action { color: var(--moss-dark); text-underline-offset: 4px; font-weight: 750; }
.hero-facts { margin: 42px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-facts div { padding-left: 14px; border-left: 2px solid rgba(232, 125, 77, 0.55); }
.hero-facts dt { color: var(--muted); font-size: 0.69rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-facts dd { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

.hero-art { min-height: 520px; display: grid; place-items: center; }
.hero-art > img { width: min(355px, 78%); z-index: 3; transform: rotate(3deg); filter: drop-shadow(0 24px 28px rgba(30, 55, 37, 0.24)); border-radius: 4.7% / 3.5%; }
.sun-disc { position: absolute; width: min(450px, 94%); aspect-ratio: 1; border-radius: 50%; background: #efd382; opacity: 0.48; box-shadow: 0 0 0 30px rgba(239, 211, 130, 0.12), 0 0 0 62px rgba(239, 211, 130, 0.08); }
.carrot-note { position: absolute; right: -6%; bottom: 20px; z-index: 5; width: 220px; padding: 16px 17px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; background: #fff5d9; border: 1px solid rgba(116, 88, 35, 0.22); box-shadow: 0 14px 30px rgba(47, 58, 42, 0.13); transform: rotate(-2deg); }
.carrot-note > span { grid-row: 1 / 3; font-size: 1.5rem; }
.carrot-note strong { font-family: Georgia, "Times New Roman", serif; }
.carrot-note small { color: var(--muted); line-height: 1.35; }
.meadow-rabbit { position: absolute; z-index: 4; filter: drop-shadow(0 6px 6px rgba(40, 58, 43, 0.14)); }
.rabbit-one { left: 2%; bottom: 58px; font-size: 3.2rem; transform: rotate(-8deg); }
.rabbit-two { right: 4%; top: 52px; font-size: 2rem; transform: scaleX(-1) rotate(8deg); }

.quick-stats {
  width: min(1120px, calc(100% - 64px));
  margin: -34px auto 0;
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--moss-dark);
  color: white;
  box-shadow: 0 20px 50px rgba(24, 63, 44, 0.25);
}
.quick-stats article { min-height: 126px; padding: 20px 16px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.quick-stats article:last-child { border-right: 0; }
.quick-stats strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; color: #f4d788; line-height: 1; }
.quick-stats span { margin-top: 7px; font-weight: 800; }
.quick-stats small { margin-top: 3px; color: rgba(255, 255, 255, 0.65); font-size: 0.7rem; }

.content-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 112px 0 0; scroll-margin-top: 90px; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 14px; color: var(--moss-dark); font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }

.plan-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 18px; position: relative; padding-bottom: 34px; }
.timeline li::before { content: ""; position: absolute; left: 30px; top: 50px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { width: 60px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--carrot); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; box-shadow: 0 8px 18px rgba(40, 58, 43, 0.08); }
.timeline h3 { margin-bottom: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: var(--moss-dark); }
.timeline p { margin: 0; color: var(--muted); }

.hand-coach { padding: 28px; background: #fff8e8; border: 1px solid rgba(92, 105, 72, 0.22); box-shadow: var(--shadow); position: relative; }
.hand-coach::after { content: ""; position: absolute; width: 60px; height: 30px; right: 20px; top: -14px; background: rgba(232, 184, 94, 0.32); transform: rotate(4deg); }
.coach-header { display: flex; align-items: center; gap: 14px; }
.coach-header > span { font-size: 2.2rem; }
.coach-header h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.coach-header .kicker { margin-bottom: 2px; }
.hand-coach > p { color: var(--muted); }
.check-list { display: grid; gap: 10px; margin: 22px 0; }
.check-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-list input, .toggle-row input { width: 18px; height: 18px; accent-color: var(--moss); }
.check-list span { font-size: 0.92rem; font-weight: 650; }
.hand-verdict { padding: 15px; border-left: 4px solid; display: grid; gap: 3px; }
.hand-verdict.ready { background: #e8f2df; border-color: var(--moss); }
.hand-verdict.caution { background: #f9e5d8; border-color: var(--carrot); }
.hand-verdict span { color: var(--muted); font-size: 0.82rem; }

.synergy-shell { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.synergy-tabs { display: flex; flex-direction: column; background: #eaf0dd; border-right: 1px solid var(--line); }
.synergy-tabs button { min-height: 90px; padding: 16px 19px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.synergy-tabs button:last-child { border-bottom: 0; }
.synergy-tabs button:hover, .synergy-tabs button:focus-visible { background: rgba(255, 255, 255, 0.5); }
.synergy-tabs button[aria-selected="true"] { background: var(--moss-dark); color: white; }
.synergy-tabs button small { display: block; margin-bottom: 4px; color: var(--carrot); font-size: 0.66rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.synergy-tabs button span { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.2; font-weight: 700; }
.synergy-detail { min-height: 620px; padding: clamp(28px, 4vw, 54px); display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 34px; align-items: center; overflow: hidden; }
.synergy-copy h3 { margin-bottom: 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1; color: var(--moss-dark); }
.synergy-copy > p:not(.kicker) { color: var(--muted); }
.field-note { margin-top: 24px; padding: 14px; display: flex; gap: 10px; background: #f5ecd2; border-left: 3px solid var(--honey); }
.field-note > span { color: var(--carrot); }
.field-note p { margin: 0; font-size: 0.85rem; }
.field-note strong { display: block; color: var(--moss-dark); }
.synergy-cards { min-height: 460px; display: flex; align-items: center; justify-content: center; }
.synergy-cards > div { width: min(42%, 250px); margin-left: -13%; transform: rotate(calc((var(--card-index) - 1) * 5deg)); transition: transform 200ms ease; }
.synergy-cards > div:first-child { margin-left: 0; }
.synergy-cards > div:nth-child(1), .synergy-cards > div:nth-child(3) { translate: 0 15px; }
.synergy-cards > div:hover { transform: rotate(0) translateY(-10px); z-index: 4; }
.card-art { margin: 0; }
.card-art img { width: 100%; border-radius: 4.7% / 3.5%; box-shadow: 0 18px 30px rgba(31, 54, 37, 0.23); }
.card-art figcaption { margin-top: 10px; display: grid; }
.card-art figcaption span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.card-art figcaption small { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; }
.card-art.compact figcaption { opacity: 0; transition: opacity 160ms ease; }
.synergy-cards > div:hover figcaption { opacity: 1; }

.math-card { display: grid; grid-template-columns: 1.08fr 0.92fr; background: var(--moss-dark); color: white; box-shadow: var(--shadow); overflow: hidden; }
.math-controls { padding: clamp(30px, 5vw, 62px); }
.math-controls h2 { max-width: 560px; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 0.98; color: #fff8e8; }
.math-controls > p:not(.kicker) { color: rgba(255, 255, 255, 0.67); }
.range-label { margin-top: 34px; display: flex; align-items: end; justify-content: space-between; font-weight: 750; }
.range-label output { font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; color: #f3d17e; line-height: 1; }
.math-controls input[type="range"] { width: 100%; margin: 16px 0 24px; accent-color: var(--carrot); }
.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-row.single-toggle { grid-template-columns: 1fr; }
.toggle-row label { min-height: 82px; padding: 13px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.17); background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.toggle-row span { display: grid; color: rgba(255, 255, 255, 0.67); font-size: 0.76rem; }
.toggle-row strong { color: white; font-size: 0.9rem; }
.math-result { min-height: 520px; padding: 40px; display: grid; place-content: center; text-align: center; position: relative; background: linear-gradient(160deg, #f1d88f, #eca56b); color: var(--moss-dark); }
.math-result > p { margin-bottom: 0; font-weight: 750; }
.math-result > strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(6rem, 12vw, 10rem); line-height: 0.85; letter-spacing: -0.07em; }
.math-result h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.math-result dl { margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(24, 63, 44, 0.22); }
.math-result dl div { padding: 14px 8px 0; border-right: 1px solid rgba(24, 63, 44, 0.18); }
.math-result dl div:last-child { border-right: 0; }
.math-result dt { color: rgba(24, 63, 44, 0.68); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.math-result dd { margin: 3px 0 0; font-weight: 850; }
.rabbit-cloud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rabbit-cloud span { position: absolute; font-size: 2.5rem; opacity: 0.65; }
.rabbit-cloud span:nth-child(1) { left: 8%; top: 10%; transform: rotate(-12deg); }
.rabbit-cloud span:nth-child(2) { right: 9%; top: 23%; transform: scaleX(-1) rotate(-4deg); }
.rabbit-cloud span:nth-child(3) { left: 15%; bottom: 8%; transform: scale(0.7); }
.rabbit-cloud span:nth-child(4) { right: 13%; bottom: 10%; transform: rotate(10deg); }
.doubler-note, .vigor-note { margin-top: 28px; padding: 26px; display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: #fff7e5; border: 1px solid var(--line); }
.doubler-art img, .vigor-art img { width: 100%; border-radius: 4.7% / 3.5%; box-shadow: 0 12px 24px rgba(40, 58, 43, 0.15); }
.doubler-note h3, .vigor-note h3 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }
.doubler-note p:not(.kicker), .doubler-note li, .vigor-note p:not(.kicker), .vigor-note li { color: var(--muted); }
.doubler-note ul, .vigor-note ul { margin-bottom: 0; padding-left: 1.2rem; }
.doubler-note li, .vigor-note li { margin-top: 5px; }

.toolkit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.toolkit-grid article { min-height: 310px; padding: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(40, 58, 43, 0.07); }
.tool-number { font-family: Georgia, "Times New Roman", serif; font-size: 3.8rem; line-height: 1; color: var(--carrot); }
.toolkit-grid h3 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.toolkit-grid p { color: var(--muted); }
.toolkit-grid small { display: block; padding-top: 14px; border-top: 1px solid var(--line); color: var(--moss-dark); font-weight: 680; }

.pilot-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pilot-notes-grid article { min-height: 220px; padding: 27px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(40, 58, 43, 0.07); }
.pilot-notes-grid article > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #edf4de; color: var(--carrot); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 800; }
.pilot-notes-grid h3 { margin: 3px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; color: var(--moss-dark); }
.pilot-notes-grid p { margin: 0; color: var(--muted); }
.rules-burrow { margin-top: 22px; display: grid; grid-template-columns: 0.72fr 1.28fr; background: var(--moss-dark); color: white; box-shadow: var(--shadow); }
.rules-intro { padding: 34px; display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent); }
.rules-intro > span { font-size: 2rem; }
.rules-intro h3 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; color: #fff8e8; }
.rules-intro p:last-child { color: rgba(255, 255, 255, 0.62); }
.rules-list { border-left: 1px solid rgba(255, 255, 255, 0.13); }
.rules-list details { border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.rules-list details:last-child { border-bottom: 0; }
.rules-list summary { min-height: 72px; padding: 21px 54px 21px 24px; display: grid; align-items: center; position: relative; cursor: pointer; color: #fff8e8; font-family: Georgia, "Times New Roman", serif; font-weight: 700; list-style: none; }
.rules-list summary::-webkit-details-marker { display: none; }
.rules-list summary::after { content: "+"; position: absolute; right: 24px; color: var(--honey); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.4rem; }
.rules-list details[open] summary::after { content: "−"; }
.rules-list details[open] summary { background: rgba(255, 255, 255, 0.05); }
.rules-list details p { margin: 0; padding: 0 24px 24px; color: rgba(255, 255, 255, 0.68); font-size: 0.9rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-card { min-height: 470px; padding: clamp(24px, 4vw, 42px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chart-title { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.chart-title h3 { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; }
.chart-title > strong { display: grid; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 2.7rem; line-height: 0.8; color: var(--carrot); }
.chart-title > strong small { margin-top: 8px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--muted); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; }
.curve-chart { height: 305px; margin-top: 34px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: end; }
.curve-column { height: 100%; display: grid; grid-template-rows: 24px 1fr 24px; gap: 6px; text-align: center; }
.bar-count { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.bar-track { background: #edf0e3; position: relative; }
.bar-track span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(var(--leaf), var(--moss)); }
.curve-column:nth-child(2n) .bar-track span { background: linear-gradient(#efa477, var(--carrot)); }
.curve-column b { font-family: Georgia, "Times New Roman", serif; }
.type-bars { margin-top: 34px; display: grid; gap: 17px; }
.type-bars > div { display: grid; grid-template-columns: 90px 1fr 28px; gap: 10px; align-items: center; }
.type-bars span { color: var(--muted); font-size: 0.8rem; font-weight: 750; }
.type-bars b { text-align: right; }
.type-track { height: 12px; background: #edf0e3; overflow: hidden; }
.type-track i { display: block; height: 100%; min-width: 2px; }
.moss { background: var(--moss); }.carrot { background: var(--carrot); }.sky { background: var(--sky); }.lilac { background: var(--lilac); }.stone { background: #9b9b8f; }.honey { background: var(--honey); }.rose { background: var(--rose); }

.mana-guide { margin-top: 18px; padding: clamp(26px, 4vw, 42px); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 76px); align-items: center; background: #fff8e8; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(40, 58, 43, 0.08); }
.mana-guide h3 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; color: var(--moss-dark); }
.mana-guide p:last-child { margin-bottom: 0; color: var(--muted); }
.color-demand { display: grid; gap: 18px; }
.demand-row { display: grid; grid-template-columns: 112px 1fr 62px; align-items: center; gap: 14px; }
.demand-row > div { display: flex; align-items: center; gap: 9px; }
.demand-row .mana-cost img { width: 25px; height: 25px; }
.demand-track { height: 18px; overflow: hidden; background: #e9eadf; border: 1px solid rgba(33, 55, 44, 0.08); }
.demand-track i { display: block; height: 100%; min-width: 3px; }
.white-pip { background: linear-gradient(90deg, #e7d8a6, #f7edcd); }
.green-pip { background: linear-gradient(90deg, var(--moss-dark), var(--leaf)); }
.demand-row > b { display: flex; align-items: baseline; gap: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: var(--carrot); }
.demand-row > b small { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.6rem; text-transform: uppercase; }

.token-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.token-gallery figure { margin: 0; }
.token-image { position: relative; }
.token-image img { width: 100%; border-radius: 4.7% / 3.5%; box-shadow: 0 14px 28px rgba(40, 58, 43, 0.15); }
.token-image > span { position: absolute; right: 8px; bottom: 8px; min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--carrot); color: white; font-family: Georgia, "Times New Roman", serif; font-weight: 700; box-shadow: 0 5px 14px rgba(43, 40, 28, 0.2); }
.token-gallery figcaption { margin-top: 9px; display: grid; }
.token-gallery figcaption strong { font-family: Georgia, "Times New Roman", serif; }
.token-gallery figcaption small { color: var(--muted); font-size: 0.68rem; }
.stock-token-strip { margin-top: 32px; padding: 22px; display: flex; align-items: center; gap: 24px; background: #e8efda; border: 1px solid var(--line); }
.stock-token-strip > strong { flex: 0 0 auto; font-family: Georgia, "Times New Roman", serif; }
.stock-token-strip > div { display: flex; flex-wrap: wrap; gap: 7px; }
.stock-token-strip span, .role-tags span { padding: 4px 8px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); font-size: 0.68rem; font-weight: 750; }

.decklist-actions { margin-bottom: 16px; padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 24px; background: #e8efda; border: 1px solid var(--line); }
.decklist-actions > div:first-child { display: grid; }
.decklist-actions > div:first-child strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.decklist-actions > div:first-child span { color: var(--muted); font-size: 0.78rem; }
.decklist-actions > div:nth-child(2) { display: flex; gap: 8px; }
.decklist-actions button { min-height: 42px; padding: 0 14px; border: 1px solid var(--moss-dark); background: var(--moss-dark); color: white; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.decklist-actions button + button { background: transparent; color: var(--moss-dark); }
.decklist-actions button:hover, .decklist-actions button:focus-visible { border-color: var(--carrot); background: var(--carrot); color: white; }
.decklist-actions > p { min-height: 1.2em; margin: 0; grid-column: 1 / -1; color: var(--moss); font-size: 0.76rem; font-weight: 700; }

.deck-toolbar { margin-bottom: 16px; padding: 16px; display: flex; justify-content: space-between; gap: 16px; background: var(--moss-dark); }
.search-box { flex: 1; max-width: 480px; position: relative; }
.search-box input { width: 100%; height: 46px; padding: 0 45px 0 14px; border: 0; background: white; color: var(--ink); outline: 0; }
.search-box input:focus { box-shadow: inset 0 0 0 3px var(--honey); }
.search-box b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--moss); font-size: 1.3rem; }
.select-group { display: flex; gap: 12px; }
.select-group label { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.select-group select { height: 46px; min-width: 130px; border: 0; padding: 0 30px 0 10px; background: white; color: var(--ink); }
.deck-browser { display: grid; grid-template-columns: 1.06fr 0.94fr; min-height: 720px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.card-detail { padding: 38px; display: grid; grid-template-columns: minmax(210px, 0.8fr) 1.2fr; gap: 30px; align-items: start; border-right: 1px solid var(--line); }
.card-detail > img { width: 100%; border-radius: 4.7% / 3.5%; box-shadow: 0 18px 35px rgba(40, 58, 43, 0.2); position: sticky; top: 100px; }
.detail-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.detail-title small { color: var(--carrot); font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-title h3 { margin: 3px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.05; }
.type-line { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; font-style: italic; }
.oracle-text { white-space: pre-line; font-family: Georgia, "Times New Roman", serif; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.role-tags span { background: #edf2e1; }
.printing-line { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.mana-cost { display: inline-flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.mana-cost img { width: 19px; height: 19px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15)); }
.mana-empty { color: var(--muted); }
.deck-list { max-height: 720px; overflow: auto; }
.deck-list-head { min-height: 54px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 3; background: #e8efda; border-bottom: 1px solid var(--line); font-weight: 800; }
.deck-list-head small { color: var(--muted); font-weight: 600; }
.deck-list button { width: 100%; min-height: 70px; padding: 8px 18px 8px 14px; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto minmax(88px, max-content); gap: 10px; align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.deck-list button:hover, .deck-list button:focus-visible { background: #f4edd8; }
.deck-list button.selected { background: var(--moss-dark); color: white; }
.deck-list button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.83rem; }
.deck-list button > small { color: var(--muted); text-align: right; font-size: 0.65rem; text-transform: uppercase; white-space: nowrap; }
.deck-list button.selected > small { color: rgba(255, 255, 255, 0.65); }
.mini-art { width: 42px; height: 52px; overflow: hidden; border-radius: 4px; background: #dce4d2; }
.mini-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transform: scale(1.2); }
.empty-state { padding: 50px 24px; text-align: center; color: var(--muted); }

footer { width: min(1240px, calc(100% - 40px)); margin: 112px auto 24px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--moss-dark); color: white; }
footer > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
footer > div span { grid-row: 1 / 3; font-size: 2rem; }
footer strong { font-family: Georgia, "Times New Roman", serif; }
footer small { color: rgba(255, 255, 255, 0.62); }
footer p { max-width: 500px; margin: 0; color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; text-align: right; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-art { order: -1; min-height: 390px; }
  .hero-art > img { width: 250px; }
  .carrot-note { right: 7%; }
  .quick-stats { grid-template-columns: repeat(3, 1fr); }
  .quick-stats article:nth-child(3) { border-right: 0; }
  .quick-stats article:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .plan-grid, .synergy-detail, .math-card, .deck-browser, .rules-burrow { grid-template-columns: 1fr; }
  .synergy-shell { grid-template-columns: 240px 1fr; }
  .synergy-cards { min-height: 420px; }
  .math-result { min-height: 440px; }
  .card-detail { border-right: 0; border-bottom: 1px solid var(--line); }
  .deck-list { max-height: 600px; }
  .token-gallery { grid-template-columns: repeat(3, 1fr); }
  .rules-list { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.13); }
}

@media (max-width: 760px) {
  .topbar { width: calc(100% - 20px); padding: 10px 12px; top: 6px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 0.73rem; }
  .brand { font-size: 0.9rem; }
  .hero, .content-section, footer { width: calc(100% - 20px); }
  .hero { min-height: auto; padding: 28px 22px 52px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-art { min-height: 330px; }
  .hero-art > img { width: 210px; }
  .carrot-note { width: 185px; right: 0; bottom: 0; }
  .rabbit-one { left: 0; }
  .hero-facts { grid-template-columns: 1fr; gap: 10px; }
  .quick-stats { width: calc(100% - 40px); grid-template-columns: repeat(2, 1fr); }
  .quick-stats article:nth-child(3) { border-right: 1px solid rgba(255, 255, 255, 0.12); }
  .quick-stats article:nth-child(2n) { border-right: 0; }
  .quick-stats article:nth-child(-n+4) { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .content-section { padding-top: 84px; }
  .section-heading h2 { font-size: 2.55rem; }
  .synergy-shell { grid-template-columns: 1fr; }
  .synergy-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .synergy-tabs button { min-width: 180px; border-right: 1px solid var(--line); border-bottom: 0; }
  .synergy-detail { min-height: auto; }
  .synergy-cards { min-height: 350px; }
  .math-controls { padding: 30px 22px; }
  .toggle-row, .stats-grid, .toolkit-grid, .pilot-notes-grid, .mana-guide { grid-template-columns: 1fr; }
  .doubler-note, .vigor-note { grid-template-columns: 110px 1fr; padding: 18px; gap: 18px; }
  .chart-card { min-height: 440px; }
  .token-gallery { grid-template-columns: repeat(2, 1fr); }
  .stock-token-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
  .deck-toolbar { flex-direction: column; }
  .decklist-actions { grid-template-columns: 1fr; }
  .decklist-actions > div:nth-child(2) { margin-top: 10px; }
  .select-group { display: grid; grid-template-columns: 1fr 1fr; }
  .select-group label { display: grid; }
  .select-group select { width: 100%; }
  .card-detail { grid-template-columns: 150px 1fr; padding: 22px; gap: 20px; }
  footer { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 520px) {
  [data-configuration-selector] {
    width: calc(100% - 20px);
    max-width: none;
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }
  [data-configuration-selector] a { padding-inline: 8px; text-align: center; white-space: normal; }
  .topbar nav a:nth-child(2), .topbar nav a:nth-child(3) { display: none; }
  .hero-art { min-height: 300px; }
  .hero-art > img { width: 185px; }
  .carrot-note { width: 155px; padding: 10px; }
  .carrot-note small { font-size: 0.65rem; }
  .status-line { font-size: 0.65rem; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .quick-stats article { min-height: 110px; }
  .timeline li { grid-template-columns: 50px 1fr; gap: 12px; }
  .timeline li > span { width: 48px; height: 44px; }
  .timeline li::before { left: 24px; }
  .pilot-notes-grid article { grid-template-columns: 48px 1fr; padding: 21px; }
  .pilot-notes-grid article > span { width: 42px; height: 42px; }
  .rules-intro { padding: 25px 20px; }
  .rules-list summary { padding-left: 20px; }
  .synergy-detail { padding: 25px 18px; }
  .synergy-cards { min-height: 290px; }
  .synergy-cards > div { width: 48%; }
  .math-result { min-height: 390px; padding: 24px 14px; }
  .math-result dl { font-size: 0.78rem; }
  .doubler-note, .vigor-note { grid-template-columns: 1fr; }
  .doubler-art, .vigor-art { max-width: 170px; }
  .token-gallery { gap: 10px; }
  .demand-row { grid-template-columns: 95px 1fr 52px; gap: 8px; }
  .decklist-actions > div:nth-child(2) { display: grid; grid-template-columns: 1fr; }
  .card-detail { grid-template-columns: 1fr; }
  .card-detail > img { max-width: 230px; position: static; }
  .deck-list button { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .deck-list button > small { display: none; }
  .mini-art { width: 38px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
