/* CoinDrop - white paper, one loud colour: SuperCoin yellow. Ink is only
   for type and outlines, so the page reads as two colours. Yellow is never
   used for small text (it fails contrast on white); it is a fill, a marker
   swipe, a coin. Graffiti = hand-drawn coins, sparks, stickers, a squiggle. */

:root {
  --bg: #ffffff;
  --paper: #fbfaf6;
  --coin: #ffc21a;
  --coin-rim: #e0a100;
  --coin-soft: #fff4cf;
  --coin-wash: #fffaeb;
  --ink: #15120b;
  --ink-2: #4a4537;
  --muted: #6e6858;
  --line: #ece9df;
  --line-2: #dedace;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(21, 18, 11, .06), 0 1px 1px rgba(21, 18, 11, .04);
  --shadow-2: 0 6px 18px -6px rgba(21, 18, 11, .16), 0 2px 4px rgba(21, 18, 11, .05);
  --shadow-3: 0 22px 44px -18px rgba(21, 18, 11, .28), 0 6px 12px -6px rgba(21, 18, 11, .08);
  --hard: 4px 4px 0 var(--ink);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Bricolage Grotesque", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.45 var(--body); font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--coin) 30%, var(--line));
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark-coin { width: 38px; height: 38px; animation: flip 7s var(--ease) infinite; transform-origin: 50% 55%; }
.mark-word { font: 800 22px/1 var(--display); letter-spacing: -.02em; display: grid; }
.mark-word b { font-weight: 800; background: linear-gradient(transparent 58%, var(--coin) 58%, var(--coin) 92%, transparent 92%); padding: 0 2px; }
.mark-word small { font: 700 9.5px/1 var(--body); letter-spacing: .22em; color: var(--muted); margin-top: 5px; }
@keyframes flip { 0%, 82% { transform: rotateY(0); } 90% { transform: rotateY(180deg) scale(1.06); } 100% { transform: rotateY(360deg); } }

.bar-tools { display: flex; align-items: center; gap: 8px; }
.padlock {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--bg);
  display: grid; place-items: center; transition: transform .25s var(--spring), background .2s;
}
.padlock svg { width: 19px; height: 19px; }
.padlock:hover { transform: translateY(-1px) rotate(-8deg); background: var(--coin); }
.padlock.open { background: var(--coin); box-shadow: var(--hard); }
.padlock.nope { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--bg);
  font: 700 14px/1 var(--body); transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.pill svg { width: 17px; height: 17px; }
.pill:hover { transform: translateY(-1px); box-shadow: var(--hard); }
.pill:active { transform: translate(2px, 2px); box-shadow: none; }
.pill.solid { background: var(--ink); color: var(--coin); }
.pill.ghost { border-color: var(--line-2); }
.pill.ghost:hover { border-color: var(--ink); }
.pill.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- hero + graffiti ---------- */
.hero { position: relative; padding: clamp(36px, 7vw, 76px) 0 clamp(26px, 4vw, 40px); isolation: isolate; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--bg);
  font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coin); box-shadow: 0 0 0 2px var(--ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px rgba(255, 194, 26, .45); } }
h1 {
  margin: 0; font: 800 clamp(44px, 8.4vw, 104px)/.92 var(--display); letter-spacing: -.045em;
}
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.06em; right: -.08em; top: .5em; height: .42em;
  background: var(--coin); border-radius: .2em .5em .3em .6em; transform: rotate(-1.6deg) scaleX(0); transform-origin: left;
  animation: swipe .8s .35s var(--ease) forwards;
}
@keyframes swipe { to { transform: rotate(-1.6deg) scaleX(1); } }
.tally { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; margin: 26px 0 0; }
.tally .big { font: 800 clamp(40px, 6vw, 64px)/.9 var(--display); letter-spacing: -.04em; }
.tally .unit { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 6px; color: var(--ink-2); font-weight: 600; }
.tally .unit svg { width: 22px; height: 22px; }

.graffiti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.g { position: absolute; }
.g-spark { width: 26px; height: 26px; fill: var(--coin); animation: twinkle 3.2s ease-in-out infinite; }
.g-spark.s1 { right: 22%; top: 18%; }
.g-spark.s2 { right: 6%; top: 52%; width: 18px; height: 18px; animation-delay: -1s; fill: var(--ink); }
.g-spark.s3 { right: 34%; bottom: 6%; width: 16px; height: 16px; animation-delay: -2s; }
.g-spark.s4 { left: 46%; top: 6%; width: 14px; height: 14px; animation-delay: -.5s; fill: var(--ink); }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.g-coin { width: 64px; height: 64px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(21, 18, 11, .12)); }
.g-coin.c1 { right: 9%; top: 14%; width: 96px; height: 96px; transform: rotate(14deg); }
.g-coin.c2 { right: 24%; top: 44%; width: 52px; height: 52px; animation-delay: -1.6s; }
.g-coin.c3 { right: 2%; bottom: 4%; width: 70px; height: 70px; animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -12px; rotate: -10deg; } }
.g-stack { right: 13%; bottom: 0; width: 120px; height: 94px; }
.g-dots { right: 30%; top: 22%; width: 120px; height: 80px; opacity: .9; }
.g-squiggle { left: -10px; bottom: -6px; width: 220px; height: 40px; opacity: .9; }
.g-tag { font: 400 26px/1 var(--marker); color: var(--ink); white-space: nowrap; }
.g-tag.t1 { right: 6%; top: 38%; transform: rotate(-9deg); }
.g-tag.t2 { right: 30%; top: 62%; transform: rotate(7deg); font-size: 34px; background: linear-gradient(transparent 55%, var(--coin) 55%); padding: 0 4px; }
.g-sticker {
  right: 17%; top: 4%; width: 92px; height: 92px; border-radius: 50%; background: var(--ink); color: var(--coin);
  display: grid; place-content: center; text-align: center; transform: rotate(-14deg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--ink); animation: wobble 6s ease-in-out infinite;
}
.g-sticker b { font: 800 26px/1 var(--display); letter-spacing: -.03em; }
.g-sticker span { font: 700 11px/1.2 var(--body); letter-spacing: .3em; margin-left: .3em; }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.04); } }

/* coin rain - plays once when the numbers land */
.rain { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.drop { position: absolute; top: -60px; width: 30px; height: 30px; animation: fall var(--d, 1.6s) var(--delay, 0s) cubic-bezier(.45, .05, .55, .95) forwards; opacity: 0; }
@keyframes fall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(var(--fall, 420px)) rotate(var(--rot, 540deg)); opacity: 0; }
}

@media (max-width: 860px) {
  .g-coin.c2, .g-dots, .g-tag.t2, .g-spark.s3, .g-stack { display: none; }
  .g-sticker { right: 2%; top: 2%; width: 74px; height: 74px; }
  .g-sticker b { font-size: 21px; }
  .g-coin.c1 { right: 4%; top: auto; bottom: 30%; width: 62px; height: 62px; }
  .g-coin.c3 { width: 48px; height: 48px; }
  .g-tag.t1 { right: 4%; top: auto; bottom: 8%; font-size: 20px; }
  .vault-door .g-sticker { right: 4%; top: -34px; }
  .vault-door .g-coin.c1 { right: -12px; top: 12%; bottom: auto; }
  .vault-door .g-coin.c3 { left: -10px; bottom: 10%; }
  .vault-door .g-tag.t1 { right: 6%; top: auto; bottom: 10%; }
}

/* ---------- vault (closed) - the graffiti hangs over its edges ---------- */
.vault { padding: clamp(48px, 7vw, 72px) 0 56px; overflow-x: clip; }
.vault-door > :not(.graffiti) { position: relative; z-index: 2; }
.vault-door .g-sticker { right: 7%; top: -42px; }
.vault-door .g-coin.c1 { right: -28px; top: 22%; }
.vault-door .g-coin.c2 { left: 16%; top: 18%; right: auto; }
.vault-door .g-coin.c3 { left: -22px; right: auto; bottom: 14%; }
.vault-door .g-stack { right: 12%; bottom: -26px; }
.vault-door .g-dots { left: 6%; right: auto; top: 8%; }
.vault-door .g-squiggle { left: 8%; bottom: -18px; }
.vault-door .g-tag.t1 { right: 14%; top: 34%; }
.vault-door .g-tag.t2 { left: 9%; right: auto; top: auto; bottom: 22%; }
.vault-door .g-spark.s1 { right: 26%; top: 10%; }
.vault-door .g-spark.s4 { left: 30%; top: -10px; }
.vault-door {
  position: relative; text-align: center; padding: clamp(56px, 8vw, 88px) 20px;
  border: 2px dashed var(--line-2); border-radius: 32px;
  background:
    radial-gradient(circle at 50% 30%, var(--coin-wash), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 194, 26, .07) 14px 28px);
}
.vault-coin {
  position: relative; width: 132px; height: 132px; margin: 0 auto 22px; border: 0; background: none; padding: 0;
  transition: transform .4s var(--spring);
}
.vault-coin .vc { width: 132px; height: 132px; animation: breathe 3.4s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(21, 18, 11, .18)); }
.vault-coin:hover { transform: rotate(-12deg) scale(1.05); }
.vault-lock {
  position: absolute; right: -6px; bottom: 4px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--coin); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg);
}
.vault-lock svg { width: 20px; height: 20px; }
@keyframes breathe { 50% { transform: translateY(-6px) rotate(6deg); } }
.vault h2 { margin: 0 0 8px; font: 800 clamp(26px, 4vw, 38px)/1.05 var(--display); letter-spacing: -.03em; }
.vault p { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- filter panel: BlinkDeal-tight, label + controls on one line ---------- */
.board { padding-top: 22px; }
.fbar {
  display: grid; gap: 0; margin-bottom: 20px; border: 1.5px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, var(--coin-wash), var(--bg) 70%); box-shadow: var(--shadow-1);
}
.frow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 9px 14px; }
.frow + .frow { border-top: 1px solid var(--line); }
.flabel { flex: none; font: 800 10px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flabel ~ .flabel { margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* brand row = a sub-select of the picked category: tucked in, tinted */
.frow.sub { background: var(--coin-wash); border-radius: 0 0 20px 20px; animation: slidein .3s var(--ease); }
.frow.sub .flabel::before { content: "↳ "; color: var(--coin-rim); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }
/* For: Women / Men dropdown, sits at the end of the category row */
.tsel {
  position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 26px 0 10px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); font: 700 13px/1 var(--body); cursor: pointer;
}
.tsel span { color: var(--muted); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.tsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: 700 12.5px/1 var(--body); color: var(--ink); cursor: pointer; padding: 0; }
.tsel select:focus { outline: none; }
.tsel svg { position: absolute; right: 8px; width: 14px; height: 14px; pointer-events: none; }
.tsel:hover, .tsel:focus-within { border-color: var(--ink); }
.tsel.on { background: var(--coin-soft); border-color: var(--ink); }

/* coins: one segmented track, the picked range is the single ink pill */
.cseg { display: inline-flex; flex-wrap: nowrap; gap: 1px; padding: 2px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line-2); }
.cseg button {
  height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: none;
  font: 800 12.5px/1 var(--display); letter-spacing: -.01em; color: var(--ink-2); transition: background .2s, color .2s, transform .2s var(--spring);
}
.cseg button:hover:not(:disabled):not(.on) { background: var(--coin-soft); color: var(--ink); }
.cseg button.on { background: var(--ink); color: var(--coin); }
.cseg button:disabled { color: var(--line-2); cursor: default; }
.seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line-2); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 700 12.5px/1 var(--body); color: var(--ink-2); transition: background .2s, color .2s; }
.seg button.on { background: var(--coin); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 4px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); font: 700 12.5px/1 var(--body); white-space: nowrap;
  transition: transform .2s var(--spring), border-color .15s, background .15s, box-shadow .2s;
}
.chip:not(:has(.mono, .ic)) { padding-left: 11px; }
.chip .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--coin-soft); }
.mono {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--coin-soft); font: 800 10.5px/1 var(--display); letter-spacing: .02em; color: var(--ink);
}
.mono.star { font-size: 12px; }
.chip .n { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; background: var(--paper); color: var(--ink-2); }
.chip:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ink); }
.chip.on { background: var(--coin-soft); border-color: var(--ink); }
.chip.on .mono, .chip.on .ic { background: var(--coin); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.on .n { background: var(--ink); color: var(--coin); }
.chip:disabled { opacity: .38; cursor: default; }

.soldchip {
  margin-left: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 7px; border-radius: 999px;
  border: 1.5px dashed var(--line-2); background: var(--bg); font: 700 12.5px/1 var(--body); color: var(--ink-2);
}
.soldchip .box { width: 15px; height: 15px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.soldchip .box svg { width: 12px; height: 12px; }
.soldchip.on { border-style: solid; border-color: var(--ink); color: var(--ink); }
.soldchip.on .box { background: var(--coin); border-color: var(--ink); }
.soldchip .n { font-weight: 800; color: var(--ink); }

/* ---------- deal cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.deal {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--bg);
  border: 1.5px solid var(--line); box-shadow: var(--shadow-1);
  transition: transform .3s var(--spring), box-shadow .3s, border-color .2s;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.deal:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow-3); border-color: var(--ink); }
.shot { position: relative; aspect-ratio: 1 / 1; margin: 8px 8px 0; border-radius: 16px; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.shot img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.deal:hover .shot img { transform: scale(1.06) rotate(-2deg); }
.coinbadge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px;
  border-radius: 999px; background: var(--coin); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  font: 800 15px/1 var(--display); letter-spacing: -.01em;
}
.coinbadge svg { width: 24px; height: 24px; }
.deal:hover .coinbadge svg { animation: flip 1.1s var(--ease); }
/* every card shows its coins - a quiet "0" when there's no coin-back right now */
.coinbadge.none { background: #fff; color: var(--muted); border-color: var(--line-2, #d8d3c4); box-shadow: none; }
.coinbadge.none svg { filter: grayscale(1); opacity: .55; }
.pctsticker {
  position: absolute; right: 10px; top: 10px; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--coin);
  display: grid; place-content: center; text-align: center; transform: rotate(12deg); box-shadow: 0 0 0 3px var(--bg);
}
.pctsticker.rep { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 2px var(--ink); border: 0; outline: 2px dashed var(--coin-rim); outline-offset: -6px; }
.pctsticker.rep span { letter-spacing: .06em; font-size: 6.5px; margin-left: 0; }
.pctsticker b { font: 800 15px/1 var(--display); }
.pctsticker span { font: 700 7.5px/1.3 var(--body); letter-spacing: .2em; margin-left: .2em; }
.confirmed {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 6px;
  border-radius: 999px; background: var(--bg); border: 1.5px solid var(--ink); font: 700 11px/1 var(--body);
}
.confirmed svg { width: 13px; height: 13px; }

.body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.brand { font: 800 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.name { margin: 0; font: 600 14px/1.35 var(--body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.foot2 { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: grid; gap: 2px; }
.price .now { font: 800 22px/1 var(--display); letter-spacing: -.03em; }
.price s { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--coin); text-decoration: none; font: 800 15px/1 var(--display);
  border: 2px solid var(--ink); transition: transform .2s var(--spring), box-shadow .2s;
}
.buy svg { width: 17px; height: 17px; transition: transform .25s var(--spring); }
.buy:hover { transform: translateY(-2px); box-shadow: 0 5px 0 -1px var(--coin-rim), 0 5px 0 1px var(--ink); }
.buy:hover svg { transform: translateX(3px); }
.shot { text-decoration: none; }

.deal.out { border-style: dashed; box-shadow: none; }
.deal.out .shot img { filter: grayscale(1); opacity: .55; }
.deal.out .coinbadge { background: var(--bg); box-shadow: none; }
.deal.out .buy { background: var(--bg); color: var(--ink-2); border-color: var(--line-2); }
.stamp {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: 8px 14px;
  border: 3px solid var(--ink); border-radius: 8px; transform: rotate(-12deg); background: rgba(255, 255, 255, .8);
  font: 400 22px/1 var(--marker); letter-spacing: .04em;
}

.soldtoggle { display: block; margin: 22px auto 0; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: var(--bg); font: 700 13.5px/1 var(--body); color: var(--ink-2); }
.soldtoggle:hover { border-color: var(--ink); color: var(--ink); }

.empty { text-align: center; padding: 40px 0 10px; color: var(--muted); font-weight: 600; }
.empty-coin { width: 70px; height: 70px; margin: 0 auto 10px; animation: breathe 3s ease-in-out infinite; }

.fine { margin: 44px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; max-width: 760px; }

.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: 1240px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 36px; font-size: 13px; color: var(--muted); font-weight: 600; }
.foot .by { display: inline-flex; align-items: center; gap: 8px; }
.foot img { height: 22px; }
.foot a { color: var(--ink); font-weight: 800; text-decoration: none; background: linear-gradient(transparent 60%, var(--coin) 60%); }

/* ---------- sheets ---------- */
.sheet { width: min(440px, calc(100vw - 32px)); border: 2px solid var(--ink); border-radius: 26px; padding: 26px; box-shadow: 8px 8px 0 var(--ink); background: var(--bg); color: var(--ink); }
.sheet.wide { width: min(620px, calc(100vw - 32px)); }
.sheet::backdrop { background: rgba(255, 250, 235, .7); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetin .35s var(--spring); }
@keyframes sheetin { from { transform: translateY(18px) scale(.96); opacity: 0; } }
.sheet h3 { margin: 0 0 6px; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; }
.sheet p { margin: 0 0 16px; color: var(--muted); font-weight: 600; font-size: 14px; }
.sheet-coin { width: 54px; height: 54px; margin-bottom: 10px; }
.sheet input, .sheet textarea {
  width: 100%; border: 2px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: var(--paper);
  font-weight: 600; transition: border-color .15s, background .15s;
}
.sheet textarea { font: 500 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; resize: vertical; }
.sheet input:focus, .sheet textarea:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.sheet input.bad { animation: shake .45s; border-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.row2 label { display: grid; gap: 6px; font: 700 12.5px/1.2 var(--body); }
.row2 small { color: var(--muted); font-weight: 600; }
.addlog { margin: 12px 0 0; max-height: 160px; overflow: auto; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .bar { padding: 10px 16px; }
  .mark-coin { width: 32px; height: 32px; }
  .mark-word { font-size: 19px; }
  .pill span { display: none; }
  .pill { width: 40px; padding: 0; justify-content: center; }
  .sheet .pill, .empty .pill { width: auto; padding: 0 16px; }
  .sheet .pill span, .empty .pill span { display: inline; }
  .frow { padding: 8px 8px; gap: 6px; }
  .chips { gap: 6px; }
  .flabel { flex: 0 0 40px; font-size: 8.5px; letter-spacing: .08em; }
  .flabel ~ .flabel { margin-left: 0; }
  #catLine .flabel, .frow.sub .flabel { display: none; }
  .cseg { flex: 1 1 calc(100% - 52px); min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .cseg button { padding: 0; height: 26px; font-size: 11.5px; }
  .cseg button.on { transform: none; }
  .seg { margin-left: 0; }
  .seg button { height: 28px; padding: 0 9px; }
  .soldchip { margin-left: auto; height: 30px; }
  .chip .n { min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; }
  .chip { gap: 6px; padding-right: 9px; }
  .chip.more { padding: 0 12px; border-style: dashed; color: var(--ink-2); }
  .chip { height: 30px; font-size: 12px; }
  .mono, .chip .ic { width: 20px; height: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shot { margin: 6px 6px 0; border-radius: 12px; }
  .coinbadge { height: 28px; font-size: 13px; left: 6px; top: 6px; padding-right: 9px; }
  .coinbadge svg { width: 19px; height: 19px; }
  .pctsticker { width: 40px; height: 40px; right: 6px; top: 6px; }
  .pctsticker b { font-size: 12px; }
  .pctsticker span { font-size: 6px; }
  .body { padding: 10px 10px 12px; gap: 6px; }
  .name { font-size: 13px; }
  .price .now { font-size: 18px; }
  .buy { height: 36px; padding: 0 12px; font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hl::before { transform: rotate(-1.6deg) scaleX(1); }
  .rain { display: none; }
}

/* ---- the board's clock (top bar): ring to the next read + last update ---- */
.clockpill { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.clockpill .ring { position: relative; width: 34px; height: 34px; flex: none; }
.clockpill .ring svg { position: absolute; inset: 0; width: 34px; height: 34px; transform: rotate(-90deg); }
.clockpill .r-bg { fill: none; stroke: var(--line); stroke-width: 3.4; }
.clockpill .r-fg { fill: none; stroke: var(--coin); stroke-width: 3.4; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.clockpill .ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 10.5px/1 var(--display, inherit); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clockpill.soon .r-fg { stroke: var(--ink); }
.clockpill.reading .r-fg { stroke-dasharray: 22 66 !important; stroke-dashoffset: 0 !important; transition: none; animation: ringspin 1s linear infinite; transform-origin: 17px 17px; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.clockpill.stale { border-color: #b4231b; }
@media (max-width: 640px) {
  .clockpill { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .clockpill.reading .r-fg { animation: none; } }
.hardbtn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s, background .2s; }
.hardbtn svg { width: 19px; height: 19px; }
.hardbtn:hover { background: var(--coin); transform: translateY(-1px); }
.hardbtn.busy svg { animation: ringspin 1s linear infinite; }
.hardbtn:disabled { cursor: default; }
@media (max-width: 640px) { .hardbtn { width: 40px; height: 40px; } }
.clockpill .ring { width: 32px; height: 32px; }
.clockpill .ring svg { width: 32px; height: 32px; }
.clockpill .ring b { font-size: 9.5px; }

/* grid paging: count above, "Show more" sentinel below (auto-loads on scroll) */
.gcount { margin: 4px 2px 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gmore { display: block; margin: 22px auto 6px; height: 42px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font: 700 14px/1 var(--body, inherit); cursor: pointer; }
.gmore:hover { background: var(--coin); }
.gmore[hidden] { display: none; }

/* ======================================================================
   Softer palette (user, 4 Nov 2026): no solid-black fills. Selected states
   and buttons use the coin tints + amber rim; % back is a red outline ring.
   ====================================================================== */
:root { --red: #e0452b; --red-soft: rgba(224, 69, 43, .07); --ok: #2f8a4f; }
/* card */
.deal:hover { border-color: var(--coin-rim); }
.coinbadge { border: 1.5px solid var(--coin-rim); box-shadow: none; }
.pctsticker { background: rgba(255, 255, 255, .9); color: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 0 0 3px rgba(255, 255, 255, .9); }
.pctsticker.rep { background: rgba(255, 255, 255, .9); color: var(--red); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); outline: 2px dashed var(--red); outline-offset: -2px; }
.confirmed { border-color: var(--ok); color: var(--ok); }
.buy { background: var(--coin-soft); color: var(--ink); border: 1.5px solid var(--coin-rim); }
.buy:hover { background: var(--coin); box-shadow: 0 4px 10px -4px rgba(224, 161, 0, .55); }
.deal.out .buy { background: var(--bg); border-color: var(--line-2); }
/* filters */
.cseg button.on { background: var(--coin); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--coin-rim); }
.chip:hover:not(:disabled) { border-color: var(--coin-rim); }
.chip.on { border-color: var(--coin-rim); }
.chip.on .mono, .chip.on .ic { box-shadow: inset 0 0 0 1.5px var(--coin-rim); }
.chip.on .n { background: var(--coin); color: var(--ink); }
.tsel:hover, .tsel:focus-within, .tsel.on { border-color: var(--coin-rim); }
.soldchip.on { border-color: var(--coin-rim); }
.soldchip.on .box { border-color: var(--coin-rim); }
/* top bar */
.padlock, .clockpill, .hardbtn { border: 1.5px solid var(--line-2); }
.padlock:hover, .hardbtn:hover { background: var(--coin-soft); border-color: var(--coin-rim); }
.padlock.open { background: var(--coin-soft); border-color: var(--coin-rim); box-shadow: none; }
.clockpill.soon .r-fg { stroke: var(--coin-rim); }
.gmore { border: 1.5px solid var(--line-2); }

/* ---- above the grid: "1–25 of 2,257" · per page 25/50 · tiles/list ---- */
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.gtop .gcount { margin: 0; }
.gtools { display: flex; gap: 8px; }
.mini { display: inline-flex; gap: 1px; padding: 2px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); }
.mini button { min-width: 32px; height: 26px; padding: 0 9px; border: 0; border-radius: 999px; background: none; display: grid; place-items: center;
  font: 800 12px/1 var(--display); color: var(--ink-2); cursor: pointer; }
.mini button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mini button[data-view="tiles"] svg { fill: currentColor; stroke: none; }
.mini button:hover:not(.on) { background: var(--coin-wash); }
.mini button.on { background: var(--coin); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--coin-rim); }

/* ---- pager under the grid ---- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 24px 0 6px; }
.pager[hidden] { display: none; }
.pager button { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg);
  font: 700 13px/1 var(--body); color: var(--ink-2); cursor: pointer; }
.pager button.wide { padding: 0 12px; }
.pager button:hover:not(:disabled):not(.on) { border-color: var(--coin-rim); background: var(--coin-wash); }
.pager button.on { background: var(--coin-soft); border-color: var(--coin-rim); color: var(--ink); font-weight: 800; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 2px; }

/* ---- list view ---- */
.list { display: grid; gap: 6px; }
.lrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 84px 64px 104px 78px; align-items: center; gap: 14px;
  padding: 8px 12px 8px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .15s; }
.lrow:hover { border-color: var(--coin-rim); }
.lpic { width: 56px; height: 56px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.lpic img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.lname { display: grid; gap: 3px; min-width: 0; }
.lname .brand { font-size: 10px; }
.ltitle { font: 600 13.5px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lok { font-style: normal; color: var(--ok); font-weight: 800; }
.lsold { color: var(--red); font-weight: 800; letter-spacing: .06em; }
.lcoins { position: static; height: 28px; font-size: 13px; padding: 0 10px 0 4px; }
.lcoins svg { width: 20px; height: 20px; }
.lpct { display: grid; justify-items: center; color: var(--red); font: 800 14px/1 var(--display); }
.lpct small { font: 700 8.5px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.lpct.none { color: var(--muted); }
.lprice { display: grid; justify-items: end; gap: 2px; }
.lprice b { font: 800 17px/1 var(--display); letter-spacing: -.02em; }
.lprice s { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.lrow .buy { height: 34px; padding: 0 14px; font-size: 13.5px; }
.lrow.out { border-style: dashed; }
.lrow.out .lpic img { filter: grayscale(1); opacity: .55; }
@media (max-width: 640px) {
  .lrow { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "pic name price" "pic coins buy"; gap: 4px 10px; padding: 7px 8px 7px 6px; }
  .lpic { grid-area: pic; width: 48px; height: 48px; }
  .lname { grid-area: name; }
  .lprice { grid-area: price; }
  .lrow .lcoins { grid-area: coins; justify-self: start; height: 24px; font-size: 12px; }
  .lrow .lcoins svg { width: 17px; height: 17px; }
  .lpct { display: none; }
  .lrow .buy { grid-area: buy; height: 28px; padding: 0 10px; font-size: 12.5px; }
  .ltitle { font-size: 12.5px; }
  .pager button { min-width: 30px; height: 30px; }
}
/* list view column headers - click to sort, again to flip (BlinkDeal's table) */
.lhead { display: grid; grid-template-columns: 56px minmax(0, 1fr) 84px 64px 104px 78px; gap: 14px; align-items: center; padding: 0 12px 2px 8px; }
.lh { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 26px; padding: 0 6px; border: 0; border-radius: 8px; background: none;
  font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.lh.left { justify-content: flex-start; }
.lh.right { justify-content: flex-end; }
.lh:hover { background: var(--coin-wash); color: var(--ink); }
.lh.sorted { color: var(--ink); }
.lh .arrow { font-size: 8px; color: var(--coin-rim); }
.lhead .lh[data-col="coins"] { min-width: 72px; }
@media (max-width: 640px) {
  .lhead { grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px; padding: 0 0 4px; }
  .lhead > span { display: none; }
}
@media (min-width: 641px) { .lrow .lcoins { justify-self: center; } }

/* footer: "Affiliate" pill, tap/hover opens the note (BlinkDeal's disclosure) */
.disclosure { position: relative; height: 26px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg);
  font: 700 11.5px/1 var(--body); letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.disclosure:hover, .disclosure.open { border-color: var(--coin-rim); color: var(--ink); }
.disclosure::after { content: attr(aria-label); position: absolute; right: 0; bottom: calc(100% + 8px); width: 250px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); border: 1.5px solid var(--coin-rim); box-shadow: var(--shadow-2); color: var(--ink-2); font: 600 12px/1.45 var(--body);
  letter-spacing: 0; text-align: left; white-space: normal; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.disclosure:hover::after, .disclosure.open::after { opacity: 1; transform: none; }
