/* =====================================================================================
   $KOTIK shared stylesheet: tokens + base + every reusable component. One file for all pages.
   v2 (approved 2026-10-05): Yana's photo is the brand, palette P1 = cream paper + chocolate ink
   + raspberry action + paw pink. v1 "mint" roles -> paw pink, v1 "ginger" roles -> caramel.
   Spec: docs/design/DESIGN.md (v2 OVERRIDES block first).
   Fonts (put in every <head>):
   https://fonts.googleapis.com/css2?family=Fredoka:wght@400..700&family=JetBrains+Mono:wght@500;700&family=Lilita+One&display=swap
   Map: 1 tokens · 2 base · 3 layout/bands · 4 surfaces · 5 buttons · 6 CA chip · 7 header/nav ·
   8 hero polaroid · 9 stats/odometer · 10 milestones · 11 pills/chips · 12 wallets · 13 receipt ·
   14 stream · 15 how-it-works · 16 split/tokenomics/kv · 17 team · 18 FAQ · 19 footer · 20 toast ·
   21 misc (bubble, empty, skeleton, segmented, input, mascot decor, snap rows)
   ===================================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: only light;

  /* surfaces */
  --bg: #FFF5E4;        /* page canvas, cream paper. Never pure white */
  --bg-2: #FDEAC7;      /* recessed bands */
  --surface: #FFFCF6;   /* cards, tables, polaroid frames */
  --surface-2: #FFF8EC; /* receipt paper, hover rows */
  --hairline: #EAD8BC;  /* paper-tier borders */
  --track: #F3E3CB;     /* progress tracks, skeletons, disabled fills */

  /* ink (chocolate, never #000) */
  --ink: #2D231A;            /* text, outlines, hard shadows. 14.2:1 on --bg */
  --ink-2: #6B5444;          /* secondary text. 6.5 on --bg, 4.9 on --paw. FAILS on --caramel-fill */
  --ink-2-on-color: #4F3B2C; /* secondary text inside colored cells (scoped override in §3) */
  --ink-3: #76604F;          /* disabled, placeholders. 5.5 on --bg */
  --on-ink: #FFF5E4;         /* text on ink surfaces */
  --black: #1E1A1A;          /* fluffy-glove black: badges, sparingly */

  /* raspberry: THE action color */
  --rasp: #CC3354;      /* primary buttons, LIVE. #fff on it 5.0:1; as text on --bg 4.7:1 */
  --rasp-deep: #A6284A;
  --rasp-ink: #B5345A;  /* links on light surfaces, 5.4:1 */
  --rasp-soft: #FFDDE3;
  --rasp-bowl: #E2425E; /* decorative only */

  /* paw pink: cats, food, Bowl wallets, on-chain proof (was mint) */
  --paw: #F9CCD6;       /* fills. --ink 10.7:1, --ink-2 4.9:1 */
  --paw-deep: #E79AAE;  /* decorative strokes */
  --paw-ink: #9E3A55;   /* pink TEXT: 6.1 on --bg, 5.6 on --paw-soft, 4.6 on --paw */
  --paw-soft: #FDE9EE;

  /* caramel (from her hair): brand + Team wallets (was ginger) */
  --caramel: #B9773F;      /* decorative: dots, bar fills, strokes. Not for small text (3.4:1) */
  --caramel-fill: #E2AC74; /* cells/chips with --ink text (7.6:1) */
  --caramel-ink: #8F5524;  /* caramel TEXT: 5.6 on --bg, 4.95 on --caramel-soft */
  --caramel-soft: #FBE6CC;
  --kibble: #955A2C;

  /* semantic */
  --bowl: var(--paw);
  --team: var(--caramel-fill);
  --success: var(--paw-ink);     --success-bg: var(--paw-soft);
  --warning: var(--caramel-ink); --warning-bg: var(--caramel-soft);
  --danger: #B42318;             --danger-bg: #FEE4E2;  /* rule breaks ONLY */
  --live: var(--rasp);
  --focus: var(--ink);

  /* type */
  --font-display: "Lilita One", "Fredoka", ui-rounded, system-ui, sans-serif; /* one weight: never bold it */
  --font-ui: "Fredoka", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-hero: clamp(2.75rem, 1.654rem + 4.494vw, 5.25rem);   /* 44 -> 84 */
  --fs-h2: clamp(1.875rem, 1.272rem + 2.472vw, 3.25rem);    /* 30 -> 52 */
  --fs-h3: clamp(1.375rem, 1.211rem + 0.674vw, 1.75rem);    /* 22 -> 28 */
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem); /* 17 -> 19 */
  --fs-body: 1.0625rem;  /* 17 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-cap: 0.8125rem;   /* 13, the floor */
  --fs-mono: 0.875rem;
  --fs-counter: clamp(3.5rem, 1.528rem + 8.09vw, 8rem);
  --fs-stat: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);           /* 32 -> 44, stat cards */
  --lh-display: 1; --lh-head: 1.15; --lh-body: 1.55;
  --ls-display: 0.005em; --ls-head: -0.01em; --ls-cap: 0.08em;

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 120px;
  --gutter: clamp(1rem, 0.5625rem + 1.8vw, 2rem);      /* 16 -> 32 */
  --section-y: clamp(3.5rem, 2.3rem + 5vw, 6.5rem);    /* 56 -> 104 */
  --card-pad: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
  --container: 1200px; --container-wide: 1240px; --measure: 68ch; --widget: 520px;

  /* shape */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 40px; --r-pill: 999px;
  --r-btn: 16px;  /* approved mock: rounded-rect buttons, not pills */
  --r-chip: 14px; /* CA chip */
  --bw: 2.5px; --bw-2: 2px; --bw-1: 1px;
  --border: var(--bw) solid var(--ink);
  --border-thin: var(--bw-2) solid var(--ink);
  --border-paper: var(--bw-1) solid var(--hairline);

  /* elevation: hard shadows, no blur (except --sh-soft) */
  --sh-sticker: 4px 4px 0 var(--ink);
  --sh-sticker-lg: 6px 6px 0 var(--ink);
  --sh-press: 0 4px 0 var(--ink);
  --sh-press-sm: 0 3px 0 var(--ink);
  --sh-paper: inset 0 0 0 1px var(--hairline);
  --sh-soft: 0 12px 32px rgba(45, 35, 26, .16);
  --sh-png: drop-shadow(3px 3px 0 var(--ink));

  /* motion */
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  --t-press: 80ms; --t-hover: 160ms; --t-enter: 320ms; --t-roll: 700ms; --t-bob: 3.2s;

  /* layers / chrome */
  --z-header: 40; --z-bar: 50; --z-sheet: 70; --z-toast: 80;
  --header-h: 64px;
}
/* Breakpoints (mobile-first): 640px sm · 760px hero split · 960px md · 1200px lg */

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

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-ui);
  font-synthesis: none; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, .display { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-display); letter-spacing: var(--ls-display); text-wrap: balance; margin: 0; }
h3, h4 { font-family: var(--font-ui); font-weight: 600; line-height: var(--lh-head); letter-spacing: var(--ls-head); text-wrap: balance; margin: 0; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0; text-wrap: pretty; max-width: var(--measure); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--rasp-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--paw); }
::selection { background: var(--paw); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-mono); font-variant-numeric: tabular-nums slashed-zero; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; color: var(--on-ink); }
.i { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -0.2em; }  /* inline SVG from common.js icon() */
.i--sm { width: 16px; height: 16px; }

/* ---------- 3. Layout + bands ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 26px 20px; }
.band--cream { background: var(--bg); }
.band--cream-2 { background: var(--bg-2); }
.band--paw { background: var(--paw); border-block: var(--border); }
.band--caramel { background: var(--caramel-fill); border-block: var(--border); }
.band--rasp { background: var(--rasp); color: #fff; }
.on-ink { background: var(--ink); color: var(--on-ink); }
/* --ink-2 fails on caramel fills: swap it inside every colored container */
.band--caramel, .cell--caramel, .chip--team, .band--paw, .cell--paw, .loop { --ink-2: var(--ink-2-on-color); }

.eyebrow { font: 400 var(--fs-cap)/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--rasp); }
.eyebrow--ink { color: var(--ink-2); font-family: var(--font-ui); font-weight: 600; letter-spacing: var(--ls-cap); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.sec-head { display: grid; gap: var(--s-3); justify-items: center; text-align: center; margin-bottom: var(--s-8); }
.sec-head p { margin-inline: auto; }
.sec-head--left { justify-items: start; text-align: left; }
.sec-head--left p { margin-inline: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; justify-content: center; margin-top: var(--s-7); }
.stack { display: grid; gap: var(--s-4); }

/* ---------- 4. Surface tiers: STICKER (.card) > FRAME > PAPER. Never nest a card in a card ---------- */
.card { background: var(--surface); border: var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sticker); padding: var(--card-pad); }
.card--lg { border-radius: var(--r-xl); box-shadow: var(--sh-sticker-lg); }
.frame { background: var(--surface); border: var(--border); border-radius: var(--r-lg); }
.paper { background: var(--surface); box-shadow: var(--sh-paper); border-radius: var(--r-md); }
@media (hover: hover) and (pointer: fine) {
  a.card, .card--lift { transition: translate var(--t-hover) var(--ease-std), box-shadow var(--t-hover) var(--ease-std); }
  a.card:hover, .card--lift:hover { translate: -2px -2px; box-shadow: var(--sh-sticker-lg); }
}

/* ---------- 5. Buttons: .btn + --primary (raspberry, one per view) | --secondary (paw) | --neutral | --dark | --ghost ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 700 1.0625rem/1.1 var(--font-ui); letter-spacing: .005em; white-space: nowrap; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg);
  border: var(--border); border-radius: var(--r-btn); box-shadow: var(--sh-press);
  cursor: pointer; user-select: none; touch-action: manipulation; text-decoration: none;
  transition: translate var(--t-press) var(--ease-std), box-shadow var(--t-press) var(--ease-std), background-color var(--t-hover);
}
.btn .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { translate: 0 -1px; box-shadow: 0 5px 0 var(--ink); color: var(--btn-fg); } }
.btn:active { translate: 0 4px; box-shadow: 0 0 0 var(--ink); }
.btn--primary { --btn-bg: var(--rasp); --btn-fg: #fff; }
.btn--secondary { --btn-bg: var(--paw); --btn-fg: var(--ink); }
.btn--neutral { --btn-bg: var(--surface); --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--black); --btn-fg: #fff; }
.btn--ghost { background: none; border-color: transparent; box-shadow: none; min-height: 44px; padding: 0 6px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn--ghost:active { translate: none; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.1875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--track); --btn-fg: var(--ink-3); border-color: var(--ink-3); border-style: dashed; box-shadow: none; cursor: not-allowed; translate: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. CA chip (copyChip()/caChip()). Pre-launch: .ca--prelaunch dashed note. Full address when the chip has >= 520px ---------- */
.ca-wrap { container-type: inline-size; min-width: 260px; max-width: 100%; } /* inline-size containment: needs a real width (never an auto-sized track without this min) */
.ca {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 52px; padding: 5px 5px 5px 6px;
  background: var(--surface); color: var(--ink); border: var(--border); border-radius: var(--r-chip); box-shadow: var(--sh-press-sm);
  font: inherit; cursor: pointer; text-align: left;
  transition: translate var(--t-press) var(--ease-std), box-shadow var(--t-press), background-color var(--t-hover);
}
.ca:active { translate: 0 3px; box-shadow: 0 0 0 var(--ink); }
.ca__tag { font: 400 15px/1 var(--font-display); letter-spacing: .04em; background: var(--ink); color: var(--on-ink); padding: 9px 11px; border-radius: 10px; flex: none; }
.ca__addr { font: 700 15px/1.2 var(--font-mono); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.ca__full { display: none; }
@container (min-width: 520px) { .ca__full { display: inline; } .ca__short { display: none; } }
.ca__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paw); border: var(--border-thin); flex: none; }
.ca__icon .i { width: 18px; height: 18px; }
.ca.is-copied { background: var(--paw-soft); }
.ca--prelaunch { cursor: default; border-style: dashed; box-shadow: none; background: var(--caramel-soft); padding: 10px 14px; min-height: 48px; }
.ca--prelaunch .ca__addr { font-size: 14px; white-space: normal; }
.ca--prelaunch:active { translate: none; }
.ca-note { font-size: var(--fs-cap); color: var(--ink-2); margin-top: 8px; }
.on-ink .ca-note { color: rgba(255, 245, 228, .78); }
.on-ink .ca--prelaunch { color: var(--ink); }
.addr-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 700 var(--fs-small)/1 var(--font-ui); color: var(--rasp-ink); }

/* ---------- 7. Header + nav (renderHeader() in common.js). Mobile: menu button + dropdown panel ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 245, 228, .96); border-bottom: 2px solid rgba(45, 35, 26, .15); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-header__in { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; border: var(--border); object-fit: cover; background: var(--paw); }
.brand__name { font: 400 24px/1 var(--font-display); letter-spacing: .02em; }
.nav { margin-left: auto; display: none; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 600 15px/1 var(--font-ui); color: var(--ink-2); text-decoration: none; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: rgba(45, 35, 26, .06); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rasp); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-live { margin-left: auto; text-decoration: none; min-height: 32px; }
.header-live:hover { color: #fff; }
.menu-btn { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: var(--border-thin); box-shadow: var(--sh-press-sm); cursor: pointer; }
.header-live:not([hidden]) ~ .menu-btn { margin-left: 4px; }
.menu-panel { border-top: 2px solid rgba(45, 35, 26, .15); background: var(--bg); padding: 4px var(--gutter) 16px; box-shadow: 0 10px 20px rgba(45, 35, 26, .12); }
.menu-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 6px; font: 600 18px/1 var(--font-ui); text-decoration: none; border-bottom: var(--border-paper); }
.menu-panel a[aria-current="page"] { color: var(--rasp-ink); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-btn, .menu-panel { display: none !important; }
  .header-live { order: 3; margin-left: 12px; }
}

/* ---------- 8. Hero: text + photo polaroid "Chief Kotik Officer" (approved mock) ---------- */
.hero { padding-block: 24px 36px; }
.hero__grid { display: grid; gap: 26px; align-items: center; }
.hero__text { display: grid; justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); line-height: .95; margin: 10px 0 16px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--rasp); }
.hero__sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.hero__ca { margin: 22px 0 18px; width: 100%; }
.hero__note { margin-top: 16px; font-size: var(--fs-cap); color: var(--ink-2); }
.ph { position: relative; justify-self: center; width: min(300px, 78vw); order: -1; margin: 14px 0 6px; }
.ph__frame { position: relative; margin: 0; aspect-ratio: 4 / 5; padding: 12px 12px 54px; background: var(--surface); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); rotate: 2.5deg; }
.ph__frame picture { display: block; width: 100%; height: 100%; }
.ph__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 18px; background: var(--paw); }
.ph__cap { position: absolute; left: 0; right: 0; bottom: 15px; text-align: center; font: 400 20px/1 var(--font-display); letter-spacing: .01em; }
.ph__badge { position: absolute; z-index: 3; top: -16px; left: -16px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 15px; background: var(--black); color: #fff; border: var(--border); border-radius: var(--r-pill); font: 400 16px/1 var(--font-display); letter-spacing: .01em; rotate: -8deg; text-decoration: none; white-space: nowrap; }
a.ph__badge { min-height: 44px; }
a.ph__badge:hover { color: #fff; background: var(--rasp-deep); }
.ph__badge.is-live { background: var(--rasp); }
.ph__badge.is-live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.ph__paw { position: absolute; z-index: 3; right: -16px; bottom: 74px; width: 60px; height: 60px; border-radius: 50%; background: var(--paw); border: var(--border); display: grid; place-items: center; rotate: 10deg; color: var(--ink); }
.ph__paw .i { width: 28px; height: 28px; }
@media (min-width: 760px) {
  .hero { padding-block: 56px 48px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .ph { order: 0; width: min(420px, 100%); margin: 0; }
  .ph__frame { padding-bottom: 60px; }
  .ph__cap { font-size: 22px; bottom: 18px; }
  .ph__paw { width: 64px; height: 64px; bottom: 80px; }
}

/* ---------- 9. Stats (approved pink band) + .strip (4 small facts) + odometer ---------- */
.stats { display: grid; gap: 12px; }
.stat { background: var(--surface); border: var(--border); border-radius: 18px; box-shadow: var(--sh-sticker); padding: 14px 18px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat__v { font: 400 var(--fs-stat)/1 var(--font-display); letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__l { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--ink-2); }
.stat__sub { display: block; font: 500 var(--fs-cap)/1.3 var(--font-ui); color: var(--ink-2); margin-top: 2px; }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat { display: block; padding: 16px 18px; }
  .stat__l { display: block; margin-top: 8px; }
}
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(45, 35, 26, .3); border: var(--border-thin); border-radius: var(--r-md); overflow: hidden; margin-top: 16px; }
.strip > div { background: var(--surface); padding: 12px 14px; min-width: 0; }
.strip b { display: block; font: 400 22px/1.1 var(--font-display); letter-spacing: .01em; overflow-wrap: anywhere; }
.strip span { display: block; font: 500 var(--fs-cap)/1.3 var(--font-ui); color: var(--ink-2); margin-top: 3px; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; margin-top: 14px; font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--ink-2); text-align: center; }
.meta-line a { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }

.odo { display: inline-flex; align-items: center; gap: .06em; font: 400 var(--fs-counter)/1 var(--font-display); color: var(--ink); }
.odo__d { position: relative; width: .72em; height: 1.12em; overflow: hidden; background: var(--surface); border: var(--border); border-radius: .14em; box-shadow: 3px 3px 0 var(--ink); }
.odo__reel { display: flex; flex-direction: column; translate: 0 calc(var(--n, 0) * -1.12em); transition: translate var(--t-roll) var(--ease-out); }
.odo__reel > span { height: 1.12em; line-height: 1.12em; text-align: center; }
.odo__sep { width: .16em; }
.odo--sm { font-size: 2.25rem; }

/* ---------- 10. Milestones (log scale, milestoneBar() in common.js) + chip row ---------- */
.ms { position: relative; padding: 46px 24px 46px; }
.ms__track { position: relative; height: 20px; background: var(--track); border: var(--border); border-radius: var(--r-pill); }
.ms__fill { position: absolute; inset: -2.5px auto -2.5px -2.5px; width: max(20px, calc(var(--p, 0) * 100% + 2.5px)); background: var(--caramel); border: var(--border); border-radius: var(--r-pill); transition: width var(--t-roll) var(--ease-out); }
.ms__fill::after { content: ""; position: absolute; top: 3px; left: 8px; right: 8px; height: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .45); }
.ms__marks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 46px 24px auto; height: 20px; }
.ms__mark { position: absolute; left: calc(var(--at) * 100%); top: 50%; translate: -50% -50%; }
.ms__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: var(--border); color: var(--ink); }
.ms__dot .i { width: 14px; height: 14px; }
.ms__mark.is-reached .ms__dot { background: var(--paw); }
.ms__mark.is-next .ms__dot { background: var(--surface); animation: ring 2s var(--ease-std) infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(204, 51, 84, .55); } 100% { box-shadow: 0 0 0 12px rgba(204, 51, 84, 0); } }
.ms__label { position: absolute; left: 50%; translate: -50% 0; top: 34px; font: 700 13px/1 var(--font-mono); white-space: nowrap; }
.ms__mark:nth-child(even) .ms__label { top: auto; bottom: 34px; }
.ms__mark:last-child .ms__label { left: auto; right: -6px; translate: none; }
.ms__now { margin: 6px auto 0; text-align: center; font: 600 var(--fs-small)/1.4 var(--font-ui); color: var(--ink-2); }
.ms-chips { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0; list-style: none; }
.ms-chips > li { flex: none; scroll-snap-align: start; display: grid; gap: 4px; padding: 10px 14px; background: var(--surface); border: var(--border-thin); border-radius: var(--r-md); min-width: 140px; }
.ms-chips b { font: 700 15px/1.2 var(--font-mono); display: flex; align-items: center; gap: 6px; }
.ms-chips span { font: 500 var(--fs-cap)/1.3 var(--font-ui); color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ms-chips > li.is-reached { background: var(--paw-soft); }
@media (min-width: 960px) { .ms-chips { justify-content: center; overflow: visible; flex-wrap: wrap; } }
.ms-block { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ms-block__title { text-align: center; font-size: var(--fs-h4); }
.rules-box { margin: 20px auto 0; padding: 20px 22px; max-width: 880px; }

/* ---------- 11. Status pills (walletPill()/rulePill()) + purpose chips (Bowl/Team) + dots ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px 3px 10px; border: 1.5px solid currentColor; border-radius: var(--r-pill); font: 600 13px/1.15 var(--font-ui); letter-spacing: .01em; white-space: nowrap; }
.pill .i { width: 14px; height: 14px; }
.pill--pending { color: var(--ink-2); background: transparent; border-style: dashed; }
.pill--muted { color: var(--ink-2); background: transparent; border-color: var(--hairline); }
.pill--locked { color: var(--ink-2); background: var(--track); border-color: transparent; }
.pill--due { color: var(--ink); background: var(--caramel-soft); border-color: var(--caramel); }
.pill--unlocked { color: var(--success); background: var(--success-bg); }
.pill--selling { color: var(--warning); background: var(--warning-bg); }
.pill--done { color: var(--ink); background: var(--surface); }
.pill--ok { color: var(--success); background: var(--success-bg); }
.pill--break { color: #fff; background: var(--danger); border-color: var(--danger); }
.pill--live { color: #fff; background: var(--live); border-color: var(--ink); }
.pill--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: var(--border-thin); border-radius: var(--r-pill); color: var(--ink); font: 600 13px/1 var(--font-ui); letter-spacing: var(--ls-cap); text-transform: uppercase; white-space: nowrap; }
.chip .i { width: 14px; height: 14px; }
.chip--bowl { background: var(--bowl); }
.chip--team { background: var(--team); }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; flex: none; }
.dot--bowl { background: var(--paw); }
.dot--team { background: var(--caramel); }

/* ---------- 12. Wallets: real <table class="tbl"> in .tbl-wrap >= 960px, .wcards > .wcard below ---------- */
.tbl-wrap { overflow-x: auto; border: var(--border); border-radius: var(--r-lg); background: var(--surface); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-small); }
.tbl thead th { position: sticky; top: 0; background: var(--bg-2); text-align: left; padding: 12px 16px; font: 600 var(--fs-cap)/1 var(--font-ui); letter-spacing: var(--ls-cap); text-transform: uppercase; color: var(--ink-2); border-bottom: var(--border-thin); white-space: nowrap; }
.tbl td { padding: 10px 16px; height: 60px; border-bottom: var(--border-paper); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl .mono { font-size: 13px; }
.tbl tr.is-break { background: var(--danger-bg); }
.wcards { display: grid; gap: 12px; }
@media (min-width: 640px) { .wcards { grid-template-columns: 1fr 1fr; } }
.wcard { background: var(--surface); border: var(--border-thin); border-radius: var(--r-md); overflow: hidden; }
.wcard__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px 6px; }
.wcard__id { font: 700 14px/1 var(--font-mono); }
.wcard__head .pill { margin-left: auto; }
.wcard__addr { display: flex; align-items: center; gap: 6px; padding: 0 14px; font: 500 14px/1.2 var(--font-mono); min-height: 44px; }
.wcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; padding: 8px 14px 12px; }
.wcard dt { font: 500 var(--fs-cap)/1.2 var(--font-ui); color: var(--ink-2); }
.wcard dd { margin: 2px 0 0; font: 500 15px/1.2 var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; }
.wcard__foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-top: var(--border-paper); font: 600 var(--fs-small)/1.3 var(--font-ui); }
.wcard.is-break .wcard__foot { background: var(--danger-bg); color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -6px 0; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 10px; text-decoration: none; }
.icon-btn > .i { width: 32px; height: 32px; padding: 6px; border: var(--border-thin); border-radius: 9px; background: var(--surface); }
.icon-btn:hover > .i { background: var(--paw-soft); }
.minibar { display: inline-block; width: 56px; height: 8px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--track); overflow: hidden; vertical-align: middle; }
.minibar > i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--paw-deep); }
.minibar--team > i { background: var(--caramel); }

/* ---------- 13. Bowl Report = receipt (+ small polaroid photo). reportCard()/ghostReport() in common.js ---------- */
.report { position: relative; padding: 14px; display: grid; gap: 14px; align-content: start; }
.polaroid { margin: 0; background: var(--surface); padding: 8px 8px 22px; border: var(--border-thin); border-radius: 6px; box-shadow: var(--sh-press-sm); rotate: -1.5deg; }
.polaroid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; width: 100%; background: var(--track); }
.stamp { position: absolute; top: 22px; right: 18px; rotate: -8deg; font: 400 14px/1 var(--font-display); letter-spacing: var(--ls-cap); text-transform: uppercase; color: var(--paw-ink); background: rgba(253, 233, 238, .92); border: 2.5px solid currentColor; border-radius: 8px; padding: 6px 10px; }
.badge-new { position: absolute; top: -12px; left: -8px; z-index: 2; rotate: -6deg; font: 400 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; padding: 8px 14px; border: var(--border-thin); border-radius: var(--r-pill); background: var(--rasp); color: #fff; box-shadow: var(--sh-press-sm); }
.receipt { background: var(--surface-2); padding: 14px 14px 24px; font: 500 13px/1.55 var(--font-mono); font-variant-numeric: tabular-nums;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%; }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.receipt__head b { font: 400 18px/1.1 var(--font-display); letter-spacing: .01em; }
.receipt__place { font: 600 15px/1.3 var(--font-ui); margin: 10px 0 2px; }
.receipt__note { font: 500 14px/1.4 var(--font-ui); color: var(--ink-2); margin-bottom: 4px; }
.receipt__lines { margin: 6px 0 0; }
.receipt__lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1.5px dashed var(--hairline); }
.receipt__lines dt, .receipt__lines dd { margin: 0; }
.receipt__total { font-weight: 700; border-bottom: 0 !important; padding-top: 8px !important; }
.receipt__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.receipt__links a { display: inline-flex; align-items: center; min-height: 32px; }
.tx { font-weight: 700; color: var(--rasp-ink); }
.report--ghost { border-style: dashed; box-shadow: none; background: var(--surface-2); justify-items: center; text-align: center; padding: 26px 20px; max-width: 380px; margin-inline: auto; }
.report--ghost b { font: 400 26px/1.1 var(--font-display); }
.reports-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .reports-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ---------- 14. Stream card (streamCard() in common.js). data-state: embed | live-link | offline | prelaunch ---------- */
.stream { position: relative; padding: 12px; }
.stream__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--black); box-shadow: var(--sh-soft); }
.stream__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stream__badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.stream__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.stream__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 26, 26, .05) 25%, rgba(30, 26, 26, .78)); }
.stream__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; display: block; }
.stream__cta { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 12px; text-align: center; color: #fff; }
.stream__cta b { font: 400 clamp(20px, 3vw, 28px)/1.05 var(--font-display); text-shadow: 0 2px 0 rgba(30, 26, 26, .5); }
.stream__play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rasp); border: var(--border); box-shadow: var(--sh-press); color: #fff; }
.stream__play .i { width: 28px; height: 28px; margin-left: 4px; }
.stream--offline .stream__media { background: var(--bg-2); box-shadow: none; border: var(--border-thin); display: grid; place-items: center; }
.stream__nap { display: flex; align-items: center; gap: 14px; padding: 16px; max-width: 480px; }
.stream__nap .mascot { width: clamp(84px, 22vw, 140px); flex: none; }
.stream__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 6px 4px; }
.stream__meta .grow { flex: 1 1 200px; min-width: 0; font-weight: 500; }
.stream-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .stream-grid { grid-template-columns: 7fr 5fr; gap: 44px; } }

/* ---------- 15. How it works: paw-pink loop track, 3 stations ---------- */
.loop { position: relative; background: var(--paw); border: var(--border); border-radius: var(--r-xl); padding: 34px 20px 46px; box-shadow: var(--sh-sticker-lg); }
.loop::before { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(45, 35, 26, .35); border-radius: 30px; pointer-events: none; }
.loop__steps { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.loop__step { display: grid; justify-items: center; text-align: center; gap: 8px; position: relative; }
.loop__num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--caramel-fill); border: var(--border); font: 400 28px/1 var(--font-display); rotate: -4deg; box-shadow: var(--sh-press-sm); }
.loop__step h3 { font-size: var(--fs-h4); }
.loop__step p { font-size: var(--fs-small); color: var(--ink-2); max-width: 30ch; }
.loop__step:not(:last-child)::after { content: "↓"; font: 700 26px/1 var(--font-ui); color: var(--ink); margin-top: 6px; }
.loop__return { position: absolute; left: 50%; bottom: -20px; translate: -50% 0; white-space: nowrap; background: var(--bg); border: var(--border-thin); border-radius: var(--r-pill); padding: 9px 16px; font: 600 var(--fs-small)/1 var(--font-ui); }
.loop > .mascot { position: absolute; top: -38px; right: 12px; width: 72px; rotate: 8deg; }
@media (min-width: 760px) {
  .loop { border-radius: 999px; padding: 48px 64px 52px; }
  .loop::before { border-radius: 999px; inset: 14px; }
  .loop__steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .loop__step:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 16px; margin: 0; }
  .loop > .mascot { top: -66px; right: 7%; width: 112px; }
}

/* ---------- 16. Split (Bowl vs Team), tokenomics color-block grid, key-value list, rules list ---------- */
.split { display: grid; background: var(--surface); border: var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-sticker-lg); overflow: hidden; }
.split > * { padding: 24px 22px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.split > * + * { border-top: var(--border); }
.cell--paw { background: var(--paw); }
.cell--caramel { background: var(--caramel-fill); }
.split .big { font: 400 clamp(2.75rem, 2rem + 3vw, 4rem)/1 var(--font-display); }
.split p { color: var(--ink-2); font-weight: 500; }
.split h3 { font-size: var(--fs-h4); }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } .split > * { padding: 30px 32px; } .split > * + * { border-top: 0; border-left: var(--border); } }
.tok-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bw); background: var(--ink); border: var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sticker); }
.tok-grid > div { background: var(--surface); padding: 18px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.tok-grid b { font: 400 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--font-display); overflow-wrap: anywhere; }
.tok-grid span { font: 500 var(--fs-small)/1.35 var(--font-ui); color: var(--ink-2); }
@media (min-width: 760px) { .tok-grid { grid-template-columns: repeat(4, 1fr); } .tok-grid > div { padding: 24px 22px; } }
.kv { display: grid; margin: 0; }
.kv > div { display: grid; gap: 6px; padding: 14px 18px; border-bottom: var(--border-paper); align-items: center; min-width: 0; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font: 600 var(--fs-cap)/1.2 var(--font-ui); letter-spacing: var(--ls-cap); text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .kv > div { grid-template-columns: 170px 1fr; gap: 16px; } }
.kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.kv dd .ca-wrap { flex: 1 1 280px; }
.tok-kv { margin-top: 24px; }
.rules-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.rules-list li > .i { margin-top: 2px; width: 22px; height: 22px; }

/* ---------- 17. Team cards (joke "mystery" team, kotik.json -> team) ---------- */
.team-card { display: grid; gap: 10px; align-content: start; padding: 14px 14px 18px; }
.team-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); border: var(--border-thin); background: var(--bg-2); }
.team-card__role { justify-self: start; position: relative; font: 400 18px/1 var(--font-display); letter-spacing: .04em; padding: 7px 12px; border: var(--border-thin); border-radius: var(--r-pill); background: var(--caramel-fill); rotate: -3deg; margin: -28px 0 0 8px; }
.team-card h3 { font-size: var(--fs-h4); }
.team-card p { font-size: var(--fs-small); color: var(--ink-2); }
.team-card__cap { font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--paw-ink); }

/* ---------- 18. FAQ (native <details>, no JS). Give each <details> an id="faq-..." ---------- */
.faq { border-top: var(--border-thin); max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: var(--border-thin); }
.faq summary { list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; min-height: 64px; padding: 14px 4px; cursor: pointer; font: 600 var(--fs-h4)/1.3 var(--font-ui); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: var(--border-thin); background: var(--surface); font: 600 22px/1 var(--font-ui); transition: rotate var(--t-hover) var(--ease-std), background-color var(--t-hover); }
.faq details[open] summary::before { rotate: 45deg; background: var(--paw); }
.faq__a { padding: 0 4px 22px 54px; color: var(--ink-2); display: grid; gap: 10px; }
.faq__a p { max-width: 64ch; }
@media (max-width: 480px) { .faq__a { padding-left: 4px; } }

/* ---------- 19. Footer (renderFooter() in common.js): ink band, CA, links, anti-scam, disclaimer ---------- */
.site-footer { position: relative; margin-top: 72px; padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer > .mascot { position: absolute; top: -60px; right: max(var(--gutter), calc(50% - 560px)); width: 100px; }
.footer__top { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__brand b { font: 400 32px/1 var(--font-display); letter-spacing: .02em; }
.footer__brand span { color: rgba(255, 245, 228, .82); font-weight: 500; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.footer__cols h4 { font: 600 var(--fs-cap)/1 var(--font-ui); letter-spacing: var(--ls-cap); text-transform: uppercase; color: rgba(255, 245, 228, .75); margin-bottom: 6px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; }
.footer__cols a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--on-ink); text-decoration: none; font-weight: 500; }
.footer__cols a:hover { color: var(--paw); text-decoration: underline; }
.footer__safe { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; font: 500 var(--fs-small)/1.5 var(--font-ui); }
.footer__safe .i { color: var(--paw); margin-top: 2px; }
.footer__disc { margin-top: 18px; background: rgba(255, 245, 228, .06); border: 1.5px solid rgba(255, 245, 228, .35); border-radius: var(--r-md); padding: 18px 20px; font-size: 14px; line-height: 1.6; display: grid; gap: 10px; }
.footer__disc p { max-width: 76ch; }
.footer__copy { margin-top: 22px; font-size: var(--fs-cap); color: rgba(255, 245, 228, .72); }
@media (min-width: 760px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(260px, 460px); align-items: center; } .footer__top .ca-wrap { display: flex; justify-content: flex-end; } .footer__cols { grid-template-columns: repeat(3, minmax(0, 220px)); } }

/* ---------- 20. Toast (toast() in common.js) ---------- */
.toast-host { position: fixed; left: 50%; translate: -50% 0; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-toast); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: 92vw; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 10px; max-width: min(92vw, 420px); background: var(--surface); color: var(--ink); border: var(--border); border-radius: var(--r-pill); box-shadow: var(--sh-sticker); font: 600 15px/1.3 var(--font-ui); animation: toast-in var(--t-enter) var(--ease-pop) both; }
.toast__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: var(--border-thin); background: var(--paw); flex: none; }
.toast__icon .i { width: 16px; height: 16px; }
.toast--error .toast__icon { background: var(--danger-bg); color: var(--danger); }
.toast--info .toast__icon { background: var(--caramel-fill); }
@keyframes toast-in { from { translate: 0 16px; scale: .96; opacity: 0; } }

/* ---------- 21. Misc ---------- */
/* speech bubble: the mascot's voice for empty / offline / error states */
.bubble { position: relative; background: var(--surface); color: var(--ink); border: var(--border-thin); border-radius: 20px; padding: 10px 14px; font: 500 16px/1.35 var(--font-ui); max-width: 34ch; }
.bubble::after { content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; background: inherit; border-left: var(--border-thin); border-bottom: var(--border-thin); translate: 0 -50%; rotate: 45deg; }
.bubble--top::after { left: 28px; top: -9px; translate: none; border-bottom: 0; border-top: var(--border-thin); rotate: 45deg; border-left: var(--border-thin); }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.empty .mascot { width: 128px; }
/* cartoon mascot = secondary decor only. .mascot crops the "$KOTIK" caption off mascot_sticker_400.png */
.mascot { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 0; width: 96px; height: auto; pointer-events: none; user-select: none; }
.bob { animation: bob var(--t-bob) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes bob { 50% { translate: 0 -6px; } }
.sk { display: inline-block; background: var(--track); border-radius: 8px; min-width: 3ch; min-height: 1em; animation: sk 1.2s ease-in-out infinite; color: transparent; }
@keyframes sk { 50% { opacity: .55; } }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: var(--border-thin); border-radius: var(--r-pill); max-width: 100%; overflow-x: auto; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; font: 600 15px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 639px) { .seg { display: flex; } .seg button { min-height: 44px; flex: 1; } }
.input { width: 100%; min-height: 56px; border: var(--border-thin); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 20px var(--font-mono); padding: 0 16px; }
.input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
/* horizontal snap row on phones (team, reports); a 3-column grid from 760px */
.snap-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 20px; margin-inline: -4px; }
.snap-row > * { scroll-snap-align: start; }
@media (min-width: 760px) { .snap-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 24px; } }
.stale { color: var(--warning); }
.reveal { opacity: 0; translate: 0 12px; transition: opacity var(--t-enter) var(--ease-out), translate var(--t-enter) var(--ease-out); }
.reveal.is-in { opacity: 1; translate: 0 0; }
