/* DanyloKiri Online: tournament site. Redesign 21.11.2026 ("rethink it all, keep the pages and the structure").
   Direction: a Y2K print poster / magazine. Light paper with print grain for reading; the sky, the halftone clouds,
   Danylo's distort texture and glass bubbles live only inside "posters" (the tournament header, the tournament
   tiles, page banners). One sticker language everywhere: almost square corners, navy outlines, a hard offset
   shadow that repeats the poster headline's extrude. Accents: lime (the Nokia-poster date pill, his HUD money)
   and aqua blue for links. Numbered sections like a magazine (01, 02...).
   Every colour is a token in :root. Light only. */
:root {
  color-scheme: light;
  --paper: #eef2f6;          /* page */
  --white: #ffffff;          /* cards, inputs, the sheet */
  --soft: #e3eaf2;           /* hovers, the drop zone */
  --line: #c9d4e1;           /* hairlines */
  --line-2: #9fb0c4;
  --ink: #0b1f3a;            /* text and outlines: deep navy */
  --muted: #4a5f7a;          /* 6.5:1 on white */
  --navy: #0a2550;           /* HUD navy: winner rows */
  --blue: #1462d0;           /* links; 5.4:1 on white */
  --lime: #8fe04a;           /* pills, primary button */
  --lime-2: #b9f27f;
  --focus: #e0306f;          /* focus ring: the one warm colour */
  --bad: #c81a30; --bad-ink: #a0101f; --bad-soft: #fff1f2; --bad-line: #ffc2c9;
  --ok: #2f9e1f; --ok-ink: #1f6b13; --ok-soft: #effbe6; --ok-line: #bfe6a4;
  --warn-soft: #fff6d6;
  --disabled-bg: #dde4ec; --disabled-ink: #6c7d93;
  --shadow: 3px 3px 0 var(--ink);         /* the sticker shadow */
  --shadow-lg: 5px 5px 0 var(--ink);
  --r: 3px;                                /* corners */
  --font: "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  --sky: url("/assets/sky.webp");
  --halftone: url("/assets/halftone.webp");
  --distort: url("/assets/distort.webp");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .25 0 0 0 0 .35 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Roboto Condensed: the Google Fonts look-alike of Calps Sans (Calps has no Cyrillic). IBM Plex Mono: captions. Both OFL, self-hosted. */
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/RobotoCondensed-latin-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-latin-cyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-tap-highlight-color: transparent;
}
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: var(--grain); opacity: 0.16; mix-blend-mode: multiply; }
body > * { width: 100%; }
body > footer { margin-top: auto; }
a, button, label, input, select, textarea { touch-action: manipulation; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; min-width: 0; margin: 0; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; width: auto; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; border-radius: var(--r); }
.skip:focus-visible { top: 8px; }
main[tabindex="-1"]:focus, #page:focus { outline: none; }
.hint { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; text-transform: lowercase; }

/* ---------- top bar: a paper strip with a navy rule ---------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 20px;
  background: rgb(238 242 246 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
.top nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px; border-radius: var(--r); white-space: nowrap; }
.top nav a:hover { background: var(--white); }
.top nav a.on { background: var(--ink); color: #fff; }
.lang { display: flex; flex: none; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.lang button { border: 0; background: var(--white); color: var(--ink); font: 700 13px var(--mono); min-height: 36px; min-width: 44px; padding: 0 10px; cursor: pointer; }
.lang button + button { border-left: 2px solid var(--ink); }
.lang button.on { background: var(--lime); }
@media (max-width: 520px) {
  .top { gap: 8px; padding: 0 12px; }
  .top nav { margin-left: 0; }
  .top nav a { padding: 0 8px; font-size: 14px; }
  .lang { margin-left: auto; }
}

/* ---------- layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 72px; display: grid; gap: 40px; align-content: start; }
main.narrow { max-width: 780px; }
main > * { min-width: 0; }

/* page title: heavy condensed caps, the poster headline (sky-to-blue fill, hard navy extrude) */
.headline, h1 {
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.92; font-size: clamp(34px, 5.4vw, 64px);
  color: #1a7be6; background: linear-gradient(180deg, #8fe2ff 0%, #39a6ff 45%, #0d63d6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 3px 0 var(--ink)); padding-bottom: 4px;
}
/* magazine section titles: mono index + navy caps */
.sec { display: flex; align-items: baseline; gap: 12px; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.idx { font: 400 13px var(--mono); color: var(--muted); letter-spacing: 0.04em; }

/* ---------- stickers: buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  font: 800 15px/1.1 var(--font); text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.main { background: var(--lime); }
.btn.main:hover { background: var(--lime-2); }
.btn.big { font-size: 17px; padding: 14px 26px; min-height: 54px; }
.btn:disabled, .btn.main:disabled { background: var(--disabled-bg); color: var(--disabled-ink); border-color: var(--disabled-ink); box-shadow: none; cursor: not-allowed; transform: none; }

.badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 99px; font: 400 12px/1.5 var(--mono); text-transform: lowercase; border: 2px solid var(--ink); background: var(--white); color: var(--ink); white-space: nowrap; }
.badge.open { background: var(--lime); }
.badge.live { background: var(--bad); border-color: var(--bad-ink); color: #fff; }
.badge.closed { background: var(--soft); color: var(--muted); border-color: var(--line-2); }
.pill { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 99px; background: var(--lime); border: 2px solid var(--ink); color: var(--ink); font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; box-shadow: var(--shadow); }

/* ---------- posters: sky + halftone clouds + distort + bubbles, framed like a print, black caption strip ---------- */
.poster {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg);
  background: var(--halftone) right -120px top -140px / 520px auto no-repeat, var(--halftone) left -160px bottom -200px / 480px auto no-repeat, var(--sky) center / cover, #5aa9ee;
}
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--distort) center / cover; mix-blend-mode: overlay; opacity: 0.22; pointer-events: none; }
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bubbles i {
  position: absolute; display: block; border-radius: 50%; width: var(--s); height: var(--s); left: var(--x); top: var(--y);
  background:
    radial-gradient(circle at 32% 28%, #fff 0 9%, rgb(255 255 255 / 0) 22%),
    radial-gradient(circle at 70% 78%, rgb(255 255 255 / 0.55) 0 8%, rgb(255 255 255 / 0) 20%),
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.05) 55%, rgb(190 225 255 / 0.55) 72%, rgb(255 255 255 / 0.9) 76%, rgb(120 170 230 / 0.35) 82%, transparent 84%);
}
.poster > :not(.bubbles) { position: relative; z-index: 1; }
.poster-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px 0; flex-wrap: wrap; }
.poster-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 12px 32px; padding: 18px 22px 28px; }
.poster-logo { width: 100%; max-width: 460px; height: auto; justify-self: center; filter: drop-shadow(0 16px 20px rgb(11 31 58 / 0.35)); }
.poster-title { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.poster-title h1 { font-size: clamp(36px, 5vw, 66px); }
.poster .actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* the black caption strip: facts in mono, separated like "a // b // c" */
.strip { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; background: #05070b; color: #eaf0f7; padding: 12px 22px; font: 400 13px/1.4 var(--mono); }
.strip > div { display: flex; gap: 8px; align-items: baseline; }
.strip > div + div::before { content: "//"; color: #8395ad; margin: 0 14px; }
.strip dt { color: #9fb0c8; text-transform: lowercase; }
.strip dd { margin: 0; color: #fff; }
@media (max-width: 820px) {
  .poster-body { grid-template-columns: 1fr; padding-top: 8px; }
  .poster-logo { max-width: 320px; justify-self: start; }
  .strip { display: grid; grid-template-columns: 1fr; gap: 4px; }
  .strip > div + div::before { content: none; }
}

/* tournament page hero: the poster sits on paper with room around it */
.event { max-width: 1180px; margin: 0 auto; padding: 28px 20px 0; }

#page > .with-sheet { margin-top: 32px; }
#page > .with-sheet > .sheet { border-top: 2px solid var(--ink); }

/* slim poster banner for the registration and rules pages */
.banner { display: grid; gap: 12px; justify-items: start; padding: 22px 22px 24px; }
.back { font: 400 13px var(--mono); color: var(--ink); text-decoration: none; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); padding: 3px 10px; box-shadow: 2px 2px 0 var(--ink); }
.back:hover { background: var(--lime); }
.banner h1 { font-size: clamp(30px, 4.4vw, 52px); }

/* ---------- home: tournaments as poster tiles ---------- */
.list-head { display: grid; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.tile { display: grid; grid-template-rows: 1fr auto; min-height: 300px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.tile-art { display: grid; align-content: space-between; gap: 18px; padding: 18px; }
.tile-art .row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.tile-art h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; text-transform: uppercase; line-height: 0.92; color: #1a7be6; background: linear-gradient(180deg, #8fe2ff 0%, #39a6ff 45%, #0d63d6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(3px 3px 0 var(--ink)); padding-bottom: 4px; }
.tile .strip { justify-content: space-between; align-items: center; }
.tile .strip .go { color: var(--lime); }
.empty { color: var(--muted); }

.desc { margin: 0; max-width: 760px; white-space: pre-line; }

/* ---------- bracket: white cards, navy outline, navy joints; winner = navy HUD strip with a lime score ---------- */
.bracket { --gap: 40px; --joint: var(--ink); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); column-gap: var(--gap); overflow-x: auto; padding: 2px 6px 10px 2px; }
.round { display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.round h3 { font: 400 12px var(--mono); text-transform: lowercase; color: var(--muted); white-space: nowrap; }
.round .ms { display: flex; flex-direction: column; }
.pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.slot { flex: 1; display: flex; align-items: center; padding: 7px 0; }
.match { position: relative; width: 100%; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; }
.match > div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; min-width: 0; }
.match > div > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.match > div + div { border-top: 1px solid var(--line); }
.match .tbd { color: var(--muted); }
.match .win { background: var(--navy); color: #fff; font-weight: 800; }
.match .sc { font-family: var(--mono); color: var(--muted); flex: none; }
.match .win .sc { color: var(--lime); }
.pair .match::after { content: ""; position: absolute; top: 50%; right: calc(var(--gap) / -2 - 2px); width: calc(var(--gap) / 2); border-top: 2px solid var(--joint); }
.pair::before { content: ""; position: absolute; top: 25%; bottom: 25%; right: calc(var(--gap) / -2 - 2px); border-right: 2px solid var(--joint); }
.pair::after { content: ""; position: absolute; top: 50%; right: calc(var(--gap) / -1 - 2px); width: calc(var(--gap) / 2 + 2px); border-top: 2px solid var(--joint); }

/* ---------- registered players: an ordinary spreadsheet glued to the right edge ---------- */
.with-sheet { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 360px); align-items: start; }
.with-sheet > main { width: 100%; margin: 0; max-width: none; padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px)); }
.sheet { display: flex; flex-direction: column; background: var(--white); border-left: 2px solid var(--ink); }
.with-sheet > .sheet { position: sticky; top: 58px; max-height: calc(100dvh - 58px); border-bottom: 2px solid var(--ink); }
@media (max-width: 860px) {
  .with-sheet { grid-template-columns: 1fr; }
  .with-sheet > main { padding-left: 20px; }
  .with-sheet > .sheet { position: static; max-height: 640px; border-left: 0; border-top: 2px solid var(--ink); }
}
.sheet-stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ink); }
.stat { display: grid; gap: 2px; padding: 12px 14px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 16px; font-weight: 700; color: var(--muted); }
.sheet-note { grid-column: 1 / -1; margin: 0; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sheet-grid { overflow: auto; min-height: 0; }
table.xl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
table.xl th, table.xl td { border: 1px solid #d7dee7; padding: 3px 8px; height: 28px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.xl th.rn { width: 40px; background: #f1f3f6; color: #5b6573; font-weight: 600; font-size: 12px; text-align: center; }
table.xl tr > :first-child { border-left: 0; }
table.xl tr:first-child > * { border-top: 0; }
table.xl tr > :last-child { border-right: 0; }
table.xl td.empty-row { color: var(--muted); }
table.xl tr.reserve td { background: var(--warn-soft); }

/* ---------- registration form: a white sheet of paper, numbered steps ---------- */
.panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 24px 22px 26px; }
.reg-form .panel { max-width: 780px; }
form { display: grid; gap: 18px; }
.step { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.step.first { margin-top: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label.f, .f { display: grid; gap: 6px; font-weight: 700; font-size: 14px; min-width: 0; }
.req { color: var(--focus); }
input[type=text], input[type=url], input[type=number], input[type=datetime-local], select, textarea {
  font: 400 16px var(--font); color: var(--ink); background: var(--white); width: 100%; min-height: 46px; padding: 10px 12px;
  border: 2px solid var(--line-2); border-radius: var(--r); transition: border-color 0.12s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
textarea { min-height: 76px; resize: vertical; }
.bad input, .bad select, .bad textarea { border-color: var(--bad); }
.bad > .err-text { display: block; }
.err-text { display: none; color: var(--bad); font-size: 13px; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 4px; }
.steam-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); background: var(--ok-soft); border: 2px solid var(--ok-line); font-size: 14px; font-weight: 400; }
.steam-card img { width: 36px; height: 36px; border-radius: var(--r); }
.steam-card.warn { background: var(--bad-soft); border-color: var(--bad-line); }
.drop {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 120px; padding: 16px; cursor: pointer; text-align: center;
  border: 2px dashed var(--line-2); border-radius: var(--r); color: var(--muted); font-weight: 600; font-size: 14px;
  background: var(--halftone) right -60px center / 260px auto no-repeat, var(--soft); transition: border-color 0.12s ease, background-color 0.12s ease;
}
.drop:hover, .drop.over { border-color: var(--ink); color: var(--ink); background-color: #f4f8fc; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop img { width: 88px; height: 88px; border-radius: var(--r); object-fit: cover; background: var(--ink); border: 2px solid var(--ink); }
.bad .drop { border-color: var(--bad); }
.checks { display: grid; gap: 12px; }
label.c { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; cursor: pointer; }
label.c input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
label.c.bad span { color: var(--bad); }
.msg { padding: 14px 16px; border-radius: var(--r); font-weight: 600; border: 2px solid; }
.msg.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-ink); }
.msg.err { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad-ink); }
.msg .btn { margin-top: 12px; }

/* ---------- rules text (the tournament page's rules tab) ---------- */
.prose { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 26px 28px 30px; }
.prose h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 900; text-transform: uppercase; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.prose h2:first-of-type { margin-top: 6px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--blue); }
.prose .hint { font-size: 14px; margin: 0 0 6px; }
@media (max-width: 860px) { .prose { padding: 20px 18px 24px; } }

/* ---------- footer: the black caption strip ---------- */
footer { background: #05070b; color: #eaf0f7; font: 400 12px/1.6 var(--mono); padding: 12px 20px; }

/* ---------- admin (its own page styles add the rest) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.fact b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.fact span { font-weight: 600; }
main.wide h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .tile, input, .drop { transition: none; }
  .btn:hover, .btn:active:not(:disabled), .tile:hover, .tile:active { transform: none; }
}

/* ---------- tournament page: a lighter poster, then tabs (21.11.2026) ---------- */
.event .poster-body { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 28px 30px; }
.event .poster-logo { max-width: 540px; justify-self: start; }
.event .poster-title { justify-items: end; align-self: end; }
@media (max-width: 820px) { .event .poster-body { grid-template-columns: 1fr; } .event .poster-title { justify-items: start; } }

/* folder tabs on paper, sticky under the top bar */
.tabs-bar { position: sticky; top: 58px; z-index: 30; background: rgb(238 242 246 / 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-top: 28px; }
.tabs { max-width: 1180px; margin: 0 auto; padding: 10px 20px 0; display: flex; gap: 6px; overflow-x: auto; border-bottom: 2px solid var(--ink); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; min-height: 46px; padding: 10px 16px; margin-bottom: -2px; cursor: pointer;
  font: 800 16px/1.1 var(--font); text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink);
  background: transparent; border: 2px solid transparent; border-bottom: 0; border-radius: var(--r) var(--r) 0 0;
}
.tabs [role="tab"]:hover { background: var(--white); border-color: var(--line); }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); border-color: var(--ink); box-shadow: 0 2px 0 var(--white); }
.tabs [role="tab"][aria-selected="true"] .idx { color: var(--blue); }
.tab-main { padding-top: 28px; }
[role="tabpanel"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }

/* players tab: the ordinary spreadsheet as a card */
.card-sheet { max-width: 560px; border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.card-sheet .sheet-grid { max-height: none; }

/* schedule tab: time on the left in big condensed numerals, a navy rule between rows */
.schedule { list-style: none; margin: 0; padding: 0; max-width: 680px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.schedule li { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 18px; }
.schedule li + li { border-top: 1px solid var(--line); }
.schedule time { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.schedule span { font-size: 17px; font-weight: 700; }
.schedule li:nth-child(2) time, .schedule li:nth-child(4) time { color: var(--blue); }
@media (max-width: 480px) { .schedule li { grid-template-columns: 84px minmax(0, 1fr); } .schedule time { font-size: 24px; } }

/* rules tab reuses the rules page text */
#rules-box { max-width: 860px; }
#p-rules > p { margin: 18px 0 0; }

/* discord tab */
.discord-card { max-width: 680px; display: grid; gap: 18px; justify-items: start; }
.discord-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17px; }
.discord-list li::marker { color: var(--blue); }

/* ---------- top bar in black, logo + language only (21.11.2026) ---------- */
.top { background: #05070b; border-bottom: 2px solid #05070b; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top .lang { margin-left: auto; border-color: #fff; }
.top .lang button { background: #05070b; color: #fff; }
.top .lang button + button { border-left-color: #fff; }
.top .lang button.on { background: var(--lime); color: var(--ink); }
.top nav a { color: #fff; }
.top nav a:hover { background: rgb(255 255 255 / 0.12); }
.top nav a.on { background: #fff; color: var(--ink); }

/* breadcrumbs above the tournament poster */
.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font: 400 13px var(--mono); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin: 0 10px; }
.crumbs a { color: var(--blue); text-transform: lowercase; }
.crumbs [aria-current] { color: var(--ink); text-transform: lowercase; overflow-wrap: anywhere; }
.event .poster-top { justify-content: flex-end; }
.top strong { color: #fff; }

/* registration: breadcrumbs right above the banner; no players list, the counters sit in the banner */
#page > .crumbs ol { margin-bottom: -26px; }
.reg-stats { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 13px var(--mono); background: #05070b; color: #eaf0f7; padding: 6px 12px; border-radius: var(--r); }
.reg-stats b { color: var(--lime); font-weight: 400; }
.reg-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
