/* Self-hosted so no request goes to Google Fonts (faster, and no visitor data leaves the site). Only used for the numbers in the cluster bubbles.
   Font: JetBrains Mono Bold, Latin subset, SIL Open Font License 1.1 (see static/fonts/OFL.txt). */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../static/fonts/jetbrains-mono-latin-700.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; }

:root {
  --bg: #0d1117;
  --panel: #0d1117;
  --line: #30363d;
  --text: #e8ecf5;
  --dim: #8b949e;
  --accent: #19f5d8; /* these four are overwritten by theme.js when another accent color is picked */
  --accent-rgb: 25, 245, 216;
  --on-accent: #04201c;
  --logo-hue: 0deg;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }
#globe { position: fixed; inset: 0; }

/* Starfield: two tiled layers drawn at the screen's pixel ratio (see js/stars.js), so stars stay sharp */
#stars { position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  background: #000; }
#stars .layer { position: absolute; left: 0; top: 0; width: calc(100% + 1024px); height: calc(100% + 1024px);
  background-size: 1024px 1024px; will-change: transform; }
a { color: var(--accent); }

/* Logo + title + hint. Line heights are explicit (30 + 2 + 20 = 52px) so the logo is exactly as tall as the text block */
#title { --logo: 52px; position: fixed; top: 16px; left: 20px; pointer-events: none; display: flex; align-items: center; gap: 12px; }
#title img { height: var(--logo); width: auto; display: block;
  filter: hue-rotate(var(--logo-hue)) drop-shadow(0 0 5px rgba(var(--accent-rgb), .35)) drop-shadow(0 0 14px rgba(var(--accent-rgb), .25)); } /* soft neon glow, milder than the globe's */
#title h1 { margin: 0; font-size: 22px; line-height: 30px; letter-spacing: .01em; }
.title-row { display: flex; align-items: center; gap: 9px; }
#title .title-info { margin-top: 1px; pointer-events: auto; } /* #title ignores the mouse so the globe underneath stays draggable; the link needs it back */
#title p { margin: 2px 0 0; font-size: 15px; line-height: 20px; color: var(--dim); }
/* Tournament counter + "Recent tournaments" button: centered under the filter bar */
#statsbar { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  white-space: nowrap; pointer-events: none; } /* only the button takes clicks */
#stats { color: var(--dim); font-size: 17px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
#recent, #featured, .regional-open { pointer-events: auto; font: inherit; font-size: 13px; padding: 3px 12px; color: var(--accent); cursor: pointer;
  border: 1px solid var(--accent); border-radius: 999px; background: rgba(13, 17, 23, .6); }
#recent:hover:not(:disabled), #featured:hover, .regional-open:hover, #recent[aria-pressed="true"], #featured[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
#recent:disabled { opacity: .45; cursor: default; }
#featured[hidden] { display: none; }

#area { position: fixed; top: 16px; right: 16px; max-height: calc(100vh - 28px); /* bottom edge 12px from the screen bottom, like the footer: it fully covers the bottom-right info block */ width: min(380px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 0 8px;
  display: flex; flex-direction: column; }
#area[hidden], #modal[hidden], #rg-modal[hidden], #keys-modal[hidden] { display: none; }
#area h2 { margin: 0 44px 10px 18px; font-size: 17px; }
#area ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
#area li button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer;
  padding: 10px 18px 10px 24px; border-top: 1px solid var(--line); } /* extra room on the left for the tier strip */
#area li button:hover, #area li button:focus-visible { background: #161b22; }
#area .sub { color: var(--dim); font-size: 13px; }
#area .loc { color: var(--accent); }

/* While the tournament popup is open, the filter bar and counter fade out so the popup can use the whole screen
   without overlapping them (delete these two rules to keep them visible behind the dimming) */
#filters, #statsbar, #regional { transition: opacity .18s ease, visibility .18s; }
body:has(:is(#modal, #rg-modal, #keys-modal):not([hidden])) :is(#filters, #statsbar, #regional) { opacity: 0; visibility: hidden; }

/* open/close animations (delete this block to remove them; the closing delay in js/panels.js is then harmless) */
/* Tournament list: slides in from the right */
#area:not([hidden]) { transform-origin: top right; animation: area-in .22s cubic-bezier(.2, .8, .2, 1); }
#area.closing { animation: area-out .18s ease-in forwards; pointer-events: none; } /* must stay after the rule above */
@keyframes area-in { from { opacity: 0; transform: translateX(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes area-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(24px) scale(.98); } }
/* Tournament popup: the dimmed backdrop fades while the card rises and scales in */
:is(#modal, #rg-modal, #keys-modal):not([hidden]) { animation: fade-in .2s ease-out; }
:is(#modal, #rg-modal, #keys-modal):not([hidden]) .card { animation: card-in .26s cubic-bezier(.2, .8, .2, 1); }
:is(#modal, #rg-modal, #keys-modal).closing { animation: fade-out .18s ease-in forwards; pointer-events: none; } /* must stay after the rules above */
:is(#modal, #rg-modal, #keys-modal).closing .card { animation: card-out .18s ease-in forwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes card-in { from { transform: translateY(14px) scale(.97); } to { transform: none; } }
@keyframes card-out { from { transform: none; } to { transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  #area:not([hidden]), #area.closing, :is(#modal, #rg-modal, #keys-modal):not([hidden]), :is(#modal, #rg-modal, #keys-modal).closing,
  :is(#modal, #rg-modal, #keys-modal):not([hidden]) .card, :is(#modal, #rg-modal, #keys-modal).closing .card { animation: none; }
}

/* "Ordered by" dropdown in the tournament list */
#order { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 18px 12px; font-size: 13px; color: var(--dim); }
#order[hidden] { display: none; }
#order select { font: inherit; color: var(--text); background: #161b22; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 8px; cursor: pointer; }
#order select:hover { border-color: var(--accent); }

/* Winner preview: floats to the left of the tournament list while hovering a tournament */
#peek { position: fixed; z-index: 4; width: 240px; overflow: hidden; pointer-events: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: opacity .15s ease, transform .18s ease, visibility .15s; }
#peek.on { opacity: 1; visibility: visible; transform: none; }
.peek-art { display: flex; aspect-ratio: 626 / 457; background: #161b22; }
.peek-art[hidden] { display: none; }
.peek-art img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.peek-body { padding: 10px 12px 12px; }
.peek-body small { display: block; font-size: 12px; color: var(--accent); }
.peek-body b { display: block; margin: 2px 0; font-size: 15px; line-height: 1.3; }
.peek-body span { display: block; font-size: 13px; color: var(--dim); }
@media (hover: none) { #peek { display: none; } }
@media (prefers-reduced-motion: reduce) { #peek { transition: none; } }

/* The winner's art behind every tournament in the list (js/list.js). Dimmed so the text stays readable; hovering or focusing a row lights it up. */
#area li button { position: relative; isolation: isolate; overflow: hidden; transition: background-color .2s ease; }
.row-art { position: absolute; inset: 0; z-index: -1; display: flex; pointer-events: none; }
.row-art img { flex: 1; min-width: 0; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0; filter: brightness(.85);
  transition: opacity .3s ease, filter .2s ease; }
.row-art img.ok { opacity: 1; }
.row-art::after { content: ""; position: absolute; inset: 0; transition: opacity .2s ease;
  background: linear-gradient(90deg, rgba(13, 17, 23, .96) 0%, rgba(13, 17, 23, .82) 50%, rgba(13, 17, 23, .5) 100%); }
#area li button:is(:hover, :focus-visible) { background-color: #1c232d; }
#area li button:is(:hover, :focus-visible) .row-art img { filter: brightness(1.15) saturate(1.1); }
#area li button:is(:hover, :focus-visible) .row-art::after { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .row-art img, .row-art::after, #area li button { transition: none; } }

/* Tier strip: fixed-width, rounded bar on the left of each tournament in the list, inset 6px from the row's borders
   (thresholds: TIERS in js/list.js). Grey is dark and silver light so they stay apart; platinum is League of Legends' teal. */
#area li button { --tier: #4b525b; }
#area li button[data-tier="bronze"] { --tier: #cd7f32; }
#area li button[data-tier="silver"] { --tier: #c5ccd6; }
#area li button[data-tier="gold"] { --tier: #f5c518; }
#area li button[data-tier="platinum"] { --tier: #4e9996; }
#area li button[data-tier="diamond"] { --tier: #54d2ff; }
#area li button::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; background: var(--tier); z-index: 1; }

/* Featured (upcoming) tournaments in the list panel: each row is a link to TopDeck, with an accent-colored strip
   where the past tournaments have their tier color */
#area li a.feat { position: relative; display: block; padding: 10px 18px 10px 24px; border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
#area li a.feat:hover, #area li a.feat:focus-visible { background: #161b22; }
#area li a.feat::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; background: var(--accent); }
#area .price { color: var(--text); font-weight: 600; }

.close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0;
  border-radius: 6px; background: transparent; color: var(--dim); font-size: 22px; cursor: pointer; }
.close:hover { color: var(--text); background: #161b22; }

#modal, #rg-modal, #keys-modal { position: fixed; inset: 0; z-index: 20; /* above the filter bar, so the dimming covers it too */
  background: rgba(4, 7, 14, .72); display: flex; align-items: center; justify-content: center;
  padding: 24px; } /* same margin on every side */
/* max-height: 100% follows the visible area of the screen (on phones, 100vh also counts the space under the browser's toolbar) */
.card { position: relative; width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card .close { z-index: 2; color: var(--text); background: rgba(13, 17, 23, .55); }

.banner { flex: none; min-height: 130px; padding: 22px 56px 14px 20px; display: flex; flex-direction: column; justify-content: flex-end;
  background-image: linear-gradient(180deg, rgba(13, 17, 23, .25), var(--panel)), var(--banner-art, none);
  background-size: cover; background-position: center var(--banner-pos, 22%); }
.banner h2 { margin: 0 0 2px; font-size: 22px; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
#m-meta, #m-draw { margin: 0; color: #c9d3e8; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
#m-draw { margin-bottom: 10px; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
#m-bracket, #m-view { font: inherit; font-size: 13px; line-height: normal; color: var(--text); text-decoration: none; padding: 3px 12px; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 999px; background: rgba(13, 17, 23, .6); }
#m-bracket:hover, #m-view:hover { background: var(--accent); color: var(--on-accent); }
#m-view[hidden] { display: none; }

.scroll { overflow: auto; padding: 10px 14px 14px; }
#m-list, #m-meta-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 14px; color: var(--dim); }

.entry { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; min-height: 64px;
  padding: 10px 16px 10px 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #161b22; color: var(--text); text-decoration: none; }
.entry:hover { border-color: var(--accent); }
.entry::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(13, 17, 23, .95) 0%, rgba(13, 17, 23, .75) 45%, rgba(13, 17, 23, .2) 100%); }
.art { position: absolute; inset: 0; z-index: -2; display: flex; }
.art img { flex: 1; min-width: 0; height: 100%; object-fit: cover; object-position: center 22%; }
.rank { flex: none; width: 46px; text-align: center; font-size: 14px; font-weight: 700; color: var(--dim); }
.who { flex: 1; min-width: 0; }
.who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { display: block; font-size: 13px; color: #b9c5de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mstat { flex: none; min-width: 74px; text-align: right; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); font-variant-numeric: tabular-nums; }
.mstat b { display: block; font-size: 15px; }
.mstat small { display: block; font-size: 11px; color: #b9c5de; white-space: nowrap; }
#m-list[hidden], #m-meta-list[hidden] { display: none; }
.rec { flex: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.rec i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--dim); margin: 0 7px 0 2px; }
.rec i:last-child { margin-right: 0; }

footer { position: fixed; bottom: 12px; left: 20px; color: var(--dim); font-size: 13px; line-height: 1.6; }
/* Bottom-right info block, level with the footer's last line (the list panel sits above it).
   Every <p class="meta-item"> inside #meta in index.html is one line; the block is hidden on phones (600px block below). */
#meta { position: fixed; right: 20px; bottom: 12px; z-index: 0; color: var(--dim); font-size: 13px; line-height: 1.6; text-align: right; }
.meta-item { margin: 0; }
.meta-item[hidden] { display: none; }

/* Tool buttons above the "Data updated" line (right to left: color picker, accessibility, shortcuts) */
.meta-tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-bottom: 8px; }
.tool-wrap { position: relative; display: flex; }
.tool { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--dim);
  background: rgba(13, 17, 23, .78); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.tool:hover { color: var(--text); border-color: var(--accent); }
.tool[aria-disabled="true"] { opacity: .55; cursor: default; } /* placeholders until they get a function */
.tool[aria-disabled="true"]:hover { color: var(--dim); border-color: var(--line); }
.tool svg { display: block; width: 16px; height: 16px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); }

/* Accent color menu: opens above the picker button */
#color-menu { position: absolute; right: 0; bottom: calc(100% + 8px); display: flex; gap: 8px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  animation: pop .12s ease-out; }
#color-menu[hidden] { display: none; }
.opt { width: 22px; height: 22px; padding: 0; background: var(--c); border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; transition: transform .12s ease; }
.opt:hover { transform: scale(1.12); }
.opt[aria-checked="true"] { border-color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #color-menu { animation: none; } .opt { transition: none; } }
#area { z-index: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* Floating filter bar (solid background: backdrop blur over WebGL is expensive) */
#filters { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px;
  padding: 6px 10px; background: rgba(13, 17, 23, .78); border: 1px solid var(--accent); border-radius: 17px;
  white-space: nowrap; z-index: 5; }
#filters .group { display: flex; align-items: center; gap: 2px; }
#filters .group + .group { padding-left: 18px; border-left: 1px solid var(--line); }
#filters span { color: var(--dim); font-size: 13px; margin-right: 8px; }
/* the last button has 11px of inner padding on the right: mirror it before the first label so both sides match */
#filters .group:first-child > span { padding-left: 11px; }
#filters button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px;
  padding: 5px 11px; border-radius: 10px; cursor: pointer; }
#filters button:hover { background: #161b22; }
#filters button.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Cluster bubbles: outer = positioned by globe.gl, .dot = visual circle that grows on hover */
.bubble { pointer-events: auto; position: relative; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.bubble .dot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 700;
  color: var(--fg); background: var(--c); border: 2px solid #fff;
  box-shadow: 0 0 10px var(--c), 0 0 2px rgba(0, 0, 0, .6);
  transition: transform .15s ease, box-shadow .15s ease; }
.bubble:hover { z-index: 10; }
.bubble:hover .dot { transform: scale(1.25); box-shadow: 0 0 18px var(--c), 0 0 2px rgba(0, 0, 0, .6); }

/* the filter bar would overlap the panel below ~1540px, so the panel starts under it */
@media (max-width: 1550px) {
  #area { top: 72px; max-height: calc(100vh - 84px); }
}

/* Below ~1375px the centered filter bar would run into the logo and title, so it drops underneath them
   (the full title stays visible: logo + name + hint) */
@media (max-width: 1400px) {
  /* the title keeps its usual spot (top 16px, ends at 68px); the bar starts 16px below it */
  #filters { top: 84px; } /* ends at ~127px */
  #statsbar { top: 134px; }
  #area { top: 136px; max-height: calc(100vh - 148px); }
}

@media (max-width: 900px) {
  #filters { gap: 10px; max-width: calc(100vw - 16px); overflow-x: auto; }
  #filters .group + .group { padding-left: 10px; }
  #filters span { display: none; }
  #area { max-height: calc(100vh - 264px); } /* the 5-line footer reaches under the list here, so keep clear of it */
}

/* Phones */
@media (max-width: 600px) {
  /* filters: two stacked rows with bigger tap targets instead of one scrolling row (ends at ~169px) */
  #filters { flex-direction: column; gap: 0; width: calc(100vw - 16px); max-width: 420px; overflow: visible; padding: 6px 8px; }
  #filters .group { gap: 4px; }
  #filters .group + .group { margin-top: 6px; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  #filters button { flex: 1; padding: 6px 4px; }
  #statsbar { top: 180px; flex-wrap: wrap; justify-content: center; width: calc(100vw - 16px); row-gap: 6px; } /* counter + buttons wrap onto two lines */
  #stats { font-size: 15px; }
  #meta { display: none; } /* bottom-right info block */
  #modal, #rg-modal, #keys-modal { padding: 16px; }
  /* tournament list: a bottom sheet above the footer, so the globe stays visible (tap it to close the list) */
  #area { top: auto; left: 8px; right: 8px; bottom: 128px; width: auto; max-height: 42vh; }
  #area:not([hidden]) { transform-origin: bottom center; animation-name: sheet-in; }
  #area.closing { animation-name: sheet-out; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sheet-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(24px); } }

/* Keyboard shortcuts window */
.keys { width: min(480px, 100%); }
.keys-body { padding: 22px 24px 18px; overflow-y: auto; }
.keys h2 { margin: 0 40px 6px 0; font-size: 19px; }
.keys h3 { margin: 16px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.keys dl { display: grid; grid-template-columns: 136px 1fr; gap: 6px 16px; margin: 0; align-items: center; }
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--text); font-size: 14px; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; text-align: center; font: 600 12px/1.5 ui-monospace, Consolas, monospace;
  color: var(--text); background: #161b22; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; }

/* ---- Accessibility menu (bottom-right tools) ---- */
#a11y-menu { position: absolute; right: 0; bottom: calc(100% + 8px); width: 290px; padding: 12px 14px 12px; z-index: 30;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: pop .12s ease-out; text-align: left; }
#a11y-menu[hidden] { display: none; }
#a11y-menu h3 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; line-height: 1.3; cursor: pointer; }
.a11y-row small { display: block; color: var(--dim); font-size: 11.5px; }
.a11y-row input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
.a11y-seg { display: flex; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.a11y-seg button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.a11y-seg button + button { border-left: 1px solid var(--line); }
.a11y-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
#a11y-reset { margin-top: 8px; width: 100%; padding: 5px; font: inherit; font-size: 12px; color: var(--dim); background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
#a11y-reset:hover { color: var(--text); border-color: var(--accent); }

/* Text size: the page is laid out in pixels, so the interface (not the globe) is scaled up as a whole */
html[data-text="1"] { --zoom: 1.15; }
html[data-text="2"] { --zoom: 1.3; }
html[data-text="1"] :is(#title, #filters, #statsbar, #area, #regional, #meta, footer, .card, #peek),
html[data-text="2"] :is(#title, #filters, #statsbar, #area, #regional, #meta, footer, .card, #peek) { zoom: var(--zoom); }

/* High contrast: brighter text and borders */
html.a11y-contrast { --text: #fff; --dim: #d0d7e0; --line: #8b949e; }
html.a11y-contrast #stats, html.a11y-contrast footer, html.a11y-contrast #meta { color: #fff; text-shadow: 0 0 4px #000, 0 1px 6px #000; }
html.a11y-contrast .bubble .dot { border-width: 3px; }
html.a11y-contrast :focus-visible { outline-width: 3px; }
html.a11y-contrast #area .sub, html.a11y-contrast .sub { color: #d0d7e0; }

/* Reduce motion (the system setting or the menu): nothing animates */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* Starry background off */
html.a11y-nostars #stars { display: none; }
html.a11y-nostars body { background: #05080d; }