/* ══════════════════════════════════════════════════════════════════
   Solana Detective ($SOLDET)
   Palette sampled from the artwork: rain-soaked neon, no pure black,
   no pure white. Violet-magenta is the brand; green→red is reserved
   entirely for verdicts, so "clean" can never be mistaken for "brand".
   ══════════════════════════════════════════════════════════════════ */

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
  p { text-wrap: pretty; }
  ul, ol { list-style: none; padding: 0; }
  dialog { border: 0; padding: 0; color: inherit; }
}

@layer base {
  :root {
    /* ── surfaces: violet-tinted, never neutral grey ── */
    --night:         #07060e;
    --ink:           #0e0a18;
    --panel:         rgba(163, 134, 224, 0.052);
    --panel-2:       rgba(163, 134, 224, 0.10);
    --line:          rgba(180, 152, 224, 0.145);
    --line-soft:     rgba(180, 152, 224, 0.082);
    --text:          #ece7f6;
    --muted:         #a095bb;
    --dim:           #837a9f;

    /* ── brand, sampled off the PFP ──
       The magenta rim light is the primary. The mint rim and the streetlight
       amber are ambience only — they never carry state, because mint and
       "clean green" would be indistinguishable at a glance. */
    --vice:          #c44fd0;
    --vice-hi:       #e484ee;
    --vice-lo:       #7a2a8e;
    --neon:          #35d3c1;
    --amber:         #f0a850;
    --mauve:         #b88ca8;

    /* ── verdicts. Deliberately outside the brand hue range. ── */
    --excellent:     #2ed982;
    --good:          #a3d63f;
    --caution:       #f2b52c;
    --risky:         #ff8438;
    --danger:        #ff4b57;

    /* render.js asks for these two by name */
    --green:         var(--excellent);
    --purple:        var(--vice);

    --radius:        18px;
    --radius-sm:     12px;
    --wrap:          1180px;

    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    /* The case-file voice. Typewriter + uppercase + wide tracking is what
       makes a label read as evidence rather than decoration. */
    --type: "Courier Prime", "Courier New", Courier, monospace;
    --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --shadow: 0 28px 80px -24px rgba(0, 0, 0, 0.9);
    --glow-vice: 0 0 0 1px rgba(196, 79, 208, 0.3), 0 14px 48px -14px rgba(196, 79, 208, 0.55);
  }

  body {
    font-family: var(--sans);
    background: var(--night);
    color: var(--text);
    overflow-x: hidden;
  }

  ::selection { background: var(--vice); color: #fff; }

  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--night); }
  ::-webkit-scrollbar-thumb { background: #241a34; border-radius: 99px; border: 3px solid var(--night); }
  ::-webkit-scrollbar-thumb:hover { background: #35264c; }

  :focus-visible { outline: 2px solid var(--vice-hi); outline-offset: 3px; border-radius: 6px; }

  .wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  @media (max-width: 640px) { .wrap { width: min(100% - 1.75rem, var(--wrap)); } }
}

@layer components {
  /* ══════════════════════ ambience ══════════════════════
     Bokeh through rain — the two things the artwork is actually made of.
     The old perspective grid is gone: the reference has no grid, and a
     receding grid reads as generic crypto rather than as this token. */
  .bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

  .bg-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
  .bg-orb--1 {
    width: 660px; height: 660px; top: -270px; left: -150px; opacity: 0.55;
    background: radial-gradient(circle, rgba(196, 79, 208, 0.55), transparent 68%);
    animation: drift 28s ease-in-out infinite;
  }
  .bg-orb--2 {
    width: 740px; height: 740px; top: -200px; right: -240px; opacity: 0.42;
    background: radial-gradient(circle, rgba(53, 211, 193, 0.42), transparent 68%);
    animation: drift 34s ease-in-out infinite reverse;
  }
  .bg-orb--3 {
    width: 580px; height: 580px; top: 48%; left: 38%; opacity: 0.3;
    background: radial-gradient(circle, rgba(240, 168, 80, 0.34), transparent 70%);
    animation: drift 44s ease-in-out infinite;
  }
  @keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(70px, 55px, 0) scale(1.14); }
  }

  /* Vertical stripes rotated into a slant: translating along the stripe axis
     is seamless by construction, and the dash mask has a 120px period, so the
     loop never shows a join. */
  .bg-rain {
    position: absolute; inset: -35%;
    opacity: 0.38;
    background-image: repeating-linear-gradient(
      to right, transparent 0 21px, rgba(222, 206, 255, 0.55) 21px 22px);
    -webkit-mask-image: repeating-linear-gradient(
      to bottom, transparent 0 38px, #000 54px, #000 92px, transparent 120px);
    mask-image: repeating-linear-gradient(
      to bottom, transparent 0 38px, #000 54px, #000 92px, transparent 120px);
    transform: rotate(14deg);
    animation: rain 1.05s linear infinite;
  }
  @keyframes rain { to { transform: rotate(14deg) translateY(120px); } }

  .bg-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, transparent 30%, rgba(7, 6, 14, 0.82) 100%);
  }

  .bg-noise {
    position: absolute; inset: 0; opacity: 0.4; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  }

  @media (prefers-reduced-motion: reduce) {
    .bg-orb, .bg-rain { animation: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  /* ══════════════════════ nav ══════════════════════ */
  .nav {
    position: sticky; top: 0; z-index: 60;
    display: flex; align-items: center; gap: 1.5rem;
    width: min(100% - 2.5rem, var(--wrap)); margin: 0.6rem auto 0;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
    background: rgba(14, 10, 24, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(18px) saturate(150%);
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s, opacity 0.25s;
  }
  .nav.is-stuck { box-shadow: var(--shadow); border-color: rgba(196, 79, 208, 0.28); }

  .nav__brand { display: flex; align-items: center; gap: 0.6rem; }
  /* The dual rim light — mint on one edge, magenta on the other — is the
     single most recognisable thing in the artwork, so it goes on the mark. */
  .nav__mark {
    width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    box-shadow: -3px 0 10px -2px rgba(53, 211, 193, 0.65),
                 3px 0 10px -2px rgba(196, 79, 208, 0.75),
                 0 0 0 1px rgba(180, 152, 224, 0.28);
  }
  .nav__mark img { width: 100%; height: 100%; object-fit: cover; }
  .nav__word { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; font-size: 1.06rem; }
  .nav__sub {
    font-family: var(--type); font-size: 0.68rem; font-weight: 700; color: var(--vice-hi);
    letter-spacing: 0.12em; text-transform: uppercase;
  }

  .nav__links { display: flex; gap: 0.4rem; margin-left: auto; }
  .nav__links a {
    padding: 0.45rem 0.85rem; border-radius: 999px; color: var(--muted);
    font-family: var(--type); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    transition: color 0.2s, background 0.2s;
  }
  .nav__links a:hover { color: var(--text); background: var(--panel-2); }

  .nav__actions { display: flex; align-items: center; gap: 0.5rem; }

  @media (max-width: 900px) { .nav__sub { display: none; } .nav__links { display: none; } }
  @media (max-width: 560px) {
    .nav__word { display: none; }
    .nav__actions { gap: 0.35rem; }
    .btn--rpc { padding: 0.5rem 0.7rem; letter-spacing: 0.08em; }
  }

  /* ══════════════════════ buttons ══════════════════════ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.62rem 1.15rem; border-radius: 999px;
    font-size: 0.9rem; font-weight: 620; letter-spacing: -0.01em;
    border: 1px solid transparent; white-space: nowrap;
    transition: transform 0.15s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.2s;
  }
  .btn:active { transform: scale(0.97); }

  .btn--primary {
    background: linear-gradient(135deg, var(--vice-hi), var(--vice) 52%, var(--vice-lo));
    color: #fff; box-shadow: 0 10px 32px -12px rgba(196, 79, 208, 0.75);
  }
  .btn--primary:hover { box-shadow: 0 14px 44px -10px rgba(196, 79, 208, 0.9); transform: translateY(-1px); }

  .btn--ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
  .btn--ghost:hover { background: var(--panel-2); border-color: rgba(196, 79, 208, 0.4); }

  .btn--icon { padding: 0.6rem; border-radius: 50%; color: var(--muted); background: var(--panel); border-color: var(--line); }
  .btn--icon:hover { color: var(--text); }

  .btn--rpc {
    padding: 0.5rem 0.95rem;
    font-family: var(--type); font-size: 0.86rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
  }

  .btn--lg { padding: 0.85rem 1.7rem; font-size: 1rem; }
  .btn[disabled] { opacity: 0.5; pointer-events: none; }

  .btn--scan {
    position: relative; overflow: hidden;
    padding: 0 1.7rem; height: 60px; flex-shrink: 0; gap: 0.65rem;
    background: linear-gradient(135deg, var(--vice-hi), var(--vice) 52%, var(--vice-lo));
    color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.08em;
    border-radius: 14px;
    box-shadow: 0 12px 40px -14px rgba(196, 79, 208, 0.9);
  }
  .btn--scan::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.5) 45%, transparent 70%);
    transform: translateX(-120%);
  }
  .btn--scan:hover::after { animation: shine 0.9s ease; }
  @keyframes shine { to { transform: translateX(120%); } }
  .btn--scan.is-busy { pointer-events: none; }
  .btn--scan.is-busy .btn__label { opacity: 0.35; }
  .btn--scan svg { width: 26px; height: 26px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255,255,255,.5)); }

  /* ══════════════════════ hero ══════════════════════ */
  .hero { padding: clamp(0.7rem, 2vw, 1.4rem) 0 2.5rem; text-align: center; }

  .hero__title {
    font-family: var(--display);
    font-size: clamp(2.25rem, 6.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.045em;
  }
  .hero__title .strike { position: relative; color: var(--muted); }
  .hero__title .strike::after {
    content: ''; position: absolute; left: -2%; right: -2%; top: 54%; height: 0.085em;
    background: var(--danger); border-radius: 4px; box-shadow: 0 0 22px var(--danger);
    transform: rotate(-2.5deg) scaleX(0); transform-origin: left;
    animation: strike 0.7s 0.35s cubic-bezier(.2,.9,.3,1) forwards;
  }
  @keyframes strike { to { transform: rotate(-2.5deg) scaleX(1); } }

  /* Solana's own green→violet run, which is exactly what the lens in the
     artwork is showing. Reads as brand and as "chain" at the same time. */
  .hero__title .grad {
    background: linear-gradient(100deg, var(--neon) 0%, #6f8ce8 42%, var(--vice) 74%, var(--vice-hi) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  .hero__lede {
    max-width: 64ch; margin: 1.3rem auto 0; color: var(--muted);
    font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  }
  .hero__lede strong { color: var(--text); font-weight: 600; }

  /* Rim-lit in mint and magenta, exactly as the artwork is lit. */
  .hero__pfp {
    width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 0.9rem;
    box-shadow: -10px 0 34px -8px rgba(53, 211, 193, 0.62),
                 10px 0 34px -8px rgba(196, 79, 208, 0.78),
                 0 0 0 1px rgba(180, 152, 224, 0.3),
                 0 22px 60px -22px rgba(0, 0, 0, 0.9);
    animation: floaty 6s ease-in-out infinite;
  }
  @keyframes floaty { 50% { transform: translateY(-7px); } }
  @media (max-width: 560px) { .hero__pfp { width: 104px; height: 104px; margin-bottom: 0.7rem; } }

  /* ── scanner ── */
  .scanner { max-width: 800px; margin: 2.6rem auto 0; }
  .scanner__form { display: flex; gap: 0.7rem; }

  /* The lens: an inner rim highlight along the top edge, like glass. */
  .scanner__field {
    position: relative; flex: 1; display: flex; align-items: center; gap: 0.7rem;
    height: 60px; padding: 0 0.6rem 0 1.05rem;
    background: rgba(14, 10, 24, 0.86);
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(222, 206, 255, 0.09);
    backdrop-filter: blur(14px);
    transition: border-color 0.25s, box-shadow 0.25s;
  }
  .scanner__field:focus-within {
    border-color: rgba(196, 79, 208, 0.55);
    box-shadow: inset 0 1px 0 rgba(222, 206, 255, 0.12),
                0 0 0 4px rgba(196, 79, 208, 0.12),
                0 18px 55px -20px rgba(196, 79, 208, 0.55);
  }
  .scanner__icon { color: var(--dim); flex-shrink: 0; transition: color 0.25s; }
  .scanner__field:focus-within .scanner__icon { color: var(--vice-hi); }
  .scanner__input {
    flex: 1; min-width: 0; background: none; border: 0; outline: 0;
    font-family: var(--mono); font-size: 0.9rem; letter-spacing: -0.01em;
  }
  .scanner__input::placeholder { color: var(--dim); font-family: var(--sans); letter-spacing: 0; }
  .scanner__paste {
    padding: 0.35rem 0.7rem; border-radius: 8px; font-size: 0.76rem; font-weight: 600;
    color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-soft);
  }
  .scanner__paste:hover { color: var(--text); }

  .scanner__meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-top: 0.9rem;
  }
  .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
  .chips__label {
    font-family: var(--type); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-right: 0.2rem;
  }
  .chip {
    padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }
  .chip:hover { color: var(--vice-hi); border-color: rgba(196, 79, 208, 0.42); background: rgba(196, 79, 208, 0.09); }

  .scanner__hist { display: flex; gap: 0.4rem; align-items: center; }
  .scanner__hist .chip { font-family: var(--mono); font-size: 0.72rem; }

  .scanner__error {
    margin-top: 0.9rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    background: rgba(255, 75, 87, 0.1); border: 1px solid rgba(255, 75, 87, 0.34);
    color: #ffb8bf; font-size: 0.88rem; text-align: left;
  }

  /* ── progress ── */
  .progress { max-width: 800px; margin: 1.4rem auto 0; }
  .progress__bar { height: 3px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
  .progress__fill {
    height: 100%; width: 0%; border-radius: 99px;
    background: linear-gradient(90deg, var(--neon), var(--vice));
    box-shadow: 0 0 16px rgba(196, 79, 208, 0.7);
    transition: width 0.45s cubic-bezier(.4, 0, .2, 1);
  }
  .progress__steps {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.1rem; margin-top: 0.9rem;
    font-family: var(--type); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
  }
  .progress__steps li { display: flex; align-items: center; gap: 0.42rem; transition: color 0.3s; }
  .progress__steps i { width: 7px; height: 7px; border-radius: 50%; background: #2b2140; flex-shrink: 0; transition: all 0.3s; }
  .progress__steps li.running { color: var(--text); }
  .progress__steps li.running i { background: var(--vice-hi); box-shadow: 0 0 0 4px rgba(196, 79, 208, 0.2); animation: pulse2 1s infinite; }
  .progress__steps li.done { color: var(--muted); }
  .progress__steps li.done i { background: var(--excellent); }
  .progress__steps li.failed { color: var(--danger); }
  .progress__steps li.failed i { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 75, 87, 0.18); }
  @keyframes pulse2 { 50% { opacity: 0.35; } }

  /* ── what a scan opens up (empty state) ── */
  .capsules { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2.4rem auto 0; max-width: 880px; }
  .capsules li {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.5rem; border-radius: 999px;
    font-size: 0.82rem; color: var(--muted);
    background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.25s, border-color 0.25s, transform 0.25s;
  }
  .capsules li:hover { color: var(--text); border-color: var(--line); transform: translateY(-2px); }
  .capsules li span {
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(163, 134, 224, 0.09); color: var(--muted);
  }
  .capsules__star {
    color: #ecc0f2 !important;
    border-color: rgba(196, 79, 208, 0.36) !important;
    background: rgba(196, 79, 208, 0.1) !important;
  }
  .capsules__star span { background: rgba(196, 79, 208, 0.2); color: var(--vice-hi); }

  /* ── sticky score bar ── */
  .stickybar {
    position: fixed; left: 0; right: 0; top: 0; z-index: 55;
    background: rgba(11, 8, 19, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(150%);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(.16, 1, .3, 1);
  }
  .stickybar.show { transform: none; }
  .stickybar__inner { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0; }
  .stickybar__score {
    display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 0.55rem;
    border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.03em;
    color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tone) 38%, transparent);
  }
  .stickybar__id { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
  .stickybar__id b { font-weight: 700; font-size: 0.94rem; }
  .stickybar__id code { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }
  .stickybar__copy { color: var(--dim); display: grid; place-items: center; }
  .stickybar__copy:hover { color: var(--vice-hi); }
  .stickybar__stats { display: flex; gap: 0.4rem; margin-left: auto; flex-wrap: wrap; }
  .stickybar__stats span {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.75rem;
    background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted);
  }
  .stickybar__stats b { color: var(--text); font-weight: 620; }
  .stickybar__stats .hot { color: #ffb0b7; border-color: rgba(255, 75, 87, 0.32); background: rgba(255, 75, 87, 0.09); }
  .stickybar__stats .hot b { color: var(--danger); }
  .stickybar__top {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft); flex-shrink: 0;
  }
  .stickybar__top:hover { color: var(--vice-hi); border-color: rgba(196, 79, 208, 0.35); }
  @media (max-width: 700px) {
    .stickybar__id code { display: none; }
    .stickybar__stats span:nth-child(n + 3) { display: none; }
  }

  /* ── stats strip ── */
  .hero__stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem);
    margin-top: 3.2rem; padding-top: 2.2rem; border-top: 1px solid var(--line-soft);
  }
  .stat { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
  .stat b {
    font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em;
    background: linear-gradient(160deg, #fff, var(--mauve));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .stat span {
    font-family: var(--type); font-size: 0.66rem; font-weight: 700; color: var(--dim);
    text-transform: uppercase; letter-spacing: 0.16em;
  }

  /* ══════════════════════ case file ══════════════════════ */
  .report { padding: 1rem 0 4rem; scroll-margin-top: 90px; }
  .report[hidden] { display: none; }

  .panel {
    background: linear-gradient(180deg, rgba(163, 134, 224, 0.062), rgba(163, 134, 224, 0.016));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.15rem, 3vw, 1.7rem); margin-top: 1.1rem;
    backdrop-filter: blur(10px);
  }
  .panel__head { margin-bottom: 1.15rem; }
  .panel__head h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
  .panel__head p { margin-top: 0.3rem; font-size: 0.85rem; color: var(--muted); max-width: 75ch; }
  .panel__head--icon { display: flex; align-items: flex-start; gap: 0.8rem; }
  .panel__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 11px;
    background: rgba(196, 79, 208, 0.12); border: 1px solid rgba(196, 79, 208, 0.26);
    color: var(--vice-hi);
  }

  .grid-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
  .grid-2 > .panel { margin-top: 1.1rem; }
  @media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } .grid-2 > .panel + .panel { margin-top: 0; } }

  /* ── subject card ── */
  .tokencard {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
    padding: 1.15rem 1.35rem; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(163, 134, 224, 0.08), rgba(163, 134, 224, 0.02));
    border: 1px solid var(--line);
  }
  .tokencard__logo {
    width: 62px; height: 62px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
    background: var(--panel-2); border: 1px solid var(--line);
  }
  .tokencard__logo--ph { display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--dim); }
  .tokencard__id { min-width: 0; flex: 1 1 240px; }
  .tokencard__name { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
  .tokencard__name h2 { font-family: var(--display); font-size: 1.36rem; font-weight: 700; }
  .tokencard__sym {
    font-family: var(--mono); font-size: 0.8rem; color: var(--vice-hi);
    background: rgba(196, 79, 208, 0.12); border: 1px solid rgba(196, 79, 208, 0.28);
    padding: 0.1rem 0.5rem; border-radius: 6px;
  }
  .tokencard__ca {
    display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem;
    font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  }
  .tokencard__ca button { color: var(--dim); display: grid; place-items: center; }
  .tokencard__ca button:hover { color: var(--vice-hi); }

  .tokencard__nums { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
  .kv {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.5rem 0.85rem; border-radius: 12px;
    background: rgba(163, 134, 224, 0.05); border: 1px solid var(--line-soft);
    min-width: 5.5rem;
  }
  .kv b { font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
  .kv span { font-family: var(--type); font-size: 0.6rem; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; }
  .kv.up b { color: var(--excellent); } .kv.down b { color: var(--danger); } .kv.warn b { color: var(--caution); }

  .tokencard__links { display: flex; gap: 0.4rem; flex-wrap: wrap; width: 100%; }
  .linkicon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
  }
  .linkicon:hover {
    color: var(--vice-hi); border-color: rgba(196, 79, 208, 0.4);
    background: rgba(196, 79, 208, 0.1); transform: translateY(-1px);
  }
  .linkpill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.28rem 0.65rem; border-radius: 999px; font-size: 0.74rem; font-weight: 600;
    color: var(--muted); background: var(--panel); border: 1px solid var(--line-soft);
  }
  .linkpill:hover { color: var(--text); border-color: var(--line); }

  /* ── headline finding ── */
  .alert {
    display: flex; align-items: flex-start; gap: 0.95rem;
    padding: 1.05rem 1.25rem; border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--tone) 44%, transparent);
    background:
      linear-gradient(100deg, color-mix(in srgb, var(--tone) 16%, transparent), color-mix(in srgb, var(--tone) 5%, transparent)),
      rgba(14, 10, 24, 0.72);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 12%, transparent),
                0 18px 50px -26px color-mix(in srgb, var(--tone) 70%, transparent);
    position: relative; overflow: hidden;
  }
  .alert--danger { --tone: var(--danger); }
  .alert--warn { --tone: var(--caution); }
  .alert--good { --tone: var(--excellent); }
  .alert::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
  .alert--danger::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--tone) 20%, transparent), transparent 70%);
    animation: alertPulse 2.6s ease-in-out infinite;
  }
  @keyframes alertPulse { 50% { opacity: 0.35; } }
  .alert__icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 12px;
    background: color-mix(in srgb, var(--tone) 18%, transparent); color: var(--tone);
  }
  .alert__body { min-width: 0; }
  .alert__body b { display: block; font-family: var(--display); font-size: 1.04rem; font-weight: 700; letter-spacing: -0.02em; color: var(--tone); }
  .alert__body span { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted); }
  @media (max-width: 560px) {
    .alert { padding: 0.9rem 1rem; gap: 0.7rem; }
    .alert__icon { width: 32px; height: 32px; border-radius: 10px; }
    .alert__body b { font-size: 0.96rem; }
    .alert__body span { font-size: 0.84rem; }
  }

  /* ── verdict ── */
  .verdict {
    display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.4rem); align-items: center;
    margin-top: 1.1rem; padding: clamp(1.15rem, 2.8vw, 1.6rem);
    border-radius: var(--radius); border: 1px solid var(--line);
    background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tone) 14%, transparent), transparent 62%),
      linear-gradient(180deg, rgba(163, 134, 224, 0.07), rgba(163, 134, 224, 0.016));
    position: relative; overflow: hidden;
  }
  .verdict::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 90px -30px var(--tone);
  }
  @media (max-width: 760px) { .verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

  .gauge { position: relative; width: 176px; height: 176px; flex-shrink: 0; }
  .gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .gauge__track { fill: none; stroke: rgba(180, 152, 224, 0.1); stroke-width: 13; stroke-linecap: round; }
  .gauge__value {
    fill: none; stroke: var(--tone); stroke-width: 13; stroke-linecap: round;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tone) 70%, transparent));
    transition: stroke-dashoffset 1.4s cubic-bezier(.16, 1, .3, 1);
  }
  /* Glass glint across the dial — the lens, again. */
  .gauge::after {
    content: ''; position: absolute; inset: 14px; border-radius: 50%; pointer-events: none;
    background: linear-gradient(150deg, rgba(255,255,255,.13) 0%, transparent 42%);
  }
  .gauge__inner { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
  .gauge__num {
    font-family: var(--display); font-size: 3.05rem; font-weight: 700; letter-spacing: -0.055em;
    line-height: 1; color: var(--tone); font-variant-numeric: tabular-nums;
  }
  .gauge__den {
    font-family: var(--type); font-size: 0.62rem; color: var(--dim);
    text-transform: uppercase; letter-spacing: 0.18em; margin-top: 0.35rem;
  }

  .verdict__body { min-width: 0; position: relative; z-index: 1; }

  .tip { position: relative; }
  .tip::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 30;
    width: max-content; max-width: 15rem;
    padding: 0.5rem 0.7rem; border-radius: 10px;
    background: #140e22; border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-family: var(--sans); font-size: 0.76rem; font-weight: 400; line-height: 1.4; color: var(--muted);
    text-align: left; text-transform: none; letter-spacing: 0;
    opacity: 0; pointer-events: none; transform: translateY(-4px);
    transition: opacity 0.18s, transform 0.18s;
  }
  .tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: none; }

  .verdict__checks {
    position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3;
    display: grid; place-content: center; justify-items: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
    cursor: help; transition: border-color 0.2s, background 0.2s;
  }
  .verdict__checks:hover { border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: rgba(0,0,0,.5); }
  .verdict__checks b { font-family: var(--display); font-size: 1.18rem; font-weight: 700; line-height: 1; color: var(--text); }
  .verdict__checks span { font-family: var(--type); font-size: 0.52rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-top: 0.15rem; }

  /* The case stamp: the grade, set like a rubber stamp on a dossier. This is
     the page's signature, so nothing else competes with it. */
  .verdict__grade {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
    padding: 0.3rem 0.9rem 0.3rem 0.3rem; border-radius: 8px;
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border: 2px solid color-mix(in srgb, var(--tone) 55%, transparent);
    transform: rotate(-1.6deg);
    box-shadow: 0 0 22px -8px color-mix(in srgb, var(--tone) 80%, transparent);
  }
  .verdict__grade i {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 5px;
    background: var(--tone); color: #0b0813;
    font-family: var(--display); font-style: normal; font-weight: 700; font-size: 0.88rem;
  }
  .verdict__grade span {
    font-family: var(--type); font-size: 0.8rem; font-weight: 700; color: var(--tone);
    text-transform: uppercase; letter-spacing: 0.13em;
  }
  .verdict__title { font-family: var(--display); font-size: clamp(1.35rem, 3.2vw, 1.8rem); font-weight: 700; letter-spacing: -0.035em; padding-right: 4.5rem; }
  .verdict__line { margin-top: 0.4rem; color: var(--muted); font-size: 0.98rem; }

  .verdict__meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
  .metapill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.32rem 0.72rem; border-radius: 999px; font-size: 0.76rem;
    background: var(--panel); border: 1px solid var(--line-soft); color: var(--muted);
  }
  .metapill b { color: var(--text); font-weight: 620; }
  .metapill--toggle {
    cursor: pointer;
    border-color: color-mix(in srgb, var(--tone) 32%, transparent);
    background: color-mix(in srgb, var(--tone) 9%, transparent);
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
  }
  .metapill--toggle:hover { background: color-mix(in srgb, var(--tone) 16%, transparent); transform: translateY(-1px); }
  .metapill--toggle b { color: var(--tone); }
  .metapill__ico { display: grid; place-items: center; color: var(--tone); }
  .metapill__chev { display: grid; place-items: center; color: var(--dim); transform: rotate(90deg); transition: transform 0.22s; }
  .metapill--toggle[aria-expanded='true'] { background: color-mix(in srgb, var(--tone) 18%, transparent); }
  .metapill--toggle[aria-expanded='true'] .metapill__chev { transform: rotate(-90deg); }

  .verdict__drawer {
    margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
    max-height: 15rem; overflow-y: auto;
    animation: drawerIn 0.22s ease;
  }
  @keyframes drawerIn { from { opacity: 0; transform: translateY(-5px); } }
  .verdict__drawer li { display: flex; gap: 0.55rem; font-size: 0.85rem; color: var(--muted); line-height: 1.45; text-align: left; }
  .verdict__drawer li + li { margin-top: 0.55rem; padding-top: 0.55rem; border-top: 1px solid var(--line-soft); }
  .verdict__drawer li i { flex-shrink: 0; font-style: normal; color: var(--tone); font-weight: 700; }
  .verdict__drawer li b { display: block; color: var(--text); font-weight: 620; }

  .ceiling {
    margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    background: rgba(255, 75, 87, 0.09); border: 1px solid rgba(255, 75, 87, 0.32);
    text-align: left;
  }
  .ceiling h5 {
    font-family: var(--type); font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: #ff9aa3; margin-bottom: 0.45rem;
  }
  .ceiling li { font-size: 0.85rem; color: #ffc8cd; display: flex; gap: 0.5rem; }
  .ceiling li + li { margin-top: 0.28rem; }
  .ceiling li::before { content: '▸'; color: var(--danger); }

  /* ── flag boxes ── */
  .flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.1rem; align-items: start; }
  .flagbox {
    border-radius: var(--radius); border: 1px solid var(--line); padding: 1.1rem 1.2rem;
    background: linear-gradient(180deg, rgba(163, 134, 224, 0.055), rgba(163, 134, 224, 0.014));
  }
  .flagbox h4 {
    display: flex; align-items: center; gap: 0.5rem; font-family: var(--type); font-size: 0.78rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.85rem;
  }
  .flagbox--bad h4 { color: var(--danger); }
  .flagbox--warn h4 { color: var(--caution); }
  .flagbox--good h4 { color: var(--excellent); }
  .flagbox h4 svg { flex-shrink: 0; }
  .flagbox h4 em { margin-left: auto; font-style: normal; color: var(--dim); font-size: 0.76rem; letter-spacing: 0; }
  .flagbox li { display: flex; gap: 0.55rem; font-size: 0.87rem; line-height: 1.45; color: var(--muted); }
  .flagbox li + li { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
  .flagbox li b { color: var(--text); font-weight: 620; display: block; }
  .flagbox li i { flex-shrink: 0; margin-top: 0.18rem; font-style: normal; }
  .flagbox--bad li i { color: var(--danger); }
  .flagbox--warn li i { color: var(--caution); }
  .flagbox--good li i { color: var(--excellent); }
  .flagbox--empty { color: var(--dim); font-size: 0.85rem; }

  /* ── categories ── */
  .cats { display: grid; gap: 0.85rem; }
  .cat { display: grid; grid-template-columns: 30px 1fr auto; gap: 0.8rem; align-items: center; }
  .cat__icon { color: var(--muted); display: grid; place-items: center; }
  .cat__body { min-width: 0; }
  .cat__top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
  .cat__label { font-weight: 620; font-size: 0.93rem; }
  .cat__blurb { font-size: 0.78rem; color: var(--dim); }
  .cat__bar { height: 8px; margin-top: 0.42rem; border-radius: 99px; background: rgba(163, 134, 224, 0.09); overflow: hidden; }
  .cat__fill {
    height: 100%; width: 0; border-radius: 99px; background: var(--tone);
    box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 65%, transparent);
    transition: width 1.1s cubic-bezier(.16, 1, .3, 1);
  }
  .cat__score { font-family: var(--mono); font-size: 0.92rem; font-weight: 600; color: var(--tone); min-width: 3.4rem; text-align: right; }
  .cat__score small { color: var(--dim); font-weight: 400; }

  /* ── findings ── */
  .checks { display: grid; gap: 0.5rem; }
  .checkgroup__title {
    font-family: var(--type); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim);
    margin: 0.9rem 0 0.15rem; padding-left: 0.15rem;
  }
  .checkgroup__title:first-child { margin-top: 0; }

  .check {
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    background: rgba(163, 134, 224, 0.025);
    overflow: hidden; transition: border-color 0.2s, background 0.2s;
  }
  .check:hover { border-color: var(--line); background: rgba(163, 134, 224, 0.045); }
  .check > summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.72rem 0.9rem; cursor: pointer; list-style: none; }
  .check > summary::-webkit-details-marker { display: none; }
  .check__badge {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
    background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone);
  }
  .check__label { font-size: 0.9rem; font-weight: 600; }
  .check__detail { font-size: 0.82rem; color: var(--muted); margin-top: 0.1rem; }
  .check__mid { min-width: 0; flex: 1; }
  .check__pts { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); white-space: nowrap; }
  .check__chev { color: var(--dim); transition: transform 0.25s; flex-shrink: 0; }
  .check[open] .check__chev { transform: rotate(90deg); }
  .check__more { padding: 0 0.9rem 0.9rem 3.4rem; }
  .check__why { font-size: 0.85rem; color: var(--muted); }
  .check__ev {
    display: inline-block; margin-top: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 8px;
    font-family: var(--mono); font-size: 0.73rem; color: #dcc2f0;
    background: rgba(196, 79, 208, 0.07); border: 1px solid rgba(196, 79, 208, 0.18);
    max-width: 100%; overflow-x: auto; white-space: nowrap;
  }

  /* ── holders ── */
  .holders { display: grid; gap: 0.42rem; }
  .holder {
    display: grid; grid-template-columns: 1.7rem 1fr auto; gap: 0.65rem; align-items: center;
    padding: 0.42rem 0.5rem; border-radius: 9px; transition: background 0.2s;
  }
  .holder:hover { background: rgba(163, 134, 224, 0.05); }
  .holder__rank { font-family: var(--mono); font-size: 0.73rem; color: var(--dim); text-align: right; }
  .holder__who { display: flex; align-items: center; gap: 0.45rem; min-width: 0; }
  .holder__addr { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
  .holder__addr:hover { color: var(--vice-hi); }
  .tag {
    font-family: var(--type); font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 0.1rem 0.42rem; border-radius: 5px; white-space: nowrap;
  }
  .tag--pool { background: rgba(196, 79, 208, 0.16); color: #e0a8e8; }
  .tag--lock { background: rgba(46, 217, 130, 0.16); color: var(--excellent); }
  .tag--burn { background: rgba(255, 75, 87, 0.15); color: #ffa3aa; }
  .tag--program { background: rgba(163, 134, 224, 0.12); color: var(--muted); }
  .tag--frozen { background: rgba(53, 211, 193, 0.18); color: var(--neon); }
  .holder__pct { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; text-align: right; min-width: 4.2rem; }
  .holder__meter { grid-column: 2 / -1; height: 4px; border-radius: 99px; background: rgba(163, 134, 224, 0.09); overflow: hidden; margin-top: -0.15rem; }
  .holder__meter i { display: block; height: 100%; border-radius: 99px; background: var(--tone); }
  .holders__sum { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }

  /* ── market ── */
  .market { display: grid; gap: 0.9rem; }
  .marketgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 0.75rem; }
  .marketgrid .kv { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: rgba(163, 134, 224, 0.035); border: 1px solid var(--line-soft); min-width: 0; }
  .kv i { display: block; color: var(--dim); margin-bottom: 0.1rem; }

  .simbox { padding: 0.9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: rgba(163, 134, 224, 0.03); }
  .simbox__head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 620; margin-bottom: 0.7rem; }
  .simflow { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.78rem; }
  .simflow span { padding: 0.32rem 0.6rem; border-radius: 8px; background: rgba(163, 134, 224, 0.07); border: 1px solid var(--line-soft); }
  .simflow em { color: var(--dim); font-style: normal; }
  .simflow .ok { color: var(--excellent); border-color: rgba(46, 217, 130, 0.34); background: rgba(46, 217, 130, 0.09); }
  .simflow .bad { color: var(--danger); border-color: rgba(255, 75, 87, 0.34); background: rgba(255, 75, 87, 0.09); }
  .simbox__note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--muted); }

  .dexlist { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .launch__cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; }
  .launch__cta .btn { flex: 1 1 auto; }

  /* ── case-file actions ── */
  .report__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 1.2rem; }
  .report__sources { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .srcpill { font-family: var(--mono); font-size: 0.67rem; padding: 0.2rem 0.5rem; border-radius: 6px; border: 1px solid var(--line-soft); color: var(--dim); }
  .srcpill.on { color: var(--excellent); border-color: rgba(46, 217, 130, 0.32); background: rgba(46, 217, 130, 0.08); }

  .report__disclaimer {
    margin-top: 1.3rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
    background: rgba(163, 134, 224, 0.03); border: 1px solid var(--line-soft);
    font-size: 0.84rem; color: var(--muted);
  }
  .report__disclaimer strong { color: var(--caution); }

  /* ══════════════════════ sections ══════════════════════ */
  .section { padding: clamp(4rem, 10vw, 7rem) 0; scroll-margin-top: 90px; }
  .section--token { background: radial-gradient(90% 60% at 50% 0%, rgba(196, 79, 208, 0.12), transparent 70%); }

  .section__head { max-width: 68ch; margin-bottom: 2.6rem; }
  .eyebrow {
    display: inline-block; font-family: var(--type); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em; color: var(--vice-hi); margin-bottom: 0.8rem;
  }
  .section__head h2 { font-family: var(--display); font-size: clamp(1.85rem, 4.4vw, 2.9rem); font-weight: 700; letter-spacing: -0.04em; }
  .section__head p { margin-top: 0.85rem; color: var(--muted); font-size: 1.01rem; }

  /* ── criteria grid ── */
  .crit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 1rem; }
  .crit {
    padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(163, 134, 224, 0.055), rgba(163, 134, 224, 0.014));
    position: relative; overflow: hidden; transition: transform 0.3s, border-color 0.3s;
  }
  .crit:hover { transform: translateY(-3px); border-color: rgba(196, 79, 208, 0.32); }
  .crit::after {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(70% 60% at 50% 0%, rgba(196, 79, 208, 0.12), transparent 70%);
  }
  .crit:hover::after { opacity: 1; }
  .crit__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; position: relative; z-index: 1; }
  .crit__icon {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    background: rgba(196, 79, 208, 0.12); border: 1px solid rgba(196, 79, 208, 0.26); color: var(--vice-hi);
  }
  .crit__head h4 { font-family: var(--display); font-size: 0.99rem; font-weight: 700; }
  .crit__head em { font-style: normal; font-size: 0.72rem; color: var(--dim); display: block; margin-top: 0.12rem; }
  .crit__w { margin-left: auto; font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--vice-hi); }
  .crit ul { position: relative; z-index: 1; }
  .crit ul li { position: relative; padding-left: 1.1rem; font-size: 0.86rem; color: var(--muted); }
  .crit ul li + li { margin-top: 0.5rem; }
  .crit ul li::before {
    content: ''; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px;
    border-radius: 50%; background: var(--vice); opacity: 0.75;
  }
  .crit ul li b { color: var(--text); font-weight: 620; }

  /* ── method ── */
  .method {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem 2rem;
    margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--line-soft);
  }
  .method h4 { font-family: var(--display); font-size: 0.99rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.55rem; }
  .method .num { font-family: var(--type); font-size: 0.76rem; font-weight: 700; color: var(--vice-hi); letter-spacing: 0.1em; }
  .method p { margin-top: 0.45rem; font-size: 0.88rem; color: var(--muted); }
  .method em { color: var(--text); font-style: normal; }

  /* ── scale ── */
  .scale { margin-top: 3rem; }
  .scale h4 { font-family: var(--type); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 0.85rem; }
  .scale__bar { display: flex; gap: 4px; }
  .scale__seg {
    flex: 1; padding: 0.75rem 0.6rem; border-radius: 10px;
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  }
  .scale__seg b { display: block; font-family: var(--mono); font-size: 0.84rem; color: var(--c); }
  .scale__seg span { font-size: 0.73rem; color: var(--muted); }
  @media (max-width: 720px) { .scale__bar { flex-wrap: wrap; } .scale__seg { flex: 1 1 30%; } }

  /* ══════════════════════ token panel ══════════════════════ */
  .tokenpanel { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.1rem; }
  @media (max-width: 900px) { .tokenpanel { grid-template-columns: 1fr; } }

  .tokenpanel__main, .tokenpanel__side {
    padding: clamp(1.3rem, 3vw, 1.9rem); border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(163, 134, 224, 0.065), rgba(163, 134, 224, 0.016));
  }
  .tokenpanel__main { border-color: rgba(196, 79, 208, 0.28); box-shadow: 0 30px 80px -40px rgba(196, 79, 208, 0.55); }

  .tokenpanel__id { display: flex; align-items: center; gap: 0.95rem; }
  .tokenlogo {
    width: 66px; height: 66px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(150deg, rgba(196, 79, 208, 0.26), rgba(53, 211, 193, 0.2));
    border: 1px solid rgba(196, 79, 208, 0.3); color: var(--vice-hi);
    box-shadow: 0 0 40px -12px rgba(196, 79, 208, 0.7);
  }
  .tokenlogo img { width: 100%; height: 100%; object-fit: cover; }
  .tokenpanel__id h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.035em; }
  .tokenpanel__id p { font-size: 0.83rem; color: var(--muted); }
  .tokenpanel__selfscore {
    margin-left: auto; text-align: center; padding: 0.4rem 0.8rem; border-radius: 12px;
    background: rgba(196, 79, 208, 0.1); border: 1px solid rgba(196, 79, 208, 0.3);
  }
  .tokenpanel__selfscore b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--vice-hi); line-height: 1; }
  .tokenpanel__selfscore span { font-family: var(--type); font-size: 0.6rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }

  .ca {
    display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap;
    margin-top: 1.3rem; padding: 0.85rem 0.85rem 0.85rem 1rem;
    border-radius: var(--radius-sm); background: rgba(0,0,0,.38); border: 1px dashed rgba(196, 79, 208, 0.34);
  }
  .ca__label { font-family: var(--type); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); width: 100%; }
  .ca__value { font-family: var(--mono); font-size: 0.8rem; color: var(--vice-hi); word-break: break-all; flex: 1; min-width: 0; }
  .ca__copy {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 9px;
    font-size: 0.78rem; font-weight: 620; color: #fff; background: var(--vice);
  }
  .ca__copy[disabled] { opacity: 0.35; pointer-events: none; }

  .tokenpanel__cta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.2rem; }
  .tokenpanel__note { margin-top: 1rem; font-size: 0.8rem; color: var(--dim); }
  .tokenpanel__note strong { color: var(--caution); }

  .tokenpanel__side h4 { font-family: var(--display); font-size: 0.99rem; font-weight: 700; margin-bottom: 0.9rem; }
  .ticks li { position: relative; padding-left: 1.6rem; font-size: 0.87rem; color: var(--muted); }
  .ticks li + li { margin-top: 0.7rem; }
  .ticks li::before {
    content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 0.66rem; font-weight: 800;
    background: rgba(196, 79, 208, 0.17); color: var(--vice-hi);
  }
  .tokenpanel__stats { display: flex; gap: 1.4rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
  .tokenpanel__stats b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
  .tokenpanel__stats span { font-family: var(--type); font-size: 0.66rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }

  /* ── roadmap ── */
  .roadmap { margin-top: 3rem; }
  .roadmap h4 { font-family: var(--type); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 1.1rem; }
  .roadmap__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
  .roadmap__list li {
    padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
    background: rgba(163, 134, 224, 0.025); position: relative;
  }
  .roadmap__list li.done { border-color: rgba(196, 79, 208, 0.32); background: rgba(196, 79, 208, 0.06); }
  .roadmap__list b { display: block; font-family: var(--display); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.3rem; }
  .roadmap__list li.done b { color: var(--vice-hi); }
  .roadmap__list span { font-size: 0.82rem; color: var(--muted); }

  /* ── faq ── */
  .faq { display: grid; gap: 0.6rem; max-width: 900px; }
  .faq details {
    border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: rgba(163, 134, 224, 0.025);
    transition: border-color 0.2s, background 0.2s;
  }
  .faq details:hover { border-color: var(--line); }
  .faq details[open] { background: rgba(163, 134, 224, 0.05); border-color: rgba(196, 79, 208, 0.28); }
  .faq summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 620; font-size: 0.97rem; list-style: none; display: flex; align-items: center; gap: 0.75rem; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; color: var(--vice-hi); font-weight: 400; transition: transform 0.25s; line-height: 1; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq p { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: 0.9rem; max-width: 80ch; }
  .faq p + p { padding-top: 0; margin-top: -0.4rem; }
  .faq code { font-family: var(--mono); font-size: 0.84em; color: var(--vice-hi); background: rgba(196, 79, 208, 0.1); padding: 0.1rem 0.35rem; border-radius: 5px; }

  /* ══════════════════════ footer ══════════════════════ */
  .footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 2.5rem; background: rgba(0,0,0,.38); }
  .footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }
  .footer__brand { display: flex; align-items: center; gap: 0.55rem; color: var(--vice-hi); font-size: 1rem; }
  .footer__brand b { color: var(--text); font-family: var(--display); font-weight: 700; }
  .footer__brand span { color: var(--dim); font-weight: 400; font-size: 0.85rem; }
  .footer__note { margin-top: 0.55rem; font-size: 0.82rem; color: var(--dim); max-width: 52ch; }
  .footer__links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .footer__legal { margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
  .footer__legal p { font-size: 0.76rem; color: var(--dim); max-width: 90ch; }

  /* ══════════════════════ modal + toast ══════════════════════ */
  .modal { max-width: 520px; width: calc(100% - 2.5rem); background: transparent; }
  .modal::backdrop { background: rgba(4, 3, 9, 0.8); backdrop-filter: blur(6px); }
  .modal__inner {
    padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line);
    background: linear-gradient(180deg, #150f24, #0b0814); box-shadow: var(--shadow);
  }
  .modal h3 { font-family: var(--display); font-size: 1.13rem; font-weight: 700; margin-bottom: 1.2rem; }
  .field { display: block; }
  .field > span { display: block; font-size: 0.8rem; font-weight: 620; margin-bottom: 0.4rem; }
  .field input {
    width: 100%; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
    background: rgba(0,0,0,.45); border: 1px solid var(--line); outline: 0;
    font-family: var(--mono); font-size: 0.8rem;
  }
  .field input:focus { border-color: rgba(196, 79, 208, 0.5); }
  .field small { display: block; margin-top: 0.45rem; font-size: 0.76rem; color: var(--dim); }
  .presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
  .switch { display: flex; gap: 0.7rem; align-items: flex-start; margin-top: 1.3rem; cursor: pointer; }
  .switch input { width: 18px; height: 18px; accent-color: var(--vice); margin-top: 0.15rem; flex-shrink: 0; }
  .switch span { font-size: 0.86rem; font-weight: 620; }
  .switch small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--dim); margin-top: 0.2rem; }
  .modal__actions { display: flex; justify-content: flex-end; gap: 0.55rem; margin-top: 1.6rem; }

  .toast {
    position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 140%);
    padding: 0.7rem 1.15rem; border-radius: 999px; z-index: 99;
    background: rgba(20, 14, 34, 0.96); border: 1px solid rgba(196, 79, 208, 0.38); color: var(--text);
    font-size: 0.86rem; font-weight: 600; box-shadow: var(--shadow); backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(.16, 1, .3, 1); pointer-events: none;
  }
  .toast.show { transform: translate(-50%, 0); }
}

@layer utilities {
  /* ══════════════════════ phones ══════════════════════
     Most people paste an address from a phone while a chat is telling them to
     hurry. Everything below keeps the scanner and the verdict usable at 390px
     with no horizontal scroll. */
  @media (max-width: 560px) {
    .scanner__form { flex-direction: column; }
    .btn--scan { width: 100%; height: 54px; }
    .scanner__field { height: 54px; }
    .scanner__meta { flex-direction: column; align-items: flex-start; gap: 0.55rem; }

    .hero { padding-top: 1rem; }
    .hero__stats { gap: 1.25rem 2rem; }
    .stat b { font-size: 1.35rem; }

    .tokencard { padding: 1rem; gap: 0.85rem; }
    .tokencard__logo { width: 48px; height: 48px; }
    .tokencard__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-left: 0; width: 100%; }
    .kv { min-width: 0; padding: 0.45rem 0.5rem; align-items: center; text-align: center; }
    .kv b { font-size: 1rem; }
    .kv span { font-size: 0.56rem; letter-spacing: 0.06em; }
    .linkicon { width: 38px; height: 38px; }
    .panel__icon { width: 32px; height: 32px; border-radius: 9px; }
    .verdict__drawer { max-height: 12rem; }

    .gauge { width: 148px; height: 148px; }
    .gauge__num { font-size: 2.55rem; }
    .verdict { padding: 1rem; }
    .verdict__meta { justify-content: center; }
    .verdict__title { padding-right: 0; }
    .verdict__checks { width: 48px; height: 48px; top: 0.6rem; right: 0.6rem; }
    .verdict__checks b { font-size: 1rem; }
    .tip::after { max-width: 12rem; font-size: 0.72rem; }

    .check > summary { flex-wrap: wrap; padding: 0.7rem 0.75rem; }
    .check__mid { flex: 1 1 100%; order: 3; }
    .check__more { padding-left: 0.75rem; }

    .holder { grid-template-columns: 1.4rem 1fr auto; gap: 0.45rem; }
    .holder__addr { font-size: 0.72rem; }
    .holder__pct { font-size: 0.74rem; min-width: 3.4rem; }
    .tag { font-size: 0.58rem; padding: 0.08rem 0.32rem; }

    .panel { padding: 1rem 0.85rem; }
    .report__actions { gap: 0.45rem; }
    .report__sources { margin-left: 0; width: 100%; }

    .launch__cta { flex-direction: column; }
    .launch__cta .btn { width: 100%; }

    .ca__value { font-size: 0.72rem; }
    .tokenpanel__cta { flex-direction: column; }
    .tokenpanel__cta .btn { width: 100%; }
    .tokenpanel__id { flex-wrap: wrap; }
    .tokenpanel__selfscore { margin-left: 0; }
  }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
  .spinner {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(222, 206, 255, .28);
    border-top-color: #fff; animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  [hidden] { display: none !important; }
  .nowrap { white-space: nowrap; }
  .hero__lede-tail { display: block; white-space: nowrap; margin-top: 0.3rem; }
}
