/* PrimeTiers — Minecraft-style UI: hard edges, bevelled panels, pixel headings. */

/* Pixel font: Jersey 15 (SIL Open Font License, see /fonts/OFL.txt), served from this site.
   It draws small for its size, so size-adjust scales it up to match the layout. */
@font-face {
  font-family: "PT Pixel";
  src: url("/fonts/jersey15-latin.woff2") format("woff2");
  font-display: swap;
  size-adjust: 128%;
  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: "PT Pixel";
  src: url("/fonts/jersey15-latin-ext.woff2") format("woff2");
  font-display: swap;
  size-adjust: 128%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #110d1a;
  --bg-2: #161120;
  --panel: #1c1628;
  --panel-2: #241d33;
  --row: #201a2d;
  --text: #ece8f6;
  --muted: #9a92b0;
  --dim: #6b6480;
  --purple: #9d6bff;
  --purple-d: #6e44d9;
  --purple-dd: #2a1a5e;
  --stone: #3b3350;
  --stone-hi: #4a4066;
  --gold: #ffc83d;
  --win: #5ee07a;
  --loss: #ff6363;
  --pixel: "PT Pixel", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bevel: inset 2px 2px 0 rgba(255, 255, 255, 0.07), inset -2px -2px 0 rgba(0, 0, 0, 0.4);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scroll-padding-top: 104px; /* anchors (/#how) land below the sticky header */
  scrollbar-color: #3b3150 var(--bg);
}
::selection { background: var(--purple-d); color: #fff; }
a, button, summary, input, select, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background-color: var(--bg);
  /* faint block grid, like a dark stone wall */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 2px, transparent 2px);
  background-size: 64px 64px;
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-synthesis-weight: none; /* the pixel font has one weight; fake bold smears it */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
.pixel { image-rendering: pixelated; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.5vw, 50px); }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
p { margin: 0; }
/* width: 100% matters: inside the body's flex column, auto margins would otherwise
   size the box to its widest content (e.g. the gamemode tab row) and overflow the screen. */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.win { color: var(--win); }
.loss { color: var(--loss); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- panels & buttons ---------- */
.panel {
  background: var(--panel);
  border: 2px solid #000;
  box-shadow: var(--bevel);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 62px; padding: 0 34px;
  font: 600 21px var(--pixel); color: #fff; text-decoration: none; cursor: pointer;
  background: var(--stone);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2), inset -2px -3px 0 rgba(0, 0, 0, 0.35);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}
.btn:hover { background: var(--stone-hi); }
.btn:active { box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35); }
.btn-primary { background: var(--purple-d); }
.btn-primary:hover { background: #7d52ec; }
.btn-sm { min-height: 52px; padding: 0 22px; font-size: 18px; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px;
  font: 600 15px var(--pixel); color: #1a1200; background: var(--gold); border: 2px solid #000;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 13, 26, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 0 rgba(157, 107, 255, 0.18);
}
/* One row: logo, plain-text nav right beside it, search on the right. */
.header-inner { display: flex; align-items: center; gap: 36px; min-height: 80px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; white-space: nowrap; font: 700 30px var(--pixel); }
.brand b { color: var(--purple); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px;
  font: 600 21px var(--pixel); color: #b9b2cc; text-decoration: none; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; box-shadow: inset 0 -3px 0 var(--purple); }
.soon { padding: 1px 5px; font: 600 15px var(--pixel); color: #1a1200; background: var(--gold); border: 1px solid #000; }
.nav-toggle { display: none; margin-left: auto; width: 56px; height: 56px; background: var(--panel-2); color: var(--text); border: 2px solid #000; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.demo-bar { background: var(--gold); color: #1a1200; text-align: center; font: 600 15px var(--pixel); padding: 6px 16px; border-top: 2px solid #000; }

/* search */
/* Minecraft text-field look: black box, light grey border. */
.search { position: relative; margin-left: auto; flex: 0 1 340px; min-width: 200px; }
.search > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #8b8b8b; pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 40px 0 44px;
  font: 500 18px var(--pixel); color: #fff;
  background: #000; border: 2px solid #8b8b8b;
}
.search input::placeholder { color: #7a7a7a; }
.search input:focus { outline: none; border-color: #fff; }
.search input::-webkit-search-cancel-button { display: none; }
.search-key {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font: 600 14px var(--mono); color: var(--muted); border: 1px solid #3a3150; padding: 0 6px;
}
.search input:focus ~ .search-key { display: none; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none;
  background: var(--panel); border: 2px solid #000; box-shadow: var(--bevel), 0 12px 32px rgba(0, 0, 0, 0.6);
  max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
}
.search-results li a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; min-height: 58px; font-size: 18px; text-decoration: none; }
.search-results li a > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results li[aria-selected="true"] a, .search-results li a:hover { background: var(--panel-2); }
.search-results mark { background: none; color: var(--gold); }
.search-results .sr-meta { font-size: 14px; color: var(--muted); white-space: nowrap; }
.search-results .sr-all { justify-content: center; color: var(--purple); font: 600 14px var(--pixel); border-top: 2px solid #000; }
.search-results .sr-empty { padding: 10px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.more { display: inline-flex; align-items: center; min-height: 52px; color: var(--purple); font: 600 20px var(--pixel); text-decoration: none; }
.more:hover { text-decoration: underline; }
.lead { color: var(--muted); font-size: 20px; max-width: 58ch; margin-top: 14px; }
.note { color: var(--muted); font-size: 16px; margin-top: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split > section { min-width: 0; }

/* ---------- hero ---------- */
.hero {
  border-bottom: 2px solid #000;
  background:
    linear-gradient(180deg, rgba(110, 68, 217, 0.16), transparent 70%),
    var(--bg-2);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stats div { padding: 26px 12px; text-align: center; }
.hero-stats div + div { border-left: 2px solid #000; }
.hero-stats dt { font-size: 16px; color: var(--muted); }
.hero-stats dd { margin: 6px 0 0; font: 700 40px var(--pixel); color: var(--gold); }

/* ---------- leaderboard table ---------- */
.table-panel { overflow: visible; } /* the "All tiers" panel must be able to spill outside */
.board { width: 100%; border-collapse: collapse; }
.board th {
  text-align: left; font: 600 19px var(--pixel); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  padding: 16px 14px; background: var(--panel-2); border-bottom: 2px solid #000;
}
.board td { padding: 14px 14px; border-bottom: 1px solid #000; vertical-align: middle; }
.board tbody tr:nth-child(even) td { background: var(--row); }
.board tbody tr:hover td { background: var(--panel-2); }
.c-rank { width: 68px; text-align: center !important; }
.c-points, .c-when, .c-len { text-align: right !important; white-space: nowrap; }
.c-region { width: 80px; }
.c-score { text-align: center !important; white-space: nowrap; }
.rank { display: inline-block; min-width: 36px; font: 700 24px var(--pixel); color: var(--muted); }
.podium-1 .rank { color: var(--gold); }
.podium-2 .rank { color: #d9dbe8; }
.podium-3 .rank { color: #e0965c; }
.podium-1 td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.podium-2 td:first-child { box-shadow: inset 4px 0 0 #d9dbe8; }
.podium-3 td:first-child { box-shadow: inset 4px 0 0 #e0965c; }
.c-points { font: 700 21px var(--pixel); color: var(--gold); }
.who { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; text-decoration: none; min-width: 0; }
a.who:hover span { color: var(--gold); }
.who-text { display: inline-flex; flex-direction: column; min-width: 0; }
.who-text > span { overflow: hidden; text-overflow: ellipsis; }
.pts-mobile { display: none; font: 700 15px var(--pixel); color: var(--gold); }
.who.loser { color: var(--muted); font-weight: 500; }
.head { flex: none; border: 2px solid #000; background: #000; }
.region {
  display: inline-block; min-width: 50px; text-align: center; padding: 3px 8px;
  font: 600 16px var(--pixel); color: #fff; background: var(--c); border: 2px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
/* Tier badges: item icon, then a solid block in the tier's colour (darkened so white text reads). */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.chip img { width: 32px; height: 32px; }
/* Every tier label on the site uses this badge (sizes adjusted per place below). */
.chip b, .tier-text, .tier-card > b, .ladder span {
  display: inline-block; min-width: 58px; padding: 4px 8px 3px; text-align: center;
  font: 700 21px/1.15 var(--pixel); color: #fff; letter-spacing: 0.03em;
  background: color-mix(in srgb, var(--c) 68%, #000);
  border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}
/* Hover tooltip for gamemode icons and tier badges (one shared box, positioned by site.js). */
.mc-tip {
  position: fixed; z-index: 100; pointer-events: none; display: flex; flex-direction: column; gap: 1px;
  padding: 6px 10px 5px; white-space: nowrap;
  background: #120318; border: 2px solid #2d0a63;
  box-shadow: 0 0 0 2px #100010, inset 0 0 0 1px #5000a0, 0 8px 20px rgba(0, 0, 0, 0.5);
}
.mc-tip[hidden] { display: none; }
.mc-tip-name { font: 20px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-tip-sub { font: 17px var(--pixel); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
/* "+N" and its "All tiers" panel, styled like a Minecraft item tooltip. */
.more-tiers { position: relative; display: inline-flex; }
.chip-more {
  min-height: 44px; min-width: 48px; padding: 0 10px; cursor: pointer;
  font: 700 21px var(--pixel); color: #d9d3ea; background: #2a2338; border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.chip-more:hover, .more-tiers:focus-within .chip-more { color: #fff; background: #3b3150; }
.tiers-pop {
  display: none; position: absolute; z-index: 30; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  min-width: 230px; padding: 10px 12px; text-align: left;
  background: #120318;
  border: 2px solid #2d0a63;
  box-shadow: 0 0 0 2px #100010, inset 0 0 0 1px #5000a0, 0 12px 28px rgba(0, 0, 0, 0.6);
}
.more-tiers:hover .tiers-pop, .more-tiers:focus-within .tiers-pop { display: block; }
.tiers-pop-title { display: block; margin-bottom: 8px; font: 700 20px var(--pixel); color: #fff; }
.tiers-pop-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 3px 0; }
.tiers-pop-row img { width: 28px; height: 28px; }
.tiers-pop-mode { font: 600 18px var(--pixel); color: #d9d3ea; white-space: nowrap; }
.tiers-pop .tier-text { font-size: 17px; min-width: 50px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px !important; }

/* gamemodes */
.modes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.mode-card {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; min-height: 80px; text-decoration: none;
  font: 600 22px var(--pixel); background: var(--panel); border: 2px solid #000; box-shadow: var(--bevel);
}
.mode-card:hover { background: var(--panel-2); color: var(--gold); }

/* mode tabs + filters */
.mode-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.mode-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 20px;
  font: 600 20px var(--pixel); color: var(--muted); text-decoration: none;
  background: var(--panel); border: 2px solid #000; box-shadow: var(--bevel);
}
.mode-tabs a:hover { color: var(--text); }
.mode-tabs a.is-active { color: #fff; background: var(--purple-d); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.filters label { display: inline-flex; align-items: center; gap: 10px; font: 600 19px var(--pixel); color: var(--muted); }
.filters select {
  height: 58px; padding: 0 14px; font: 500 18px var(--sans); color: var(--text);
  background: #0b0812; border: 2px solid #000; box-shadow: 0 0 0 1px #3a3150;
}
.filters .count { margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }

/* feeds */
.feed, .match-mini, .results { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #000;
}
.feed li:last-child { border-bottom: 0; }
.feed a { display: block; padding: 10px 0; margin: -10px 0; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed a:hover { color: var(--gold); }
.feed-what { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 17px; }
.feed time { font-size: 15px; white-space: nowrap; }
.tier-text { font-size: 18px; min-width: 52px; }
/* Previous tier: the same badge, faded, with a thick strike line across it. */
.tier-old { position: relative; text-decoration: none; opacity: 0.8; filter: saturate(0.7); }
.tier-old::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; margin-top: -1px;
  background: #ff6363; box-shadow: 0 0 0 1px #000; transform: rotate(-20deg);
}
.tier-arrow { font: 26px var(--pixel); color: var(--text); line-height: 1; }
.trend { width: 28px; height: 28px; flex: none; filter: drop-shadow(2px 2px 0 #000); }
.match-mini a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid #000; }
.match-mini li:last-child a { border-bottom: 0; }
.match-mini a:hover { background: var(--panel-2); }
.mm-names { flex: 1; min-width: 0; }
.mm-score { font: 700 17px var(--pixel); }
.results li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #000; }
.results li .chips { flex: 1; }

/* how it works + ladder */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps li { padding: 22px; }
.steps b { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; font: 700 24px var(--pixel); color: #1a1200; background: var(--gold); border: 2px solid #000; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 17px; }
.ladder { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 20px; }
.ladder span { display: block; min-width: 0; padding: 14px 0; font-size: 20px; }

/* ---------- top-3 podium ---------- */
.podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 14px;
  margin-bottom: 16px; padding: 24px 24px 0;
  background: linear-gradient(180deg, rgba(110, 68, 217, 0.22), transparent 75%), var(--panel);
}
.stand { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; min-width: 0; }
.stand-body { height: 150px; width: auto; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5)); transition: transform 0.15s; }
.stand-1 .stand-body { height: 190px; }
.stand:hover .stand-body { transform: translateY(-4px); }
.crown { width: 54px; height: 36px; margin-bottom: -2px; }
.stand-title { margin-top: 8px; font: 18px var(--pixel); color: var(--muted); }
.stand-1 .stand-title { color: var(--gold); }
.stand-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 28px var(--pixel); }
.stand-1 .stand-name { font-size: 34px; color: var(--gold); }
.stand:hover .stand-name { text-decoration: underline; }
.stand-pts { font: 24px var(--pixel); color: var(--gold); }
.stand-stats { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.stand .chips { justify-content: center; margin: 10px 0 14px; gap: 6px 10px; max-width: 360px; }
.stand-tiers .chip img { width: 26px; height: 26px; }
.stand-tiers .chip b { font-size: 17px; min-width: 46px; padding: 2px 6px; }

/* ---------- leaderboard header: title, hotbar, filters ---------- */
.ladder-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid #2a2338; }
.ladder-icon { width: 60px; height: 60px; flex: none; }
.ladder-icon img { width: 40px; height: 40px; }
.ladder-title h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1; }
.ladder-title p { margin-top: 6px; color: var(--muted); font: 20px var(--pixel); }
.ladder-count { margin-left: auto; text-align: right; line-height: 1.05; }
.ladder-count b { display: block; font: 36px var(--pixel); color: #fff; }
.ladder-count span { font: 19px var(--pixel); color: var(--muted); }

.ladder-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 18px 0 20px; }
.hotbar-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; }
.hotbar-label { min-height: 28px; font: 22px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #000; }
.mode-hotbar { display: flex; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: thin;
  background: var(--well); border: 2px solid #000; box-shadow: inset 0 0 0 2px #2a2338; }
/* Hotbar slot: a recessed stone well; the selected one gets a violet frame */
.hb-slot {
  position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--panel); box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.5), inset -3px -3px 0 rgba(255, 255, 255, 0.07);
}
.mode-hotbar .hb-slot + .hb-slot { margin-left: 2px; }
.hb-slot img { width: 36px; height: 36px; image-rendering: pixelated; }
.mode-hotbar .hb-slot:hover { background: var(--panel-2); }
.mode-hotbar .hb-slot:focus-visible { background: var(--panel-2); outline: 2px solid var(--gold); outline-offset: -2px; }
.mode-hotbar .hb-slot.is-selected { box-shadow: inset 0 0 0 4px var(--purple), inset 0 0 0 6px #000; background: var(--purple-dd); }

.mc-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.pillar {
  width: 100%; display: grid; place-items: center; font: 64px var(--pixel); color: rgba(0, 0, 0, 0.55);
  border: 2px solid #000; border-bottom: 0; text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.25);
  background-size: 24px 24px;
}
/* block textures: flat pixel bevels and a faint 2x2 pattern, no smooth gradients */
.block-gold { height: 150px; background-color: #f5c827; box-shadow: inset 6px 6px 0 #fff2a0, inset -6px -6px 0 #b9860f;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 50%, transparent 50%), linear-gradient(rgba(255, 255, 255, 0.08) 50%, transparent 50%); }
.block-iron { height: 110px; background-color: #d5d8dc; box-shadow: inset 6px 6px 0 #fff, inset -6px -6px 0 #8f949a;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 50%, transparent 50%); }
.block-copper { height: 80px; background-color: #c46b3f; box-shadow: inset 6px 6px 0 #ec9a6b, inset -6px -6px 0 #7c3b1f;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.07) 50%, transparent 50%); }

/* medals + champion banner */
.medal { display: inline-block; width: 22px; height: 28px; vertical-align: -5px; }
.medal-1 { --m: #ffc83d; --m2: #fff09a; --r: #e83b6b; }
.medal-2 { --m: #d9dbe8; --m2: #ffffff; --r: #4a7dff; }
.medal-3 { --m: #e0965c; --m2: #ffc9a0; --r: #3ddc97; }
.medal-face { fill: var(--m); }
.medal-shine { fill: var(--m2); }
.medal-ribbon { fill: var(--r); }
.champion-banner {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 4px 12px 4px 8px;
  font: 21px var(--pixel); color: #1a1200; border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.champion-banner.place-1 { background: var(--gold); }
.champion-banner.place-2 { background: #d9dbe8; }
.champion-banner.place-3 { background: #e0965c; }
.champion-banner.small { margin-top: 0; font-size: 17px; padding: 2px 8px 2px 6px; }
.champion-banner.small .medal { width: 16px; height: 20px; }
.medals { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.medals li { display: inline-flex; align-items: center; gap: 6px; font: 19px var(--pixel); }
.medals .place-1 { color: var(--gold); }
.medals .place-2 { color: #d9dbe8; }
.medals .place-3 { color: #e0965c; }
.tier-card a .medal { width: 18px; height: 22px; margin-left: 6px; vertical-align: -3px; }
.tier-card a span { font-size: inherit; }

/* Custom dropdowns (Region / Tier): Minecraft button + tooltip-style menu. */
.mc-drop { position: relative; }
.mc-drop-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px 0 12px; cursor: pointer;
  list-style: none; user-select: none;
  font: 20px var(--pixel); color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  background: var(--stone); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2), inset -2px -3px 0 rgba(0, 0, 0, 0.35);
}
.mc-drop-btn::-webkit-details-marker { display: none; }
.mc-drop-btn:hover { background: var(--stone-hi); }
.mc-drop[open] > .mc-drop-btn { background: var(--stone-hi); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35); }
.mc-drop-ico { width: 18px; height: 18px; flex: none; }
.mc-drop-btn .tier-text, .mc-drop-btn .region { text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45); }
.mc-drop-name { font-size: 18px; }
.mc-drop-caret { width: 12px; height: 8px; margin-left: 4px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M0 0h5v1H4v1H3v1H2V2H1V1H0z'/%3E%3C/svg%3E") no-repeat center / contain; }
.mc-drop[open] .mc-drop-caret { transform: rotate(180deg); }
.mc-drop-menu {
  position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 240px; padding: 6px;
  display: grid; gap: 2px;
  background: #120318; border: 2px solid #2d0a63;
  box-shadow: 0 0 0 2px #100010, inset 0 0 0 1px #5000a0, 0 12px 28px rgba(0, 0, 0, 0.6);
}
.mc-drop-menu a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px;
  font: 18px var(--pixel); color: #d9d3ea; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent;
}
.mc-drop-menu a:hover { background: #2a1440; color: #fff; }
.mc-drop-menu a:focus-visible { background: #2a1440; color: #fff; outline: 2px solid var(--gold); outline-offset: -2px; }
.mc-drop-menu a.is-selected { border-color: var(--purple); color: #fff; }
.mc-drop-menu .region { min-width: 46px; font-size: 15px; }
.mc-drop-menu .tier-text { min-width: 52px; font-size: 17px; }
.mc-drop-all { display: inline-block; min-width: 46px; padding: 2px 6px; text-align: center; font: 15px var(--pixel); color: #fff; background: var(--stone); border: 2px solid #000; }
/* tiers: HT and LT of each level side by side */
.mc-drop-tiers { grid-template-columns: 1fr 1fr; min-width: 380px; }
.mc-drop-tiers .mc-drop-wide { grid-column: 1 / -1; }

/* ---------- combat ranks ---------- */
.crank {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  font: 16px var(--pixel); color: var(--c); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6); white-space: nowrap;
}
.crank::before { /* small pixel diamond in the rank colour */
  content: ""; width: 8px; height: 8px; flex: none; background: var(--c); transform: rotate(45deg);
  box-shadow: 0 0 0 1px #000;
}
.who-text .crank { margin-top: 1px; }
.stand .crank { margin-top: 2px; font-size: 18px; }
.rank-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px;
  padding-top: 16px; border-top: 2px solid #000;
}
.rank-card-head { display: flex; flex-direction: column; gap: 2px; }
.rank-card-head .muted { font-size: 15px; }
.rank-card-head .crank { font-size: 24px; }
.rank-bar { height: 16px; background: #0b0812; border: 2px solid #000; box-shadow: inset 0 0 0 1px #2a2338; }
.rank-bar i { display: block; height: 100%; background: var(--c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.rank-next { font: 19px var(--pixel); color: var(--muted); white-space: nowrap; }
.rank-next b { color: #fff; font-weight: 400; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rank-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; box-shadow: var(--bevel), inset 4px 0 0 var(--c); }
.rank-list .crank { font-size: 21px; }
.rank-list b { font: 19px var(--pixel); color: var(--muted); font-weight: 400; }
.ladder-step { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
.ladder-step small { font: 16px var(--pixel); color: var(--muted); }

/* ---------- player page ---------- */
.profile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px; margin-bottom: 24px; }
.profile-head { flex: none; width: 96px; height: 96px; max-width: none; border: 2px solid #000; }
.profile-meta { display: flex; gap: 8px; margin-top: 10px; }
.acct { padding: 3px 10px; font: 600 16px var(--pixel); border: 2px solid #000; }
.acct-premium { background: #1f5c34; color: #c9ffd8; }
.acct-cracked { background: #3a3150; color: var(--muted); }
.profile-stats { display: flex; gap: 0; margin: 0; }
.profile-stats div { padding: 0 20px; text-align: center; }
.profile-stats div + div { border-left: 2px solid #000; }
.profile-stats dt { font-size: 15px; color: var(--muted); }
.profile-stats dd { margin: 4px 0 0; font: 700 32px var(--pixel); color: var(--gold); }
.tier-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier-card { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; box-shadow: var(--bevel), inset 4px 0 0 var(--c); }
.tier-card a { display: block; padding: 10px 0; margin: -10px 0; font: 600 20px var(--pixel); text-decoration: none; }
.tier-card a:hover { color: var(--gold); }
.tier-card span { font-size: 15px; }
.tier-card > b { min-width: 72px; padding: 6px 10px 5px; font-size: 24px; }

/* ---------- matches ---------- */
.preview-note { padding: 12px 16px; margin-bottom: 16px; color: var(--muted); box-shadow: var(--bevel), inset 4px 0 0 var(--gold); }
.preview-note b { color: var(--gold); }
.mode-cell { display: inline-flex; align-items: center; gap: 8px; }
.row-link { cursor: pointer; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); font: 600 15px var(--pixel); text-decoration: none; }
.back:hover { color: var(--gold); }
.match-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.match-title p { margin-top: 4px; font-size: 15px; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px; margin-bottom: 28px; }
.sb-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sb-side img { border: 2px solid #000; }
.sb-side b { display: block; font: 700 22px var(--pixel); }
.sb-side span { font: 600 15px var(--pixel); }
.sb-right { flex-direction: row-reverse; text-align: right; }
.sb-score { display: grid; grid-template-columns: auto auto auto; gap: 8px; align-items: center; text-align: center; font: 700 44px var(--pixel); }
.sb-score small { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.key { display: inline-block; width: 14px; height: 4px; }
.key-a, .line-a { --line: var(--purple); }
.key-b, .line-b { --line: var(--gold); }
.key { background: var(--line); }
.rounds { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.round { padding: 12px; }
.round-head { display: flex; justify-content: space-between; font-family: var(--pixel); margin-bottom: 8px; }
.round p { font-size: 15px; margin-top: 8px; }
.health-chart { display: block; width: 100%; height: 60px; background: #0b0812; border: 2px solid #000; }
.health-chart polyline { fill: none; stroke: var(--line); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.health-chart .grid { stroke: #2a2338; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.win-a { color: var(--purple); }
.win-b { color: var(--gold); }
.h2h { padding: 16px 20px; margin-bottom: 28px; }
.h2h table { width: 100%; border-collapse: collapse; }
.h2h td { padding: 6px 0; }
.h2h-a, .h2h-b { width: 70px; font: 700 18px var(--pixel); color: var(--muted); }
.h2h-b { text-align: right; }
.h2h .lead { color: var(--text); }
.h2h-bar { padding: 6px 16px !important; }
.h2h-label { display: block; text-align: center; font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.bar { display: flex; height: 10px; border: 2px solid #000; background: #000; }
.bar i { display: block; }
.bar-a { background: var(--purple); }
.bar-b { background: var(--gold); }
.players { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.player-card { display: grid; gap: 12px; align-content: start; }

/* Inventory: a raised obsidian panel holding recessed stone slots */
.inv {
  background: var(--panel-2); color: var(--text); padding: 10px;
  border: 2px solid #000;
  box-shadow: var(--bevel);
}
.inv h3 { color: var(--text); font-size: 16px; margin: 0 0 8px; }
.inv-top { display: flex; gap: 6px; align-items: stretch; }
.inv-col { display: flex; flex-direction: column; }
.inv-off { justify-content: flex-end; }
.inv-model { display: grid; place-items: center; width: 92px; background: var(--well); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.5), inset -2px -2px 0 rgba(255, 255, 255, 0.07); }
.inv-vitals { margin: 0 0 0 6px; display: grid; gap: 6px; align-content: start; font-size: 15px; }
.inv-vitals dt { font: 600 13px var(--pixel); color: var(--muted); }
.inv-vitals dd { margin: 2px 0 0; color: var(--text); }
.slot {
  position: relative; display: grid; place-items: center; width: 36px; height: 36px;
  background: #5e5876; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.45), inset -2px -2px 0 rgba(255, 255, 255, 0.14); /* light enough for dark items like netherite */
}
.slot-abbr { font: 700 13px var(--pixel); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; }
.slot-count { position: absolute; right: 2px; bottom: 0; font: 700 13px var(--pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
/* Main inventory (3 rows of 9) above the hotbar, with the game's small gap between them. */
.inv-main { display: grid; grid-template-columns: repeat(9, 36px); margin-top: 10px; }
.hotbar { display: grid; grid-template-columns: repeat(9, 36px); margin-top: 8px; }
.hearts { display: grid; grid-template-columns: repeat(5, 14px); gap: 2px; }
.heart { display: block; width: 14px; height: 12px; background-size: 14px 12px; image-rendering: pixelated; }
/* hand-drawn 7x6 pixel hearts */
.heart-full { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23d42a2a' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3Cpath fill='%23ff8080' d='M1 1h1v1H1z'/%3E%3C/svg%3E"); }
.heart-half { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23473636' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3Cpath fill='%23d42a2a' d='M1 0h2v1h1v5H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E"); }
.heart-empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23473636' d='M1 0h2v1h1V0h2v1h1v2H6v1H5v1H4v1H3V5H2V4H1V3H0V1h1z'/%3E%3C/svg%3E"); }
.stat-panel { padding: 16px; }
.result { font: 700 22px var(--pixel); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 2px solid #000; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.stat-grid dt { font-size: 15px; color: var(--muted); }
.stat-grid dd { margin: 2px 0 0; font: 700 20px var(--pixel); }

/* ---------- error ---------- */
.error-page { text-align: center; padding-top: 80px; padding-bottom: 80px; }
.error-code { font: 700 72px var(--pixel); color: var(--purple); }
.error-page .actions { justify-content: center; }
.error-page p.muted { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; border-top: 2px solid #000; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 24px; }
.footer-brand p { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); text-decoration: none; font: 600 19px var(--pixel); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid #000; font-size: 15px; color: var(--dim); }

/* ---------- responsive ---------- */
/* Phones and small tablets: logo + menu button on top, full-width search, nav behind the button. */
@media (max-width: 1020px) {
  html { scroll-padding-top: 168px; } /* header stacks logo, menu and search */
  .header-inner { flex-wrap: wrap; row-gap: 12px; column-gap: 12px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .nav-toggle { order: 2; display: inline-grid; place-items: center; }
  .search { order: 3; flex: 1 1 100%; margin-left: 0; }
  .search-key { display: none; }
  .nav { order: 4; flex: 1 1 100%; flex-direction: column; align-items: stretch; display: none; border-top: 2px solid #000; padding-top: 6px; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 56px; }
  .nav a.is-active { box-shadow: inset 4px 0 0 var(--purple); }
}
@media (max-width: 1000px) {
  .rank-list { grid-template-columns: repeat(2, 1fr); }
  .rank-card { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .players { grid-template-columns: 1fr; }
  .c-region { display: none; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .profile { grid-template-columns: auto 1fr; }
  .profile-stats { grid-column: 1 / -1; justify-content: space-around; }
  .profile-stats div { padding: 0 8px; }
  .ladder { grid-template-columns: repeat(5, 1fr); }
  .c-len, .c-when { display: none; }
  .filters .count { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  /* Podium stays side by side on small screens, just scaled down (one tier badge each). */
  .podium { gap: 6px; padding: 14px 8px 0; }
  .stand-body { height: 86px; }
  .stand-1 .stand-body { height: 112px; }
  .crown { width: 36px; height: 24px; }
  .stand-title { font-size: 14px; margin-top: 4px; }
  .stand-name, .stand-1 .stand-name { font-size: 18px; }
  .stand-pts { font-size: 17px; }
  .stand .chips { margin: 6px 0 8px; }
  .stand .chip:nth-child(n+4) { display: none; }
  .stand .chips { gap: 4px; }
  .stand-stats { flex-direction: column; gap: 2px; }
  .stand-stats .region { font-size: 13px; min-width: 36px; padding: 1px 4px; }
  /* header + hotbar on phones */
  .ladder-head { gap: 12px; }
  .ladder-icon { width: 48px; height: 48px; }
  .ladder-icon img { width: 30px; height: 30px; }
  .ladder-title h1 { font-size: 32px; }
  .ladder-title p { font-size: 15px; }
  .ladder-count b { font-size: 26px; }
  .ladder-count span { font-size: 15px; }
  .hotbar-wrap { width: 100%; }
  .hb-slot { width: 48px; height: 48px; }
  .hb-slot img { width: 30px; height: 30px; }
  .mc-filters { width: 100%; }
  .mc-drop { flex: 1; min-width: 0; }
  .mc-drop-btn { width: 100%; height: 48px; font-size: 17px; padding: 0 10px; gap: 8px; }
  .mc-drop-name { display: none; }
  .mc-drop-caret { margin-left: auto; }
  .mc-drop-menu { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; min-width: 0; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }
  .stand .chip img { width: 22px; height: 22px; }
  .stand .chip b { font-size: 15px; min-width: 40px; padding: 2px 5px; }
  .pillar { font-size: 32px; }
  .block-gold { height: 72px; }
  .block-iron { height: 54px; }
  .block-copper { height: 40px; }
  .block-gold, .block-iron, .block-copper { box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.55), inset -4px -4px 0 rgba(0, 0, 0, 0.3); }
}
@media (max-width: 560px) {
  .rank-list { grid-template-columns: 1fr; }
  .rank-next { white-space: normal; font-size: 17px; }
  /* "All tiers" opens as a panel pinned to the bottom of the screen, so it never runs off the side. */
  .tiers-pop { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; transform: none; min-width: 0; }
  .chip img { width: 28px; height: 28px; }
  .chip b { font-size: 19px; min-width: 52px; }
  .c-points { display: none; }
  .pts-mobile { display: block; }
  /* Phone leaderboard: rank | player on one line, tier badges full width underneath. */
  .board thead { display: none; }
  .board tbody tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; border-bottom: 1px solid #000; }
  .board tbody tr:nth-child(even) { background: var(--row); }
  .board tbody td { border-bottom: 0; background: none !important; }
  .board td.c-rank { grid-row: span 2; align-self: stretch; display: grid; place-items: center; box-shadow: none !important; }
  .board td.c-tiers { grid-column: 2; padding-top: 0; }
  .board td.empty { grid-column: 1 / -1; }
  .board .podium-1 { box-shadow: inset 4px 0 0 var(--gold); }
  .board .podium-2 { box-shadow: inset 4px 0 0 #d9dbe8; }
  .board .podium-3 { box-shadow: inset 4px 0 0 #e0965c; }
  .profile-head { width: 72px; height: 72px; }
  .profile { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px; }
  .profile h1 { font-size: 26px; overflow-wrap: anywhere; }
  .profile-stats dt { font-size: 15px; }
  .profile-stats dd { font-size: 26px; }
  .head { width: 36px; height: 36px; }
  body { font-size: 16px; }
  .brand { font-size: 28px; }
  .brand img { width: 40px; height: 40px; }
  .actions .btn { flex: 1 1 100%; min-height: 56px; }
  .filters label, .filters select { flex: 1 1 100%; }
  .filters label { flex-wrap: wrap; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-stats dd { font-size: 30px; }
  .board td, .board th { padding: 12px 8px; }
  .c-rank { width: 44px; }
  .rank { font-size: 20px; min-width: 0; }
  .who { gap: 6px; }
  .scoreboard { grid-template-columns: 1fr; text-align: center; }
  .sb-side, .sb-right { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hotbar, .inv-main { grid-template-columns: repeat(9, 30px); }
  .hotbar .slot, .inv-main .slot { width: 30px; height: 30px; }
  .inv-top { flex-wrap: wrap; }
  .feed li { grid-template-columns: 24px minmax(7.5em, 1fr) auto; gap: 8px; padding: 14px 12px; }
  .feed-what { gap: 4px; }
  /* the row icon already shows the gamemode; keep the name for screen readers only */
  .feed-mode { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .feed-what .tier-arrow { font-size: 20px; }
  .feed time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
