/* Wspólne style całej aplikacji. Moduły korzystają z tych klas przez js/core/ui.js. */
* { box-sizing: border-box; }
/* Powłoka aplikacji: dokument się nie przewija, przewija się tylko .view. Dzięki temu górny pasek i dolna
   nawigacja nie zależą od position: fixed względem przewijanej strony (na iPhonie potrafiły odjeżdżać z treścią). */
html { -webkit-text-size-adjust: 100%; background: #030408; height: 100%; overflow: hidden; }
body {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 520px;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--ink);
  font: 15.5px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
svg.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.gold { color: var(--gold); }
.empty { color: var(--muted); text-align: center; padding: 22px 12px; }
.kicker { font: 700 12.5px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kicker-gold { color: var(--gold); }
.lead-text { font: 800 24px/1.1 var(--display); text-transform: uppercase; margin: 4px 0 12px; }

/* —— górny pasek —— */
.appbar {
  position: absolute; top: 0; left: 0; z-index: 20;
  width: 100%;
  height: calc(var(--appbar-h) + var(--safe-t)); padding: var(--safe-t) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(rgba(7, 9, 15, 0.92), rgba(7, 9, 15, 0.7));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font: italic 800 23px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.brand #brand-crest { display: flex; width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.brand em { font-style: inherit; color: var(--red-hi); }
.points-chip {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(232, 196, 106, 0.16), rgba(232, 196, 106, 0.06)); border: 1px solid rgba(232, 196, 106, 0.35);
  font: 800 17px/1 var(--display); color: var(--gold-hi); letter-spacing: 0.02em;
}
.points-chip small { font: 700 11px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 45%, var(--gold-dark)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 12px rgba(232, 196, 106, 0.45); position: relative; }
.coin::after { content: "R"; position: absolute; inset: 0; display: grid; place-items: center; font: italic 800 13px/1 var(--display); color: #6b4a10; }

/* —— widok —— */
.view {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding: calc(var(--appbar-h) + var(--safe-t) + 14px) var(--pad) 0; display: flex; flex-direction: column; gap: 22px;
}
.view > * { flex: none; }
/* odstęp pod treścią na dolną nawigację (zamiast padding-bottom, który w przewijanym flexie bywa pomijany) */
.view::after { content: ""; flex: none; height: calc(var(--tabbar-h) + var(--safe-b) + 18px); }
.view.enter > * { animation: rise 0.5s var(--ease) both; }
.view.enter > :nth-child(2) { animation-delay: 0.04s; }
.view.enter > :nth-child(3) { animation-delay: 0.08s; }
.view.enter > :nth-child(4) { animation-delay: 0.12s; }
.view.enter > :nth-child(5) { animation-delay: 0.16s; }
.view.enter > :nth-child(n + 6) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hello { display: flex; align-items: center; justify-content: space-between; margin-bottom: -8px; }
.hello-hi { color: var(--muted); font-size: 14px; }
.hello-title { font: italic 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.hello-me { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--display); background: linear-gradient(135deg, var(--red), var(--blue)); border: 2px solid rgba(255, 255, 255, 0.18); }
.page-head h1 { font: italic 800 40px/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.page-head p { margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 36px; padding: 0 14px 0 8px; margin-bottom: -8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.foot-note { text-align: center; color: var(--faint); font-size: 12.5px; padding: 4px 10px 0; }
.foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.soon { display: flex; flex-direction: column; gap: 10px; }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; }
.soon-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }
.soon-item .ico { width: 15px; height: 15px; color: var(--gold); }

/* —— pasek trybu pokazowego —— */
.modebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 14px; margin-bottom: -8px; border-radius: 16px; background: linear-gradient(135deg, rgba(232, 196, 106, 0.2), rgba(232, 196, 106, 0.07)); border: 1px solid rgba(232, 196, 106, 0.4); color: var(--gold-hi); font-size: 13px; }
.modebar button { flex: none; padding: 7px 12px; border-radius: 11px; background: var(--gold); color: #3d2a06; font: 700 13px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

/* —— dolna nawigacja (pływająca, „szklana”) —— */
.tabbar {
  position: absolute; z-index: 30; left: 12px; right: 12px;
  bottom: calc(12px + var(--safe-b)); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--line-2); border-radius: 26px; box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; color: var(--faint); font: 700 12px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.tab svg.ico { width: 23px; height: 23px; transition: transform 0.3s var(--ease); }
.tab.on { color: #fff; background: linear-gradient(180deg, rgba(225, 27, 34, 0.28), rgba(225, 27, 34, 0.06)); box-shadow: inset 0 0 0 1px rgba(255, 64, 72, 0.35); }
.tab.on svg.ico { transform: translateY(-1px) scale(1.08); color: var(--red-hi); }
.tab:active svg.ico { transform: scale(0.9); }

/* —— karty i sekcje —— */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card-list { padding: 4px var(--pad); gap: 0; }
.card-flush { padding: 12px; }
.card-error { border-color: rgba(225, 27, 34, 0.5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.card-aside { color: var(--muted); font-size: 13.5px; }
.sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-head h2 { font: italic 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.015em; }
.sec-head h2::before { content: ""; display: inline-block; width: 4px; height: 18px; margin-right: 9px; border-radius: 2px; background: linear-gradient(var(--red-hi), var(--blue-hi)); transform: skewX(-12deg) translateY(2px); }
.sec-more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font: 700 13px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.sec-more .ico { width: 15px; height: 15px; }
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.kv span::first-letter { text-transform: uppercase; }
.kv.total { font-size: 17px; }
.kv.total b { font: 800 24px/1 var(--display); }

/* —— okładki generowane (zamiast zdjęć) —— */
.art { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; padding: 10px; background: var(--a1); border-radius: var(--radius-sm); }
.art::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, 0.055) 34px 46px, transparent 46px 110px), radial-gradient(60% 50% at 80% 10%, var(--a2), transparent 70%); }
.art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), radial-gradient(rgba(255, 255, 255, 0.5) 1.1px, transparent 1.5px) 0 0 / 8px 8px, linear-gradient(transparent 45%, rgba(0, 0, 0, 0.55)); -webkit-mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.35), #000 75%); mask-image: linear-gradient(200deg, rgba(0, 0, 0, 0.35), #000 75%); mix-blend-mode: soft-light; opacity: 0.9; }
.art-glyph { position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-52%) skewX(-8deg); font: italic 800 150px/0.8 var(--display); color: rgba(255, 255, 255, 0.16); letter-spacing: -0.04em; white-space: nowrap; }
.art-1 { --a1: linear-gradient(135deg, #ff3840, #a80f15 70%); --a2: rgba(255, 190, 120, 0.5); }
.art-2 { --a1: linear-gradient(135deg, #2f6bea, #0c2456 75%); --a2: rgba(120, 200, 255, 0.45); }
.art-3 { --a1: linear-gradient(120deg, #e11b22 0 46%, #1746a2 54%); --a2: rgba(255, 255, 255, 0.28); }
.art-4 { --a1: linear-gradient(135deg, #1a2238, #07090f 80%); --a2: rgba(232, 196, 106, 0.5); }
.art-5 { --a1: linear-gradient(135deg, #123a8a, #1c1340 80%); --a2: rgba(255, 64, 72, 0.5); }
.art-6 { --a1: linear-gradient(135deg, #e8c46a, #8a611c 80%); --a2: rgba(255, 255, 255, 0.5); }
.art-4 .art-glyph { color: rgba(232, 196, 106, 0.22); }

/* —— etykiety, przyciski, pola —— */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font: 700 12.5px/1 var(--display); letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; }
.badge .ico { width: 13px; height: 13px; }
.badge-red { background: var(--red); color: #fff; }
.badge-blue { background: rgba(77, 141, 255, 0.18); color: #a9c8ff; }
.badge-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold-dark)); color: #3d2a06; }
.badge-grey { background: var(--surface-3); color: var(--muted); }
.badge-white { background: #fff; color: #0a1020; }
.badge-ok { background: rgba(47, 209, 124, 0.16); color: var(--green); }
.badge-glass { background: rgba(0, 0, 0, 0.38); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.16); }
.badge-live { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(255, 64, 72, 0.6); animation: livering 1.6s infinite; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes livering { 70% { box-shadow: 0 0 0 9px rgba(255, 64, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 64, 72, 0); } }
@keyframes blink { 50% { opacity: 0.25; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 18px; border-radius: 14px; font: 700 16.5px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; transition: transform 0.15s var(--ease), filter 0.2s; }
.btn:active { transform: scale(0.96); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, var(--red-hi), var(--red) 60%, var(--red-dark)); color: #fff; box-shadow: var(--glow-red), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); }
.btn-glass { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-light { background: #fff; color: #0a1020; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-dark)); color: #3d2a06; box-shadow: 0 10px 28px -10px rgba(232, 196, 106, 0.7); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions > .btn { flex: 1 1 auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.1); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { min-height: 38px; padding: 8px 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14px; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.chip.on { background: #fff; color: #0a1020; border-color: #fff; font-weight: 600; }
.field { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.field:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.2); }
.field::placeholder { color: var(--faint); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg-btn { height: 38px; border-radius: 10px; text-align: center; font: 700 14.5px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: background 0.25s, color 0.25s; }
.seg-btn.on { background: #fff; color: #0a1020; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.8); }

/* —— wiersze, paski, liczby —— */
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main b { font-weight: 600; }
.row-main small { color: var(--muted); font-size: 13px; }
.row-aside { color: var(--muted); font-size: 14px; white-space: nowrap; }
.row-chev { color: var(--faint); width: 18px; height: 18px; }
.row-me { margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); width: auto; background: linear-gradient(90deg, rgba(225, 27, 34, 0.22), rgba(23, 70, 162, 0.22)); }
.rank-no { width: 26px; font: 800 20px/1 var(--display); color: var(--muted); text-align: center; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background 0.25s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-dark), var(--gold-hi)); animation: grow 0.9s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.ring { position: relative; flex: none; }
.ring svg { display: block; }
.ring circle { fill: none; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, 0.1); }
.ring-fg { animation: ringin 1.1s var(--ease) both; }
.ring-red { stroke: var(--red-hi); }
.ring-gold { stroke: var(--gold); filter: drop-shadow(0 0 6px rgba(232, 196, 106, 0.55)); }
@keyframes ringin { from { stroke-dashoffset: 400; } }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font: 800 24px/1 var(--display); }
.ring-in small { font: 700 10.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat b { font: 800 26px/1 var(--display); }
.stat small { font: 700 11px/1 var(--display); letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.stat-big { align-items: center; padding: 16px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat-big b { font-size: 44px; font-style: italic; background: linear-gradient(180deg, #fff, #b9c4dc); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 4px; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.crest, .avatar { display: inline-grid; place-items: center; flex: none; }
.crest svg { display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.avatar { border-radius: 50%; font: italic 800 18px/1 var(--display); background: linear-gradient(135deg, var(--red), var(--blue)); border: 2px solid rgba(255, 255, 255, 0.2); }
.strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; width: 100%; }
.strip-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225, 27, 34, 0.25), rgba(23, 70, 162, 0.35)); color: #fff; flex: none; }
.strip-big { width: 46px; font: italic 800 40px/1 var(--display); color: var(--gold); text-align: center; flex: none; }
.strip-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.strip-main small { color: var(--muted); font-size: 13px; }
.form { display: flex; gap: 4px; }
.form i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font: 800 13px/1 var(--display); font-style: normal; color: #fff; }
.f-W { background: var(--green); color: #04240f !important; } .f-R { background: var(--surface-3); } .f-P { background: var(--red); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: #fff; font: 800 14px/1 var(--display); flex: none; transform: translateY(4px); }
.steps b { color: var(--ink); }
.lockline { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }

/* —— kafle karuzel —— */
.tile { display: flex; flex-direction: column; gap: 10px; width: 148px; text-align: left; transition: transform 0.2s var(--ease); }
.tile:active { transform: scale(0.97); }
.tile-art { height: 148px; align-items: flex-start; }
.tile-body { display: flex; flex-direction: column; gap: 4px; }
.tile-kick { font: 700 11.5px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tile-title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta { color: var(--muted); font-size: 13px; }
.tile-wide { width: 262px; }
.tile-wide .tile-art { height: 150px; }
.tile-wide .tile-title { font: 700 20px/1.12 var(--display); letter-spacing: 0.01em; -webkit-line-clamp: 3; }
.tile-video { width: 228px; }
.tile-video .tile-art { height: 128px; align-items: flex-end; justify-content: flex-end; }
.play-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0a1020; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
.play-dot .ico { fill: currentColor; stroke-width: 0; width: 20px; height: 20px; transform: translateX(1px); }
.play-dot .ico path[d^="M6"] { fill: none; }
.dur { font: 700 12px/1 var(--display); letter-spacing: 0.06em; padding: 4px 7px; border-radius: 7px; background: rgba(0, 0, 0, 0.6); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pgrid-shop { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.pgrid .tile, .pgrid .pcard { width: auto; }
.price-inline { display: inline-flex; gap: 7px; align-items: baseline; }
.price-inline b { color: var(--ink); font-size: 15px; }
.price-inline s, .price s { color: var(--faint); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 800 34px/1 var(--display); }
.price small { color: var(--gold); width: 100%; font-size: 13px; }
.prod-big { height: 200px; align-items: flex-start; }

/* —— warstwy: komunikat, panel, gol —— */
.toast { position: fixed; z-index: 80; left: 50%; top: calc(var(--appbar-h) + var(--safe-t) + 10px); transform: translate(-50%, -24px) scale(0.96); opacity: 0; pointer-events: none; max-width: min(92vw, 440px); padding: 13px 18px; border-radius: 16px; background: #fff; color: #0a1020; font-weight: 600; text-align: center; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8); transition: transform 0.35s var(--ease), opacity 0.25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #3d2a06; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(3, 4, 8, 0); transition: background 0.25s; }
.sheet-wrap.open { background: rgba(3, 4, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; padding: 8px var(--pad) calc(22px + var(--safe-b)); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(105%); transition: transform 0.38s var(--ease); }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); margin: 2px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { font: italic 800 26px/1 var(--display); text-transform: uppercase; }
.sheet-body { display: flex; flex-direction: column; gap: 14px; }
.sheet-body h3 { font: 800 26px/1.05 var(--display); text-transform: uppercase; }
.code-big { align-self: center; padding: 14px; border-radius: 22px; background: #fff; display: flex; box-shadow: 0 0 60px rgba(255, 255, 255, 0.18); }
.code-big svg, .pass-qr svg { display: block; max-width: 100%; height: auto; }
.code-text { text-align: center; font: 700 17px/1 var(--display); letter-spacing: 0.16em; color: var(--muted); }
.goal-flash { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(225, 27, 34, 0.92), rgba(12, 36, 86, 0.94) 70%); animation: goalbg 3.2s var(--ease) both; overflow: hidden; }
.goal-flash::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.09) 0 8deg, transparent 8deg 20deg); animation: spin 9s linear infinite; }
.goal-in { position: relative; text-align: center; animation: goalin 0.7s var(--ease) both; }
.goal-word { font: italic 800 clamp(84px, 27vw, 140px)/0.85 var(--display); letter-spacing: -0.01em; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.goal-score { font: 800 64px/1 var(--display); color: var(--gold-hi); margin-top: 8px; }
.goal-who { font: 700 22px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; }
@keyframes goalbg { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes goalin { from { transform: scale(0.4) rotate(-8deg); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* —— nagłówek meczu („światła stadionu”) —— */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 18px var(--pad) var(--pad); border-radius: 28px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 60% at 50% 115%, rgba(47, 209, 124, 0.2), transparent 60%), radial-gradient(70% 55% at 12% -8%, rgba(225, 27, 34, 0.75), transparent 62%), radial-gradient(70% 55% at 88% -8%, rgba(23, 70, 162, 0.95), transparent 62%), linear-gradient(180deg, #131a2c, #080b13 78%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: soft-light; opacity: 0.7; }
.beam { position: absolute; top: -30%; width: 46%; height: 150%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 72%); filter: blur(16px); transform-origin: top center; mix-blend-mode: screen; animation: sway 9s ease-in-out infinite alternate; }
.b1 { left: -8%; transform: rotate(22deg); }
.b2 { right: -8%; transform: rotate(-22deg); animation-delay: -4s; }
.b3 { left: 27%; opacity: 0.45; transform: rotate(2deg); animation-duration: 13s; }
@keyframes sway { to { transform: rotate(var(--to, 12deg)); opacity: 0.7; } }
.b2 { --to: -12deg; } .b3 { --to: -4deg; }
.hero-pitch { position: absolute; left: -10%; right: -10%; bottom: -46px; height: 120px; border: 2px solid rgba(255, 255, 255, 0.09); border-radius: 50%; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-comp { font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.hero-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.hero-team b { font: 700 17px/1.05 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-center { text-align: center; min-width: 108px; }
.hero-time { font: italic 800 54px/0.9 var(--display); letter-spacing: -0.01em; }
.hero-day { margin-top: 6px; font: 700 13px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hero-score { font: italic 800 76px/0.85 var(--display); display: flex; justify-content: center; gap: 4px; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.hero-score i { opacity: 0.5; font-style: normal; transform: translateY(-4px); }
.hero-minute { margin-top: 8px; display: inline-block; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.4); font: 800 17px/1 var(--display); letter-spacing: 0.08em; color: var(--red-hi); animation: blink 1.6s infinite; }
.hero-minute.done { animation: none; color: #fff; }
.hero-event { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.36); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 14.5px; animation: rise 0.5s var(--ease) both; }
.hero-event b { font: 800 17px/1 var(--display); color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 0 9px; border-radius: 14px; background: rgba(0, 0, 0, 0.36); border: 1px solid rgba(255, 255, 255, 0.1); }
.cd-cell b { font: 800 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.cd-cell small { font: 700 10.5px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 5px; color: rgba(255, 255, 255, 0.72); font-size: 12.5px; white-space: nowrap; }
.hero-meta .ico { width: 15px; height: 15px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 4px; }
.hero-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.hero-actions .btn { padding: 0 10px; min-width: 0; }
.hero-live { border-color: rgba(255, 64, 72, 0.55); box-shadow: 0 0 0 1px rgba(255, 64, 72, 0.25), 0 24px 60px -20px rgba(225, 27, 34, 0.6); }
.hero-title { font: italic 800 30px/1 var(--display); text-transform: uppercase; }

/* —— relacje —— */
.stories { gap: 14px; }
.story { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px; }
.story-ring { width: 70px; height: 70px; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--red-hi), var(--gold), var(--blue-hi), var(--red-hi)); display: block; }
.story-ring.sm { width: 38px; height: 38px; padding: 2px; }
.story.seen .story-ring { background: var(--surface-3); }
.story-art { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); padding: 0; align-items: center; justify-content: center; }
.story-art .art-glyph { position: static; transform: skewX(-8deg); font-size: 24px; color: #fff; z-index: 0; }
.story-ring.sm .art-glyph { font-size: 13px; }
.story-ring.sm .story-art { border-width: 2px; }
.story-name { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story:not(.seen) .story-name { color: var(--ink); }
.sv { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; opacity: 0; transform: scale(0.94); transition: opacity 0.22s, transform 0.3s var(--ease); }
.sv.open { opacity: 1; transform: none; }
.sv-stage { position: relative; width: 100%; max-width: 520px; height: 100%; overflow: hidden; }
.sv-art { position: absolute; inset: 0; border-radius: 0; }
.sv-art .art-glyph { font-size: 300px; top: 40%; right: -6%; }
.sv-bars { position: absolute; z-index: 3; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; display: flex; gap: 5px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.sv-bars b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.sv-bars .done b { transform: none; }
.sv-bars .now b { animation: storybar linear both; }
@keyframes storybar { to { transform: none; } }
.sv-head { position: absolute; z-index: 3; top: calc(24px + var(--safe-t)); left: 12px; right: 12px; display: flex; align-items: center; gap: 9px; }
.sv-head small { color: rgba(255, 255, 255, 0.7); flex: 1; }
.sv-tap { position: absolute; z-index: 2; top: 80px; bottom: 0; width: 34%; }
.sv-prev { left: 0; } .sv-next { right: 0; width: 66%; }
.sv-text { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 90px 22px calc(38px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 55%); pointer-events: none; animation: rise 0.45s var(--ease) both; }
.sv-text h2 { font: italic 800 44px/0.95 var(--display); text-transform: uppercase; }
.sv-text p { color: rgba(255, 255, 255, 0.85); font-size: 16.5px; }
.sv-text .btn { pointer-events: auto; margin-top: 6px; }

/* —— bilet jak w portfelu —— */
.pass { position: relative; border-radius: 26px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.pass-top { position: relative; isolation: isolate; padding: 16px var(--pad) 20px; display: flex; flex-direction: column; gap: 16px; background: linear-gradient(120deg, var(--red) 0 42%, var(--blue) 58%); }
.pass-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), repeating-linear-gradient(115deg, transparent 0 30px, rgba(255, 255, 255, 0.06) 30px 42px); mix-blend-mode: soft-light; }
.pass-kind { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.pass-kind .badge { margin-left: auto; background: rgba(0, 0, 0, 0.35); }
.pass-match { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pass-vs { text-align: center; display: flex; flex-direction: column; gap: 5px; }
.pass-vs b { font: italic 800 36px/0.9 var(--display); letter-spacing: 0.01em; }
.pass-vs small { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.pass-cut { position: relative; height: 0; border-top: 2px dashed rgba(255, 255, 255, 0.18); margin: 0 18px; }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.pass-cut::before { left: -31px; } .pass-cut::after { right: -31px; }
.pass-body { padding: 18px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 16px; }
.pass-seat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pass-seat .stat b { font-size: 32px; }
.pass-qr { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 12px 8px; background: #fff; border-radius: 20px; color: #5b6170; }
.pass-qr small { font-size: 12px; }
.pass-msg { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); }
.pass-off .pass-top { filter: grayscale(0.85) brightness(0.7); }

/* —— centrum meczowe —— */
.centrum { gap: 16px; }
.sbd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 0 2px; }
.sbd-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sbd-team b { font: 700 15px/1.05 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.sbd-mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 100px; }
.sbd-score { font: italic 800 58px/0.85 var(--display); }
.sbd-time { font: italic 800 44px/0.9 var(--display); }
.sbd-sub { font: 700 12.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.timeline { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 34px 34px 1fr; align-items: start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); animation: rise 0.4s var(--ease) both; }
.ev:first-child { border-top: 0; }
.ev-min { font: 800 18px/34px var(--display); color: var(--muted); text-align: right; }
.ev-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.ev-ico .ico { width: 17px; height: 17px; }
.ev-main { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.ev-main small { color: var(--muted); font-size: 13.5px; }
.ev-assist { color: var(--faint) !important; }
.ev-us.ev-gol .ev-ico { background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(225, 27, 34, 0.22); }
.ev-us.ev-gol .ev-main b { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.ev-them.ev-gol .ev-ico { background: #fff; color: #0a1020; }
.ev-zolta .ev-ico { color: #ffd23f; } .ev-zolta .ev-ico .ico { fill: currentColor; }
.ev-okazja .ev-ico { color: var(--gold); }
.statbars { display: flex; flex-direction: column; gap: 14px; }
.sb-head { display: grid; grid-template-columns: 54px 1fr 54px; align-items: baseline; margin-bottom: 6px; }
.sb-head b { font: 800 19px/1 var(--display); }
.sb-head b:last-child { text-align: right; }
.sb-head span { text-align: center; color: var(--muted); font-size: 13px; }
.sb-bar { display: flex; gap: 4px; height: 7px; }
.sb-bar i { height: 100%; border-radius: 99px; transition: width 0.8s var(--ease); }
.sb-bar .us { background: linear-gradient(90deg, var(--red-dark), var(--red-hi)); }
.sb-bar .them { background: rgba(255, 255, 255, 0.28); }
.sb-mini { padding-top: 12px; border-top: 1px solid var(--line); }
.lineup { display: flex; flex-direction: column; gap: 12px; }
.pitch { position: relative; aspect-ratio: 68 / 88; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(180deg, #17713f 0 12.5%, #14653a 12.5% 25%); box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45); }
.pitch-lines { position: absolute; inset: 10px; border: 2px solid rgba(255, 255, 255, 0.32); border-radius: 4px; background: linear-gradient(rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.32)) 0 0 / 100% 2px no-repeat; }
.pitch-lines::before { content: ""; position: absolute; left: 50%; top: 0; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255, 255, 255, 0.32); border-radius: 50%; }
.pitch-lines::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56%; height: 19%; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, 0.32); border-bottom: 0; }
.pitch-form { position: absolute; top: 18px; right: 20px; font: italic 800 22px/1 var(--display); color: rgba(255, 255, 255, 0.55); }
.pp { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -30%) scale(0.5); } }
.pp-no { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: italic 800 18px/1 var(--display); background: linear-gradient(135deg, var(--red-hi), var(--red-dark)); border: 2px solid #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); }
.pp-name { padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font: 700 12.5px/1.2 var(--display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.bench-p { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }

/* —— typer —— */
.typer-steps { display: flex; align-items: center; justify-content: center; gap: 10px; }
.typer-colon { font: 800 44px/1 var(--display); color: var(--faint); margin-top: 58px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-team { font: 700 13px/1 var(--display); letter-spacing: 0.12em; color: var(--muted); }
.step-ctl { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.step-btn { width: 42px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); transition: transform 0.12s; }
.step-btn:active { transform: scale(0.88); background: var(--red); }
.step-val { width: 40px; text-align: center; font: italic 800 46px/1 var(--display); }
.step-val.bump { animation: bump 0.3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--gold-hi); } }
.typer-locked { display: flex; align-items: center; justify-content: center; gap: 18px; }
.typer-tip { font: italic 800 62px/1 var(--display); }
.typer-verdict { text-align: center; color: var(--muted); }
.typer-verdict.win { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(232, 196, 106, 0.22), rgba(232, 196, 106, 0.06)); color: var(--gold-hi); font-weight: 600; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; border-radius: 18px 18px 6px 6px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.pod b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { color: var(--muted); font-size: 12.5px; }
.pod-place { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: italic 800 22px/1 var(--display); background: var(--surface-3); }
.pod-1 { padding-top: 26px; background: linear-gradient(180deg, rgba(232, 196, 106, 0.25), var(--surface) 70%); border-color: rgba(232, 196, 106, 0.4); }
.pod-1 .pod-place { background: linear-gradient(135deg, var(--gold-hi), var(--gold-dark)); color: #3d2a06; }
.pod-2 .pod-place { background: linear-gradient(135deg, #e6ebf5, #8b95aa); color: #1a2030; }
.pod-3 .pod-place { background: linear-gradient(135deg, #e0a37a, #8a4f2a); color: #2c1505; }

/* —— głosowanie —— */
.votes { display: flex; flex-direction: column; gap: 12px; }
.vote { display: flex; align-items: center; gap: 12px; }
.vote-main { flex: 1; min-width: 0; }
.vote-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 14.5px; }
.vote-head small { color: var(--gold); }
.vote-head b { font: 800 18px/1 var(--display); }
.vote-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.vote-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: rgba(255, 255, 255, 0.35); transform-origin: left; animation: grow 1s var(--ease) both; }
.vote.lead .vote-bar i { background: linear-gradient(90deg, var(--red), var(--gold)); }
.vote.mine .avatar { border-color: var(--gold); }
.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; transition: transform 0.15s, border-color 0.2s; }
.cand:active { transform: scale(0.94); border-color: var(--gold); }
.cand small { color: var(--muted); font-size: 12px; }
.motm { padding: 0; overflow: hidden; gap: 0; }
.motm-art { height: 130px; border-radius: 0; align-items: flex-start; }
.motm-body { padding: var(--pad); display: flex; flex-direction: column; gap: 10px; }
.motm-name { font: italic 800 34px/1 var(--display); text-transform: uppercase; }

/* —— terminarz i tabela —— */
.fx { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.fx:first-child { border-top: 0; }
.fx-date { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fx-date b { font: 800 17px/1 var(--display); text-transform: uppercase; }
.fx-date small, .fx-time small { color: var(--muted); font-size: 12px; }
.fx-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-teams span { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.fx-teams em, .tbl-team em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fx-time { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fx-time b { font: 800 20px/1 var(--display); }
.fx-score { min-width: 52px; padding: 8px 10px; border-radius: 11px; text-align: center; font: 800 20px/1 var(--display); background: var(--surface-3); }
.r-W { background: rgba(47, 209, 124, 0.18); color: var(--green); } .r-P { background: rgba(225, 27, 34, 0.2); color: var(--red-hi); }
.tbl-head, .tbl-row { display: grid; grid-template-columns: 30px 1fr 30px 36px; align-items: center; gap: 8px; }
.tbl-head { padding: 12px 0 8px; font: 700 11.5px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tbl-head span:nth-child(n + 3), .tbl-row > :nth-child(n + 3) { text-align: center; }
.tbl-row { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.tbl-row b { font: 800 19px/1 var(--display); color: var(--ink); }
.tbl-pos { font: 800 17px/1 var(--display); text-align: center; }
.tbl-row.top .tbl-pos { color: var(--gold); }
.tbl-team { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 500; min-width: 0; }
.tbl-row.me { margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); background: linear-gradient(90deg, rgba(225, 27, 34, 0.26), rgba(23, 70, 162, 0.26)); border-top-color: transparent; }
.tbl-row.me .tbl-team { font-weight: 700; }

/* —— wiadomości, wideo —— */
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature-art { height: 250px; border-radius: 0; }
.feature-art .art-glyph { font-size: 260px; }
.feature-body { position: absolute; inset: auto 0 0 0; padding: 60px var(--pad) var(--pad); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 60%); }
.feature-body b { font: 800 28px/1.02 var(--display); text-transform: uppercase; }
.feature-body small { color: rgba(255, 255, 255, 0.8); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.newsrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.newsrow:first-child { border-top: 0; }
.newsrow-art { width: 66px; height: 66px; padding: 0; flex: none; }
.newsrow-art .art-glyph { font-size: 60px; right: 2px; }
.article { display: flex; flex-direction: column; gap: 14px; }
.article-art { height: 220px; align-items: flex-start; border-radius: var(--radius); }
.article-art .art-glyph { font-size: 240px; }
.article h1 { font: italic 800 36px/1 var(--display); text-transform: uppercase; }
.article-lead { font-size: 18px; font-weight: 500; }
.article p { color: #d5dae6; }
.vplayer { height: 200px; align-items: flex-end; justify-content: space-between; gap: 10px; }
.vplayer-btn { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0a1020; animation: livering 1.8s infinite; }
.vplayer-btn .ico { width: 28px; height: 28px; fill: currentColor; stroke-width: 0; }
.vplayer-btn.locked .ico { fill: none; stroke-width: 2; }
.vplayer-bar { flex: 1; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, 0.3); margin-bottom: 5px; }
.vplayer-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--red-hi); animation: playbar 14s linear forwards; }
@keyframes playbar { to { width: 100%; } }
.vplayer-time { font: 700 13px/1 var(--display); }

/* —— kadra —— */
.pcard { display: flex; flex-direction: column; gap: 8px; width: 126px; }
.pcard-art { height: 150px; align-items: flex-start; justify-content: flex-end; }
.pcard-art .art-glyph { font-size: 120px; right: 50%; transform: translate(50%, -50%) skewX(-8deg); color: rgba(255, 255, 255, 0.92); text-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); z-index: 0; }
.pcard-flag { position: relative; font-size: 17px; }
.pcard-body { display: flex; flex-direction: column; gap: 1px; }
.pcard-body small { font: 700 11px/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.pcard-body small.muted { color: var(--muted); letter-spacing: 0; text-transform: none; font: 13px/1.2 var(--font); }
.pcard-body b { font: 800 19px/1.05 var(--display); text-transform: uppercase; }
.pgrid .pcard-art { height: 128px; }
.pgrid .pcard-art .art-glyph { font-size: 96px; }
.pl-hero { height: 280px; border-radius: 28px; padding: var(--pad); }
.pl-hero .art-glyph { font-size: 330px; right: -2%; top: 46%; color: rgba(255, 255, 255, 0.24); }
.pl-id h1 { font: italic 800 56px/0.9 var(--display); text-transform: uppercase; display: flex; flex-direction: column; }
.pl-id h1 small { font: 600 22px/1.1 var(--display); letter-spacing: 0.04em; font-style: normal; opacity: 0.85; }

/* —— nagrody, odznaki —— */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.bdg { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; opacity: 0.45; }
.bdg b { font-size: 12px; line-height: 1.15; }
.bdg small { font-size: 11.5px; color: var(--muted); }
.bdg-coin { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: italic 800 22px/1 var(--display); background: var(--surface-3); border: 2px dashed var(--line-2); }
.bdg.on { opacity: 1; }
.bdg.on .bdg-coin { background: radial-gradient(circle at 35% 28%, #fff3c4, var(--gold) 45%, var(--gold-dark)); color: #4a3208; border: 2px solid rgba(255, 255, 255, 0.4); box-shadow: 0 8px 20px -6px rgba(232, 196, 106, 0.7); }
.bdg.on small { color: var(--gold); }

/* —— konto —— */
.levelcard { flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(120deg, rgba(232, 196, 106, 0.14), var(--surface) 55%); border-color: rgba(232, 196, 106, 0.28); }
.levelcard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.levelcard-name { font: italic 800 28px/1 var(--display); text-transform: uppercase; }
.levelcard .muted { font-size: 13.5px; }
.member { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 18px var(--pad) var(--pad); border-radius: 26px; border: 1px solid rgba(232, 196, 106, 0.4); background: radial-gradient(90% 80% at 100% 0%, rgba(23, 70, 162, 0.85), transparent 60%), radial-gradient(80% 70% at 0% 100%, rgba(225, 27, 34, 0.6), transparent 60%), #0c1120; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.member::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: soft-light; }
.member-shine { position: absolute; z-index: -1; top: -60%; left: -30%; width: 40%; height: 220%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent); transform: rotate(18deg); animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }
.member-top { display: flex; align-items: center; justify-content: space-between; }
.member-brand { display: flex; align-items: center; gap: 9px; font: italic 800 21px/1 var(--display); text-transform: uppercase; }
.member-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-name { font: italic 800 38px/0.95 var(--display); text-transform: uppercase; }
.member-no { margin-top: 8px; font: 700 16px/1 var(--display); letter-spacing: 0.2em; color: var(--gold-hi); }
.member-since { margin-top: 6px; color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.member-next { display: flex; flex-direction: column; gap: 7px; }
.member .actions { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.member .actions .btn { padding: 0 8px; }
.member-next small { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.demo { border-style: dashed; border-color: var(--line-2); }

/* —— aplikacja kibiców: powitanie, kolejka, wizja —— */
.welcome { background: linear-gradient(135deg, rgba(225, 27, 34, 0.28), rgba(23, 70, 162, 0.3) 70%), var(--surface); border-color: var(--line-2); }
.welcome-head { display: flex; align-items: center; gap: 12px; }
.welcome-title { font: italic 800 30px/1 var(--display); text-transform: uppercase; margin-top: 4px; }
.nickform { display: flex; gap: 8px; }
.nickform .field { flex: 1; min-width: 0; }
.actions-2 { display: grid !important; grid-template-columns: 1fr 1fr !important; }
.rnd { display: flex; flex-direction: column; }
.rnd-row { display: grid; grid-template-columns: 1fr 58px 1fr; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rnd-row:first-child { border-top: 0; }
.rnd-row.me { margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); background: linear-gradient(90deg, rgba(225, 27, 34, 0.24), rgba(23, 70, 162, 0.24)); border-top-color: transparent; font-weight: 700; }
.rnd-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rnd-team em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnd-home { justify-content: flex-end; text-align: right; }
.rnd-score { text-align: center; font: 800 19px/1 var(--display); padding: 6px 0; border-radius: 9px; background: var(--surface-3); }
.rnd-time { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rnd-time b { font: 800 16px/1 var(--display); }
.rnd-time small { color: var(--muted); font-size: 11px; }
.tips { border-top: 1px solid var(--line); padding-top: 12px; }
.thumb { padding: 0; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb::before, .thumb::after { z-index: 0; }
.thumb .play-dot { z-index: 1; }
.vision { background: linear-gradient(135deg, rgba(232, 196, 106, 0.14), var(--surface) 60%); border-color: rgba(232, 196, 106, 0.3); }
.vision-list { display: flex; flex-direction: column; gap: 10px; }
.vision-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.vision-list .strip-ico { width: 36px; height: 36px; border-radius: 11px; }

/* —— asystent —— */
.ask { background: linear-gradient(135deg, rgba(23, 70, 162, 0.35), var(--surface) 60%); gap: 14px; }
.ask-head { display: flex; align-items: center; gap: 12px; }
.ask-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-hi), var(--blue)); box-shadow: 0 10px 24px -8px rgba(77, 141, 255, 0.7); flex: none; }
.ask-title { font: 800 21px/1.05 var(--display); text-transform: uppercase; margin-top: 3px; }
.ask .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
.ask .chips::-webkit-scrollbar { display: none; }
.ask-input { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-2); color: var(--faint); }
.ask-input .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--blue-hi); color: #fff; }
.chat { display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - 230px); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; animation: rise 0.35s var(--ease) both; scroll-margin-bottom: 220px; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-me { align-self: flex-end; background: linear-gradient(135deg, var(--blue-hi), var(--blue)); border-bottom-right-radius: 6px; }
.typing { display: flex; gap: 5px; padding: 5px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 30% { transform: translateY(-5px); opacity: 1; } 0%, 60%, 100% { transform: none; opacity: 0.5; } }
.chat-form { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--line-2); }
.chat-form .field { border: 0; background: transparent; box-shadow: none; height: 44px; }
.send { background: var(--blue-hi); width: 44px; height: 44px; }

/* —— serwer aplikacji kibiców: ranking, głosowanie, kod profilu —— */
.srv { display: contents; }
.stack-tight { display: flex; flex-direction: column; gap: 10px; }
.warn { padding: 12px 14px; border-radius: 14px; background: rgba(232, 196, 106, 0.1); border: 1px solid rgba(232, 196, 106, 0.35); color: var(--gold-hi); font-size: 14px; }
.code-key { padding: 16px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px dashed var(--line-2); color: var(--ink); font-size: 20px; letter-spacing: 0.08em; -webkit-user-select: all; user-select: all; }
.cand:disabled { opacity: 0.5; }

@media (max-width: 359px) {
  .hero-time { font-size: 44px; } .hero-score { font-size: 62px; } .hero-center { min-width: 88px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
