:root {
  --blue: #11457E;
  --red: #D7141A;
  --white: #F7F8FB;
  --navy: #07172B;

  --bg: var(--navy);
  --text: var(--white);
  --muted: color-mix(in srgb, var(--white) 66%, var(--navy));
  --surface: color-mix(in srgb, var(--blue) 30%, var(--navy));
  --line: color-mix(in srgb, var(--white) 14%, transparent);
  --accent: #FF3B41;

  --radius: 18px;
  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 90% -10%, color-mix(in srgb, var(--blue) 70%, transparent), transparent 70%),
    radial-gradient(700px 500px at -10% 40%, color-mix(in srgb, var(--red) 18%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--navy) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 20px; border-radius: 3px; flex: none; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tabs a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--red); color: var(--white); }
@media (max-width: 480px) { .brand span { display: none; } .tabs a { padding: 7px 12px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(52px, 11vw, 132px); font-weight: 900; margin: 18px 0 22px; }
.hero h1 span { display: block; }
/* Czech flag inside the letters: white over red, blue triangle reaching halfway */
.hero h1 .czechia {
  display: inline-block;
  padding-right: .04em;
  background:
    linear-gradient(to top right, var(--blue) 50%, transparent calc(50% + 1px)) top left / 50% 50% no-repeat,
    linear-gradient(to bottom right, var(--blue) 50%, transparent calc(50% + 1px)) bottom left / 50% 50% no-repeat,
    linear-gradient(180deg, var(--white) 0 50%, var(--red) 50% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.hero p.lead strong { color: var(--text); font-weight: 600; }

/* Home hero: bigger eyebrow, centred title, full-width intro */
.hero:not(.small) .eyebrow { font-size: clamp(16px, 2vw, 22px); }
.hero:not(.small) .eyebrow::before { width: 32px; height: 3px; }
.hero-title { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.quick-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: right; }
.quick-menu a {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.quick-menu a::after { content: "→"; color: var(--accent); letter-spacing: 0; transition: transform .2s; }
.quick-menu a:hover { color: var(--text); }
.quick-menu a:hover::after { transform: translateX(3px); }
@media (max-width: 760px) {
  .hero-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .quick-menu { text-align: left; margin-bottom: 28px; }
}
.hero:not(.small) p.lead { max-width: none; }

.countdown { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.countdown div {
  min-width: 92px; padding: 14px 16px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); text-align: center;
}
.countdown strong { display: block; font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.countdown-label { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.live {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--red); font-weight: 600; margin-bottom: 36px;
}
.live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--red); color: var(--white); }
.btn.primary:hover { background: var(--accent); }
.btn.ghost { border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }

.stripe { height: 10px; display: grid; grid-template-rows: 1fr 1fr; }
.stripe::before { content: ""; background: var(--white); }
.stripe::after { content: ""; background: var(--red); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(36px, 6vw, 60px); margin: 14px 0 16px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font: 900 48px/1 var(--display); letter-spacing: -0.03em; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 15px; }
.stat:nth-child(2) strong { color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 28px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card.fire {
  background:
    radial-gradient(500px 300px at 100% 100%, color-mix(in srgb, var(--red) 45%, transparent), transparent 70%),
    var(--surface);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.member { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font: 800 22px var(--display); background: var(--blue); border: 2px solid var(--line);
}
.member.captain .avatar { background: var(--red); }
.avatar { font-size: 20px; }
.member h3 { font-size: 22px; margin-bottom: 4px; }
.member .role { color: var(--accent); font-weight: 600; font-size: 14px; }
.member p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* ---------- Schedule ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.schedule { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 980px; }
.schedule th { text-align: left; padding: 14px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.schedule td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.schedule tr:last-child td { border-bottom: 0; }
.schedule td { white-space: nowrap; }
.schedule td:nth-child(4), .schedule td:nth-child(5) { white-space: normal; }
.schedule tr.next td { background: color-mix(in srgb, var(--red) 14%, transparent); }
.next-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.red { background: #FF4D52; }
.dot.blue { background: #4C8DFF; }
.watch { color: var(--accent); font-weight: 600; text-decoration: none; }
.watch:hover { text-decoration: underline; }
.soon { color: var(--muted); font-size: 14px; }
.section-head p a { color: var(--text); }
.schedule td.empty { text-align: center; color: var(--muted); padding: 36px 20px; }

/* ---------- Follow ---------- */
.follow { text-align: center; }
.follow .section-head { margin-inline: auto; }
.follow .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 560px) {
  .hero { padding: 56px 0 56px; }
  section { padding: 64px 0; }
  .card { padding: 24px; }
  .countdown div { min-width: 0; flex: 1 1 calc(25% - 12px); padding: 12px 6px 10px; }
  .countdown strong { font-size: 30px; }
  .countdown span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .live::before { transition: none; animation: none; }
}

/* ---------- Past competitions ---------- */
.hero.small { padding: 72px 0 48px; }
.hero.small h1 { font-size: clamp(44px, 8vw, 96px); }
.past-list { display: grid; gap: 20px; }
.season {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.season figure { margin: 0; position: relative; min-height: 260px; background: color-mix(in srgb, var(--blue) 45%, var(--navy)); }
.season figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.season figure figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--navy) 75%, transparent); color: var(--muted); }
.season figure.no-photo { display: grid; place-items: center; }
.season figure.no-photo span { font: 900 clamp(64px, 10vw, 110px)/1 var(--display); letter-spacing: -0.04em; color: color-mix(in srgb, var(--white) 18%, transparent); }
.season .body { padding: 30px 32px; }
.season .year { font: 900 18px var(--display); color: var(--accent); letter-spacing: 0; }
.season h2 { font-size: clamp(28px, 4vw, 38px); margin: 6px 0 4px; }
.season .where { display: block; color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.season p { color: var(--muted); margin: 0 0 12px; }
.season ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.season ul li { margin-bottom: 4px; }
.season strong { color: var(--text); font-weight: 600; }
.season .badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--red); font-size: 13px; font-weight: 600; }
.season .badge.muted { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.season:nth-child(even) figure { order: 2; }
@media (max-width: 760px) {
  .season { grid-template-columns: 1fr; }
  .season:nth-child(even) figure { order: 0; }
  .season figure { min-height: 0; aspect-ratio: 4 / 3; }
  .season figure.no-photo { aspect-ratio: 3 / 1; }
  .season .body { padding: 24px; }
}
.note { color: var(--muted); font-size: 14px; margin-top: 28px; }
