@import "tailwindcss";

:root {
  --ink: #081015;
  --ink-soft: #132029;
  --paper: #f3f1eb;
  --white: #fff;
  --blue: #16b9d5;
  --blue-dark: #087ea5;
  --lime: #c9f10d;
  --amber: #ffbd55;
  --line: rgba(8, 16, 21, .16);
  --muted: #68737a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; text-rendering: optimizeLegibility; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { color: var(--blue-dark); font-style: normal; }
h1, h2, h3, strong { text-wrap: balance; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
#aktuelno, #liga, #sponzori { scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-shell, .events-shell, .hero-shell, .nav-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Compact app-style navigation */
.site-header { position: relative; z-index: 30; padding: 9px 0; overflow: hidden; background: linear-gradient(100deg,#071015,#0d1b23 68%,#081015); color: white; border-bottom: 1px solid rgba(22,185,213,.24); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(34vw,420px); height: 2px; background: linear-gradient(90deg,var(--blue),transparent); }
.nav-shell { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; width: max-content; }
.brand-mark { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(22,185,213,.34); border-radius: 15px 0 15px 0; background: radial-gradient(circle at 50% 42%,rgba(22,185,213,.2),rgba(255,255,255,.025) 67%); box-shadow: inset 0 0 18px rgba(22,185,213,.08),0 9px 22px rgba(0,0,0,.25); }
.brand-mark img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 11px rgba(0,0,0,.35)); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy small { color: #74dced; font-size: 9.5px; line-height: 1.1; font-weight: 1000; letter-spacing: .16em; }
.brand-copy strong { color: white; font-family: Arial,"Helvetica Neue",sans-serif; font-size: 21px; line-height: 1.1; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.primary-nav { display: none; grid-template-columns: repeat(3,1fr); gap: 4px; min-width: 292px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.06),0 12px 30px rgba(0,0,0,.22); }
.primary-nav a { min-width: 88px; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 0 9px; border-radius: 14px; color: rgba(255,255,255,.62); text-transform: uppercase; transition: color .18s ease,background .18s ease,transform .18s ease; }
.primary-nav a i { height: 15px; color: var(--blue); font-size: 14px; line-height: 1; font-style: normal; }
.primary-nav a strong { font-size: 10px; letter-spacing: .035em; }
.primary-nav a:hover { background: rgba(255,255,255,.1); color: white; transform: translateY(-1px); }
.primary-nav a:active, .primary-nav .nav-current { background: rgba(255,255,255,.13); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.primary-nav .nav-current i { color: var(--blue); }
.nav-actions { justify-self: end; display: flex; align-items: center; }
.join-link { min-height: 50px; display: inline-flex; align-items: center; gap: 11px; padding: 0 9px 0 16px; border: 1px solid rgba(201,241,13,.42); border-radius: 16px; background: rgba(201,241,13,.08); color: white; font-size: 9px; font-weight: 1000; letter-spacing: .055em; text-transform: uppercase; }
.join-arrow { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 11px; background: var(--lime); color: var(--ink); font-size: 14px; }

/* One clear answer to “what is happening now?” */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: white; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg,rgba(3,8,11,.94) 0%,rgba(3,8,11,.8) 36%,rgba(3,8,11,.24) 70%,rgba(3,8,11,.08)),linear-gradient(0deg,rgba(3,8,11,.8),transparent 55%); }
.hero-art { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: .96; filter: saturate(1.05) contrast(1.03); transform: scale(1.025); animation: hero-drift 14s ease-in-out infinite alternate; }
.hero-open-wordmark { position: absolute; z-index: 2; top: 50%; right: clamp(30px,6vw,100px); width: clamp(280px,31vw,480px); height: auto; transform: translateY(-50%) rotate(-4deg); filter: drop-shadow(0 16px 30px rgba(0,0,0,.45)); pointer-events: none; }
.hero-open-wordmark[hidden] { display: none; }
.hero-open::before { background: linear-gradient(90deg,rgba(3,8,11,.96) 0%,rgba(3,8,11,.83) 38%,rgba(3,8,11,.3) 74%,rgba(3,8,11,.12)),linear-gradient(0deg,rgba(3,8,11,.84),transparent 58%); }
.hero-open .hero-art { object-position: center 42%; filter: saturate(1.08) contrast(1.06); }
.hero-open .hero-event-copy h1 small { max-width: 680px; font-size: clamp(30px,4vw,52px); }
.hero-shell { position: relative; z-index: 2; min-height: 600px; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; padding-block: 48px; }
.hero-event-copy { max-width: 680px; }
.hero-event-status { width: max-content; min-height: 34px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; margin-bottom: 18px; border: 1px solid rgba(201,241,13,.4); border-radius: 999px; background: rgba(201,241,13,.09); font-size: 10px; font-weight: 900; letter-spacing: .085em; }
.hero-event-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.hero-event-copy > p { margin: 0 0 17px; color: #72dcef; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.hero-event-copy h1 { width: max-content; max-width: 100%; display: grid; margin: 0; font-weight: 1000; line-height: .9; letter-spacing: -.055em; }
.hero-event-copy h1 span { padding-top: .07em; margin-top: -.07em; font-size: clamp(92px, 10vw, 140px); }
.hero-event-copy h1 span.timing-long { font-size: clamp(72px, 8.2vw, 116px); }
.hero-event-copy h1 span.timing-xlong { font-size: clamp(58px, 6.7vw, 96px); }
.hero-event-copy h1 small { margin-top: 15px; color: var(--blue); font-size: clamp(27px, 3vw, 39px); letter-spacing: .03em; }
.hero-event-meta { display: flex; align-items: center; gap: 42px; margin: 28px 0 24px; }
.hero-event-meta span { display: grid; gap: 7px; }
.hero-event-meta span + span { padding-left: 42px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-event-meta small { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.hero-event-meta strong { font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.open-tournament-button { min-width: 220px; min-height: 56px; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 0; border-radius: 12px; padding: 0 19px; cursor: pointer; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 1000; letter-spacing: .06em; }
.open-tournament-button i { font-size: 17px; font-style: normal; }
.hero-action-row { display: flex; align-items: stretch; gap: 11px; }
.hero-prize-card { min-height: 56px; display: flex; align-items: center; gap: 15px; padding: 0 17px 0 15px; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--lime); border-radius: 12px; background: rgba(6,15,19,.78); box-shadow: inset 0 0 24px rgba(201,241,13,.035); backdrop-filter: blur(10px); }
.hero-prize-card > span { max-width: 74px; color: rgba(255,255,255,.62); font-size: 8px; line-height: 1.2; font-weight: 1000; letter-spacing: .075em; }
.hero-prize-card > strong { color: var(--lime); font-size: 25px; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.hero-prize-card > strong small { color: white; font-size: .45em; letter-spacing: .035em; }
@keyframes hero-drift { from { transform: scale(1.025); } to { transform: scale(1.07) translateX(-1%); } }

/* Odžak Open card */
.event-hub { padding: 14px 0 20px; }
.event-hub .events-shell { display: grid; gap: 10px; }
.open-event-strip { position: relative; isolation: isolate; overflow: hidden; min-height: 174px; display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 30px; padding: 24px 28px 24px 32px; border: 1px solid rgba(25,189,215,.28); background: linear-gradient(112deg,#081015,#102630 57%,#091217); color: white; box-shadow: 0 22px 58px rgba(11,17,21,.16); }
.event-strip-action { cursor: pointer; transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.event-strip-action:hover { border-color: rgba(201,241,13,.52); transform: translateY(-1px); box-shadow: 0 24px 62px rgba(11,17,21,.2); }
.event-strip-action:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.league-next-strip .open-event-wordmark-bg { right: 84px; width: 230px; opacity: .13; transform: translateY(-50%) rotate(3deg); -webkit-mask-image: none; mask-image: none; }
.league-next-strip::after { background: var(--lime); box-shadow: 0 0 28px rgba(201,241,13,.42); }
.open-event-strip::after { content: ""; position: absolute; z-index: 2; inset: 0 auto 0 0; width: 5px; background: var(--blue); box-shadow: 0 0 28px rgba(25,189,215,.68); }
.open-event-wordmark-bg { position: absolute; z-index: 0; top: 50%; right: -18px; width: min(680px,58vw); max-width: none; opacity: .25; transform: translateY(-50%) rotate(-3deg); pointer-events: none; -webkit-mask-image: linear-gradient(90deg,transparent,#000 24%,#000); mask-image: linear-gradient(90deg,transparent,#000 24%,#000); }
.open-event-strip time, .open-event-copy, .open-event-badge { position: relative; z-index: 1; }
.open-event-strip time { width: 112px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; background: var(--blue); color: var(--ink); border: 1px solid rgba(255,255,255,.42); box-shadow: 7px 7px 0 rgba(0,0,0,.2), 0 14px 26px rgba(0,0,0,.24); text-align: center; }
.open-event-strip time strong { font-size: 46px; line-height: .82; }
.open-event-strip time span { font-size: 12px; line-height: 1.12; font-weight: 1000; letter-spacing: .08em; }
.open-event-copy > span { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.open-event-copy h2 { margin: 7px 0 14px; font-size: 38px; line-height: .98; letter-spacing: -.035em; }
.open-event-facts { display: flex; align-items: center; }
.open-event-facts > span { display: grid; gap: 4px; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.17); }
.open-event-facts > span:first-child { padding-left: 0; border-left: 0; }
.open-event-facts small { color: rgba(255,255,255,.58); font-size: 8px; font-weight: 900; letter-spacing: .075em; }
.open-event-facts strong { font-size: 11px; line-height: 1; letter-spacing: .025em; }
.open-event-badge { box-sizing: border-box; min-width: 150px; height: 96px; display: grid; align-content: center; gap: 4px; padding: 10px 17px; background: var(--amber); color: var(--ink); box-shadow: 7px 7px 0 rgba(0,0,0,.2), 0 14px 26px rgba(0,0,0,.24); }
.open-event-badge small { font-size: 9px; font-weight: 1000; letter-spacing: .07em; }
.open-event-badge strong { font-size: 22px; line-height: 1; letter-spacing: -.025em; }
.previous-round-strip { min-height: 104px; display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 14px 16px; border: 1px solid rgba(8,16,21,.13); border-left: 4px solid #839099; border-radius: 0 12px 0 12px; cursor: pointer; background: linear-gradient(110deg,#e9e8e3,#f4f2ec); color: var(--ink); transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.previous-round-strip:hover { border-color: rgba(8,126,165,.34); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8,16,21,.08); }
.previous-round-strip:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.previous-round-mark { width: 66px; height: 70px; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 9px 0 9px 0; background: #1a262d; color: white; }
.previous-round-mark small { color: rgba(255,255,255,.62); font-size: 7.5px; font-weight: 1000; letter-spacing: .07em; }
.previous-round-mark strong { font-size: 27px; line-height: .9; }
.previous-round-mark i { color: var(--blue); font-size: 8.5px; font-style: normal; font-weight: 1000; letter-spacing: .08em; }
.previous-round-copy > span { color: var(--blue-dark); font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.previous-round-copy h3 { margin: 4px 0 4px; font-size: 24px; line-height: 1; letter-spacing: -.025em; }
.previous-round-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.previous-round-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; padding: 0 14px; border: 1px solid rgba(8,16,21,.16); border-radius: 11px; background: rgba(255,255,255,.58); font-size: 9px; font-weight: 1000; letter-spacing: .065em; }
.previous-round-cta i { color: var(--blue-dark); font-size: 15px; font-style: normal; }

/* League table */
.league-section { padding: 86px 0 96px; }
.section-heading { display: grid; grid-template-columns: 1fr 330px; align-items: end; gap: 70px; margin-bottom: 38px; }
.section-number { display: block; margin-bottom: 17px; color: var(--blue-dark); font-size: 10px; font-weight: 1000; letter-spacing: .11em; }
.section-heading h2 { margin: 0; font-size: clamp(52px, 6vw, 86px); line-height: .89; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.table-toolbar { min-height: 68px; display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-bottom: 0; background: white; }
.search-field { flex: 1; max-width: 430px; display: flex; align-items: center; gap: 10px; }
.search-field > span:first-child { color: var(--blue-dark); font-size: 22px; }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input:disabled { cursor: wait; opacity: .55; }
.sheet-source { appearance: none; margin-left: auto; min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: white; color: var(--muted); font-family: inherit; font-size: 9px; font-weight: 1000; letter-spacing: .075em; }
.sheet-source:hover { border-color: rgba(8,126,165,.42); color: var(--ink); }
.sheet-source i { color: var(--blue-dark); font-size: 12px; font-style: normal; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #aab1b5; }
.sync-dot.ready { background: #20b85a; box-shadow: 0 0 9px rgba(32,184,90,.45); }
.sync-dot.fallback { background: var(--amber); box-shadow: 0 0 9px rgba(255,189,85,.4); }
.league-data-status { min-height: 34px; margin: 0; padding: 8px 20px; border: 1px solid var(--line); border-block-width: 0 1px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.league-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; }
.league-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.league-table th { height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
.league-table th button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.league-table th:nth-child(n+3), .league-table td:nth-child(n+3) { text-align: center; }
.league-table td { height: 72px; padding: 0 24px; border-bottom: 1px solid rgba(11,17,21,.09); font-size: 14px; }
.league-table tbody tr:last-child td { border-bottom: 0; }
.league-table .league-message-row td { height: 150px; color: var(--muted); text-align: center; }
.league-message-row.is-loading td, .league-mobile-message.is-loading { animation: data-pulse 1.25s ease-in-out infinite alternate; }
.league-table tbody tr:hover { filter: brightness(.985); }
.league-table tbody tr.direct-final { background: linear-gradient(90deg,rgba(22,185,213,.1),rgba(22,185,213,.025) 60%,transparent); }
.league-table tbody tr.playoff-zone { background: linear-gradient(90deg,rgba(255,189,85,.1),rgba(255,189,85,.025) 60%,transparent); }
.league-table tbody tr.direct-final td:first-child { border-left: 4px solid var(--blue); }
.league-table tbody tr.playoff-zone td:first-child { border-left: 4px solid var(--amber); }
.league-table tbody tr.rank-4 td { border-bottom: 2px solid rgba(22,185,213,.55); }
.league-table tbody tr.rank-12 td { border-bottom: 2px solid rgba(255,189,85,.65); }
.league-table td:nth-child(2) strong { font-size: 15px; text-transform: uppercase; letter-spacing: .015em; }
.rank-badge { color: var(--muted); font-size: 11px; font-weight: 1000; }
.rank-1 .rank-badge { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); }
.rank-2 .rank-badge, .rank-3 .rank-badge, .rank-4 .rank-badge { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(22,185,213,.55); color: var(--blue-dark); }
.played-value { font-size: 17px; }
.points-value { color: var(--blue-dark); font-size: 23px; }
.qualification-status { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; font-weight: 1000; letter-spacing: .055em; text-transform: uppercase; }
.direct-final .qualification-status { border-color: rgba(22,185,213,.34); background: rgba(22,185,213,.1); color: #08799a; }
.playoff-zone .qualification-status { border-color: rgba(210,141,35,.32); background: rgba(255,189,85,.16); color: #8d5910; }
.mobile-standings { display: none; }
.league-mobile-message { min-height: 130px; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }

/* Sponsor arena wall */
.sponsor-section { padding: 94px 0 104px; background: radial-gradient(circle at 88% 8%,rgba(22,185,213,.13),transparent 32%),#0a141a; color: white; }
.sponsor-heading { margin-bottom: 42px; }
.sponsor-section .section-number { color: var(--lime); }
.sponsor-section .section-heading em { color: var(--blue); }
.sponsor-section .section-heading p { color: rgba(255,255,255,.52); }
.sponsor-board { position: relative; overflow: hidden; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px 0 22px 0; background: linear-gradient(145deg,#061015,#0c1b22); box-shadow: 0 32px 80px rgba(0,0,0,.32),inset 0 0 70px rgba(22,185,213,.035); }
.sponsor-board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,rgba(255,255,255,.04),transparent 22% 78%,rgba(22,185,213,.04)); }
.title-sponsor { position: relative; z-index: 1; min-height: 190px; display: grid; grid-template-columns: .95fr 1.05fr; margin-bottom: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 0 18px 0 18px; background: linear-gradient(115deg,#102832,#10181d); color: white; box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.title-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px 38px; }
.title-copy span { color: var(--lime); font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.title-copy h3 { margin: 15px 0 0; font-size: 32px; letter-spacing: -.02em; }
.title-copy p { margin: 10px 0 0; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.5; }
.title-sponsor-logo { aspect-ratio: 2.25 / 1; min-height: 0; display: grid; place-items: center; align-self: center; margin: 10px; overflow: hidden; border-radius: 12px 0 12px 0; background: #071015; }
.title-sponsor-logo img { width: 100%; height: 100%; max-height: none; padding: 0; object-fit: cover; object-position: center; opacity: 1; transform: none; }
.sponsor-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; overflow: hidden; padding: 0; border: 0; border-radius: 14px 0 14px 0; background: #000; }
.sponsor-grid article { position: relative; aspect-ratio: 1.75 / 1; min-width: 0; display: grid; place-items: center; overflow: hidden; padding: 4px; border: 0; border-radius: 0; background: #000; box-shadow: none; }
.sponsor-grid img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; opacity: 1; filter: none; mix-blend-mode: normal; transform: none; }
.sponsor-grid .sponsor-viva img { transform: none; }
.board-footer { position: relative; z-index: 1; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px; margin-top: 10px; border: 1px solid rgba(255,255,255,.12); color: white; }
.board-footer > span { color: rgba(255,255,255,.5); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.board-footer a { min-height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; background: var(--blue); color: var(--ink); font-size: 9.5px; font-weight: 1000; letter-spacing: .075em; }
.board-footer i { font-size: 13px; font-style: normal; }

/* Club CTA and footer */
.join-section { position: relative; overflow: hidden; padding: 82px 0; background: var(--blue); color: var(--ink); }
.join-target { position: absolute; width: 530px; height: 530px; right: -120px; top: -220px; border: 70px solid rgba(8,16,21,.09); border-radius: 50%; }
.join-target::before, .join-target::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: rgba(8,16,21,.09); transform: translate(-50%,-50%); }
.join-target::before { width: 100%; height: 70px; }
.join-target::after { width: 70px; height: 100%; }
.join-shell { position: relative; z-index: 2; width: min(1100px, calc(100% - 48px)); margin: auto; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.join-shell > div > span { font-size: 10px; font-weight: 1000; letter-spacing: .11em; }
.join-shell h2 { margin: 14px 0 0; font-size: clamp(46px, 5.6vw, 78px); line-height: .9; letter-spacing: -.05em; }
.join-shell h2 em { color: white; }
.join-shell > a { min-height: 56px; display: inline-flex; align-items: center; gap: 28px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 10px; font-size: 9px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
footer { padding: 42px 0 28px; background: var(--ink); color: white; }
.footer-shell, .footer-bottom { width: min(1180px, calc(100% - 48px)); margin: auto; }
.footer-shell { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 34px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; }
.footer-brand span { font-size: 11px; font-weight: 1000; letter-spacing: .08em; }
.footer-shell > div:not(.footer-brand) { display: grid; gap: 7px; }
.footer-shell > div > span { color: rgba(255,255,255,.5); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.footer-shell strong, .footer-shell a { font-size: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; padding-top: 28px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.footer-admin { border: 0; background: none; color: rgba(255,255,255,.45); font: inherit; }
.footer-admin:hover { color: var(--lime); }

/* Challonge pop-up */
.tournament-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3,8,11,.84); backdrop-filter: blur(8px); }
.tournament-modal { width: min(1180px,100%); height: calc(100dvh - 40px); max-height: 900px; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; border-radius: 15px; background: white; box-shadow: 0 34px 100px rgba(0,0,0,.48); }
.tournament-modal-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 22px; background: var(--ink); color: white; }
.tournament-modal-header span { color: var(--lime); font-size: 9px; font-weight: 1000; letter-spacing: .085em; }
.tournament-modal-header h2 { margin: 4px 0 0; font-size: 22px; }
.tournament-modal-header button { width: 46px; height: 46px; border: 0; border-radius: 13px; cursor: pointer; background: var(--lime); color: var(--ink); font-size: 28px; line-height: 1; box-shadow: 5px 5px 0 rgba(201,241,13,.14); transition: transform .18s ease,box-shadow .18s ease; }
.tournament-modal-header button:hover { transform: translateY(-1px); box-shadow: 7px 7px 0 rgba(201,241,13,.12); }
.tournament-modal-frame { overflow: auto; background: #f4f4f4; -webkit-overflow-scrolling: touch; }
.tournament-modal-frame iframe { width: 100%; min-width: 700px; height: 100%; min-height: 680px; border: 0; }
.league-sheet-frame { background: white; }
.league-sheet-frame iframe { min-width: 960px; background: white; }

@media (max-width: 920px) {
  .footer-shell { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-shell > div:last-child { display: none; }
}

@media (max-width: 760px) {
  .section-shell, .events-shell, .hero-shell { width: min(100% - 28px,1180px); }
  .nav-shell { width: min(100% - 18px,1180px); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  #aktuelno, #liga, #sponzori { scroll-margin-top: 76px; }
  .site-header { padding: 6px 0; }
  .nav-shell { min-height: 58px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 45px; height: 45px; border-radius: 12px 0 12px 0; }
  .brand-mark img { width: 39px; height: 39px; }
  .brand-copy { gap: 3px; }
  .brand-copy small { font-size: 8.5px; line-height: 1.1; letter-spacing: .11em; }
  .brand-copy strong { font-size: 18px; line-height: 1.12; }
  .primary-nav { position: fixed; z-index: 60; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); display: grid; width: min(calc(100% - 18px),430px); min-width: 0; gap: 3px; padding: 4px; border-color: rgba(255,255,255,.14); border-radius: 18px; background: rgba(6,13,17,.96); box-shadow: 0 18px 50px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.07); backdrop-filter: blur(18px); transform: translateX(-50%); }
  .primary-nav a { min-width: 0; min-height: 52px; gap: 3px; padding: 0 3px; border-radius: 14px; }
  .primary-nav a i { height: 15px; font-size: 14px; }
  .primary-nav a strong { font-size: 10.5px; letter-spacing: .02em; }
  .join-link { min-height: 42px; gap: 7px; padding: 0 6px 0 11px; border-radius: 13px; font-size: 9.5px; }
  .join-arrow { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }

  .hero::before { background: linear-gradient(90deg,rgba(3,8,11,.95),rgba(3,8,11,.76) 70%,rgba(3,8,11,.4)),linear-gradient(0deg,rgba(3,8,11,.88),transparent 52%); }
  .hero-art { object-position: 63% center; opacity: .82; }
  .hero-open-wordmark { top: 25px; right: 14px; width: clamp(145px,42vw,190px); transform: rotate(-4deg); filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); }
  .hero-shell { min-height: 480px; padding: 30px 0 32px; }
  .hero-event-copy { min-width: 0; }
  .hero-event-status { min-height: 32px; margin-bottom: 14px; padding: 0 11px; font-size: 10px; letter-spacing: .045em; }
  .hero-event-copy > p { margin-bottom: 16px; font-size: 11px; line-height: 1.35; letter-spacing: .07em; }
  .hero-event-copy h1 span { font-size: clamp(72px,22vw,90px); }
  .hero-event-copy h1 span.timing-long { font-size: clamp(58px,16.5vw,70px); }
  .hero-event-copy h1 span.timing-xlong { font-size: clamp(45px,13.5vw,58px); }
  .hero-event-copy h1 small { margin-top: 11px; font-size: 25px; }
  .hero-event-meta { gap: 20px; margin: 24px 0 20px; }
  .hero-event-meta span + span { padding-left: 20px; }
  .hero-event-meta small { font-size: 9px; }
  .hero-event-meta strong { font-size: 12px; }
  .hero-action-row { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(125px,.82fr); gap: 8px; }
  .open-tournament-button { width: 100%; min-width: 0; min-height: 54px; padding-inline: 14px; font-size: 10.5px; }
  .hero-prize-card { min-height: 54px; display: grid; align-content: center; gap: 3px; padding: 7px 10px; border-radius: 12px; }
  .hero-prize-card > span { max-width: none; font-size: 9.5px; }
  .hero-prize-card > strong { font-size: 24px; }

  .event-hub { padding: 10px 0 16px; }
  .open-event-strip { min-height: 0; grid-template-columns: 84px minmax(0,1fr); grid-template-rows: auto auto; gap: 6px 13px; padding: 12px 14px 12px 18px; }
  .open-event-wordmark-bg { right: -112px; width: 390px; opacity: .2; transform: translateY(-50%) rotate(-5deg); }
  .open-event-strip time { grid-row: 1 / span 2; width: 84px; height: auto; align-self: stretch; min-height: 118px; }
  .open-event-strip time strong { font-size: 44px; }
  .open-event-copy > span { font-size: 9.5px; }
  .open-event-copy h2 { margin: 5px 0 10px; font-size: 24px; }
  .open-event-facts { display: flex; }
  .open-event-facts > span { display: grid; gap: 0; padding: 0 8px; border-left: 1px solid rgba(255,255,255,.17); }
  .open-event-facts > span:first-child { padding-left: 0; border-left: 0; }
  .open-event-facts small { display: none; }
  .open-event-facts strong { font-size: 10.5px; white-space: nowrap; }
  .open-event-badge { grid-column: 2; justify-self: start; align-self: end; min-width: 132px; width: auto; height: auto; min-height: 50px; gap: 2px; padding: 6px 10px; box-shadow: 5px 6px 0 rgba(0,0,0,.2); }
  .open-event-badge small { font-size: 9px; line-height: normal; }
  .open-event-badge strong { font-size: 18px; }
  .previous-round-strip { min-height: 0; grid-template-columns: 62px minmax(0,1fr); grid-template-rows: auto auto; gap: 7px 12px; padding: 10px 11px; }
  .previous-round-mark { grid-row: 1 / span 2; width: 58px; height: 70px; }
  .previous-round-copy > span { font-size: 9px; }
  .previous-round-copy h3 { font-size: 20px; }
  .previous-round-copy p { font-size: 12px; line-height: 1.4; }
  .previous-round-cta { grid-column: 2; justify-self: start; min-height: 38px; padding-inline: 11px; font-size: 9.5px; }

  .league-section { padding: 66px 0 74px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 46px; line-height: .92; }
  .section-heading p { font-size: 13px; }
  .table-toolbar { flex-wrap: wrap; padding: 12px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .sheet-source { width: 100%; justify-content: center; margin-left: 0; }
  .league-table-wrap { display: none; }
  .mobile-standings { display: grid; border: 1px solid var(--line); background: white; }
  .mobile-standings-head, .mobile-player { display: grid; grid-template-columns: 40px minmax(0,1fr) 58px 58px; align-items: center; }
  .mobile-standings-head { min-height: 42px; padding: 0 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9.5px; font-weight: 1000; letter-spacing: .055em; }
  .mobile-standings-head span:first-child { grid-column: 2; }
  .mobile-standings-head span:nth-child(n+2) { text-align: center; }
  .mobile-player { min-height: 66px; padding: 8px 9px; border-bottom: 1px solid rgba(11,17,21,.09); }
  .mobile-player.direct-final { border-left: 4px solid var(--blue); background: linear-gradient(90deg,rgba(22,185,213,.09),transparent 72%); }
  .mobile-player.playoff-zone { border-left: 4px solid var(--amber); background: linear-gradient(90deg,rgba(255,189,85,.1),transparent 72%); }
  .mobile-player.rank-4 { border-bottom: 2px solid rgba(22,185,213,.55); }
  .mobile-player.rank-12 { border-bottom: 2px solid rgba(255,189,85,.65); }
  .mobile-player:last-child { border-bottom: 0; }
  .mobile-player-rank { color: var(--muted); font-size: 11px; font-weight: 1000; }
  .mobile-player.rank-1 .mobile-player-rank { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); }
  .mobile-player-name { min-width: 0; padding-right: 7px; }
  .mobile-player-name strong, .mobile-player-name small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-player-name strong { font-size: 12px; text-transform: uppercase; }
  .mobile-player-name small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 1000; letter-spacing: .04em; }
  .mobile-player.direct-final .mobile-player-name small { color: #08799a; }
  .mobile-player.playoff-zone .mobile-player-name small { color: #8d5910; }
  .mobile-player-played, .mobile-player-points { display: grid; gap: 3px; text-align: center; }
  .mobile-player-played strong { font-size: 15px; }
  .mobile-player-points strong { color: var(--blue-dark); font-size: 19px; }
  .mobile-player-played small, .mobile-player-points small { color: var(--muted); font-size: 9px; font-weight: 900; }

  .sponsor-section { padding: 68px 0 74px; }
  .sponsor-board { padding: 8px; border-radius: 15px 0 15px 0; }
  .title-sponsor { min-height: 0; grid-template-columns: 1fr; margin-bottom: 5px; }
  .title-copy { padding: 22px 20px; }
  .title-copy h3 { margin-top: 10px; font-size: 26px; }
  .title-sponsor-logo { width: calc(100% - 16px); min-height: 0; margin: 0 8px 8px; }
  .title-sponsor-logo img { max-height: none; padding: 0; transform: none; }
  .sponsor-grid { grid-template-columns: repeat(2,1fr); gap: 0; }
  .sponsor-grid article { aspect-ratio: 1.6 / 1; padding: 3px; }
  .board-footer { min-height: 74px; flex-direction: column; align-items: stretch; justify-content: center; padding: 10px; margin-top: 5px; text-align: center; }
  .board-footer a { justify-content: center; font-size: 10.5px; }

  .join-section { padding: 64px 0; }
  .join-shell { width: min(100% - 28px,1100px); display: grid; gap: 28px; }
  .join-shell h2 { font-size: 44px; }
  .join-shell > a { justify-content: space-between; }
  .footer-shell, .footer-bottom { width: min(100% - 28px,1180px); }
  .footer-shell { grid-template-columns: 1fr; gap: 24px; }
  .footer-shell > div:last-child { display: grid; }
  .footer-shell > div > span, .footer-bottom { font-size: 9.5px; }
  .footer-bottom { display: grid; gap: 12px; }

  .tournament-modal-backdrop { padding: 0; }
  .tournament-modal { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .tournament-modal-header { min-height: 70px; padding: 11px 13px; }
  .tournament-modal-header span { font-size: 10px; }
  .tournament-modal-header h2 { max-width: 270px; font-size: 19px; line-height: 1.18; }
  .tournament-modal-header button { width: 44px; height: 44px; flex: 0 0 auto; }
  .tournament-modal-frame iframe { height: 100%; min-height: 720px; }
}

@media (max-width: 360px) {
  .primary-nav a strong { font-size: 10px; }
  .mobile-standings-head, .mobile-player { grid-template-columns: 36px minmax(0,1fr) 50px 50px; }
  .open-event-strip { grid-template-columns: 78px minmax(0,1fr); gap-inline: 10px; }
  .open-event-strip time { width: 78px; }
}

@keyframes data-pulse { from { opacity: .48; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art, .league-message-row.is-loading td, .league-mobile-message.is-loading { animation: none; }
}
