/* Pulsed Media leaderboards. Mobile first (works at 360 px), light and dark, colours as tokens on :root.
   Dark follows prefers-color-scheme unless the viewer picked a theme (html[data-theme]). */

:root {
  --bg: #f5f2ea; --bg2: #ece7dc; --panel: #ffffff; --panel2: #faf8f3; --line: #1b233320; --line2: #1b233336;
  --text: #18202c; --muted: #5a6575; --link: #8a5a00; --accent: #c98a12; --accent2: #0b6f6a; --on-accent: #1a1205;
  --gold: #e0a526; --gold2: #ffe08a; --silver: #9aa6b5; --silver2: #e6ebf2; --bronze: #b8733e; --bronze2: #f0c49c;
  --up: #157a40; --down: #b8392a; --me: #0b6f6a22; --me-line: #0b6f6a; --rival: #c98a1220; --rival-line: #c98a12;
  --shadow: 0 1px 2px #1b23330f, 0 10px 30px #1b23330d; --hero-fade: #f5f2ea;
  /* league and band text: every pair holds 4.5:1 or more on the panels (WCAG AA, checked 2026-10-29) */
  --t0: #7a5100; --t1: #0b6f6a; --t2: #5a47c4; --t3: #2f6f2b; --t4: #556273; --t5: #5f6670;
  --radius: 16px; --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1018; --bg2: #0f1622; --panel: #121a26; --panel2: #172233; --line: #ffffff14; --line2: #ffffff26;
    --text: #e8edf4; --muted: #9aa7b8; --link: #f2b33d; --accent: #f2b33d; --accent2: #38c6c0; --on-accent: #1a1205;
    --gold: #f2b33d; --gold2: #ffe2a3; --silver: #b9c4d2; --silver2: #e9eef5; --bronze: #cf8a52; --bronze2: #f3c9a3;
    --up: #5fd38d; --down: #ff7b6b; --me: #38c6c026; --me-line: #38c6c0; --rival: #f2b33d1f; --rival-line: #f2b33d;
    --shadow: 0 1px 2px #0000004d, 0 12px 32px #00000040; --hero-fade: #0b1018;
    --t0: #f2b33d; --t1: #38c6c0; --t2: #9b86ff; --t3: #73d16a; --t4: #8d9bb0; --t5: #909bab;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1018; --bg2: #0f1622; --panel: #121a26; --panel2: #172233; --line: #ffffff14; --line2: #ffffff26;
  --text: #e8edf4; --muted: #9aa7b8; --link: #f2b33d; --accent: #f2b33d; --accent2: #38c6c0; --on-accent: #1a1205;
  --gold: #f2b33d; --gold2: #ffe2a3; --silver: #b9c4d2; --silver2: #e9eef5; --bronze: #cf8a52; --bronze2: #f3c9a3;
  --up: #5fd38d; --down: #ff7b6b; --me: #38c6c026; --me-line: #38c6c0; --rival: #f2b33d1f; --rival-line: #f2b33d;
  --shadow: 0 1px 2px #0000004d, 0 12px 32px #00000040; --hero-fade: #0b1018;
  --t0: #f2b33d; --t1: #38c6c0; --t2: #9b86ff; --t3: #73d16a; --t4: #8d9bb0; --t5: #909bab;
  color-scheme: dark;
}

/* Profile theme scopes: an owner may pick dark or light for their page, or an accent palette. */
.scope-dark {
  --bg: #0b1018; --panel: #121a26; --panel2: #172233; --line: #ffffff14; --line2: #ffffff26; --text: #e8edf4; --muted: #9aa7b8;
  --link: #f2b33d; --accent: #f2b33d; --accent2: #38c6c0; --t1: #38c6c0; color-scheme: dark;
}
.scope-light {
  --bg: #f5f2ea; --panel: #ffffff; --panel2: #faf8f3; --line: #1b233320; --line2: #1b233336; --text: #18202c; --muted: #5a6575;
  --link: #8a5a00; --accent: #c98a12; --accent2: #0b6f6a; --t1: #0b6f6a; color-scheme: light;
}
.scope-dark, .scope-light { background: var(--bg); color: var(--text); border-radius: var(--radius); padding-bottom: 8px; }
.acc-kantele { --accent: #e9a92e; --accent2: #2fb5af; }
.acc-sampo { --accent: #e8743b; --accent2: #d9a12a; }
.acc-aurora { --accent: #3fc98a; --accent2: #8f6cf0; }
.acc-pohjola { --accent: #5aa8ec; --accent2: #9fd2ff; }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", sans-serif; overflow-x: hidden; min-height: 100vh; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link); text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 20px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0; }
code, pre, .ps, .ps-block { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace; }
pre { margin: 6px 0 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font-size: 13px; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.small { font-size: 13px; }
.empty { color: var(--muted); margin: 6px 0; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 10px; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
::placeholder { color: var(--muted); opacity: 1; }
.noscript { max-width: 680px; margin: 40px auto; padding: 0 16px; }

/* ------------------------------------------------------------------ header and footer */
.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-in { max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . act" "nav nav nav"; align-items: center; gap: 6px 12px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.05; }
.brand-t b { font-size: 17px; letter-spacing: -.01em; }
.brand-t small { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.nav { grid-area: nav; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 7px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--panel2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 0 transparent; font-weight: 600; }
.site-act { grid-area: act; display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: 17px; line-height: 1; }
.iconbtn:hover { border-color: var(--accent); }
.mechip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 4px; border-radius: 999px; border: 1px solid var(--me-line); background: var(--me); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 20px var(--gutter) 40px; color: var(--muted); font-size: 14px; }
.foot-in p { margin: 0 0 6px; }

main { display: block; max-width: 1180px; margin: 0 auto; padding: 16px var(--gutter) 8px; outline: none; }
.page > * + * { margin-top: 18px; }

/* ------------------------------------------------------------------ cards, buttons, chips */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); text-decoration: none; font-size: 14px; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--gold2), var(--accent)); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn[aria-pressed="true"] { border-color: var(--accent); background: var(--rival); }
.linkbtn { border: 0; background: none; color: var(--link); cursor: pointer; padding: 0 4px; font-size: 13px; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line2); color: var(--muted); background: var(--panel2); white-space: nowrap; }
.chip.unit { color: var(--text); border-color: var(--accent2); }
.chip.feat { color: var(--on-accent); background: var(--gold2); border-color: var(--gold); }
.chip.twin { color: var(--accent2); border-color: var(--accent2); }
.chip.ok { color: var(--up); border-color: var(--up); }
.chip.muted { border-style: dashed; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: none; }
.fchip:hover { color: var(--text); border-color: var(--accent2); }
.fchip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.seg { display: inline-flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { flex: none; border: 0; background: none; color: var(--muted); font-size: 14px; padding: 6px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button:hover:not([disabled]) { color: var(--text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), 0 2px 8px #0000001a; font-weight: 600; }
.seg button[disabled] { opacity: .35; cursor: not-allowed; }
.seg-s button { font-size: 12.5px; padding: 4px 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.tag.you { background: var(--me-line); color: var(--bg); }
.tag.rival { background: var(--rival-line); color: var(--on-accent); }

/* ------------------------------------------------------------------ avatars, identicons, medals, bands */
.av { display: inline-flex; flex: none; overflow: hidden; border-radius: 28%; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); vertical-align: middle; }
.av img, .av .identicon { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-xs { width: 22px; height: 22px; border-radius: 7px; }
.av-s { width: 32px; height: 32px; }
.av-m { width: 44px; height: 44px; }
.av-l { width: 72px; height: 72px; border-radius: 22%; }
.av-xl { width: 104px; height: 104px; border-radius: 50%; }
.av .q { display: grid; place-items: center; width: 100%; font-weight: 800; color: var(--muted); font-size: 20px; }
.nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.nm.ps, .ps { font-weight: 500; font-size: .92em; letter-spacing: .01em; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 13px; color: #2a1a00; flex: none; position: relative; overflow: hidden; }
.medal.m1 { background: radial-gradient(circle at 35% 30%, #fff7d1, var(--gold) 55%, #a8730c); box-shadow: 0 0 0 2px #f2b33d55, 0 2px 8px #f2b33d66; }
.medal.m2 { background: radial-gradient(circle at 35% 30%, #ffffff, var(--silver) 60%, #6f7b8c); box-shadow: 0 0 0 2px #b9c4d255; }
.medal.m3 { background: radial-gradient(circle at 35% 30%, #ffe6cf, var(--bronze) 60%, #7d4a22); box-shadow: 0 0 0 2px #cf8a5255; }
.medal.m1::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, #ffffffaa 50%, transparent 60%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.rk { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.band { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); font-variant-numeric: tabular-nums; }
.band.t0 { color: var(--t0); } .band.t1 { color: var(--t1); } .band.t2 { color: var(--t2); }
.band.t3 { color: var(--t3); } .band.t4 { color: var(--t4); } .band.t5 { color: var(--t5); }
.band.exact { color: var(--me-line); }
.mv { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv.up { color: var(--up); } .mv.down { color: var(--down); } .mv.same { color: var(--muted); }
.mv.new { color: var(--accent2); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; border: 1px solid currentColor; border-radius: 6px; padding: 0 4px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; min-height: 420px; display: flex; align-items: flex-end; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b1018; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b1018f2 18%, #0b1018b0 55%, #0b101833 100%); }
.hero-in { position: relative; z-index: 1; padding: 150px 18px 22px; color: #eef2f7; max-width: 660px; }
.hero .eyebrow { color: #7fe3dd; }
.hero h1 { margin: 6px 0 10px; font-size: clamp(40px, 9vw, 78px); line-height: 1; letter-spacing: -.025em; background: linear-gradient(90deg, #fff1c9, #f2b33d 45%, #38c6c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #d6dde8; }
.hero .btn:not(.primary) { background: #ffffff14; color: #eef2f7; border-color: #ffffff3a; }
.hero-stamp { margin: 12px 0 0; font-size: 13px; color: #aab6c6; }
.hero-s { min-height: 300px; }
.eyebrow { margin: 0; color: var(--accent2); letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; font-weight: 700; }
.lede { margin: 6px 0 0; font-size: 16.5px; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.steps a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; height: 100%; transition: border-color .15s, transform .15s; }
.steps a:hover { border-color: var(--accent); transform: translateY(-2px); }
.steps b { display: block; }
.step-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--gold2), var(--accent)); color: var(--on-accent); font-weight: 800; }

.you-strip { display: grid; gap: 10px; }
.you-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--me-line); background: var(--me); color: var(--text); text-decoration: none; min-width: 0; }
.you-card > span:last-child { min-width: 0; }
.you-card b { display: block; }
.you-card .sub { overflow-wrap: anywhere; }
.you-card.ghost { border-style: dashed; border-color: var(--line2); background: var(--panel); }
.rivals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rivals-t { font-size: 13px; color: var(--muted); font-weight: 600; }
.rivals-l { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); text-decoration: none; max-width: 220px; min-width: 0; }
.person:hover { border-color: var(--accent2); }
.person .av { width: 26px; height: 26px; border-radius: 50%; }
.person-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.person .nm { font-size: 13.5px; }
.person small { color: var(--muted); font-size: 11px; }

/* ------------------------------------------------------------------ home: board grid */
.section { margin-top: 26px; }
.sec-head { margin-bottom: 10px; }
.sec-head h2 { margin-bottom: 2px; font-size: 22px; }
.row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.controls { position: static; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 8px 0; margin-bottom: 8px; }
.controls-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.controls .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px calc(-1 * var(--gutter)) 4px; padding: 0 var(--gutter); }
.controls .chips::-webkit-scrollbar { display: none; }
.controls .fchip { flex: none; }
.stamp { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.search { width: 100%; min-width: 0; flex: 1 1 220px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; }
.search:focus { border-color: var(--accent2); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.bcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; transition: transform .15s ease, border-color .15s ease; }
.bcard:hover { transform: translateY(-2px); border-color: var(--line2); }
.bcard.featured { background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel) 45%); }
.bcard-head { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bcard h3 { font-size: 17.5px; margin: 2px 0 0; }
.bcard-link { color: var(--text); text-decoration: none; }
.bcard-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bcard-link:hover { color: var(--link); }
.bcard .seg, .bcard .top3 a, .bcard .more { position: relative; z-index: 1; }
.bmeta { margin: 0; color: var(--muted); font-size: 13px; }
.bmeta .unit { color: var(--accent2); font-weight: 600; }
.top3 { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.top3 li a { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 10px; color: var(--text); text-decoration: none; }
.top3 li a:hover { background: var(--panel2); }
.top3 li a .band { max-width: 132px; }
.top3 li.is-me a { background: var(--me); box-shadow: inset 3px 0 0 var(--me-line); }
.top3 li.is-rival a { background: var(--rival); }
.top3 .skel { height: 42px; border-radius: 10px; background: linear-gradient(90deg, var(--panel2), var(--bg2), var(--panel2)); background-size: 200% 100%; animation: skel 1.3s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.top3 .none { color: var(--muted); font-size: 14px; padding: 8px 4px; }
.more { align-self: flex-end; margin-top: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--link); }

/* ------------------------------------------------------------------ board page */
.bhead h1 { margin: 6px 0 4px; font-size: clamp(28px, 6vw, 44px); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.def { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 6px; }
.twin-a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); color: var(--text); text-decoration: none; background: var(--panel2); }
.twin-a small { color: var(--muted); font-size: 12px; }
.twin-a.on { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--panel)), var(--panel)); box-shadow: inset 0 0 0 1px var(--accent); }
.legend summary { cursor: pointer; }
.legend ul { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.legend li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.legend li .band { min-width: 76px; text-align: center; }
.tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.tool { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tool.grow { flex: 1 1 240px; position: relative; }
.joined { display: flex; gap: 6px; align-items: center; }
.jump-in { width: 96px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; }
.finds { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; top: 100%; left: 0; right: 0; z-index: 8; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); }
.finds button { width: 100%; display: grid; grid-template-columns: auto 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left; padding: 7px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.finds button:hover, .finds button:focus-visible { background: var(--panel2); }
.finds .none { padding: 8px; color: var(--muted); font-size: 14px; }
.rv-jumps { display: flex; flex-wrap: wrap; gap: 6px; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; padding-top: 18px; }
.pod-who { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-decoration: none; min-width: 0; max-width: 100%; }
.pod-who .nm { max-width: 100%; font-size: 14px; }
.pod .band { max-width: 100%; font-size: 11.5px; }
.pod .av-l { width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--silver); }
.pod1 .av-l { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--gold), 0 0 26px #f2b33d66; }
.pod3 .av-l { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--bronze); }
.pod .step { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: 10px; border-radius: 14px 14px 6px 6px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.pod1 .step { height: 92px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 30%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.pod2 .step { height: 66px; background: linear-gradient(180deg, color-mix(in srgb, var(--silver) 30%, var(--panel)), var(--panel)); }
.pod3 .step { height: 50px; background: linear-gradient(180deg, color-mix(in srgb, var(--bronze) 30%, var(--panel)), var(--panel)); }
.pod .step .medal { width: 32px; height: 32px; font-size: 15px; }
.pod.is-me .pod-who .nm { color: var(--me-line); }
.pod.is-rival .pod-who .nm { color: var(--rival-line); }
.pod-empty { visibility: hidden; }
.crown { position: absolute; top: -6px; font-size: 26px; color: var(--gold); text-shadow: 0 2px 10px #f2b33d88; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }

.rows-card { padding: 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 34px; grid-template-areas: "rank who fol" "move band fol"; column-gap: 8px; row-gap: 2px; align-items: center; padding: 8px 8px; border-radius: 12px; border-bottom: 1px solid var(--line); animation: rowin .35s ease both; }
.rows .row:last-child { border-bottom: 0; }
@keyframes rowin { from { opacity: 0; transform: translateY(4px); } }
.row:hover { background: var(--panel2); }
.c-rank { grid-area: rank; display: flex; align-items: center; gap: 2px; }
.c-move { grid-area: move; }
.c-who { grid-area: who; display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); text-decoration: none; }
a.c-who:hover .nm { color: var(--link); }
.c-band { grid-area: band; min-width: 0; padding-left: 41px; }
.c-fol { grid-area: fol; justify-self: end; }
.tie { color: var(--muted); font-size: 12px; font-weight: 700; }
.fol { width: 32px; height: 32px; border-radius: 50%; border: 1px solid transparent; background: none; cursor: pointer; font-size: 17px; color: var(--muted); line-height: 1; }
.fol:hover { border-color: var(--line2); color: var(--link); }
.fol[aria-pressed="true"] { color: var(--link); }
.row.is-me { background: var(--me); box-shadow: inset 4px 0 0 var(--me-line); }
.row.is-rival { background: var(--rival); box-shadow: inset 4px 0 0 var(--rival-line); }
.row.flash, .pod.flash { animation: flash 1.8s ease; }
@keyframes flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 35%, transparent); } 100% { background: transparent; } }
.sentinel { height: 1px; }
.end-note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 6px; }
.owner-end { margin-top: 4px; }
.owner-end .gap { text-align: center; color: var(--muted); font-size: 20px; letter-spacing: .3em; line-height: 1; padding: 4px 0; }
.owner-end .sub { padding: 6px 10px 4px; font-size: 13px; }
.owner-row { border: 1px dashed var(--me-line); }
.youbar { position: sticky; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 560px; padding: 8px 8px 8px 12px; border-radius: 999px; border: 1px solid var(--me-line); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.youbar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.teamrows .c-band { padding-left: 0; }
.flag { font-size: 22px; line-height: 1; }

/* ------------------------------------------------------------------ profile */
.pbanner { --h: 200; position: relative; height: 150px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 15% 0%, hsl(var(--h) 70% 55% / .55), transparent 55%), radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), linear-gradient(135deg, hsl(var(--h) 45% 18%), #0b1018); }
.pbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 70%); }
.pbanner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phead { position: relative; margin-top: -64px !important; display: grid; grid-template-columns: 1fr; gap: 14px; justify-items: center; text-align: center; padding-top: 0; background: transparent; border: 0; box-shadow: none; }
.pid { min-width: 0; max-width: 100%; }
.pid h1 { margin: 2px 0 2px; font-size: clamp(26px, 6vw, 38px); overflow-wrap: anywhere; }
.pid h1.ps { font-size: clamp(20px, 5vw, 30px); }
.ps-line { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.short { margin: 6px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.pid .actions { justify-content: center; }
.avring { position: relative; width: 136px; height: 136px; display: grid; place-items: center; flex: none; }
.avring .av-xl { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--bg); }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: var(--line2); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
.lvl { position: absolute; z-index: 2; right: 2px; bottom: 6px; min-width: 38px; height: 38px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--panel); border: 3px solid var(--lv, #8d9bb0); color: var(--text); box-shadow: var(--shadow); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both .3s; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.lv0 { --lv: #8d9bb0; } .lv1 { --lv: #c0392b; } .lv2 { --lv: #e67e22; } .lv3 { --lv: #f1c40f; } .lv4 { --lv: #2ecc71; }
.lv5 { --lv: #1abc9c; } .lv6 { --lv: #3498db; } .lv7 { --lv: #9b59b6; } .lv8 { --lv: #e84393; } .lv9 { --lv: #f2b33d; }
.level-box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); text-align: left; }
.lvl-line { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.lvl-n { font-size: 30px; color: var(--link); font-variant-numeric: tabular-nums; }
.xp { position: relative; height: 22px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; }
.xp-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent2) 45%, var(--panel)), color-mix(in srgb, var(--accent) 45%, var(--panel))); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.xp-t { position: relative; display: block; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 20px; color: var(--text); text-shadow: 0 1px 2px var(--panel); }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pmain, .pside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.shelf { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
.trophy { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); text-decoration: none; min-width: 0; transition: transform .15s, border-color .15s; }
.trophy:hover { transform: translateY(-2px); border-color: var(--accent); }
.trophy .band { align-self: flex-start; font-size: 11.5px; }
.trophy-r b { font-size: 24px; font-variant-numeric: tabular-nums; }
.trophy-r .medal { width: 36px; height: 36px; font-size: 16px; }
.trophy-n { font-size: 14.5px; overflow-wrap: anywhere; }
.trophy.gold1 { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 26%, var(--panel)), var(--panel2)); border-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.trophy.gold2 { background: linear-gradient(160deg, color-mix(in srgb, var(--silver) 26%, var(--panel)), var(--panel2)); }
.trophy.gold3 { background: linear-gradient(160deg, color-mix(in srgb, var(--bronze) 26%, var(--panel)), var(--panel2)); }
.trophy.big .trophy-r b { font-size: 30px; }
.trophy.dim { border-style: dashed; background: transparent; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.badge { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.badge-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.badge-t .sub { font-size: 13px; }
.xp-tag { color: var(--accent2); font-weight: 700; font-size: 11.5px; }
.badge.locked { border-style: dashed; background: transparent; }
.badge.locked .emblem { opacity: .55; filter: grayscale(.8); }
.still { margin-top: 12px; }
.still summary { cursor: pointer; color: var(--link); font-weight: 600; margin-bottom: 10px; }
.emblem { width: 44px; height: 48px; flex: none; }
.hx-o { fill: var(--e1); }
.hx-i { fill: var(--e2); }
.hx-t { fill: #1a1205; font: 800 19px system-ui, sans-serif; }
.e-gold { --e1: #a8730c; --e2: #f2c75a; }
.e-silver { --e1: #6f7b8c; --e2: #dfe6ef; }
.e-bronze { --e1: #7d4a22; --e2: #e2a271; }
.e-iron { --e1: #3d4a5c; --e2: #9fb0c4; }
.e-lock { --e1: #5a6575; --e2: #aab3bf; }
.matrix { display: grid; gap: 4px; }
.mx-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.mx-head { display: none; }
.mx-rh { grid-column: 1 / -1; min-width: 0; }
.mx-c { display: flex; min-width: 0; }
.mx-c > .mx-cell { flex: 1 1 auto; }
.mx-board { display: block; font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; padding: 8px 2px 0; overflow-wrap: anywhere; }
.mx-cell { display: flex; flex-direction: column; justify-content: center; padding: 6px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; font-variant-numeric: tabular-nums; }
.mx-cell::before { content: attr(data-p); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mx-cell small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-cell.none { color: var(--muted); align-items: center; border-style: dashed; background: transparent; }
.mx-cell.g1 { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 18%, var(--panel2)); }
.mx-cell.g2 { border-color: var(--silver); }
.mx-cell.g3 { border-color: var(--bronze); }
.mx-cell.t10 { border-color: var(--accent2); }
.mx-cell:hover { border-color: var(--accent); }
.bio { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ugc { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); text-decoration: none; overflow-wrap: anywhere; }
.ext { font-size: 12px; opacity: .7; }
.banner-prev { display: block; margin-bottom: 8px; }
.banner-prev img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); }
.ps-block { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 15px; letter-spacing: .04em; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ find, me */
.find-card h1 { margin: 6px 0 6px; font-size: clamp(26px, 6vw, 40px); }
.joined.big { margin-top: 16px; flex-wrap: wrap; }
.big-in { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: inherit; font-size: 17px; }
.big-in:focus { border-color: var(--accent2); }
.find-out { margin-top: 14px; }
.found { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; background: var(--panel2); animation: rowin .4s ease both; }
.found > div { flex: 1 1 220px; min-width: 0; }
.plain { margin: 6px 0 12px; padding-left: 20px; }
.plain li { margin-bottom: 6px; }
.warn { color: var(--down); font-weight: 600; }
.warn-card { border-color: var(--down); }
.me-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.me-head > div { flex: 1 1 240px; min-width: 0; }
.me-head h1 { margin: 4px 0; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi-l { color: var(--muted); font-size: 13px; }
.kpi-v { font-size: 30px; color: var(--link); font-variant-numeric: tabular-nums; }
.kpi-n { color: var(--muted); font-size: 12.5px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-table tr.out td { color: var(--muted); }
.me-table td:first-child { min-width: 140px; }

/* ------------------------------------------------------------------ teams, hall, banners, about */
.intro h1 { margin: 6px 0 6px; font-size: clamp(26px, 6vw, 40px); }
.tcard { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.tcard-i { font-size: 28px; }
.champs { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.champ { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 24px; color: var(--text); text-decoration: none; background: linear-gradient(170deg, color-mix(in srgb, var(--gold) 16%, var(--panel)), var(--panel) 55%); transition: transform .15s; }
.champ:hover { transform: translateY(-3px); }
.champ .crown { top: 0; }
.champ-who { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.champ-who .av-l { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--gold); }
.champ-b { font-size: 15px; }
.month { padding: 0; overflow: hidden; }
.month summary { cursor: pointer; padding: 14px 16px; font-size: 17px; }
.month[open] summary { border-bottom: 1px solid var(--line); }
.hall-grid { padding: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.hall-board { padding: 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.hall-bn { display: block; font-weight: 700; color: var(--text); text-decoration: none; margin-bottom: 6px; }
.hall-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.hall-board li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bgrid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.banner-card.wide { grid-column: 1 / -1; }
.banner-card .bcard-head h3 { font-size: 16px; margin: 0; }
.bprev { display: grid; place-items: center; padding: 12px; min-height: 60px; border-radius: 12px; background: repeating-conic-gradient(var(--panel2) 0% 25%, var(--bg) 0% 50%) 50% / 16px 16px; border: 1px solid var(--line); overflow: hidden; }
.bprev img { height: auto; max-width: 100%; image-rendering: auto; }
.snip { display: block; white-space: pre-wrap; word-break: break-all; font-size: 12.5px; }
.about-hero { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.about-hero img { width: 100%; max-width: 360px; height: auto; border-radius: 12px; justify-self: center; }
.about-hero h1 { margin: 6px 0 6px; font-size: clamp(28px, 6vw, 42px); }
.credit { color: var(--muted); font-size: 12.5px; font-style: italic; margin: 10px 0 0; }
.toc { margin-top: 14px; }
.doc p { margin: 0 0 10px; }
.ach td { font-size: 14px; }
.ach-n { display: inline-flex; align-items: center; gap: 8px; }
.ach-n .emblem { width: 28px; height: 30px; }
.units { display: grid; grid-template-columns: 1fr; gap: 2px 14px; margin: 0; }
.units dt { font-weight: 700; color: var(--accent2); margin-top: 8px; }
.units dd { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ problem, loading, toasts, confetti */
.problem { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.problem img { width: 100%; max-width: 260px; height: auto; border-radius: 14px; justify-self: center; }
.problem h1 { margin: 0 0 8px; font-size: clamp(26px, 6vw, 38px); }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 70px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 460px; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: toastin .25s ease both; transition: opacity .5s, transform .5s; text-align: center; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti span { --x: 50vw; --d: 0s; --r: 180deg; position: absolute; top: -12px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; animation: fall 2.6s cubic-bezier(.3, .6, .5, 1) var(--d) both; }
.confetti .c0 { background: var(--gold); } .confetti .c1 { background: var(--accent2); } .confetti .c2 { background: #9b86ff; } .confetti .c3 { background: #ff7b6b; }
@keyframes fall { to { transform: translateY(105vh) rotate(var(--r)); opacity: .2; } }

/* ------------------------------------------------------------------ wider screens */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .row { grid-template-columns: 64px 52px minmax(0, 1fr) minmax(0, 220px) 36px; grid-template-areas: "rank move who band fol"; padding: 7px 10px; }
  .c-band { padding-left: 0; justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .you-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
  .hero-in { padding: 120px 34px 30px; }
  .pod .av-l { width: 72px; height: 72px; }
  .pod1 .av-l { width: 96px; height: 96px; }
  .pod .step { height: 84px; } .pod1 .step { height: 120px; } .pod3 .step { height: 64px; }
  .pod-who .nm { font-size: 15px; }
  .mx-head { display: grid; }
  .mx-row { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
  .mx-rh { grid-column: auto; align-self: center; }
  .mx-board { padding: 0 4px; }
  .mx-head span { color: var(--muted); font-size: 12.5px; padding: 0 6px; }
  .mx-cell::before { display: none; }
  .units { grid-template-columns: max-content 1fr; }
  .units dt { margin-top: 0; }
  .problem { grid-template-columns: 260px 1fr; }
}
@media (min-width: 900px) {
  .site-in { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav act"; }
  .nav { margin: 0; padding: 0; justify-content: center; }
  .controls { position: sticky; top: 64px; }
  html { scroll-padding-top: 80px; }
  .hero { min-height: 500px; }
  .hero::after { background: linear-gradient(90deg, #0b1018f2 0%, #0b1018c4 42%, #0b101826 78%), linear-gradient(0deg, #0b1018cc 0%, transparent 40%); }
  .hero-in { padding: 64px 44px 44px; }
  .pbanner { height: 240px; }
  .phead { grid-template-columns: auto minmax(0, 1fr) minmax(260px, 340px); justify-items: stretch; text-align: left; align-items: end; margin-top: -78px !important; padding: 0 12px; }
  .pid { padding-bottom: 8px; }
  .pid .actions { justify-content: flex-start; }
  .avring { width: 156px; height: 156px; }
  .avring .av-xl { width: 120px; height: 120px; }
  .pgrid { grid-template-columns: minmax(0, 1fr) 330px; }
  .about-hero { grid-template-columns: 300px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .medal.m1::after { display: none; }
}
@media print {
  .site, .foot, .tools, .youbar, .fol, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}

/* synthetic demo site (ADR 0017) */
.demo-banner { position: relative; z-index: 50; padding: .55rem 1rem; text-align: center; font-weight: 700; background: repeating-linear-gradient(45deg, #b45309, #b45309 12px, #92400e 12px, #92400e 24px); color: #fff; letter-spacing: .02em; }

/* inside a column .tool the .search flex-basis would become a 220px height */
.tool .search { flex: 0 0 auto; }
.demo-chip { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: repeating-linear-gradient(45deg, #b45309, #b45309 6px, #92400e 6px, #92400e 12px); vertical-align: 2px; }

/* ------------------------------------------------------------------ charts (uPlot, ADR 0018) */
.chart-card .sec-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.chart-card h2 { margin: 0; }
.chart-card .chips { margin: 10px 0 4px; }
.chart { position: relative; width: 100%; min-height: 260px; margin-top: 8px; }
.chart .uplot { font-family: inherit; color: var(--muted); }
.chart .u-legend { font-size: 13px; color: var(--text); text-align: left; margin-top: 6px; }
.chart .u-legend .u-series { padding: 2px 8px 2px 0; }
.chart .u-legend .u-series > * { padding: 2px 4px; }
.chart .u-legend .u-off > * { opacity: .45; }
.chart .u-legend th { font-weight: 600; color: var(--text); }
.chart .u-cursor-x, .chart .u-cursor-y { border-color: var(--line2) !important; }
.chart .u-select { background: color-mix(in srgb, var(--accent2) 14%, transparent); }
.chart-wait { display: grid; place-items: center; min-height: 260px; color: var(--muted); font-size: 14px; }
.chart-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.chart-data { margin-top: 10px; }
.chart-data summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 600; }
.chart-data table { margin-top: 8px; font-size: 13px; }
.chart-data td, .chart-data th { white-space: nowrap; }
.chart-data caption { text-align: left; color: var(--muted); font-size: 12.5px; padding-bottom: 4px; }
