@font-face{font-family:Inter;src:url('./assets/fonts/inter.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:'League Spartan';src:url('./assets/fonts/league-spartan.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:light;--navy:#00204f;--red:#db2028;--yellow:#fde755;--white:#fff;--ink:#102a4a;--muted:#526176;--font-display:'League Spartan',Arial,sans-serif;--font-body:Inter,Arial,sans-serif;--radius-card:16px;--radius-control:8px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--line:#dce2eb;--surface:#f2f4f8;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--surface);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:'League Spartan',Arial,sans-serif}h1{font-size:38px;line-height:1.03;letter-spacing:-1px}h2{font-size:26px;line-height:1.1}h3{font-size:22px;line-height:1.12}p{font-size:14px;line-height:1.65}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}main:focus{outline:none}[hidden]{display:none!important}.app-shell{max-width:1000px;margin:auto;min-height:100dvh}.topbar{min-height:90px;display:flex;align-items:center;justify-content:space-between;padding:16px 28px;background:var(--white);border-bottom:1px solid var(--line);padding-top:max(16px,env(safe-area-inset-top))}.brand{display:flex;align-items:center;gap:12px}.brand img{object-fit:contain}.brand strong{font-family:'League Spartan',sans-serif;font-weight:800;font-size:31px;letter-spacing:-.8px;line-height:1}.brand small{display:block;font-size:10px;font-weight:700;letter-spacing:2.4px;margin-top:3px}.app-label{font-size:10px;font-weight:700;letter-spacing:1.2px;border-left:3px solid var(--red);padding-left:10px}.connection{padding:9px 28px;font-size:11px;color:var(--muted);min-height:32px}.connection.is-offline{color:var(--navy);background:var(--yellow)}main{padding:8px 28px calc(115px + env(safe-area-inset-bottom))}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1000px);display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-top:1px solid var(--line);padding:6px 12px max(8px,env(safe-area-inset-bottom));z-index:10;box-shadow:0 -6px 30px #00204f08}.nav-item{min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:600;color:var(--muted);position:relative;border-radius:10px}.nav-item[aria-current]{color:var(--navy);background:#00204f07}.nav-item[aria-current]::before{content:'';position:absolute;top:-7px;height:3px;width:26px;border-radius:3px;background:var(--red)}.icon{display:inline-flex;width:24px;height:24px;flex-shrink:0}.icon svg{width:100%;height:100%}.eyebrow{font-size:10px;font-family:Inter,Arial,sans-serif;font-weight:700;letter-spacing:1.6px;line-height:1.4;text-transform:uppercase}.match-card{background:white;border-radius:20px;border:1px solid var(--line);padding:25px;display:flex;flex-direction:column;align-items:flex-start}.match-heading{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:28px}.match-heading .icon{color:var(--red)}.match-card h2{max-width:250px;font-size:32px}.match-card p{color:var(--muted);margin:12px 0 16px}.status-tag{display:inline-block;align-self:flex-start;color:#4c5b70;background:#edf0f5;border:1px solid #dfe5ee;border-radius:5px;padding:6px 9px;font-size:10px;font-weight:600;line-height:1.4}.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;border:0;border-radius:10px;font-weight:600;font-size:13px;background:var(--yellow);color:var(--navy)}.button-navy{background:var(--navy);color:#fff}.button-outline{border:1px solid #bdc9d9;background:transparent;color:var(--navy)}.match-card .button{width:100%;margin-top:22px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:26px 0 8px}.text-link,.text-button{font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}.text-button{background:transparent;border:0;color:var(--navy);padding:0 7px}.resource-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.resource-meta p{font-size:10px;color:var(--muted)}.news-list{display:grid;gap:12px}.news-card{display:flex;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:14px}.news-image{width:175px;min-height:145px;object-fit:cover}.card-body{padding:18px;min-width:0}.card-body .eyebrow{color:#6a5260;font-size:9px;letter-spacing:1px}.card-body h3{margin-top:8px}.card-link:hover{text-decoration:underline;text-underline-offset:3px}.excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12px;margin-top:8px}.page-heading{margin:12px 0 20px}.page-heading .eyebrow{color:var(--red);margin-bottom:12px}.page-intro{color:var(--muted);max-width:620px;margin-bottom:20px}.notice{background:#e8edf4;border-radius:12px;padding:20px;margin:12px 0;color:var(--muted)}.segmented{display:flex;gap:5px;background:#e3e8f0;padding:5px;border-radius:12px;margin-bottom:20px;max-width:420px}.segment{flex:1;background:transparent;color:var(--muted);border:0;border-radius:8px;padding:13px;font-size:13px;font-weight:600;min-height:44px}.segment[aria-pressed=true]{color:var(--navy);background:#fff;box-shadow:0 2px 6px #00204f10}.empty-state{background:#fff;border:1px solid var(--line);border-radius:18px;padding:45px 28px;margin:15px 0 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px}.empty-state>.icon{width:46px;height:46px;color:var(--navy)}.empty-state .status-tag{align-self:center}.empty-state p{max-width:420px;color:var(--muted)}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.person-card{border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.person-image{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:top}.person-caption{font-size:11px;color:var(--muted);margin-top:12px}.image-fallback{min-height:100px;background:var(--navy);color:#fff;display:grid;place-items:center;font-family:'League Spartan',sans-serif;padding:20px}.club-card{background:var(--navy);color:#fff;padding:30px;border-radius:18px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:15px}.club-card h2{white-space:pre-line;font-size:32px}.club-card p{color:#d4dfed}.club-card a{color:var(--yellow)}.info-card{padding:25px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-top:16px}.info-card p{color:var(--muted);margin-top:12px}.info-card .button{margin-top:15px}.prototype-note{font-size:11px;color:var(--muted);margin-top:25px;text-align:center}.update-notice{padding:12px 25px;background:var(--yellow);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.update-notice button{background:var(--navy);color:white;border:0;padding:12px 16px;border-radius:8px;min-height:44px}.skip-link{position:fixed;left:10px;top:-100px;z-index:100;background:var(--yellow);padding:14px}.skip-link:focus{top:10px}
@media(max-width:640px){.topbar{padding-inline:20px;min-height:82px}.brand strong{font-size:28px}.brand img{width:42px;height:42px}.app-label{font-size:8px;max-width:74px;line-height:1.7}.connection{padding-inline:20px;font-size:10px}main{padding:6px 16px calc(100px + env(safe-area-inset-bottom))}.match-card{padding:21px;border-radius:16px}.match-heading{margin-bottom:18px}.match-card h2{font-size:28px;max-width:none}.match-card p{font-size:13px;margin:10px 0 14px}.match-card .button{margin-top:18px}.news-image{width:100px;min-height:120px}.card-body{padding:14px}.card-body h3{font-size:20px}.news-card .excerpt{display:none}.team-grid{grid-template-columns:repeat(2,1fr);gap:10px}.page-heading{margin-top:14px}h1{font-size:34px}.nav-item{font-size:10px}.bottom-nav{padding-inline:6px}.section-title h2{font-size:25px}.section-title .text-link{font-size:11px}.resource-meta p{font-size:9px;max-width:230px}}
@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .15s,color .15s}.button:hover{filter:brightness(.94)}}

/* Zasady marki: pwa/DESIGN_SYSTEM.md. Sekwencja jest niezależna od API. */
html[data-launch="active"], html[data-launch="active"] body { background: #00204f; }
.app-shell { background: var(--surface); }
.launch-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  place-items: center;
  background: #00204f;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
[data-launch="active"] .launch-screen {
  display: grid;
  animation: launch-sequence .2s ease-out 2s forwards;
}
.launch-identity { width: 100%; max-width: 380px; }
.launch-crest { margin: 0 auto 30px; object-fit: contain; animation: launch-crest .4s ease-out both; }
.launch-title {
  font-family: 'League Spartan', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 13vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;
}
.launch-subtitle { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .27em; }
.launch-accent { display: block; width: 38px; height: 2px; background: #fde755; margin: 22px auto; }
.launch-tagline { font-size: 14px; color: #d9e3f2; }
.launch-red-line { position: absolute; left: 24px; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); height: 2px; background: #db2028; }
.launch-title { animation: launch-reveal .24s ease-out .4s both; }
.launch-subtitle { animation: launch-reveal .2s ease-out .6s both; }
.launch-accent { animation: launch-reveal .2s ease-out .7s both; }
.launch-tagline { animation: launch-reveal .2s ease-out .8s both; }
@keyframes launch-crest {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes launch-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* CSS kończy sekwencję także bez app.js; startup.js zapewnia dodatkowy limit awaryjny. */
@keyframes launch-sequence {
  0% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
/* Natywny ekran iOS jest niezależny. Nasz loader ma to samo minimum 2 s. */
[data-launch-mode="standalone"] .launch-identity > * { animation: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #e7ebf1;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffff80, transparent);
  animation: skeleton-sweep 1.6s ease-in-out infinite;
}
@keyframes skeleton-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.skeleton-label { width: 100px; height: 10px; margin-bottom: 14px; }
.skeleton-line { width: 100%; height: 14px; margin-top: 10px; }
.skeleton-short { width: 72%; }
.skeleton-news-image { width: 150px; min-height: 128px; flex-shrink: 0; border-radius: 0; }
.news-skeleton .card-body { flex: 1; }
.skeleton-crest { width: 64px; height: 64px; }
.skeleton-versus { width: 20px; height: 12px; }
.match-skeleton { min-height: 265px; }
.skeleton-details { gap: 15px; }
.skeleton-details .skeleton-line { margin: 0; }

/* Hierarchia: mniejszy baner, centralna karta meczu, zwarte aktualności. */

.match-card { border-top: 3px solid var(--red); padding: 22px; }
.match-heading { gap: 8px; margin-bottom: 18px; }
.match-card h2.eyebrow { font: 700 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 1.3px; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; }
.match-team { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.match-team strong { font-family: 'League Spartan', Arial, sans-serif; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.match-crest { width: 64px; height: 64px; object-fit: contain; }
.unknown-crest { display: grid; place-items: center; width: 64px; height: 64px; border: 1px dashed #b8c4d5; border-radius: 8px; font-size: 24px; color: #738299; }
.match-versus { font: 700 12px/1 Inter, Arial, sans-serif; color: #738299; text-align: center; }
.match-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); gap: 10px; }
.match-details dt { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.match-details dd { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.match-card .match-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; }
.match-card .button { margin-top: 16px; }

.section-title { margin: 18px 0 8px; }
.news-list { gap: 10px; }
.news-image { width: 150px; min-height: 128px; flex-shrink: 0; }
.news-card .card-body { padding: 15px; }
.refresh-button { margin-top: 4px; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.push-actions .button { max-width: 100%; white-space: normal; text-align: left; }
.match-versus { white-space: nowrap; color: var(--navy); font-size: 18px; }
.last-result { margin-top: 12px; border-top: 1px solid var(--line); }
.last-result .match-crest, .last-result .unknown-crest { width: 40px; height: 40px; }
.last-result .match-heading { margin-bottom: 12px; }
.standings-wrap { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.standings-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.standings-table th, .standings-table td { padding: 9px 4px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.standings-table thead { background: #e8edf4; font-size: 11px; }
.standings-table .standing-position { width: 30px; text-align: center; border-left: 3px solid transparent; }
.standings-table .standing-logo { width: 34px; text-align: center; }
.standings-table .standing-name { text-align: left; overflow-wrap: anywhere; word-break: normal; font-weight: 600; }
.standings-table .standing-number { width: 34px; text-align: center; }
.standing-points { font-weight: 800; }
.standing-crest { width: 26px; height: 26px; object-fit: contain; margin: auto; }
.standing-jedynka { background: var(--navy); color: var(--white); }
.standing-jedynka .standing-crest { background: var(--white); border-radius: 3px; padding: 1px; }
.standing-playoff .standing-position { border-left-color: #237348; }
.standing-relegation .standing-position { border-left-color: var(--red); }
.standings-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px; font-size: 11px; }
.legend-playoff, .legend-relegation { border-left: 3px solid #237348; padding-left: 6px; }
.legend-relegation { border-left-color: var(--red); }
.season-label { color: var(--muted); margin: 0 0 12px; font-size: 12px; font-weight: 600; }
.page-count { margin-top: 12px; color: var(--muted); font-size: 12px; }


@media (max-width: 640px) {
  main { padding-top: 12px; }
  
  
  
  
  
  
  .match-card { padding: 16px; }
  .match-heading { margin-bottom: 16px; }
  .match-card h2.eyebrow { font-size: 10px; letter-spacing: 1px; }
  .match-heading .status-tag { font-size: 9px; padding: 5px 7px; }
  .match-teams { gap: 8px; }
  .match-team strong { font-size: 17px; }
  .match-details { margin-top: 14px; padding-top: 12px; gap: 8px; }
  .match-details dd { font-size: 11px; }
  .match-card .match-note { margin-top: 12px; font-size: 11px; }
  .match-card .button { margin-top: 12px; }
  
  
  .section-title { margin-top: 14px; }
  .news-image, .skeleton-news-image { width: 88px; min-height: 104px; }
  .news-card .card-body { padding: 12px; }
  .news-card h3 { font-size: 19px; line-height: 1.15; margin-top: 6px; }
  .news-card .eyebrow { font-size: 9px; letter-spacing: .5px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-screen { display: none !important; }
  .launch-identity > *, .skeleton::after { animation: none; }
  .skeleton::after { display: none; }
}

/* Rezerwa obejmuje rzeczywistą wysokość paska (także przy powiększeniu tekstu). */
main { padding-bottom: calc(var(--bottom-nav-height, calc(90px + env(safe-area-inset-bottom, 0px))) + 24px); }
html { scroll-padding-bottom: calc(var(--bottom-nav-height, calc(90px + env(safe-area-inset-bottom, 0px))) + 24px); }
.bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
.nav-item { line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .fixture-card .match-team strong { font-size: clamp(15px, 4.1vw, 18px); line-height: 1.25; word-break: normal; overflow-wrap: break-word; }
  .fixture-card .match-team { gap: 8px; }
  .fixture-card .match-heading { align-items: flex-start; gap: 12px; }
  .fixture-card .match-heading .status-tag { max-width: 60%; text-align: right; }
  .fixture-card .match-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fixture-card .match-venue { grid-column: 1 / -1; }
  .fixture-card .match-details dd { font-size: 12px; line-height: 1.5; }
  .fixture-card .match-venue dd { white-space: pre-line; font-weight: 500; word-break: normal; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .standings-table { font-size: 12px; }
  .standings-table .standing-position { width: 26px; }
  .standings-table .standing-logo { width: 30px; }
  .standings-table .standing-number { width: 30px; }
}

/* Squad v10 candidate: scoped to the squad and player views. */
.roster-panel,.roster-panel *{min-width:0}
.roster-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:20px 0 12px}
.roster-controls label{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--navy)}
.roster-controls input,.roster-controls select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:10px;font:inherit;font-size:16px}
.roster-controls :is(input,select):focus-visible{outline:3px solid var(--red);outline-offset:2px}
.roster-panel .notice{margin:12px 0;overflow-wrap:anywhere}
.roster-group{margin:24px 0}.roster-group h2{margin-bottom:12px}
.roster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.roster-card{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden;color:var(--navy)}
.roster-portrait{aspect-ratio:4/5;background:#e8edf3;width:100%;overflow:hidden}
.roster-portrait img{width:100%;height:100%;object-fit:contain;object-position:center top}
.roster-photo-missing{height:100%;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;background:var(--navy);color:white}
.roster-photo-missing strong{font:700 clamp(18px,4vw,28px)/1.1 'League Spartan',sans-serif;letter-spacing:.02em}
.roster-photo-missing span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.roster-card-copy{padding:12px;flex:1;border-top:3px solid var(--red);display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}
.roster-card h3{font-size:22px;line-height:1.08}.roster-card p{font-size:12px;line-height:1.45}
.roster-number{align-self:flex-start;color:var(--navy);background:var(--yellow);font:700 22px/1 'League Spartan',sans-serif;padding:5px 7px}
.roster-open{margin-top:auto;padding-top:6px;color:var(--navy);font-size:12px;font-weight:700}
.roster-profile{display:grid;gap:20px;overflow-wrap:anywhere}.roster-profile>.button{justify-self:start}
.roster-profile-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.roster-profile-hero .roster-portrait{max-width:360px;border-radius:12px}
.roster-identity{align-self:center;display:grid;gap:12px}
.roster-profile-number{font:800 52px/1 'League Spartan',sans-serif;color:var(--navy);border-left:5px solid var(--red);padding-left:12px}
.roster-statistics{margin:0}.roster-statistics h2{margin-bottom:10px}
.roster-profile>.text-link{min-height:44px;display:flex;align-items:center;line-height:1.6}
@media(min-width:650px){.roster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.roster-profile-hero{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:32px}}
@media(max-width:360px){.roster-controls{grid-template-columns:minmax(0,1fr)}.roster-grid{gap:8px}.roster-card-copy{padding:10px}.roster-card h3{font-size:19px}.roster-card p{font-size:11px}}

/* iOS overlay status bar: reserve the inset once and mask scrolling content continuously. */
body{padding-top:env(safe-area-inset-top,0px)}
body::before{content:'';position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:var(--navy);z-index:40;pointer-events:none}
.app-shell{min-height:calc(100dvh - env(safe-area-inset-top,0px))}
.topbar{padding-top:16px}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
.skip-link:focus{top:calc(env(safe-area-inset-top,0px) + 10px)}
/* Empty live status regions must not leave a padded grey rectangle. */
.roster-panel .notice:empty{display:none}
.roster-panel{overflow-anchor:none}
.app-share-fallback{margin-top:12px}
.broadcast-panel{display:grid;gap:16px}.broadcast-player{display:grid;gap:12px}.broadcast-player iframe{width:100%;min-height:200px;aspect-ratio:16/9;border:0;border-radius:12px;background:var(--navy)}.broadcast-team{display:flex;align-items:center;gap:12px;margin-bottom:12px;overflow-wrap:anywhere}.broadcast-team img{object-fit:contain}.broadcast-panel>.button{justify-self:start}
.app-share-fallback label{display:grid;gap:8px;font-size:13px}
.app-share-fallback input{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--navy);font:inherit}
.app-share-fallback input:focus-visible{outline:3px solid var(--red);outline-offset:2px}
@media(max-width:649px){
  .roster-profile-hero{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px;align-items:start}
  .roster-profile-hero .roster-portrait{align-self:start}
  .roster-identity{gap:10px;align-self:center}
  .roster-identity h1{font-size:clamp(26px,7vw,34px);letter-spacing:-.5px;line-height:1.08}
  .roster-identity .eyebrow{letter-spacing:.06em}
  .roster-profile-number{font-size:44px}
}

/* v10.4: no route animations or artificial waiting; gestures leave vertical scrolling native. */
main{touch-action:auto}
.nav-item[aria-current]{background:var(--navy);color:var(--white);font-weight:800;border-radius:8px}
.nav-item[aria-current]::before{background:var(--yellow);width:36px;height:3px;border-radius:0;top:3px}
.nav-item:focus-visible{outline-offset:-3px}
.broadcast-access{display:inline-flex;align-items:center;min-height:44px;padding:10px 12px;background:var(--navy);color:var(--white);border-bottom:3px solid var(--red);border-radius:8px;font-size:12px;font-weight:700}
.broadcast-feature{display:grid;gap:12px;padding:20px;margin:8px 0 18px;border:1px solid var(--navy);border-top:4px solid var(--red);border-radius:16px;background:var(--navy);color:var(--white)}
.broadcast-feature h2{font-size:30px}.broadcast-feature .broadcast-status{color:var(--yellow);font-size:13px;font-weight:700}
.broadcast-feature.is-live{border-color:var(--red);border-top-width:6px}.broadcast-panel.is-live>.broadcast-status{background:var(--red);color:var(--white)}
.broadcast-feature .text-button{color:var(--white)}.broadcast-feature .broadcast-counter,.broadcast-feature .broadcast-venue{color:#dde6f3}
.broadcast-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.broadcast-team{min-width:0;margin:0;align-items:center;display:flex;gap:10px;overflow-wrap:anywhere}
.broadcast-team img{width:48px;height:48px;flex-shrink:0;object-fit:contain}.broadcast-team strong{font-family:'League Spartan',sans-serif;font-size:21px;line-height:1.15}
.broadcast-panel{gap:14px;margin-top:10px}.broadcast-panel>h1{font-size:36px}.broadcast-panel>.broadcast-status{justify-self:start;border-radius:5px;padding:7px 10px;background:#e8edf4;font-weight:700;font-size:13px}
.broadcast-date{font-weight:600}.broadcast-counter{font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}.broadcast-venue{white-space:pre-line;overflow-wrap:anywhere;color:var(--muted)}
.broadcast-player{min-width:0;background:var(--white);border-radius:12px}.broadcast-player>p{padding:16px 16px 0;color:var(--muted);font-size:13px}.broadcast-player>.button{margin:0 16px 16px}
.broadcast-player iframe{display:block;width:100%;min-height:200px;aspect-ratio:16/9;height:auto;border:0;border-radius:12px;background:var(--navy)}
.broadcast-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.broadcast-actions .button{flex:1;min-width:0}.broadcast-actions .text-button{padding:8px 4px}
.notification-settings{display:grid;gap:12px;min-width:0}.notification-settings>h2{margin:0}.notification-settings>p{margin:0;font-size:13px;line-height:1.6}.notification-settings>[role=status],.notification-settings .notification-category>[role=status]{border-left:3px solid var(--navy);padding:10px 12px;background:var(--surface);font-weight:600;color:var(--navy)}
.notification-settings .notification-category{display:grid;gap:10px;margin-top:4px;border-top:1px solid var(--line);padding-top:16px;min-width:0}.notification-settings .notification-category h3{font-size:23px}.notification-settings .notification-category>p{margin:0;font-size:13px;line-height:1.6}.notification-settings .notification-category>.button{margin-top:0;max-width:100%}
.notification-settings .push-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:0}.notification-settings .push-actions>.button{margin:0}.notification-settings .push-actions>.button:last-child{background:transparent;color:var(--navy);border:1px solid var(--line)}
.notification-settings [role=switch]{width:100%;justify-content:space-between;white-space:normal;line-height:1.4;text-align:left;border-left:4px solid var(--red)}
.notification-settings [role=switch][aria-checked=true]{border-left-color:var(--yellow)}
@media(max-width:430px){.broadcast-feature{padding:16px;gap:10px}.broadcast-team{flex-direction:column;align-items:flex-start;gap:8px}.broadcast-team strong{font-size:20px}.broadcast-actions{gap:8px}.broadcast-actions>.button{flex-basis:100%}.broadcast-access{font-size:11px;padding:8px}.notification-settings{padding:18px}.broadcast-feature h2{font-size:28px}}
.match-center{display:grid;gap:16px;min-width:0;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--white)}
.match-center>h1{font-size:clamp(28px,7vw,42px)}.match-center>h2{font-size:28px}.match-center>.text-button{justify-self:start;text-align:left}
.match-center-status{font-size:11px;font-weight:800;letter-spacing:1.2px;color:var(--navy);border-left:3px solid var(--red);padding-left:10px}
.match-center-content{display:grid;gap:14px;min-width:0}.match-center-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center}
.match-center-team{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;text-align:center}.match-center-team strong{font-family:'League Spartan',sans-serif;font-size:clamp(19px,5vw,28px);line-height:1.15;overflow-wrap:anywhere}
.match-center-team .eyebrow{font-size:9px;letter-spacing:1px;color:var(--muted)}.match-center-crest{display:grid;place-items:center;width:88px;height:88px;max-width:100%;object-fit:contain;color:var(--muted)}
.match-center-score{font-family:'League Spartan',sans-serif;font-size:clamp(28px,8vw,60px);line-height:1;color:var(--navy);font-variant-numeric:tabular-nums}
.match-center-date{text-align:center;font-weight:700}.match-center-venue{white-space:pre-line;overflow-wrap:anywhere;text-align:center;color:var(--muted)}
.match-center-countdown{padding:16px;border-radius:10px;background:var(--navy);color:var(--yellow);font-family:'League Spartan',sans-serif;font-size:clamp(20px,5vw,28px);line-height:1.3;text-align:center;font-variant-numeric:tabular-nums;min-height:70px}
.match-center-notice{font-size:13px;color:var(--muted)}.match-center-media:empty{display:none}.match-center-media .broadcast-panel{margin:0}.match-center-media .broadcast-status{background:none;padding:0}.match-center.is-live{border-top:4px solid var(--red)}.match-center.is-live>.match-center-status{color:var(--red)}
.match-center-card{gap:12px;padding:20px}.match-center-card .match-center-crest{width:64px;height:64px}.match-center-card .match-center-team strong{font-size:21px}.match-center-card .match-center-countdown{font-family:Inter,sans-serif;font-size:13px;min-height:0;padding:12px}.match-center-card>.button{width:100%}.match-center-card.is-live>.button{background:var(--red);color:var(--white)}
@media(max-width:430px){.match-center{padding:16px;gap:12px}.match-center-teams{gap:8px}.match-center-crest{width:64px;height:64px}.match-center-card .match-center-team strong{font-size:19px}.match-center-team strong{line-height:1.2}.match-center-countdown{padding:12px}.match-center-date{font-size:13px}}

/* v11 shared component scale. Keep layout-sensitive v10.5 rules and launch behaviour above.
   Overrides are grouped here rather than spread across independently versioned overlays. */
button,input,select{font:inherit}
button:disabled{cursor:not-allowed;opacity:.65}
h1,h2,h3{font-family:var(--font-display);overflow-wrap:anywhere}
h1{font-size:clamp(2rem,5vw,2.75rem);line-height:1.08;letter-spacing:-.025em}
h2{font-size:1.75rem;line-height:1.12;letter-spacing:-.015em}
h3{font-size:1.375rem;line-height:1.2}
p{font-size:.9375rem;line-height:1.6;overflow-wrap:anywhere}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.topbar{gap:12px;flex-wrap:wrap;min-height:88px;padding:16px 28px}
.brand{min-height:48px;min-width:0}.brand img{flex-shrink:0}
.brand strong{font-size:1.9375rem;letter-spacing:-.03em}.brand small{font-size:.625rem;letter-spacing:.18em;margin-top:4px}
.broadcast-access{font-size:.8125rem;line-height:1.3;justify-content:center;border-bottom:0;border-radius:var(--radius-control)}
.connection{font-size:.8125rem;line-height:1.5}
main{padding-top:24px}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;box-shadow:none}
.nav-item{font-size:.6875rem;padding:7px 2px;min-height:62px;text-align:center;border-radius:var(--radius-control)}
.nav-item:focus-visible{outline-offset:-3px}
.eyebrow{font-size:.6875rem;letter-spacing:.09em;line-height:1.5}
.page-heading{margin:0 0 24px}.page-heading .eyebrow{margin-bottom:8px}
.page-intro{max-width:640px;margin-bottom:24px}
.section-title{flex-wrap:wrap;gap:8px 16px;margin:28px 0 12px}.section-title .text-link{flex-shrink:0}
.button{gap:8px;min-height:48px;max-width:100%;border:1px solid transparent;border-radius:var(--radius-control);font-size:.875rem;font-weight:700;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}
.button-outline{border-color:#a8b5c7}
.text-link,.text-button{font-size:.8125rem;line-height:1.45;min-height:44px;overflow-wrap:anywhere}
.text-button{padding:8px 4px}
.status-tag{font-size:.6875rem;font-weight:700;line-height:1.4;border-radius:4px;padding:5px 8px;color:#43536a}
.notice{border-left:3px solid #a8b5c7;padding:16px;border-radius:var(--radius-control)}.notice:empty{display:none}
.empty-state{padding:32px 24px;border-radius:var(--radius-card);gap:16px}.empty-state>.icon{width:40px;height:40px}
.resource-meta{flex-wrap:wrap;margin-bottom:12px}.resource-meta p{font-size:.8125rem;max-width:none}
.info-card{padding:24px;border-radius:var(--radius-card);min-width:0}
.update-notice{flex-wrap:wrap;gap:12px;font-size:.875rem;line-height:1.5}

/* Start has one primary story: the match, followed by the latest result and news. */
.home-screen{display:grid;gap:20px}.home-screen>.page-heading{margin:0}.home-news .section-title{margin-top:0}
.home-result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-card);padding:20px}
.home-result h2{font-size:1.25rem;grid-column:1/-1}.home-result-teams{font-size:.8125rem;color:var(--muted)}
.home-result-score{font:800 2.25rem/1 var(--font-display);color:var(--navy);font-variant-numeric:tabular-nums;white-space:nowrap}
.home-result .text-link{grid-column:1/-1;justify-self:start}

/* Fixtures and table: a compact, consistent reading rhythm. */
.segmented{gap:4px;padding:4px;border-radius:10px;max-width:460px}
.segment{min-width:0;border-radius:6px;padding:12px 8px;font-size:.875rem;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.segment[aria-pressed=true]{color:var(--white);background:var(--navy);box-shadow:none}
.match-card{border-top:1px solid var(--line);border-radius:var(--radius-card);padding:20px;min-width:0}
.match-heading{align-items:flex-start;gap:12px;margin-bottom:16px}
.match-card h2.eyebrow{font:700 .6875rem/1.5 var(--font-body);letter-spacing:.08em;max-width:none}
.match-heading .status-tag{max-width:60%;text-align:right}
.match-team strong{font-size:1.25rem;line-height:1.2;overflow-wrap:anywhere}
.match-crest,.unknown-crest{width:56px;height:56px;flex-shrink:0}
.unknown-crest{border:0;color:var(--muted)}
.match-versus{font:800 1.5rem/1 var(--font-display);font-variant-numeric:tabular-nums}
.match-details{grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 0;padding-top:12px;gap:12px}
.match-details dt{font-size:.75rem;margin-bottom:4px}.match-details dd{font-size:.8125rem;line-height:1.5}
.match-venue{grid-column:1/-1}.match-venue dd{white-space:pre-line;font-weight:400}
.match-card .match-note{margin-top:12px;font-size:.8125rem;line-height:1.5}
.standings-table{font-size:.8125rem;line-height:1.45}.standings-table th,.standings-table td{padding:12px 4px}
.standings-table thead{font-size:.75rem}.standings-legend{padding:12px;font-size:.75rem}
.season-label,.page-count{font-size:.8125rem}.page-count{margin-top:16px}

/* Editorial cards reserve image space and provide a 44px headline hit area. */
.news-list{gap:12px}.news-card{min-width:0;border-radius:var(--radius-card)}
.news-image,.news-card>.image-fallback{width:144px;min-height:128px;flex-shrink:0;object-fit:cover;align-self:stretch}
.card-body,.news-card .card-body{padding:16px}.card-body .eyebrow,.news-card .eyebrow{font-size:.6875rem;letter-spacing:.03em;color:var(--muted)}
.card-link{display:inline-flex;align-items:center;min-height:44px}.excerpt{font-size:.8125rem}
.image-fallback{padding:12px;overflow-wrap:anywhere}

/* Squad dimensions stay reserved while photos load; filters retain the same DOM. */
.roster-controls{margin:24px 0 12px}.roster-controls label{font-size:.8125rem;gap:8px}
.roster-controls input,.roster-controls select{border-color:#a8b5c7;padding:12px;font-size:1rem}
.roster-group{margin:28px 0}.roster-group h2{margin-bottom:16px}
.roster-card{border-radius:var(--radius-card)}.roster-card-copy{padding:16px}
.roster-card h3{font-size:1.5rem;line-height:1.12}.roster-card p{font-size:.8125rem;line-height:1.45;color:var(--muted)}
.roster-number{font-size:1.5rem;padding:6px 8px}.roster-open{padding-top:8px;font-size:.75rem}
.roster-photo-missing strong{font:700 1.5rem/1.15 var(--font-display)}.roster-photo-missing span{font-size:.75rem}
.roster-profile{gap:24px}.roster-profile-hero{gap:28px}.roster-profile-hero .roster-portrait{max-width:320px;border-radius:var(--radius-card)}
.roster-profile-number{font-size:3.5rem;border-left-width:4px}.roster-statistics h2{margin-bottom:12px}

/* Club: compact identity and grouped settings, with unchanged consent controls. */
.club-card{padding:24px;border-radius:var(--radius-card);display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:8px 20px;text-align:left;margin-top:16px}
.club-card img{width:72px;height:72px;object-fit:contain;grid-row:1/4}.club-card h2{font-size:1.75rem}.club-card p{font-size:.8125rem}.club-card a{grid-column:2}
.prototype-note{font-size:.8125rem;margin-top:24px}
.notification-settings{gap:16px}.notification-settings>p,.notification-settings .notification-category>p{font-size:.8125rem}
.notification-settings>[role=status],.notification-settings .notification-category>[role=status]{padding:12px}
.notification-settings .notification-category{gap:12px;margin-top:0;padding-top:20px}.notification-settings .notification-category h3{font-size:1.5rem}
.notification-settings .push-actions{gap:12px}.notification-settings .push-actions>.button:last-child{border-color:#a8b5c7}
.notification-settings [role=switch]{line-height:1.5}
.app-share-fallback{margin-top:16px}.app-share-fallback label{font-size:.8125rem}
.app-share-fallback input{min-height:48px;padding:12px;border-color:#a8b5c7;font-size:1rem}

/* Unified match hub: navy preview, white details, one media surface. */
.match-center{gap:20px;border-radius:var(--radius-card)}
.match-center>h1{font-size:clamp(1.875rem,5vw,2.5rem)}.match-center>h2{font-size:1.75rem}
.match-center-status{font-size:.75rem;letter-spacing:.06em}
.match-center-content{gap:16px}.match-center-teams{gap:16px}
.match-center-team{gap:12px}.match-center-team strong{font-size:clamp(1.25rem,4vw,1.75rem);line-height:1.2}
.match-center-team .eyebrow{font-size:.6875rem;letter-spacing:.05em}
.match-center-crest{width:80px;height:80px}.match-center-score{font-size:clamp(2rem,7vw,3.75rem);white-space:nowrap}
.match-center-venue,.match-center-competition,.match-center-notice{font-size:.8125rem}.match-center-competition{text-align:center;color:var(--muted)}
.match-center-countdown{border-radius:var(--radius-control);font-size:clamp(1.25rem,4vw,1.75rem);min-height:0;line-height:1.4}
.match-center-notice:empty{display:none}.match-center.is-live>.match-center-status{color:#bc1720}
.match-center-card{gap:16px;padding:24px;background:var(--navy);border-color:var(--navy);color:var(--white)}
.match-center-card .match-center-status,.match-center-card.is-live>.match-center-status{color:var(--yellow);border-left-color:var(--yellow)}
.match-center-card .match-center-crest{width:64px;height:64px;color:#d4dfed}
.match-center-card .match-center-team strong{font-size:clamp(1.25rem,4vw,1.625rem)}
.match-center-card .match-center-score{color:var(--white)}.match-center-card .match-center-date{color:var(--yellow)}
.match-center-card .match-center-venue,.match-center-card .match-center-notice,.match-center-card .match-center-competition,.match-center-card .match-center-team .eyebrow{color:#d4dfed}
.match-center-card .match-center-countdown{font-family:var(--font-body);font-size:.8125rem;padding:0;color:var(--white);background:transparent}
.match-center-card>.button,.match-center-card.is-live>.button{background:var(--yellow);color:var(--navy)}.match-center-card>.text-button{color:var(--white)}
.match-center-card :focus-visible,.club-card :focus-visible{outline-color:var(--yellow)}
.broadcast-panel{gap:16px;min-width:0}.broadcast-panel>.broadcast-status{font-size:.8125rem;border-radius:4px}
.broadcast-team strong{font-size:1.375rem;line-height:1.2}.broadcast-counter{font-size:.8125rem}
.broadcast-player{gap:16px;background:var(--surface)}.broadcast-player>p{font-size:.8125rem}
.broadcast-player iframe{min-height:0}

/* Responsive rules cover narrow devices and large text without fixed viewport heights. */
@media(max-width:649px){
  .topbar{padding:14px 16px;gap:10px;min-height:78px}.brand{gap:10px}.brand strong{font-size:1.75rem}
  .broadcast-access{font-size:.75rem;padding:10px}.connection{padding-inline:16px}
  main{padding-top:20px}.bottom-nav{gap:2px}.nav-item{font-size:.6875rem}
  .page-heading{margin-bottom:20px}.section-title h2{font-size:1.625rem}.section-title .text-link{font-size:.8125rem}
  .info-card,.match-card,.match-center,.match-center-card,.club-card{padding:20px}
  .match-team strong,.fixture-card .match-team strong{font-size:1.125rem}.match-teams,.match-center-teams{gap:10px}
  .match-card h2.eyebrow,.match-heading .status-tag{font-size:.6875rem}.match-details dd,.fixture-card .match-details dd,.match-card .match-note{font-size:.8125rem}
  .match-center-crest{width:64px;height:64px}.match-center-score{font-size:2rem}
  .match-center-team strong,.match-center-card .match-center-team strong{font-size:1.25rem}
  .match-center-date{font-size:.875rem}.match-center-countdown{padding:12px}
  .news-image,.news-card>.image-fallback,.skeleton-news-image{width:96px;min-height:112px}.news-card .card-body{padding:12px}
  .news-card h3{font-size:1.25rem;margin-top:6px}.news-card .excerpt{display:none}
  .roster-card-copy{padding:12px}.roster-card h3{font-size:1.375rem}
  .roster-profile-hero{gap:16px}.roster-identity h1{font-size:clamp(1.625rem,6vw,2rem);line-height:1.12}
  .roster-profile-number{font-size:2.75rem}
  .club-card{grid-template-columns:64px minmax(0,1fr);gap:8px 16px}.club-card img{width:64px;height:64px}.club-card h2{font-size:1.625rem}
}
@media(max-width:430px){
  .match-center,.match-center-card,.info-card,.club-card,.match-card,.home-result{padding:16px}
  .match-center{gap:16px}.match-center-teams{gap:8px}.home-result{column-gap:12px}
  .notification-settings .push-actions>.button{flex:1 1 auto}
}
@media(max-width:360px){
  .topbar{padding-inline:12px}.brand strong{font-size:1.625rem}.brand img{width:38px;height:38px}
  main{padding-inline:12px}.standings-table{font-size:.8125rem}
  .roster-card-copy{padding:10px}.roster-card h3{font-size:1.25rem}.roster-card p{font-size:.8125rem}
  .news-image,.news-card>.image-fallback,.skeleton-news-image{width:80px}.news-card .card-body{padding:10px}
  .match-center-crest,.match-center-card .match-center-crest{width:56px;height:56px}
}

/* Restore the normal canvas after the initial inline launch background. */
body{background:var(--surface)}

/* Naklejki | isolated layout, no extra motion over the original animations. */
.sticker-entry{display:flex;flex-direction:column;gap:6px;padding:16px 20px;border-left:4px solid var(--red);background:var(--white);border-radius:8px;min-height:64px}
.sticker-entry strong{font:700 1.4rem/1.2 var(--font-display)}.sticker-entry span{font-size:.875rem;color:var(--muted)}
.stickers-panel{display:grid;gap:16px;min-width:0}.stickers-panel>.text-button{justify-self:start}.stickers-panel .notice:empty{display:none}
.stickers-disclosure{font-size:.8125rem;color:var(--muted)}.giphy-credit{display:inline-flex;align-items:center;justify-self:start;min-height:44px;background:white;padding:6px 8px;border-radius:4px;max-width:100%}
.giphy-credit img{width:200px;height:auto;max-width:100%;object-fit:contain}
.stickers-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.stickers-controls .button{flex:1 1 140px}
.stickers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.sticker-tile{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:10px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--navy);text-align:left;gap:8px}
.sticker-tile>span{font-size:.8125rem;line-height:1.4;overflow-wrap:anywhere}
.sticker-image{width:100%;aspect-ratio:1;display:grid;place-items:center;min-width:0;overflow:hidden;background:#e8edf4;border-radius:8px}
.sticker-image img{width:100%;height:100%;object-fit:contain}.sticker-image>span{padding:12px;font-size:.8125rem}
.sticker-preview{display:grid;gap:14px;border:2px solid var(--navy);padding:16px;border-radius:16px;background:white;scroll-margin-top:calc(env(safe-area-inset-top,0px) + 12px)}
.sticker-preview>.sticker-image{max-width:480px;max-height:55dvh;justify-self:center}.sticker-preview>.text-button{justify-self:start}
.stickers-panel>input{width:100%;min-width:0;padding:12px;font-size:1rem;border:1px solid var(--line);border-radius:8px}
.stickers-panel .info-card{margin:0}.stickers-panel .info-card>.text-link{display:flex;margin-top:12px}
@media(min-width:650px){.stickers-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:360px){.stickers-grid{gap:8px}.sticker-tile{padding:8px}.sticker-preview{padding:12px}}
