/* Instagram live follower count (livecounts.nl/instagram-realtime/). 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);
}

*, *::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; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num, [dir="ltr"] { font-variant-numeric: tabular-nums; }

.skip { position: absolute; z-index: 80; inset-inline-start: 12px; top: -60px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- 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; transition: background-color .15s, border-color .15s, opacity .15s; }
.btn .i { width: 16px; height: 16px; }
.btn-ink { background: var(--btn); color: var(--btn-ink); }
.btn-ink:hover { opacity: .88; }
.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); }
.link-btn { padding: 2px 0; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); font: 600 12px/1 var(--mono); }
@media (hover: none) { .kbd { display: none; } }

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

.site-head { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: var(--s5); height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; }
.tld { color: var(--tld); }
.head-nav { display: flex; gap: var(--s5); margin-inline-start: auto; }
.head-nav a { padding-block: 17px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.head-tools { display: flex; align-items: center; gap: var(--s2); }
.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); 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 ul { position: absolute; z-index: 50; inset-inline-end: 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-pop); }
.lang a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 13.5px; text-decoration: none; }
.lang a:hover { background: var(--sunken); }
.lang a[aria-current="true"] { font-weight: 650; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[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; }
}

/* sticky mini count once the big one scrolls away */
.mini { position: fixed; z-index: 60; inset-inline: 0; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); transform: translateY(-101%); transition: transform .2s ease; }
.mini.is-on { transform: none; }
.mini-row { display: flex; align-items: center; gap: 10px; height: 48px; }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--sunken); }
.mini-name { min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mini-count { margin-inline-start: auto; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.mini .icon-btn { width: 32px; height: 32px; }

/* ---------- page head + search ---------- */

.top { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: var(--s7); align-items: end; padding-block: var(--s7) var(--s6); }
.crumbs { display: flex; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; }
.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 { max-width: 60ch; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
/* dated count the server prints under the H1 on profile pages (for crawlers that skip JavaScript) */
.lead-fact { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lead-fact strong { color: var(--ink); font-weight: 650; }

.search { position: relative; }
.search-label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px 5px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.search-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(79, 91, 213, .2); }
.search-box > .i { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; font-size: 16px; outline: none; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-box .btn { height: 40px; }
.search-msg { color: var(--bad); font-size: 12.5px; }
.search-msg:not(:empty) { margin-top: 8px; }

.suggest { position: absolute; z-index: 45; inset-inline: 0; top: 84px; max-height: min(420px, 60vh); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-pop); }
.sg-head { padding: 8px 10px 4px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sg-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 10px; border-radius: var(--r-sm); text-decoration: none; }
.sg-opt:hover, .sg-opt[aria-selected="true"] { background: var(--sunken); }
.sg-opt img, .ini { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sunken); }
.ini { display: grid; place-items: center; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.sg-text { display: grid; min-width: 0; line-height: 1.3; }
.sg-text b { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sg-text small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.sg-num { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sg-wait { padding: 8px 10px; color: var(--muted); font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.chips-label { margin-inline-end: 4px; color: var(--muted); font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- studio grid ---------- */

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); grid-template-areas: "main a" "main b" "bill bill"; grid-template-rows: auto 1fr auto; gap: var(--gap); }
.main-col { grid-area: main; display: grid; align-content: start; min-width: 0; }
.rail { display: grid; align-content: start; gap: 12px; min-width: 0; }
.rail-a { grid-area: a; }
.rail-b { grid-area: b; align-self: start; }
.ad-billboard { grid-area: bill; }

/* ---------- counter card ---------- */

.counter-card { position: relative; order: 1; container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.who { display: flex; align-items: center; gap: 14px; padding: 22px 28px 0; }
.avatar-ring { flex: none; padding: 2px; border-radius: 50%; background: var(--grad-ring); }
.avatar { width: 64px; height: 64px; border: 2px solid var(--surface); border-radius: 50%; background: var(--sunken); object-fit: cover; }
.who-text { flex: 1; 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 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified { width: 18px; height: 18px; flex: none; color: var(--verified); }
.verified[data-on="0"] { visibility: hidden; }
.who-meta { display: flex; align-items: center; gap: 14px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.who-handle { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.who-handle:hover { color: var(--ink); text-decoration: underline; }
.who-handle .i { width: 13px; height: 13px; margin-inline-start: 4px; }
.m-item b { color: var(--ink-2); font-weight: 650; }
.m-item:has(b:empty) { display: none; }

.live { display: inline-flex; flex: none; align-items: center; align-self: flex-start; gap: 7px; margin-top: 4px; font-size: 12.5px; white-space: nowrap; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.live[data-state="live"] .live-dot { background: var(--accent); }
.live[data-state="live"] .live-dot::after { animation: ping 2s ease-out infinite; }
.live[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); }

.count-block { position: relative; padding: 18px 28px 20px; }
.count { height: 1em; font-size: clamp(44px, 12.8cqi, 116px); font-weight: 700; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: start; }
[dir="rtl"] .count { text-align: right; }
.count-vis { display: inline-block; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; transition: color .9s ease; }
.dc { display: block; line-height: 1; white-space: pre; transition: transform .6s cubic-bezier(.2, .75, .2, 1); }
.dg.fu { color: var(--good); transition: none; }
.dg.fd { color: var(--bad); transition: none; }
.count-meta { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; white-space: nowrap; }
.count-label { flex: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.delta { display: inline-block; min-width: 0; height: 24px; padding-inline: 9px; overflow: hidden; border-radius: var(--r-pill); background: var(--sunken); color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 24px; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.delta[data-sign="1"] { background: var(--good-bg); color: var(--good); }
.delta[data-sign="-1"] { background: var(--bad-bg); color: var(--bad); }
.tick { flex: none; color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; opacity: 0; }
.tick[data-sign="1"] { color: var(--good); }
.tick[data-sign="-1"] { color: var(--bad); }

/* over the meta row: a milestone never changes the card height */
.celebrate { position: absolute; z-index: 2; inset-inline-start: 22px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 8px; border-radius: var(--r-sm); background: var(--surface); font-size: 17px; font-weight: 700; letter-spacing: -.01em; animation: rise .45s cubic-bezier(.2, .75, .2, 1); }
.celebrate .i { color: #EE2A7B; }
.celebrate span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }

.nf { display: grid; align-content: center; justify-items: start; gap: 12px; min-height: calc(clamp(44px, 12.8cqi, 116px) + 38px); color: var(--ink-2); font-size: 16px; }
.counter-card[data-state="nf"] .count, .counter-card[data-state="nf"] .count-meta { display: none; }

/* no server data yet: hold the space, hide the placeholder text */
.counter-card:not(.is-ready) .sk { color: transparent; background: var(--sunken); border-radius: 8px; }
#ig-initial + .counter-card .sk { color: inherit; background: none; }
#ig-initial + .counter-card.is-wait .sk, .counter-card.is-wait .sk { color: transparent; background: var(--sunken); }
.counter-card:not(.is-ready) .sk * { visibility: hidden; }
#ig-initial + .counter-card:not(.is-wait) .sk * { visibility: visible; }

.fx { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-exit { display: none; position: absolute; z-index: 4; top: 16px; inset-inline-end: 16px; }

/* full screen: the counter alone, big, for a second monitor or a capture */
.counter-card:fullscreen, .counter-card.is-stage { display: flex; flex-direction: column; justify-content: center; padding: 4vw 6vw; border: 0; border-radius: 0; background: var(--bg); }
.counter-card.is-stage { position: fixed; z-index: 90; inset: 0; }
.counter-card:fullscreen .count, .counter-card.is-stage .count { font-size: min(14cqi, 34vh); }
.counter-card:fullscreen .stage-exit, .counter-card.is-stage .stage-exit { display: inline-grid; }
.counter-card:fullscreen .who, .counter-card.is-stage .who, .counter-card:fullscreen .count-block, .counter-card.is-stage .count-block { padding-inline: 0; }
body.no-scroll { overflow: hidden; }

/* ---------- action bar ---------- */

.actions { display: grid; order: 3; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); margin-top: 12px; }
.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; transition: border-color .15s, background-color .15s; }
.act span { min-width: 0; line-height: 1.15; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.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, .act-primary:hover { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.act-primary:hover { opacity: .9; }
.act-primary[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--btn-ink); }
.act[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
html:not(.js) .js-only { display: none; }

/* ---------- studio ---------- */

.studio { order: 4; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.studio[data-open="false"] { display: none; }
.studio, .search, .counter-card, .pace-card { scroll-margin-top: 64px; }
.studio-head { display: flex; align-items: center; gap: var(--s4); padding-block: 12px; padding-inline: 20px 12px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 15px; font-weight: 650; letter-spacing: -.005em; }
.tabs { display: inline-flex; gap: 2px; margin-inline-start: auto; padding: 3px; border-radius: 9px; background: var(--sunken); }
.tabs button { height: 30px; padding-inline: 14px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.studio-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s5) var(--s6); padding: var(--s5); }
.studio[data-tab="share"] .opts, .studio[data-tab="share"] .preview { display: none; }
.studio:not([data-tab="embed"]) .credit-opt { display: none; }
.panel { grid-column: 1 / -1; min-width: 0; }

.opts { display: grid; align-content: start; gap: var(--s4); }
.opts fieldset { min-width: 0; padding: 0; border: 0; }
.opts legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg { display: flex; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; flex: 1; place-items: center; height: 34px; padding-inline: 8px; 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; border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.seg input:focus-visible + label { z-index: 1; outline: 2px solid var(--focus); outline-offset: 2px; }
.checks { display: grid; gap: 9px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; flex: none; width: 30px; height: 18px; border-radius: var(--r-pill); background: var(--line-2); transition: background-color .15s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(12px); background: var(--surface); }
[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-12px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }

.preview { min-width: 0; }
.stage { position: relative; height: 212px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); }
.stage[data-theme="transparent"] { background: repeating-conic-gradient(#34343A 0 25%, #28282D 0 50%) 0 0 / 16px 16px; }
.stage .w { position: absolute; left: 50%; top: calc(50% - 10px); transform: translate(-50%, -50%) scale(var(--fit, 1)); }
.stage-size { position: absolute; bottom: 8px; inset-inline-end: 10px; padding: 2px 7px; border-radius: 5px; background: var(--surface); color: var(--muted); font: 500 11px/1.5 var(--mono); }

/* the widget: same markup and rules as the embed page */
.w { --wh: 100px; --ww: 400px; --wn: 17px; --wc: 40px; display: flex; flex: none; align-items: center; gap: calc(var(--wh) * .14); width: var(--ww); height: var(--wh); padding: 0 calc(var(--wh) * .12); border-radius: 12px; background: #FFFFFF; color: #121214; font-family: var(--font); overflow: hidden; direction: ltr; }
.w[data-size="s"] { --wh: 80px; --ww: 300px; --wn: 14px; --wc: 30px; }
.w[data-size="l"] { --wh: 130px; --ww: 520px; --wn: 21px; --wc: 54px; }
.w[data-theme="dark"] { background: #121214; color: #FFFFFF; }
.w[data-theme="transparent"] { background: none; color: #FFFFFF; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .35); }
.w-avatar { width: calc(var(--wh) * .76); height: calc(var(--wh) * .76); flex: none; border-radius: 50%; object-fit: cover; background: rgba(127, 127, 127, .25); }
.w[data-avatar="0"] .w-avatar { display: none; }
.w-text { flex: 1; min-width: 0; }
.w-name { overflow: hidden; font-size: var(--wn); font-weight: 600; line-height: 1.2; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.w[data-name="0"] .w-name { display: none; }
.w-count { font-size: var(--wc); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-goal { display: none; height: 4px; margin-top: 6px; overflow: hidden; border-radius: var(--r-pill); background: rgba(127, 127, 127, .25); }
.w-goal span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left center; }
.w[data-goal="1"] .w-goal { display: block; }
.w.is-fx .w-count { animation: wfx .5s ease; }
@keyframes wfx { 50% { transform: scale(1.06); } }

.field-label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.field-row { display: flex; align-items: flex-start; gap: var(--s2); }
.field { flex: 1; min-width: 0; height: 40px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: 13.5px; }
.field:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(79, 91, 213, .2); }
textarea.field { height: auto; line-height: 1.5; resize: none; }
.mono { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; }
.btn-copy { min-width: 124px; }
.btn-copy .i-done { display: none; }
.btn-copy.is-done { border-color: var(--good); background: var(--good); color: #fff; }
.btn-copy.is-done .i-idle { display: none; }
.btn-copy.is-done .i-done { display: block; }
.steps { display: grid; gap: 6px; margin-top: var(--s4); padding-inline-start: 20px; color: var(--ink-2); font-size: 13.5px; list-style: decimal; }
.steps b { color: var(--ink); font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hint { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ---------- pace card (joined to the counter card from 720 px up) ---------- */

.pace-card { order: 2; padding: 16px 28px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pace-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seg-sm { border: 0; padding: 0; min-width: 0; }
.seg-sm label { height: 28px; padding-inline: 10px; font-size: 12px; }
.chart { position: relative; height: 88px; margin-top: 10px; outline-offset: 4px; border-radius: 4px; touch-action: pan-y; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .area { fill: var(--chart-wash); }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--chart); stroke: var(--surface); stroke-width: 2; }
.chart .ping { fill: var(--chart); opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
.chart .bar { fill: var(--good); }
.chart .bar.neg { fill: var(--bad); }
.chart .bar.part { opacity: .5; }
.chart .xh { stroke: var(--line-2); stroke-width: 1; }
.chart .xd { fill: var(--surface); stroke: var(--chart); stroke-width: 2; }
.chart-empty { position: absolute; inset: 0 0 auto; width: fit-content; margin-inline: auto; padding: 1px 8px; background: var(--surface); color: var(--muted); font-size: 12.5px; text-align: center; pointer-events: none; }
#chart-svg:empty + .chart-empty { inset: 0; display: grid; place-items: center; width: auto; padding: 0; background: none; font-size: 13px; }
.chart-tip { position: absolute; z-index: 5; top: -6px; display: grid; gap: 1px; min-width: 120px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow-pop); color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.chart-tip b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-tip [data-sign="1"] { color: var(--good); }
.chart-tip [data-sign="-1"] { color: var(--bad); }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; height: 19px; margin-top: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.chart-foot span { overflow: hidden; text-overflow: ellipsis; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px -28px 0; border-top: 1px solid var(--line); }
.stats > div { min-width: 0; padding: 12px 20px 14px 28px; }
.stats > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.stats dt, .kv dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.stats dd { margin-top: 2px; overflow: hidden; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.stats dd.is-wait { color: var(--muted); font-size: 13.5px; font-weight: 500; line-height: 25px; }
.stats dd.sub { margin-top: 0; color: var(--muted); font-size: 12.5px; font-weight: 400; }
[data-sign="1"]:is(dd, .sim-gap) { color: var(--good); }
[data-sign="-1"]:is(dd, .sim-gap) { color: var(--bad); }

/* ---------- rail cards ---------- */

.card { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.goal-input { width: 100%; height: 46px; margin-top: 12px; padding-inline: 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: start; }
.goal-input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(79, 91, 213, .2); }
.goal-hint { min-height: 0; color: var(--bad); font-size: 12.5px; }
.goal-hint:not(:empty) { margin-top: 6px; }
.bar { position: relative; height: 8px; margin-top: 14px; overflow: hidden; border-radius: var(--r-pill); background: var(--grad); }
.bar i { position: absolute; inset: 0; background: var(--sunken); transform: scaleX(1); transform-origin: right center; transition: transform .6s ease; }
[dir="rtl"] .bar { transform: scaleX(-1); }
.goal-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goal-row span:first-child { color: var(--ink); font-weight: 650; }
.goal-eta { min-height: 2.9em; margin-top: 10px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.ms-table { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ms-table th:first-child { width: 26%; }
.ms-table th { padding: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: start; }
.ms-table td { height: 30px; padding: 0; border-top: 1px solid var(--line); white-space: nowrap; }
.ms-table :is(th, td):not(:first-child) { text-align: end; }
.ms-table td:first-child { font-weight: 650; }
.goal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 14px; }
.kv > div { min-width: 0; }
.kv dd { margin-top: 2px; overflow: hidden; font-size: 20px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.kv dd#s-last { font-size: 15px; line-height: 30px; }
.kv dd.is-na { color: var(--muted); font-size: 13.5px; font-weight: 500; }

.similar { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 230px; margin-top: 8px; }
.similar li { display: flex; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.similar.is-pairs li { min-height: 40px; }
.sim-who { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.sim-who small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.similar li:last-child { border-bottom: 0; }
.sim-name { justify-self: start; max-width: 100%; overflow: hidden; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sim-name:hover, .similar.is-pairs a:hover { text-decoration: underline; }
.similar.is-pairs a { font-weight: 600; text-decoration: none; }
.sim-num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sim-num + .sim-gap::before { content: " \00b7  "; color: var(--muted); }
.sim-gap { font-variant-numeric: tabular-nums; }
.vs { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding-inline: 6px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--ink-2); font-size: 12px; font-weight: 600; text-decoration: none; }
.vs:hover { border-color: var(--ink); color: var(--ink); }
.race-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); margin-top: 12px; }
.race-form .field { background: var(--surface); }

.top-ol { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
.top-ol li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 76px; align-items: center; column-gap: 8px; min-height: 36px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.t-rank { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.t-who { display: grid; gap: 3px; min-width: 0; }
.t-who a { overflow: hidden; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.t-who a:hover { text-decoration: underline; }
.t-bar { height: 2px; overflow: hidden; border-radius: 2px; background: var(--sunken); }
.t-bar i { display: block; height: 100%; background: var(--line-2); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .t-bar i { transform-origin: right center; }
.t-num { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: end; }
.top-ol li.is-current { margin-inline: -8px; padding-inline: 8px; border-radius: var(--r-sm); background: var(--sunken); }
.top-ol li.is-current .t-bar i { background: var(--accent); }
.more-link { display: inline-block; margin-top: 12px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-underline-offset: 3px; }
.more-link:hover { color: var(--ink); }

/* Space-Node card: styled here (spacenode-promo.css is not loaded), plain card, never an ad look-alike */
.spacenode-promo-card { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; }
.spacenode-promo-overlay { display: grid; justify-items: start; gap: 12px; padding: 18px 20px 20px; }
.spacenode-promo-logo { width: 72px; height: 36px; border-radius: 6px; }
.spacenode-promo-text { display: grid; gap: 6px; }
.spacenode-promo-eyebrow { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.spacenode-promo-title { font-size: 17px; font-weight: 650; line-height: 1.3; }
.spacenode-promo-desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.spacenode-promo-cta { display: inline-flex; align-items: center; justify-self: start; height: 36px; margin-top: 6px; 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); }

/* ---------- ads: space reserved up front, labelled, never next to the counter tools ---------- */

.ad { min-width: 0; margin-top: var(--s8); text-align: center; }
.ad-label { margin-bottom: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ad ins { min-height: inherit; }
.ad-billboard { width: 100%; max-width: 970px; min-height: 300px; margin-inline: auto; }
.ad-billboard ins, .ad-infeed ins { min-height: 250px; }
.ad-billboard ins { min-height: 280px; }
.ad-infeed { min-height: 270px; }
.ad-bottom { width: 100%; max-width: 728px; min-height: 110px; margin-inline: auto; }
.ad-bottom ins { min-height: 90px; }

/* ---------- server-rendered creator block and more counters ---------- */

.creator-spotlight { max-width: var(--wrap); margin: var(--s8) auto 0; }
.creator-spotlight h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.creator-spotlight h3 { margin-top: var(--s5); font-size: 15px; font-weight: 650; }
.creator-spotlight p { max-width: 70ch; margin-top: 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.creator-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }
.creator-links a { display: inline-flex; align-items: center; height: 34px; padding-inline: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font-size: 13.5px; text-decoration: none; }
.creator-links a:hover { border-color: var(--ink); }
.lcnl-incontent-ad { margin: var(--s7) auto !important; }
.lcnl-incontent-ad::before { content: "Advertisement"; display: block; margin-bottom: 6px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
:root[lang="es"] .lcnl-incontent-ad::before { content: "Publicidad"; }
:root[lang="pt"] .lcnl-incontent-ad::before { content: "Publicidade"; }
:root[lang="de"] .lcnl-incontent-ad::before { content: "Anzeige"; }
:root[lang="fr"] .lcnl-incontent-ad::before { content: "Publicité"; }
:root[lang="id"] .lcnl-incontent-ad::before { content: "Iklan"; }
:root[lang="it"] .lcnl-incontent-ad::before { content: "Pubblicità"; }
:root[lang="ar"] .lcnl-incontent-ad::before { content: "إعلان"; letter-spacing: 0; }

/* ---------- long-form content and FAQ ---------- */

.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--s8); margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.prose { grid-column: 1; max-width: 70ch; }
.faq { grid-column: 1; max-width: 70ch; margin-top: var(--s8); }
.ad-infeed { grid-column: 2; grid-row: 1 / span 2; align-self: start; margin-top: 0; }
.ad-bottom { grid-column: 1 / -1; }
.prose h2, .faq h2 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.prose h3 { margin-top: var(--s6); font-size: 18px; font-weight: 650; }
.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; }
.prose b { color: var(--ink); font-weight: 600; }
.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 .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.faq details p { padding-bottom: 16px; color: var(--ink-2); line-height: 1.65; }

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

.site-foot { margin-top: var(--s8); border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-block: var(--s7) var(--s5); }
.foot-h { margin-bottom: 6px; font-size: 13.5px; font-weight: 650; }
.foot-grid a { display: inline-block; padding-block: 6px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.foot-grid a:hover, .foot-bottom a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-block: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 0 14px; margin-inline-start: auto; }
.foot-langs a { display: inline-block; padding-block: 6px; color: var(--ink-2); text-decoration: none; }

/* ---------- tablet and phone ---------- */

@media (min-width: 720px) {
    /* counter card and pace card read as one card */
    .counter-card { border-bottom: 0; border-end-start-radius: 0; border-end-end-radius: 0; }
    .pace-card { border-top-color: var(--line); border-start-start-radius: 0; border-start-end-radius: 0; box-shadow: var(--shadow); }
    .counter-card:fullscreen, .counter-card.is-stage { border-radius: 0; }
}
@media (min-width: 1024px) {
    .studio[data-open="auto"] { display: block; }
}
@media (max-width: 1023.98px) {
    .studio[data-open="auto"] { display: none; }
    .studio-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "a" "bill" "b"; grid-template-rows: none; }
    .rail-b { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
    .content { grid-template-columns: minmax(0, 1fr); }
    .ad-infeed { grid-column: 1; grid-row: auto; margin-top: var(--s8); }
    .faq { margin-top: var(--s8); }
}
@media (max-width: 719.98px) {
    :root { --gutter: 16px; }
    .head-row { height: 52px; gap: 10px; }
    .head-nav { display: none; }
    .head-tools { margin-inline-start: auto; }
    .top { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 16px 14px; }
    .crumbs { display: none; }
    /* the counter card right below shows the same name and number */
    .lead-fact { display: none; }
    h1 { font-size: 24px; line-height: 1.12; }
    .lede { margin-top: 6px; font-size: 15px; line-height: 1.45; }
    .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
    .search-box { height: 48px; }
    .search-box .btn { padding-inline: 14px; }
    .suggest { top: 54px; }
    /* phones: the popular picks live in the search popup, so the counter and its tools fit on the first screen */
    .chips { display: none; }

    .main-col > * { order: 0; }
    .counter-card { box-shadow: var(--shadow); }
    .who { gap: 12px; padding: 16px 16px 0; }
    .avatar { width: 48px; height: 48px; }
    .who-name { font-size: 16px; }
    .who-meta { gap: 10px; font-size: 12.5px; }
    .live-ago { display: none; }
    .live.is-stale .live-ago { display: inline; }
    .count-block { padding: 16px 16px 16px; }
    .count { font-size: clamp(38px, 13cqi, 64px); }
    .count-meta { margin-top: 12px; gap: 8px; }
    .celebrate { inset-inline-start: 10px; bottom: 12px; font-size: 15px; }
    .nf { min-height: calc(clamp(38px, 13cqi, 64px) + 36px); font-size: 15px; }
    .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .act { flex-direction: column; gap: 4px; height: 56px; padding-inline: 4px; font-size: 12.5px; }
    .act .i { width: 20px; height: 20px; }
    .studio-head { flex-wrap: wrap; row-gap: 10px; padding-inline: 16px 12px; }
    .studio-head .tabs { order: 3; width: 100%; margin: 0; }
    .tabs button { flex: 1; }
    .studio-close { margin-inline-start: auto; }
    .studio-body { grid-template-columns: minmax(0, 1fr); padding: var(--s4); }
    .stage { height: 150px; }
    .field-row { flex-direction: column; align-items: stretch; }
    .btn-copy { width: 100%; }
    .pace-card { margin-top: 12px; padding: 14px 16px 0; }
    .chart { height: 72px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -16px; }
    .stats > div, .stats > div + div { padding: 12px 16px 14px; }
    .stats > div:nth-child(3) { border-inline-start: 0; }
    .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .stats dd { font-size: 15px; }
    .card { padding: 16px; }
    .rail-b { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ad-billboard { margin-top: var(--s8); }
    .content { margin-top: var(--s7); padding-top: var(--s7); }
    .prose h2, .faq h2 { font-size: 21px; }
    .prose p { font-size: 15.5px; }
    .creator-spotlight h2 { font-size: 19px; }
    .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-grid nav:last-child { grid-column: 1 / -1; }
    .foot-langs { margin-inline-start: 0; }
}
@media (max-width: 380px) {
    .search-box .btn { padding-inline: 10px; font-size: 12.5px; }
}

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