/* Na Boisku! – wersja B. Czerń: czarne tło, zieleń w nagłówkach i kolumnie „Na boisku”,
   czerwony = najważniejsza akcja, biel = tekst. Czcionka Archivo (lokalnie, offline). */

@font-face {
  font-family: Archivo; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Archivo; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  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;
}

:root {
  --red: #d81f26; /* stała czerwień: porażka, za dużo zawodników na boisku */
  --panel: #161616; --panel-2: #1e1e1e; --line: #2a2a2a; --muted: #a8a8a8;
  --dots: radial-gradient(rgba(0,0,0,.25) 1.1px, transparent 1.6px) 0 0 / 7px 7px;
  --top: env(safe-area-inset-top); --bottom: env(safe-area-inset-bottom);
}
/* Kolorystyki: main = karty i nagłówki meczu, accent = najważniejsze akcje, tint = drobny tekst na main.
   Selektor działa też na próbkach w wyborze kolorów, dlatego 0 jest podane osobno. */
:root, [data-theme="0"] { --main: #0b5c2b; --main-l: #12803d; --accent: #d81f26; --on-accent: #fff; --tint: #d6eadc; }
[data-theme="1"] { --main: #123c7c; --main-l: #1b4f9c; --accent: #ff7a26; --on-accent: #000; --tint: #d5e1f5; }
[data-theme="2"] { --main: #d1212a; --main-l: #d1212a; --accent: #fdcd00; --on-accent: #000; --tint: #ffebe8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #fff; font-family: Archivo, -apple-system, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

#app { height: 100dvh; display: flex; flex-direction: column; padding-top: var(--top); }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 96px; } /* dół: miejsce pod plakietkę Netlify */

/* ---------- nagłówek ekranu ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; flex: none; }
.crest { max-width: 90px; object-fit: contain; }
.top .crest { height: 40px; }
.top .mark { width: 40px; height: 40px; flex: none; }
.top h1 { margin: 0; font-size: 26px; font-weight: 750; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.1; }
.top small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.top .grow { flex: 1; min-width: 0; }
.back { border: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--panel-2); font-size: 22px; font-weight: 700; flex: none; }
.link { border: 0; background: none; color: #fff; font-weight: 650; font-size: 15px; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pasek zakładek ---------- */
.tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(var(--bottom) + 6px); background: #0c0c0c; border-top: 1px solid #222; }
.tab { border: 0; background: none; text-align: center; font-size: 12px; font-weight: 650; color: #7d7d7d; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0 6px; }
.tab i { width: 26px; height: 4px; border-radius: 2px; }
.tab.on { color: #fff; } .tab.on i { background: var(--accent); }

/* ---------- przyciski ---------- */
.btn { height: 50px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 750; padding: 0 18px; }
.btn.red { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px #000; }
.btn.white { background: #fff; color: #000; }
.btn.ghost { background: rgba(0,0,0,.35); color: #fff; }
.btn.dark { background: var(--panel-2); color: #fff; }
.btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn.danger { background: transparent; color: #ff5a5f; box-shadow: inset 0 0 0 2px rgba(216,31,38,.75); }
.btn.wide { width: 100%; height: 54px; font-size: 17px; }
.btn:disabled { opacity: .4; }
.btn:active, .card:active, .pick:active { transform: scale(.98); }
.foot { flex: none; padding: 10px 14px calc(var(--bottom) + 14px); }
.fab { position: fixed; right: 16px; bottom: calc(var(--bottom) + 80px); height: 54px; padding: 0 20px; border-radius: 27px; border: 0;
  background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 750; box-shadow: 0 0 0 2px #000, 0 10px 24px rgba(0,0,0,.5); z-index: 5; }

h2.sec { margin: 18px 4px 8px; font-size: 14px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- karta bieżącego meczu ---------- */
.next { border-radius: 22px; padding: 16px; background: var(--dots), var(--main); }
.next .when { font-size: 14px; font-weight: 650; color: var(--tint); }
.next .vs { font-size: 25px; font-weight: 800; font-stretch: 106%; margin: 4px 0 2px; letter-spacing: -.01em; line-height: 1.15; }
.next .meta { font-size: 14px; color: var(--tint); }
.next .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.next .acts.one { grid-template-columns: 1fr; }
.next .livebar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 650; color: var(--tint); }
.next .sc { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.next .sc .vs { margin: 0; }
.next .sc .big { font-size: 40px; font-weight: 800; font-stretch: 112%; }
.dot { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }
.dot.pz::before { background: #fff; box-shadow: none; }
.empty-card { border-radius: 22px; padding: 18px; background: var(--panel); }
.empty-card p { margin: 0 0 14px; color: #ddd; line-height: 1.45; }

/* ---------- wiersz meczu ---------- */
.m-row { width: 100%; border: 0; text-align: left; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 16px; background: var(--panel); margin-bottom: 6px; }
.m-row .d { text-align: center; line-height: 1.1; }
.m-row .d b { display: block; font-size: 20px; font-weight: 750; }
.m-row .d span { font-size: 12px; color: var(--muted); }
.m-row .t { font-size: 16px; font-weight: 700; min-width: 0; }
.m-row .t small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.res { min-width: 54px; text-align: center; padding: 6px 8px; border-radius: 10px; font-size: 17px; font-weight: 800; }
.res.w { background: #fff; color: #000; } .res.d { background: #333; color: #fff; } .res.l { background: var(--red); color: #fff; }
.plan { font-size: 13px; color: var(--muted); }

/* ---------- formularze ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 650; color: var(--muted); margin: 0 4px 8px; }
.input { width: 100%; height: 54px; border-radius: 14px; background: var(--panel-2); border: 0; padding: 0 16px; font-size: 18px; font-weight: 600; color: #fff;
  -webkit-appearance: none; appearance: none; outline: none; }
.input::placeholder { color: #6f6f6f; font-weight: 500; }
.input:focus { box-shadow: inset 0 0 0 2px #fff; }
input[type=date].input { display: flex; align-items: center; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--panel); color: #ddd; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip.on { background: #fff; color: #000; }
.segm { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border-radius: 14px; padding: 4px; }
.segm button { height: 46px; border: 0; border-radius: 11px; background: transparent; font-size: 16px; font-weight: 700; color: #bdbdbd; }
.segm .on { background: #fff; color: #000; }

/* ---------- zawodnicy ---------- */
.add { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.add .btn { height: 54px; }
.p-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; min-height: 56px; padding: 0 8px 0 14px; border-radius: 14px; background: var(--panel); margin-bottom: 6px; }
.p-item .n { font-size: 17px; font-weight: 700; }
.p-item .s { font-size: 13px; color: var(--muted); text-align: right; line-height: 1.25; }
.p-item .s b { color: #fff; font-size: 15px; }
.p-item.hid .n { color: #777; }
.p-item [data-go] { cursor: pointer; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.more { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--panel-2); font-size: 18px; color: #bbb; }

/* ---------- powołania ---------- */
.match-mini { border-radius: 18px; padding: 12px 14px; background: var(--dots), var(--main); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.match-mini b { font-size: 18px; font-weight: 750; }
.match-mini span { font-size: 13px; color: var(--tint); display: block; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-radius: 16px; padding: 8px 8px 8px 16px; margin-top: 10px; }
.stepper .l { font-size: 15px; font-weight: 650; }
.stepper .l small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; }
.stepper .ctl button { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--panel-2); font-size: 22px; font-weight: 700; }
.stepper .ctl b { width: 40px; text-align: center; font-size: 24px; font-weight: 800; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { border: 0; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  font-size: 17px; font-weight: 700; background: var(--panel); color: #9a9a9a; text-align: left; }
.pick.on { background: #fff; color: #000; }
.pick .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #444; flex: none; position: relative; }
.pick.on .ck { border: 0; background: var(--accent); }
.pick.on .ck::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; rotate: 45deg; }

/* ---------- ekran meczu ---------- */
.live { -webkit-user-select: none; user-select: none; }
.hdr { margin: 8px 14px 0; border-radius: 24px; padding: 10px 14px 14px; background: var(--dots), var(--main); flex: none; }
.hdr .row1 { display: flex; align-items: center; gap: 10px; }
.hdr .row1 .back { width: 34px; height: 34px; font-size: 20px; background: rgba(0,0,0,.35); }
.hdr .state { flex: 1; font-size: 13px; font-weight: 650; }
.wake { border: 0; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.35); color: var(--tint); }
.wake.on { background: #fff; color: #000; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 8px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; min-width: 0; }
.team .nm { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team .crest { height: 50px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.score { font-size: 54px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; padding: 0 6px; }
.score span { opacity: .45; font-weight: 500; margin: 0 4px; }
.seg { display: inline-flex; border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.3); }
.seg button { border: 0; height: 38px; font-weight: 650; }
.seg .m { width: 38px; font-size: 18px; background: transparent; color: rgba(255,255,255,.7); }
.seg .p { width: 58px; font-size: 22px; background: #fff; color: #000; }
.seg .m:disabled { opacity: .3; }
.clock { margin-top: 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.8); }
.clock b { font-size: 30px; font-weight: 750; font-stretch: 105%; color: #fff; }
.go { margin: 12px 14px; height: 56px; border: 0; border-radius: 16px; font-size: 18px; font-weight: 750; flex: none; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px #000; }
.go.start { background: #fff; color: #000; box-shadow: none; }
.pause-ico { display: inline-block; width: 14px; height: 16px; margin-right: 10px; vertical-align: -2px;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 14px; flex: none; }
.duo .btn { height: 56px; font-size: 17px; }

.cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; min-height: 0; }
.col { border-radius: 20px; padding: 6px; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.col.field { background: var(--main); }
.col.bench { background: var(--panel); }
.col h3 { margin: 4px 6px 8px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; flex: none; }
.cnt { opacity: .75; font-weight: 600; margin-left: 4px; }
.cnt.over { opacity: 1; color: var(--red); background: #fff; padding: 1px 6px; border-radius: 6px; }
.sort { border: 0; min-width: 56px; height: 28px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.field .sort { background: #fff; color: #000; }
.bench .sort { background: #2a2a2a; color: #cfcfcf; }
.h-acts { display: flex; align-items: center; gap: 6px; }
.sort.plus { display: grid; place-items: center; min-width: 28px; width: 28px; padding: 0 0 2px; font-size: 20px; font-weight: 600; line-height: 1; }
.list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
.list::-webkit-scrollbar { display: none; }
.card { width: 100%; border: 0; text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px;
  height: 48px; padding: 0 12px; border-radius: 13px; margin-bottom: 5px; color: #fff; }
.card .nm { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .min { font-size: 15px; font-weight: 700; }
.card .bar { grid-column: 1 / 3; height: 3px; border-radius: 2px; margin-top: -12px; align-self: end; margin-bottom: 8px; }
.card .bar i { display: block; height: 100%; border-radius: 2px; }
.field .card { background: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 #fff; }
.field .card .bar { background: rgba(255,255,255,.15); } .field .card .bar i { background: #fff; }
.bench .card { background: #222; color: #cfcfcf; }
.bench .card .bar { background: #333; } .bench .card .bar i { background: var(--accent); }
.hint { margin: 2px 2px; padding: 14px 10px; border-radius: 13px; border: 1.5px dashed rgba(255,255,255,.4); font-size: 13px; line-height: 1.35; text-align: center; color: rgba(255,255,255,.9); }
.histbtn { margin: 10px 14px calc(var(--bottom) + 12px); height: 50px; border-radius: 14px; border: 0; display: flex; align-items: center;
  justify-content: space-between; padding: 0 14px 0 16px; background: var(--panel); flex: none; text-align: left; }
.histbtn b { font-size: 15px; }
.histbtn span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.histbtn span::after { content: " ›"; font-size: 18px; }

/* ---------- historia ---------- */
.hchips { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; flex: none; scrollbar-width: none; }
.hchips::-webkit-scrollbar { display: none; }
.hchips .chip { background: var(--panel-2); }
.hchips .chip.on { background: #fff; color: #000; }
.log { border-radius: 20px; padding: 6px 12px 10px; background: var(--panel); }
.log h4 { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ev { display: grid; grid-template-columns: 48px 28px 1fr; align-items: center; gap: 8px; min-height: 38px; font-size: 15px; }
.ev time { font-weight: 650; color: #cfcfcf; }
.ev .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ic.in { background: #fff; color: var(--main-l); } .ic.out { background: #2e2e2e; color: #fff; }
.ic.goal { background: var(--accent); color: var(--on-accent); } .ic.clk { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.ev.minor { color: var(--muted); }
.psum { border-radius: 18px; padding: 14px 16px; background: var(--dots), var(--main); margin-bottom: 10px; }
.psum b { font-size: 28px; font-weight: 800; }
.psum span { display: block; font-size: 13px; color: var(--tint); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- podsumowanie i statystyki ---------- */
.scorecard { border-radius: 22px; padding: 14px; background: var(--dots), var(--main); }
.scorecard .meta { text-align: center; font-size: 13px; color: var(--tint); margin-top: 10px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--panel); border-radius: 18px; overflow: hidden; }
.t th, .t td { padding: 10px 8px; text-align: right; white-space: nowrap; }
.t th:first-child, .t td:first-child { text-align: left; padding-left: 14px; }
.t th:last-child, .t td:last-child { padding-right: 14px; }
.t th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.t td { border-bottom: 1px solid #1f1f1f; font-weight: 600; }
.t td:last-child { font-weight: 800; }
.t tr:last-child td { border-bottom: 0; }
.t tfoot td { color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); }
.t .zero { color: #666; }
.t tr[data-go] { cursor: pointer; }
.t tr[data-go]:active td { background: #222; }
.t tbody tr[data-go] td:first-child::after { content: '›'; margin-left: 6px; color: #666; font-weight: 700; }
.t small.sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; white-space: normal; }
.t td:has(small.sub)::after { display: none; }
.t small.sub .ga { display: block; color: #fff; font-weight: 700; }
.scorecard .meta.scorers { margin-top: 6px; color: #fff; line-height: 1.5; }
.sheet h4 { margin: 12px 6px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sheet .grid .pick { justify-content: center; margin: 0; background: #262626; color: #fff; text-align: center; }
.ev.tap { width: 100%; border: 0; background: transparent; padding: 4px 0; text-align: left; color: inherit; font: inherit; }
.ev.tap:active { background: #222; border-radius: 10px; }
.ev small.who { color: #fff; font-weight: 650; }
.ev small.who.none { color: var(--muted); font-weight: 500; text-decoration: underline dotted; }
.hid-tag { font-size: 11px; font-weight: 600; color: #888; }
.live-tag { font-size: 12px; font-weight: 750; color: var(--on-accent); background: var(--accent); padding: 2px 7px; border-radius: 6px; }
.banner { border-radius: 18px; padding: 14px 16px; background: #fff; color: #000; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.banner p { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
.banner .btn { height: 42px; background: var(--accent); color: var(--on-accent); }

/* ---------- ustawienia ---------- */
.box { border-radius: 18px; padding: 16px; background: var(--panel); margin-bottom: 12px; }
.logo-pick { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.logo-pick .crest { height: 50px; }
.logo-pick .mark { flex: none; }
.help-btn { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: var(--panel-2); color: #fff; font-size: 17px; font-weight: 750; }
.hdr .help-btn { width: 30px; height: 30px; font-size: 15px; background: rgba(0,0,0,.35); }
.help-top { position: sticky; top: -16px; margin: -16px 0 6px; padding: 14px 0 8px; background: #111; display: flex; align-items: center; justify-content: space-between; }
.help .help-top h3 { margin: 0; }
.help .help-top .btn { width: auto; height: 40px; margin: 0; }
.help .offline { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #000; font-size: 17px; font-weight: 800; line-height: 1.3; }
.help details { border-top: 1px solid var(--line); }
.help summary { padding: 14px 2px; font-size: 16px; font-weight: 700; cursor: pointer; }
.help .strong summary { font-size: 18px; font-weight: 900; }
.help .strong ul { color: #fff; font-weight: 750; }
.help ul { margin: 0 0 14px; padding-left: 20px; color: #ddd; font-size: 15px; line-height: 1.45; }
.help li { margin-bottom: 6px; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.themes button { height: 46px; border: 0; border-radius: 14px; background: linear-gradient(115deg, var(--main) 58%, var(--accent) 58.5%); }
.themes .on { box-shadow: 0 0 0 2px #000, 0 0 0 4px #fff; }
.clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.clubs button { border: 0; border-radius: 14px; background: var(--panel-2); padding: 10px 4px; font-size: 12px; font-weight: 650; display: grid; justify-items: center; gap: 6px; }
.clubs img { height: 40px; }
.logo-pick .btn { flex: 1; display: grid; place-items: center; padding: 0 8px; font-size: 15px; cursor: pointer; }
.box h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.box p { margin: 0 0 12px; font-size: 14px; color: #cfcfcf; line-height: 1.45; }
.ver { text-align: center; color: #666; font-size: 12px; margin-top: 12px; }

/* ---------- arkusz akcji, komunikaty ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 20; display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 80vh; overflow-y: auto; background: #111; border-radius: 22px 22px 0 0; padding: 16px 14px calc(var(--bottom) + 14px); box-shadow: 0 -1px 0 #333; }
.sheet h3 { margin: 2px 6px 12px; font-size: 16px; color: var(--muted); font-weight: 650; }
.sheet .btn { width: 100%; margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bottom) + 90px); translate: -50% 0; background: #fff; color: #000; padding: 12px 16px;
  border-radius: 14px; font-weight: 650; font-size: 14px; z-index: 30; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast:has(button) { display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 16px; white-space: nowrap; }
.toast button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 750; font-size: 15px; }

/* ---------- druk (PDF z podsumowania i statystyk) ---------- */
@media print {
  html, body, #app { background: #fff !important; color: #000 !important; height: auto; }
  .tabs, .back, .btn, .fab, .banner, .seg, .noprint { display: none !important; }
  .scroll { overflow: visible; }
  .scorecard, .next, .match-mini { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .scorecard .meta { color: #000; }
  table.t { background: #fff; color: #000; }
  .t th, .t td, .t tfoot td { color: #000 !important; border-color: #999 !important; }
  .scorecard .meta.scorers, .t small.sub, .t small.sub .ga { color: #000 !important; }
  .t tbody tr[data-go] td:first-child::after { display: none; }
  .t tr { break-inside: avoid; }
  .sec { color: #000 !important; }
}

/* turniej: etykieta przy meczu i karta turnieju na liście meczów */
.t-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #f2d27a; background: rgba(242, 210, 122, .13); padding: 1px 7px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.tour-box .link { display: block; margin: 8px auto 0; font-size: 14px; color: var(--tint); }
@media print { .t-tag { color: #000; background: none; border: 1px solid #000; } }
.hdr .tour-line { margin: 8px 0 -2px; text-align: center; font-size: 13px; font-weight: 600; color: #f2d27a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr .tour-line b { font-weight: 800; }
/* podsumowanie meczu: „Razem” pogrubione, „%” zwykłe; przy 3+ częściach gęściej, żeby kolumna % się mieściła */
.t.sumt td:last-child { font-weight: 600; }
.t.sumt td.sum { font-weight: 800; }
.t.dense { font-size: 14px; }
.t.dense th, .t.dense td { padding-left: 4px; padding-right: 4px; }
.t.dense th:first-child, .t.dense td:first-child { padding-left: 12px; }
.t.dense th:last-child, .t.dense td:last-child { padding-right: 12px; }
/* filtr z chipem turnieju: 4 chipy mieszczą się na 375 px */
.hchips .chip { padding: 0 12px; font-size: 14px; }
