/* Self-hosted fonts (latin and latin-ext subsets), so pages make no third-party requests. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500 800; font-display: swap;
  src: url(fonts/playfair-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Light is the default; dark follows the system theme. */
:root {
  color-scheme: light dark;
  --bg: #f5f6fa;
  --bg-2: #e6ebf5;
  --text: #0e1016;
  --muted: rgba(14, 16, 22, 0.6);
  --faint: rgba(14, 16, 22, 0.4);
  --accent: #2f6bff;
  --mark-a: #2f6bff;
  --mark-b: #8a5cff;
  --surface: #ffffff;
  --surface-border: rgba(14, 16, 22, 0.07);
  --surface-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 24px 60px -28px rgba(16, 24, 40, 0.22);
  --row-rule: rgba(14, 16, 22, 0.06);
  --row-hover: rgba(47, 107, 255, 0.035);
  --track: rgba(14, 16, 22, 0.06);
  --fill-a: #7db4ff;
  --fill-b: #2f6bff;
  --tag-bg: rgba(14, 16, 22, 0.05);
  --tag-text: rgba(14, 16, 22, 0.55);
  /* Liquid glass (top buttons) */
  --lg-tint: rgba(255, 255, 255, 0.06);
  --lg-tint-hover: rgba(255, 255, 255, 0.16);
  --lg-rim-hi: rgba(255, 255, 255, 1);
  --lg-rim-lo: rgba(255, 255, 255, 0.4);
  --lg-rim-shade: rgba(14, 16, 22, 0.1);
  --lg-sheen: rgba(255, 255, 255, 0.12);
  --lg-shadow: 0 8px 22px -10px rgba(22, 32, 60, 0.3), 0 1px 3px -1px rgba(22, 32, 60, 0.12);
  --lg-inner: inset 0 0 4px rgba(255, 255, 255, 0.22), inset 0 -6px 10px -8px rgba(255, 255, 255, 0.5);
  --lg-text-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  --lg-accent: #2f6bff;
  --lg-accent-hover: #255ff0;
  /* Frosted menus */
  --frost: rgba(255, 255, 255, 0.4);
  --frost-border: rgba(255, 255, 255, 0.9);
  --frost-shadow: 0 18px 50px -12px rgba(22, 32, 60, 0.3), 0 0 0 0.5px rgba(14, 16, 22, 0.1);
  --menu-hover: rgba(14, 16, 22, 0.06);
  --live-tint: rgba(250, 251, 253, 0.42);
  --live-tint-hover: rgba(255, 255, 255, 0.56);
  --red: #e0342f;
  --star: 228, 62%, 26%;
  --space: #dde3f0;
  --space-edge: #c3cce0;
  --glow: rgba(255, 255, 255, 0.85);
  --aurora-1: rgba(47, 107, 255, 0.26);
  --aurora-2: rgba(138, 92, 255, 0.24);
  --aurora-3: rgba(255, 90, 140, 0.14);
  --aurora-top: #e8eefc;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Montserrat", var(--font);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0c12; --bg-2: #121827; --text: #f3f5fa; --muted: rgba(243, 245, 250, 0.62); --faint: rgba(243, 245, 250, 0.4);
    --accent: #6ea8ff; --mark-a: #6ea8ff; --mark-b: #b99cff;
    --surface: rgba(255, 255, 255, 0.035); --surface-border: rgba(255, 255, 255, 0.08);
    --surface-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --row-rule: rgba(255, 255, 255, 0.06); --row-hover: rgba(110, 168, 255, 0.05);
    --track: rgba(255, 255, 255, 0.08); --fill-a: #3a7bff; --fill-b: #8cc2ff;
    --tag-bg: rgba(255, 255, 255, 0.07); --tag-text: rgba(243, 245, 250, 0.6);
    --lg-tint: rgba(255, 255, 255, 0.02); --lg-tint-hover: rgba(255, 255, 255, 0.08);
    --lg-rim-hi: rgba(255, 255, 255, 0.6); --lg-rim-lo: rgba(255, 255, 255, 0.1); --lg-rim-shade: rgba(255, 255, 255, 0.04);
    --lg-sheen: rgba(255, 255, 255, 0.08); --lg-text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    --lg-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    --lg-inner: inset 0 0 14px rgba(255, 255, 255, 0.06), inset 0 -10px 18px -14px rgba(255, 255, 255, 0.25);
    --lg-accent: #3a74ff; --lg-accent-hover: #4b82ff;
    --frost: rgba(24, 26, 34, 0.42); --frost-border: rgba(255, 255, 255, 0.12);
    --frost-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(0, 0, 0, 0.6);
    --menu-hover: rgba(255, 255, 255, 0.09);
    --live-tint: rgba(26, 28, 36, 0.42); --live-tint-hover: rgba(40, 43, 54, 0.56);
    --red: #ff5a52; --star: 214, 90%, 84%; --space: #04050b; --space-edge: #010103; --glow: rgba(70, 110, 255, 0.16);
   --aurora-1: rgba(58, 116, 255, 0.3); --aurora-2: rgba(140, 92, 255, 0.24); --aurora-3: rgba(255, 70, 110, 0.1); --aurora-top: #0d1222;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0c12; --bg-2: #121827; --text: #f3f5fa; --muted: rgba(243, 245, 250, 0.62); --faint: rgba(243, 245, 250, 0.4);
  --accent: #6ea8ff; --mark-a: #6ea8ff; --mark-b: #b99cff;
  --surface: rgba(255, 255, 255, 0.035); --surface-border: rgba(255, 255, 255, 0.08);
  --surface-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --row-rule: rgba(255, 255, 255, 0.06); --row-hover: rgba(110, 168, 255, 0.05);
  --track: rgba(255, 255, 255, 0.08); --fill-a: #3a7bff; --fill-b: #8cc2ff;
  --tag-bg: rgba(255, 255, 255, 0.07); --tag-text: rgba(243, 245, 250, 0.6);
  --lg-tint: rgba(255, 255, 255, 0.02); --lg-tint-hover: rgba(255, 255, 255, 0.08);
  --lg-rim-hi: rgba(255, 255, 255, 0.6); --lg-rim-lo: rgba(255, 255, 255, 0.1); --lg-rim-shade: rgba(255, 255, 255, 0.04);
  --lg-sheen: rgba(255, 255, 255, 0.08); --lg-text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  --lg-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --lg-inner: inset 0 0 14px rgba(255, 255, 255, 0.06), inset 0 -10px 18px -14px rgba(255, 255, 255, 0.25);
  --lg-accent: #3a74ff; --lg-accent-hover: #4b82ff;
  --frost: rgba(24, 26, 34, 0.42); --frost-border: rgba(255, 255, 255, 0.12);
  --frost-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(0, 0, 0, 0.6);
  --menu-hover: rgba(255, 255, 255, 0.09);
  --live-tint: rgba(26, 28, 36, 0.42); --live-tint-hover: rgba(40, 43, 54, 0.56);
  --red: #ff5a52; --star: 214, 90%, 84%; --space: #04050b; --space-edge: #010103; --glow: rgba(70, 110, 255, 0.16);
   --aurora-1: rgba(58, 116, 255, 0.3); --aurora-2: rgba(140, 92, 255, 0.24); --aurora-3: rgba(255, 70, 110, 0.1); --aurora-top: #0d1222;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hyperspace (homepage only) */
body.home { background: var(--space); }
#hyperspace, #snapshots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 36% at 50% 50%, var(--glow), transparent 100%),
    radial-gradient(ellipse at center, transparent 35%, var(--space-edge) 100%); }

/* Liquid glass: the top buttons. A clear, lightly tinted lens with a specular rim,
   inner glow and soft drop shadow. app.js adds edge refraction where the browser
   supports SVG backdrop filters (Chromium); elsewhere this blur is the fallback. */
.lg {
  position: relative; isolation: isolate;
  border: 0; color: var(--text);
  background: var(--lg-tint);
  box-shadow: var(--lg-shadow), var(--lg-inner);
  text-shadow: var(--lg-text-shadow);
  backdrop-filter: blur(3px) saturate(170%);
  -webkit-backdrop-filter: blur(3px) saturate(170%);
  --lg-blur: 0.6;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background-color 0.2s, box-shadow 0.2s;
}
/* Specular rim: bright where light hits (top left, bottom right), fading on the sides. */
.lg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--lg-rim-hi) 0%, var(--lg-rim-lo) 22%, var(--lg-rim-shade) 45%, var(--lg-rim-shade) 60%, var(--lg-rim-lo) 82%, var(--lg-rim-hi) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* Top sheen, under the label. */
.lg::after {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, var(--lg-sheen) 0%, transparent 48%);
  opacity: 0.9;
}
button.lg, a.lg { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.lg:hover, a.lg:hover { background: var(--lg-tint-hover); }
button.lg:active, a.lg:active { transform: scale(0.95); }
button.lg:disabled { opacity: 0.38; cursor: default; transform: none; }
button.lg:disabled:hover { background: var(--lg-tint); }
/* The primary button is flatter: a solid fill, no sheen, a faint rim. */
.lg.tinted { background: var(--lg-accent); color: #fff; text-shadow: none; box-shadow: 0 6px 16px -8px rgba(47, 107, 255, 0.6); }
.lg.tinted::after { display: none; }
.lg.tinted::before { opacity: 0.45; }
.lg.tinted:hover { background: var(--lg-accent-hover); }

/* Menus and popovers: the same liquid glass as the buttons, with a bit more tint and
   blur so their text stays readable over whatever they open on top of. */
.frost.lg {
  background: var(--frost);
  box-shadow: var(--frost-shadow), var(--lg-inner);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  --lg-blur: 7;
  text-shadow: none;
}

/* Corner dropdowns: the toggle hugs its label, so there's no dead space. */
.corner { position: fixed; top: 16px; z-index: 20; }
.corner.left { left: 16px; }
.corner.right { right: 16px; }
.dd-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px;
  padding: 0 16px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
}
.dd-toggle .chev { width: 11px; height: 11px; stroke-width: 2.4; opacity: 0.7; transition: transform 0.25s; }
.dropdown.open .dd-toggle .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 8px); width: max-content; min-width: 168px;
  padding: 6px; border-radius: var(--radius);
  visibility: hidden; opacity: 0; transform: translateY(-4px) scale(0.98);
  transition: opacity 0.16s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.2s;
}
.corner.left .dd-menu { left: 0; transform-origin: top left; }
.corner.right .dd-menu { right: 0; transform-origin: top right; }
/* Rankings and Live keep the time and category menus side by side in the right corner. */
.corner-group { display: flex; gap: 8px; }
.corner-group .dropdown { position: relative; }
.dropdown.open .dd-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.dd-menu a, .dd-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--text);
  text-decoration: none; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap;
}
.dd-menu a:hover, .dd-menu button:hover { background: var(--menu-hover); }
.dd-menu .check { width: 14px; height: 14px; stroke-width: 2.4; color: var(--accent); visibility: hidden; }
.dd-menu [aria-current="true"] .check { visibility: visible; }
.dd-menu .count { color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 400; margin-left: 4px; }

/* Homepage */
.hero {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 96px 16px 120px;
}
/* Wordmark: a heavy sans "deploy" set against an italic serif "list" in a blue-violet ink. */
.logo {
  font-family: var(--display); font-size: clamp(60px, 13vw, 140px); font-weight: 700; letter-spacing: -0.05em; margin: 0; line-height: 1;
  padding-bottom: 0.04em; white-space: nowrap;
}
.logo .w1 {
  padding-right: 0.08em; margin-right: -0.08em;
  background: linear-gradient(180deg, var(--text) 50%, color-mix(in srgb, var(--text) 90%, var(--space)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .w2 {
  font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.1em; letter-spacing: -0.03em;
  margin-left: 0.04em; padding-right: 0.1em;
  background: linear-gradient(105deg, var(--mark-a) 10%, var(--mark-b) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top-donate {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  height: 40px; display: flex; align-items: center;
  font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); text-decoration: none;
}
.top-donate:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Kept close under the wordmark so the title, line and buttons read as one block. */
.tagline { font-size: clamp(17px, 2.3vw, 22px); font-weight: 500; color: color-mix(in srgb, var(--text) 72%, transparent); margin: 16px 0 30px; letter-spacing: -0.015em; max-width: 40ch; text-wrap: balance; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
}
.pill svg.icon { width: 18px; height: 18px; }

/* Live view: the site fills the screen and the controls float over it.
   Embedded sites can be any color, so Live's glass carries more tint to keep text readable. */
body.live .lg { --lg-tint: var(--live-tint); --lg-tint-hover: var(--live-tint-hover); --lg-blur: 5; }
body.live { overflow: hidden; height: 100%; }
.frame-wrap { position: fixed; inset: 0; z-index: 1; background: var(--bg); }
.frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
/* Only the visible buttons and menus take clicks; the gaps around and between them
   pass through to the page or site underneath. */
.corner, .live-controls { pointer-events: none; }
.corner > *, .live-controls > * { pointer-events: auto; }
.live-controls {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 520px);
}
.round { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; padding: 0; }
.round svg.icon { width: 18px; height: 18px; stroke-width: 2.4; }
.now-playing { display: flex; flex-direction: column; justify-content: center; height: 52px; border-radius: 999px; padding: 0 26px; text-align: center; min-width: 0; max-width: 440px; }
.now-playing .site { display: block; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.now-playing .site:hover { text-decoration: underline; }
.now-playing .meta { font-size: 12px; line-height: 1.35; color: var(--text); font-weight: 500; display: flex; gap: 6px; justify-content: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.now-playing .meta a { color: var(--text); text-decoration: none; font-weight: 500; }
.now-playing .meta a:hover { text-decoration: underline; }
.now-playing .meta .sep { color: var(--faint); user-select: none; }
/* On devices with a pointer, Live's controls stay out of the way until the pointer
   reaches the spot they sit in. */
@media (hover: hover) and (pointer: fine) {
  body.live .corner, body.live .live-controls { opacity: 0; transition: opacity 0.35s ease; }
  body.live:has(.corner:hover, .corner:focus-within, .corner.open, .live-controls:hover, .live-controls:focus-within) :is(.corner, .live-controls),
  body.live.peek :is(.corner, .live-controls) { opacity: 1; transition-duration: 0.18s; }
}

/* Leaderboard */
/* A photo of the city fills the page behind everything: daytime in light mode, the purple
   night in dark. rankings.js drifts it upward at a fraction of the scroll speed (parallax). */
body.board-page { background: var(--bg); }
.paris {
  position: fixed; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; will-change: transform;
  height: calc(100vh + var(--travel, 0px)); height: calc(100lvh + var(--travel, 0px));
  --paris-scrim: linear-gradient(180deg, rgba(245, 246, 250, 0.08) 0%, rgba(245, 246, 250, 0.3) 40%, rgba(245, 246, 250, 0.66) 100%);
  background: var(--paris-scrim), url(bg/paris-light.jpg) center top / cover no-repeat, var(--bg);
  background: var(--paris-scrim), image-set(url(bg/paris-light-1800.webp) type("image/webp"), url(bg/paris-light.jpg) type("image/jpeg")) center top / cover no-repeat, var(--bg);
}
/* Over the busy night photo the dark card needs more body to keep rows readable. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .board-page { --surface: rgba(14, 11, 28, 0.8); }
}
:root[data-theme="dark"] .board-page { --surface: rgba(14, 11, 28, 0.8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .paris {
    --paris-scrim: linear-gradient(180deg, rgba(10, 8, 22, 0.12) 0%, rgba(10, 8, 22, 0.35) 45%, rgba(10, 8, 22, 0.55) 100%);
    background: var(--paris-scrim), url(bg/paris-dark.jpg) center top / cover no-repeat, var(--bg);
    background: var(--paris-scrim), image-set(url(bg/paris-dark-1800.webp) type("image/webp"), url(bg/paris-dark.jpg) type("image/jpeg")) center top / cover no-repeat, var(--bg);
  }
}
:root[data-theme="dark"] .paris {
  --paris-scrim: linear-gradient(180deg, rgba(10, 8, 22, 0.12) 0%, rgba(10, 8, 22, 0.35) 45%, rgba(10, 8, 22, 0.55) 100%);
  background: var(--paris-scrim), url(bg/paris-dark.jpg) center top / cover no-repeat, var(--bg);
  background: var(--paris-scrim), image-set(url(bg/paris-dark-1800.webp) type("image/webp"), url(bg/paris-dark.jpg) type("image/jpeg")) center top / cover no-repeat, var(--bg);
}
@media (max-width: 720px) {
  .paris { background-image: var(--paris-scrim), image-set(url(bg/paris-light-1000.webp) type("image/webp"), url(bg/paris-light.jpg) type("image/jpeg")); }
}
@media (max-width: 720px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .paris { background-image: var(--paris-scrim), image-set(url(bg/paris-dark-1000.webp) type("image/webp"), url(bg/paris-dark.jpg) type("image/jpeg")); }
}
@media (max-width: 720px) {
  :root[data-theme="dark"] .paris { background-image: var(--paris-scrim), image-set(url(bg/paris-dark-1000.webp) type("image/webp"), url(bg/paris-dark.jpg) type("image/jpeg")); }
}
.board { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 100px 20px 32px; }
/* Title: heavy sans "Top-voted" set against a large italic serif noun, like the homepage wordmark. */
.board h1 { font-family: var(--display); font-size: clamp(42px, 7.6vw, 86px); line-height: 1.05; font-weight: 700; text-align: center; margin: 0; letter-spacing: -0.045em; }
.board h1 .lead {
  display: inline-block; padding-right: 0.06em; margin-right: -0.06em;
  background: linear-gradient(180deg, var(--text) 50%, color-mix(in srgb, var(--text) 90%, var(--bg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.board h1 .noun { position: relative; display: inline-block; margin-left: 0.06em; }
.board h1 #noun {
  font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.1em; letter-spacing: -0.02em;
  padding-right: 0.08em;
  background: linear-gradient(105deg, var(--mark-a) 10%, var(--mark-b) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Red brush stroke under the category word, painted in left to right on load. */
/* Two loose bristles trailing just below the stroke, in the same red. */
.brush .brush-trail { opacity: 0.75; }
.brush { position: absolute; left: -4%; width: 108%; bottom: -0.3em; height: 0.5em; fill: var(--red); overflow: visible; z-index: -1; }
.board h1 .noun { isolation: isolate; }
.brush-reveal { transform-box: fill-box; transform-origin: left center; animation: paint 0.7s cubic-bezier(0.6, 0.05, 0.3, 1) 0.15s both; }
@keyframes paint { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.board .sub { text-align: center; color: var(--muted); margin: 22px auto 40px; font-size: 16px; line-height: 1.5; max-width: 52ch; }

/* Everything rises into place on load; rows follow in a quick cascade (rankings.js sets --i). */
/* Homepage: everything grows into place and fades in on load, title first. */
/* Uses the scale property, not transform, so elements keep their own positioning transforms. */
@keyframes pop-in { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }
body.home .logo, body.home .tagline, body.home .cta, body.home .top-donate, body.home .corner {
  animation: pop-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
body.home .tagline { animation-delay: 0.08s; }
body.home .cta { animation-delay: 0.16s; }
body.home .top-donate, body.home .corner { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.board h1, .board .sub, .board .card, .board #updated { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.board .sub { animation-delay: 0.07s; }
.board .card { animation-delay: 0.14s; }
.board #updated { animation-delay: 0.3s; }
#rows.rise tr { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.18s + var(--i, 0) * 28ms); }

.card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 22px; box-shadow: var(--surface-shadow); padding: 6px; }
table.ranks { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.ranks th {
  text-align: left; font-family: var(--display); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--faint); padding: 14px 16px 12px; border-bottom: 1px solid var(--row-rule);
}
.ranks th.rank, .ranks td.rank { width: 76px; text-align: center; }
.ranks th.votes { width: 110px; }
.ranks th.src { width: 230px; }
.ranks th.num, .ranks td.num { text-align: right; }
.ranks td { padding: 0 16px; height: 84px; font-size: 15px; vertical-align: middle; border-bottom: 1px solid var(--row-rule); transition: background-color 0.15s; }
.ranks tbody tr:last-child td { border-bottom: 0; }
.ranks tbody tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.ranks tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.ranks tbody tr:hover td { background: var(--row-hover); }
.ranks td.updated { height: 120px; }

/* The top three squares are brushed metal in gold, silver and bronze: faint horizontal
   hairlines over a soft bright band down the middle, tinted per medal. No shadow. */
.badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted); }
.badge.medal {
  color: #1d1a12; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006 0.8' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.7 0 0 0 -0.27'/%3E%3C/filter%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008 0.7' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0 0 0 -0.065'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23l)'/%3E%3Crect width='120' height='120' filter='url(%23d)'/%3E%3C/svg%3E") center / 120px 120px,
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.5) 46%, rgba(255, 255, 255, 0.58) 52%, transparent 82%),
    linear-gradient(90deg, var(--m-edge), var(--m-mid) 50%, var(--m-edge));
}
.badge.r1 { --m-edge: #d6ad2c; --m-mid: #f3d260; }
.badge.r2 { --m-edge: #a9b0bb; --m-mid: #d6dbe3; }
.badge.r3 { --m-edge: #c27c42; --m-mid: #e8a46a; }

.domain-cell { min-width: 0; }
.domain-cell .line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.domain { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: 650; font-size: 16.5px; letter-spacing: -0.012em; text-decoration: none; color: var(--text); }
.domain .dn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain:hover .dn { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ext { width: 11px; height: 11px; stroke-width: 2.2; opacity: 0.35; transition: opacity 0.15s, transform 0.15s; }
a:hover > .ext { opacity: 0.9; transform: translate(1px, -1px); }
.tag { flex: none; font-size: 11px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-text); white-space: nowrap; }
.domain-cell .title { margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { margin-top: 9px; height: 4px; border-radius: 99px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--fill-a), var(--fill-b)); transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.votes { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }
.src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--text); }
.src a .sn { overflow: hidden; text-overflow: ellipsis; }
.src a .pre { color: var(--faint); }
.src a:hover .sn { text-decoration: underline; text-underline-offset: 3px; }
/* On phones the source moves under the description instead of its own column. */
.src-line { display: none; }
.src-head { position: relative; overflow: visible !important; }
.src-head button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; }
.src-head button:hover { background: var(--menu-hover); color: var(--text); }
.src-head .chev { width: 10px; height: 10px; stroke-width: 2.6; transition: transform 0.2s; }
.src-head button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.popover {
  position: absolute; right: 8px; top: calc(100% + 6px); z-index: 30; border-radius: var(--radius); padding: 6px; width: max-content; min-width: 220px;
  font-family: var(--font); font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
  visibility: hidden; opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top right;
  transition: opacity 0.16s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.2s;
}
.popover.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.popover p { margin: 6px 10px 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.popover a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); }
.popover a:hover { background: var(--menu-hover); }
.updated { color: var(--muted); font-size: 13px; text-align: center; margin-top: 20px; }

footer.site-foot {
  position: relative; z-index: 1; max-width: 1080px; margin: 32px auto 0; padding: 20px 20px 32px;
  display: flex; justify-content: space-between; color: var(--muted); font-size: 13px;
}
footer.site-foot a { color: var(--text); text-decoration: none; font-weight: 500; }
footer.site-foot a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .ranks th.src { width: 180px; }
  .ranks th.votes { width: 92px; }
  .ranks th.rank, .ranks td.rank { width: 64px; }
}
@media (max-width: 720px) {
  /* On phones the site controls move to the bottom, out of the way of the corner menus. */
  .live-controls { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .now-playing { padding: 0 20px; }
  .board { padding: 84px 12px 24px; }
  .board .sub { font-size: 15px; margin: 18px auto 28px; }
  .card { border-radius: 18px; padding: 2px; }
  .ranks th.src, .ranks td.src, .tag { display: none; }
  .ranks th, .ranks td { padding-left: 8px; padding-right: 8px; }
  .ranks td { height: 78px; }
  .ranks th.rank, .ranks td.rank { width: 50px; padding-right: 0; }
  .ranks th.votes { width: 72px; }
  .badge { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
  .domain { font-size: 15.5px; }
  .domain-cell .title { font-size: 13px; }
  .ranks td { height: auto; padding-top: 12px; padding-bottom: 12px; }
  .src-line { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--text); text-decoration: none; max-width: 100%; }
  .src-line .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .src-line .pre { color: var(--faint); }
  .src-line .ext { display: none; }
  .votes { font-size: 15px; }
  .dd-toggle { height: 38px; padding: 0 14px 0 12px; }
  .pill { height: 50px; padding: 0 24px; font-size: 16px; }
  .top-donate { height: 38px; font-size: 13px; }
}

@media (prefers-reduced-transparency: reduce) {
  .lg, .frost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lg { --lg-tint: var(--bg); --lg-tint-hover: var(--bg-2); }
  .frost { background: var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  .brush-reveal { animation: none; }
  body.home .logo, body.home .tagline, body.home .cta, body.home .top-donate, body.home .corner { animation: none; }
  .board h1, .board .sub, .board .card, .board #updated, #rows.rise tr { animation: none; }
  .meter span { transition: none; }
  button.lg:active, a.lg:active { transform: none; }
}
