/* ─────────────────────────────────────────────────────────────
   Agent Inu: sticker-style design. Cream paper, Shiba orange, cocoa ink outlines,
   chunky offset shadows. Dark theme = the den at night (indigo + lantern glow).
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #FFF6E9; --bg-2: #FFEEDA; --surface: #FFFFFF; --surface-2: #FFF9F1; --sunk: #FDF1E2;
  --ink: #2A1D17; --ink-2: #5E4A3E; --muted: #998474; --line: #F1E0C9; --line-2: #E4C9A6;
  --edge: #3A2318; --drop: #3A2318;
  --primary: #F08A24; --primary-deep: #CF6C0B; --primary-soft: #FFE6C9; --on-primary: #FFFFFF;
  --navy: #2E3166; --navy-soft: #E4E5F7; --sakura: #FF8FA3; --mint: #2BB39B; --gold: #F5B82E;
  --up: #15A04A; --up-soft: #DDF7E6; --down: #E23D44; --down-soft: #FFE3E3; --flat: #998474;
  --sky-1: #BFE6FF; --sky-2: #FFEAD3; --tape-bg: #2E3166; --on-navy: #FFFFFF; --link: #CF6C0B;
  --r: 22px; --r-sm: 14px;
  --sh: 0 4px 0 var(--drop); --sh-sm: 0 3px 0 var(--drop);
  --f-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14152B; --bg-2: #1A1C38; --surface: #1F2143; --surface-2: #252851; --sunk: #191B37;
    --ink: #FFF1DE; --ink-2: #DCCBB7; --muted: #9C99C4; --line: #2E3166; --line-2: #3A3E7A;
    --edge: #0A0A18; --drop: #0A0A18;
    --primary: #F59A3C; --primary-deep: #E07D16; --primary-soft: #3A2C30; --on-primary: #1A1006;
    --navy: #9DA6E0; --navy-soft: #262A57;
    --up: #34D27A; --up-soft: #183A2E; --down: #FF6B70; --down-soft: #3E1E2B; --flat: #9C99C4;
    --sky-1: #191C47; --sky-2: #3B2C5D; --tape-bg: #0F1026; --on-navy: #14152B; --link: #F59A3C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14152B; --bg-2: #1A1C38; --surface: #1F2143; --surface-2: #252851; --sunk: #191B37;
  --ink: #FFF1DE; --ink-2: #DCCBB7; --muted: #9C99C4; --line: #2E3166; --line-2: #3A3E7A;
  --edge: #0A0A18; --drop: #0A0A18;
  --primary: #F59A3C; --primary-deep: #E07D16; --primary-soft: #3A2C30; --on-primary: #1A1006;
  --navy: #9DA6E0; --navy-soft: #262A57;
  --up: #34D27A; --up-soft: #183A2E; --down: #FF6B70; --down-soft: #3E1E2B; --flat: #9C99C4;
  --sky-1: #191C47; --sky-2: #3B2C5D; --tape-bg: #0F1026; --on-navy: #14152B; --link: #F59A3C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--f-body);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--line-2) 55%, transparent) 1.2px, transparent 1.4px);
  background-size: 26px 26px; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.01em; margin: 0; line-height: 1.12; }
code, .mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 22px 20px 40px; display: grid; gap: 22px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 2px solid var(--edge); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 9px 18px; font: 800 14.5px/1.1 var(--f-body); box-shadow: var(--sh-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .15s; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--drop); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-x { background: #111; color: #fff; }
.btn-x:hover { background: #2a2a2a; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--edge); background: var(--surface); box-shadow: var(--sh-sm); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: translateY(3px); box-shadow: none; }
.copy { border: 0; background: transparent; cursor: pointer; color: var(--link); font-weight: 800; font-size: 12.5px; padding: 3px 7px; border-radius: 8px; }
.copy:hover { background: var(--primary-soft); }
.ext { color: var(--link); font-weight: 800; }
.ext:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 2px solid var(--edge); }
.topbar-in { max-width: 1260px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: #FCEFD9; border: 2px solid var(--edge); box-shadow: var(--sh-sm); display: grid; place-items: center; overflow: hidden; }
.brand-mark svg { width: 40px; height: 40px; margin-top: 6px; }
.brand-mark.sm { width: 28px; height: 28px; box-shadow: none; }
.brand-mark.sm svg { width: 26px; height: 26px; margin-top: 4px; }
.brand-name { font: 700 23px/1 var(--f-head); letter-spacing: -0.02em; }
.brand-name b { color: var(--primary); font-weight: 700; margin-left: 2px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { white-space: nowrap; display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); border: 2px solid transparent; }
.nav a:hover { background: var(--primary-soft); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); border-color: var(--edge); box-shadow: var(--sh-sm); }
.nav-ic { width: 18px; height: 18px; }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-shill svg { width: 15px; height: 15px; }
.x-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #111; color: #fff; border: 2px solid var(--edge); box-shadow: var(--sh-sm); }
.x-link svg { width: 17px; height: 17px; }
.btn-wallet { background: var(--navy); color: var(--on-navy); }
.btn-wallet:hover { background: color-mix(in srgb, var(--navy) 85%, #000); }
.btn-wallet .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); }
.w-ic { width: 18px; height: 18px; border-radius: 5px; }
.ca-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; border: 2px dashed var(--line-2); background: var(--surface-2); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font-weight: 800; font-size: 13px; }
.ca-chip:not(.soon) { border-style: solid; border-color: var(--edge); box-shadow: var(--sh-sm); }
.ca-chip.soon { cursor: default; color: var(--muted); }
.ca-tag { background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 2px 8px; font-size: 11px; letter-spacing: .06em; }
.ca-val { font-family: var(--f-mono); font-weight: 500; }
.ca-copy { width: 15px; height: 15px; }
.mode-pill { font: 800 11px/1 var(--f-body); letter-spacing: .08em; border-radius: 999px; padding: 5px 10px; background: var(--up-soft); color: var(--up); border: 1.5px solid currentColor; }

/* ticker tape */
.tape { background: var(--tape-bg); color: #E7E8FF; overflow: hidden; white-space: nowrap; height: 34px; display: flex; align-items: center; font: 500 13px/1 var(--f-mono); border-bottom: 2px solid var(--edge); }
.tape-track { display: inline-flex; gap: 22px; padding-left: 22px; animation: tape 90s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; gap: 8px; align-items: baseline; }
.tape-item b { color: #FFD08A; font-weight: 500; }
.tape-item .up { color: #5BE38A; } .tape-item .down { color: #FF8C91; } .tape-item .flat { color: #A3A6D6; }
.tape-sep { color: #5D62A8; }
@keyframes tape { to { transform: translateX(-50%); } }

/* mobile tab bar */
.tabbar { display: none; }

/* ── cards ── */
.card { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 20px; }
.card-head .sub { color: var(--muted); font-size: 13px; font-weight: 700; }
.card-head .right, .toolbar .right, .page-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 4px 18px 18px; }
.card-foot { display: block; padding: 12px 18px; border-top: 2px dashed var(--line); font-weight: 800; color: var(--link); }
.card-foot:hover { background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.page-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 720px; font-size: 16px; }
.live, .live-dot { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--f-body); letter-spacing: .1em; color: var(--down); }
.live::before, .live-dot { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--down); animation: blink 1.4s infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }
.seg { display: inline-flex; background: var(--sunk); border: 2px solid var(--edge); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--primary); color: var(--on-primary); }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 12.5px; background: var(--sunk); border: 1.5px solid var(--line-2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip-tp { background: var(--up-soft); color: var(--up); border-color: transparent; }
.chip-sl { background: var(--down-soft); color: var(--down); border-color: transparent; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font: 900 11px/1.3 var(--f-body); letter-spacing: .06em; background: var(--sunk); color: var(--muted); border: 1.5px solid var(--line-2); }
.pill-active { background: var(--up-soft); color: var(--up); border-color: transparent; }
.pill-unfunded { background: var(--primary-soft); color: var(--primary-deep); border-color: transparent; }
.pill-low { background: var(--down-soft); color: var(--down); border-color: transparent; }
.pill-live { background: var(--navy-soft); color: var(--navy); border-color: transparent; }
.agent-tag { font: 800 11.5px/1.3 var(--f-body); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.new-badge { margin-left: 6px; background: var(--sakura); color: #fff; border-radius: 999px; font: 900 10px/1 var(--f-body); padding: 3px 7px; vertical-align: middle; letter-spacing: .06em; }
.name { font-weight: 800; }

/* avatars: Shibas on a warm round badge */
.av { display: inline-grid; place-items: end center; flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 50% 35%, #FFF4E3, #FFD3A1); border: 2px solid var(--edge); overflow: hidden; position: relative; }
:root[data-theme="dark"] .av { background: radial-gradient(circle at 50% 35%, #3B3F80, #262952); }
.av > svg { width: 100%; height: 100%; display: block; transform: translateY(8%) scale(1.04); }
.av.stand { border-radius: 0; background: none; border: 0; overflow: visible; height: auto; }
.av.stand > svg { transform: none; height: auto; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-28 { --s: 28px; border-width: 1.5px; } .av-36 { --s: 36px; } .av-42 { --s: 42px; } .av-48 { --s: 48px; } .av-56 { --s: 56px; } .av-88 { --s: 88px; } .av-120 { --s: 120px; }
.tok { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tc); color: #2A1D17; font: 800 12px/1 var(--f-body); overflow: hidden; flex: none; border: 1.5px solid var(--edge); vertical-align: middle; margin-right: 6px; }
.tok img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tokname { font-weight: 800; display: inline-flex; align-items: center; }

/* level badges + bar */
.lvl { display: inline-flex; align-items: center; gap: 5px; font: 800 12px/1 var(--f-body); color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--lc) 55%, transparent); border-radius: 999px; padding: 2px 9px 2px 2px; white-space: nowrap; vertical-align: middle; }
.lvl b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--lc); color: #fff; font-size: 11px; }
.lvl-bar { display: grid; gap: 6px; }
.lvl-bar-top { font-size: 13px; color: var(--ink-2); }
.lvl-track { height: 12px; border-radius: 999px; background: var(--sunk); border: 2px solid var(--edge); overflow: hidden; }
.lvl-track i { display: block; height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--nc), var(--nc) 8px, color-mix(in srgb, var(--nc) 80%, #fff) 8px 16px); transition: width .6s ease; }
.lvl-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.lvl-steps span { height: 5px; border-radius: 3px; background: var(--line); }
.lvl-steps span.on { background: var(--lc); }

/* ── home: den hero ── */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
.den-wrap { position: relative; min-width: 0; }
.den { position: relative; height: clamp(380px, 46vw, 560px); border-radius: 30px; border: 2px solid var(--edge); box-shadow: var(--sh); overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); isolation: isolate; }
.den .sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky .sun { position: absolute; right: 9%; top: 10%; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, #FFF7D6 30%, #FFD58A 70%); box-shadow: 0 0 60px 20px rgba(255, 214, 140, .55); }
:root[data-theme="dark"] .sky .sun { background: radial-gradient(circle at 38% 38%, #FFFBEA 40%, #E9E2C8); box-shadow: 0 0 50px 12px rgba(220, 225, 255, .25); width: 70px; height: 70px; }
.sky .star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: 0; animation: twinkle 3s infinite; }
:root[data-theme="dark"] .sky .star { opacity: 1; }
.sky .s1 { left: 12%; top: 14%; } .sky .s2 { left: 30%; top: 8%; animation-delay: 1s; } .sky .s3 { left: 70%; top: 22%; animation-delay: 2s; } .sky .s4 { left: 50%; top: 5%; animation-delay: 1.5s; }
@keyframes twinkle { 50% { transform: scale(.4); opacity: .4; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky .star { opacity: 1; } :root:not([data-theme="light"]) .sky .sun { background: radial-gradient(circle at 38% 38%, #FFFBEA 40%, #E9E2C8); box-shadow: 0 0 50px 12px rgba(220, 225, 255, .25); width: 70px; height: 70px; } }
.den-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.den-tags { position: absolute; inset: 0; pointer-events: none; }
.den-tag {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 2px solid var(--edge); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--sh-sm);
  text-align: left; white-space: nowrap; transform: translate(-50%, -100%); transform-origin: 50% 100%; transition: scale .18s ease, background-color .18s ease, color .18s ease;
}
.den-tag::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; }
.den-tag:hover, .den-tag.hot { scale: 1.08; background: var(--primary-soft); z-index: 2; }
.den-tag:hover::after, .den-tag.hot::after { background: var(--primary-soft); }
.den-tag:hover .dt-t small, .den-tag.hot .dt-t small { color: var(--ink-2); }
.den-tag:active { scale: .97; }
.dt-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--primary); border: 2px solid var(--edge); flex: none; }
.dt-ic svg { width: 16px; height: 16px; }
.tag-shill .dt-ic { background: #111; } .tag-trade .dt-ic { background: #16A34A; } .tag-how .dt-ic { background: #2E3166; }
.dt-t { display: grid; line-height: 1.15; }
.dt-t b { font: 700 14.5px/1.1 var(--f-head); }
.dt-t small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.den.flat { display: grid; place-items: center; }
.den-flat { display: flex; gap: 18px; align-items: flex-end; justify-content: center; padding: 70px 20px 30px; flex-wrap: wrap; }
.df-inu { display: grid; justify-items: center; gap: 12px; }
.df-inu .den-tag { position: relative; }
.df-av { width: 110px; }
.say { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 8px; max-width: min(430px, calc(100% - 32px)); border: 0; background: none; padding: 0; cursor: pointer; text-align: left; z-index: 2; }
.say-av { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--edge); background: #FFE6C9; overflow: hidden; flex: none; box-shadow: var(--sh-sm); }
.say-av svg { width: 100%; height: 100%; transform: translateY(8%); }
.say-b { background: var(--surface); border: 2px solid var(--edge); border-radius: 18px 18px 18px 4px; padding: 8px 13px; box-shadow: var(--sh-sm); display: grid; }
.say-k { font: 800 10.5px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.say-t { font-weight: 700; font-size: 14px; }
.say.pop .say-b { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* just bonded */
.bonded { display: flex; flex-direction: column; overflow: hidden; }
.bonded header { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 2px dashed var(--line); }
.bonded header b { font: 700 18px/1 var(--f-head); }
.bonded header small { margin-left: auto; color: var(--muted); font-weight: 800; font-size: 12px; }
.bonded.ping { animation: wiggle .5s ease; }
@keyframes wiggle { 20% { transform: rotate(-1.2deg); } 40% { transform: rotate(1.2deg); } 60% { transform: rotate(-.6deg); } 80% { transform: rotate(.4deg); } }
.bd-list { display: grid; gap: 6px; padding: 10px; flex: 1; align-content: start; }
.bd-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line); }
.bd-row:hover { border-color: var(--edge); }
.bd-row.fresh { animation: slidein .5s ease; background: var(--primary-soft); }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } }
.bd-img { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--edge); background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 900; }
.bd-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.bd-t { min-width: 0; display: grid; }
.bd-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.bd-t small { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-when { font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.bd-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px 10px; color: var(--muted); font-weight: 700; }
.bd-sniff { width: 72px; height: 72px; animation: sniff 2.4s ease-in-out infinite; }
@keyframes sniff { 50% { transform: translateX(6px) rotate(4deg); } }
.bd-foot { margin: 0; padding: 8px 16px 14px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* intro + crew */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 800 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--link); background: var(--primary-soft); border-radius: 999px; padding: 6px 12px; }
.eyebrow svg { width: 15px; height: 15px; }
.intro h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 14px 0 12px; }
.intro h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.intro h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: var(--primary-soft); z-index: -1; border-radius: 6px; }
.lede { font-size: 17px; color: var(--ink-2); margin: 0 0 20px; max-width: 640px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crew button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer; background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; padding: 10px; box-shadow: var(--sh-sm); transition: transform .12s; }
.crew button:hover { transform: translateY(-2px) rotate(-.5deg); }
.crew-av { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); border: 2px solid var(--edge); overflow: hidden; flex: none; }
.crew-av svg { width: 100%; height: 100%; transform: translateY(8%); }
.crew b { font: 700 15.5px/1.1 var(--f-head); display: block; }
.crew small { color: var(--muted); font-weight: 700; font-size: 12.5px; line-height: 1.25; display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; box-shadow: var(--sh-sm); min-width: 0; }
.stat .k { font-size: 12px; font-weight: 800; color: var(--muted); }
.stat .v { font: 700 23px/1.15 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font: 800 12px var(--f-body); color: var(--muted); margin-left: 4px; }
.stat .s { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.name-v .v { font-size: 19px; }
.kv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kv-grid .card.stat { border-radius: 18px; box-shadow: var(--sh-sm); }

/* top dogs + litter */
.duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.top-box { padding: 0 16px 14px; }
.medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.medal { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 18px; border: 2px solid var(--edge); background: var(--surface-2); text-align: center; min-width: 0; }
.medal:hover { transform: translateY(-2px); }
.medal .av.stand { width: 78px; }
.m-1 { background: linear-gradient(180deg, #FFF4D1, var(--surface-2)); }
:root[data-theme="dark"] .m-1 { background: linear-gradient(180deg, #3C3520, var(--surface-2)); }
.m-rank { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--f-head); border: 2px solid var(--edge); background: #E9E2D6; color: #2A1D17; }
.m-1 .m-rank { background: var(--gold); } .m-2 .m-rank { background: #D9DDE6; } .m-3 .m-rank { background: #E7A971; }
.m-name { font-weight: 800; font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-score { font: 700 17px/1 var(--f-head); }
.medal.empty { opacity: .65; border-style: dashed; }
.top-rest { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.top-rest a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; }
.top-rest a:hover { background: var(--surface-2); }
.top-rest b { margin-left: auto; font-family: var(--f-mono); font-weight: 500; }
.rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--sunk); font: 700 12px/1 var(--f-head); }
.rank-1 { background: var(--gold); color: #2A1D17; } .rank-2 { background: #D9DDE6; color: #2A1D17; } .rank-3 { background: #E7A971; color: #2A1D17; }
.litter { display: grid; gap: 8px; padding: 0 14px 14px; }
.pup { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); }
.pup:hover { border-color: var(--edge); }
.pup-av { position: relative; }
.pup-inu { position: absolute; right: -8px; bottom: -6px; }
.pup-t { min-width: 0; display: grid; }
.pup-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pup-t small, .pup-m small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pup-m { display: grid; justify-items: end; gap: 2px; font-family: var(--f-mono); }
.pup-m b { font-weight: 500; }
.pup.empty { border-style: dashed; }
.pup-cta { font-weight: 900; color: var(--primary-deep); }
.strat-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); }
.strat-mini svg { width: 13px; height: 13px; }

/* feed */
.feed { display: grid; max-height: 620px; overflow: auto; padding: 0 10px 10px; gap: 6px; }
.feed-card.flash { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px var(--primary), var(--sh); } }
.fi { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); }
.fi.fresh { animation: slidein .5s ease; border-color: var(--primary); }
.fi-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.fi-time { font: 500 12px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.fi-main { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.fi-amt { font-family: var(--f-mono); font-weight: 500; }
.fi-amt small { color: var(--muted); }
.fi-pnl { font: 700 15px/1 var(--f-head); }
.fi-tx { margin-left: auto; }
.fi-reason { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.side { display: inline-grid; place-items: center; min-width: 46px; border-radius: 8px; padding: 3px 7px; font: 900 11px/1.2 var(--f-body); letter-spacing: .06em; color: #fff; border: 1.5px solid var(--edge); }
.side-buy { background: #16A34A; } .side-sell { background: #E23D44; } .side-hold { background: #8A8FB8; }
.feed-empty { padding: 34px 16px; text-align: center; color: var(--muted); font-weight: 700; }
.chg { font-family: var(--f-mono); font-weight: 500; }

/* agent cards */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 0 16px 16px; }
.acard { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 2px solid var(--edge); background: var(--surface-2); box-shadow: var(--sh-sm); transition: transform .12s; }
.acard:hover { transform: translateY(-3px); }
.acard-top { display: flex; gap: 12px; align-items: center; }
.acard-top .name { font: 700 17px/1.1 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
.acard-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acard-nums .k { font-size: 11.5px; color: var(--muted); font-weight: 800; }
.acard-nums .v { font: 700 18px/1.1 var(--f-head); }
.acard-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.spark { color: var(--muted); overflow: visible; width: 100%; height: auto; }
.spark.up { color: var(--up); } .spark.down { color: var(--down); }

/* tables */
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; flex-wrap: wrap; }
.search { border: 2px solid var(--edge); border-radius: 999px; padding: 8px 14px; background: var(--surface-2); color: var(--ink); font: 700 14px var(--f-body); min-width: 220px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font: 800 11.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1.5px dashed var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .b { font-weight: 800; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.cell-agent { display: inline-flex; align-items: center; gap: 10px; }

/* ── launch ── */
.launch { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.form { padding: 20px; display: grid; gap: 18px; }
.fieldset { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 2px dashed var(--line); }
.fieldset-title { font: 700 20px/1 var(--f-head); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-weight: 800; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input, .textarea, select.input { width: 100%; border: 2px solid var(--edge); border-radius: 14px; background: var(--surface-2); color: var(--ink); padding: 10px 13px; font: 600 15px var(--f-body); }
.textarea { min-height: 86px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input.locked { color: var(--muted); background: var(--sunk); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .pre { position: absolute; left: 13px; font-weight: 900; color: var(--muted); }
.input-affix .pre + .input { padding-left: 26px; }
.input-affix.suf .input { padding-right: 52px; }
.suf-t { position: absolute; right: 14px; font-weight: 900; color: var(--muted); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0; }
.note { font-size: 13px; color: var(--ink-2); margin: 0; }
.err { color: var(--down); font-weight: 800; font-size: 13px; background: var(--down-soft); border-radius: 12px; padding: 8px 12px; }
.err-t { color: var(--down); font-weight: 800; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.presets button { border: 2px solid var(--edge); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.presets button.on { background: var(--primary); color: var(--on-primary); }
.pup-picker { border: 2px solid var(--edge); border-radius: 20px; background: linear-gradient(180deg, var(--primary-soft), var(--surface-2)); padding: 12px; display: grid; gap: 10px; }
.dp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-title { font: 700 18px/1 var(--f-head); }
.dp-no { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.dp-actions { margin-left: auto; display: flex; gap: 6px; }
.dp-actions svg { width: 15px; height: 15px; }
.pp-stage { position: relative; height: 290px; border-radius: 16px; background: radial-gradient(circle at 50% 70%, #FFE2B8, #FFF6E9 70%); border: 2px solid var(--edge); overflow: hidden; }
:root[data-theme="dark"] .pp-stage { background: radial-gradient(circle at 50% 70%, #3B3F80, #1A1C38 70%); }
.inu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.inu-canvas:active { cursor: grabbing; }
.inu-flat { display: grid; place-items: center; height: 100%; padding: 14px; }
.inu-flat svg { max-height: 100%; width: auto; }
.litter-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.litter-pick.drop .lp-pup { animation: drop .45s ease backwards; }
.litter-pick.drop .lp-pup:nth-child(2) { animation-delay: .05s; } .litter-pick.drop .lp-pup:nth-child(3) { animation-delay: .1s; } .litter-pick.drop .lp-pup:nth-child(4) { animation-delay: .15s; } .litter-pick.drop .lp-pup:nth-child(5) { animation-delay: .2s; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.lp-pup { border: 2px solid var(--line-2); background: var(--surface); border-radius: 16px; padding: 8px 6px 4px; cursor: pointer; transition: transform .12s; }
.lp-pup:hover { transform: translateY(-3px); }
.lp-pup.on { border-color: var(--edge); background: var(--primary-soft); box-shadow: var(--sh-sm); }
.lp-pup svg { width: 100%; height: auto; display: block; }
.dp-info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.dp-info b { font-family: var(--f-head); font-size: 15px; }
.dp-info span:not(.dp-hint) { background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px 9px; font-weight: 800; font-size: 12px; }
.dp-hint { flex-basis: 100%; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.logo-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.strat-opt { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; text-align: left; cursor: pointer; border: 2px solid var(--line-2); background: var(--surface-2); border-radius: 16px; padding: 10px 12px; }
.strat-opt:hover { border-color: var(--edge); }
.strat-opt.on { border-color: var(--edge); background: var(--primary-soft); box-shadow: var(--sh-sm); }
.so-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--on-navy); border: 2px solid var(--edge); grid-row: span 2; }
.so-ic svg { width: 17px; height: 17px; }
.strat-puppyhunt .so-ic { background: var(--down); color: #fff; }
.strat-custom .so-ic { background: var(--mint); color: #fff; }
.so-t { display: grid; min-width: 0; }
.so-t b { font-weight: 900; font-size: 14.5px; }
.so-t b em { font-style: normal; }
.so-t small { color: var(--muted); font-weight: 700; font-size: 12px; line-height: 1.3; }
.so-nums { grid-column: 2; display: flex; gap: 10px; font: 500 13px/1 var(--f-mono); }
.so-nums span { display: grid; gap: 1px; }
.so-nums i { font: 800 9.5px/1 var(--f-body); color: var(--muted); font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.so-rules { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 4px; }
.so-rules i { font-style: normal; color: var(--muted); font-weight: 700; margin-right: 4px; }
.cust-plus { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 24px/1 var(--f-head); color: var(--mint); }
.cust-edit { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 900; color: var(--primary-deep); background: var(--surface); border: 1.5px solid var(--edge); border-radius: 999px; padding: 2px 9px; }
.cust-tag, .risk-tag { font-style: normal; font: 900 9.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 6px; margin-left: 5px; vertical-align: middle; }
.cust-tag { background: var(--mint); color: #fff; }
.risk-tag { background: var(--down); color: #fff; }
.so-t b em:not(.risk-tag):not(.cust-tag) { color: var(--muted); font-size: 11px; margin-left: 4px; }
.strat-info { color: var(--ink-2); }
.strat-list { display: grid; gap: 8px; }
.st-custom { margin-bottom: 8px; }
.cust-row { display: grid; gap: 6px; }
.cust-new { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; border: 2px dashed var(--mint); background: transparent; border-radius: 16px; padding: 10px 12px; cursor: pointer; }
.cust-new small { display: block; color: var(--muted); font-weight: 700; }
.cust-new .cust-plus { position: static; transform: none; }
.cust-load { color: var(--muted); font-weight: 700; font-size: 13px; }
.risk-warn { margin-top: 10px; border: 2px solid var(--down); background: var(--down-soft); border-radius: 16px; padding: 12px 14px; font-size: 13px; color: var(--ink); }
.risk-warn > b { color: var(--down); font-size: 14px; }
.risk-warn p { margin: 6px 0 0; }
.risk-prot { color: var(--ink-2); }
.risk-ok, .check { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-weight: 800; font-size: 13px; cursor: pointer; }
.risk-ok input, .check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin-top: 1px; }
.risk-ok.need { color: var(--down); animation: wiggle .4s; }
.shake { animation: wiggle .5s; }
.preview { display: grid; gap: 14px; position: sticky; top: 110px; }
.preview-card { padding: 16px; display: grid; gap: 12px; }
.preview-stage { display: flex; gap: 12px; align-items: center; }
.pv-name { font: 700 22px/1.1 var(--f-head); overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; text-align: right; font-weight: 800; overflow-wrap: anywhere; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.checklist li::before { content: ''; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ── agent page ── */
.back { font-weight: 800; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--ink); }
.ag-hero { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 0; overflow: hidden; }
.ag-stage { position: relative; min-height: 360px; background: radial-gradient(circle at 50% 75%, #FFD6A3, #FFF1DE 70%); border-right: 2px solid var(--edge); }
:root[data-theme="dark"] .ag-stage { background: radial-gradient(circle at 50% 75%, #3E4290, #1A1C38 72%); }
.ag-inu { position: absolute; inset: 0; }
.ag-stage-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); pointer-events: none; }
.ag-info { padding: 20px 22px; min-width: 0; }
.ag-top { display: grid; gap: 14px; }
.ag-id h1 { font-size: clamp(28px, 3.4vw, 38px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.addr-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.addr { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; min-width: 0; }
.addr code { font-size: 12px; background: var(--sunk); border-radius: 8px; padding: 4px 8px; word-break: break-all; }
.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.money > div { background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 9px 12px; display: grid; min-width: 0; }
.money .k { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.money b { font: 700 21px/1.15 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money small { font-size: 12px; font-weight: 800; color: var(--muted); }
.ag-pad { border-left: 2px solid var(--edge); background: var(--surface-2); padding: 16px; display: grid; align-content: start; gap: 10px; }
.pad-head { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.pad-head b { white-space: nowrap; }
.pad-head b { font: 700 18px/1 var(--f-head); }
.pad-head small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pad { --c: var(--primary); display: grid; justify-items: start; gap: 2px; text-align: left; cursor: pointer; border: 2px solid var(--edge); border-radius: 16px; padding: 10px; background: var(--c); color: #fff; box-shadow: var(--sh-sm); min-width: 0; transition: transform .08s; }
.pad:active { transform: translateY(3px); box-shadow: none; }
.pad-ic { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.pad-ic svg { width: 16px; height: 16px; }
.pad b { font-size: 14px; font-weight: 900; }
.pad small { font-size: 11.5px; font-weight: 700; opacity: .85; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-orange { --c: #F08A24; } .t-green { --c: #16A34A; } .t-yellow { --c: #F5B82E; color: #3A2318; } .t-ink { --c: #5E4A3E; } .t-blue { --c: #3B5BDB; } .t-black { --c: #111; } .t-mint { --c: #2BB39B; } .t-teal { --c: #0F7F72; }
.pad.locked, .pad.off { opacity: .45; }
.pad-who { border: 2px dashed var(--line-2); background: var(--surface); border-radius: 14px; padding: 10px; text-align: center; cursor: pointer; display: grid; }
.pad-who small { color: var(--muted); font-weight: 700; }
.pad-next { margin: 0; text-align: center; font: 500 13px var(--f-mono); color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.chart-box { position: relative; padding: 4px 12px 12px; min-height: 240px; }
.eq-chart { display: block; width: 100%; height: auto; color: var(--muted); }
.eq-chart.up { color: var(--up); } .eq-chart.down { color: var(--down); }
.eq-chart .grid { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5; }
.eq-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.eq-chart .base { stroke: var(--ink-2); stroke-dasharray: 4 4; stroke-width: 1; opacity: .6; }
.eq-chart .base-label { fill: var(--ink-2); font-size: 11px; font-family: var(--f-mono); }
.eq-chart .eq-line { stroke-width: 3; }
.eq-chart .eq-end { stroke: var(--surface); stroke-width: 2.5; }
.eq-chart .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 2px solid var(--edge); border-radius: 12px; box-shadow: var(--sh-sm); padding: 8px 10px; font-size: 12.5px; min-width: 140px; }
.tip-time { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.tip-val { font: 700 19px/1.1 var(--f-head); }
.chart-empty { padding: 60px 10px; text-align: center; color: var(--muted); font-weight: 700; }
.decisions { list-style: none; margin: 0; padding: 0 14px 14px; display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.decisions li { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 14px; padding: 9px 11px; font-size: 13px; }
.decisions .top { display: flex; gap: 8px; align-items: center; }
.decisions .when { margin-left: auto; font: 500 11.5px var(--f-mono); color: var(--muted); }
.decisions p { margin: 5px 0 0; color: var(--ink-2); }
.blocked, .approved { margin-top: 6px; font-size: 12px; font-weight: 800; border-radius: 10px; padding: 4px 8px; }
.blocked { background: var(--down-soft); color: var(--down); }
.blocked.failed { background: var(--primary-soft); color: var(--primary-deep); }
.approved { background: var(--up-soft); color: var(--up); display: inline-block; }
.range { position: relative; width: 150px; height: 20px; }
.range .track { position: absolute; left: 0; right: 0; top: 7px; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--down-soft) 0 33%, var(--up-soft) 33% 100%); }
.range .zero { position: absolute; top: 3px; width: 2px; height: 15px; background: var(--ink-2); }
.range .fill { position: absolute; top: 7px; height: 7px; border-radius: 99px; }
.range .fill.up { background: var(--up); } .range .fill.down { background: var(--down); }
.range .mk { position: absolute; top: 2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--surface); }
.range .mk.up { background: var(--up); } .range .mk.down { background: var(--down); }
.range-lbl { display: flex; justify-content: space-between; width: 150px; font: 500 10px var(--f-mono); color: var(--muted); }
.coin-card { padding: 16px; display: grid; gap: 10px; align-content: start; }
.coin-head { display: flex; gap: 12px; align-items: center; }
.coin-head .t { font: 700 20px/1.1 var(--f-head); }
.coin-head .t small { color: var(--muted); font: 800 13px var(--f-body); margin-left: 6px; }
.mk-agent { padding: 12px 16px; }
.mk-agent-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mk-agent-sub { font-size: 13.5px; flex: 1; min-width: 220px; }
.mk-agent .right { margin-left: auto; display: flex; gap: 6px; }
.mk-badge { background: var(--mint); color: #fff; border: 2px solid var(--edge); border-radius: 999px; padding: 3px 11px; font: 900 11px/1.2 var(--f-body); letter-spacing: .08em; }
.mk-badge.sell { background: #0F7F72; } .mk-badge.nft { background: var(--navy); color: var(--on-navy); }
.mk-agent.on-sale { background: linear-gradient(90deg, color-mix(in srgb, var(--mint) 14%, var(--surface)), var(--surface)); }
.mk-agent.off { opacity: .85; }
.mk-hist { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.mk-price { display: grid; line-height: 1.1; }
.mk-price small { font-size: 11px; font-weight: 800; color: var(--muted); }
.mk-price > span { font: 700 22px/1.1 var(--f-head); }
.mk-price em { font-style: normal; font-size: 13px; color: var(--muted); }
.mk-tok { font-family: var(--f-mono); }
.nft-links { font-size: 13px; }

/* market page */
.burn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.burn-stat { background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-sm); display: grid; }
.burn-stat span { font-size: 12px; font-weight: 800; color: var(--muted); }
.burn-stat b { font: 700 24px/1.15 var(--f-head); }
.burn-stat.hot { background: var(--primary-soft); }
.burn-warn { border: 2px solid var(--primary); background: var(--primary-soft); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; }
.burn-how ol { margin: 0; padding: 0 18px 18px 38px; display: grid; gap: 8px; font-size: 14px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 0 16px 16px; }
.mk-card { border: 2px solid var(--edge); border-radius: 18px; background: var(--surface-2); padding: 14px; display: grid; gap: 10px; box-shadow: var(--sh-sm); }
.mk-top { display: flex; gap: 12px; align-items: center; }
.mk-id { display: grid; gap: 3px; justify-items: start; }
.mk-id b { font: 700 17px/1.1 var(--f-head); }
.mk-strat { display: grid; gap: 4px; justify-items: start; }
.mk-prompt { margin: 0; font-size: 12.5px; color: var(--ink-2); font-style: italic; }
.mk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.mk-stats dt { font-size: 11px; font-weight: 800; color: var(--muted); }
.mk-stats dd { margin: 0; font-weight: 800; }
.mk-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-seller { font-size: 12px; font-weight: 700; }
.mk-empty { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.mk-buy-head { display: flex; gap: 12px; align-items: center; }
.mk-buy-head .mk-price { margin-left: auto; text-align: right; }
.mk-steps { padding-left: 20px; font-size: 13.5px; display: grid; gap: 4px; }
.ok-line { color: var(--up); font-weight: 800; margin: 0; }

/* ── how it works ── */
.steps { list-style: none; margin: 0; padding: 0 18px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.steps li { border: 2px solid var(--edge); border-radius: 18px; padding: 14px; background: var(--surface-2); box-shadow: var(--sh-sm); }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 15px/1 var(--f-head); border: 2px solid var(--edge); margin-bottom: 8px; }
.steps b { display: block; font: 700 16px/1.2 var(--f-head); }
.steps p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }
.how-loop { padding: 0 18px 18px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.loop li { position: relative; display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 2px solid var(--edge); }
.loop-n { position: absolute; right: 12px; top: 10px; font: 700 26px/1 var(--f-head); color: var(--line-2); }
.loop-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 2px solid var(--edge); }
.loop-ic svg { width: 20px; height: 20px; }
.loop b { font: 700 17px/1 var(--f-head); }
.loop li > span:last-child { font-size: 13.5px; color: var(--ink-2); }
.ladder { list-style: none; margin: 0; padding: 0 18px 12px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.ladder li { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 12px 6px; border-radius: 18px; border: 2px solid var(--edge); background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 16%, var(--surface)), var(--surface)); }
.ld-inu { width: min(100px, 100%); }
.ld-inu svg { width: 100%; height: auto; display: block; }
.ld-step { display: flex; align-items: center; gap: 6px; font: 700 16px/1 var(--f-head); }
.ld-step b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lc); color: #fff; font-size: 13px; }
.ld-req { font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.ld-gear { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ld-rew { font: 900 12px/1 var(--f-body); color: var(--up); background: var(--up-soft); border-radius: 999px; padding: 4px 8px; }
.ld-rew.muted { color: var(--muted); background: var(--sunk); }
.rew-box { margin: 6px 18px 18px; padding: 14px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface-2); display: grid; gap: 8px; }
.rew-box p { margin: 0; font-size: 14px; }
.strat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0 18px 18px; }
.strat-card { border: 2px solid var(--edge); border-radius: 18px; padding: 14px; background: var(--surface-2); display: grid; gap: 8px; align-content: start; }
.strat-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.sc-head { display: flex; gap: 10px; align-items: center; }
.sc-head b { font: 700 17px/1.1 var(--f-head); }
.sc-head small { display: block; color: var(--muted); font-weight: 700; }
.strat-wide { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc-sub { font-weight: 800; font-size: 13px; margin: 0 0 6px !important; }
.risk-filters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.risk-filters b { display: inline-block; min-width: 90px; }
.pipe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 18px 10px; }
.pipe .node { flex: 1 1 150px; border: 2px solid var(--edge); border-radius: 16px; padding: 10px 12px; background: var(--surface-2); display: grid; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.pipe .node b { color: var(--ink); font: 700 15px/1.1 var(--f-head); }
.pipe .node.key { background: var(--primary-soft); }
.pipe .arrow { font: 700 20px var(--f-head); color: var(--primary); }
.prose { padding: 4px 18px 18px; font-size: 14.5px; }
.prose p { margin: 0 0 10px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rule { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 10px 12px; background: var(--surface-2); }
.rule .k { font-size: 12px; font-weight: 800; color: var(--muted); }
.rule .v { font: 700 18px/1.2 var(--f-head); }
.rule .v-text { font: 700 13px/1.35 var(--f-body); }

/* ── modals ── */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(30, 18, 10, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(500px, 100%); background: var(--surface); border: 2px solid var(--edge); border-radius: 24px; box-shadow: 0 6px 0 var(--drop); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .25s ease; }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.modal-head h3 { font-size: 21px; }
.modal-head .x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--edge); background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-body { padding: 4px 18px 18px; overflow-y: auto; display: grid; gap: 12px; }
.modal-body p { margin: 0; font-size: 14px; }
.modal-risk { border-color: var(--down); }
.rk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; gap: 12px; align-items: center; text-align: left; border: 2px solid var(--edge); border-radius: 16px; background: var(--surface-2); padding: 10px 12px; cursor: pointer; }
.wallet-opt:hover { background: var(--primary-soft); }
.wallet-opt.get { opacity: .75; }
.wicon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sunk); font-weight: 900; overflow: hidden; }
.wicon img { width: 100%; height: 100%; }
.wtext { display: grid; }
.wtext small { color: var(--muted); font-weight: 700; }
.wget { margin-left: auto; font-weight: 900; color: var(--primary-deep); }
.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.progress li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 700; }
.progress .ic { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font: 900 12px/1 var(--f-body); }
.progress li.doing { color: var(--ink); }
.progress li.doing .ic { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress li.done { color: var(--ink-2); }
.progress li.done .ic { background: var(--up); border-color: var(--up); color: #fff; }
.progress li.fail .ic { background: var(--down); border-color: var(--down); color: #fff; }
.p-note:empty, .p-foot:empty { display: none; }
.p-note { font-size: 13.5px; display: grid; gap: 4px; }
.p-note p { margin: 0; }
.p-foot { display: grid; gap: 8px; }
.shill-head { display: flex; gap: 12px; align-items: center; }
/* strategy builder */
.cs-prompt { border: 2px dashed var(--mint); border-radius: 16px; padding: 12px; display: grid; gap: 8px; background: color-mix(in srgb, var(--mint) 7%, var(--surface)); }
.cs-prompt > label { font-weight: 900; }
.cs-prompt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cs-read { font-size: 13px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line-2); padding: 10px; }
.cs-read ul { margin: 6px 0; padding-left: 18px; }
.cs-notes { color: var(--primary-deep); }
.cs-risk-hint { color: var(--down); font-weight: 800; }
.cs-bases { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-bases button { display: inline-flex; gap: 6px; align-items: center; border: 2px solid var(--edge); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.cs-bases button svg { width: 15px; height: 15px; }
.cs-bases button.on { background: var(--navy); color: var(--on-navy); }
.sl-group { border: 2px solid var(--line-2); border-radius: 16px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 12px; }
.sl-group legend { font: 700 15px var(--f-head); padding: 0 6px; }
.sl-row { display: grid; gap: 4px; }
.sl-row.off { opacity: .45; }
.sl-row label { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 13.5px; align-items: center; }
.sl-val { display: inline-flex; gap: 8px; align-items: center; }
.sl-val output { font: 500 13px var(--f-mono); color: var(--primary-deep); }
.sl-num { display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 1px 6px; background: var(--surface-2); }
.sl-num i { font-style: normal; color: var(--muted); font-size: 12px; }
.sl-in { width: 70px; border: 0; background: transparent; color: var(--ink); font: 500 13px var(--f-mono); text-align: right; }
.sl-row small { color: var(--muted); font-size: 12px; font-weight: 600; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: var(--sunk); border: 2px solid var(--edge); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 2px solid var(--edge); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 2px solid var(--edge); cursor: pointer; }
.cs-risk { display: grid; gap: 4px; font-size: 13px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid var(--line-2); }
.risk-low { color: var(--up); font-weight: 900; } .risk-mid { color: var(--primary-deep); font-weight: 900; } .risk-high { color: var(--down); font-weight: 900; }
.cs-risk-list { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--down); }
.cs-risk-list.big { font-size: 13.5px; color: var(--ink); display: grid; gap: 4px; }

/* toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 2px solid var(--edge); border-radius: 18px; box-shadow: var(--sh); padding: 10px 12px; font-size: 13.5px; animation: toastin .35s ease; }
.toast b { display: block; font: 700 15px/1.2 var(--f-head); }
@keyframes toastin { from { transform: translateY(14px) scale(.96); opacity: 0; } }

/* boot */
.boot { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 10px; font: 700 18px var(--f-head); color: var(--ink-2); }
.boot-inu { width: 120px; height: 120px; border-radius: 50%; background: #FCEFD9; border: 2px solid var(--edge); overflow: hidden; animation: bob 1.2s ease-in-out infinite; }
.boot-inu svg { width: 100%; height: 100%; transform: translateY(8%); }
.how-head { display: flex; align-items: center; gap: 16px; }
.how-logo { flex: none; width: 84px; height: 84px; border-radius: 50%; background: #FCEFD9; border: 2px solid var(--edge); box-shadow: var(--sh-sm); overflow: hidden; }
@media (max-width: 560px) { .how-logo { width: 60px; height: 60px; } }
.logo-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.av .logo-img { border-radius: inherit; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-left: 3px; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }

/* footer */
.foot { border-top: 2px solid var(--edge); background: var(--bg-2); margin-top: 20px; }
.foot-in { max-width: 1260px; margin: 0 auto; padding: 18px 20px 26px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 13px; font-weight: 700; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand .brand-mark { flex: none; }
.foot-x { display: inline-flex; align-items: center; gap: 6px; }
.foot-x svg { width: 14px; height: 14px; }


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .av { background: radial-gradient(circle at 50% 35%, #3B3F80, #262952); }
  :root:not([data-theme="light"]) .m-1 { background: linear-gradient(180deg, #3C3520, var(--surface-2)); }
  :root:not([data-theme="light"]) .pp-stage { background: radial-gradient(circle at 50% 70%, #3B3F80, #1A1C38 70%); }
  :root:not([data-theme="light"]) .ag-stage { background: radial-gradient(circle at 50% 75%, #3E4290, #1A1C38 72%); }
}


/* ═════════ Agent Inu layout: floating header, bottom dock, full-bleed stage ═════════ */
.topbar { position: absolute; top: 14px; left: 18px; right: 18px; z-index: 40; display: flex; align-items: center; gap: 12px; background: none; border: 0; backdrop-filter: none; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .brand { background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: 4px 16px 4px 4px; box-shadow: var(--sh-sm); }
.topbar .top-right { margin-left: auto; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); border: 2px solid var(--edge); border-radius: 999px; padding: 5px; box-shadow: var(--sh-sm); gap: 6px; }
.topbar .top-right .btn, .topbar .top-right .icon-btn, .topbar .top-right .x-link { box-shadow: none; }
.topbar .ca-chip { border-width: 1.5px; box-shadow: none !important; }
body:not([data-page="home"]) #page { padding-top: 76px; }
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: flex; align-items: flex-end; gap: 2px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 2px solid var(--edge); border-radius: 26px; padding: 6px 8px; box-shadow: var(--sh); }
.dock a { display: grid; justify-items: center; gap: 3px; min-width: 76px; padding: 7px 8px 6px; border-radius: 18px; font: 800 11.5px/1.1 var(--f-body); color: var(--ink-2); white-space: nowrap; transition: transform .12s, background .12s; }
.dock a:hover { background: var(--primary-soft); transform: translateY(-3px); }
.dock a.on { color: var(--ink); background: var(--sunk); }
.dock .nav-ic { width: 22px; height: 22px; }
.dock a.dock-launch { background: var(--primary); color: var(--on-primary); border: 2px solid var(--edge); margin: -18px 6px 0; padding: 12px 14px 8px; box-shadow: var(--sh-sm); border-radius: 20px; }
.dock a.dock-launch:hover { background: var(--primary-deep); }
.dock a.dock-launch .nav-ic { width: 26px; height: 26px; }
body { padding-bottom: 104px; }
.toasts { bottom: 104px; }
.ribbon { margin: 40px -20px 0; transform: rotate(-1.2deg); background: var(--primary); color: #2A1406; border-top: 2px solid var(--edge); border-bottom: 2px solid var(--edge); overflow: hidden; white-space: nowrap; height: 44px; display: flex; align-items: center; font: 500 14px/1 var(--f-mono); box-shadow: 0 4px 0 var(--drop); }
.ribbon .tape-item b { color: #fff; font-weight: 500; }
.ribbon .tape-item .up { color: #0B5A26; } .ribbon .tape-item .down { color: #8E0F15; } .ribbon .tape-item .flat { color: #5E3510; }
.ribbon .tape-sep { color: #fff; }
.ribbon:hover .tape-track { animation-play-state: paused; }
.foot { margin-top: 30px; }

/* home stage */
.home { display: block; }
.stage { position: relative; height: clamp(620px, 92vh, 900px); }
.stage .den { position: absolute; inset: 0; height: auto; border-radius: 0 0 56px 56px; border: 0; border-bottom: 2px solid var(--edge); box-shadow: 0 6px 0 var(--drop); }
.stage-copy { position: absolute; z-index: 3; left: max(24px, calc((100vw - 1260px) / 2 + 20px)); top: 50%; transform: translateY(-46%); width: min(540px, 42vw); pointer-events: none; }
.stage-copy > * { pointer-events: auto; }
.stage-copy h1 { font-size: clamp(40px, 5.2vw, 76px); margin: 16px 0 14px; line-height: 1.02; text-shadow: 0 3px 0 color-mix(in srgb, var(--bg) 70%, transparent); }
.stage-copy h1 em { font-style: normal; color: var(--primary); display: block; }
.stage-copy .lede { font-size: 18px; font-weight: 700; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 18px; padding: 10px 14px; backdrop-filter: blur(4px); }
.stage .say { left: auto; right: max(20px, calc((100vw - 1260px) / 2 + 20px)); bottom: 120px; }
.home-body { gap: 34px; padding-top: 30px; }
.sec-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-title h2 { font-size: clamp(26px, 3vw, 36px); }
.sec-title p { margin: 0; color: var(--muted); font-weight: 800; }
.kn-nav { margin-left: auto; display: flex; gap: 8px; }
.kn-nav .icon-btn { font: 700 22px/1 var(--f-head); }

/* scoreboard */
.scoreboard { list-style: none; margin: -78px auto 0; padding: 18px 26px; position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; background: var(--ink); color: var(--bg); border: 2px solid var(--edge); border-radius: 30px; box-shadow: 0 6px 0 var(--primary); width: 100%; }
.scoreboard li { display: grid; min-width: 120px; }
.scoreboard b { font: 700 30px/1.05 var(--f-head); white-space: nowrap; color: var(--bg); }
.scoreboard b .up { color: #5BE38A; } .scoreboard b .down { color: #FF8C91; }
.scoreboard span { font-size: 13px; font-weight: 800; opacity: .82; }
.scoreboard em { display: block; font-style: normal; font-weight: 700; opacity: .6; font-size: 12px; }

/* paw trail */
.trail { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.trail::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; border-top: 4px dotted var(--primary); z-index: 0; }
.trail li { position: relative; z-index: 1; }
.trail li:nth-child(even) { transform: translateY(26px); }
.trail button { width: 100%; height: 100%; display: grid; justify-items: center; text-align: center; gap: 6px; cursor: pointer; background: var(--surface); border: 2px solid var(--edge); border-radius: 28px; padding: 0 16px 18px; box-shadow: var(--sh); transition: transform .15s; }
.trail button:hover { transform: translateY(-5px) rotate(-1deg); }
.tr-inu { width: 108px; margin-top: -46px; }
.tr-inu svg { width: 100%; height: auto; display: block; }
.tr-n { position: absolute; top: 12px; left: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; border: 2px solid var(--edge); display: grid; place-items: center; font: 700 15px/1 var(--f-head); }
.trail b { font: 700 21px/1.1 var(--f-head); }
.trail small { font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.35; }

/* board: pack chat + side */
.board { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.chat { display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--navy); color: var(--on-navy); flex-wrap: wrap; }
.chat-h h2 { font-size: 22px; }
.chat-h small { font-weight: 700; opacity: .85; display: flex; gap: 8px; align-items: center; }
.chat-h .live { color: #FF9AA0; }
.chat-h .seg { margin-left: auto; }
.chat-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: #fff; border: 2px solid var(--edge); }
.chat-ic svg { width: 22px; height: 22px; }
.chat-list { overflow-anchor: none; display: flex; flex-direction: column; gap: 12px; padding: 16px; max-height: 640px; overflow: auto; background: repeating-linear-gradient(0deg, transparent 0 34px, color-mix(in srgb, var(--line) 50%, transparent) 34px 35px); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg.sell { flex-direction: row-reverse; align-self: flex-end; }
.msg.fresh { animation: slidein .5s ease; }
.msg-b { background: var(--up-soft); border: 2px solid var(--edge); border-radius: 20px 20px 20px 6px; padding: 9px 13px; min-width: 0; box-shadow: var(--sh-sm); }
.msg.sell .msg-b { background: color-mix(in srgb, var(--sakura) 22%, var(--surface)); border-radius: 20px 20px 6px 20px; }
.msg-h { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.msg-t { margin-left: auto; font: 500 11.5px var(--f-mono); color: var(--muted); }
.msg-main { margin: 3px 0 0; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.msg-pnl { font: 700 15px/1 var(--f-head); }
.msg-why { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-2); }
.msg-tx { font-size: 12px; font-weight: 800; color: var(--link); }
.chat-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); font-weight: 700; }
.chat-empty span { width: 90px; }
.board-side { display: grid; gap: 22px; }
.board-side .card { border-radius: 28px; }
.side-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; border: 0; }
.side-h h2 { font-size: 20px; }
.side-h .seg, .side-h small { margin-left: auto; }
.side-h small { font-weight: 800; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.side-more { display: block; padding: 10px 16px 14px; font-weight: 800; color: var(--link); }
.dogs { list-style: none; margin: 0; padding: 0 12px; display: grid; gap: 6px; }
.dog a { display: grid; grid-template-columns: 26px auto 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 18px; }
.dog a:hover { background: var(--surface-2); }
.d-1 a { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 30%, transparent), transparent); }
.dog-rank { font: 700 18px/1 var(--f-head); color: var(--muted); text-align: center; }
.d-1 .dog-rank { color: var(--gold); font-size: 24px; } .d-2 .dog-rank { color: #9AA3B2; font-size: 21px; } .d-3 .dog-rank { color: #D08A4E; font-size: 20px; }
.dog-t { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.dog-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dog-s { font: 700 17px/1 var(--f-head); }
.dog-empty { display: flex; gap: 12px; align-items: center; margin: 4px 12px 0; padding: 12px; border: 2px dashed var(--line-2); border-radius: 18px; }
.dog-empty small { display: block; color: var(--muted); font-weight: 700; }
.board-side .bonded header { border-bottom: 0; padding: 14px 16px 8px; }
.board-side .bd-list { padding: 0 12px 4px; }

/* kennel */
.kennel { display: flex; gap: 16px; overflow-x: auto; padding: 46px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.kn { position: relative; flex: 0 0 210px; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 14px 16px; border-radius: 30px 30px 24px 24px; border: 2px solid var(--edge); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 55%); box-shadow: var(--sh); transition: transform .15s; }
.kn:nth-child(3n+2) { background: linear-gradient(180deg, color-mix(in srgb, var(--mint) 22%, var(--surface)), var(--surface) 55%); }
.kn:nth-child(3n) { background: linear-gradient(180deg, color-mix(in srgb, var(--sakura) 25%, var(--surface)), var(--surface) 55%); }
.kn:hover { transform: translateY(-5px); }
.kn-inu { width: 120px; margin-top: -40px; }
.kn-inu svg { width: 100%; height: auto; display: block; }
.kn-coin { display: inline-flex; gap: 6px; align-items: center; font-weight: 900; }
.kn-name { font: 700 19px/1.1 var(--f-head); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-row { display: flex; gap: 6px; align-items: center; }
.kn-p { font: 700 16px/1 var(--f-head); }
.kn small { color: var(--muted); font-weight: 700; font-size: 12px; }
.kn-new { position: absolute; top: 10px; right: 10px; }
.kn-empty { border-style: dashed; background: var(--surface-2) !important; }

@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr; }
  .board-side { grid-template-columns: 1fr 1fr; }
  .dock a { min-width: 62px; }
}
@media (max-width: 900px) {
  .stage { height: 920px; }
  .stage-copy { left: 16px; right: 16px; width: auto; top: 96px; transform: none; }
  .stage-copy h1 { font-size: clamp(34px, 9vw, 48px); }
  .stage-copy .lede { font-size: 15px; }
  .stage .say { display: none; }
  .trail { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .trail li:nth-child(even) { transform: none; }
  .trail::before { display: none; }
  .scoreboard { margin-top: -50px; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; }
  .scoreboard b { font-size: 24px; }
  .board-side { grid-template-columns: 1fr; }
  .dock { left: 8px; right: 8px; transform: none; justify-content: space-between; border-radius: 22px; padding: 5px; }
  .dock a { min-width: 0; flex: 1; padding: 6px 2px; font-size: 10.5px; }
  .dock a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dock a.dock-launch { margin: -16px 2px 0; padding: 10px 4px 6px; }
  .dock a[data-r="how"] span { font-size: 0; } .dock a[data-r="how"] span::after { content: 'Help'; font-size: 10.5px; }
  .topbar { top: 10px; left: 10px; right: 10px; }
  .topbar .brand { padding: 3px 12px 3px 3px; }
}
@media (max-width: 560px) {
  .trail { grid-template-columns: 1fr; }
  .msg { max-width: 100%; }
  .topbar .brand-name { display: none; }
  .topbar .brand { padding: 3px; }
  .ribbon { margin: 30px -12px 0; }
}

/* ── responsive ── */
@media (max-width: 1400px) {
  .nav a .nav-ic { display: none; }
  .btn-wallet .long { display: none; }
}
@media (max-width: 1180px) {
  .nav a span { display: none; }
  .nav a .nav-ic { display: block; }
  .nav a { padding: 9px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-hero { grid-template-columns: 260px minmax(0, 1fr); }
  .ag-pad { grid-column: 1 / -1; border-left: 0; border-top: 2px solid var(--edge); }
  .ag-pad .pad-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .bonded .bd-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .intro, .duo, .two, .launch { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr 1fr; }
  .preview { position: static; }
  .loop { grid-template-columns: 1fr 1fr; }
  .strat-wide { grid-template-columns: 1fr; }
  .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; background: var(--surface); border: 2px solid var(--edge); border-radius: 22px; box-shadow: var(--sh); padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom) * .5); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font: 800 11px/1.1 var(--f-body); color: var(--ink-2); }
  .tabbar a.on { background: var(--primary); color: var(--on-primary); }
  .tabbar .nav-ic { width: 20px; height: 20px; }
  body { padding-bottom: 86px; }
  .toasts { bottom: 96px; }
}
@media (max-width: 720px) {
  .topbar-in { padding: 8px 12px; gap: 8px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; } .brand-mark svg { width: 34px; height: 34px; }
  .nav-shill span, .btn-wallet .long, .x-link { display: none; }
  .ca-chip { padding: 4px 8px 4px 4px; }
  .ca-val { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .icon-btn { width: 36px; height: 36px; }
  .btn-wallet { padding: 7px 12px; }
  .wrap { padding: 14px 12px 30px; gap: 16px; }
  .den { height: 400px; border-radius: 22px; }
  .say { left: 10px; bottom: 10px; }
  .say-av { width: 42px; height: 42px; }
  .say-t { font-size: 13px; }
  .dt-t small { display: none; }
  .den-tag { padding: 4px 11px 4px 4px; }
  .dt-ic { width: 26px; height: 26px; }
  .dt-t b { font-size: 13px; }
  .crew { grid-template-columns: 1fr; }
  .stats, .kv-grid { grid-template-columns: 1fr 1fr; }
  .burn-stats { grid-template-columns: 1fr 1fr; }
  .medal .av.stand { width: 60px; }
  .three, .row2, .strat-grid { grid-template-columns: 1fr; }
  .ag-hero { grid-template-columns: 1fr; }
  .ag-stage { min-height: 300px; border-right: 0; border-bottom: 2px solid var(--edge); }
  .ag-pad .pad-grid { grid-template-columns: 1fr 1fr; }
  .money b { font-size: 17px; }
  .litter-pick { gap: 5px; }
  .pp-stage { height: 250px; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .toolbar .right { margin-left: 0; width: 100%; }
  .card-head { padding: 14px 14px 10px; }
  .agent-grid, .mk-grid { padding: 0 12px 12px; }
  .foot-in { padding-bottom: 20px; }
}
@media (max-width: 420px) {
  .ca-val { display: none; }
  .ca-chip.soon { display: none; }
  .brand-name { font-size: 18px; }
  .top-right { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.wrap > *, .board > *, .home-body > * { min-width: 0; }
html, body { overflow-x: clip; }
/* launch: the preview card sits on the left, the form on the right */
.launch { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr); }
.launch .preview { order: -1; }
@media (max-width: 980px) { .launch { grid-template-columns: 1fr; } .launch .preview { order: 2; } }
/* hunting styles: tall cards with the icon on top and a treat/leash meter */
.strat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.strat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 10px; }
.hunt { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 5px; padding: 30px 12px 12px; margin-top: 18px; border: 2px solid var(--line-2); border-radius: 22px; background: var(--surface); cursor: pointer; transition: transform .12s, border-color .12s; }
.hunt:hover { transform: translateY(-3px); border-color: var(--edge); }
.hunt.on { border-color: var(--edge); background: var(--primary-soft); box-shadow: 0 4px 0 var(--primary-deep); }
.hunt-ic { position: absolute; top: -20px; left: 50%; transform: translateX(-50%) rotate(-6deg); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--hc, var(--navy)); border: 2px solid var(--edge); box-shadow: 0 3px 0 var(--drop); }
.hunt.on .hunt-ic { transform: translateX(-50%) rotate(6deg) scale(1.08); }
.hunt-ic svg { width: 22px; height: 22px; }
.h-goodboy { --hc: #F08A24; } .h-zoomies { --hc: #E8B22E; } .h-longwalk { --hc: #16A34A; } .h-fetch { --hc: #3B82F6; } .h-pounce { --hc: #9333EA; } .h-puppyhunt { --hc: #E23D44; } .h-custom { --hc: #2BB39B; }
.hunt-name { font: 700 16px/1.15 var(--f-head); display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; }
.hunt-name em { margin-left: 0; }
.hunt-tag { font-size: 12px; font-weight: 700; color: var(--muted); }
.hunt-meter { position: relative; width: 100%; height: 10px; border-radius: 99px; background: var(--sunk); display: flex; justify-content: center; align-items: center; margin-top: 4px; }
.hunt-meter b { width: 2px; height: 14px; background: var(--ink); border-radius: 2px; }
.hunt-meter i { height: 10px; display: block; }
.hunt-meter .m-sl { background: var(--down); border-radius: 99px 0 0 99px; }
.hunt-meter .m-tp { background: var(--up); border-radius: 0 99px 99px 0; }
.hunt-nums { width: 100%; display: flex; justify-content: space-between; font: 500 12px var(--f-mono); }
.hunt-meta { font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.hunt-check { position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--primary); color: #fff; font: 900 12px/1 var(--f-body); border: 2px solid var(--edge); }
.hunt.on .hunt-check { display: grid; }
.hunt.wild { border-style: dashed; }
.hunt.wild.on { border-color: var(--down); box-shadow: 0 4px 0 var(--down); }
.hunt .cust-edit { top: auto; bottom: 8px; right: 8px; }
.hunt.cust-build { border-style: dashed; border-color: var(--mint); align-content: center; }
.hunt.cust-build .cust-plus { position: static; transform: none; }
.cur-tag { font-style: normal; font: 900 9.5px/1 var(--f-body); background: var(--navy); color: var(--on-navy); border-radius: 999px; padding: 3px 6px; }
.risk-tag { background: repeating-linear-gradient(-45deg, #E23D44 0 6px, #B9262C 6px 12px); }
@media (max-width: 980px) { .strat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strat-grid, .strat-list { grid-template-columns: 1fr 1fr; gap: 8px; } .hunt { padding: 28px 8px 10px; } .hunt-meta { font-size: 10.5px; } }
.df-inu .den-tag { transform: none; }
