/*
 * Stovky × Polárka eCup: public site styles.
 * Built from docs/design-brief.md §1 (tokens) and the prototype markup. One breakpoint: 640px
 * (the prototype's container query; cqw → vw).
 */

/* ---------- Font (self-hosted Montserrat, variable 400–900, SIL Open Font License 1.1) ---------- */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-ext-YvxiiXN.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-VBwFsq9.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Theme tokens (§1.2) ---------- */
.theme-fifa {
    --hi: #29b2ec;
    --on: #031c45;
    --bg: #061430;
    --dark: #030c1f;
    --mu: #a3b6cf;
    --ink: #ffffff;
    --ac: #035990;
    --red: #bb261a;
    --surf: #0d2148;
    --soft: rgba(255, 255, 255, .08);
    --band-bg: linear-gradient(100deg, #031c45 0%, #035990 55%, #0099d5 100%);
    --band-title: #6fd0ff;
}
.theme-nhl {
    --hi: #ef5245;
    --on: #111111;
    --bg: #0e0e0e;
    --dark: #000000;
    --mu: #b3b3b3;
    --ink: #ffffff;
    --ac: #bb261a;
    --red: #bb261a;
    --surf: #1b1b1b;
    --soft: rgba(255, 255, 255, .08);
    --band-bg: linear-gradient(100deg, #0d0d0d 0%, #3a0b07 45%, #bb261a 100%);
    --band-title: #ffd2cc;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    color: var(--ink);
    background: var(--bg);
    transition: color .4s, background-color .4s;
}
.page { overflow-x: clip; min-height: 100vh; }
a { color: inherit; }
a:hover { color: var(--hi); }
img { max-width: none; }
abbr[title] { text-decoration: none; }
turbo-frame { display: block; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.hi { color: var(--hi); }
.nowrap { white-space: nowrap; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 100;
    padding: 12px 18px; border-radius: 4px;
    background: var(--hi); color: var(--on);
    font-weight: 800; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: var(--on); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.container-inner { max-width: 1200px; margin: 0 auto; }
.label { margin-bottom: 14px; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.label--tight { margin-bottom: 6px; }

/* ---------- Shared components ---------- */
.wordmark { color: inherit; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .04em; }
.wordmark--sub { font-weight: 800; font-size: 19px; letter-spacing: 0; }

.nav { display: flex; flex-wrap: wrap; gap: 32px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav a.hi:hover { color: var(--hi); }

.cta {
    display: inline-flex; align-items: center; gap: 12px;
    border-radius: 4px; background: var(--hi); color: var(--on);
    text-decoration: none; font-weight: 800; letter-spacing: .04em;
    border: 0; cursor: pointer; font-family: inherit;
}
.cta:hover { color: var(--on); filter: brightness(1.08); }
.cta--lg { min-height: 56px; padding: 0 40px; font-size: 16px; }
.cta--sm { gap: 10px; margin-top: 20px; min-height: 44px; padding: 0 22px; font-size: 14px; }

.icon { flex-shrink: 0; }

/* Team logo / shield badge (§1.9) */
.team-logo { object-fit: contain; flex-shrink: 0; }
.team-logo--lg { width: 44px; height: 44px; }
.team-logo--fx { width: 52px; height: 52px; }
.team-logo--md { width: 26px; height: 26px; }
.team-logo--sm { width: 24px; height: 24px; }
.badge {
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
    font-weight: 800;
    background: linear-gradient(var(--badge-bg) 82%, var(--badge-ac) 82%);
    color: var(--badge-fg);
    clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}
.badge--lg { width: 40px; height: 46px; padding-bottom: 6px; font-size: 11px; letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.badge--mini { width: 22px; height: 26px; padding-bottom: 4px; font-size: 7px; }
.empty-dot { display: inline-block; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px dashed currentColor; box-sizing: border-box; opacity: .5; }

/* FIFA / NHL toggle */
.game-toggle { display: flex; }
.game-toggle__item { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.game-toggle--pill { gap: 8px; }
.game-toggle--pill .game-toggle__item,
.toggle__btn,
.group-tabs__item {
    min-height: 44px; border: 0; border-radius: 4px; cursor: pointer;
    font: 800 16px Montserrat, sans-serif;
    background: rgba(255, 255, 255, .08); color: #ffffff;
}
.game-toggle--pill .game-toggle__item { padding: 0 22px; }
.game-toggle--pill .game-toggle__item:hover,
.toggle__btn:hover,
.group-tabs__item:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }
.game-toggle--pill .game-toggle__item[aria-current],
.toggle__btn[aria-pressed="true"],
.group-tabs__item[aria-current] { background: var(--hi); color: var(--on); }
.game-toggle--band { gap: 24px; margin-bottom: 18px; }
.game-toggle--band .game-toggle__item {
    min-height: 44px; padding: 0 12px; box-sizing: border-box;
    font: 800 15px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase;
    color: #ffffff; opacity: .6; border-bottom: 3px solid transparent;
}
.game-toggle--band .game-toggle__item:hover { color: #ffffff; opacity: 1; }
.game-toggle--band .game-toggle__item[aria-current] { opacity: 1; border-bottom-color: #ffffff; }

/* ---------- Landing: hero (#top, §1.10) ---------- */
.hero { position: relative; background: var(--dark); color: #ffffff; min-height: 760px; overflow: hidden; }
.hero__panel { position: absolute; inset: 0; }
.hero__panel--blue { background: linear-gradient(115deg, #031c45 0%, #035990 45%, #0099d5 100%); clip-path: polygon(0 34%, 22% 44%, 52% 52%, 52% 100%, 0 92%); }
.hero__panel--red { background: linear-gradient(245deg, #e0473a 0%, #bb261a 45%, #1a1a1a 100%); clip-path: polygon(48% 52%, 70% 40%, 100% 28%, 100% 84%, 82% 88%, 48% 100%); }
.hero__ecup {
    position: absolute; left: 0; right: 0; top: 150px; z-index: 1;
    text-align: center; font-weight: 900; font-size: clamp(90px, 15vw, 230px); line-height: 1; letter-spacing: -0.04em; color: #ffffff;
}
.hero__photo { position: absolute; inset: 0; z-index: 1; }
.hero__photo img { position: absolute; transform: translateX(-50%); width: auto; }
.hero__photo--blue { clip-path: polygon(0 0, 52% 0, 52% 100%, 0 92%); }
.hero__photo--blue img { left: 27%; bottom: 0; height: min(470px, 58vw); }
.hero__photo--red { clip-path: polygon(48% 0, 100% 0, 100% 84%, 82% 88%, 48% 100%); }
.hero__photo--red img { left: 74%; bottom: 7%; height: min(430px, 54vw); }
.hero__mountain {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 90px; background: var(--bg);
    clip-path: polygon(0 100%, 0 60%, 50% 25%, 60% 70%, 85% 10%, 100% 45%, 100% 100%);
}
.hero__circle {
    position: absolute; z-index: 3; width: 140px; height: 140px; border-radius: 50%; background: #0c1420;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none;
    transition: transform .25s;
}
.hero__circle:hover { transform: scale(1.08); }
.hero__circle--fifa { left: clamp(16px, 14vw, 240px); top: 470px; }
.hero__circle--nhl { right: clamp(16px, 14vw, 240px); top: 400px; }
.hero__circle-title { font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.hero__circle-sub { margin-top: 6px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hi); }
.hero__circle--nhl .hero__circle-sub { color: #ff8a7d; }

/* Header inside the hero (§2.1) */
.site-header { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; padding: 22px clamp(20px, 4vw, 40px) 0; }
.site-header__bar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
    padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.nav__admin { display: inline-flex; align-items: center; opacity: .75; }
.hamburger {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #ffffff; cursor: pointer;
}
.hamburger__close { display: none; }
.hamburger[aria-expanded="true"] .hamburger__open { display: none; }
.hamburger[aria-expanded="true"] .hamburger__close { display: block; }
.mnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    flex-direction: column; padding: 4px clamp(20px, 4vw, 40px) 22px;
    background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.mnav__item {
    padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.mnav__item--icon { display: flex; align-items: center; gap: 10px; }
.mnav__cta {
    display: flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 46px; border-radius: 4px;
    background: var(--hi); color: var(--on); text-decoration: none; font-weight: 800; font-size: 15px;
}
.mnav__cta:hover { color: var(--on); }

/* ---------- Landing: sections ---------- */
.section__title { margin: 0 0 12px; font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.01em; }
.section__lead { margin: 0 0 56px; font-size: 16px; color: var(--mu); }
.lead-link { color: var(--hi); font-weight: 700; }

/* Jak se zapojit (#hry) */
.section--how { padding-top: 90px; padding-bottom: 90px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; text-align: left; }
.step { position: relative; border: 2px dotted var(--hi); padding: 32px 28px 36px; min-height: 220px; overflow: hidden; }
.step__wm { position: absolute; right: -6px; bottom: -34px; font-weight: 900; font-size: 150px; line-height: 1; letter-spacing: -0.06em; color: rgba(255, 255, 255, .07); }
.step__n { position: relative; font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--hi); }
.step__title { position: relative; margin: 20px 0 10px; font-weight: 800; font-size: 22px; }
.step__text { position: relative; margin: 0; font-size: 15px; line-height: 1.6; color: var(--mu); }
.section--how__cta { margin-top: 56px; }

/* Clubs band (#kluby) */
.clubs { position: relative; margin-top: 40px; }
.clubs__label { padding-bottom: 24px; font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.band {
    position: relative; background: var(--band-bg); color: #ffffff; overflow: hidden;
    clip-path: polygon(0 12%, 9% 22%, 27% 0, 100% 3%, 100% 88%, 62% 92%, 0 100%);
    padding: 110px 0 120px;
}
.band__wm {
    position: absolute; left: 28%; top: 120px; white-space: nowrap;
    font-weight: 900; font-size: clamp(70px, 9vw, 130px); line-height: 1; letter-spacing: -0.03em; color: rgba(255, 255, 255, .08);
}
.band__inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.band__main { flex: 1 1 420px; }
.band__title { margin: 0; font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.01em; color: var(--band-title); }
.band__sub { margin: 12px 0 0; font-weight: 700; font-size: 20px; color: rgba(255, 255, 255, .85); }
.band__featured { display: flex; flex-wrap: wrap; gap: 24px; margin: 32px 0 34px !important; }
.band__featured li { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
.band__link {
    display: inline-flex; justify-content: space-between; align-items: center; width: 290px; max-width: 100%;
    padding-bottom: 8px; border-bottom: 2px solid var(--hi); text-decoration: none;
    font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.band__photo {
    flex: 1 1 320px; min-height: 360px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); border-radius: 50% 50% 0 0;
}
.band__photo span { font-size: 13px; line-height: 1.6; color: #e6eef6; padding: 24px; }

/* Team list (#seznam) */
.team-list { padding-top: 60px; padding-bottom: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 8px 0 40px !important; font-size: 13px; color: var(--mu); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend__dot { width: 10px; height: 10px; border-radius: 50%; background: #ffffff; }
.legend__dot--taken { opacity: .2; }
.legend__reserved { color: #f5b942; }
.team-list__heading { margin: 0 0 18px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); white-space: pre; }
.team-list__sections--fifa .team-list__section { margin-bottom: 40px; }
.team-list__sections--fifa .team-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 24px; }
.team-list__sections--nhl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.team-list__sections--nhl .team-list__grid { display: flex; flex-direction: column; gap: 14px; }
.team-item { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.team-item__main { display: inline-flex; align-items: center; gap: 12px; }
.team-item--reserved .team-item__main,
.team-item--paid .team-item__main { opacity: .2; }
.team-item__reserved {
    display: inline-flex; align-items: center; gap: 5px; margin-left: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f5b942;
}
.team-list__note { margin: 0; font-size: 13px; color: var(--mu); }

/* Group tables (#skupiny, §2.5) */
.section--groups { padding-top: 90px; padding-bottom: 40px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px 72px; }
.groups__item { min-width: 0; }
.groups__name { margin: 0 0 12px; font-weight: 600; font-size: 28px; letter-spacing: -0.01em; color: var(--hi); }
.table-scroll { overflow-x: auto; }
.group-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.group-table thead th { padding: 0 6px 10px; font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--mu); text-align: center; }
.group-table thead th.group-table__player { text-align: left; }
.group-table tbody th,
.group-table td { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.group-table tbody th { font-weight: 400; text-align: left; }
.group-table tbody tr { color: #ffffff; }
.group-table tbody tr.is-empty { color: var(--mu); }
.group-table__who { display: inline-flex; align-items: center; gap: 10px; }
.group-table__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.group-table__club { font-size: 12px; color: var(--mu); }
.group-table__points { font-weight: 700; }
.group-table--detail { font-size: 16px; }
.group-table--detail thead th { padding: 0 8px 12px; font-weight: 600; }
.group-table--detail tbody th,
.group-table--detail td { padding: 14px 8px; }
.group-table--detail .group-table__who { gap: 12px; }
.group-table--detail .empty-dot { width: 26px; height: 26px; }
.group-table__rank { width: 16px; flex-shrink: 0; font-weight: 700; font-size: 13px; color: var(--mu); }

/* Bracket (#pavouk, §2.6) */
.section--bracket { padding-top: 90px; padding-bottom: 20px; }
.bracket-head { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-bottom: 48px; }
.section__lead--bracket { margin: 0; line-height: 1.6; max-width: 620px; }
.section--bracket[data-active="main"] [data-for="losers"],
.section--bracket[data-active="losers"] [data-for="main"],
.section--bracket[data-active="main"] .bk[data-bracket-type="losers"],
.section--bracket[data-active="losers"] .bk[data-bracket-type="main"] { display: none; }
.toggle { display: flex; gap: 8px; }
.toggle__btn { padding: 0 18px; font-size: 14px; }
.bnav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.bnav__btn {
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: #ffffff;
    font: 800 18px Montserrat, sans-serif; cursor: pointer;
}
.bnav__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.bnav__center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bnav__name { font-weight: 800; font-size: 16px; }
.bnav__dots { display: flex; gap: 6px; }
.bnav__dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); transition: width .3s; }
.section--bracket[data-round="0"] .bnav__dot:nth-child(1),
.section--bracket[data-round="1"] .bnav__dot:nth-child(2),
.section--bracket[data-round="2"] .bnav__dot:nth-child(3) { width: 22px; background: var(--hi); }
.bwrap { overflow-x: auto; padding-bottom: 8px; }
.bk { display: flex; gap: 56px; min-width: 900px; min-height: 520px; }
.bk__col { flex: 1 1 0; min-width: 210px; display: flex; flex-direction: column; }
.bk__label { margin: 0 0 18px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.bk__pairs { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.bk__pair { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 20px; }
.bk__cn { position: absolute; right: -28px; top: 25%; bottom: 25%; width: 20px; border: 1px solid rgba(255, 255, 255, .3); border-left: 0; }
.bk__finals { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.bk__final-label { margin: 0 0 4px; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi); }
.bk__final-label--losers { color: #ffffff; }
.bk__final-label--third { color: var(--mu); }
.match { padding: 4px 0; }
.match__line { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.match__line:first-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.match__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .45); box-sizing: border-box; flex-shrink: 0; }
.match__name { flex: 1; white-space: nowrap; }
.match__score { color: var(--mu); font-weight: 700; white-space: nowrap; }

/* Programme (#program, §2.7) */
.section--program { padding: 90px 0 60px; }
.section__lead--program { margin-bottom: 64px; line-height: 1.6; }
.timeline-scroll { overflow-x: auto; }
.timeline-scroll:focus-visible { outline-offset: -2px; }
.timeline { position: relative; min-width: 1000px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: rgba(255, 255, 255, .85); }
.timeline__list[role="list"] {
    position: relative; margin: 0 auto; max-width: 1200px; padding: 0 clamp(20px, 4vw, 40px);
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.timeline__item { display: flex; flex-direction: column; align-items: flex-start; padding-right: 16px; }
.timeline__marker { height: 40px; width: 40px; display: flex; align-items: center; justify-content: center; margin-left: -16px; }
.timeline__dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: #ffffff; }
.timeline__ring {
    width: 38px; height: 38px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid #ffffff; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
.timeline__ring::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; }
.timeline__time { margin-top: 18px; font-weight: 700; font-size: 14px; letter-spacing: .02em; color: var(--hi); }
.timeline__title { margin-top: 6px; font-weight: 400; font-size: 16px; }
.timeline__note { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--mu); }

/* Registration (#prihlaska, §2.8) */
.section--registration { padding-top: 90px; padding-bottom: 100px; }
.reg-form { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 24px; }
.lb { display: flex; flex-direction: column; gap: 8px; font: 700 12px Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.lb--full { grid-column: 1 / -1; }
.lb[hidden] { display: none; }
.fi {
    width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 4px;
    background: var(--soft); color: var(--ink); font: 500 15px Montserrat, sans-serif; letter-spacing: 0; text-transform: none;
}
.fi::placeholder { color: rgba(255, 255, 255, .45); }
.fi option { color: #111111; background: #ffffff; }
.fi:focus { outline: none; }
.fi:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
select.fi { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select { position: relative; display: block; }
.select__icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.reg-form__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.check { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--hi); }
.download-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    color: var(--hi); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 4px;
}
.reg-form__privacy { margin: -10px 0 0; font-size: 13px; color: var(--mu); }
.reg-form__privacy a { color: var(--mu); text-underline-offset: 3px; }
.reg-form__privacy a:hover { color: var(--hi); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error {
    margin: 0; padding: 14px 16px; border-left: 3px solid #f5b942; background: rgba(245, 185, 66, .1);
    font-size: 15px; font-weight: 600; color: #ffd98a;
}
.form-error[hidden] { display: none; }
.submit {
    grid-column: 1 / -1; justify-self: start; min-height: 50px; padding: 0 40px; border: 0; cursor: pointer;
    background: var(--ac); color: #ffffff; font: 800 16px Montserrat, sans-serif; letter-spacing: .06em;
    transition: background-color .4s, filter .2s;
}
.submit:hover { filter: brightness(1.12); }
.submit:disabled { cursor: not-allowed; opacity: .45; filter: none; }
.form-success {
    margin: 0 0 32px; padding: 24px 26px; border-left: 4px solid #3ecf7a; background: rgba(62, 207, 122, .1);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.form-success__title,
.form-closed__title { margin-bottom: 6px; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.form-success__text { font-size: 15px; line-height: 1.6; color: var(--ink); }
.btn-ghost {
    min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255, 255, 255, .1); color: #ffffff; font: 700 14px Montserrat, sans-serif;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.form-closed { padding: 24px 26px; border-left: 4px solid var(--hi); background: rgba(255, 255, 255, .05); }
.form-closed__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mu); }
.form-full { border-left-color: #f5b942; }
.form-full[hidden] { display: none; }

/* Partners (#partneri, §2.9) */
.partners { background: var(--dark); padding: 72px clamp(20px, 4vw, 40px) 40px; }
.partners__title { margin: 0 0 40px; font-weight: 800; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.01em; color: #ffffff; }
.partners__top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; margin-bottom: 40px; }
.partners__title-partner { flex: 0 1 280px; }
.partners__title-link {
    min-height: 96px; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: #ffffff; text-decoration: none;
    font-weight: 700; font-size: 15px;
}
.partners__title-link img { max-width: 240px; max-height: 72px; object-fit: contain; object-position: left center; }
.partners__organisers { flex: 1 1 520px; }
.partners__org-names { display: flex; flex-wrap: wrap; gap: 32px; font-weight: 800; font-size: 20px; color: #ffffff; }
.partners__list { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 12px !important; }
.partners__list li { flex: 0 1 180px; }
.partners__item {
    min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px;
    color: #ffffff; text-decoration: none; font-weight: 600; font-size: 13px;
}
.partners__item span { color: var(--mu); }
.partners__item:hover span { color: var(--hi); }
.partners__item img { max-width: 170px; max-height: 56px; object-fit: contain; object-position: left center; }
.partners__placeholders { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.partners__placeholder {
    flex: 1 1 160px; min-height: 72px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: var(--mu); opacity: .8;
}
.partners__placeholder--title { min-height: 96px; justify-content: flex-start; font-size: 15px; opacity: 1; }

/* Footer (§2.10) */
.site-footer { background: var(--dark); color: #b9c4d3; padding: 10px clamp(20px, 4vw, 40px) 36px; }
.site-footer__nav { padding: 18px 0 22px; border-bottom: 1px dashed rgba(255, 255, 255, .18); color: #ffffff; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px;
    font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.site-footer__org { color: #ffffff; font-weight: 600; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Subpages (rules, prizes, group, privacy, consent) ---------- */
.sub-header { background: var(--dark); padding: 22px clamp(20px, 4vw, 40px); }
.sub-header__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.sub-header__back {
    color: #ffffff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.sub-header__back:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }
.subpage { max-width: 1200px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 40px) 100px; color: #ffffff; }
.subpage__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; }
.subpage__title { margin: 0; font-weight: 900; font-size: clamp(56px, 8vw, 112px); line-height: .9; letter-spacing: -0.04em; }
.subpage__subtitle { margin: 14px 0 0; font-weight: 600; font-size: 18px; color: var(--hi); }
.subpage__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.group-tabs { display: flex; gap: 8px; }
.group-tabs__item { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; padding: 0 14px; box-sizing: border-box; text-decoration: none; }
.subpage__h2 { margin: 0 0 20px; font-weight: 800; font-size: 26px; }
.subpage__h2--schedule { margin: 72px 0 8px; }
.subpage__note { margin: 16px 0 0; font-size: 14px; color: var(--mu); }
.subpage__note--schedule { margin: 0 0 28px; }

/* Group schedule */
.rounds { display: flex; flex-direction: column; }
.round { padding: 22px 0 10px; }
.round__name { margin: 0 0 8px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.mg {
    display: grid; grid-template-columns: 80px minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.mg__no { font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--mu); white-space: nowrap; }
.mg__home { text-align: right; font-size: 16px; }
.mg__score { text-align: center; font-weight: 800; font-size: 18px; color: #ffffff; white-space: nowrap; }
.mg__score--empty { color: var(--mu); }
.mg__away { font-size: 16px; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px 64px; }
.rule { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.rule__n { font-weight: 800; font-size: 14px; color: var(--hi); }
.rule__title { margin: 0 0 8px; font-weight: 800; font-size: 19px; }
.rule__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--mu); }
.cta--after-rules { margin-top: 72px; }

/* Prizes */
.prizes-page .subpage__head { margin-bottom: 72px; }
.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px 56px; }
.prize__big { font-weight: 900; font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -0.05em; color: #ffffff; }
.prize__big--hi { color: var(--hi); }
.prize__big--vs { color: #ef5245; }
.prize__label { margin: 18px 0 0; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mu); }
.prize__text { margin: 8px 0 0; font-size: 17px; line-height: 1.5; }
.cta--after-prizes { margin-top: 80px; }

/* Privacy (long text) */
.prose { max-width: 760px; font-size: 16px; line-height: 1.65; color: var(--mu); }
.prose h2 { margin: 44px 0 12px; font-weight: 800; font-size: 22px; line-height: 1.3; color: #ffffff; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #ffffff; font-weight: 700; }
.prose a { color: var(--hi); font-weight: 600; text-underline-offset: 3px; }
.privacy-page .subpage__title,
.consent-page .subpage__title { font-size: clamp(40px, 6vw, 80px); }

/* Parental consent: printable sheet */
.consent-actions { margin: -24px 0 40px; }
.consent-sheet {
    max-width: 800px; box-sizing: border-box; padding: 48px 56px; background: #ffffff; color: #111111;
    font-size: 14px; line-height: 1.55;
}
.consent-sheet h2.consent-sheet__title { margin: 0 0 8px; font-weight: 800; font-size: 22px; line-height: 1.3; }
.consent-sheet__meta { margin: 0 0 24px; color: #444444; }
.consent-sheet h3 { margin: 28px 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.consent-sheet ul { margin: 0; padding-left: 20px; }
.consent-sheet li { margin-bottom: 4px; }
.consent-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; margin: 0; }
.consent-fields div { display: flex; align-items: flex-end; gap: 10px; min-height: 40px; }
.consent-fields dt { flex-shrink: 0; font-weight: 600; }
.consent-fields dd { flex: 1; margin: 0; min-height: 22px; border-bottom: 1px solid #111111; }
.consent-fields dd.consent-fields__choice { display: flex; gap: 24px; border-bottom: 0; }
.consent-fields--sign { margin-top: 36px; }
.consent-fields__wide { grid-column: 1 / -1; }
.consent-fields__wide dd { min-height: 48px; }

/* ---------- Mobile (≤640px, the prototype's container query) ---------- */
@media (max-width: 640px) {
    .site-header .nav { display: none; }
    .hamburger { display: inline-flex; }
    .mnav:not([hidden]) { display: flex; }

    .hero { min-height: 1180px; }
    .hero__ecup { top: 110px; }
    .hero__panel--blue,
    .hero__photo--blue { clip-path: polygon(0 24%, 100% 19%, 100% 57%, 0 62%); }
    .hero__panel--red,
    .hero__photo--red { clip-path: polygon(0 62%, 100% 57%, 100% 95%, 0 100%); }
    .hero__photo--blue img { left: 64%; bottom: 38.5%; height: 400px; }
    .hero__photo--red img { left: 36%; bottom: 4%; height: 400px; }
    .hero__circle { width: 110px; height: 110px; }
    .hero__circle-title { font-size: 20px; }
    .hero__circle--fifa { left: 20px; top: 360px; }
    .hero__circle--nhl { right: 20px; top: 800px; }

    .band { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); padding: 70px 0 80px; }
    .band__wm { display: none; }

    .bnav { display: flex; }
    .bwrap { overflow: hidden; touch-action: pan-y; }
    .bk { min-width: 0; min-height: 0; gap: 0; transform: translateX(calc(var(--ri) * -100%)); transition: transform .35s ease; }
    .bk__col { flex: 0 0 100%; min-width: 0; box-sizing: border-box; }
    .bk__cn, .bk__label { display: none; }

    .group-table--landing { font-size: 13px; }
    .group-table--landing tbody th,
    .group-table--landing td { padding: 8px 3px; }
    .group-table--landing thead th { font-size: 10px; padding: 0 3px 8px; }
    .group-table--landing .team-logo,
    .group-table--landing .badge,
    .group-table--landing .empty-dot { width: 20px; height: 20px; }
    .group-table--landing .group-table__club { font-size: 11px; }

    .group-table--detail { font-size: 13px; }
    .group-table--detail tbody th,
    .group-table--detail td { padding: 10px 4px; }
    .group-table--detail thead th { padding: 0 4px 10px; }
    .mg { grid-template-columns: 58px minmax(0, 1fr) 38px minmax(0, 1fr); gap: 8px; }
    .mg > span { font-size: 13px; }
    .mg > .mg__no { font-size: 11px; }

    .wordmark--sub { display: none; }
    .subpage__controls { align-items: flex-start; }
    .consent-sheet { padding: 28px 22px; }
    .consent-fields { grid-template-columns: 1fr; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
    .hero__circle:hover { transform: none; }
}

@media print {
    @page { margin: 14mm; }
    body { background: #ffffff !important; color: #000000; transition: none; }
    .skip-link, .sub-header, .subpage__head, .no-print { display: none !important; }
    .subpage { padding: 0; max-width: none; }
    .consent-sheet { max-width: none; padding: 0; }
}
