/*
  Dasinbee TTT – public website. Loaded after the Taste kit (static/assets, unchanged copies).
  Deal (taste-skill 2.5.1): gaming page (type software), hero film, nav-mega, footer-dark, close-type,
  rhythm media-band, buttons pill, wordmark (the Dasinbee logo replaces it), moment pinned-chapters.
  Type: the dealt pairing "anybody" (Anybody + Onest), files served from /site/fonts (CSP font-src 'self').
  Colours: the Dasinbee basis instead of the dealt palette (start.mjs brand): neutral grounds, ink as the
  main action, the gameserver olive only for the current page, live markers and selection.
  Light and dark follow the system setting only.
*/
@font-face { font-family: 'Anybody'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%;
  src: url(/site/fonts/anybody-latin-standard-normal.woff2) format('woff2-variations');
  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: 'Anybody'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 50% 150%;
  src: url(/site/fonts/anybody-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/site/fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/site/fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --p-bg: #f4f4f2; --p-surface: #e9e9e6; --p-ink: #14110a; --p-muted: #4a4a45;
  --p-accent: #4d5a1c; --p-accent-ink: #f4f4f2; --p-action: #14110a; --p-action-ink: #f4f4f2;
  --p-inv-bg: #14110a; --p-inv-surface: #24221b; --p-inv-ink: #f4f4f2; --p-inv-muted: #c4c3bd;
  --p-inv-accent: #a1b04a; --p-inv-accent-ink: #14110a; --p-inv-action: #f4f4f2; --p-inv-action-ink: #14110a;
  --font-display: "Anybody", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.03em;
  --display-stretch: 115%;
  --ly-scale: 0.86;
  --ok: #1f7a43; --danger: #b42318; --olive: #4d5a1c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --p-bg: #121211; --p-surface: #1c1c1a; --p-ink: #f4f4f2; --p-muted: #bdbdb6;
    --p-accent: #a1b04a; --p-accent-ink: #121211; --p-action: #f4f4f2; --p-action-ink: #121211;
    --p-inv-bg: #0a0a09; --p-inv-surface: #1c1c1a; --p-inv-ink: #f4f4f2; --p-inv-muted: #bdbdb6;
    --p-inv-accent: #a1b04a; --p-inv-accent-ink: #0a0a09; --p-inv-action: #f4f4f2; --p-inv-action-ink: #0a0a09;
    --ok: #5cc98a; --danger: #ff8a7a; --olive: #a1b04a;
  }
}
body { background: var(--bg); color: var(--ink); font-family: var(--font-text); overflow-wrap: break-word; }
code { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------------------------------------------------------------- header */
.nav__logo picture, .nav__logo img { display: block; height: 24px; width: auto; }
.nav__logo { gap: var(--s-3); }
.nav__service { font: 500 22px/1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.02em; }
.nav__link[aria-current="page"]::after { background: var(--olive); }
.nav__account { gap: var(--s-2); }
.nav__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__bar { gap: var(--s-4); }
  .nav__actions { gap: var(--s-2); }
  .nav__actions > .nav__link:first-child { display: none; } /* Hilfe stays in the footer and the sheet */
}
@media (max-width: 639px) {
  .nav__logo picture, .nav__logo img { height: 20px; }
  .nav__service { font-size: 18px; }
}

/* ---------------------------------------------------------------- start page: hero */
.hero--film .hero__media > img { background: #111; }
.hero__kicker { position: relative; display: block; margin-bottom: var(--s-4); font: 500 var(--t-small)/1.4 var(--font-text); color: var(--p-inv-ink); }
.hero__notice { margin-bottom: var(--s-3); font-size: var(--t-small); color: var(--p-inv-ink); }
.hero__kicker::before { content: ""; position: absolute; left: -20px; top: 50%; margin-top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--p-inv-accent); flex: none; box-shadow: 0 0 0 4px color-mix(in oklab, var(--p-inv-accent) 28%, transparent); }
[data-online="nein"] .hero__kicker::before { background: var(--p-inv-muted); box-shadow: none; }
.live-now { cursor: default; }
.live-now__count { font: 500 26px/1 var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; }
.btn--copy { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.btn--copy::after { content: none; }
.btn--copy code { font-size: 15px; }
.btn--copy svg { width: 16px; height: 16px; flex: none; }
.btn--copy[data-copied] svg { opacity: .4; }
.hero__over .btn-row { gap: var(--s-3) var(--s-6); }

/* ---------------------------------------------------------------- start page: sections */
.rule-rows a.rows__name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.rule-rows a.rows__name:hover { text-decoration-color: currentColor; }
.rule-rows > li > p { color: var(--muted); font-size: var(--t-body); }
.board-title { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-4); }
.board { list-style: none; margin: 0; padding: 0; }
.board > li { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) 7.5em; align-items: center; gap: var(--s-3); min-height: 64px; border-bottom: 1px solid var(--line); }
.board__place { font: 500 var(--t-body)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--muted); }
.board__name { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.board__name a { font-weight: 500; overflow-wrap: anywhere; }
.board__name a:hover { text-decoration: underline; }
.board__value { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; text-align: right; justify-self: stretch; }
.board--team > li { grid-template-columns: 40px minmax(0, 1fr) 7.5em; }
.board--team .board__value { justify-content: flex-end; font-weight: 400; }
.board { list-style: none; }
.boards { row-gap: var(--s-7); }
@media (max-width: 1023px) { .boards > .span-4 { grid-column: 1 / -1; } }
.link-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.link { min-height: 44px; }
.team-more { margin-top: var(--s-3); }
.map-frame { --ratio: 56.25%; }
.map-rows a.rows__name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.map-rows a.rows__name:hover { text-decoration-color: currentColor; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; }
.avatar--lg { width: 64px; height: 64px; }
.avatar--xl { width: 96px; height: 96px; }
.rank-tag { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.rank-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 25%, transparent); }
.empty { color: var(--muted); padding-block: var(--s-4); }
.member { display: grid; justify-items: start; gap: var(--s-2); padding-block: var(--s-3); }
.member__name { font-weight: 500; overflow-wrap: anywhere; }
.member:hover .member__name { text-decoration: underline; }

/* ---------------------------------------------------------------- content pages */
main.site-page { padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-9); min-height: 72svh; }
@media (max-width: 639px) { main.site-page { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-8); } }
.site-notice { margin: 0 0 var(--s-6); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); border-left: 3px solid var(--olive); }
.page-head { display: grid; gap: var(--s-4); max-width: 820px; margin-bottom: var(--s-8); }
.page-head h1, .page-title { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch);
  font-size: clamp(32px, 2.3vw + 23px, 56px); line-height: 1.05; letter-spacing: var(--display-tracking); text-wrap: balance; }
.page-head p { font-size: var(--t-lead); line-height: 1.5; max-width: 62ch; }
.page-head .meta { font-size: var(--t-small); color: var(--muted); }
.page h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(24px, 1vw + 20px, 32px);
  line-height: 1.15; letter-spacing: var(--display-tracking); margin-bottom: var(--s-4); }
.page h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin-bottom: var(--s-2); }
.page section + section { margin-top: var(--s-9); }
@media (max-width: 639px) { .page section + section { margin-top: var(--s-8); } }
.prose { font-size: 17px; line-height: 1.65; max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-6); }
.prose a, .text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .text-link:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-2); }
.prose code { padding: 1px 5px; border-radius: 4px; background: var(--surface); }
.prose blockquote { padding-left: var(--s-4); border-left: 3px solid var(--line-strong); color: var(--muted); }
.lead { font-size: var(--t-lead); line-height: 1.5; }

/* two columns with "Auf dieser Seite" */
.with-toc { display: grid; gap: var(--s-7); }
@media (min-width: 1024px) {
  .with-toc { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-8); align-items: start; }
  .toc { position: sticky; top: calc(var(--nav) + var(--s-6)); grid-column: 2; grid-row: 1; }
  .toc-mobile { display: none; }
}
@media (max-width: 1023px) { .toc { display: none; } }
.toc p, .toc-mobile summary { font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.toc ol, .toc-mobile ol { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0; }
.toc a, .toc-mobile a { display: flex; align-items: center; min-height: 40px; padding-left: var(--s-3); border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover, .toc-mobile a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--olive); font-weight: 500; }
.toc-mobile { margin-bottom: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.toc-mobile summary { min-height: 48px; display: flex; align-items: center; padding: 0 var(--s-4); cursor: pointer; font-size: var(--t-body); color: var(--ink); }
.toc-mobile ol { margin: 0; padding: 0 var(--s-4) var(--s-3); }
.toc-mobile a { min-height: 44px; }

/* rules */
.rule-cat { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.rule-cat > p { color: var(--muted); max-width: 62ch; margin-bottom: var(--s-5); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-1) var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.rule__no { grid-row: 1 / span 3; font: 500 var(--t-card)/1.3 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rule-cat__no { color: var(--muted); font-variant-numeric: tabular-nums; }
.rule > h3 { margin: 0; }
.rule .prose { font-size: var(--t-body); }
.rule .prose ul { list-style: disc; } /* .rule-list has list-style: none, which lists inside a rule would inherit */
.rule .prose ol { list-style: decimal; }
.rule .prose li + li { margin-top: var(--s-1); }
.sanction { display: inline-flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.sanction strong { font-weight: 500; color: var(--ink); }

/* tabs as links, tables, pagination */
.sort-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.sort-tabs a { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s-5); border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; }
.sort-tabs a:hover { background: color-mix(in oklab, var(--bg) 94%, var(--ink)); }
.sort-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.is-me td { background: color-mix(in oklab, var(--olive) 10%, transparent); }
.who { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.who a { font-weight: 500; overflow-wrap: anywhere; }
.who a:hover { text-decoration: underline; }
.who .avatar { width: 32px; height: 32px; }
@media (max-width: 639px) {
  .table .hide-s, .table .who .avatar { display: none; }
  .table th, .table td { padding-inline: var(--s-2); }
}
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.pager .muted { font-size: var(--t-small); }

/* ranks ladder */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-5); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.ladder__name { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.ladder__name .rank-dot { width: 14px; height: 14px; }
.ladder__need { color: var(--muted); font-size: var(--t-small); text-align: right; }
.ladder > li > p { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) { .ladder__need { grid-column: 1 / -1; text-align: left; } }

/* profile */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-bottom: var(--s-8); }
.profile-head .avatar { width: 96px; height: 96px; }
.profile-head > div { display: grid; gap: var(--s-2); min-width: 0; flex: 1 1 260px; }
.profile-head h1 { overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); margin: 0; }
.statgrid > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; align-items: flex-start; gap: var(--s-1); padding-block: var(--s-4); border-top: 1px solid var(--line-strong); text-align: left; }
.statgrid dt { font-size: var(--t-small); color: var(--muted); }
.statgrid dd { margin: 0; font: 500 clamp(24px, .8vw + 20px, 32px)/1.1 var(--font-display); font-stretch: var(--display-stretch); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) { .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.progress { display: grid; gap: var(--s-4); max-width: 720px; }
.progress__row { display: grid; gap: var(--s-2); }
.progress__label { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--t-small); }
.progress__label span:last-child { color: var(--muted); text-align: right; }
.bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--olive); }
.split-2 { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .split-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { width: 100%; height: auto; display: block; color: var(--olive); }
.chart text { fill: var(--muted); font: 12px var(--font-text); }
.chart .chart__grid { stroke: var(--line); }
.outcome { font-weight: 500; }
.outcome--won { color: var(--ok); }
.outcome--lost { color: var(--danger); }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }

/* maps page */
.maps-grid { row-gap: var(--s-7); }
.maps-grid .tile { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.maps-grid .tile__media { aspect-ratio: 16 / 9; }
.maps-grid .tile__facts code { overflow-wrap: anywhere; }
.tile__media--empty { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--muted); font: 500 var(--t-card)/1.2 var(--font-display); }
@media (max-width: 1023px) { .maps-grid > .span-4 { grid-column: auto / span 6; } }
@media (max-width: 639px) { .maps-grid > .span-4 { grid-column: 1 / -1; } }

.page .tile__head h2 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#raenge, #elo { scroll-margin-top: calc(var(--nav) + var(--s-5)); }

/* team page */
.team-group + .team-group { margin-top: var(--s-8); }
.team-group h2 { display: flex; align-items: center; gap: var(--s-3); }
.team-group h2 .rank-dot { width: 14px; height: 14px; }
.team-list { list-style: none; margin: 0; padding: 0; }
@media (max-width: 1023px) { .team-list > .span-3 { grid-column: auto / span 6; } }

/* forms */
.site-form { display: grid; gap: var(--s-5); max-width: 640px; }
.site-form .field { font-size: var(--t-small); }
.site-form .field :is(input, select, textarea) { font-size: 16px; }
.field__hint { font-weight: 400; color: var(--muted); font-size: var(--t-small); }
.field__error { color: var(--danger); }
.site-form .field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--danger); }
.notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface); border-left: 3px solid var(--line-strong); }
.notice--ok { border-left-color: var(--ok); }
.notice--error { border-left-color: var(--danger); }
.notice strong { font-weight: 600; }
.choice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.choice { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-size: var(--t-body); font-weight: 400; }
.choice:has(input:checked) { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.choice input { width: 20px; height: 20px; accent-color: var(--olive); flex: none; }
.choice .avatar { width: 32px; height: 32px; }
.choice small { color: var(--muted); font-size: var(--t-small); display: block; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: end; }
@media (max-width: 639px) { .search-row { grid-template-columns: 1fr; } .site-form .btn { width: 100%; } }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.switch-row > div { display: grid; gap: var(--s-1); min-width: 0; }
.switch-row p { color: var(--muted); font-size: var(--t-small); max-width: 56ch; }
@media (max-width: 639px) { .switch-row { flex-direction: column; } .switch-row .btn { width: 100%; } }
.state { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state--on::before { background: var(--ok); }
.btn--danger { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 50%, transparent); }
.inline-form { display: inline; }
.steam-btn { gap: var(--s-3); }
.steam-btn svg { width: 20px; height: 20px; flex: none; }

/* footer */
.footer__name { font: 500 var(--t-h3)/1.1 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: var(--display-tracking); }
.footer .footer__lede { font-family: var(--font-text); font-size: var(--t-body); max-width: 34ch; color: var(--muted); }
.footer code { color: var(--ink); }
.footer__legal-links { display: inline-flex; gap: var(--s-5); }
.footer__legal-links a:hover { text-decoration: underline; }
.closing__cta code { font-size: 0.95em; }

/* error page */
.error-code { font: 500 var(--t-label)/1.4 var(--font-text); color: var(--muted); }
.prose h2 { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.rule { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.section-head--row > .btn-row { flex-wrap: nowrap; }
@media (max-width: 639px) { .section-head--row > .btn-row { flex-wrap: wrap; } }
/* a phone under 420px: logo, service name and the menu button fill the bar; the main button stays in the hero and the sheet */
@media (max-width: 419px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle, .nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}
/* the leaderboards stack under 1024px: two screens there */
@media (max-width: 1023px) { #ranking { --h: 2; --hm: 2; } }
.rule-rows a.rows__name, .map-rows a.rows__name, .board__name a { display: inline-flex; align-items: center; min-height: 44px; }
.rule-rows > li, .map-rows > li { padding-block: var(--s-1); }
.rule-rows > li > p { margin-bottom: var(--s-3); }
.board__name .rank-tag { margin-top: -10px; margin-bottom: 4px; }
/* player names are free text: a long one without spaces breaks instead of widening the page */
.profile-head :is(h1, p, a, span), .choice > span, .notice { overflow-wrap: anywhere; min-width: 0; }

/* ---------------------------------------------------------------- shop, cases, inventory */
.shop-rule { font-size: var(--t-body); font-weight: 500; }
.shop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }
.chips { font-size: var(--t-body); margin: 0; }
.chips strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.shop-notice { margin-bottom: var(--s-7); }
.item-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s-5); }
.item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; height: 100%; border-radius: var(--r-md); background: var(--surface); overflow: hidden;
  box-shadow: inset 3px 0 0 var(--rarity, var(--line-strong)); }
.item__face { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line);
  background: radial-gradient(110% 80% at 50% 100%, color-mix(in oklab, var(--rarity, var(--muted)) 14%, transparent), transparent 70%), color-mix(in oklab, var(--ink) 4%, var(--surface)); }
.item__img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.25)); }
.item__body { display: grid; align-content: start; gap: 2px; padding: var(--s-4) var(--s-5) var(--s-3); }
.item__kind { font-size: var(--t-label); color: var(--muted); }
.page .item__title, .item__title { font: 500 var(--t-card)/1.25 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.01em; margin: 0; overflow-wrap: anywhere; }
.item__sub { color: var(--ink); font-size: var(--t-body); }
.item__rarity { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-2); font-size: var(--t-small); font-weight: 500; }
.item__mark, .rarity-tag::before { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--rarity); flex: none; }
.item__state { color: var(--ok); font-weight: 500; }
.item__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding: 0 var(--s-5) var(--s-4); }
.item__price { font-weight: 600; font-variant-numeric: tabular-nums; margin: 0; }
.item__slot { font-size: var(--t-small); }
.item__timed { flex-basis: 100%; order: -1; font-size: var(--t-small); font-weight: 500; }
.rarity-tag { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); font-weight: 500; white-space: nowrap; }
.rarity-tag::before { content: ""; }

.case { padding-top: var(--s-6); border-top: 3px solid var(--case, var(--line-strong)); scroll-margin-top: calc(var(--nav) + var(--s-5)); }
.case__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-5); }
.case__head h2 { margin-bottom: var(--s-2); }
.case__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.drop-name { font-weight: 500; }
.drop-item { display: flex; align-items: center; gap: var(--s-3); }
.drop-thumb { flex: none; width: 72px; height: 45px; object-fit: contain; border-radius: var(--r-sm); background: color-mix(in oklab, var(--ink) 4%, var(--surface)); }
.drop-table td .muted { font-size: var(--t-small); }
/* long drop lists (knife cases have 100+ items) start folded */
.drops > summary { min-height: 48px; display: flex; align-items: center; padding: 0 var(--s-4); margin-bottom: var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 500; color: var(--ink); }
.drops > summary:hover { border-color: var(--ink); }
.drops[open] > summary { color: var(--muted); }
@media (max-width: 639px) { .drop-table td .muted { display: block; } .case__buy, .case__buy form, .case__buy .btn { width: 100%; } }

.opening { margin-bottom: var(--s-8); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); }
.opening[hidden] { display: none; }
.opening__title { font-weight: 500; margin-bottom: var(--s-3); }
.opening__card { max-width: 320px; }
.opening__card .item { background: var(--bg); }
.opening__dup { margin-top: var(--s-4); font-weight: 600; }
.reel { position: relative; overflow: hidden; margin-bottom: var(--s-6); border-radius: var(--r-md); background: var(--bg); padding-block: var(--s-4); }
.reel[hidden] { display: none; }
.reel::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.reel__track { display: flex; gap: var(--s-3); padding-inline: var(--s-3); will-change: transform; }
.reel__cell { flex: 0 0 150px; display: grid; gap: 2px; padding: var(--s-3); border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 -4px 0 var(--rarity); }
.reel__cell.is-win { outline: 2px solid var(--ink); outline-offset: -2px; }
.reel__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.reel__kind, .reel__rarity { font-size: var(--t-label); color: var(--muted); }
.reel__title { font-weight: 500; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .reel__track { transition: none !important; } }

.drop-feed { list-style: none; margin: 0; padding: 0; }
.drop-feed > li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.drop-feed__what { min-width: 0; overflow-wrap: anywhere; }
.drop-feed__what strong { font-weight: 500; }
.drop-feed__who { color: var(--muted); font-size: var(--t-small); text-align: right; }
.drop-feed__who a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .drop-feed > li { grid-template-columns: 1fr; } .drop-feed__who { text-align: left; } }
.slot-rows .rows__value { white-space: normal; text-align: right; min-width: 0; }
.slot-rows .rarity-tag { white-space: normal; }
@media (max-width: 639px) { .slot-rows > li { grid-template-columns: 1fr; } .slot-rows .rows__value { grid-column: 1; grid-row: auto; text-align: left; } }
.close-shop { font-size: var(--t-body); color: var(--ink); }
.close-shop a { text-decoration: underline; text-underline-offset: 3px; }
/* shop: skins per gun with a jump list */
.shop-skins { margin-top: var(--s-8); }
.shop-jump { margin-bottom: var(--s-6); }
.shop-jump .link { display: inline-flex; align-items: center; }
.shop-group { scroll-margin-top: calc(var(--nav) + var(--s-5)); margin-bottom: var(--s-7); }
.shop-group h3 { margin-bottom: var(--s-4); }
.shop-count { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
/* Start page: knife showcase, one row of four from 1024 px, two by two from 640 px, one column on phones
   (the 480 px renders would be shrunk past 2x in two phone columns); phones show the first two so the section
   stays within two screens (lazy pictures of hidden tiles are never loaded) */
.home-knives { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@media (max-width: 639px) { .home-knives > li:nth-child(n + 3) { display: none; } }
@media (min-width: 640px) { .home-knives { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-knives { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
/* /mitspielen: three ways onto the server */
.join-ways { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: way; }
@media (min-width: 1024px) { .join-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.join-ways > li { counter-increment: way; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.join-ways > li::before { content: counter(way); display: block; font: 500 var(--t-small)/1 var(--font-text); color: var(--muted); margin-bottom: var(--s-3); }
.join-ways p { max-width: 52ch; }
.join-ways code, .ladder code { overflow-wrap: anywhere; }
kbd { font: inherit; font-family: var(--font-mono, monospace); padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px; }
.page .faq { margin-top: var(--s-5); }
.split-2 > .prose > h3:first-child { margin-top: 0; }
