:root {
  --rug: #5e0f1c; --rug2: #7a1726; --gold: #d9a441; --navy: #1d2a52; --cream: #efe3c2;
  --paper: #f1e8d2; --paper2: #e4d8b8; --ink: #1d1f24; --muted: #5d5547; --red: #b3202b; --blue: #1f3b7a;
  --green: #2f7a4f; --wood: #6b3d1f;
  --head: "Ruslan Display", "Russo One", Georgia, serif; --btn: "Russo One", system-ui, sans-serif;
  --body: "PT Serif", Georgia, serif; --mono: "PT Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5;
  background-color: #b3221f;
}
body::before {   /* the poster: red sunburst rays from the bottom centre, worn paper, darker edges */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2;
  background:
    url("/grunge.svg"),
    radial-gradient(ellipse at 50% 70%, rgba(0,0,0,0) 35%, rgba(40,4,6,.6) 100%),
    repeating-conic-gradient(from -3deg at 50% 92%, #c9302a 0deg 7deg, #a61d1c 7deg 14deg);
  background-size: 420px 420px, auto, auto;
}
body::after {    /* the poster's cream frame */
  content: ""; position: fixed; inset: 8px; pointer-events: none; z-index: -1;
  border: 3px solid #efe3c2; outline: 1px solid rgba(239,227,194,.55); outline-offset: -9px; border-radius: 2px;
}
a { color: var(--blue); }
.tiny { font-size: 13px; color: var(--muted); margin: 4px 0; }
.rug-edge { height: 10px; background: #6e1212; border-top: 2px solid #efe3c2; border-bottom: 2px solid #efe3c2; }
.rug-edge.top { position: relative; z-index: 2; border-top: 0; }

/* ---------------------------------------------------------------- header */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 22px;
  background: linear-gradient(#8e1a1a, #6a1010); border-bottom: 3px solid #efe3c2; box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.logo { font-family: var(--head); font-size: 26px; color: #efe3c2; text-decoration: none; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.tabs a { font-family: var(--btn); color: var(--cream); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px; }
.tabs a:hover { background: rgba(217,164,65,.18); color: #fff; }
.btn {
  font-family: var(--btn); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); padding: 8px 14px; box-shadow: 0 3px 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.big { font-size: 18px; padding: 12px 18px; width: 100%; }
.btn.gold { background: var(--gold); }
.btn.connect { background: var(--gold); white-space: nowrap; }
.btn.up { background: #2f7a4f; color: #fff; }
.btn.down { background: var(--red); color: #fff; }

/* ---------------------------------------------------------------- ticker */
.ticker { background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: 14px; overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--gold); }
.ticker-in { display: inline-block; padding: 6px 0 6px 100%; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-in { animation: none; padding-left: 16px; } }

/* ---------------------------------------------------------------- paper */
main { max-width: 1120px; margin: 0 auto; padding: 32px 20px 20px; display: grid; gap: 36px; }
.paper {
  position: relative; background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(93,85,71,.12) 27px 28px);
  border: 1px solid #c9bb95; box-shadow: 0 10px 0 rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.45); padding: 28px 30px;
}
.paper::before, .paper::after {   /* tape */
  content: ""; position: absolute; top: -12px; width: 92px; height: 26px; background: rgba(239,227,194,.75);
  border: 1px solid rgba(0,0,0,.08); transform: rotate(-4deg);
}
.paper::before { left: 24px; }
.paper::after { left: 52%; transform: rotate(5deg); }
.stamp {
  position: absolute; right: 26px; top: 22px; font-family: var(--btn); font-size: 20px; letter-spacing: 2px; padding: 4px 12px;
  border: 3px solid currentColor; border-radius: 6px; transform: rotate(-9deg); opacity: .78; mix-blend-mode: multiply;
}
.stamp.red { color: var(--red); }
.hero-copy .stamp { top: -20px; right: -34px; z-index: 3; background: rgba(241,232,210,.85); }
.stamp.blue { color: var(--blue); }
h1, h2 { font-family: var(--head); font-weight: 400; margin: 0 0 6px; letter-spacing: 1px; }
h1 { font-size: 64px; line-height: 1; color: var(--rug); text-shadow: 3px 3px 0 var(--gold); }
h2 { font-size: 34px; color: var(--rug); }
h3 { font-family: var(--btn); font-weight: 400; font-size: 16px; margin: 0; letter-spacing: .5px; }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.lede { font-size: 22px; font-style: italic; margin: 8px 0; }
.sub { margin: 0 0 14px; }
.fine { font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.meter { position: relative; height: 16px; border: 2px solid var(--ink); background: #fff; border-radius: 8px; overflow: hidden; margin-top: 18px; }
.meter-bar { height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--red) 0 10px, #c9343f 10px 20px); transition: width .6s; }
.minted { font-family: var(--mono); margin: 6px 0 16px; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lane { border: 2px solid var(--ink); border-radius: 10px; background: #fff8e6; padding: 14px; text-align: center; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; }
.lane.gold { background: #ffefc2; }
.qty { display: flex; justify-content: center; gap: 6px; }
.qty button { width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font-size: 18px; cursor: pointer; }
.qty input { width: 64px; height: 36px; text-align: center; border: 2px solid var(--ink); border-radius: 6px; font-family: var(--mono); font-size: 16px; }
.hero-card { margin: 0; position: relative; text-align: center; }
.frame-wood { display: inline-block; padding: 14px; background: linear-gradient(135deg, #8a5228, #5b3317 60%, #7a4622); border: 2px solid #2b170a; box-shadow: 0 12px 30px rgba(0,0,0,.55), inset 0 0 0 3px rgba(255,220,160,.25); transform: rotate(1.5deg); }
.frame-wood img { display: block; width: 280px; height: auto; }
.hero-card figcaption { display: inline-block; max-width: 300px; color: var(--ink); background: var(--cream); font-size: 14px; margin-top: 16px; padding: 6px 12px; transform: rotate(-1.5deg); box-shadow: 0 4px 0 rgba(0,0,0,.35); text-wrap: balance; }

/* ---------------------------------------------------------------- ballot */
.rule { font-size: 14px; font-family: var(--mono); background: #fff8e6; border-left: 6px solid var(--gold); padding: 8px 12px; margin: 0 0 16px; }
.options { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; border: 2px solid var(--ink); border-radius: 8px; background: #fffaf0; padding: 10px 12px; position: relative; overflow: hidden; }
.opt .glyph { font-size: 26px; text-align: center; color: var(--rug); }
.opt .what > b { display: block; font-family: var(--btn); font-weight: 400; font-size: 15px; }
.opt .what span { font-size: 14px; color: var(--muted); }
.opt .vbar { position: absolute; left: 0; bottom: 0; height: 8px; background: var(--gold); transition: width .6s; }
.opt.lead { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; }
.opt .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.opt .count { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.opt .btn { padding: 6px 12px; font-size: 13px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.points div { border: 2px dashed var(--muted); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: rgba(255,255,255,.4); }
.points div > b:first-child { display: block; font-family: var(--btn); font-weight: 400; margin-bottom: 4px; }

/* ---------------------------------------------------------------- hourly */
.eth { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: stretch; }
.eth-price { border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--gold); padding: 12px; text-align: center; display: grid; }
.eth-price b { font-family: var(--mono); font-size: 28px; }
.eth-price .tiny { color: #b9a77a; }
.calls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calls .btn { height: 100%; font-size: 22px; }
.tally { grid-column: 1 / -1; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.past { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.past span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--muted); border-radius: 4px; padding: 2px 6px; background: #fff; }
.past span.up { color: var(--green); border-color: var(--green); }
.past span.down { color: var(--red); border-color: var(--red); }

/* ---------------------------------------------------------------- cards */
.cards-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.card { border: 2px solid var(--ink); border-radius: 8px; background: #fff; padding: 6px; cursor: pointer; text-align: center; font-size: 13px; position: relative; }
.card img { width: 100%; height: auto; display: block; }
.card.sel { outline: 4px solid var(--gold); }
.card .tag { position: absolute; top: 10px; left: 10px; font-family: var(--btn); font-size: 11px; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 4px; }
.card .tag.on { background: var(--green); }
.card p { margin: 6px 0 2px; font-family: var(--mono); }

.hpot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 16px; }
.hpot div { border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--cream); padding: 10px 14px; display: grid; }
.hpot span { font-family: var(--btn); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }
.hpot b { font-family: var(--mono); font-size: 24px; }
.hpot .tiny { font-family: var(--body); text-transform: none; letter-spacing: 0; color: #b9a77a; }
@media (max-width: 640px) { .steps { flex-direction: column; align-items: flex-start; gap: 2px; } .steps i { transform: rotate(90deg); margin-left: 14px; line-height: 1; } .hpot { grid-template-columns: 1fr; } .card.empty:nth-child(3) { display: none; } }
.hero h1 { font-family: var(--head); font-size: 44px; line-height: 1.08; color: var(--rug); text-shadow: 2px 2px 0 var(--gold); margin: 6px 0 12px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--mono); font-size: 14px; margin: 0 0 12px; }
.steps span { background: #fff8e6; border: 1px solid #c9bb95; border-radius: 4px; padding: 2px 8px; }
.steps i { color: var(--gold); font-style: normal; font-weight: 700; }
.lede-sub { font-size: 17px; margin: 0 0 8px; }
.decides { font-family: var(--btn); text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin: 0; }
.meter-pct { position: absolute; right: 8px; top: 0; line-height: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink); }
.btn.big small { display: block; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 12px; opacity: .9; margin-top: 2px; }
.sample { position: relative; z-index: 30; text-align: center; background: #f6d860; color: var(--ink); font-family: var(--mono); font-size: 13px; padding: 4px 8px; border-bottom: 2px solid var(--ink); }
.pin { width: 48px; height: 54px; display: block; margin: 0 auto; overflow: visible; }
.pin-wrap { position: relative; width: 54px; height: 61px; justify-self: center; }
.pin-wrap svg { position: absolute; inset: 0; width: 54px; height: 61px; overflow: visible; }
.opt.lead .vbar { background: repeating-linear-gradient(45deg, var(--red) 0 8px, #c9343f 8px 16px); }
.pts { display: inline-block; background: var(--gold); color: var(--ink); font-family: var(--btn); font-size: 13px; padding: 1px 8px; border-radius: 10px; margin-left: 4px; }
.card .st { font-family: var(--mono); font-size: 20px; font-weight: 700; margin: 6px 0 0; }
.card .share { color: var(--muted); }
.card.empty { border: 2px dashed var(--muted); background: transparent; cursor: default; display: grid; place-items: center; aspect-ratio: 150 / 200; color: var(--muted); font-family: var(--btn); }
.card.empty .btn { margin-top: 8px; }
.teases { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.teases .notice:nth-child(2) { transform: rotate(1.4deg); }
.notice { justify-self: stretch; width: auto; transform: rotate(-1.5deg); display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.notice .comrade { width: 140px; height: auto; display: block; }
.notice h3 { font-family: var(--head); font-size: 24px; color: var(--rug); margin: 0 0 6px; }
.notice p { font-style: italic; font-size: 15px; margin: 0; }
.potbig { display: grid; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--cream); padding: 12px 16px; margin: 0 0 12px; }
.potbig span { font-family: var(--btn); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }
.potbig b { font-family: var(--mono); font-size: 30px; }
.potbig .tiny { font-family: var(--body); text-transform: none; letter-spacing: 0; color: #b9a77a; }
.opt .amt { font-family: var(--mono); font-size: 13px; color: var(--ink); margin-top: 2px; display: block; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 22px 14px 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: transform .15s; }
.step:hover { transform: translateY(-3px); }
.step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); z-index: 2; font-family: var(--btn); font-size: 22px; color: var(--cream); text-shadow: 2px 2px 0 #5a0d0d; }
.step-n { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--rug); color: var(--cream); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--btn); font-size: 15px; }
.step-ic { width: 52px; height: 52px; }
.step b { font-family: var(--btn); font-weight: 400; font-size: 17px; text-transform: uppercase; letter-spacing: .5px; color: var(--rug); }
.step span { font-size: 14px; line-height: 1.4; }
.step i { font-style: normal; font-family: var(--btn); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); margin-top: 2px; }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; row-gap: 26px; } .step:nth-child(2)::after { display: none; } .teases { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .step { padding: 20px 10px 12px; } .step b { font-size: 14px; } .step span { font-size: 13px; } .step-ic { width: 42px; height: 42px; } .step::after { display: none; } }
.usewith { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--btn); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.calls + .tally, .eth .usewith { grid-column: 1 / -1; }
.usewith button { font: inherit; text-transform: inherit; cursor: pointer; border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 4px 12px; }
.usewith button[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
.usewith button:disabled { opacity: .45; cursor: default; }
.usewith b { font-family: var(--mono); margin-left: 4px; }
.usewith .u-pick { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; }
.inv-bar { position: sticky; top: 62px; z-index: 5; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: grid; gap: 8px; box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font-family: var(--btn); font-size: 12px; text-transform: uppercase; cursor: pointer; border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 3px 10px; }
.filters button[aria-pressed="true"] { background: var(--rug); color: var(--cream); }
.filters b { font-family: var(--mono); margin-left: 3px; }
.selrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.selcount { font-family: var(--mono); font-weight: 700; margin-right: auto; }
.selrow .btn, .inv-bar .cards-actions .btn { padding: 6px 12px; font-size: 13px; }
.inv-bar .cards-actions { margin: 0; }
.inv-bar .tiny { margin: 0; }
.cards-scroll { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border-radius: 8px; }
.card .ph { width: 100%; aspect-ratio: 300 / 556; background: repeating-linear-gradient(45deg, #efe7d2 0 8px, #e6dcc2 8px 16px); border-radius: 4px; }
.card.sel { outline: 4px solid var(--gold); outline-offset: -2px; }
.card.sel::before { content: "✓"; position: absolute; top: 8px; right: 10px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
@media (max-width: 640px) { .inv-bar { top: 104px; } .cards-scroll { max-height: 70vh; } .cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; } }
.livepot { background: var(--ink); color: var(--cream); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 4px 0 16px; display: grid; gap: 10px; }
.lp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.lp-live { font-family: var(--btn); font-size: 13px; letter-spacing: .5px; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.lp-live i { width: 9px; height: 9px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 0 0 rgba(62,207,110,.7); animation: lp-pulse 1.6s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 8px rgba(62,207,110,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,110,0); } }
.lp-head b { font-family: var(--mono); font-size: 28px; }
.lp-left { margin-left: auto; font-family: var(--mono); font-size: 14px; color: #c9b88d; }
.lp-bar { position: relative; height: 22px; border-radius: 11px; background: repeating-linear-gradient(45deg, #2c3040 0 10px, #343949 10px 20px); border: 2px solid #4a4f60; overflow: hidden; }
.lp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #c9952c, #f0cf73); overflow: hidden; }
.lp-fill::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.35) 50%, transparent 100%); width: 120px; animation: lp-shine 2.4s linear infinite; }
.lp-fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: #fff7d6; box-shadow: 0 0 10px #ffe9a0; }
@keyframes lp-shine { from { transform: translateX(-120px); } to { transform: translateX(1200px); } }
.lp-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--mono); font-size: 13px; color: #d9cba6; }
.lp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lp-legend i.paid { background: #e9b949; } .lp-legend i.left { background: #4a4f60; }
.lp-legend b { color: var(--cream); }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lp-stats div { background: #262a36; border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.lp-stats span { font-family: var(--btn); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }
.lp-stats b { font-family: var(--mono); font-size: 18px; }
.lp-stats em { font-style: normal; font-size: 12px; color: #b9a77a; }
.livepot .tiny { color: #b9a77a; margin: 0; }
.lp-owed { margin: 0; font-family: var(--mono); font-size: 13px; color: #d9cba6; border-top: 1px dashed #4a4f60; padding-top: 8px; }
.lp-owed b { color: var(--cream); }
@media (max-width: 860px) { .lp-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .lp-stats b { font-size: 15px; } .lp-stats span { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .lp-fill::before, .lp-live i { animation: none; } }
.slide { display: flex; align-items: center; gap: 10px; }
.slide input[type=range] { flex: 1; accent-color: var(--rug); height: 28px; cursor: pointer; }
.slide output { min-width: 42px; text-align: center; font-family: var(--mono); font-size: 18px; font-weight: 700; border: 2px solid var(--ink); border-radius: 6px; background: #fff; padding: 2px 6px; }
.race-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.race { display: grid; justify-items: center; gap: 2px; text-align: center; border: 2px solid var(--ink); border-radius: 10px; background: #fffaf0; padding: 12px 6px; }
.race.rare { background: #fff3cf; }
.race b { font-family: var(--btn); font-weight: 400; font-size: 16px; text-transform: uppercase; color: var(--rug); }
.race span { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.race i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .race-row { grid-template-columns: repeat(3, 1fr); } .race b { font-size: 13px; } .race span { font-size: 15px; } }
.how ol { padding-left: 22px; margin: 8px 0 0; display: grid; gap: 8px; }

/* ---------------------------------------------------------------- footer + toast */
.foot { text-align: center; color: var(--cream); padding: 0 0 30px; }
.foot .emblem { display: block; width: 220px; height: auto; margin: 6px auto 4px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
.foot .motto { font-family: var(--head); font-size: 20px; color: #efe3c2; letter-spacing: 1px; margin: 0; text-shadow: 2px 2px 0 #5a0d0d; }
.foot a { color: var(--gold); margin: 0 10px; font-family: var(--btn); text-transform: uppercase; }
.foot .tiny { color: #f2dfb3; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); background: var(--ink); color: var(--gold); border: 2px solid var(--gold); font-family: var(--mono); padding: 10px 16px; border-radius: 8px; max-width: min(92vw, 560px); transition: transform .25s; z-index: 50; visibility: hidden; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* wallet picker (shared with wallet.js) */
.wpick { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 60; }
.wpick-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 18px; width: min(92vw, 360px); }
.wpick-head { display: flex; justify-content: space-between; align-items: center; }
.wpick-head h3 { font-size: 18px; }
.wpick-x { border: 0; background: none; font-size: 26px; cursor: pointer; }
.wpick-list { display: grid; gap: 8px; margin-top: 10px; }
.wpick-item { display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; padding: 8px 10px; cursor: pointer; font-size: 15px; }
.wpick-item i { width: 28px; height: 28px; background: var(--gold); border-radius: 6px; }
.wmenu { position: absolute; z-index: 60; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: 10px; display: grid; gap: 8px; }
.wmenu button { font-family: var(--btn); border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); padding: 6px 10px; cursor: pointer; }
.wmenu-addr { font-family: var(--mono); font-size: 13px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .frame-wood img { width: 220px; }
  h1, .hero h1 { font-size: 34px; }
  .eth { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .logo { font-size: 22px; }
  .tabs { order: 3; flex-basis: 100%; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; }
  .tabs a { font-size: 12px; padding: 10px 8px; min-height: 40px; white-space: nowrap; }
  .btn.connect { margin-left: auto; }
  main { padding: 26px 12px; gap: 30px; }
  .paper { padding: 22px 16px; }
  .stamp { font-size: 15px; right: 12px; top: 14px; }
  h2 { font-size: 26px; padding-right: 90px; line-height: 1.15; }
  .hero-copy .stamp { display: none; }
  .lanes, .points { grid-template-columns: 1fr; }
  .opt { grid-template-columns: 48px 1fr; }
  .notice { width: auto; justify-self: stretch; transform: none; grid-template-columns: 100px 1fr; }
  .opt .right { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .frame-wood img { width: 220px; }
}
@media (max-width: 640px) { .sample-tail { display: none; } }
.notice .stamp { top: 10px; right: 18px; font-size: 17px; }
/* inventory polish */
.card .tag { position: static; display: inline-block; margin: 0 0 6px; }
.card .st { font-size: 16px; }
.card p { font-size: 12px; }
@media (max-width: 640px) {
  .inv-bar { position: static; padding: 8px 10px; gap: 6px; }
  .selrow { gap: 6px; }
  .selrow .btn, .inv-bar .cards-actions .btn { padding: 5px 9px; font-size: 12px; }
  .inv-bar .cards-actions { gap: 6px; }
  .card .st { font-size: 14px; }
}
.lp-stats div { align-content: start; }
