/* Blockbilanz – Pixel-/Retro-Look: dunkle Fläche, kräftige Farbkacheln, Anzeigetafel-Schrift.
   Schriften: Jersey 10 (Pixel-Display, Zahlen & Überschriften), Rubik (Text),
   Silkscreen (kleine Pixel-Akzente: Navigation, Buttons, Badges). Alle OFL, lokal. */

@font-face {
  font-family: 'Jersey 10';
  src: url('/fonts/jersey-10-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/rubik-var.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/fonts/silkscreen-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/fonts/silkscreen-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Flächen */
  --bg: #17121f;
  --bg-raised: #221b2e;
  --bg-sunken: #100c16;
  --ink: #15111c;            /* Text auf hellen Kacheln, Rahmen */
  --ink-soft: rgb(21 17 28 / 0.72);
  --text: #f7f2ff;
  --text-muted: #b8adca;
  --line: #3a3049;
  --line-soft: #2c2439;
  --shadow: #060408;

  /* Kachelfarben */
  --teal: #3fd6c4;
  --green: #7bd957;
  --purple: #b98af0;
  --red: #ff6b57;
  --yellow: #ffcf40;
  --sky: #8ccaff;
  --pink: #f4a9da;
  --orange: #ff9a3c;
  --night: #3a2d52;

  --focus: #ffcf40;

  /* Schrift */
  --font-display: 'Jersey 10', 'Silkscreen', ui-monospace, monospace;
  --font-pixel: 'Silkscreen', ui-monospace, monospace;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-h3: clamp(1.6rem, 1.3rem + 0.8vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  --fs-h1: clamp(3.6rem, 2.2rem + 6vw, 6rem);
  --fs-stat: clamp(2.4rem, 1.8rem + 2.2vw, 3.6rem);

  /* Raster */
  --border: 3px;
  --shadow-offset: 4px;
  --gap: clamp(14px, 1rem + 0.8vw, 28px);
  --section: clamp(40px, 2rem + 3vw, 72px);
  --wrap: 1260px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--bg-sunken);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base) / 1.55 var(--font-body);
  font-feature-settings: 'tnum' 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  caret-color: var(--yellow);
  accent-color: var(--green);
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

main {
  flex: 1;
  outline: none;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--yellow);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- Skip-Link */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--yellow);
  color: var(--ink);
  font: 700 var(--fs-sm) var(--font-pixel);
  padding: 10px 14px;
  border: var(--border) solid var(--ink);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

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

.site-header {
  background: rgb(16 12 22 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border) solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  image-rendering: pixelated;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.brand__name {
  font: 400 2rem / 1 var(--font-display);
  letter-spacing: 0.02em;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tab {
  font: 700 var(--fs-sm) var(--font-pixel);
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px;
  border: var(--border) solid transparent;
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover {
  color: var(--text);
  border-color: var(--line);
}
.tab[aria-current='page'] {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  border-top: var(--border) solid var(--line-soft);
  background: var(--bg-sunken);
  margin-top: var(--section);
  padding: 28px 0 36px;
  font-size: var(--fs-sm);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

/* ---------------------------------------------------------------- Hero */

.hero {
  padding: clamp(36px, 2rem + 3vw, 72px) 0 0;
}
.hero h1 {
  font-size: var(--fs-h1);
  color: var(--yellow);
  text-shadow: 5px 5px 0 var(--shadow);
}
.hero__lead {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.6;
}

/* Stats: Text links, Kacheln rechts */
.hero--stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--gap) clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__glance h2 {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 8px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--bg-raised);
  border: 2px solid var(--line);
  flex-wrap: wrap;
}
.dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  background: var(--text-muted);
  flex: none;
}
.dot--online {
  background: var(--green);
  animation: blink 2s steps(2, jump-none) infinite;
}
.dot--offline {
  background: var(--red);
}
.dot--unknown {
  background: var(--yellow);
}
@keyframes blink {
  50% { box-shadow: 0 0 0 3px rgb(123 217 87 / 0.35); }
}

/* ---------------------------------------------------------------- Sektionen */

.section {
  margin-top: var(--section);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section__head h2 {
  font-size: var(--fs-h2);
}
.card .section__head h2 {
  font-size: var(--fs-h3);
}
.section__hint {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ---------------------------------------------------------------- Karten / Kacheln */

.card {
  background: var(--bg-raised);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
  padding: clamp(16px, 1rem + 0.6vw, 24px);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 0.6rem + 0.6vw, 18px);
}
.tile {
  color: var(--ink);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
  position: relative;
}
.tile__value {
  font: 400 var(--fs-stat) / 0.9 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.tile__label {
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}
.tile__note {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bg-teal { background: var(--teal); }
.bg-green { background: var(--green); }
.bg-purple { background: var(--purple); }
.bg-red { background: var(--red); }
.bg-yellow { background: var(--yellow); }
.bg-sky { background: var(--sky); }
.bg-pink { background: var(--pink); }
.bg-orange { background: var(--orange); }
.bg-night { background: var(--night); color: var(--text); }
.bg-night .tile__note { color: var(--text-muted); }

/* ---------------------------------------------------------------- Pixel-Icons */

/* Icons sind 16×16-Raster: nur in ganzen Vielfachen (16px, 32px) zeigen, sonst verschwimmen die Pixel */
.icon {
  width: 16px;
  height: 16px;
  flex: none;
  shape-rendering: crispEdges;
  fill: currentColor;
}
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--text);
  flex: none;
}
.icon-box .icon {
  width: 32px;
  height: 32px;
}

/* ---------------------------------------------------------------- Köpfe */

.head {
  image-rendering: pixelated;
  background: var(--bg-sunken);
  border: 2px solid var(--ink);
  flex: none;
  display: block;
}

/* ---------------------------------------------------------------- Live-Raster: Online + Fakt | Events */

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: var(--gap);
  align-items: start;
}
.live-grid__side {
  display: grid;
  gap: var(--gap);
}

/* ---------------------------------------------------------------- Online-Liste */

.online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.online-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 6px 8px;
  margin-inline: -8px;
  border: 2px solid transparent;
}
.online-list li a:hover {
  border-color: var(--line);
  background: var(--bg-sunken);
}
.online-list .name {
  font-weight: 600;
}

/* ---------------------------------------------------------------- Fun-Fact */

.funfact {
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.funfact h2 {
  font-size: var(--fs-h3);
}
.funfact__body {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.45;
  min-height: 4.4em;
}
.funfact__body a {
  font-weight: 700;
}
.funfact__actions {
  display: flex;
  justify-content: flex-end;
}

/* ---------------------------------------------------------------- Buttons & Formulare */

.btn {
  font: 700 var(--fs-xs) var(--font-pixel);
  text-transform: uppercase;
  background: var(--bg-raised);
  color: var(--text);
  border: var(--border) solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--shadow);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 var(--shadow);
}
.btn--light {
  background: #fff8e1;
  color: var(--ink);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.btn--block {
  width: 100%;
}

.toolbar {
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
  align-items: end;
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.field--grow {
  flex: 1 1 260px;
}
.input,
.select {
  background: var(--bg-sunken);
  border: var(--border) solid var(--line);
  padding: 10px 12px;
  font: 400 var(--fs-base) var(--font-body);
  min-height: 48px;
  width: 100%;
}
.input::placeholder {
  color: #8f84a3;
}
.input:focus,
.select:focus {
  border-color: var(--focus);
  outline: none;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
}
.result-count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* ---------------------------------------------------------------- Events */

.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.event {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line-soft);
  font-size: 0.95rem;
}
.event:last-child {
  border-bottom: 0;
}
.event__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  border: 2px solid var(--ink);
}
.event__text {
  line-height: 1.4;
}
.event__text a {
  font-weight: 600;
}
.event__time {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}
.event--death .event__icon { background: var(--red); }
.event--join .event__icon { background: var(--green); }
.event--quit .event__icon { background: var(--sky); }
.event--advancement .event__icon { background: var(--purple); }
.events-more {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- Bestenlisten */

.boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.board {
  color: var(--ink);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.board__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.board__title {
  font-size: var(--fs-h3);
}
.board__subtitle {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.35;
}
.board ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.board li {
  display: grid;
  grid-template-columns: 30px 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 2px solid rgb(0 0 0 / 0.12);
  font-size: 0.95rem;
}
.board li:first-child {
  border-top: 0;
}
.rank {
  font: 400 1.15rem / 1 var(--font-display);
  text-align: center;
  padding: 3px 0 2px;
}
.rank--1,
.rank--2,
.rank--3 {
  background: var(--ink);
  color: var(--text);
}
.rank--1 {
  color: var(--yellow);
}
.board li:first-child .name {
  font-weight: 700;
}
.board .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
}
.board .name:hover {
  text-decoration: underline;
}
.board .value {
  font: 400 1.25rem / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board.bg-night .rank--1,
.board.bg-night .rank--2,
.board.bg-night .rank--3 {
  background: var(--yellow);
  color: var(--ink);
}
.board.bg-night li {
  border-top-color: rgb(255 255 255 / 0.12);
}
.board.bg-night .board__subtitle {
  color: var(--text-muted);
}
.board__empty {
  font-size: var(--fs-sm);
  padding: 8px 0;
}
.board__toggle {
  display: none;
  align-self: flex-start;
  font: 600 var(--fs-sm) var(--font-body);
  background: none;
  border: 0;
  padding: 6px 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
  min-height: 44px;
}

/* ---------------------------------------------------------------- Teilnehmer */

.player-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
}
.player-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--bg-raised);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.player-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow);
}
.player-card__top {
  position: relative;
  display: grid;
  place-items: center;
  padding: 26px 12px 20px;
  color: var(--ink);
}
.player-card__top .head {
  width: 76px;
  height: 76px;
  border-width: 3px;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 0.35);
}
.player-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 2px;
  border-top: var(--border) solid var(--ink);
}
.player-card__name {
  font: 400 1.6rem / 1.05 var(--font-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge {
  font: 700 0.65rem var(--font-pixel);
  text-transform: uppercase;
  padding: 3px 6px;
  border: 2px solid var(--ink);
  background: var(--bg-raised);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge--online {
  background: var(--green);
  color: var(--ink);
}
.player-card__top .badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ---------------------------------------------------------------- Profil */

.back-link {
  margin-top: 24px;
}
.profile-head {
  display: flex;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  flex-wrap: wrap;
}
.profile-head .head {
  width: clamp(96px, 18vw, 144px);
  height: clamp(96px, 18vw, 144px);
  border-width: 4px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
}
.profile-head h1 {
  overflow-wrap: anywhere;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 12px 6px 8px;
  border: var(--border) solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}
.chip strong {
  font: 400 1.3rem / 1 var(--font-display);
}
.chip--silver { background: #dcd6e8; }
.chip--bronze { background: var(--orange); }
.chip--plain { background: var(--bg-raised); color: var(--text); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--gap);
}
.stat-grid .tile {
  min-height: 132px;
}
.stat-grid .tile__value {
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem);
}
.stat-grid--small .tile {
  background: var(--bg-raised);
  color: var(--text);
  min-height: 108px;
}
.stat-grid--small .tile__value {
  font-size: 2rem;
}
.stat-grid--small .tile__note {
  color: var(--text-muted);
}
.rank-tag {
  font: 400 1rem / 1 var(--font-display);
  background: var(--ink);
  color: var(--text);
  padding: 3px 6px 2px;
}
.rank-tag--top {
  background: var(--yellow);
  color: var(--ink);
  outline: 2px solid var(--ink);
}

/* ---------------------------------------------------------------- Zustände */

.notice {
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
  padding: 16px 18px;
  background: var(--bg-raised);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.notice > div {
  flex: 1 1 220px;
}
.notice--error {
  background: var(--red);
  color: var(--ink);
}
.notice--warn {
  background: var(--yellow);
  color: var(--ink);
}
.empty {
  padding: 20px;
  border: 2px dashed var(--line);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.funfact .empty,
.board .empty {
  color: var(--ink-soft);
  border-color: rgb(0 0 0 / 0.25);
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-raised) 0 40%, var(--line) 50%, var(--bg-raised) 60% 100%);
  background-size: 300% 100%;
  animation: shimmer 1.4s steps(8) infinite;
  border: var(--border) solid var(--ink);
  min-height: 120px;
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ---------------------------------------------------------------- Große Bildschirme */

@media (min-width: 1600px) {
  :root {
    --wrap: 1400px;
  }
  .boards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- Tablet */

@media (max-width: 1080px) {
  .hero--stats {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero__glance .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .live-grid {
    grid-template-columns: 1fr;
  }
  .live-grid__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- Handy */

@media (max-width: 720px) {
  :root {
    --shadow-offset: 3px;
  }
  .site-header__inner {
    min-height: 58px;
  }
  .brand__name {
    font-size: 1.65rem;
  }
  .brand__logo {
    width: 30px;
    height: 30px;
  }
  .tab {
    padding: 8px 10px;
    font-size: var(--fs-xs);
  }
  .hero__lead {
    font-size: var(--fs-base);
  }
  .hero__glance .tile-grid,
  .live-grid__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-grid__side {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 108px;
    padding: 12px 14px;
  }
  .tile__value {
    font-size: 2.4rem;
  }
  .tile__label {
    font-size: var(--fs-xs);
  }
  .boards {
    grid-template-columns: 1fr;
  }
  /* Auf dem Handy erst Top 5, Rest per Knopf */
  .board:not(.is-expanded) li:nth-child(n + 6) {
    display: none;
  }
  .board__toggle {
    display: inline-block;
  }
  .event {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'icon text' 'icon time';
    row-gap: 2px;
    column-gap: 12px;
  }
  .event > .head {
    display: none;
  }
  .event__icon { grid-area: icon; align-self: start; }
  .event__text { grid-area: text; }
  .event__time { grid-area: time; }
  .player-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .player-card__top {
    padding: 20px 10px 16px;
  }
  .player-card__top .head {
    width: 64px;
    height: 64px;
  }
  .player-card__name {
    font-size: 1.35rem;
  }
  .stat-grid .tile__value,
  .stat-grid--small .tile__value {
    font-size: 1.7rem;
  }
  .stat-grid .tile {
    min-height: 116px;
  }
  .result-count {
    margin-left: 0;
    min-height: auto;
    width: 100%;
  }
  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand__name {
    font-size: 1.4rem;
  }
  .tab {
    padding: 8px 7px;
  }
  .tile__value {
    font-size: 2rem;
  }
}

/* ---------------------------------------------------------------- Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .btn:active,
  .player-card:hover {
    transform: none;
  }
}

.hero__actions {
  margin-top: 24px;
}

.tile__unit {
  font: 600 0.42em / 1 var(--font-body);
  letter-spacing: 0;
  white-space: nowrap;
}
