/* BloxRadar. One stylesheet for every page.
   Look: a printed scoreboard on graphite. Hairline rules instead of cards, tabular numbers,
   one lime accent for "live", blue for up and orange for down (always paired with an arrow).
   Corners: controls 6px, game icons 22%, nothing else rounded. */

:root {
  --bg: #eceef1;
  --surface: #f7f8fa;
  --raise: #ffffffcc;
  --ink: #12161b;
  --ink-2: #3a424c;
  --muted: #5d6672;
  --line: #d4d9df;
  --input-border: #6b747f; /* 4.1:1 on --bg, needed for a visible form field edge */
  --line-strong: #12161b;
  --accent: #3d6b00; /* text-safe lime on light */
  --accent-bg: #d6f58a;
  --accent-ink: #1d2a00;
  --up: #1a56c4;
  --down: #b4410a;
  --flat: #5d6672;
  --chart-line: #1a56c4;
  --chart-fill: rgba(26, 86, 196, 0.12);
  --chart-max: rgba(26, 86, 196, 0.35);
  --grid: rgba(18, 22, 27, 0.08);
  --skeleton: #dfe3e8;
  --shadow: 0 8px 28px rgba(28, 38, 52, 0.14);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(40, 50, 100, 0.09);
  --glass-shadow: 0 12px 40px rgba(70, 80, 150, 0.12);
  --violet: #6d4cff;
  --cyan: #0877b5;
  --glow: radial-gradient(900px 560px at 6% -10%, rgba(124, 92, 255, 0.24), transparent 62%), radial-gradient(800px 520px at 96% -4%, rgba(30, 160, 255, 0.2), transparent 62%), radial-gradient(760px 520px at 62% 108%, rgba(196, 240, 60, 0.26), transparent 62%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #090b14;
    --surface: #11152a;
    --raise: #161b21f0;
    --ink: #e6eaee;
    --ink-2: #bcc4cc;
    --muted: #8a949f;
    --line: #232a32;
    --input-border: #66717d; /* 3.9:1 on --bg */
    --line-strong: #e6eaee;
    --accent: #c4f03c;
    --accent-bg: #c4f03c;
    --accent-ink: #12180a;
    --up: #74a9ff;
    --down: #ff9b5e;
    --flat: #8a949f;
    --chart-line: #74a9ff;
    --chart-fill: rgba(116, 169, 255, 0.14);
    --chart-max: rgba(116, 169, 255, 0.35);
    --grid: rgba(230, 234, 238, 0.07);
    --skeleton: #1b2128;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glass: rgba(28, 32, 54, 0.55);
    --glass-edge: rgba(255, 255, 255, 0.11);
    --glass-line: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 14px 48px rgba(0, 0, 0, 0.45);
    --violet: #a78bff;
    --cyan: #5cc8ff;
    --glow: radial-gradient(900px 560px at 6% -10%, rgba(124, 92, 255, 0.3), transparent 62%), radial-gradient(800px 520px at 96% -4%, rgba(40, 150, 255, 0.22), transparent 62%), radial-gradient(760px 520px at 62% 108%, rgba(196, 240, 60, 0.09), transparent 62%);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #090b14;
  --surface: #11152a;
  --raise: #161b21f0;
  --ink: #e6eaee;
  --ink-2: #bcc4cc;
  --muted: #8a949f;
  --line: #232a32;
  --input-border: #66717d;
  --line-strong: #e6eaee;
  --accent: #c4f03c;
  --accent-bg: #c4f03c;
  --accent-ink: #12180a;
  --up: #74a9ff;
  --down: #ff9b5e;
  --flat: #8a949f;
  --chart-line: #74a9ff;
  --chart-fill: rgba(116, 169, 255, 0.14);
  --chart-max: rgba(116, 169, 255, 0.35);
  --grid: rgba(230, 234, 238, 0.07);
  --skeleton: #1b2128;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass: rgba(28, 32, 54, 0.55);
  --glass-edge: rgba(255, 255, 255, 0.11);
  --glass-line: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 14px 48px rgba(0, 0, 0, 0.45);
  --violet: #a78bff;
  --cyan: #5cc8ff;
  --glow: radial-gradient(900px 560px at 6% -10%, rgba(124, 92, 255, 0.3), transparent 62%), radial-gradient(800px 520px at 96% -4%, rgba(40, 150, 255, 0.22), transparent 62%), radial-gradient(760px 520px at 62% 108%, rgba(196, 240, 60, 0.09), transparent 62%);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01';
}
/* Soft colour behind everything. Fixed, so it stays put while the page scrolls. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--glow);
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.num,
.mono {
  font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.num {
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20; /* layer: sticky header */
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-line);
}
.top-in {
  max-width: 1320px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 420px) 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
/* The radar mark: a ring, a wedge and a centre dot, all in the text colour, hard edged like a vector icon. */
.mark {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: conic-gradient(from 0deg, var(--ink) 0 60deg, transparent 60deg 360deg);
  position: relative;
}
.mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: sweep 6s linear infinite; /* tells you the numbers are live */
  }
}
@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

/* Section menu under the header row. */
.sections-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sections-in::-webkit-scrollbar {
  display: none;
}
.pill,
.subtab {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 550;
}
.pill:hover,
.subtab:hover {
  text-decoration: none;
  border-color: var(--ink-2);
}
.pill[aria-current='page'],
.subtab[aria-current='page'] {
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  border-color: transparent;
  color: #ffffff;
}
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.subtab {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.search {
  position: relative;
}
.search input {
  width: 100%;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--glass);
  color: var(--ink);
  font: inherit;
}
.search input::placeholder {
  color: var(--muted);
}
.search input:focus {
  border-color: var(--ink-2);
}
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30; /* layer: dropdown above header */
  background: var(--raise);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 4px;
  max-height: 70vh;
  overflow: auto;
}
.suggest[hidden] {
  display: none;
}
.suggest a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 4px;
}
.suggest a:hover,
.suggest a[aria-selected='true'] {
  background: var(--bg);
  text-decoration: none;
}
.suggest .empty {
  padding: 10px;
  color: var(--muted);
}

.pulse {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}
.pulse .total {
  font-size: 18px;
  font-weight: 600;
}
.pulse .when {
  font-size: 13px;
  color: var(--muted);
}
.hot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  font-size: 13px;
}
.hot:hover {
  text-decoration: none;
  border-color: var(--ink-2);
}
.hot-label {
  color: var(--muted);
  white-space: nowrap;
}
.hot-name {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--accent-ink);
  transform: translateY(-2px);
}
.live.stale {
  background: var(--down);
  color: var(--bg);
}
.theme-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--ink-2);
}
.theme-btn:active,
.tab:active,
.btn:active {
  transform: translateY(1px);
}

/* ---------- Page frame ---------- */

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}
.foot {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Opening hero on the home page: the overall number, large, and four numbers beside it. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.hero-main,
.tile {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  border-radius: 24px;
}
.hero-main {
  padding: 32px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}
.hero .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.hero .big {
  margin-top: 10px;
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-line {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  font-size: 15px;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tile {
  padding: 22px 24px;
  min-width: 0;
}
.tile .mid {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.tile .sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.tile .top-game {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  min-width: 0;
}
.tile .top-game .name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile .tint-1 { color: var(--violet); }
.tile .tint-2 { color: var(--cyan); }

/* ---------- Home grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-12 { grid-column: span 12; }

.panel {
  min-width: 0;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
  border-radius: 24px;
  padding: 28px 32px 24px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.panel .why {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}
.see-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.see-all::after {
  content: ' \2192';
}
.panel.feature h2 {
  font-size: 26px;
}

/* ---------- Rows ---------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--glass-line);
}
.row:last-child {
  border-bottom: 0;
}
.row .rank {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
.row .val {
  text-align: right;
  font-size: 14px;
}
.row .val small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-family: 'Geist', system-ui, sans-serif;
}
.row.no-rank {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.game {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 22%;
  background: var(--skeleton);
  object-fit: cover;
}
.icon.sm {
  width: 26px;
  height: 26px;
}
.icon.lg {
  width: 96px;
  height: 96px;
}
.game .t {
  min-width: 0;
}
.game .name {
  display: block;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game .by {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chg {
  font-size: 13px;
  white-space: nowrap;
}
.chg.up {
  color: var(--up);
}
.chg.down {
  color: var(--down);
}
.chg.flat,
.chg.na {
  color: var(--flat);
}

/* Breaking out: bigger rows with a 24h line and the multiple. */
.break .row {
  grid-template-columns: 22px minmax(0, 1fr) 120px 92px 84px;
  padding: 10px 0;
}
.mult {
  justify-self: end;
  font-size: 15px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent-ink);
}
.spark {
  width: 120px;
  height: 30px;
  display: block;
}
.spark path.l {
  fill: none;
  stroke: var(--chart-line);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.spark path.a {
  fill: var(--chart-fill);
}

/* Bars for shares. No track behind them, the bar is the value. */
.bars .row {
  grid-template-columns: minmax(0, 1fr) 70px 70px;
}
.bar-label {
  min-width: 0;
}
.bar-label .name {
  display: block;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar {
  height: 4px;
  margin-top: 5px;
  background: var(--ink-2);
  border-radius: 0;
  min-width: 2px;
}

/* Trends: words with example icons. */
.words .row {
  grid-template-columns: 22px minmax(0, 1fr) auto 88px 70px;
}
.word {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.examples {
  display: flex;
  gap: 4px;
}
.examples a {
  display: block;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
}
.tab {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.tab[aria-selected='true'] {
  background: linear-gradient(95deg, var(--violet), var(--cyan));
  color: #ffffff;
}

/* Loading, empty and error states. */
.skel {
  height: 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--skeleton) 0 36px, transparent 36px 48px, var(--skeleton) 48px 55%, transparent 55%) no-repeat;
  background-size: 100% 18px;
  background-position: 0 center;
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .skel {
    animation: breathe 1.4s ease-in-out infinite;
  }
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
.note {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.note.err {
  color: var(--down);
}

/* ---------- List page ---------- */

.page-head {
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.page-head h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}
.pager {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.btn:hover {
  border-color: var(--ink-2);
  text-decoration: none;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* Wide table used on list pages. */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: right;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 0 8px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table th:first-child,
.table td:first-child {
  padding-left: 0;
  text-align: right;
  width: 36px;
}
.table th.l,
.table td.l {
  text-align: left;
}
.table td {
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}
.table td.l {
  max-width: 0;
  width: 100%;
}

/* ---------- Game page ---------- */

.g-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-strong);
}
.g-head h1 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.g-head .meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.pill {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  margin-left: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 16px 16px 16px 0;
}
.stats > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.stats .label {
  font-size: 12px;
  color: var(--muted);
}
.stats .v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.stats .s {
  font-size: 12px;
  margin-top: 2px;
}
.stats .now .v {
  font-size: 30px;
}
.chart-wrap {
  margin-top: 28px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.chart-head h2 {
  margin: 0;
  font-size: 18px;
}
#chart {
  height: 320px;
  min-width: 0;
}
.uplot {
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.u-legend {
  font-size: 12px;
  color: var(--ink-2);
}
.u-legend .u-marker {
  border-radius: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .top-in {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
  .pulse .when,
  .hot {
    display: none;
  }
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats > div:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
  .stats > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }
  .sections-in {
    padding: 0 16px 10px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .site-head {
    height: auto;
  }
  .top-in {
    height: auto;
    padding: 10px 16px;
    grid-template-columns: auto 1fr auto;
    row-gap: 10px;
  }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .pulse .total {
    font-size: 15px;
  }
  main {
    padding: 20px 16px 48px;
  }
  .foot {
    padding: 20px 16px 32px;
  }
  .hero-main {
    padding: 24px 22px;
    min-height: 0;
  }
  .hero-stats {
    gap: 16px;
  }
  .tile {
    padding: 16px 16px;
  }
  .tile .mid {
    font-size: 24px;
  }
  .panel {
    padding: 20px 18px 18px;
    border-radius: 20px;
  }
  .grid,
  .hero {
    gap: 16px;
  }
  .break .row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .break .spark,
  .break .row .val {
    display: none;
  }
  .row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .row .chg {
    display: none;
  }
  .row .val .chg {
    display: inline;
  }
  .words .row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .words .examples {
    display: none;
  }
  .bars .row {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .table .hide-sm {
    display: none;
  }
  .g-head {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }
  .g-head .icon.lg {
    width: 64px;
    height: 64px;
  }
  .g-head .open {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats > div:nth-child(n) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .stats > div:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }
  .stats > div:nth-child(-n + 2) {
    border-top: 0;
  }
  #chart {
    height: 240px;
  }
}
.word-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-panel {
  margin-top: 36px;
}
/* Hours played and earnings on the game page. Two columns split by a hairline, like .stats. */
.earn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.earn > div {
  min-width: 0;
  padding: 8px 20px 8px 0;
}
.earn > div + div {
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--line);
}
.earn .label {
  font-size: 12px;
  color: var(--muted);
}
.earn .label .pill {
  margin-left: 6px;
}
.earn .v {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.earn .v .usd {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 10px;
}
.earn .s {
  font-size: 12px;
  margin-top: 2px;
}
.earn .basis {
  font-size: 13px;
  color: var(--ink-2);
  margin: 14px 0 0;
  max-width: 62ch;
}
.earn .how {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 62ch;
}
.earn .how summary {
  cursor: pointer;
  font-weight: 500;
}
.earn .how p {
  margin: 8px 0 0;
}
#hours-chart {
  height: 200px;
  margin-top: 12px;
  min-width: 0;
}
@media (max-width: 720px) {
  .earn {
    grid-template-columns: minmax(0, 1fr);
  }
  .earn > div,
  .earn > div + div {
    padding: 12px 0;
    border-left: 0;
  }
  .earn > div + div {
    border-top: 1px solid var(--line);
  }
}
.foot p {
  margin: 0 0 4px;
}

/* Phones. The home grid becomes one column, and the header gets three rows:
   brand and theme switch, then search, then the live total. */
@media (max-width: 720px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 40px;
  }
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: auto;
  }
  .top-in {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 8px;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .theme-btn {
    grid-column: 2;
    grid-row: 1;
  }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .pulse {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    gap: 10px;
  }
}
