:root {
  /* Sherwood page: parchment paper, deep-green outlines, forest + gold accents, sky blue */
  /* $LOOT forest system: bark, sherwood, leaf, gold, parchment, dark outline */
  --bark: #6B4423; --sher: #2D5A27; --leaf: #7AB648; --parch: #F4E8C9;
  --asphalt: #2D5A27; --tar: #F4E8C9; --grease: #CBB68A; --pit: #E3D2A6;
  --cream: #33240F; --smoke: #6E5A3C; --dim: #8A785A;
  --flame: #2D5A27; --ember: #FFC933; --cherry: #234A1D; --sky: #3E9FE0; --nitro: #6AA53E;
  --outline: #2B1D0E; --chrome: #C9CED6; --paper: #F4E8C9; --gold: #9A6B0E; --rust: #C23B2B;
  --display: "Fredoka One", "Impact", "Arial Narrow", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 6px 6px 0 var(--outline);
  --shadow-sm: 3px 3px 0 var(--outline);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--sher); color: var(--cream); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* layer 1 — scroll backdrop: the dense forest wall, fixed (parallax base) */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: url("../art/forest-wall.jpg") center center / cover; }
/* subtle dark veil to lift content readability over the busy backdrop */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(18,30,10,.12) 0%, rgba(18,30,10,.32) 60%, rgba(18,30,10,.42) 100%); }
a { color: var(--sher); font-weight: 600; text-decoration: none; } a:hover { text-decoration: underline; }
/* layer 3 close-parallax decor: side trunks + top canopy (injected by app.js) */
.decor { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; }
@media (min-width: 1300px) { .decor { display: block; } }
.decor .trunk { position: absolute; top: 0; bottom: 0; width: clamp(90px, calc((100vw - 1060px) / 2 - 6px), 180px); background: url("../art/trunk.png") top center / 100% auto repeat-y; filter: drop-shadow(0 0 14px rgba(0,0,0,.35)); }
.decor .trunk.l { left: 0; }
.decor .trunk.r { right: 0; transform: scaleX(-1); }
.canopy { position: fixed; top: 0; left: 0; right: 0; height: clamp(52px, 8vw, 104px); z-index: 40; pointer-events: none; background: url("../art/canopy.png") top center / auto 100% repeat-x; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.label { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: 13px; color: var(--smoke); }
.disp { font-family: var(--display); letter-spacing: .02em; text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- top nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--pit); border-bottom: 4px solid var(--outline); }
.nav .in { max-width: 1240px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 12px; }
.nav .home { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: var(--flame); text-shadow: 2px 2px 0 var(--outline); text-decoration: none; white-space: nowrap; }
.nav .home:hover { text-decoration: none; color: var(--cherry); }
.nav .links { display: flex; gap: 3px; margin-left: auto; flex-wrap: wrap; }
.nav a.lnk { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--cream); padding: 6px 11px; border: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.nav a.lnk:hover { border-color: var(--outline); text-decoration: none; }
.nav a.lnk.active { background: var(--flame); color: #FFFDF7; border-color: var(--outline); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .nav .in { flex-wrap: wrap; }
  .nav .links { width: 100%; margin: 6px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------------------------------------------------------------- top band (home hero) */
/* layer 1 hero backdrop: the dirt wagon-path forest scene, full-bleed, cross-fading into the forest wall below */
.band { position: relative; overflow: hidden; border-bottom: 5px solid var(--outline);
  background: url("../art/hero-path.jpg") center center / cover, var(--sher); }
.band::before { content: none; }
.band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(180deg, rgba(24,40,14,0) 0%, rgba(24,40,14,.5) 100%); }
.stripe { display: none; }
.wordmark { display: none; max-width: min(100%, 620px); height: auto; margin: 2px 0 6px -10px; filter: drop-shadow(5px 5px 0 rgba(20,17,20,.28)); }
body.has-wordmark .wordmark { display: block; }
body.has-wordmark #tname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.has-wordmark .mascot { display: none; }
.mascot { position: absolute; right: 2%; bottom: -6%; width: min(38%, 440px); pointer-events: none; z-index: 1; filter: drop-shadow(6px 6px 0 rgba(20,17,20,.35)); transform: rotate(-3deg); }
.band .wrap { position: relative; max-width: 1080px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding-top: 78px; padding-bottom: 52px; }
.band .label { color: #F5EACB; text-shadow: 1px 1px 0 rgba(0,0,0,.55); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.brand .badge { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border: 2px solid var(--outline); background: var(--ember); color: var(--outline); box-shadow: var(--shadow-sm); transform: rotate(-2deg); }
.brand .badge.live { background: var(--nitro); }
.brand .badge.demo { background: var(--sky); }
h1.disp { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: .92; color: var(--parch); text-shadow: 3px 3px 0 var(--outline); }
h1 .tk { display: block; color: var(--ember); font-size: .58em; line-height: 1.02; margin-top: 10px; max-width: 15ch; text-shadow: 2px 2px 0 var(--outline), 3px 3px 6px rgba(0,0,0,.4); }
.tag { margin: 14px 0 0; max-width: 46ch; color: #F5EACB; font-size: 16px; text-shadow: 1px 1px 2px rgba(0,0,0,.6); }
.tag b { color: #FFE39C; }

.hero { position: relative; justify-self: end; width: min(100%, 460px); background: var(--tar); border: 4px solid var(--outline); box-shadow: var(--shadow); padding: 18px 22px 20px; transform: rotate(1.2deg); z-index: 2; }
.hero::before { content: ""; position: absolute; inset: -4px; background: repeating-linear-gradient(-60deg, transparent 0 18px, rgba(47,143,60,.08) 18px 20px); pointer-events: none; z-index: 0; }
.hero > * { position: relative; z-index: 1; }
.hero .label { color: var(--flame); }
.cd { font-family: var(--display); font-size: clamp(64px, 9vw, 108px); line-height: 1; color: var(--cream); text-shadow: 4px 4px 0 var(--ember), 8px 8px 0 var(--flame); letter-spacing: .04em; margin: 2px 0 6px; }
.cd.hot { animation: pulse 1s ease-in-out infinite; color: var(--flame); text-shadow: 4px 4px 0 var(--ember), 8px 8px 0 var(--outline); }
.cd.paying { font-size: clamp(40px, 6vw, 62px); color: var(--nitro); }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.hero .sub { margin: 0; color: var(--smoke); font-size: 14px; }
.hero .sub b { color: var(--cream); font-weight: 600; }
.star { position: absolute; top: -26px; right: -22px; width: 92px; height: 92px; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 15px; line-height: 1; color: var(--outline); background: var(--ember); clip-path: polygon(50% 0%, 61% 14%, 79% 8%, 80% 27%, 97% 35%, 86% 50%, 97% 65%, 80% 73%, 79% 92%, 61% 86%, 50% 100%, 39% 86%, 21% 92%, 20% 73%, 3% 65%, 14% 50%, 3% 35%, 20% 27%, 21% 8%, 39% 14%); transform: rotate(8deg); z-index: 2; }
.star small { display: block; font-size: 11px; font-family: var(--label); font-weight: 700; letter-spacing: .04em; }

/* ---------------------------------------------------------------- slim masthead (inner pages) */
/* inner masthead: the fixed forest wall shows through a dark scrim; light heading text */
.masthead { position: relative; overflow: hidden; border-bottom: 5px solid var(--outline);
  background: linear-gradient(180deg, rgba(20,34,12,.30) 0%, rgba(20,34,12,.55) 100%); }
.masthead::before { content: none; }
.masthead .eyebrow { color: var(--ember) !important; }
.masthead h1 { color: var(--parch) !important; text-shadow: 3px 3px 0 var(--outline) !important; }
.masthead p { color: #EFE6CC !important; text-shadow: 1px 1px 2px rgba(0,0,0,.55); }
.masthead .in { max-width: 1240px; margin: 0 auto; padding: 30px 20px 82px; position: relative; z-index: 1; }
.masthead .eyebrow { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--flame); margin: 0 0 6px; }
.masthead h1 { font-family: var(--display); font-size: clamp(34px, 6vw, 60px); color: var(--cream); text-shadow: 3px 3px 0 var(--ember), 6px 6px 0 var(--flame); margin: 0; letter-spacing: .03em; line-height: 1; }
.masthead p { color: var(--smoke); font-size: 17px; margin: 10px 0 0; max-width: 62ch; }

/* ---------------------------------------------------------------- content / prose */
.content { max-width: 1240px; margin: 0 auto; padding: 30px 20px 72px; }
.content.narrow { max-width: 900px; }
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--display); font-size: 30px; color: var(--flame); letter-spacing: .03em; margin: 34px 0 10px; text-shadow: 2px 2px 0 var(--ember); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--label); text-transform: uppercase; letter-spacing: .06em; font-size: 18px; color: var(--cream); margin: 24px 0 6px; }
.prose p { margin: 0 0 12px; font-size: 16px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 0 0 7px; font-size: 16px; }
.prose li::marker { color: var(--flame); }
.prose b { color: var(--cream); font-weight: 600; }
.gold { color: var(--gold); font-weight: 700; }
.lead { font-size: 19px; line-height: 1.5; color: var(--cream); max-width: 62ch; }
.lead b { color: var(--flame); }

/* callout box */
.callout { border: 4px solid var(--outline); background: var(--ember); color: var(--outline); box-shadow: var(--shadow); padding: 16px 20px; margin: 20px 0; font-size: 16px; }
.callout .disp { display: block; font-size: 27px; letter-spacing: .03em; margin-bottom: 4px; color: var(--outline); }
.callout.blue { background: var(--sky); color: #FFFDF7; }
.callout.blue .disp { color: #FFFDF7; }
.callout.paper { background: var(--tar); color: var(--cream); }
.callout.paper .disp { color: var(--flame); }
.callout a { color: inherit; text-decoration: underline; }

/* 3-step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 22px 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--tar); border: 4px solid var(--outline); box-shadow: var(--shadow); padding: 16px 18px; }
.step .n { font-family: var(--display); font-size: 42px; color: var(--flame); line-height: 1; text-shadow: 2px 2px 0 var(--ember); }
.step h3 { font-family: var(--display); font-size: 23px; margin: 4px 0 6px; color: var(--cream); letter-spacing: .02em; }
.step p { margin: 0; color: var(--smoke); font-size: 15px; }
.step p b { color: var(--cream); }

/* CTA buttons */
.ctarow { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; align-items: center; }
.cta { font-family: var(--display); font-size: 24px; letter-spacing: .04em; padding: 10px 24px; border: 4px solid var(--outline); box-shadow: var(--shadow-sm); text-decoration: none; display: inline-block; transition: transform .08s ease, box-shadow .08s ease; }
.cta:hover { text-decoration: none; }
.cta.primary { background: var(--flame); color: #FFFDF7; }
.cta.primary:hover { background: var(--cherry); }
.cta.ghost { background: var(--ember); color: var(--outline); }
.cta.ghost:hover { background: #FFF9E6; }
.cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--outline); }

/* contract address bar */
.cabar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 26px; padding: 10px 14px; border: 4px solid var(--outline); background: var(--pit); box-shadow: var(--shadow-sm); }
.cabar .cal { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); }
.cabar .ca { font-family: var(--mono); font-size: 14px; color: var(--cream); word-break: break-all; flex: 1 1 320px; min-width: 0; }
.cbtn { font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border: 3px solid var(--outline); background: var(--tar); color: var(--cream); cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); line-height: 1.2; }
.cbtn:hover { background: var(--ember); color: var(--cream); text-decoration: none; }
.cbtn.go { background: var(--flame); color: #FFFDF7; }
.cbtn.go:hover { background: var(--cherry); color: #FFFDF7; }
.cbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--outline); }
@media (max-width: 700px) { .cabar .ca { font-size: 12px; } }
/* section heading in content */
.shead { font-family: var(--display); font-size: 32px; color: var(--flame); letter-spacing: .03em; margin: 40px 0 14px; text-shadow: 2px 2px 0 var(--ember); }
.shead:first-child { margin-top: 0; }

/* diagram */
.diagram { background: var(--tar); border: 4px solid var(--outline); box-shadow: var(--shadow); padding: 14px; margin: 20px 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-family: var(--label); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; color: var(--smoke); margin-top: 8px; text-align: center; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 780px) { .calc { grid-template-columns: 1fr; } }
.calc .card { background: var(--tar); border: 4px solid var(--outline); box-shadow: var(--shadow); padding: 18px 20px; }
.calc label { display: block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; color: var(--smoke); margin: 16px 0 5px; }
.calc label:first-of-type { margin-top: 4px; }
.calc .field { display: flex; align-items: center; gap: 8px; }
.calc .field .cur { font-family: var(--display); font-size: 24px; color: var(--flame); }
.calc input[type=number] { width: 100%; padding: 10px 12px; font: 500 17px var(--mono); color: var(--outline); border: 3px solid var(--outline); background: #FFF9E6; box-shadow: inset 0 0 0 2px var(--ember); border-radius: 4px; }
.calc input[type=range] { width: 100%; accent-color: var(--flame); }
.calc .rangeval { font-family: var(--mono); color: var(--cream); font-weight: 600; }
.calc .out .big { font-family: var(--display); font-size: clamp(30px, 5vw, 44px); color: var(--flame); line-height: 1; text-shadow: 2px 2px 0 var(--ember); }
.calc .out .lbl { font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--smoke); margin-top: 2px; }
.calc .out .row2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--grease); }
.calc .out .row2:last-child { border-bottom: 0; }
.calc .out .row2 b { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--cream); }
.calc .out .note { color: var(--smoke); font-size: 13px; margin: 12px 0 0; }

/* faq */
.faq details { border: 3px solid var(--outline); background: var(--tar); box-shadow: var(--shadow-sm); margin: 0 0 12px; padding: 0 16px; }
.faq summary { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; color: var(--cream); padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "▸ "; color: var(--flame); font-weight: 700; }
.faq details[open] summary::before { content: "▾ "; }
.faq .a { padding: 0 0 15px; color: var(--smoke); font-size: 15.5px; }
.faq .a b { color: var(--cream); }
.faq .a p { margin: 0 0 8px; }

/* ---------------------------------------------------------------- pit board */
.pitboard { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 4px solid var(--outline); background: var(--pit); box-shadow: var(--shadow); margin: 26px 0 0; }
.pitboard > div { padding: 12px 14px 12px; border-right: 3px solid var(--outline); min-width: 0; }
.pitboard > div:last-child { border-right: 0; }
.pitboard b { display: block; font-family: var(--display); font-size: clamp(24px, 3vw, 36px); line-height: 1.05; color: var(--cream); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitboard b.hot { color: var(--flame); text-shadow: 2px 2px 0 var(--ember); }
.pitboard small { display: block; margin-top: 2px; font-family: var(--label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--smoke); }

/* ---------------------------------------------------------------- panels */
main.wrap { display: grid; gap: 26px; padding-top: 26px; padding-bottom: 60px; }
.row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.col { display: grid; gap: 26px; }
.panel { background: var(--tar); border: 4px solid var(--outline); box-shadow: var(--shadow); padding: 0 0 16px; min-width: 0; }
.panel > .head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 10px 18px 8px; margin: -4px -4px 14px; background: var(--flame); color: var(--outline); border-bottom: 4px solid var(--outline); transform: skewX(-6deg); transform-origin: left bottom; }
.panel > .head > * { transform: skewX(6deg); }
.panel > .head h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1; color: var(--outline); }
.panel > .head .note { font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--outline); opacity: .85; margin-left: auto; }
.panel.ember > .head { background: var(--ember); }
.panel.sky > .head { background: var(--sky); }
.panel.nitro > .head { background: var(--nitro); }
.panel.cream > .head { background: var(--chrome); }
.panel .body { padding: 0 18px; }
.sub { color: var(--smoke); font-size: 14px; margin: 0 0 10px; }
.sub b { color: var(--cream); font-weight: 600; }

/* checker */
.plate { display: flex; gap: 10px; align-items: stretch; }
.plate input { flex: 1; min-width: 0; padding: 12px 14px; font: 500 17px/1.2 var(--mono); color: var(--outline); background: #FFF9E6; border: 4px solid var(--outline); box-shadow: inset 0 0 0 3px var(--ember); border-radius: 4px; }
.plate input::placeholder { color: #8b7c6a; font-family: var(--label); font-weight: 600; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.btn { font-family: var(--display); font-size: 22px; letter-spacing: .06em; padding: 8px 20px; color: var(--outline); background: var(--ember); border: 4px solid var(--outline); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { background: var(--flame); color: #FFFDF7; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--outline); }
.verdict { margin: 16px 0 4px; font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: .03em; text-shadow: 3px 3px 0 var(--ember); }
.verdict.in { color: var(--nitro); } .verdict.out { color: var(--rust); } .verdict.wait { color: #D98A00; } .verdict.done { color: var(--sky); }
.verdict .ico { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; margin-right: .18em; border: 3px solid currentColor; border-radius: 50%; position: relative; }
.verdict.in .ico::after { content: ""; position: absolute; left: 22%; top: 8%; width: 28%; height: 56%; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.verdict.out .ico::before, .verdict.out .ico::after { content: ""; position: absolute; left: 50%; top: 18%; width: 3px; height: 64%; background: currentColor; transform: translateX(-50%) rotate(45deg); }
.verdict.out .ico::after { transform: translateX(-50%) rotate(-45deg); }
.verdict.wait .ico::after { content: ""; position: absolute; left: 44%; top: 20%; width: 3px; height: 34%; background: currentColor; transform-origin: bottom; transform: rotate(0deg); box-shadow: 8px 8px 0 -1px currentColor; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.facts > div { background: var(--pit); border: 3px solid var(--outline); padding: 9px 12px; min-width: 0; }
.facts b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.05; letter-spacing: .03em; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts b.hot { color: var(--flame); }
.facts small { display: block; margin-top: 2px; font-family: var(--label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; color: var(--smoke); }
.why { margin: 6px 0 0; color: var(--smoke); }
.why b { color: var(--cream); font-weight: 600; }
h3.disp { margin: 16px 0 6px; font-size: 22px; color: var(--flame); letter-spacing: .04em; }
.ride { float: right; width: min(38%, 250px); margin: 4px -6px 6px 14px; filter: drop-shadow(4px 4px 0 rgba(20,17,20,.25)); }
@media (max-width: 560px) { .ride { width: 40%; } }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.chip { font-family: var(--mono); font-size: 12px; padding: 4px 8px; background: var(--tar); border: 2px solid var(--outline); color: var(--cream); cursor: pointer; box-shadow: 2px 2px 0 var(--outline); }
.chip:hover { background: var(--ember); }

/* tables */
.tbl { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 2px solid var(--grease); vertical-align: top; }
th { font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--smoke); white-space: nowrap; }
td.r, th.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; } tr.click:hover td { background: rgba(255,196,0,.18); }
table.grid th, table.grid td { border: 2px solid var(--grease); }
table.grid td.r { color: var(--cream); }
.pill { display: inline-block; font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border: 2px solid var(--outline); color: var(--outline); background: var(--chrome); white-space: nowrap; }
.pill.in { background: var(--nitro); } .pill.out { background: var(--rust); color: #FFFDF7; } .pill.wait { background: var(--ember); } .pill.done { background: var(--sky); } .pill.dry { background: var(--pit); }
.bar { display: inline-block; height: 10px; background: var(--flame); border: 2px solid var(--outline); vertical-align: middle; margin-right: 6px; }

/* schedule */
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 2px solid var(--grease); }
.sched li:last-child { border-bottom: 0; }
.sched .k { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: var(--dim); }
.sched li.now .k { color: var(--flame); }
.sched li.now .t b { color: var(--flame); }
.sched .t { line-height: 1.25; }
.sched .t b { display: block; font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--cream); }
.sched .t small { color: var(--smoke); font-family: var(--mono); font-size: 12px; }
.sched .eta { font-family: var(--mono); font-size: 13px; color: var(--smoke); text-align: right; }
.sched li.now .eta { color: #128A4A; font-weight: 500; }

/* spec sheet */
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.spec li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 2px solid var(--grease); }
.spec li:last-child { border-bottom: 0; }
.spec .v { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--flame); letter-spacing: .03em; text-shadow: 2px 2px 0 var(--ember); }
.spec .d { color: var(--smoke); } .spec .d b { color: var(--cream); font-weight: 600; }

/* chart */
.chartwrap { position: relative; }
canvas { width: 100%; display: block; }
#track { height: 300px; } #drops { height: 120px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 8px 0 4px; font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--smoke); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--outline); }
.sw.line { height: 3px; border: 0; background: var(--c-line); width: 22px; }
.sw.in { background: var(--c-in); border-radius: 50%; }
.sw.profit { background: transparent; border-color: var(--c-profit); transform: rotate(45deg); width: 11px; height: 11px; }
.sw.other { background: var(--dim); border-radius: 50%; width: 9px; height: 9px; }
.sw.flag { background: transparent; border: 0; width: 2px; height: 16px; background: var(--c-flag); }
.sw.paid { background: var(--flame); } .sw.pot { background: transparent; border-color: var(--smoke); }
.tip { position: absolute; pointer-events: none; background: var(--tar); color: var(--cream); border: 3px solid var(--outline); box-shadow: var(--shadow-sm); padding: 6px 9px; font: 12px/1.35 var(--mono); white-space: nowrap; display: none; z-index: 3; }

/* rounds */
.round { display: grid; grid-template-columns: 74px 1fr 150px; gap: 12px; padding: 9px 0; border-bottom: 2px solid var(--grease); cursor: pointer; align-items: center; }
.round .n { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: var(--flame); line-height: 1; }
.round .n small { display: block; font-family: var(--mono); font-size: 11px; color: var(--smoke); margin-top: 2px; letter-spacing: 0; }
.round .m { color: var(--smoke); } .round .m b { color: var(--cream); font-weight: 600; }
.round .p { text-align: right; font-family: var(--display); font-size: 22px; letter-spacing: .03em; color: var(--cream); line-height: 1; }
.round .p small { display: block; font-family: var(--mono); font-size: 11px; color: var(--smoke); margin-top: 3px; letter-spacing: 0; }
.rlist { display: none; padding: 8px 0 14px; } .rlist.open { display: block; }
details.raw { margin-top: 8px; } details.raw summary { cursor: pointer; color: var(--smoke); font-family: var(--label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
code { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--smoke); }

/* status */
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; font-size: 13px; color: var(--smoke); }
.status b { color: var(--cream); font-weight: 600; }
.status .mono { word-break: break-all; }
.ok { color: #128A4A; } .bad { color: var(--rust); } .mid { color: #D98A00; } .muted { color: var(--smoke); }
.ribbon { background: var(--sky); color: #FFFDF7; border-bottom: 4px solid var(--outline); font-family: var(--label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; padding: 7px 0; text-align: center; }

/* footer */
.foot { border-top: 4px solid var(--outline); margin-top: 40px; background: url("../art/canopy.svg") top left / auto 50px repeat-x, var(--pit); }
.foot .in { max-width: 1240px; margin: 0 auto; padding: 60px 20px 30px; display: flex; gap: 16px 22px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 13px; }
.foot .flinks { display: flex; gap: 14px; flex-wrap: wrap; margin-right: auto; }
.foot a { color: var(--cream); font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; text-decoration: none; }
.foot a:hover { color: var(--flame); text-decoration: none; }

@media (max-width: 980px) {
  .band .wrap { grid-template-columns: 1fr; }
  .hero { justify-self: stretch; width: 100%; transform: none; }
  .star { top: -20px; right: 8px; }
  .row { grid-template-columns: 1fr; }
  .pitboard { grid-template-columns: repeat(3, 1fr); }
  .pitboard > div:nth-child(3) { border-right: 0; } .pitboard > div:nth-child(-n+3) { border-bottom: 3px solid var(--outline); }
  .stripe { width: 60%; right: -20%; opacity: .5; }
  .mascot { display: none; }
}
@media (max-width: 560px) {
  .pitboard { grid-template-columns: repeat(2, 1fr); }
  .pitboard > div { border-right: 0 !important; border-bottom: 3px solid var(--outline); }
  .pitboard > div:nth-child(odd) { border-right: 3px solid var(--outline) !important; }
  .pitboard > div:nth-last-child(-n+2) { border-bottom: 0; }
  .round { grid-template-columns: 60px 1fr; } .round .p { grid-column: 1 / -1; text-align: left; }
  .plate { flex-direction: column; }
}
/* ---------------------------------------------------------------- treasury */
.trez-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.trez-top .k { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--smoke); }
.trez-top .v { font-family: var(--display); font-size: 28px; color: var(--flame); text-shadow: 2px 2px 0 var(--ember); line-height: 1; }
.trez-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 4px solid var(--outline); background: var(--pit); box-shadow: var(--shadow); }
.trez-stats > div { padding: 18px 18px; border-right: 3px solid var(--outline); min-width: 0; }
.trez-stats > div:last-child { border-right: 0; }
.trez-stats .lbl { display: block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--smoke); }
.trez-stats .num { display: block; margin-top: 8px; font-family: var(--display); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.02; color: var(--cream); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trez-stats .num.gold { color: var(--gold); text-shadow: 2px 2px 0 var(--ember); }
.trez-stats .num.hot { color: var(--flame); text-shadow: 2px 2px 0 var(--ember); }
.trez-stats .sub { display: block; margin-top: 8px; font-size: 12.5px; color: var(--smoke); }
.trez-stats .sub .ev { color: var(--flame); font-weight: 600; text-decoration: none; }
.trez-stats .sub .ev:hover { text-decoration: underline; }
.trez-cover { margin: 16px 0 0; color: var(--smoke); font-size: 15px; }
.trez-cover b { color: var(--gold); }
.trez-flow { margin: 30px 0 0; padding: 20px; border: 4px solid var(--outline); background: var(--tar); box-shadow: var(--shadow); }
.trez-flow h3 { margin: 0 0 12px; }
.trez-flow .flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--cream); }
.trez-flow .flow i { color: var(--flame); font-style: normal; font-size: 18px; }
.trez-flow .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 16px 0 0; border: 3px solid var(--outline); }
.trez-flow .split > div { padding: 12px 14px; border-right: 3px solid var(--outline); }
.trez-flow .split > div:last-child { border-right: 0; }
.trez-flow .split b { display: block; font-family: var(--display); font-size: 30px; color: var(--gold); text-shadow: 2px 2px 0 var(--ember); }
.trez-flow .split small { display: block; margin-top: 2px; font-family: var(--label); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--smoke); }
.trez-flow .sub { margin: 14px 0 0; color: var(--smoke); font-size: 14px; max-width: 70ch; }
@media (max-width: 900px) {
  .trez-stats { grid-template-columns: repeat(2, 1fr); }
  .trez-stats > div { border-right: 0; border-bottom: 3px solid var(--outline); }
  .trez-stats > div:nth-child(odd) { border-right: 3px solid var(--outline); }
  .trez-stats > div:last-child { border-bottom: 0; }
  .trez-flow .split { grid-template-columns: 1fr; }
  .trez-flow .split > div { border-right: 0; border-bottom: 3px solid var(--outline); }
  .trez-flow .split > div:last-child { border-bottom: 0; }
}
/* ---------------------------------------------------------------- exclusions */
.exlist { list-style: none; margin: 12px 0 0; padding: 0; border: 4px solid var(--outline); background: var(--tar); box-shadow: var(--shadow); }
.exlist li { padding: 14px 18px; border-bottom: 3px solid var(--outline); }
.exlist li:last-child { border-bottom: 0; }
.exlist .t { display: block; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; color: var(--cream); }
.exlist .t.no::before { content: "✕ "; color: var(--flame); font-weight: 700; }
.exlist .t.ok::before { content: "✓ "; color: var(--nitro); font-weight: 700; }
.exlist .d { display: block; margin-top: 3px; color: var(--smoke); font-size: 14.5px; }
.exlist .d a { color: var(--flame); }
@media (prefers-reduced-motion: reduce) { .cd.hot { animation: none; } .btn, .cta { transition: none; } }

/* ==================================================================
   $LOOT forest reskin — layout column, wooden chrome, parchment, grass
   ================================================================== */
/* content sits in a column narrower than the viewport so the side trunks frame it */
main.wrap, .content { max-width: 1080px; }
.masthead .in { max-width: 1080px; padding: 34px 20px 42px; }
.foot .in { max-width: 1080px; }
/* keep the trunks clear of the 1080 column (width = side margin minus a hair) */
.decor .trunk { width: clamp(84px, calc((100vw - 1080px) / 2 - 8px), 190px); }

/* wooden nav plank */
.nav { background: var(--bark); border-bottom: 4px solid var(--outline); box-shadow: 0 3px 0 rgba(0,0,0,.22); }
.nav .home { color: var(--ember); text-shadow: 2px 2px 0 var(--outline); }
.nav .home:hover { color: #FFE39C; }
.nav a.lnk { color: var(--parch); }
.nav a.lnk:hover { border-color: var(--ember); }
.nav a.lnk.active { background: var(--ember); color: var(--outline); border-color: var(--outline); }

/* buttons: primary = wooden sign, ghost = gold coin; both press down on hover */
.cta.primary { background: var(--bark); color: var(--parch); }
.cta.primary:hover { background: #7C5329; color: #FFF3D6; }
.cta.ghost { background: var(--ember); color: var(--outline); }
.cta.ghost:hover { background: #FFD84D; }
.cbtn { background: var(--bark); color: var(--parch); border-color: var(--outline); }
.cbtn:hover { background: var(--ember); color: var(--outline); }
.cbtn.go { background: var(--ember); color: var(--outline); }
.cbtn.go:hover { background: #FFD84D; }

/* content headings in deep brown on parchment */
.prose h2, .shead { color: #46311A; text-shadow: none; }
.prose h2 { text-shadow: 1px 1px 0 rgba(255,255,255,.4); }
.step h3 { color: var(--outline); }
.step .n { color: var(--sher); text-shadow: 2px 2px 0 var(--ember); }
.lead b { color: var(--sher); }
.callout .disp { color: var(--outline); }

/* wooden footer with a grassy top edge overlapping upward */
.foot { position: relative; background: var(--bark); border-top: 5px solid var(--outline); margin-top: 64px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -44px; height: 54px; background: url("../art/grass.png") bottom center / auto 100% repeat-x; pointer-events: none; z-index: 3; }
.foot .in { padding-top: 26px; color: #E4D6AE; }
.foot a { color: var(--parch); } .foot a:hover { color: var(--ember); }

/* mobile: drop the side trunks + reposition the path so it stays visible (handled by cover) */
@media (max-width: 760px) {
  .band { background-position: 62% center; }
  .canopy { height: clamp(42px, 13vw, 72px); }
}
