/* Instagram follower comparison: two live counts side by side. One file, system fonts, no framework. */

:root {
    color-scheme: light;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-ar: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #F9F9F7; --sunken: #EDEDE9;
    --ink: #121214; --ink-2: #3B3B41; --muted: #66666E;
    --line: #E3E3DE; --line-2: #D0D0CA;
    --accent: #C8246C; --focus: #4F5BD5;
    --good: #0B7A45; --good-bg: #E5F3EB; --bad: #B4322A; --bad-bg: #FBEAE8; --warn: #9A6500;
    --btn: #121214; --btn-ink: #FFFFFF;
    --chart: #C8246C; --chart-wash: rgba(200, 36, 108, .10); --grid: #ECECE7;
    --brand: #FF4757; --tld: #C62A3C; --verified: #0095F6;
    --grad: linear-gradient(90deg, #F9CE34 0%, #EE2A7B 48%, #6228D7 100%);
    --grad-ring: conic-gradient(from 200deg, #F9CE34, #EE2A7B, #6228D7, #EE2A7B, #F9CE34);
    --shadow: 0 1px 2px rgba(18, 18, 20, .04), 0 14px 32px -20px rgba(18, 18, 20, .22);
    --shadow-pop: 0 18px 48px -12px rgba(18, 18, 20, .28);

    --r-lg: 14px; --r-md: 10px; --r-sm: 8px; --r-pill: 999px;
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
    --wrap: 1248px; --gutter: 24px; --rail: 320px; --gap: 16px;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
        --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #9C9CA5;
        --line: #27272B; --line-2: #37373D;
        --accent: #FF5C9E; --focus: #8E96FF;
        --good: #46D08A; --good-bg: rgba(70, 208, 138, .12); --bad: #FF7B70; --bad-bg: rgba(255, 123, 112, .12); --warn: #E8B04B;
        --btn: #F3F3F1; --btn-ink: #121214;
        --chart: #FF5C9E; --chart-wash: rgba(255, 92, 158, .10); --grid: #232327;
        --tld: #FF5C6C; --verified: #3AA9F8;
        --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
        --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .7);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
    --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #9C9CA5;
    --line: #27272B; --line-2: #37373D;
    --accent: #FF5C9E; --focus: #8E96FF;
    --good: #46D08A; --good-bg: rgba(70, 208, 138, .12); --bad: #FF7B70; --bad-bg: rgba(255, 123, 112, .12); --warn: #E8B04B;
    --btn: #F3F3F1; --btn-ink: #121214;
    --chart: #FF5C9E; --chart-wash: rgba(255, 92, 158, .10); --grid: #232327;
    --tld: #FF5C6C; --verified: #3AA9F8;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
    --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .7);
}
html[lang="ar"] body { font-family: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 70; padding: 10px 14px; background: var(--btn); color: var(--btn-ink); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 40px; padding-inline: 16px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn .i { width: 16px; height: 16px; }
.btn-ink { background: var(--btn); color: var(--btn-ink); }
.btn-ink:hover { opacity: .9; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 32px; padding-inline: 12px; font-size: 12.5px; }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- header ---------- */

.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: var(--s4); height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.tld { color: var(--tld); }
.head-nav { display: flex; gap: var(--s5); margin-inline: auto var(--s2); }
.head-nav a { padding-block: 17px 15px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); border-color: var(--line-2); }
.lang-list { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-end: 0; min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.lang-list a { display: block; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13.5px; text-decoration: none; }
.lang-list a:hover { background: var(--sunken); }
.lang-list a[aria-current] { font-weight: 650; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- page head + pickers ---------- */

.top { padding-block: var(--s7) var(--s5); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin-top: 10px; max-width: 60ch; color: var(--ink-2); }

.pick { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) auto; column-gap: var(--s3); align-items: end; }
.pick-field { position: relative; min-width: 0; }
.pick-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pick-box { display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.pick-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.pick-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font-size: 16px; outline: none; }
.pick-box input::placeholder { color: var(--muted); opacity: .85; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot-a { background: var(--ink); }
.dot-b { background: var(--chart); }
.pick-swap { margin-bottom: 7px; }
.pick-go { height: 50px; padding-inline: 22px; font-size: 15px; }
.pick-msg { font-size: 12.5px; color: var(--bad); }
.pick-msg:not(:empty) { margin-top: 8px; }

.suggest { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.sg-head { padding: 6px 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sg-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; }
.sg-opt[aria-selected="true"], .sg-opt:hover { background: var(--sunken); }
.sg-pic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--sunken); color: var(--ink-2); font-size: 13px; font-weight: 650; }
.sg-text { flex: 1; min-width: 0; }
.sg-name { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sg-user { display: block; font-size: 12.5px; color: var(--muted); }
.sg-count { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-wait { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- duel card ---------- */

.duel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "a g b" "a n b" "s s s";
    margin-top: var(--s5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    scroll-margin-top: 16px;
}
.side-a { grid-area: a; }
.side-b { grid-area: b; }
.side { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 24px 28px 22px; }
/* the leader gets the gradient edge */
.side::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.side.is-lead::before { opacity: 1; }
.who { display: flex; align-items: center; gap: 12px; }
.avatar-ring { flex: none; padding: 2px; border-radius: 50%; background: var(--grad-ring); }
.avatar { width: 52px; height: 52px; border: 2px solid var(--surface); border-radius: 50%; background: var(--sunken); object-fit: cover; }
.who-text { min-width: 0; }
.who-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 18px; font-weight: 650; line-height: 1.3; }
.who-name a { overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.who-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.verified { flex: none; width: 18px; height: 18px; color: var(--verified); }
.who-handle { max-width: 100%; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }

.side-count { position: relative; margin-top: 18px; container-type: inline-size; }
.count { height: 1em; font-size: clamp(30px, 14cqi, 72px); font-weight: 700; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.count-vis { display: inline-block; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg-col { display: block; line-height: 1; white-space: pre; transition: transform .6s cubic-bezier(.2, .75, .2, 1); }
/* the digits live in CSS, so the page text (and what crawlers read) is the number, not ten digit columns */
.dg-col::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; }
/* two identical animations per direction: switching the name restarts the flash without a reflow */
.fu0 { animation: fu0 1.2s ease-out; } .fu1 { animation: fu1 1.2s ease-out; }
.fd0 { animation: fd0 1.2s ease-out; } .fd1 { animation: fd1 1.2s ease-out; }
@keyframes fu0 { from { color: var(--good); } } @keyframes fu1 { from { color: var(--good); } }
@keyframes fd0 { from { color: var(--bad); } } @keyframes fd1 { from { color: var(--bad); } }
.tick { position: absolute; top: 50%; inset-inline-end: 0; margin-top: -.75em; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; }
.tick.up { color: var(--good); }
.tick.down { color: var(--bad); }
.tick.on0 { animation: tick0 2.6s ease-out; }
.tick.on1 { animation: tick1 2.6s ease-out; }
@keyframes tick0 { 0% { opacity: 0; transform: translateY(4px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tick1 { 0% { opacity: 0; transform: translateY(4px); } 12%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.side-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 14px; }
.count-label { flex: none; font-size: 13px; font-weight: 500; color: var(--muted); }
.chip-d { display: inline-block; min-width: 0; height: 24px; padding-inline: 9px; overflow: hidden; border-radius: var(--r-pill); background: var(--sunken); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 24px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.chip-d[data-sign="1"] { background: var(--good-bg); color: var(--good); }
.chip-d[data-sign="-1"] { background: var(--bad-bg); color: var(--bad); }
.chip-d.is-wait { font-weight: 500; color: var(--muted); }
#a-visit, #b-visit { min-width: 15ch; text-align: center; }

.nf { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 96px; margin-top: 18px; color: var(--ink-2); font-size: 14px; }
.side.is-nf .side-count, .side.is-nf .side-meta { display: none; }

/* skeleton: nothing shows a made-up number while the first answer is on its way */
.duel .sk { border-radius: 8px; }
.side:not(.is-ready) .sk, .duel:not(.is-ready) .gap-col .sk { color: transparent; background: var(--sunken); }
.side:not(.is-ready) .avatar-ring { background: var(--sunken); }
/* the share bar and the gap only mean something once both accounts answered */
.duel:not(.is-ready) .split > *, .duel.has-nf .gap-label, .duel.has-nf .gap-num { visibility: hidden; }

.gap-col, .gap-notes { min-width: 0; padding-inline: 20px; border-inline: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.gap-col { grid-area: g; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 20px; container-type: inline-size; }
.gap-notes { grid-area: n; padding-bottom: 18px; }
/* a fixed, centred box with left-aligned contents: the status text can change without anything moving */
.live { display: flex; align-self: center; align-items: center; gap: 7px; min-width: 196px; font-size: 12.5px; white-space: nowrap; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.duel[data-state="live"] .live-dot { background: var(--accent); }
.duel[data-state="live"] .live-dot::after { animation: ping 2s ease-out infinite; }
.duel[data-state="retry"] .live-dot { background: var(--warn); }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.live-text { font-weight: 650; }
.live-ago { color: var(--muted); font-variant-numeric: tabular-nums; }
.gap-label { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.gap-num { height: 1em; margin-top: 4px; font-size: clamp(24px, 14cqi, 44px); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gap-lead { min-height: 2.8em; margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.gap-line { min-height: 2.8em; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; text-wrap: balance; }

.split { grid-area: s; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 28px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.split-cap { text-align: center; }
.split-bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: var(--r-pill); background: var(--chart); }
.split-bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(.5); transform-origin: 0 50%; transition: transform .6s ease; }
.split-pct { font-weight: 650; color: var(--ink-2); }

.stage-exit { display: none; position: absolute; top: 16px; inset-inline-end: 16px; z-index: 4; }
.duel:fullscreen, .duel.is-stage { align-content: center; margin: 0; padding: 3vw; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
.duel.is-stage { position: fixed; inset: 0; z-index: 60; overflow: auto; }
.duel:fullscreen .stage-exit, .duel.is-stage .stage-exit { display: inline-grid; }
.duel:fullscreen, .duel.is-stage { grid-template-rows: auto auto auto; }
.duel:fullscreen .gap-col, .duel.is-stage .gap-col, .duel:fullscreen .gap-notes, .duel.is-stage .gap-notes { background: none; }
@media (min-width: 900px) { .duel:fullscreen .count, .duel.is-stage .count { font-size: clamp(30px, 15cqi, 140px); } }
body.no-scroll { overflow: hidden; }

/* ---------- actions + share ---------- */

.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s3); }
.act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 46px; padding-inline: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.act span { overflow: hidden; text-overflow: ellipsis; }
.act:hover { border-color: var(--line-2); background: var(--surface-2); }
.act[aria-expanded="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.act-primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.act-primary:hover { background: var(--btn); border-color: var(--btn); opacity: .9; }
.act-primary[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--btn); }
.act.is-done { background: var(--good); border-color: var(--good); color: #fff; }
html:not(.js) .act-js { display: none; }

.share-panel { margin-top: var(--s3); padding: 16px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field-row { display: flex; gap: var(--s2); }
.field { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font: 12.5px var(--mono); }
.field:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.btn-copy { min-width: 120px; }
.btn-copy .i-done { display: none; }
.btn-copy.is-done { background: var(--good); border-color: var(--good); color: #fff; }
.btn-copy.is-done .i-idle { display: none; }
.btn-copy.is-done .i-done { display: block; }
.share-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* ---------- chart ---------- */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.chart-card { margin-top: var(--s4); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.card-title { font-size: 15px; font-weight: 650; }
.seg { display: flex; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; height: 34px; padding-inline: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.seg label + input + label { margin-inline-start: -1px; }
.seg input:first-of-type + label { border-start-start-radius: var(--r-sm); border-end-start-radius: var(--r-sm); }
.seg label:last-of-type { border-start-end-radius: var(--r-sm); border-end-end-radius: var(--r-sm); }
.seg input:checked + label { position: relative; background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }

.chart { position: relative; height: 160px; margin-top: 16px; border-radius: 6px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .gl { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .area { fill: var(--chart-wash); }
.chart .ln { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.a { stroke: var(--ink); }
.chart .end { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart .end.a { fill: var(--ink); }
.chart .ping { fill: var(--chart); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
.chart .xh { stroke: var(--line-2); stroke-width: 1; }
.chart .xd { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.tip { position: absolute; top: 4px; z-index: 3; padding: 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-pop); font-size: 12.5px; line-height: 1.45; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.tip b { display: block; font-size: 14px; }
.tip .up { color: var(--good); }
.tip .down { color: var(--bad); }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; min-height: 19px; margin-top: 10px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 8px; height: 8px; }

/* ---------- ads, sections, promo ---------- */

.ad { max-width: 970px; margin: var(--s8) auto 0; text-align: center; }
.ad-label { margin-bottom: 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ad ins { min-height: 280px; }
.ad-fluid ins { min-height: 250px; }
.ad-h { max-width: 728px; }
.ad-h ins { min-height: 100px; }

.sec { max-width: 760px; margin: var(--s8) auto 0; }
.sec-title { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.pairs, .more-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 13.5px; line-height: 1.3; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip .vs { color: var(--muted); font-size: 12px; }

.spacenode-promo-card { display: block; max-width: 760px; margin: var(--s8) auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.spacenode-promo-overlay { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.spacenode-promo-logo { flex: none; width: 72px; height: 36px; border-radius: 6px; }
.spacenode-promo-text { flex: 1; min-width: 0; }
.spacenode-promo-eyebrow { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.spacenode-promo-title { display: block; margin-top: 2px; font-size: 17px; font-weight: 650; }
.spacenode-promo-desc { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.spacenode-promo-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; }
.spacenode-promo-card:hover .spacenode-promo-cta { border-color: var(--ink); }

.prose h2, .faq h2 { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
.prose h3 { margin-top: var(--s6); font-size: 18px; font-weight: 650; }
.prose h2 + h3, .prose > h3:first-child { margin-top: 0; }
.prose p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.prose a, .faq a { color: var(--ink); text-underline-offset: 3px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: var(--s4); border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.75px no-repeat, linear-gradient(currentColor, currentColor) center / 1.75px 14px no-repeat; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font-size: 15px; font-weight: 600; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); line-height: 1.6; }

/* ---------- footer ---------- */

.site-foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-block: var(--s7) var(--s4); }
.foot-title { font-size: 13px; font-weight: 650; }
.foot-cols ul { margin-top: 6px; }
.foot-cols a, .foot-langs a { display: inline-block; padding-block: 5px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.foot-cols a:hover, .foot-langs a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 0 14px; }
.foot-langs a { font-size: 12.5px; }

/* ---------- tablet: the duel stacks ---------- */

@media (max-width: 899px) {
    /* stacked: first account, the gap, second account, then the notes */
    .duel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "a" "g" "b" "n" "s"; }
    .gap-col { padding: 16px 16px 14px; border-inline: 0; border-block: 1px solid var(--line); }
    .gap-notes { padding: 12px 16px 14px; border-inline: 0; border-top: 1px solid var(--line); }
    .side-b::before { top: -1px; }
}
@media (min-width: 900px) {
    /* the second account mirrors the first, so the two counts face each other */
    .side-b { text-align: end; }
    .side-b .who { flex-direction: row-reverse; }
    .side-b .who-name, .side-b .side-meta { justify-content: flex-end; }
    .side-b .tick { inset-inline: 0 auto; }
}

/* ---------- phone ---------- */

@media (max-width: 719px) {
    :root { --gutter: 16px; }
    .head-row { height: 52px; gap: 10px; }
    .head-nav { display: none; }
    .lang { margin-inline-start: auto; }
    .top { padding-block: var(--s4) var(--s3); }
    .crumbs { display: none; }
    h1 { font-size: 24px; }
    .lede { margin-top: 8px; font-size: 14.5px; }

    .pick { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "a swap" "b swap" "go go"; gap: 8px; }
    .pick-field:first-child { grid-area: a; }
    .pick-field + .pick-swap + .pick-field { grid-area: b; }
    .pick-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .pick-box { height: 48px; }
    .pick-swap { grid-area: swap; align-self: center; width: 40px; height: 40px; margin: 0; }
    .pick-swap .i { transform: rotate(90deg); }
    .pick-go { grid-area: go; width: 100%; height: 46px; margin-top: 2px; }

    .duel { margin-top: var(--s3); }
    .side { padding: 14px 16px; }
    .avatar { width: 40px; height: 40px; }
    .who-name { font-size: 16px; }
    .who-handle { font-size: 12.5px; margin-top: 0; }
    .side-count { margin-top: 10px; }
    .count { font-size: clamp(30px, 13cqi, 56px); }
    .side-meta { margin-top: 10px; }
    .nf { min-height: 80px; margin-top: 10px; }
    .gap-col { padding: 12px 16px; }
    .gap-label { margin-top: 8px; }
    .gap-lead { margin-top: 6px; }
    .gap-num { font-size: clamp(24px, 10cqi, 40px); }
    .split { padding: 10px 16px 12px; }

    .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .share-panel { padding: 16px; }
    .field-row { flex-direction: column; }
    .btn-copy { width: 100%; }

    .card { padding: 16px; }
    .chart { height: 120px; }
    .ad { margin-top: 40px; }
    .sec { margin-top: 40px; }
    .prose h2, .faq h2, .sec-title { font-size: 21px; }
    .prose p { font-size: 15.5px; }
    .spacenode-promo-overlay { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
    .spacenode-promo-text { flex-basis: calc(100% - 90px); }
    .spacenode-promo-cta { width: 100%; justify-content: center; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
    /* finger-sized rows: stacked links closer than 48 px get mis-tapped */
    .foot-cols a, .foot-langs a { display: flex; align-items: center; min-height: 48px; padding-block: 0; }
    .foot-cols ul { margin-top: 0; }
    .foot-langs { gap: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
