/* SLOPMETER: warm paper, heavy type, a chrome dial. Phone first (390x844), desktop from 900px. */
:root {
  --bg: oklch(0.985 0.006 62);
  --bg-2: oklch(0.955 0.03 58);
  --peach: oklch(0.9 0.07 55);
  --card: #ffffff;
  --card-2: oklch(0.975 0.008 62);
  --ink: #1c1916;
  --ink-2: #3b3530;
  --muted: #776f68;
  --line: rgba(28, 25, 22, .08);
  --line-2: rgba(28, 25, 22, .14);
  --accent: #d9844f;
  --accent-ink: #fff;
  --blue: #2f8be6;
  --human: #1f9d6b;
  --mid: #d7a019;
  --slop: #e8702a;
  --pure: #d63a3a;
  --mark: rgba(255, 196, 64, .55);
  --shadow: 0 1px 2px rgba(28, 25, 22, .04), 0 8px 28px rgba(28, 25, 22, .07);
  --shadow-lg: 0 2px 6px rgba(28, 25, 22, .05), 0 24px 60px rgba(28, 25, 22, .12);
  --bezel-a: #f4f1ed; --bezel-b: #c9c2ba;
  --face-a: #ffffff; --face-b: #f1ece6;
  --needle-a: #b8261f; --needle-b: #e2483b;
  --hub-a: #2a2622; --hub-b: #d9d2ca;
  --tick: #3b3530;
  --r: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #12100e; --bg-2: #1a1714; --peach: #3a2618;
  --card: #1c1916; --card-2: #221e1a;
  --ink: #f5efe8; --ink-2: #ddd4ca; --muted: #a39a90;
  --line: rgba(255, 240, 225, .08); --line-2: rgba(255, 240, 225, .15);
  --mark: rgba(255, 176, 46, .38);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
  --bezel-a: #4a4440; --bezel-b: #1e1b18;
  --face-a: #2a2622; --face-b: #171411;
  --hub-a: #0c0b0a; --hub-b: #6b635b;
  --tick: #d6cdc2;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100e; --bg-2: #1a1714; --peach: #3a2618;
    --card: #1c1916; --card-2: #221e1a;
    --ink: #f5efe8; --ink-2: #ddd4ca; --muted: #a39a90;
    --line: rgba(255, 240, 225, .08); --line-2: rgba(255, 240, 225, .15);
    --mark: rgba(255, 176, 46, .38);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .5);
    --bezel-a: #4a4440; --bezel-b: #1e1b18;
    --face-a: #2a2622; --face-b: #171411;
    --hub-a: #0c0b0a; --hub-b: #6b635b;
    --tick: #d6cdc2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: 76px;
}
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
.glow {
  position: fixed; inset: -20vh -20vw auto; height: 90vh; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 50% at 18% 30%, var(--peach), transparent 70%), radial-gradient(35% 45% at 85% 20%, color-mix(in oklab, var(--blue) 18%, transparent), transparent 70%);
  opacity: .55; filter: blur(10px);
}
main, .foot { position: relative; z-index: 1; }

/* ---------- nav: floating glass pill ---------- */
.nav {
  position: sticky; top: 10px; z-index: 20; margin: 10px 12px 0; height: 56px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 10px;
  background: color-mix(in oklab, var(--card) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), #7cc4ff 45%, #f3a35f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 2px 8px rgba(47,139,230,.3); }
.brand-ico svg { width: 22px; height: 22px; }
.links { display: none; gap: 4px; margin-left: 12px; }
.links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); }
.links a:hover { background: var(--line); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.on { color: var(--accent); }
.btn-buy { height: 44px; padding: 0 18px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; font-size: 15px; box-shadow: 0 6px 16px color-mix(in oklab, var(--accent) 35%, transparent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 18px 0 8px; text-align: center; }
.reel {
  position: relative; height: 226px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; justify-content: center;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, #000 42%, transparent 92%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, #000 42%, transparent 92%);
}
.row { display: flex; gap: 10px; width: max-content; will-change: transform; }
.row[data-dir="l"] { animation: drift-l 80s linear infinite; }
.row[data-dir="r"] { animation: drift-r 95s linear infinite; margin-left: -60px; }
@keyframes drift-l { to { transform: translate3d(-50%, 0, 0); } }
@keyframes drift-r { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.tile { position: relative; width: 96px; height: 104px; border-radius: 16px; overflow: hidden; flex: none; background: var(--card-2); box-shadow: var(--shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .sticker {
  position: absolute; right: 6px; bottom: 6px; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 8px;
  font: 800 12px/22px Inter, sans-serif; color: #fff; text-align: center; transform: rotate(-6deg) scale(0); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1);
}
.tile .sticker.in { transform: rotate(-6deg) scale(1); }
.hero-copy { position: relative; margin-top: -78px; padding: 0 16px; }
.script {
  font: 400 68px/1 Pacifico, cursive; position: relative; letter-spacing: -.01em; display: inline-flex; align-items: baseline;
  background: linear-gradient(100deg, #2f8be6 0%, #5cb2f5 38%, #f0a35b 70%, #e9774a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 6px 10px;
}
.script-wrap { position: relative; display: inline-block; }
.script.halo { position: absolute; left: 0; top: 0; background: none; color: var(--bg); -webkit-text-stroke: 16px var(--bg); filter: drop-shadow(0 10px 22px rgba(28, 25, 22, .12)); }
.script.ink { position: relative; }
/* the wobbling "o" is its own layer, and some phone browsers (Samsung Internet) do not paint the word's gradient through
   it: a solid fill matching the gradient at its position keeps it from going transparent */
.script .o { display: inline-block; animation: wobble 3.6s ease-in-out infinite; transform-origin: 50% 70%; color: #50a8f1; -webkit-text-fill-color: #50a8f1; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg) translateY(-1px); } }
h1 { position: relative; z-index: 1; margin: 10px 0 12px; font-size: clamp(32px, 9vw, 64px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; }
.sub { margin: 0 auto 20px; max-width: 620px; color: var(--muted); font-size: 17px; }
.btn-main { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-lg); }
.btn-main svg { width: 20px; height: 20px; }
.chips { margin: 20px auto 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chips i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }

/* ---------- stage ---------- */
.stage { max-width: 1200px; margin: 28px auto 0; padding: 0 16px; display: grid; gap: 16px; scroll-margin-top: 80px; }
.scanner, .panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.scanner { position: relative; padding: 14px; overflow: hidden; align-self: start; }
.scanner.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20% { transform: translate(-3px, 1px) rotate(-.3deg); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 0) rotate(.2deg); } 80% { transform: translate(1px, 1px); } }
.scan-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 4px 12px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pure); box-shadow: 0 0 0 0 rgba(214, 58, 58, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(214, 58, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 58, 58, 0); } }
.scan-no { color: var(--ink); font-variant-numeric: tabular-nums; }
.preview-chip { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--accent) 14%, transparent); color: color-mix(in oklab, var(--accent) 80%, var(--ink)); letter-spacing: .02em; text-transform: none; font-weight: 600; }
.scan-body { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.scan-body > *, .stage > *, .side > * { min-width: 0; }

.subject { display: flex; gap: 14px; align-items: center; }
.frame { position: relative; width: 116px; height: 116px; flex: none; border-radius: 18px; overflow: hidden; background: var(--card-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s cubic-bezier(.2, .9, .3, 1); }
.frame.swap img { opacity: 0; transform: scale(1.12); }
.laser { position: absolute; left: -10%; right: -10%; height: 3px; top: -6%; opacity: 0; background: linear-gradient(90deg, transparent, #7cf, #fff, #7cf, transparent); box-shadow: 0 0 14px 4px rgba(90, 190, 255, .7); }
.frame.scanning .laser { animation: laser 1.25s cubic-bezier(.45, .05, .55, .95) 1; }
@keyframes laser { 0% { top: -6%; opacity: 0; } 8% { opacity: 1; } 50% { top: 100%; } 92% { opacity: 1; } 100% { top: -6%; opacity: 0; } }
.frame.scanning::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(90, 190, 255, .16), transparent 40%); animation: fadeio 1.25s 1; pointer-events: none; }
@keyframes fadeio { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
.corner { position: absolute; width: 16px; height: 16px; border: 3px solid #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.corner.tl { left: 7px; top: 7px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { right: 7px; top: 7px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { left: 7px; bottom: 7px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { right: 7px; bottom: 7px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.caught { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 6px; border-radius: 9px; background: var(--pure); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: center; transform: translateY(140%); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.caught.in { transform: none; }
.who { min-width: 0; }
.tk { font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.nm { color: var(--ink-2); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { margin-top: 6px; color: var(--muted); font-size: 14px; display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.meta a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* the dial */
.gauge { position: relative; margin: 0 auto; width: 100%; max-width: 380px; }
.dial { width: 100%; height: auto; display: block; }
.dial .glass { fill: rgba(255, 255, 255, .28); }
:root[data-theme="dark"] .dial .glass { fill: rgba(255, 255, 255, .05); }
.dial text { font: 700 11px Inter, sans-serif; fill: var(--tick); }
.readout { margin-top: 2px; text-align: center; display: flex; justify-content: center; align-items: baseline; gap: 4px; }
.num { font-size: 46px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.unit { font-size: 13px; font-weight: 700; color: var(--muted); }
.conf { text-align: center; color: var(--muted); font-size: 13px; margin-top: -2px; font-variant-numeric: tabular-nums; }
.stamp { position: absolute; left: 50%; top: 14%; z-index: 2; transform: translate(-50%, 0) rotate(-9deg) scale(2.6); opacity: 0; pointer-events: none; }
.stamp span {
  display: block; white-space: nowrap; padding: 6px 14px 5px; border: 4px solid currentColor; border-radius: 10px;
  font: 900 26px/1 Inter, sans-serif; letter-spacing: .02em; color: var(--c, var(--pure));
  background: color-mix(in oklab, var(--card) 70%, transparent);
  -webkit-mask: radial-gradient(circle at 20% 30%, #000 60%, rgba(0,0,0,.82) 61%), radial-gradient(circle at 80% 70%, #000 65%, rgba(0,0,0,.85) 66%);
  -webkit-mask-composite: source-in;
}
.stamp.in { animation: stamp .5s cubic-bezier(.3, 1.5, .5, 1) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, 0) rotate(-16deg) scale(2.6); } 60% { opacity: 1; transform: translate(-50%, 0) rotate(-8deg) scale(.94); } 100% { opacity: 1; transform: translate(-50%, 0) rotate(-9deg) scale(1); } }
.stamp.out { opacity: 0; transition: opacity .3s; }

/* report */
.report { display: grid; gap: 8px; align-content: start; }
.layer {
  display: grid; grid-template-columns: 34px 1fr auto; grid-template-areas: "ico name val" "ico bar bar" "ico find find"; column-gap: 10px; row-gap: 4px;
  padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); transition: opacity .3s, border-color .3s;
}
.layer.dim { opacity: .45; }
.layer.hot { border-color: color-mix(in oklab, var(--c, var(--line)) 55%, transparent); }
.l-ico { grid-area: ico; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.l-ico svg { width: 18px; height: 18px; }
.l-name { grid-area: name; font-weight: 700; font-size: 15px; }
.l-val { grid-area: val; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c, var(--muted)); }
.l-bar { grid-area: bar; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.l-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--c, var(--muted)); transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.l-find { grid-area: find; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.l-find b { color: var(--ink); }
.desc { margin: 4px 0 0; padding: 12px 14px; border-left: 3px solid var(--line-2); background: transparent; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-height: 9.6em; overflow: hidden; position: relative; }
.desc:empty { display: none; }
.desc mark { background: linear-gradient(transparent 0, transparent 100%); color: inherit; border-radius: 3px; padding: 0 1px; transition: background-size .35s ease; background-image: linear-gradient(var(--mark), var(--mark)); background-repeat: no-repeat; background-size: 0% 82%; background-position: 0 60%; }
.desc mark.on { background-size: 100% 82%; }
.reason { margin: 8px auto 0; max-width: 340px; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-2); min-height: 2.8em; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.reason.in { opacity: 1; transform: none; }
.site-q::before { content: 'From the site'; display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.f-r { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.unchecked { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.unchecked:empty { display: none; }

/* side */
.side { display: grid; gap: 16px; align-content: start; }
.panel { padding: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 8px; }
.panel h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.muted { color: var(--muted); font-size: 13px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; animation: slidein .5s cubic-bezier(.2, .9, .3, 1); }
.feed li:nth-child(odd) { background: var(--card-2); }
.feed li:nth-child(n+7) { display: none; }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } }
.feed img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--card-2); }
.f-tk { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-v { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--c); }
.pill { min-width: 46px; height: 30px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; background: var(--c); }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.award { padding: 6px; }
.aw-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aw-v { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-weight: 800; min-height: 40px; }
.aw-v img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.aw-v small { display: block; font-size: 12px; font-weight: 700; color: var(--c); }

/* index strip */
.index { max-width: 1200px; margin: 28px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 16px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.3; display: block; }

/* how */
.how { max-width: 1200px; margin: 64px auto 0; padding: 0 16px; scroll-margin-top: 80px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.how h2 { margin: 8px 0 10px; font-size: clamp(28px, 7vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; }
.lede { margin: 0 0 22px; color: var(--muted); max-width: 680px; font-size: 17px; }
.how-grid { display: grid; gap: 12px; }
.how-card { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.how-card h3 { margin: 10px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.how-card p { margin: 0; color: var(--muted); font-size: 15px; }
.h-ico { width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; color: #fff; vertical-align: middle; }
.h-ico svg { width: 22px; height: 22px; }
.h-ico.green { background: #2f8f5b; } .h-ico.blue { background: var(--blue); } .h-ico.orange { background: var(--accent); } .h-ico.violet { background: #7a5af0; } .h-ico.ink { background: var(--ink); color: var(--bg); }
.tag { margin-left: 10px; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-2); }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--muted); max-width: 760px; }

.foot { max-width: 1200px; margin: 48px auto 0; padding: 24px 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--ink-2); }

/* CA bar */
.cabar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; height: 58px;
  display: flex; align-items: center; gap: 8px; padding: 0 7px 0 14px; border-radius: 18px;
  background: rgba(26, 23, 20, .93); color: #f5efe8; border: 1px solid rgba(255, 240, 225, .08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.ca-tk { font-weight: 900; letter-spacing: -.01em; }
.ca-addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .7; }
.ca-btn { height: 44px; min-width: 64px; padding: 0 14px; border-radius: 12px; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.ca-btn.buy { background: var(--accent); color: #fff; }
.ca-btn[disabled], .ca-btn[aria-disabled="true"] { opacity: .45; cursor: default; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 90px; }
  .nav { max-width: 1200px; margin: 14px auto 0; height: 62px; padding: 0 10px 0 12px; }
  .links { display: flex; }
  .reel { height: 340px; gap: 14px; }
  .tile { width: 150px; height: 160px; border-radius: 22px; }
  .hero-copy { margin-top: -120px; }
  .script { font-size: 112px; }
  .sub { font-size: 19px; }
  .stage { margin-top: 44px; }
  .scanner { padding: 20px; }
  .frame { width: 132px; height: 132px; }
  .tk { font-size: 36px; }
  .gauge { margin-top: 12px; }
  .num { font-size: 54px; }
  .how-grid { grid-template-columns: repeat(6, 1fr); }
  .how-card { grid-column: span 2; }
  .how-card:nth-child(4), .how-card:nth-child(5) { grid-column: span 3; }
  .cabar { left: 50%; right: auto; width: min(720px, calc(100% - 32px)); transform: translateX(-50%); bottom: 16px; }
  .stat b { font-size: 40px; }
  .stat span { font-size: 14px; }
}

@media (min-width: 760px) {
  .scan-body { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; }
  .side { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) 340px; }
  .side { grid-template-columns: 1fr; }
}


/* ---------- self-scan ---------- */
.scanner.self-on { box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue) 55%, transparent), var(--shadow-lg); }
.scanner.self-on .scan-title { color: var(--blue); }

/* ---------- Slop Census overlay ---------- */
.scanner.census-on .scan-body { display: none; }
.census { position: relative; display: flex; flex-direction: column; gap: 12px; animation: fadein .4s ease; }
.census[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.c-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.c-head h3 { margin: 4px 0 0; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; }
.c-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.c-grid .c-s { font-size: 9px; }
.c-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card-2); opacity: .25; transform: scale(.92); transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s; }
.c-tile img { width: 100%; height: 100%; object-fit: cover; }
.c-tile.in { opacity: 1; transform: none; }
.c-s { position: absolute; left: 0; right: 0; top: 0; padding: 3px 5px; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(rgba(0,0,0,.55), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-tile .sticker { position: absolute; right: 5px; bottom: 5px; min-width: 28px; height: 22px; padding: 0 5px; border-radius: 8px; font: 800 12px/22px Inter, sans-serif; color: #fff; text-align: center; background: var(--c); transform: rotate(-6deg) scale(0); transition: transform .45s cubic-bezier(.2, 1.6, .4, 1); }
.c-tile.in .sticker { transform: rotate(-6deg) scale(1); }
.c-tile.crown { box-shadow: 0 0 0 3px var(--pure), 0 8px 20px rgba(214, 58, 58, .35); transform: scale(1.06); z-index: 1; }
.c-tile.seal { box-shadow: 0 0 0 3px var(--human), 0 8px 20px rgba(31, 157, 107, .3); transform: scale(1.06); z-index: 1; }
.c-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.c-rate { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.c-rate b { font-size: 40px; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.c-rate span { color: var(--muted); font-weight: 600; }
.c-aw { padding: 10px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.c-aw.in { opacity: 1; transform: none; }
.c-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-v { margin-top: 6px; display: flex; gap: 8px; align-items: center; min-height: 40px; }
.c-v img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.c-v small { display: block; font-size: 12px; font-weight: 800; color: var(--c); }

/* ---------- Bag Check ---------- */
.bags { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bag-empty { color: var(--muted); font-size: 14px; padding: 4px 4px 6px; }
.bagc { padding: 10px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); animation: slidein .45s cubic-bezier(.2, .9, .3, 1); }
.bagc.quiet { animation: none; }
.bagc.done { border-color: color-mix(in oklab, var(--c) 40%, var(--line)); }
.bagc:nth-child(n+5) { display: none; }
.b-top { display: flex; align-items: center; gap: 8px; }
.b-w { font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.b-sol { color: var(--muted); font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bagc .pill { background: var(--c, var(--muted)); min-width: 54px; }
.pill.wait { background: var(--line-2); color: var(--muted); }
.bagc.pending .b-line { background: linear-gradient(90deg, var(--muted) 30%, var(--ink) 50%, var(--muted) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.b-coins { display: flex; gap: 6px; margin-top: 8px; }
.b-coin { position: relative; width: 44px; height: 44px; border-radius: 11px; overflow: hidden; background: var(--card); animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * 110ms); }
.bagc.quiet .b-coin { animation: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.b-coin img { width: 100%; height: 100%; object-fit: cover; }
.b-coin.thin img { filter: grayscale(1); opacity: .6; }
.b-coin .sticker { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; height: 16px; border-radius: 5px; font: 800 10px/16px Inter, sans-serif; color: #fff; background: var(--c); }
.b-line { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.b-line b { color: var(--ink); }

/* ---------- self panel ---------- */
.self-panel { border-color: color-mix(in oklab, var(--blue) 40%, var(--line)); }
.self-v { display: flex; gap: 12px; align-items: flex-start; padding: 0 4px 4px; }
.self-v img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.self-v b { font-size: 20px; font-weight: 900; margin-right: 8px; }
.self-v .pill { display: inline-grid; vertical-align: 3px; background: var(--c); }
.self-v p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.self-v p b { font-size: inherit; color: var(--ink); margin: 0; }
.census-note { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.census-note:empty { display: none; }
.census-note b { color: var(--ink); }

@media (min-width: 760px) {
  .c-grid { grid-template-columns: repeat(10, 1fr); }
  .c-bottom { grid-template-columns: auto 1fr 1fr; align-items: end; }
  .c-rate { grid-column: auto; flex-direction: column; gap: 2px; padding-right: 10px; }
  .c-rate b { font-size: 56px; }
}


/* ---------- Check any coin ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.check { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.check input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.check input::placeholder { font-family: Inter, sans-serif; color: var(--muted); }
.check:focus-within { border-color: color-mix(in oklab, var(--blue) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 18%, transparent), var(--shadow-lg); }
.check .btn-main { flex: none; height: 52px; padding: 0 18px; box-shadow: none; border: 0; cursor: pointer; }
.check-msg { min-height: 20px; margin: 10px auto 0; font-size: 14px; color: var(--muted); }
.check-msg.err { color: var(--pure); font-weight: 600; }
.watch-link { display: block; width: max-content; margin: 2px auto 0; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px; }
.scanner.mine-on { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 60%, transparent), var(--shadow-lg); }
.scanner.mine-on .scan-title { color: color-mix(in oklab, var(--accent) 85%, var(--ink)); }
.frame.waiting .laser { animation: laser 1.25s cubic-bezier(.45, .05, .55, .95) infinite; }
.mine-bar { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; animation: fadein .4s ease; }
.mine-bar[hidden] { display: none; }
.mine-q { margin: 0; font-size: 14px; color: var(--muted); }
.mine-q b { color: var(--ink); }
.mine-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mine-btn { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; display: inline-grid; place-items: center; text-decoration: none; cursor: pointer; }
.mine-btn.x { background: var(--ink); color: var(--bg); border-color: transparent; }
.mine-btn.live { margin-left: auto; }
@media (max-width: 759px) {
  .check .btn-main { padding: 0 14px; }
  .check .btn-main svg { display: none; }
  .mine-btn { flex: 1; }
  .mine-btn.live { margin-left: 0; flex-basis: 100%; }
}

/* ---------- Bag Check on stage ---------- */
.scanner.bag-on .scan-body { display: none; }
.bagstage { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 18px 4px 10px; animation: fadein .35s ease; }
.bagstage[hidden] { display: none; }
.bs-who { display: grid; gap: 4px; }
.bs-w { font: 800 30px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.02em; }
.bs-sol { color: var(--muted); font-weight: 600; }
.bs-coins { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bs-coins .b-coin { width: 74px; height: 74px; border-radius: 16px; }
.bs-coins .b-coin .sticker { height: 22px; font-size: 13px; line-height: 22px; padding: 0 6px; border-radius: 7px; right: 4px; bottom: 4px; }
.bs-score { display: flex; align-items: baseline; gap: 12px; }
.bs-score b { font-size: 64px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--c); }
.bs-score span { font-weight: 900; font-size: 18px; letter-spacing: .04em; color: var(--c); border: 3px solid var(--c); border-radius: 10px; padding: 4px 10px; transform: rotate(-6deg); }
.bs-line { margin: 0; color: var(--ink-2); font-weight: 600; max-width: 460px; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.boards[hidden] { display: none; }
.board ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.board li { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 4px 6px; border-radius: 8px; background: var(--card-2); }
.board li b { color: var(--c); font-variant-numeric: tabular-nums; }
.board code { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Fable pass: live chips, links, caught, phone fixes ---------- */
.now-chip { display: flex; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: max-content; max-width: calc(100% - 32px); margin: 10px auto 0; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.now-chip[hidden] { display: none; }
.now-chip b { color: var(--c); }
.now-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pure); animation: pulse 1.6s infinite; flex: none; }
.chips b { color: var(--slop); }
.paste-btn { flex: none; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font-weight: 700; cursor: pointer; }
.paste-btn[hidden] { display: none; }
.next-chip { padding: 4px 10px; border-radius: 999px; background: color-mix(in oklab, var(--blue) 14%, transparent); color: color-mix(in oklab, var(--blue) 80%, var(--ink)); letter-spacing: .02em; text-transform: none; font-weight: 700; }
.next-chip[hidden] { display: none; }
.sound-toast { display: block; margin: 8px auto 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); animation: fadein .4s ease; }
.sound-toast[hidden] { display: none; }
.tap { cursor: pointer; }
.feed li.tap:active, .c-tile.tap:active, .b-coin.tap:active, .hall-list li:active { transform: scale(.97); }
.tile .sticker { font-size: 14px; height: 24px; line-height: 24px; min-width: 32px; box-shadow: 0 0 0 2px #fff; }
.scanner.flash::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(214, 58, 58, .22); pointer-events: none; animation: flash .9s ease-out 2; z-index: 4; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.hall-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hall-list li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--card-2); }
.hall-list img { width: 100%; height: 100%; object-fit: cover; }
.hall-list span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; font-size: 10px; font-weight: 800; color: #fff; background: var(--pure); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall[hidden] { display: none; }
.spark { grid-column: 1 / -1; display: grid; gap: 4px; color: var(--slop); padding: 6px 4px 0; }
.spark[hidden] { display: none; }
.spark svg { width: 100%; height: 48px; }
.spark span { font-size: 12px; color: var(--muted); text-align: center; }
.index { margin-top: 24px; }
.stamp.in { animation-name: stamp; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, 0) rotate(-16deg) scale(calc(2.6 * var(--ss, 1))); } 60% { opacity: 1; transform: translate(-50%, 0) rotate(-8deg) scale(calc(.94 * var(--ss, 1))); } 100% { opacity: 1; transform: translate(-50%, 0) rotate(-9deg) scale(var(--ss, 1)); } }
@media (max-width: 759px) {
  .reel { height: 164px; gap: 8px; }
  .tile { width: 70px; height: 76px; border-radius: 13px; }
  .tile .sticker { font-size: 12px; height: 20px; line-height: 20px; min-width: 26px; }
  .hero-copy { margin-top: -52px; }
  .stamp { top: 10%; --ss: .74; }
  .chips { flex-wrap: wrap; justify-content: center; white-space: nowrap; font-size: 11px; padding: 8px 14px; gap: 8px; }
  .now-chip { font-size: 13px; }
  .c-grid .c-s { display: none; }
  .check { flex-wrap: nowrap; }
  .paste-btn { padding: 0 10px; }
}

/* ---------- stream mode (?stream=1, the pump.fun livestream): the scanner only, big type ---------- */
.stream .nav, .stream .hero, .stream .mine-bar, .stream .how, .stream .foot, .stream .index, .stream .side { display: none; }
.stream { padding-bottom: 130px; }
.stream .stage { margin-top: 12px; max-width: 1000px; grid-template-columns: 1fr; }
.stream .tk { font-size: 48px; }
.stream .stamp span { font-size: 36px; }
.stream .reason { font-size: 19px; max-width: 460px; }
.stream .desc { font-size: 17px; }
.stream-strip { display: none; }
.stream .stream-strip { display: flex; position: fixed; left: 10px; right: 10px; bottom: 76px; z-index: 29; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.ss-rate { font-weight: 900; white-space: nowrap; }
.ss-chips { display: flex; gap: 6px; overflow: hidden; }
.ss-chips span { white-space: nowrap; padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #fff; background: var(--c); }
@media (min-width: 900px) { .stream .stream-strip { left: 50%; right: auto; width: min(720px, calc(100% - 32px)); transform: translateX(-50%); bottom: 82px; } }

@media (prefers-reduced-motion: reduce) {
  .row { animation: none !important; }
  .script .o, .live-dot { animation: none; }
}
@media (max-width: 899px) {
  .glow { opacity: .4; filter: none; }
}
@media (max-width: 759px) {
  .script { font-size: 60px; }
  .frame { width: 96px; height: 96px; border-radius: 16px; }
  .tk { font-size: 28px; }
  .gauge { max-width: 300px; }
  .num { font-size: 42px; }
  .preview-chip { font-size: 11px; padding: 3px 8px; }
  .scan-head { gap: 6px; }
  .layer { padding: 8px 10px; grid-template-columns: 30px 1fr auto; column-gap: 9px; }
  .l-ico { width: 30px; height: 30px; border-radius: 9px; }
  .l-name { font-size: 14px; }
  .stamp span { font-size: 22px; }
}
