/* CapriSun CUP — v2: airy, floating, gradient sky */

@font-face {
  font-family: "HubbyBunny";
  src: url("../fonts/HubbyBunny.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* Brand palette — v2 */
  --orange:        #FF6A1A;
  /* Fixed accent for anything sitting on a dark/navy field. Never overwritten
     by the accent tweak, so it can't collapse into --navy. */
  --accent-on-dark: #FF6A1A;
  /* Orange fill that carries WHITE text (chips, badges, buttons). The bright
     brand orange only reaches 2.9:1 with white, so fills use this step. */
  --accent-fill:    #B23F04;
  /* Darkened cyan for text/fills that sit on white — --cyan itself only ever
     reaches ~2.4:1 there. */
  --cyan-ink:      #0A6A8E;
  --orange-2:      #FF8C3A;
  --cyan:          #1FB6E8;
  --cyan-2:        #57D1F2;
  --cyan-soft:     #D6F0FB;
  --sky:           #E6F2FB;     /* page bg bottom */
  --sky-2:         #F4FAFE;     /* page bg upper */
  --white:         #FFFFFF;
  --navy:          #0B2A5C;     /* main deep blue */
  --navy-2:        #08164A;     /* deeper */
  --ink:           #0A1024;     /* near-black for headlines */
  --ink-soft:      #2B3852;
  --text:          #1A2440;
  --muted:         rgba(11,42,92,.60);
  --line:          rgba(11,42,92,.10);
  --line-strong:   rgba(11,42,92,.18);
  --gold:          #F5B73A;
  --silver:        #BFC7D1;
  --bronze:        #C97A3A;

  /* Type */
  --font-display:  "HubbyBunny", "Fredoka", "Outfit", system-ui, sans-serif;
  --font-headline: "HubbyBunny", "Fredoka", system-ui, sans-serif;
  --font-body:     "Outfit", "DM Sans", system-ui, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows — soft, floating */
  --shadow-float:  0 30px 60px -20px rgba(11, 42, 92, .25), 0 12px 24px -12px rgba(11, 42, 92, .12);
  --shadow-soft:   0 10px 30px -10px rgba(11, 42, 92, .12);
  --shadow-orange: 0 20px 40px -12px rgba(255, 106, 26, .45);
  --shadow-cyan:   0 20px 40px -12px rgba(31, 182, 232, .35);

  /* Layout */
  --max: 1280px;
  --pad: clamp(20px, 5vw, 48px);
  /* svislé odsazení sekce shora i zdola — mezi dvěma sekcemi je tedy 2× tolik */
  --section-y: clamp(20px, 2.8vw, 36px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* bez světle modrého zvýraznění klepnuté plochy na telefonu (Chrome/Android, Safari) — narušovalo čistý vzhled */
html { -webkit-tap-highlight-color: transparent; }
/* Pozadí stránky: přechod je samostatná vrstva přišpendlená k oknu (pod ledovou
   stopou se z-index -1), ne background-attachment: fixed. To mobilní prohlížeče
   počítají z výšky okna i s adresním řádkem — když se lišta při posunu schová,
   přechod se dole zopakoval od bílé a vznikl bílý pruh. Vrstva má výšku okna bez
   lišt (100lvh) a pod ní je barva konce přechodu, takže bílá nikde neprosvitne. */
html { background: #DCEBF7; }
html::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg,
    #FFFFFF 0%,
    #FBFDFF 18%,
    #F1F8FD 38%,
    #E6F2FB 65%,
    #DCEBF7 100%);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient sky decoration — large soft blobs anchored to viewport */
body::before, body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: .55;
}
body::before {
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,182,232,.35), transparent 70%);
}
body::after {
  bottom: 10vh; left: -180px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,26,.18), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
h1 { letter-spacing: 0; }
/* Barvy z mini editoru nadpisů (richTitle) — sekce níže je můžou doladit (kurzíva, světlejší odstín na tmavém) */
:is(h1, h2, h3) .accent { color: var(--orange); }
:is(h1, h2, h3) .cyan { color: var(--cyan-ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-2); }
.btn-cyan {
  background: var(--cyan-ink);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-cyan:hover { background: #0B7CA6; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
/* vybarvení po najetí jen u myši — na dotyku by po klepnutí zůstalo a průhledné tlačítko by vypadalo jako plné */
@media (hover: hover) { .btn-ghost:hover { background: var(--navy); color: var(--white); } }
.btn-blue {
  background: var(--navy);
  color: var(--white);
}
.btn-blue:hover { background: var(--navy-2); }

/* ── Tag / chip ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: rgba(31,182,232,.12);
  color: var(--navy);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.chip-orange { background: rgba(255,106,26,.13); color: var(--orange); }
.chip-dark { background: var(--ink); color: var(--white); }
.chip-light {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ── Nav / Header — glass, floating ── */
/* ── Ice trail — one continuous skate line threading the whole page ── */
.ice-trail {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1560px, 116vw);
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}
.ice-trail path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ice-trail-ghost {
  stroke: rgba(11,42,92,.14);
  stroke-width: 2.5;
  stroke-dasharray: 3 13;
}
.ice-trail-live {
  stroke: rgba(31,182,232,.65);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 7px rgba(31,182,232,.55));
  transition: stroke-dashoffset .25s linear;
}
/* telefon: bez záře — rozmazání se při každém kroku scrollu překresluje přes celou obrazovku
   a mobilní prohlížeč pak nestíhá vykreslovat obsah (kusy stránky naskakují pozdě) */
@media (max-width: 900px) {
  .ice-trail { opacity: .5; }
  .ice-trail-live { filter: none; }
}

/* ── Nav / Header — floating rink island ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: clamp(10px, 1.6vw, 18px) 0 0;
  transition: padding .3s cubic-bezier(.22,1,.36,1);
}
.nav-island {
  position: relative;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow:
    0 18px 40px -18px rgba(11,42,92,.30),
    0 2px 0 rgba(255,255,255,.7) inset;
  padding: 0 clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  transition: box-shadow .3s ease, background .3s ease, border-radius .3s ease;
}
/* the open burger panel hangs below the island, so it must not be clipped */
.nav-island:has(.nav-links.open) { overflow: visible; }
.nav.condensed .nav-island {
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 30px -16px rgba(11,42,92,.34), 0 2px 0 rgba(255,255,255,.7) inset;
}
/* faint faceoff-circle motif inside the island — ties to the rink footer */
.nav-faceoff {
  position: absolute;
  left: 22%; top: 50%;
  width: 168px; height: 168px;
  margin-top: -84px;
  border-radius: 50%;
  border: 1px solid rgba(31,182,232,.10);
  pointer-events: none;
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  transition: height .3s cubic-bezier(.22,1,.36,1);
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), width .3s ease, height .3s ease;
}
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.08); }
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(11,42,92,.18));
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px; /* JS ho doladí, aby se vešel na jeden řádek */
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  line-height: 1;
  margin-top: 4px;
  max-height: 24px;
  overflow: hidden;
  transition: opacity .25s ease, max-height .3s ease, margin .3s ease;
}
/* Mobil po odscrollování: podnadpis se sbalí a název plynule „odjede" na střed a zvětší se.
   Posun --brand-shift počítá JS podle skutečných rozměrů lišty. */
/* podnadpis na jednom řádku nesmí vytlačit menu z lišty ani zajet pod něj */
.nav-inner { gap: 14px; }
.brand, .brand-text { min-width: 0; }
.brand-name {
  display: inline-block;
  transform-origin: 50% 50%;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
/* Po odscrollování se lišta mění jen na mobilu a tabletu na výšku (menu v burgeru):
   zmenší se, podnadpis zmizí a místo „CapriSun CUP" se ukáže název stránky.
   Na počítači a tabletu naležato zůstává lišta beze změny, i s podnadpisem. */
@media (max-width: 920px) {
  /* užší proložení, ať se podnadpis vejde větším písmem */
  .brand small { letter-spacing: .05em; }
  /* Zmenšení lišty nesmí posunout obsah stránky (lišta je sticky, tedy v toku):
     o co ubude odsazení a výška, o to přibude spodní okraj — celková výška zůstává.
     Jinak by obsah poskočil, stránka přejela hranici a lišta by „problikávala". */
  .nav { margin-bottom: 0; transition: padding .3s cubic-bezier(.22,1,.36,1), margin .3s cubic-bezier(.22,1,.36,1); }
  .nav.condensed { padding-top: 8px; margin-bottom: calc(clamp(10px, 1.6vw, 18px) - 8px + 10px); }
  .nav.condensed .nav-inner { height: 64px; }
  .nav.condensed .brand-mark { width: 44px; height: 44px; }
  .nav.condensed .brand small { opacity: 0; max-height: 0; margin-top: 0; }
  .nav.condensed .brand-name { transform: translateX(var(--brand-shift, 0px)) scale(1.2); }
}
/* název stránky v liště: dva texty přes sebe, prolnou se (vyjetí nahoru / přijetí zdola) */
.brand-name { position: relative; }
.brand-name .bn-site, .brand-name .bn-page {
  display: block;
  white-space: nowrap;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.brand-name .bn-page {
  /* na střed i svisle — dlouhý název (turnaj) JS zmenší písmem a musí zůstat uprostřed lišty */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, 20%);
  opacity: 0;
}
@media (max-width: 920px) {
  .nav.condensed .brand-name.has-page .bn-site { opacity: 0; transform: translateY(-70%); }
  .nav.condensed .brand-name.has-page .bn-page { opacity: 1; transform: translate(-50%, -50%); }
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
/* the sliding puck that glides behind the active link */
/* the gliding halo behind the active pill — purely additive motion, so
   legibility never depends on the transition actually advancing */
.nav-puck {
  position: absolute;
  left: 0; top: 50%;
  height: 46px;
  margin-top: -23px;
  border-radius: var(--r-pill);
  background: radial-gradient(60% 120% at 50% 50%, rgba(31,182,232,.55), rgba(31,182,232,.12) 70%, transparent 100%);
  box-shadow: 0 10px 22px -10px rgba(31,182,232,.7);
  pointer-events: none;
  z-index: 0;
  transition: transform .48s cubic-bezier(.34,1.4,.5,1), width .48s cubic-bezier(.34,1.4,.5,1);
}
.nav-link {
  position: relative;
  z-index: 1;
  padding: 10px 17px;
  border-radius: var(--r-pill);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-link span { position: relative; display: inline-block; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav-link:hover:not(.active) { color: var(--cyan-ink); }
.nav-link:hover span { transform: translateY(-2px); }
.nav-link.active {
  color: var(--white);
  background: linear-gradient(140deg, var(--navy) 0%, #123A78 100%);
  box-shadow: 0 8px 18px -8px rgba(11,42,92,.6), 0 1px 0 rgba(255,255,255,.15) inset;
}
.nav-cta { margin-left: 10px; }
/* na stránkách archivu a turnajů je tlačítko „aktivní položka": tmavě modré jako ostatní vybrané položky menu */
.nav-cta.is-active,
.nav-cta.is-active:hover {
  background: linear-gradient(140deg, var(--navy) 0%, #123A78 100%);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy), 0 8px 18px -8px rgba(11,42,92,.6);
}
/* dotyk na mobilu: místo systémového modrého obdélníku zaoblená pilulka jako u vybrané položky */
.nav a, .nav button { -webkit-tap-highlight-color: transparent; }
.nav-link:active:not(.active) { background: rgba(31,182,232,.14); }
.nav-link:focus-visible, .nav-cta:focus-visible, .nav-burger:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.nav-link:focus-visible, .nav-cta:focus-visible { border-radius: var(--r-pill); }
.brand:focus-visible { border-radius: 16px; }

/* scroll-progress rail along the island's bottom edge */
.nav-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(11,42,92,.07);
  overflow: hidden;
}
.nav-rail i {
  display: block;
  height: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-2) 35%, var(--cyan) 100%);
  transition: transform .2s linear;
}

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  align-items: center; justify-content: center;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-island { border-radius: var(--r-xl); }
  .nav-links:not(.open) { display: none; }
  .nav-burger { display: inline-flex; }
  /* Otevřené menu = druhá karta ve vrstvě za lištou (jako přepínání aplikací v telefonu):
     obě karty zaoblené ve všech rozích, menu vyjede zpoza lišty, bez dělicí linky.
     backdrop-filter by z lišty udělal samostatnou vrstvu a menu by nešlo schovat za ni. */
  .nav-island:has(.nav-links.open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255,255,255,.97);
  }
  .nav-island:has(.nav-links.open) .nav-rail { opacity: 0; }
  .nav-links.open {
    position: absolute;
    top: calc(100% - 30px); left: 0; right: 0;
    z-index: -1;
    background: rgba(238,245,252,.96);   /* o odstín tmavší než lišta — zadní karta */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 44px clamp(14px, 3vw, 22px) 18px;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.85);
    box-shadow: 0 26px 50px -22px rgba(11,42,92,.38);
    border-radius: var(--r-xl);
    animation: navCardIn .42s cubic-bezier(.22,1,.36,1);
  }
  .nav-links.open.closing { animation: navCardOut .24s ease-in forwards; }
  .nav-puck { display: none; }
  .nav-link { font-size: 17px; padding: 14px 16px; text-align: center; }
  /* decentní dělicí linka mezi položkami (ne nad tlačítkem Archiv); ke krajům se ztrácí.
     Vedle aktivní položky se schová — tmavá pilulka odděluje sama. */
  .nav-link + .nav-link::before {
    content: "";
    position: absolute;
    left: 18%; right: 18%; top: -2.5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(11,42,92,.16) 30%, rgba(11,42,92,.16) 70%, transparent);
    pointer-events: none;
  }
  .nav-link.active + .nav-link::before,
  .nav-link + .nav-link.active::before { display: none; }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
  .nav-faceoff { display: none; }
}
@keyframes navCardIn  { from { opacity: 0; transform: translateY(-36px) scale(.96); } }
@keyframes navCardOut { to   { opacity: 0; transform: translateY(-36px) scale(.96); } }

/* ════════════════════════════════════════════════════════════════════════
   HERO — CINEMATIC SPOTLIGHT (signature "wow")
   The banner is a dark arena; the cursor is the spotlight that reveals it.
   ════════════════════════════════════════════════════════════════════════ */
@property --sx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --sy { syntax: "<percentage>"; inherits: true; initial-value: 40%; }

.btn-light {
  background: rgba(255,255,255,.92);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn-light:hover { background: var(--white); }

.hero-cinema {
  padding-top: calc(var(--section-y) * .6);
  padding-bottom: var(--section-y);
}
.hero-spot-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(460px, 60vw, 660px);
  background: #060C1E;
  box-shadow: var(--shadow-float);
  isolation: isolate;
  --sx: 50%; --sy: 40%; --px: 0; --py: 0;
}
.hero-spot-stage:not(.is-live) {
  animation: spotSweep 11s ease-in-out infinite alternate;
}
@keyframes spotSweep {
  0%   { --sx: 34%; --sy: 36%; }
  50%  { --sx: 62%; --sy: 30%; }
  100% { --sx: 44%; --sy: 44%; }
}

/* The arena photo fills the whole stage now */
.hero-cinema .hero-banner {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  z-index: 0;
}
.hero-cinema .hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62) saturate(1.05) contrast(1.04);
  transform: scale(calc(1.06 + 0 * var(--px))) translate(calc(var(--px) * -16px), calc(var(--py) * -12px));
  transition: transform .25s ease-out;
}
.hero-cinema .hero-banner::after { display: none; }
.hero-cinema:hover .hero-banner img { transform: scale(1.08) translate(calc(var(--px) * -16px), calc(var(--py) * -12px)); }

/* Dark veil with a transparent hole at the spotlight */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle 30vw at var(--sx) var(--sy),
    rgba(6,12,30,0) 0%,
    rgba(6,12,30,0) 26%,
    rgba(6,12,30,.55) 58%,
    rgba(6,12,30,.86) 100%);
}
/* Bottom gradient for text legibility */
.hero-veil::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6,12,30,.55) 80%, rgba(6,12,30,.85) 100%);
}
/* Cool light glow that brightens under the cursor */
.hero-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle 22vw at var(--sx) var(--sy),
    rgba(140,210,255,.30), rgba(140,210,255,0) 62%);
}

/* Content sits in the light, bottom-left */
.hero-cinema .hero-content {
  position: absolute;
  z-index: 6;
  left: 0; bottom: 0;
  right: calc(clamp(16px, 3vw, 44px) + 440px);
  padding: clamp(22px, 4vw, 52px);
  max-width: 720px;
}
@media (max-width: 1200px) {
  .hero-cinema .hero-content { right: calc(clamp(16px, 3vw, 44px) + 330px); }
  /* užší odpočet: popisek nad čísly */
  .hero-cinema .countdown-float { flex-direction: column; gap: 10px; padding: 14px 18px; }
  .hero-cinema .countdown-float .label { max-width: none; }
}
/* .hero.hero-cinema outranks the legacy `.hero h1` block further down, which
   otherwise resets these to ink and collapses .accent into the tweaked navy. */
.hero.hero-cinema h1 {
  color: #fff;
  font-size: clamp(38px, 7vw, 104px);
  line-height: 0.92;
}
.hero.hero-cinema h1 .t1 {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.hero.hero-cinema h1 .t2 {
  display: block;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.hero.hero-cinema h1 em { font-style: italic; color: inherit; }
.hero.hero-cinema h1 .cyan { color: var(--cyan-2); }
.hero.hero-cinema h1 .accent { color: var(--accent-on-dark); }
.hero.hero-cinema .hero-lead {
  color: rgba(255,255,255,.82);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 480px;
  margin: 18px 0 24px;
}
.hero-cinema .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Plakát a odpočet — sloupec vpravo, nad sebou, svisle na středu */
.hero-cinema .hero-side {
  position: absolute;
  z-index: 6;
  top: 0; bottom: 0;
  right: clamp(16px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 3vw, 36px) 0;
}

/* Poster — parallax */
.hero-cinema .hero-poster-float {
  position: relative;
  top: auto; right: auto;
  z-index: 5;
  animation: none;
  transform: rotate(4deg) translate(calc(var(--px) * -22px), calc(var(--py) * -16px));
  transition: transform .25s ease-out;
}
.hero-cinema .hero-poster-float:hover { transform: rotate(0deg) translate(calc(var(--px) * -22px), calc(var(--py) * -16px)) scale(1.03); }

/* Countdown — slim glass bar pod plakátem */
.hero-cinema .countdown-float {
  position: relative;
  left: auto; right: auto; bottom: auto;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(16px);
  z-index: 6;
}
.hero-cinema .countdown-float .label { color: rgba(255,255,255,.8); }
.hero-cinema .countdown-float .countdown-num { color: #fff; }
.hero-cinema .countdown-float .countdown-unit { color: rgba(255,255,255,.6); }
.hero-cinema .countdown-float .countdown-sep { color: var(--cyan-2); }

@media (max-width: 900px) {
  /* Telefon: nahoře fotka arény, pod ní pokračuje modrý led ze spodku fotky (stejná barva
     jako led pod mantinelem), takže karta má jasný tvar a nesplývá se světlou stránkou.
     Šrámy od bruslí jsou jen jemně naznačené. */
  .hero-spot-stage {
    min-height: 0;
    --banner-h: calc(clamp(280px, 64vw, 420px) * .8);
    --ice: #28609A;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-10 250C90 170 220 120 410 40' stroke='%23fff' stroke-width='1.6' opacity='.22'/%3E%3Cpath d='M-10 268C110 196 240 150 410 70' stroke='%2357D1F2' stroke-width='1' opacity='.3'/%3E%3Cpath d='M-10 70C50 46 110 52 165 26' stroke='%23fff' stroke-width='1.3' opacity='.18'/%3E%3C/g%3E%3C/svg%3E")
        center var(--banner-h) / 100% calc(100% - var(--banner-h)) no-repeat,
      /* led ke spodku jen lehce tmavne — tmavá časomíra se od něj musí jasně odrazit */
      linear-gradient(180deg, var(--ice) var(--banner-h), #2A65A1 100%);
  }
  .hero-cinema .hero-banner { position: relative; height: var(--banner-h); }
  .hero-cinema .hero-banner img { object-position: center 30%; }
  .hero-veil, .hero-glow { height: var(--banner-h); bottom: auto; }
  /* Na telefonu se kurzorem nesvítí — fotka je rovnou rozsvícená, reflektor jen jemně dýchá */
  .hero-cinema .hero-banner img { filter: brightness(.9) saturate(1.1) contrast(1.03); }
  .hero-veil {
    background: radial-gradient(circle 85vw at var(--sx) var(--sy),
      rgba(6,12,30,0) 0%,
      rgba(6,12,30,0) 38%,
      rgba(6,12,30,.28) 75%,
      rgba(6,12,30,.5) 100%);
  }
  /* spodek fotky (už modrý led) se jen dorovná do barvy plochy — i rozsvícené místo uprostřed */
  .hero-veil::after { background: linear-gradient(180deg, transparent 70%, rgba(40,96,154,.6) 87%, var(--ice) 100%); }
  .hero-cinema .hero-content {
    position: relative;
    right: auto;
    margin-top: -26px;          /* nadpis začíná na spodku fotky, kde už je led */
    padding: 0 6px;
  }
  /* úvod na jednu obrazovku: odstavec pod nadpisem na mobilu vynecháme */
  .hero.hero-cinema .hero-lead { display: none; }
  /* dvě tlačítka vedle sebe, na střed, stejně široká, méně kulatá (jako karty na Kontaktu) */
  .hero-cinema .hero-cta { margin-top: 20px; justify-content: center; gap: 10px; flex-wrap: nowrap; }
  .hero-cinema .hero-cta .btn {
    flex: 1 1 0;
    max-width: 200px;
    justify-content: center;
    padding: 15px 12px;
    border-radius: 16px;
    font-size: 18px;
  }
  .hero-cinema .hero-cta .btn svg { display: none; }   /* na telefonu bez šipky — tlačítko mluví samo */
  .hero-cinema .hero-cta .btn-light { background: #fff; box-shadow: 0 12px 26px -12px rgba(4,14,40,.6); }
  /* nadpis na modrém ledu: bílý, barevná slova ve světlejších odstínech, ať mají kontrast */
  .hero.hero-cinema h1 .t1 { color: rgba(255,255,255,.92); }
  .hero.hero-cinema h1 .t2 { text-shadow: 0 2px 14px rgba(4,14,40,.35); }
  .hero.hero-cinema h1 .cyan { color: var(--cyan-2); }
  .hero.hero-cinema h1 .accent { color: var(--orange-2); }
  .hero-cinema .hero-side { display: contents; }
  .hero-cinema .hero-poster-float {
    position: absolute; top: 14px; right: 14px;
    width: 36%; max-width: 150px; margin: 0;
  }
  /* kapka s datem menší a jen na rohu plakátu, ať ho nezakrývá */
  .hero-cinema .hero-poster-float::before {
    width: 70px; height: 68px;
    top: -12px; left: -22px;
    font-size: 13px;
  }
  /* odpočet jako spodní díl karty (návrh z Claude Design): plný blok přes celou šířku,
     od úvodu oddělený rovnou tenkou čarou — žádný zaoblený štítek; dolní rohy ořízne karta */
  .hero-cinema .countdown-float {
    position: relative; right: auto; bottom: auto;
    margin: 24px -1px -1px;
    padding: 18px 16px 20px;
    background: linear-gradient(180deg, rgba(6,20,48,.55), rgba(4,14,36,.85));
    border: 0;
    border-top: 1px solid rgba(140,200,245,.24);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    align-items: center;
    text-align: center;
  }
  .hero-cinema .countdown-float .countdown-cells { justify-content: center; }
  .hero-cinema .countdown-float .label { color: var(--cyan-2); }
  /* číslice rostou s displejem — na tabletu by jinak časomíra byla jen nízký tmavý pruh */
  .hero-cinema .countdown-float .label { font-size: clamp(11px, 1.6vw, 13px); }
  .hero-cinema .countdown-float .countdown-num { color: #fff; font-size: clamp(30px, 5vw, 42px); text-shadow: 0 0 14px rgba(87,209,242,.35); }
  .hero-cinema .countdown-float .countdown-unit { font-size: clamp(10px, 1.4vw, 12px); }
  /* dvojtečka stejně vysoká jako číslice (velikost i řádek) → sedí na jejich středu, ne mezi číslem a jednotkou */
  .hero-cinema .countdown-float .countdown-sep { font-size: clamp(30px, 5vw, 42px); line-height: 1; margin-top: 0; }
  .hero-cinema .countdown-float .countdown-cell { min-width: clamp(52px, 10vw, 84px); }
  .hero-cinema .countdown-float .countdown-unit { color: var(--orange-2); }
  .hero-cinema .countdown-float .countdown-sep { color: var(--cyan-2); }
}

/* ── HERO — banner with floating composition ── */
.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(40px, 7vw, 80px);
  overflow: visible;
}

.hero-stage {
  position: relative;
  min-height: clamp(480px, 60vw, 720px);
}

/* Banner image — wide cinematic strip, soft mask edges */
.hero-banner {
  position: relative;
  height: clamp(280px, 38vw, 460px);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  background: linear-gradient(135deg, var(--navy), #04102E);
  isolation: isolate;
}
.hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(8,22,74,.35) 85%, rgba(8,22,74,.55) 100%),
    linear-gradient(90deg, rgba(8,22,74,.25), transparent 55%);
  pointer-events: none;
}
.hero-banner img {
  transform: scale(1.02);
  transition: transform 10s ease-out;
}
.hero:hover .hero-banner img { transform: scale(1.08); }
.hero-banner-photo-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .04em;
  background:
    radial-gradient(800px 400px at 60% 30%, rgba(31,182,232,.45), transparent 60%),
    radial-gradient(600px 360px at 20% 80%, rgba(255,106,26,.25), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 3px, transparent 3px 14px);
}
.hero-banner-photo-placeholder small {
  background: rgba(0,0,0,.4);
  padding: 10px 18px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

/* Hero title floats over and below the banner */
.hero-title-wrap {
  position: relative;
  margin-top: -90px;
  z-index: 3;
  padding-inline: clamp(0px, 2vw, 24px);
}
@media (max-width: 720px) {
  .hero-title-wrap { margin-top: -56px; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(40px, 7.5vw, 112px);
  letter-spacing: -0.005em;
  line-height: 0.95;
  color: var(--ink);
  text-transform: none;
}
.hero h1 .row1 {
  display: block;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
  font-size: 0.85em;
  margin-bottom: 6px;
}
.hero h1 .row2 {
  display: block;
  color: var(--ink);
}
.hero h1 .accent {
  color: var(--orange);
  display: inline-block;
}
.hero h1 .navy { color: var(--navy); }
.hero h1 em {
  font-style: normal;
  color: var(--cyan-ink);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-top: 32px;
  align-items: flex-end;
}
.hero-meta .col-lead {
  max-width: 460px;
  flex: 1 1 280px;
}
.hero-meta .lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Floating poster card — overlaps banner from the right */
.hero-poster-float {
  position: absolute;
  right: clamp(-8px, 2vw, 32px);
  top: clamp(16px, 5vw, 48px);
  width: clamp(180px, 22vw, 280px);
  z-index: 4;
  transform: rotate(4deg);
  filter: drop-shadow(0 30px 50px rgba(11,42,92,.4));
  animation: float-poster 6s ease-in-out infinite alternate;
}
@keyframes float-poster {
  to { transform: rotate(2deg) translateY(-8px); }
}
.hero-poster-float img,
.hero-poster-float .poster-fill {
  width: 100%;
  aspect-ratio: 1700 / 2400;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
  background: var(--navy);
}
.hero-poster-float:not([data-badge])::before { display: none; }
/* kolečko s datem turnaje (data-badge z home.php) */
.hero-poster-float::before {
  content: attr(data-badge);
  white-space: pre;
  position: absolute;
  top: -22px; left: -28px;
  width: 104px; height: 102px;
  /* Capri-Sun kapka (flek) místo kolečka — assets/img/kapka.svg */
  background: url('/assets/img/kapka.svg') center / contain no-repeat;
  filter: drop-shadow(0 10px 14px rgba(255,89,0,.45));
  color: var(--white);
  display: grid;
  place-content: center;
  padding: 4px 0 0 2px;       /* těžiště skvrny je vpravo (výběžek nahoře vpravo) — text o kousek doprava */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  line-height: 1.05;
  text-shadow: 0 1px 2px rgba(150,50,0,.35);
  transform: rotate(-10deg);
  z-index: 2;
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(6deg); }
}

/* Floating countdown — chip-like pill, glass */
.countdown-float {
  position: absolute;
  left: clamp(0px, 2vw, 24px);
  bottom: clamp(-30px, -3vw, -10px);
  z-index: 5;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-float);
  border-radius: var(--r-xl);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.countdown-float .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 90px;
  line-height: 1.2;
}
.countdown-cells {
  display: flex;
  gap: 6px;
}
.countdown-cell {
  text-align: center;
  min-width: 52px;
}
.countdown-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.countdown-unit {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-sep {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan-ink);
  font-size: 26px;
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .hero-poster-float {
    position: relative;
    right: auto; top: auto;
    width: min(78%, 300px);
    max-width: none;
    margin: 24px auto -32px;
  }
  .countdown-float {
    position: relative;
    left: auto; bottom: auto;
    margin-top: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown-float .label { max-width: none; }
  .hero-stage { min-height: 0; }
}

/* Decorative floating shapes for hero */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.deco-puck {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2A2F4A, #0A1024 70%);
  box-shadow: 0 18px 30px rgba(10,16,36,.3), inset 0 -8px 16px rgba(0,0,0,.5), inset 0 6px 10px rgba(255,255,255,.05);
  animation: floaty 7s ease-in-out infinite;
}
.deco-mascot {
  width: clamp(120px, 14vw, 200px);
  animation: floaty 6s ease-in-out infinite;
}
.deco-mascot img { width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(11,42,92,.35)); }

.deco-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 3px dashed rgba(31,182,232,.4);
  animation: spin 30s linear infinite;
}
.deco-star {
  width: 36px; height: 36px;
  color: var(--orange);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Section spacing ── */
.section {
  position: relative;
  padding: var(--section-y) 0;
}
.section-tight { padding: var(--section-y) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.025em;
  max-width: 11ch;
}
/* telefon: nadpisy sekcí na úvodní stránce na jeden řádek — zalomení z adminu se skryje,
   písmo se zmenší podle šířky displeje, aby se vešly i na užší telefony */
@media (max-width: 640px) {
  .section-head h2.h-oneline-m { max-width: none; white-space: nowrap; font-size: min(40px, 9.6vw); }
  .section-head h2.h-oneline-m br { display: none; }
}
.section-head h2 .accent { color: var(--orange); font-style: italic; }
.section-head h2 .cyan { color: var(--cyan-ink); font-style: italic; }
.section-head .lead {
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

/* ── Čísla turnajů — 4 samostatné body přímo na stránce (bez rámu) ── */
.scoreboard-wrap {
  position: relative;
  padding: var(--section-y) 0;
}
.scoreboard { position: relative; }
.scoreboard-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 28px);
}
@media (max-width: 680px) {
  .scoreboard-grid { grid-template-columns: 1fr 1fr; row-gap: 34px; }
}
.sb-cell {
  position: relative;
  text-align: center;
  padding: 10px 6px;
  cursor: default;
  /* nástup při doscrollování (výchozí stav = vidět) */
  opacity: 0;
  transform: translateY(22px) scale(.96);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.scoreboard.revealed .sb-cell { opacity: 1; transform: translateY(0) scale(1); }
.sb-cell > * { position: relative; z-index: 1; }
.sb-ic {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 32% 28%, #2F6FE0 0%, #1A4FB8 55%, #123B94 100%);
  box-shadow:
    0 0 0 6px rgba(31,182,232,.12),
    inset 0 2px 0 rgba(255,255,255,.2),
    0 16px 30px -14px rgba(18,59,148,.75);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.sb-ic svg { width: 56%; height: 56%; filter: drop-shadow(0 2px 3px rgba(4,14,40,.35)); }
.sb-cell:hover .sb-ic {
  box-shadow:
    0 0 0 9px rgba(31,182,232,.18),
    inset 0 2px 0 rgba(255,255,255,.2),
    0 20px 34px -14px rgba(18,59,148,.85);
}
.sb-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.sb-l {
  margin-top: 8px;
  font-family: var(--font-headline);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}

/* Vhazovací kruh (JS initScoreFx): vyjíždí zpoza kolečka a jiskra ho přitom objíždí,
   za sebou nechává jemnou tmavě modrou záři; na konci kruh dvakrát problikne
   a praskne ohňostroj jisker. Vrstva leží ZA ikonou. */
.sb-fo {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.sb-fo .fo-grow {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: scale(.35);
  opacity: 0;
  transition: transform .6s cubic-bezier(.3,1.3,.5,1), opacity .3s ease;
}
.sb-cell.fo-on .sb-fo .fo-grow { transform: scale(1); opacity: 1; }
.sb-fo path, .sb-fo circle { fill: none; stroke-linecap: round; }
/* slabý obrys, čárky (vlevo a vpravo), „L" značky a tečka */
.sb-fo .fo-ghost { stroke: rgba(11,42,92,.10); stroke-width: 2; }
.sb-fo .fo-hash, .sb-fo .fo-ells { stroke: rgba(11,42,92,.22); stroke-width: 2.2; transition: stroke .4s ease; }
.sb-fo .fo-dot { fill: rgba(11,42,92,.25); stroke: none; }
/* stopa jiskry — jemná záře místo ostré čáry (dashoffset řídí JS) */
.sb-fo .fo-live {
  stroke: rgba(18,59,148,.7);
  stroke-width: 2.6;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgba(31,110,232,.55)) drop-shadow(0 0 8px rgba(31,182,232,.35));
}
.sb-fo .fo-head {
  fill: #fff;
  stroke: none;
  opacity: 0;
  filter: drop-shadow(0 0 3px #7FD6F7) drop-shadow(0 0 7px #1FB6E8);
  transition: opacity .25s ease;
}
.sb-cell.fo-on .sb-fo .fo-head { opacity: 1; }
/* konec: jiskra zhasne a celý kruh dvakrát problikne, pak zůstane jemně svítit */
.sb-cell.is-lit .sb-fo .fo-head { opacity: 0; }
.sb-cell.is-lit .sb-fo .fo-live { animation: foBlink .7s ease-out forwards; }
.sb-cell.is-lit .sb-fo .fo-hash, .sb-cell.is-lit .sb-fo .fo-ells { stroke: rgba(11,42,92,.55); }
.sb-cell.is-lit .sb-fo .fo-dot { fill: rgba(11,42,92,.6); }
@keyframes foBlink {
  0%   { stroke: rgba(18,59,148,.55); }
  15%  { stroke: #0B2A5C; filter: drop-shadow(0 0 5px rgba(31,110,232,.9)) drop-shadow(0 0 14px rgba(31,182,232,.7)); }
  30%  { stroke: rgba(18,59,148,.25); filter: none; }
  45%  { stroke: #0B2A5C; filter: drop-shadow(0 0 5px rgba(31,110,232,.9)) drop-shadow(0 0 14px rgba(31,182,232,.7)); }
  100% { stroke: rgba(11,42,92,.7); filter: drop-shadow(0 0 4px rgba(31,110,232,.55)) drop-shadow(0 0 10px rgba(31,182,232,.3)); }
}
.sb-fo .fo-pulse { stroke: rgba(31,110,232,.55); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.sb-cell.is-lit .sb-fo .fo-pulse { animation: foPulse .8s ease-out .1s; }
@keyframes foPulse {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}
.sb-cell.is-lit .sb-n { animation: sbJolt .35s ease-out; }
@keyframes sbJolt {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.sb-spark {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  /* ledová tříšť: bílé jádro, modrý okraj — vidět i na světlé stránce */
  background: radial-gradient(circle, #fff 0 30%, #7FD6F7 65%, #1FB6E8 100%);
  box-shadow: 0 0 6px 1px rgba(31,182,232,.55);
  pointer-events: none;
}

/* ── Další nadcházející turnaje (nejbližší je v hero) ── */
.upcoming-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  gap: clamp(18px, 3vw, 32px);
}
/* Plakát a údaje v jednom objektu (světlá obdoba karty z archivu):
   plakát sahá až k okraji karty, od údajů ho dělí oranžová linka. */
.up-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 36%) 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(11,42,92,.07);
  border-radius: 26px;
  box-shadow: var(--shadow-float);
  color: inherit;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.up-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -26px rgba(11,42,92,.38), 0 0 0 2px rgba(31,182,232,.45);
}
.up-poster {
  aspect-ratio: 1700/2400;
  overflow: hidden;
  background: var(--navy);
}
.up-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.up-card:hover .up-poster img { transform: scale(1.04); }
.up-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.4vw, 28px);
  border-left: 3px solid var(--orange);
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F8FD 100%);
}
.up-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.up-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.up-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.up-meta span { display: inline-flex; align-items: center; gap: 6px; }
.up-card .arrow-row {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--orange);
}
/* telefon: 2 karty na řádek (jako archiv), plakát nahoře, údaje pod ním;
   náhrada bez plakátu drží poměr plakátu, aby oranžové linky obou karet lícovaly */
@media (max-width: 560px) {
  .upcoming-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* řádek s údaji bere přebytečnou výšku — jinak by se natáhl plakát a přes poměr i do šířky */
  .up-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; border-radius: var(--r-lg); }
  .up-body { justify-content: flex-start; border-left: 0; border-top: 3px solid var(--orange); padding: 12px 12px 14px; }
  .up-card h3 { font-size: 17px; line-height: 1.15; }
  .up-tag { font-size: 9.5px; letter-spacing: .12em; margin-bottom: 6px; }
  .up-meta { margin-top: 10px; gap: 5px; font-size: 12px; line-height: 1.3; }
  .up-meta span { align-items: flex-start; gap: 5px; }
  .up-meta .icon-sm { flex-shrink: 0; margin-top: 1px; }
  .up-card .arrow-row { margin-top: auto; padding-top: 12px; font-size: 12px; }
}

/* ── Archive posters strip on homepage ── */
.posters-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
@media (max-width: 1000px) { .posters-row { grid-template-columns: repeat(3, 1fr); } }
/* telefon: 2 × 2 = jen 4 poslední turnaje (pátý by zůstal osamocený) */
@media (max-width: 560px) {
  .posters-row { grid-template-columns: repeat(2, 1fr); }
  .posters-row .poster-card:nth-child(n+5) { display: none; }
}

.poster-card {
  position: relative;
  aspect-ratio: 1700 / 2400;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: block;
  border: 0;
  padding: 0;
}
.poster-card:hover { transform: translateY(-14px) !important; box-shadow: var(--shadow-float); }

.poster-card .poster-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Stylized poster placeholders (per-year tints) */
.poster-card[data-tint="1"] .poster-bg { background: linear-gradient(160deg, #1FB6E8, #0B2A5C); }
.poster-card[data-tint="2"] .poster-bg { background: linear-gradient(160deg, #FF8C3A, #C04812); }
.poster-card[data-tint="3"] .poster-bg { background: linear-gradient(160deg, #0B2A5C, #04102E); }
.poster-card[data-tint="4"] .poster-bg { background: linear-gradient(160deg, #57D1F2, #1FB6E8); }
.poster-card[data-tint="5"] .poster-bg { background: linear-gradient(160deg, #F5B73A, #FF6A1A); }

.poster-bg {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 3px, transparent 3px 14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--white);
}
.poster-bg-top {
  font-family: var(--font-headline);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.poster-bg-year {
  font-family: var(--font-headline);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  align-self: flex-start;
}
.poster-bg-bottom {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: .85;
  font-weight: 500;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--white);
  pointer-events: none;
}
.poster-overlay .label {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
}
.poster-overlay .winner {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

/* Homepage archiv jako sběratelské kartičky: do příjezdu sekce leží rubem nahoru (logo),
   pak se zleva postupně otočí s jemným dokmitnutím a přes plakát přejede odlesk.
   Skutečné 3D (preserve-3d + rub otočený o 180°), proto ořez rohů nese každá vrstva zvlášť.
   Animuje se rotate/translate — mimo transform, takže zůstane posun karet i zvednutí najetím. */
.posters-row { perspective: 1400px; }
.posters-row.reveal { opacity: 1; transform: none; will-change: auto; }
.posters-row .poster-card { overflow: visible; transform-style: preserve-3d; }
.posters-row .poster-img,
.posters-row .poster-bg,
.posters-row .poster-overlay { border-radius: inherit; backface-visibility: hidden; }
.posters-row .poster-overlay { overflow: hidden; }
.poster-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 13px),
    radial-gradient(120% 80% at 50% 18%, #1A4B93 0%, var(--navy) 55%, #061535 100%);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
}
.poster-back img { width: 74%; height: auto; filter: brightness(0) invert(1); }
/* odlesk jako po lesklé kartičce */
.posters-row .poster-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 65%);
  translate: -140% 0;
  pointer-events: none;
}
.posters-row.reveal:not(.revealed) .poster-card { rotate: y 180deg; translate: 0 20px; }
.posters-row.revealed .poster-card {
  animation: posterFlip 1.1s both;
  animation-delay: calc(var(--i) * 160ms + 80ms);
}
.posters-row.revealed .poster-overlay::after {
  animation: posterSheen .9s ease-in-out both;
  animation-delay: calc(var(--i) * 160ms + 820ms);
}
@keyframes posterFlip {
  0%   { rotate: y 180deg; translate: 0 20px; animation-timing-function: cubic-bezier(.3,.6,.35,1); }
  60%  { rotate: y -12deg; translate: 0 -10px; animation-timing-function: ease-in-out; }
  82%  { rotate: y 4deg;   translate: 0 1px; }
  100% { rotate: y 0deg;   translate: 0 0; }
}
@keyframes posterSheen { from { translate: -140% 0; } to { translate: 140% 0; } }

/* ── Tournament card grid (used elsewhere) — softer ── */
.t-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: left;
  cursor: pointer;
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(11,42,92,.04);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }

/* ── Timeline (archive) — floating year glyphs ── */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 12px; bottom: 12px;
  left: clamp(80px, 12vw, 200px);
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
  border-radius: 3px;
  opacity: .35;
}
.tl-row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(80px, 12vw, 200px) 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: 22px 0;
  cursor: pointer;
  align-items: center;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform .15s ease;
}
.tl-row:hover { transform: translateX(4px); }
.tl-row:hover .tl-card { box-shadow: var(--shadow-float); background: var(--white); }
.tl-year-glyph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-align: right;
  padding-right: clamp(28px, 5vw, 56px);
  position: relative;
}
.tl-year-glyph::after {
  content: "";
  position: absolute;
  right: clamp(8px, 1.4vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(31,182,232,.18);
  z-index: 2;
}
.tl-row[data-medal="gold"] .tl-year-glyph::after { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(245,183,58,.22); }
.tl-row[data-medal="orange"] .tl-year-glyph::after { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255,106,26,.18); }
.tl-card {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  border: 1px solid rgba(11,42,92,.06);
  transition: background .15s ease, box-shadow .15s ease;
}
.tl-card .winner {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.tl-card .summary {
  color: var(--ink-soft);
  font-size: 14px;
}
.tl-stats {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
  flex-wrap: wrap;
}
.tl-stats b { color: var(--navy); font-weight: 700; }
.tl-card-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.tl-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--orange);
}
@media (max-width: 600px) {
  .timeline::before { left: 36px; }
  .tl-row { grid-template-columns: 64px 1fr; gap: 18px; }
  .tl-year-glyph { padding-right: 12px; font-size: 40px; }
  .tl-year-glyph::after { width: 14px; height: 14px; right: 4px; }
}

/* ── Tournament detail ── */
.detail-hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(16px, 2vw, 24px);
}
/* Obsah detailu navazuje hned pod nadpisem, bez další mezery sekce */
.detail-hero + .section-tight { padding-top: 0; }
/* Odkaz zpět — vlastní řádek nad nadpisem, tmavý zaoblený obdélník */
.detail-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  margin-bottom: 28px;
  padding: 11px 18px 11px 14px;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 10px 22px -12px rgba(11,42,92,.6);
  transition: background .15s ease, transform .15s ease;
}
.detail-back svg { color: var(--cyan-2); }
.detail-back:hover { background: var(--navy-2); transform: translateX(-2px); }
/* stejně velký jako u proběhlého turnaje (.td-title h1); na jeden řádek ho zmenší JS (initFitTitles) */
.detail-hero h1 {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.025em;
  line-height: .95;
  color: var(--ink);
}
.detail-hero h1 .accent { color: var(--orange); font-style: italic; }

/* Video frame */
.video-frame {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-2), #000);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-float);
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.video-play span {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-orange);
  font-size: 28px;
  transition: transform .2s ease;
}
.video-frame:hover .video-play span { transform: scale(1.1); }

/* Medals — pill row */
.medals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .medals { grid-template-columns: 1fr; } }
.medal {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(11,42,92,.06);
}
.medal-disc {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  position: relative;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.12);
}
.medal-disc.gold { background: linear-gradient(160deg, #FFE9A8, var(--gold)); color: #6b4f10; }
.medal-disc.silver { background: linear-gradient(160deg, #F0F2F5, var(--silver)); color: #3b4453; }
.medal-disc.bronze { background: linear-gradient(160deg, #E8B289, var(--bronze)); color: #4a2912; }
.medal-meta small {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.medal-meta b { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: var(--navy);
  cursor: pointer;
  transition: transform .25s ease;
}
.gallery-tile:hover { transform: scale(0.97); }
/* úvodní fotka přes 2 × 2 čtverce — přesně zapadne do mřížky, takže nevznikají mezery */
.gallery-tile.lead { grid-column: span 2; grid-row: span 2; }
.gallery-ph {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 8px, transparent 8px 16px);
}
.gallery-tile.tone-1 { background: linear-gradient(135deg, #1FB6E8, #0E2A6E); }
.gallery-tile.tone-2 { background: linear-gradient(135deg, #FF6A1A, #C04812); }
.gallery-tile.tone-3 { background: linear-gradient(135deg, #0B2A5C, #04102E); }
.gallery-tile.tone-4 { background: linear-gradient(135deg, #57D1F2, #1FB6E8); }
.gallery-tile.tone-5 { background: linear-gradient(135deg, #FF8C3A, #FF6A1A); }
.gallery-label {
  position: absolute;
  left: 14px; bottom: 12px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .04em;
}

/* Teams chips */
.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.team {
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform .15s ease;
}
.team:hover { transform: translateY(-2px); background: var(--white); }
/* odznak účastníka (team-badge.svg); zkratka týmu sedí v oranžovém středu odznaku */
.team-crest {
  position: relative;
  width: 58px; height: 56px;
  flex-shrink: 0;
  background: url('/assets/img/team-badge.svg') center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(11,42,92,.2));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.team-crest span {
  position: absolute;
  /* střed oranžového kruhu v odznaku: 46,4 % × 50 % */
  left: 46.4%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(120,50,0,.35);
}
.team:hover .team-crest { transform: rotate(-8deg) scale(1.06); }
.team b { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.team small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Detail layout — sticky side panel */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 28px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-block { margin-bottom: 44px; }
.detail-block h3 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.detail-block h3 .accent { color: var(--cyan-ink); font-style: italic; }
/* Místo konání v informacích o turnaji → Google Mapy: špendlík + název na jednom řádku
   (výjimečně dlouhý název se zkrátí třemi tečkami, celý je v bublině po najetí myší) */
.detail-side .row-venue { gap: 14px; align-items: center; }
.detail-side .row-venue > b { min-width: 0; font-size: 14px; }
.venue-link { display: flex; align-items: center; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.venue-link > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-link svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--orange); transition: transform .2s ease; }
.venue-link:hover { color: var(--cyan-ink); }
.venue-link:hover svg { transform: translateY(-2px); }

.detail-side {
  position: sticky;
  top: 100px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-float);
}
/* medaile nahoře v kartě „O turnaji" */
.side-medal {
  display: block;
  width: min(190px, 70%);
  margin: -4px auto 18px;
  filter: drop-shadow(0 16px 22px rgba(11,42,92,.28));
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.side-medal img { display: block; width: 100%; height: auto; }
.side-medal:hover { transform: rotate(-5deg) scale(1.04); }
.detail-side h4 {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.detail-side .row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.detail-side .row:last-child { border-bottom: 0; }
.detail-side .row b { font-weight: 700; color: var(--ink); font-family: var(--font-display); font-size: 16px; }

/* ── About / pages — airy, no boxy hero ── */
.page-head {
  position: relative;
  padding: var(--section-y) 0;
}
.page-head h1 {
  font-size: clamp(64px, 11vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.page-head h1 .accent { color: var(--orange); font-style: italic; }
.page-head h1 .cyan { color: var(--cyan-ink); font-style: italic; }
.page-head .lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
}

/* About — overlapping photo + text */
.about-stack {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) {
  .about-stack { grid-template-columns: 1fr; }
  /* pod logem na střed jako logo; odstavce zůstávají do bloku */
  .about-stack-title { text-align: center; }
}
.about-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--cyan), var(--navy));
  position: relative;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.9);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  box-shadow: var(--shadow-float);
  transform: rotate(-1.5deg);
}
.about-logo {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  justify-self: center;
  /* na střed podle nápisu Capri-Sun, ne podle celého loga — „JSME…" vlevo ho táhne doprava
     (v SVG: Capri-Sun x 53–465, viewBox 12–472 → posun o 17/460 šířky) */
  transform: translateX(-3.7%);
}
/* O turnaji na telefonu (zadání majitele): logo → balíček fotek Tradice → text k logu → Naše sporty.
   Hlavní nadpis s úvodem a text Tradice s tlačítky se na telefonu nezobrazují. Prvky jsou ve dvou
   sekcích, proto se obaly „rozpustí“ (display: contents) a pořadí určí flex na <main>. */
@media (max-width: 860px) {
  .about-page { display: flex; flex-direction: column; padding-top: clamp(28px, 8vw, 48px); }
  .about-page > .page-head,
  .about-tradice .about-text { display: none; }
  .about-sec-tradice, .about-sec-tradice > .container, .about-tradice,
  .about-sec-logo, .about-sec-logo > .container, .about-sec-logo .about-stack,
  .about-stack-text { display: contents; }

  .about-logo { order: 1; width: calc(100% - var(--pad) * 2); max-width: 320px; margin: 0 auto; }
  .about-deck-wrap { order: 2; margin: 30px var(--pad) 0; }
  .about-stack-text > * { order: 3; margin-inline: var(--pad); }
  .about-stack-text > h2 { margin-top: 44px; }
  .about-sec-sports { order: 4; }
}
/* O turnaji: odstavce do bloku; dělení slov, ať v úzkém sloupci nevznikají díry mezi slovy */
.about-page p.lead { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* O turnaji, Tradice: balíček fotek. Horní se pomalu přibližuje, po chvíli (nebo po kliknutí)
   odjede stranou a zasune se dospod; pod ní vykukují další dvě. Jen transform/opacity —
   animuje grafika, i na pomalém tabletu bez překreslování stránky. */
.about-deck-wrap { position: relative; aspect-ratio: 4 / 3; }
.about-deck {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.about-deck:focus-visible { outline: 3px solid var(--orange); outline-offset: 12px; border-radius: var(--r-xl); }
.deck-card {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translate(-3%, 4.5%) rotate(-5deg) scale(.93);
  transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .5s ease;
  will-change: transform;
}
.deck-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .75s ease;
}
/* zadní fotky jsou lehce ztmavené */
.deck-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8,22,74,.3);
  transition: opacity .6s ease;
}
.deck-card[data-depth="0"] { z-index: 3; opacity: 1; transform: rotate(-1.5deg); }
.deck-card[data-depth="0"]::after { opacity: 0; }
.about-deck.is-live .deck-card[data-depth="0"] img { transform: scale(1.1) translate(-1.5%, -1%); transition: transform 6.5s linear; }
.deck-card[data-depth="1"] { z-index: 2; opacity: 1; transform: translate(3.5%, 3%) rotate(3deg) scale(.96); }
.deck-card[data-depth="2"] { z-index: 1; opacity: 1; transform: translate(-3%, 4.5%) rotate(-5deg) scale(.93); }
/* odjezd horní fotky stranou — pak ji JS pošle dospod */
.deck-card[data-depth="out"] {
  z-index: 4;
  opacity: 1;
  transform: translate(-58%, 6%) rotate(-11deg);
  transition: transform .45s cubic-bezier(.45,0,.55,1);
}
.about-deck-wrap .about-since { z-index: 5; pointer-events: none; }
@media (max-width: 640px) { .about-deck-wrap .about-since { right: -6px; top: -18px; } }

/* ───────── Aktualita na úvodní stránce ─────────
   Fotka „přilepená“ bílou páskou na oranžovém tahu štětcem, z rohu vystříknou kapky.
   Oranžový text v nadpisu dostane vlastní tah štětcem, pod nadpisem komiksová linka bubliny,
   jejíž ocásek míří k fotce. Animuje se jen transform/opacity (kapky) a malý ořez linky. */
.news {
  --juice: #1F56B5;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.news-noimg { grid-template-columns: minmax(0, 760px); justify-content: center; }
.news-media { position: relative; }
.news-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}
.news-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-swipe {
  position: absolute;
  z-index: 0;
  left: -13%;
  top: 79%;
  width: 126%;
  height: auto;
  transform: rotate(-6deg);
  pointer-events: none;
}
.news-tape {
  position: absolute;
  z-index: 2;
  top: -4%;
  left: 7%;
  width: 28%;
  height: auto;
  transform: rotate(-10deg);
  filter: drop-shadow(0 2px 3px rgba(11,42,92,.18));
  pointer-events: none;
}
.news-splash { position: absolute; z-index: 3; display: block; pointer-events: none; color: var(--juice); }
.news-splash svg { display: block; width: 100%; height: auto; }
.news-splash-1 { width: 31%; top: -16%; right: -10%; }
/* kapky mají danou orientaci (ocásky doprava) — neotáčet; levý dolní roh přes fotku */
.news-splash-2 { width: 24%; bottom: -7%; left: -6%; }

.news-title { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.06; color: var(--ink); }
/* tah štětcem za oranžovým textem: obrázek je rozřezaný (border-image) — rozeklané konce
   (levých 400 a pravých 330 px zdroje) zůstávají stejně velké, roztahuje se jen plný střed,
   takže text vždy začíná až tam, kde je barva souvislá */
.news-title .accent {
  color: var(--white);
  font-style: normal;
  border-style: solid;
  border-width: 0;
  border-image: url("../img/deco/brush-orange.webp") 0 330 0 400 fill / 0 .45em 0 .62em / 0 stretch;
  padding: .04em .3em .1em .62em;
  margin: 0 -.16em 0 -.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.news-title .cyan { color: var(--cyan-ink); font-style: italic; }
.news-speech { display: block; width: min(66%, 320px); margin: 14px 0 20px -4px; color: var(--cyan); }
.news-speech svg { display: block; width: 100%; height: auto; }
.news-body p { margin: 0 0 14px; max-width: 54ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--ink-soft); }
.news-body .btn { margin-top: 12px; }

/* náběh: kapky vystříknou z rohu, linka bubliny se „dokreslí“ od ocásku */
.news.reveal .news-splash svg {
  opacity: 0;
  transform: scale(.25) rotate(-30deg);
  transform-origin: 15% 85%;
  transition: transform .8s cubic-bezier(.34,1.56,.64,1) .45s, opacity .25s ease .45s;
}
.news.revealed .news-splash svg { opacity: 1; transform: none; }
.news.revealed .news-splash-1 { animation: newsBob 4.6s ease-in-out 1.4s infinite alternate; }
@keyframes newsBob { to { translate: 4px -9px; } }
.news.reveal .news-speech {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(.65,0,.35,1) .55s;
  will-change: transform;
}
.news.revealed .news-speech { clip-path: inset(0 0 0 0); }

/* telefon a úzký tablet: nadpis (na střed), pod ním linka bubliny ukazující dolů na fotku, pak fotka a text */
@media (max-width: 860px) {
  .news { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .news-body { display: contents; }
  .news-title { order: 1; text-align: center; }
  .news-speech { order: 2; justify-self: center; margin: 14px 0 34px; }
  .news-media { order: 3; width: min(100%, 560px); justify-self: center; margin-bottom: 52px; }
  .news-body p { order: 4; }
  .news-body .btn { order: 5; justify-self: start; }
  .news-noimg .news-speech { margin-bottom: 22px; }
  .news-splash-1 { width: 26%; top: -12%; right: -3%; }
  .news-splash-2 { left: -2%; }
}
.about-photo small {
  display: block;
  padding: 12px 18px;
  background: rgba(11,42,92,.55);
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
}

/* Sporty (O turnaji) — čtyři šikmé výseče vedle sebe, na mobilu pruhy pod sebou.
   Každá fotka leží přes celou plochu a clip-path z ní ukazuje jen její výseč;
   aktivní se rozbalí na celý obdélník a sjede z posunu zpátky na střed. */
.sports {
  --ease-sport: cubic-bezier(.7, 0, .2, 1);
  position: relative;
  /* výška zvlášť, ne aspect-ratio s max-height — to by plochu zúžilo */
  height: min(56.25vw, 78vh, 666px);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
/* Náběh obstarává vlastní animace výsečí, ne obecné vyjetí .reveal.
   will-change: plocha má vlastní vrstvu na grafice — překreslování výsečí při animaci
   pak nesahá na okolní stránku (na pomalém tabletu jinak problikával nadpis nad ní). */
.sports.reveal, .sports.reveal.revealed { opacity: 1; transform: none; will-change: transform; }

/* výseče: obrys v klidu (--clip), před náběhem (--clip-0), střed výseče (--c), levý dolní roh (--lx) */
.sports [data-lane="0"] { --clip: polygon(0 0, 27.5% 0, 21.5% 100%, 0 100%);           --clip-0: polygon(0 100%, 21.5% 100%, 21.5% 100%, 0 100%);         --c: 12.25%; --lx: 0%; }
.sports [data-lane="1"] { --clip: polygon(28.5% 0, 52.5% 0, 46.5% 100%, 22.5% 100%);   --clip-0: polygon(22.5% 100%, 46.5% 100%, 46.5% 100%, 22.5% 100%); --c: 37.5%;  --lx: 22.5%; }
.sports [data-lane="2"] { --clip: polygon(53.5% 0, 77.5% 0, 71.5% 100%, 47.5% 100%);   --clip-0: polygon(47.5% 100%, 71.5% 100%, 71.5% 100%, 47.5% 100%); --c: 62.5%;  --lx: 47.5%; }
.sports [data-lane="3"] { --clip: polygon(78.5% 0, 100% 0, 100% 100%, 72.5% 100%);     --clip-0: polygon(72.5% 100%, 100% 100%, 100% 100%, 72.5% 100%);   --c: 87.75%; --lx: 72.5%; }

/* ohnisko fotky v klidové výseči (--fx na šířku, --fy na mobilu) a výřez rozbalené fotky */
.sport-photo[data-sport="hokej"]    { --fx: 40%; --fy: 48%; --pos: 50% 62%; --pos-m: 52% 50%; }
.sport-photo[data-sport="inline"]   { --fx: 46%; --fy: 30%; --pos: 50% 50%; --pos-m: 50% 50%; }
.sport-photo[data-sport="florbal"]  { --fx: 62%; --fy: 50%; --pos: 50% 45%; --pos-m: 64% 50%; }
.sport-photo[data-sport="hokejbal"] { --fx: 36%; --fy: 45%; --pos: 50% 55%; --pos-m: 40% 50%; }

.sport-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--navy-2);
  clip-path: var(--clip);
  transition: clip-path .8s var(--ease-sport);
}
.sport-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos);
  transform: translate(calc(var(--c) - var(--fx)), 0) scale(1.1);
  transition: transform .8s var(--ease-sport);
}
/* Když je plocha poblíž, má každá fotka trvalou vlastní vrstvu: prohlížeč ji vykreslí jednou
   a při animaci ji jen posouvá — nevytváří a neruší vrstvy na začátku a konci každého pohybu. */
.sports.is-near .sport-photo img { will-change: transform; }
.sports.is-near .sport-label { will-change: opacity; }
/* tmavý přechod pod popisky — ořízne se spolu s výsečí */
.sport-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,22,74,.78) 0%, rgba(8,22,74,.28) 30%, rgba(8,22,74,0) 52%);
  pointer-events: none;
}
/* pořadí vrstev nastavuje JS (z-index 2–5): rozbalená fotka nahoře,
   skládající se zůstávají nad klidovými, dokud nedojedou do svých výsečí */
.sport-photo.is-on,
.sport-photo.is-under { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
/* rozbalená fotka se lehce posouvá proti kurzoru (--px/--py nastavuje JS) */
.sport-photo.is-on img { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1.04); }

/* klikací plochy mají stejný šikmý obrys jako výseče — clip-path ořízne i zásah myší */
.sport-lanes { position: absolute; inset: 0; z-index: 10; }
.sport-lane {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: var(--clip);
}
.sport-lane:focus { outline: none; }
.sport-label {
  position: absolute;
  left: calc(var(--lx) + clamp(16px, 2.2vw, 30px));
  bottom: clamp(16px, 2.6vw, 32px);
  max-width: 20%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 16px rgba(8,22,74,.5);
  transition: opacity .45s ease;
}
.sport-lane:focus-visible .sport-label { outline: 3px solid var(--orange); outline-offset: 8px; border-radius: 10px; }
.sport-label .sport-obj { --s: 24px; filter: drop-shadow(0 3px 4px rgba(4,12,40,.4)); }
.sport-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.02;
}
.sport-word { display: inline-block; white-space: nowrap; }
.sport-word > span { display: inline-block; }
.sports.is-active .sport-lane:not(.is-on) .sport-label { opacity: .5; }
.sport-lane.is-on .sport-word > span { animation: sportHop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--k) * 32ms); }
@keyframes sportHop {
  0%   { transform: none; }
  40%  { transform: translateY(-.3em) rotate(-5deg); }
  100% { transform: none; }
}

/* náběh: výseče vyrostou od spodní hrany jedna po druhé */
.sports.reveal:not(.revealed) .sport-photo { clip-path: var(--clip-0); }
.sports.reveal:not(.revealed) .sport-label { opacity: 0; }
.sports.revealed .sport-photo { animation: sportRise 1s var(--ease-sport) backwards; animation-delay: calc(var(--i) * 110ms); }
.sports.revealed .sport-label { animation: sportLabelIn .6s cubic-bezier(.2,.7,.3,1) backwards; animation-delay: calc(var(--i) * 110ms + 450ms); }
@keyframes sportRise { from { clip-path: var(--clip-0); } to { clip-path: var(--clip); } }
@keyframes sportLabelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* předmět daného sportu — puk, inline puk, florbalový a hokejbalový míček */
.sport-obj {
  --s: 46px;
  position: relative;
  display: inline-block;
  flex: none;
  width: var(--s);
  height: var(--s);
}
.sport-obj::before,
.sport-obj::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.sport-obj::before { background: center / contain no-repeat; rotate: var(--rot, 0deg); }
.sport-obj::after {
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.6), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.28) 100%);
}
.sport-obj[data-sport="florbal"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19.5' fill='%23ff4f9c'/%3E%3Cg fill='%23b51f66'%3E%3Ccircle cx='20' cy='20' r='3.1'/%3E%3Ccircle cx='30' cy='20' r='2.7'/%3E%3Ccircle cx='25' cy='28.7' r='2.7'/%3E%3Ccircle cx='15' cy='28.7' r='2.7'/%3E%3Ccircle cx='10' cy='20' r='2.7'/%3E%3Ccircle cx='15' cy='11.3' r='2.7'/%3E%3Ccircle cx='25' cy='11.3' r='2.7'/%3E%3Ccircle cx='34.3' cy='28.3' r='1.9'/%3E%3Ccircle cx='20' cy='36.6' r='1.9'/%3E%3Ccircle cx='5.7' cy='28.3' r='1.9'/%3E%3Ccircle cx='5.7' cy='11.7' r='1.9'/%3E%3Ccircle cx='20' cy='3.4' r='1.9'/%3E%3Ccircle cx='34.3' cy='11.7' r='1.9'/%3E%3C/g%3E%3C/svg%3E");
}
.sport-obj[data-sport="hokejbal"]::before { background: #FF7417; }
/* puky jsou vidět zešikma: nekutálejí se, jen se v pohybu naklání */
.sport-obj[data-sport="hokej"],
.sport-obj[data-sport="inline"] { height: calc(var(--s) * .65); rotate: var(--tilt, 0deg); }
.sport-obj[data-sport="hokej"]::before,
.sport-obj[data-sport="inline"]::before { border-radius: 0; rotate: none; }
.sport-obj[data-sport="hokej"]::after,
.sport-obj[data-sport="inline"]::after { content: none; }
.sport-obj[data-sport="hokej"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cpath d='M2 9v8c0 4.4 8 8 18 8s18-3.6 18-8V9z' fill='%23090b10'/%3E%3Cpath d='M6 14.2V21.6M10 15.6V23.2M14 16.4V24.1M18 16.8V24.6M22 16.8V24.6M26 16.4V24.1M30 15.6V23.2M34 14.2V21.6' stroke='%232b303a' stroke-width='1.3'/%3E%3Cellipse cx='20' cy='9' rx='18' ry='7.5' fill='%23272b34'/%3E%3Cellipse cx='16' cy='7.4' rx='9' ry='3' fill='%23474c58' opacity='.6'/%3E%3C/svg%3E");
}
.sport-obj[data-sport="inline"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26'%3E%3Cpath d='M2 9v8c0 4.4 8 8 18 8s18-3.6 18-8V9z' fill='%23c2480c'/%3E%3Cpath d='M6 14.2V21.6M10 15.6V23.2M14 16.4V24.1M18 16.8V24.6M22 16.8V24.6M26 16.4V24.1M30 15.6V23.2M34 14.2V21.6' stroke='%23e3661f' stroke-width='1.6'/%3E%3Cellipse cx='20' cy='9' rx='18' ry='7.5' fill='%23ff7a22'/%3E%3Cg fill='%23ffb37d'%3E%3Cellipse cx='33' cy='9' rx='1.9' ry='1'/%3E%3Cellipse cx='26.5' cy='13.5' rx='1.9' ry='1'/%3E%3Cellipse cx='13.5' cy='13.5' rx='1.9' ry='1'/%3E%3Cellipse cx='7' cy='9' rx='1.9' ry='1'/%3E%3Cellipse cx='13.5' cy='4.5' rx='1.9' ry='1'/%3E%3Cellipse cx='26.5' cy='4.5' rx='1.9' ry='1'/%3E%3C/g%3E%3Cellipse cx='20' cy='9' rx='5' ry='2.1' fill='%23e05a12'/%3E%3C/svg%3E");
}

/* předmět místo kurzoru (jen myš) */
.sport-ball {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.sport-ball .sport-obj { position: absolute; left: 0; top: 0; translate: -50% -50%; filter: drop-shadow(0 8px 10px rgba(4,12,40,.45)); }
.sports.has-ball .sport-ball { opacity: 1; }
.sports.has-ball,
.sports.has-ball .sport-lane { cursor: none; }
.sport-hit {
  position: absolute;
  z-index: 11;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  pointer-events: none;
}

/* mobil: výseče se otočí na šikmé pruhy pod sebou */
@media (max-width: 640px) {
  .sports { height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
  .sports [data-lane="0"] { --clip: polygon(0 0, 100% 0, 100% 20.5%, 0 27.5%);          --clip-0: polygon(0 0, 0 0, 0 27.5%, 0 27.5%);       --c: 12%;   --ly: 13%; }
  .sports [data-lane="1"] { --clip: polygon(0 29.5%, 100% 22.5%, 100% 45.5%, 0 52.5%);  --clip-0: polygon(0 29.5%, 0 29.5%, 0 52.5%, 0 52.5%); --c: 37.5%; --ly: 39.6%; }
  .sports [data-lane="2"] { --clip: polygon(0 54.5%, 100% 47.5%, 100% 70.5%, 0 77.5%);  --clip-0: polygon(0 54.5%, 0 54.5%, 0 77.5%, 0 77.5%); --c: 62.5%; --ly: 64.6%; }
  .sports [data-lane="3"] { --clip: polygon(0 79.5%, 100% 72.5%, 100% 100%, 0 100%);    --clip-0: polygon(0 79.5%, 0 79.5%, 0 100%, 0 100%);   --c: 88%;   --ly: 89%; }
  .sport-photo img { object-position: var(--pos-m); transform: translate(0, calc(var(--c) - var(--fy))) scale(1.1); }
  .sport-photo::after { background: linear-gradient(90deg, rgba(8,22,74,.72) 0%, rgba(8,22,74,.22) 45%, rgba(8,22,74,0) 68%); }
  .sport-label {
    left: 18px;
    top: var(--ly);
    bottom: auto;
    max-width: 70%;
    translate: 0 -50%;
    rotate: -4deg;
  }
  .sport-name { font-size: 24px; }
}


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,42,92,.06);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-size: 26px; margin-bottom: 4px; }
.contact-card .role {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 18px;
}
.contact-card .field { margin-top: 14px; font-size: 15px; color: var(--ink); }
.contact-card .field small {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ── Footer — top-down ice rink ── */
.footer {
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(31,182,232,.10), transparent 70%),
    linear-gradient(180deg, #FBFEFF 0%, #EAF5FC 55%, #E1EFF9 100%);
  color: var(--ink);
  padding: 0 0 32px;
  margin-top: var(--section-y);
  position: relative;
  z-index: 2;
}
/* Archiv končí tmavou arénou — zápatí (mantinel) na ni navazuje přímo, bez světlého pruhu */
main:has(> .archive-stage:last-child) + .footer {
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
  --boards-h: 62px;
}
/* the trail lands here: a soft glow at the centre faceoff dot */
.footer::before {
  content: "";
  position: absolute;
  left: 50%; top: calc(var(--boards-h) + 40px);
  width: 240px; height: 240px;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(31,182,232,.22), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}
/* Rink markings — hřiště drží poměr stran (meet), jen se zvětšuje/zmenšuje */
.rink-wrap { position: relative; }
.footer .rink {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* počítač: protáhlé hřiště, tablet: skutečný poměr 2 : 1, telefon: otočené na výšku */
.footer .rink-m, .footer .rink-t, .footer .rink-v { display: none; }
@media (max-width: 1000px) {
  .footer .rink-h { display: none; }
  .footer .rink-m { display: block; }
}
@media (max-width: 560px) {
  .footer .rink-m { display: none; }
  .footer .rink-v { display: block; }
  /* telefon: hřiště na výšku, výšku určuje obsah a JS (initFooterRink) hřiště dokreslí tak,
     aby pořadatel byl v horním pásmu, partneři ve středním a sítě v dolním — modré čáry
     leží v mezerách mezi nimi. Odsazení nahoře a dole = zaoblený konec, branková čára a branka. */
  .rink-wrap { padding: 84px 20px; }
  .footer-grid3 { width: 100%; }
}
.rk-ice { fill: rgba(255,255,255,.55); stroke: rgba(11,42,92,.16); stroke-width: 1.5; }
/* třetiny hřiště: krajní pásma bílý led, střední pásmo lehce do modra, modré čáry výraznější */
.rk-neutral { fill: rgba(31,150,232,.07); }
.rk-blue { fill: rgba(31,110,232,.34); }
.rk-red { fill: rgba(226,35,26,.16); }
.rk-goal { fill: none; stroke: rgba(226,35,26,.25); stroke-width: 1; }
.rk-center { fill: none; stroke: rgba(31,110,232,.28); stroke-width: 1; }
.rk-center-dot { fill: rgba(31,110,232,.4); }
.rk-circle { fill: none; stroke: rgba(226,35,26,.2); stroke-width: 1; }
.rk-dot { fill: rgba(226,35,26,.32); }
.rk-ells { fill: none; stroke: rgba(226,35,26,.3); stroke-width: 1.2; }
.rk-crease { fill: rgba(87,209,242,.2); stroke: rgba(226,35,26,.28); stroke-width: 1; }
.rk-net { fill: rgba(255,255,255,.7); stroke: rgba(226,35,26,.32); stroke-width: 1; }

/* Mantinel s plexisklem na horní hraně patky */
.footer-boards {
  position: relative;
  height: var(--boards-h);
  margin-bottom: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
}
.fb-glass {
  flex: 1;
  border-top: 1px solid rgba(11,42,92,.10);
  background:
    /* odlesky na skle */
    linear-gradient(105deg, transparent 0 18%, rgba(255,255,255,.75) 20%, transparent 24%) 0 0 / 420px 100% repeat-x,
    /* sloupky mezi tabulemi skla */
    repeating-linear-gradient(90deg, rgba(11,42,92,.10) 0 2px, transparent 2px 210px),
    linear-gradient(180deg, rgba(214,240,251,.15), rgba(190,226,246,.55));
}
.fb-board {
  height: 30px;
  background:
    /* spoje panelů mantinelu */
    repeating-linear-gradient(90deg, transparent 0 209px, rgba(11,42,92,.06) 209px 210px),
    linear-gradient(180deg, #FFFFFF 0%, #F4F8FB 100%);
  /* madlo nahoře, tlumeně žlutý okop dole */
  border-top: 5px solid rgba(11,42,92,.58);
  border-bottom: 6px solid rgba(245,183,58,.6);
  box-shadow: 0 12px 20px -14px rgba(11,42,92,.35);
}

@media (max-width: 700px) {
  .footer .rink { opacity: .55; }
  /* comfortable tap targets */
  .f-contact a, .f-contact .f-line { min-height: 44px; }
  .footer-bottom { font-size: 13px; }
  .footer-bottom-links { gap: 8px; flex-wrap: wrap; }
  .footer-bottom-links button { min-height: 44px; padding: 0 10px; }
}

.footer .container { position: relative; z-index: 1; }

/* New-life footer: organizer + partners, three zones */
.footer-grid3 {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 1000px) { .footer-grid3 { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 560px) { .footer-grid3 { grid-template-columns: 1fr; } }

.f-eyebrow {
  font-family: var(--font-headline);
  font-size: 15px; /* dřív 11 px — na mobilu i na ledě špatně čitelné */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  font-weight: 600;
  margin-bottom: 14px;
}
.f-org-name {
  font-family: var(--font-headline);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.f-org-name span { color: var(--muted); font-size: .6em; font-weight: 600; }
.f-org-link { color: inherit; text-decoration: none; transition: color .15s ease; }
.f-org-link:hover { color: var(--orange); }
/* v řádku s copyrightem je odkaz oranžový hned, ať je vidět, že se dá kliknout */
.footer-bottom .f-org-link { color: var(--orange); font-weight: 700; }
.footer-bottom .f-org-link:hover { color: var(--accent-fill); text-decoration: underline; text-underline-offset: 3px; }

.f-contact {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-contact a, .f-contact .f-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}
.f-contact a:hover { color: var(--orange); }
/* decentní ikony u údajů pořadatele: jen tenká čára, bez podkladu */
.f-ic { display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; color: var(--cyan-ink); }
.f-ic svg { width: 19px; height: 19px; }
.f-contact a:hover .f-ic { color: var(--orange); }
/* Prostřední sloupec: partneři pod sebou */
.f-partners { display: flex; flex-direction: column; gap: 24px; }

/* Pravý sloupec: menší verze dlaždic sítí ze stránky Kontakt */
.f-social-tiles { display: grid; gap: 14px; }
.f-social-tile.c-social { min-height: 0; padding: 18px 20px; gap: 4px; }
.f-social-tile .c-social-kicker { font-size: 13px; letter-spacing: .1em; }
.f-social-tile .c-social-kicker svg { width: 18px; height: 18px; }
.f-social-tile b { font-size: clamp(19px, 1.8vw, 22px); margin: 4px 0 0; }
.f-social-tile .c-social-mark { width: 120px; height: 120px; right: -18px; bottom: -28px; }
.f-social-tile .c-social-cta { padding: 7px 12px; font-size: 12px; }
@media (max-width: 1000px) {
  .f-socials { grid-column: 1 / -1; }
  .f-social-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .f-social-tiles { grid-template-columns: 1fr; } }

/* Počítač: protáhlé kluziště přes celou šířku (780 : 280), obsah uvnitř ledu, sloupce stejně vysoké */
@media (min-width: 1001px) {
  .rink-wrap {
    aspect-ratio: 780 / 280;
    display: flex;
    align-items: center;
    padding: clamp(32px, 4vw, 56px) 0;
  }
  .footer-boards { margin-bottom: clamp(24px, 3vw, 40px); }
  /* Sloupce sedí na čárách hřiště (v % šířky ledu, jako SVG rink-h 780 × 280):
     partneři ve středním pásmu s odstupem od modrých čar, sítě přesně uprostřed mezi
     modrou a brankovou čarou, pořadatel zrcadlově vlevo — od partnerů stejně daleko jako sítě. */
  .footer-grid3 {
    --goal: 5.128%;   /* branková čára: 40 / 780 */
    --blue: 33%;      /* modrá čára: rinkMarks(780, 280, 0.33) */
    --inset: 2.6%;    /* odstup partnerů od modrých čar */
    --side: 25%;      /* šířka sloupce pořadatele a sítí */
    width: 100%;
    align-items: stretch;
    grid-template-columns: var(--side) calc(100% - 2 * var(--blue) - 2 * var(--inset)) var(--side);
    column-gap: calc((var(--blue) - var(--goal)) / 2 + var(--inset) - var(--side) / 2);
    justify-content: center;
  }
  .f-org, .f-socials { display: flex; flex-direction: column; }
  /* pořadatel: nadpis nahoře v řadě s ostatními, zbytek svisle na středu, zarovnaný doprava */
  .f-org { text-align: right; }
  .f-org-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .f-org-name { margin-bottom: 10px; }
  .f-contact { gap: 10px; margin: 0; align-items: flex-end; }
  /* zarovnáno doprava: ikony za textem v jedné svislé linii */
  .f-contact a, .f-contact .f-line { flex-direction: row-reverse; }
  /* dlaždice sítí se protáhnou, jméno profilu sedne ke spodní hraně */
  .f-social-tiles { flex: 1; grid-auto-rows: 1fr; }
  .f-social-tile.c-social b { margin-top: auto; }
  /* dvě loga vedle sebe i v užším sloupci */
  .f-logo-row .f-logo-card { min-width: 100px; padding: 14px 12px; }
  /* nadpisy partnerů na střed */
  .f-partner .f-eyebrow { text-align: center; }
}

/* Menší notebooky: kluziště je nižší, tak obsah trochu zhustíme, aby zůstal uvnitř ledu */
@media (min-width: 1001px) and (max-width: 1180px) {
  .rink-wrap { padding-top: 14px; padding-bottom: 14px; }
  .f-partners { gap: 14px; }
  .footer .f-eyebrow { margin-bottom: 10px; }
  .f-logo-card.lg { min-height: 104px; }
  .f-logo-card.lg img { max-height: 70px; }
  .f-logo-row .f-logo-card { min-height: 80px; }
}

/* Tablet na výšku: jako telefon — hřiště na výšku, obsah pod sebou na středu uvnitř ledu
   (nahoře pořadatel, uprostřed partneři, dole sítě) */
@media (min-width: 561px) and (max-width: 1000px) and (orientation: portrait) {
  .footer .rink-m { display: none; }
  .footer .rink-t { display: block; }
  /* jako telefon: výška podle obsahu, hřiště dokreslí JS (initFooterRink) */
  .rink-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 96px 32px;
  }
  /* jako telefon: stejné mezery kolem modrých i červené čáry */
  .footer-grid3 { width: 100%; grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .f-partners { gap: 48px; }
  .f-contact { align-items: center; }
  .f-logo-row { justify-content: center; }
  .f-social-tile.c-social { align-items: center; text-align: center; }
}

/* Partner logo cards */
.f-logo-row { display: flex; flex-wrap: wrap; gap: 14px; }
.f-logo-card {
  flex: 1 1 0;
  min-width: 130px;
  min-height: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.f-logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.f-logo-card.lg { min-height: 132px; }

/* Text wordmarks (swap for real logo <img> later) */
.f-logo-text {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wm-vitar {
  font-size: clamp(36px, 5vw, 54px);
  color: #1C75BC;
  font-style: italic;
  font-family: "Fredoka", var(--font-headline);
}
.wm-vitar i {
  width: 14px; height: 14px; border-radius: 50%;
  background: #8DC63F; display: inline-block; margin-bottom: .5em;
}
.wm-vitar sup { font-size: .3em; color: #1C75BC; }
.wm-strida {
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
}
.wm-strida small {
  font-size: .42em;
  letter-spacing: .42em;
  font-weight: 700;
  color: var(--ink-soft);
  padding-left: .42em;
}
.wm-ccm {
  font-size: clamp(30px, 4vw, 44px);
  color: #E2231A;
  font-style: italic;
  letter-spacing: -0.02em;
}

.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--ink-soft);
}
.footer-bottom-links button:hover { color: var(--orange); }

/* Telefon: celá patka zarovnaná na střed (sloupce jsou pod sebou nad svislým hřištěm) */
@media (max-width: 560px) {
  /* mezi bloky leží modré čáry — mezera musí být dost velká, aby čára nešla přes text */
  /* modré čáry leží uprostřed mezer mezi bloky, červená uprostřed mezery mezi skupinami partnerů
     (initFooterRink) — stejná mezera všude = každá skupina sedí na středu své části pásma
     a od čar má 20 px; střední pásmo se tím nezvětšuje */
  .footer-grid3 { text-align: center; gap: 40px; }
  .f-partners { gap: 40px; }
  /* dvě loga vedle sebe i na nejužších telefonech — pod sebou by zbytečně natáhla střední pásmo */
  .f-logo-row .f-logo-card { min-width: 0; padding: 14px 12px; }
  .f-org-name { margin-bottom: 8px; }
  .f-contact { align-items: center; gap: 0; margin-bottom: 0; }
  .f-contact a, .f-contact .f-line { min-height: 38px; }
  .f-logo-row { justify-content: center; }
  .f-social-tile.c-social { align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* utilities */
.flex { display: flex; }
.row-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--ink-soft); }

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 22px; height: 22px; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
  /* po náběhu vrstvu uvolnit — trvalé vrstvy na telefonu dojdou paměti grafiky
     a části stránky se pak při scrollu vykreslí se zpožděním */
  will-change: auto;
}

/* ── History timeline (unified card format) ── */
.history-list {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  position: relative;
}
.history-list::before {
  content: "";
  position: absolute;
  top: 16px; bottom: 16px;
  left: clamp(38px, 6vw, 80px);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--cyan) 6%, var(--navy) 96%, transparent);
  opacity: .25;
  z-index: 0;
}
.history-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(76px, 12vw, 160px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  background: none;
  border: 0;
  width: 100%;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.history-year {
  font-family: var(--font-headline);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: right;
  padding-right: clamp(16px, 3vw, 32px);
}
.history-body {
  position: relative;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.history-card:hover .history-body {
  background: var(--white);
  box-shadow: var(--shadow-float);
  transform: translateX(6px);
}
.history-icon {
  width: clamp(56px, 7vw, 80px);
  height: clamp(56px, 7vw, 80px);
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(31,182,232,.18), rgba(11,42,92,.08));
  color: var(--navy);
  border: 1.5px solid rgba(11,42,92,.10);
  position: relative;
  transition: transform .3s ease, background .25s ease;
}
.history-icon svg { width: 55%; height: 55%; stroke-width: 1.7; }
.history-card:hover .history-icon {
  background: linear-gradient(140deg, var(--cyan), var(--navy));
  color: var(--white);
  transform: rotate(-6deg) scale(1.05);
}
.history-card:hover .history-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(31,182,232,.4);
  animation: spin 12s linear infinite;
}
.history-theme {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.history-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.history-meta b { font-weight: 600; color: var(--ink-soft); }
.history-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream, transparent);
  display: grid; place-items: center;
  color: var(--orange);
  border: 1.5px solid currentColor;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.history-card:hover .history-arrow {
  background: var(--orange);
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .history-list::before { left: 28px; }
  .history-card { grid-template-columns: 56px 1fr; gap: 14px; }
  .history-year { padding-right: 8px; font-size: 36px; }
  .history-body { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .history-body .history-arrow { display: none; }
}

/* ── Highlights row (3 small things from a year) ── */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.highlight {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform .2s ease;
}
.highlight:hover { transform: translateY(-3px); background: var(--white); }
.highlight-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
  color: var(--white);
  display: grid; place-items: center;
}
.highlight-icon svg { width: 24px; height: 24px; }
.highlight:nth-child(2) .highlight-icon { background: linear-gradient(135deg, #FFD4B5, var(--orange)); }
.highlight:nth-child(3) .highlight-icon { background: linear-gradient(135deg, #D9E5FA, var(--navy)); }
.highlight b { font-family: var(--font-headline); font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.25; }

/* ── Archive scrubber stage ─────────────────────────────────────────────── */
.archive-stage {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}
/* Pozadí jen v modrých z manuálu (navy #0B2A5C, azurová #1FB6E8, světlá #57D1F2).
   Pět variant se pomalu prolíná — mění se jen poloha a síla azurové záře, nikdy ne odstín,
   takže nevzniká fialová ani hnědá. Tmavý spodek drží kontrast pro bílý text.
   Všechno je ukotvené v px od horního okraje, ne v % výšky: na telefonu se výška scény mění
   s každým měsícem (jiný počet a délka karet) a záře i proužky by při přepnutí poskočily
   — pozadí by „problikávalo". Hodnoty odpovídají původním % při výšce scény na počítači (836 px). */
.archive-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #04132E linear-gradient(180deg, #0B2A5C 0, #061A3D 500px, #04132E 836px);
}
.archive-bg-tile {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.4s ease;
}
.archive-bg-tile.on { opacity: 1; }
.archive-bg-tile.tone-1 { background: radial-gradient(900px 520px at 72% 234px, rgba(31,182,232,.42), transparent 62%); }
.archive-bg-tile.tone-2 { background: radial-gradient(900px 520px at 22% 268px, rgba(31,182,232,.34), transparent 62%); }
.archive-bg-tile.tone-3 { background: radial-gradient(1000px 560px at 50% 150px, rgba(87,209,242,.30), transparent 62%); }
.archive-bg-tile.tone-4 { background: radial-gradient(900px 520px at 84% 502px, rgba(31,182,232,.36), transparent 62%); }
.archive-bg-tile.tone-5 { background: radial-gradient(900px 520px at 36% 585px, rgba(87,209,242,.28), transparent 62%); }
.archive-bg-overlay {
  position: absolute; inset: 0;
  background:
    /* šikmé proužky se počítají od středu plochy — proto pevně vysoká plocha (vyšší než scéna) */
    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 3px, transparent 3px 14px) top / 100% 2000px no-repeat,
    /* vlevo nahoře pod nadpisem a posuvníky ztmavit — čitelnost bílého textu */
    radial-gradient(900px 600px at 18% 251px, rgba(4,19,46,.55), transparent 70%),
    linear-gradient(180deg, rgba(4,19,46,.10) 0, rgba(4,19,46,.55) 836px);
}

/* ── Archive graphic layer: boards, spotlight, ice ── */
/* Sponsor-band boards along the top edge */
.archive-boards {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 34px;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.10) 0 60px,
      rgba(255,255,255,.03) 60px 120px);
  border-bottom: 2px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.archive-boards::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31,182,232,.7), transparent);
}
/* Spotlight cone aimed at the poster stage */
.archive-spot {
  position: absolute;
  top: -6%;
  right: 4%;
  width: 58%;
  height: 118%;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 168deg at 50% 0%,
    transparent 0deg,
    rgba(255,255,255,.10) 8deg,
    rgba(190,230,255,.16) 15deg,
    rgba(255,255,255,.06) 22deg,
    transparent 30deg);
  filter: blur(6px);
  mix-blend-mode: screen;
}
@media (max-width: 900px) { .archive-spot { display: none; } }
/* Ice surface with sheen at the bottom of the stage */
.archive-ice {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 250px;   /* pevně, ne % výšky scény — ta se na telefonu mění s měsícem */
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(120,200,245,.10) 55%, rgba(190,235,255,.18) 100%);
}
.archive-ice::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(190,235,255,.5), transparent);
}
/* faint faceoff circle centred behind the poster */
.archive-circle {
  position: absolute;
  right: 16%;
  bottom: -14%;
  width: clamp(240px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(226,90,60,.16);
  z-index: 1;
  pointer-events: none;
}
.archive-circle::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.10);
}
@media (max-width: 900px) { .archive-circle { display: none; } }

.archive-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 84px);
}
/* nadpis archivu v levém sloupci nad posuvníky */
.archive-head h1 {
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,.5);
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: .92;
}
.archive-head h1 span { color: var(--cyan-2); }
@media (max-width: 900px) {
  .archive-grid { grid-template-columns: 1fr; gap: 36px; }
}

.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: var(--white);
}

/* Scrubber */
.scrubber { display: flex; flex-direction: column; gap: 12px; }
.scrubber-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.scrubber-label {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  font-weight: 600;
}
.scrubber-value {
  position: relative;
  font-family: var(--font-headline);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 26px rgba(120,200,245,.45);
}
.scrubber-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  padding: 16px 4px;
  background: rgba(4,19,46,.45);
  border: 1px solid rgba(140,200,245,.22);
  border-radius: var(--r-pill);
  backdrop-filter: blur(10px);
}
.scrubber-track::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  z-index: 0;
}
.scrubber-track-month { grid-auto-columns: minmax(0, 1fr); }
.scrubber-tick {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.82);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .04em;
  transition: color .2s ease, transform .2s ease;
  position: relative;
  z-index: 1;
}
.scrubber-tick-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transition: background .2s ease, transform .25s ease, box-shadow .25s ease;
}
.scrubber-tick:hover:not(.disabled) { color: var(--white); }
.scrubber-tick:hover:not(.disabled) .scrubber-tick-dot { background: var(--cyan-2); transform: scale(1.2); }
@media (max-width: 760px) {
  .scrubber-tick { min-height: 48px; justify-content: center; font-size: 13px; }
  .scrubber-tick-dot { width: 12px; height: 12px; }
}
.scrubber-tick.active { color: var(--white); transform: translateY(-2px); }
.scrubber-tick.active .scrubber-tick-dot {
  background: var(--accent-on-dark);
  transform: scale(1.6);
  box-shadow: 0 0 0 6px rgba(255,106,26,.22);
}
/* měsíc s turnajem svítí azurově (jako rozsvícená světla na ledě) */
.scrubber-tick:not(.disabled):not(.active) { color: #fff; }
.scrubber-tick:not(.disabled):not(.active) .scrubber-tick-dot {
  background: var(--cyan-2);
  box-shadow: 0 0 0 4px rgba(87,209,242,.16), 0 0 14px 2px rgba(87,209,242,.85);
  animation: tickGlow 2.8s ease-in-out infinite;
}
@keyframes tickGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(87,209,242,.16), 0 0 14px 2px rgba(87,209,242,.85); }
  50%      { box-shadow: 0 0 0 6px rgba(87,209,242,.10), 0 0 20px 4px rgba(87,209,242,.55); }
}
/* měsíc bez turnaje: výrazně ztlumený */
.scrubber-tick.disabled {
  cursor: not-allowed;
  color: rgba(190,215,245,.32);
}
.scrubber-tick.disabled .scrubber-tick-dot { background: rgba(190,215,245,.18); width: 7px; height: 7px; }

/* ikonka myši u „Měsíc" — kolečko přepíná měsíce (jen počítač) */
.scrubber-label { display: inline-flex; align-items: center; gap: 10px; }
.wheel-hint {
  display: none;
  position: relative;
  width: 14px; height: 21px;
  border: 1.6px solid currentColor;
  border-radius: 8px;
  opacity: .45;
  transition: opacity .3s ease, color .3s ease;
}
.wheel-hint i {
  position: absolute;
  left: 50%; top: 4px;
  width: 2px; height: 5px;
  margin-left: -1px;
  border-radius: 2px;
  background: currentColor;
}
@media (hover: hover) and (pointer: fine) { .wheel-hint { display: inline-block; } }
/* kurzor nad posuvníkem → kolečko přepíná: ikonka se rozsvítí a „točí", lišta se rozzáří */
.scrubber.wheel-on .wheel-hint { opacity: 1; color: var(--accent-on-dark); }
.scrubber.wheel-on .wheel-hint i { animation: wheelRoll 1.3s ease-in-out infinite; }
.scrubber .scrubber-track { transition: border-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .scrubber.wheel-on .scrubber-track { border-color: rgba(87,209,242,.45); box-shadow: 0 0 0 4px rgba(87,209,242,.08), 0 0 24px rgba(87,209,242,.18); }
}
@keyframes wheelRoll {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(7px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
/* přepnutí měsíce: název krátce „naskočí" */
#archiveMonthValue.bump { animation: monthBump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes monthBump {
  0%   { transform: translateY(8px); opacity: .3; }
  100% { transform: translateY(0); opacity: 1; }
}
.scrubber-tick-label {
  font-size: 12px;
}
/* měsíce: dvoumístné číslo (03), na telefonu jen číslo (3) — celý název je nad vybraným měsícem */
.tick-pad { font-variant-numeric: tabular-nums; }
.tick-num { display: none; }
@media (max-width: 560px) {
  .tick-pad { display: none; }
  .tick-num { display: inline; font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
}

/* Posuvníky roku a měsíce — osa bez rámečku (zadání majitele, podle návrhu pro telefon).
   Značka stojí v řádku pevné výšky (32 px) → osa jde přesně středem kolečka, čárky i čtverečku.
   Osu kreslí každý rok/měsíc sám (úsek přes svou šířku), aby šla u vybraného přerušit —
   mezera kolem čtverečku je průhledná a pozadí archivu se pod ní mění.
   Měsíc s turnajem = modré kolečko, bez turnaje = svislá čárka; vybraný = čtvereček, mezera, ohraničení. */
.archive-controls .scrubber-value { display: none; }   /* hodnota je u vybrané značky (název měsíce nad čtverečkem) */
.archive-controls .scrubber-track { background: none; border: 0; border-radius: 0; backdrop-filter: none; box-shadow: none; padding: 8px 0 6px; }
.archive-controls .scrubber-track::before { display: none; }
.archive-controls .scrubber-track-month { padding-top: 30px; }
@media (hover: hover) and (pointer: fine) {
  .archive-controls .scrubber.wheel-on .scrubber-track { border-color: transparent; box-shadow: none; }
}
.archive-controls .scrubber-tick {
  display: grid; grid-template-rows: 32px auto; justify-items: center; align-items: center;
  gap: 2px; min-height: 0; transform: none;
}
.archive-controls .scrubber-tick::after {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; top: 15px; height: 2px;
  background: rgba(255,255,255,.2);
}
.archive-controls .scrubber-tick:first-child::after { left: 50%; }
.archive-controls .scrubber-tick:last-child::after  { right: 50%; }
/* u vybrané značky osa končí před vnějším ohraničením */
.archive-controls .scrubber-tick.active::after {
  background: linear-gradient(90deg, rgba(255,255,255,.2) calc(50% - 17px), transparent calc(50% - 17px) calc(50% + 17px), rgba(255,255,255,.2) calc(50% + 17px));
}
.archive-controls .scrubber-tick.active:first-child::after { background: linear-gradient(90deg, transparent 17px, rgba(255,255,255,.2) 17px); }
.archive-controls .scrubber-tick.active:last-child::after  { background: linear-gradient(90deg, rgba(255,255,255,.2) calc(100% - 17px), transparent calc(100% - 17px)); }

/* bez turnaje: jen svislá čárka na ose */
.archive-controls .scrubber-tick.disabled .scrubber-tick-dot {
  width: 2px; height: 10px; border-radius: 1px; background: rgba(190,215,245,.42);
}
/* vybraný rok / měsíc dvojitě: oranžový čtvereček, průhledná mezera, oranžové ohraničení */
.archive-controls .scrubber-tick.active .scrubber-tick-dot,
.archive-controls .scrubber-tick.active:hover .scrubber-tick-dot {
  width: 20px; height: 20px; border-radius: 6px; transform: none;
  background: var(--accent-on-dark);
  box-shadow: none;
  outline: 2px solid var(--accent-on-dark);
  outline-offset: 3px;
}
.archive-controls .scrubber-track-month .scrubber-tick.active::before {
  content: attr(data-month-name);
  position: absolute; left: 50%; bottom: calc(100% + 4px);
  transform: translateX(-50%);
  font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;   /* stejně velké jako roky na telefonu */
  white-space: nowrap; color: var(--accent-on-dark);
}
/* krajní měsíce: název zarovnaný ke kraji osy, ať delší (PROSINEC) nepřeteče */
.archive-controls .scrubber-track-month .scrubber-tick.active:first-child::before { left: 0; transform: none; }
.archive-controls .scrubber-track-month .scrubber-tick.active:last-child::before  { left: auto; right: 0; transform: none; }

/* Počítač (zadání majitele): rok i měsíc v jednom rámečku, popisek vlevo na řádku osy, mezi nimi
   tenký oddělovač — na velkém displeji by samotné osy působily neukotveně. Popisek sedí na výšce osy
   (osa = horní odsazení stopy + 16 px), ne na středu řádku: u měsíce je nad osou ještě jeho název. */
@media (min-width: 761px) {
  .scrubber-panel {
    background: rgba(4,19,46,.45);
    border: 1px solid rgba(140,200,245,.22);
    border-radius: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2px 22px;
  }
  .scrubber-panel .scrubber {
    display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start;
    gap: 10px; padding: 12px 0;
  }
  .scrubber-panel .scrubber + .scrubber { border-top: 1px solid rgba(140,200,245,.16); }
  .scrubber-panel .scrubber-head { justify-content: flex-start; height: 18px; }
  .scrubber-panel .scrubber-track { padding: 4px 0 2px; }
  .scrubber-panel .scrubber-track-month { padding-top: 28px; }
  /* roky a zkratky měsíců pod osou — na počítači čitelně velké */
  .scrubber-panel .scrubber-tick-label { font-size: 16px; letter-spacing: .02em; }
  .scrubber-panel .scrubber-label { font-size: 14px; }
  .scrubber-panel [data-wheel="year"]  .scrubber-head { margin-top: 9.5px; }   /* 4 + 16 − výška popisku / 2 */
  .scrubber-panel [data-wheel="month"] .scrubber-head { margin-top: 33.5px; }  /* 28 + 16 − výška popisku / 2 */
}

/* Telefon (zadání majitele): bez popisků „Rok / Měsíc", nadpis na jeden řádek a roky jako samostatný
   pás čísel (vybraný větší s oranžovou čárkou), který při mnoha ročnících přetéká za okraj displeje
   a posouvá se prstem — stejně jako karty v měsíci. Měsíce mají stejnou osu jako na počítači. */
@media (max-width: 760px) {
  /* min-width: 0 — jinak by dlouhý pás roků roztáhl sloupec (a celou stránku) místo posouvání */
  .archive-controls, .archive-controls .scrubber { min-width: 0; }
  .archive-controls { gap: 10px; }
  /* nadpis na jeden řádek: bez zalomení a písmo podle šířky displeje
     (text je široký zhruba 8,2× velikost písma; 40 px = okraje stránky) */
  .archive-head h1 br { display: none; }
  .archive-head h1 { white-space: nowrap; font-size: min(44px, calc((100vw - 40px) / 8.6)); }
  .archive-controls .scrubber-head { display: none; }

  .archive-controls .scrubber-track-year {
    display: flex;
    align-items: flex-end;
    gap: 34px;   /* zvětšený rok přesahuje do mezer — šířku v rozvržení drží malý */
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding: 6px var(--pad) 4px;
    margin-inline: calc(var(--pad) * -1);
  }
  .archive-controls .scrubber-track-year::-webkit-scrollbar { display: none; }
  /* na střed, dokud se roky vejdou; když přetečou, okraje „auto" spadnou na 0 a pás se posouvá od kraje
     (justify-content: center by při přetečení uřízl první roky) */
  .archive-controls .scrubber-track-year > .scrubber-tick:first-child { margin-left: auto; }
  .archive-controls .scrubber-track-year > .scrubber-tick:last-child  { margin-right: auto; }
  .archive-controls .scrubber-track-year .scrubber-tick {
    display: flex; flex-direction: column; align-items: center;
    flex: none; gap: 6px; scroll-snap-align: center;
  }
  .archive-controls .scrubber-track-year .scrubber-tick-dot { display: none; }
  /* vybraný rok se zvětší jen vizuálně (scale od spodní hrany), ne velikostí písma —
     ta by měnila výšku pásu a při přepnutí by poskočil plakát i výběr měsíců pod ním.
     Výška 30 px je rezervovaná pro zvětšený rok u všech, šířka zůstává podle malého písma. */
  .archive-controls .scrubber-track-year .scrubber-tick-label {
    display: flex; align-items: flex-end; height: 30px;
    font-size: 19px; line-height: 1; color: rgba(255,255,255,.5);
    transform-origin: 50% 100%;
    transition: transform .25s ease, color .25s ease;
  }
  .archive-controls .scrubber-track-year .scrubber-tick.active .scrubber-tick-label { transform: scale(calc(30 / 19)); color: #fff; }
  /* oranžová čárka pod vybraným rokem místo osy (místo drží všechny, ať pás neposkakuje) */
  .archive-controls .scrubber-track-year .scrubber-tick::after,
  .archive-controls .scrubber-track-year .scrubber-tick:first-child::after,
  .archive-controls .scrubber-track-year .scrubber-tick:last-child::after {
    content: ""; position: static; z-index: auto;
    width: 30px; height: 4px; border-radius: 2px; background: transparent;
    transition: background .25s ease;
  }
  .archive-controls .scrubber-track-year .scrubber-tick.active::after,
  .archive-controls .scrubber-track-year .scrubber-tick.active:first-child::after,
  .archive-controls .scrubber-track-year .scrubber-tick.active:last-child::after { background: var(--accent-on-dark); }
}

/* ── Karta turnaje v archivu: plakát + údaje v jednom objektu ─────────── */
.archive-poster-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  /* stejná výška pro 1 i víc turnajů — přehled při přepínání neskáče */
  min-height: clamp(560px, 50vw, 640px);
}
.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 330px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #0F2656, #081636);
  border: 1px solid rgba(140,200,245,.22);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 12px 24px rgba(0,0,0,.25);
  transform: rotate(2deg);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.archive-card:hover {
  transform: rotate(0) translateY(-8px) scale(1.02);
  box-shadow: 0 50px 90px rgba(0,0,0,.5), 0 0 0 2px rgba(87,209,242,.5);
}
.archive-card-poster { display: block; aspect-ratio: 1700 / 2400; overflow: hidden; background: var(--navy); }
.archive-card-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.archive-card:hover .archive-card-poster img { transform: scale(1.04); }
.archive-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 16px;
  border-top: 3px solid var(--accent-on-dark);
}
.ac-edition {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.ac-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.1;
  font-weight: 700;
}
.ac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 13px;
  color: rgba(220,235,255,.8);
}
.ac-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ac-meta svg { width: 14px; height: 14px; color: var(--cyan-2); }
.ac-go {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-2);
  transition: gap .25s ease;
}
.archive-card:hover .ac-go { gap: 10px; }

/* Tah prstem do strany přepíná měsíce — svisle se stránka posouvá normálně */
.archive-controls,
.archive-poster-stage { touch-action: pan-y; touch-action: pan-y pinch-zoom; }

/* Pevná rozložení podle počtu turnajů v měsíci (1 / 2 / 3) */
/* 2 turnaje: dvě karty vedle sebe, natočené proti sobě */
.archive-poster-stage.n2 { gap: 18px; }
.archive-poster-stage.n2 .archive-card { width: 250px; flex: 0 0 auto; }
.archive-poster-stage.n2 .archive-card:nth-child(1) { transform: rotate(-3deg); }
.archive-poster-stage.n2 .archive-card:nth-child(2) { transform: rotate(3deg) translateY(22px); }
/* 3 turnaje: vějíř jako karty v ruce — prostřední vpředu, krajní za ní */
.archive-poster-stage.n3 { gap: 0; }
.archive-poster-stage.n3 .archive-card { width: 200px; flex: 0 0 auto; }
.archive-poster-stage.n3 .archive-card:nth-child(1) { transform: rotate(-8deg) translateY(26px); margin-right: -46px; z-index: 1; }
.archive-poster-stage.n3 .archive-card:nth-child(2) { width: 226px; z-index: 2; transform: translateY(-6px); }
.archive-poster-stage.n3 .archive-card:nth-child(3) { transform: rotate(8deg) translateY(26px); margin-left: -46px; z-index: 1; }
/* najetí vytáhne kartu dopředu a narovná ji */
.archive-poster-stage.multi .archive-card:hover { transform: rotate(0) translateY(-10px) scale(1.04); z-index: 5; }
.archive-poster-stage.multi .archive-card-info { padding: 12px 14px 14px; }
.archive-poster-stage.multi .ac-title { font-size: 17px; }
.archive-poster-stage.multi .ac-meta { font-size: 12px; }
.archive-poster-stage.n3 .ac-meta span + span { display: none; }  /* ve vějíři jen datum, místo je v detailu */
/* 4 a víc turnajů: užší karty víc přes sebe; natočení a pokles rostou od středu (--i pořadí, --n počet) */
.archive-poster-stage.n4 { gap: 0; --cw: clamp(118px, 12.4vw, 156px); }
.archive-poster-stage.n4 .archive-card {
  --d: calc(var(--i) - (var(--n) - 1) / 2);
  width: var(--cw);
  flex: 0 0 auto;
  margin-left: calc(var(--cw) * -.4);
  z-index: calc(10 - var(--d) * var(--d));
  transform: rotate(calc(var(--d) * 4.5deg)) translateY(calc(var(--d) * var(--d) * 7px));
}
.archive-poster-stage.n4 .archive-card:first-child { margin-left: 0; }
.archive-poster-stage.n4 .archive-card:hover { z-index: 20; }
.archive-poster-stage.n4 .archive-card-info { padding: 10px 11px 12px; }
.archive-poster-stage.n4 .ac-title { font-size: 14px; }
.archive-poster-stage.n4 .ac-meta span + span { display: none; }

/* Mobil: karty se posouvají prstem do strany */
@media (max-width: 760px) {
  .archive-poster-stage { min-height: 0; }
  .archive-poster-stage.multi {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px var(--pad) 16px;
    margin-inline: calc(var(--pad) * -1);
  }
  .archive-poster-stage.multi::-webkit-scrollbar { display: none; }
  /* karty v měsíci posouvá prohlížeč sám; na kraji tah přepne měsíc */
  .archive-poster-stage.multi { touch-action: auto; overscroll-behavior-x: contain; }
  .archive-poster-stage.multi .archive-card,
  .archive-poster-stage.n3 .archive-card:nth-child(n),
  .archive-poster-stage.n4 .archive-card:nth-child(n) {
    flex: 0 0 72%;
    width: auto;
    max-width: none;
    margin: 0;
    scroll-snap-align: center;
    transform: none !important;
  }
  .archive-poster-stage.n3 .ac-meta span + span,
  .archive-poster-stage.n4 .ac-meta span + span { display: inline-flex; }
  .archive-poster-stage.n4 .archive-card:nth-child(n) { z-index: auto; }
  .archive-poster-stage.n4 .archive-card-info { padding: 12px 14px 14px; }
  .archive-poster-stage.n4 .ac-title { font-size: 17px; }
}
.archive-poster-fallback { display: block; width: 100%; height: 100%; }
.archive-poster-badge {
  position: absolute;
  top: 12px; right: 12px;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--white);
  display: grid; place-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  box-shadow: var(--shadow-orange);
  transform: rotate(-10deg);
  z-index: 2;
  animation: wobble 5s ease-in-out infinite;
}


/* ── Detail proběhlého turnaje ─────────────────────────────────────────── */
.td-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 40px); }
.td-title { margin: 6px 0 clamp(20px, 2.6vw, 30px); }
.td-edition {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.td-title h1 {
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.025em;
  line-height: .95;
  color: var(--ink);
}
.td-title .lead { max-width: 720px; margin-top: 14px; }
/* video a karta „O turnaji" vedle sebe */
.td-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  /* karta „O turnaji" a video mají stejnou výšku — řádek určí vyšší z nich */
  align-items: stretch;
}
.td-stage.no-video { grid-template-columns: minmax(280px, 380px); }
.td-video {
  /* pevná šířka buňky: při natažení na výšku karty se video nesmí rozšířit (aspect-ratio) pod kartu */
  width: 100%;
  min-width: 0;
  border-radius: var(--r-xl);
  background-size: cover;
  background-position: center;
}
.td-side { position: static; display: flex; flex-direction: column; justify-content: center; }
/* medaile se usadí doprostřed volného místa nad údaji */
.td-side .side-medal { width: min(150px, 55%); margin-top: auto; margin-bottom: auto; padding-bottom: 14px; }
@media (max-width: 900px) {
  .td-stage { grid-template-columns: 1fr; }
}
/* lišta týmů — jeden řádek zleva doprava, odznaky naskakují postupně */
.td-teams {
  display: flex;
  align-items: stretch;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding: 14px clamp(12px, 2vw, 22px);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
}
.td-team {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
}
.td-team + .td-team { border-left: 1px dashed var(--line-strong); }
/* víc než 6 týmů: dva řádky, každý roztažený přes celou šířku; mezi nimi čárkovaná linka */
.td-two-rows { flex-wrap: wrap; }
.td-break { flex: 0 0 calc(100% - 24px); height: 0; margin: 10px 12px; border-top: 1px dashed var(--line-strong); }
.td-team b {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.15;
  color: var(--ink);
}
.td-badge {
  flex-shrink: 0;
  width: 46px; height: 44px;
  background: url('/assets/img/team-badge.svg') center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(11,42,92,.2));
}
.td-teams .td-team { opacity: 0; transform: translateY(10px); }
.td-teams.revealed .td-team { animation: tdTeamIn .5s ease-out forwards; animation-delay: calc(var(--i) * 140ms + 150ms); }
.td-teams.revealed .td-badge { animation: tdBadgePop .6s cubic-bezier(.34,1.7,.5,1) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
@keyframes tdTeamIn { to { opacity: 1; transform: none; } }
@keyframes tdBadgePop {
  0%   { transform: scale(0) rotate(-40deg); }
  70%  { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (max-width: 760px) {
  /* telefon: týmy pod sebou, každý na svém řádku — celé názvy, nic se neposouvá do strany */
  .td-teams { flex-direction: column; padding: 6px clamp(14px, 4vw, 20px); }
  .td-team { flex: none; padding: 12px 2px; gap: 14px; }
  .td-team + .td-team,
  .td-break + .td-team { border-left: 0; border-top: 1px dashed var(--line-strong); }
  .td-break { display: none; }
  .td-team b { font-size: 16px; }
  .td-badge { width: 40px; height: 38px; }
}
.td-hero + .td-gallery { padding-top: clamp(12px, 2vw, 24px); }

/* Telefon a tablet: čárkovaný rámeček přímo po obvodu karet „O turnaji" a týmů
   (JS initEdgeFrame) — místo plné linky okraje, kopíruje zaoblení karty.
   U „O turnaji" se čárky pomalu posouvají dokola, tmavé pole týmů je klidné. */
/* top:auto — .detail-side má top:100px pro sticky, u relative by kartu posunul dolů */
.td-side[data-edge], .td-teams[data-edge] { position: relative; top: auto; }
.edge-frame { display: none; }
@media (max-width: 1024px) {
  [data-edge] { border: 0; }
  .edge-frame {
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  /* tmavě modré pole týmů se světlými odznaky */
  .td-teams {
    background: linear-gradient(180deg, #0F3470 0%, #0B2A5C 100%);
    backdrop-filter: none;
    box-shadow: 0 26px 50px -26px rgba(11,42,92,.65);
  }
  .td-team b { color: #fff; }
  .td-team + .td-team, .td-break, .td-break + .td-team { border-color: rgba(140,200,245,.24); }
  .td-badge { background-image: url('/assets/img/team-badge-light.svg'); filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
}.edge-frame rect { fill: none; stroke: rgba(31,182,232,.6); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 7; }
.td-teams .edge-frame rect { stroke: rgba(87,209,242,.5); }
.edge-frame.is-drift.in-view rect { animation: edgeDrift 5.2s linear infinite; }
@keyframes edgeDrift { to { stroke-dashoffset: -26px; } }   /* dvě periody čárky (6 + 7) */

/* ── Contact — simple ──────────────────────────────────────────────────── */
.contact-simple {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11,42,92,.08);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-line:hover {
  transform: translateX(6px);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.contact-line-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
  color: var(--white);
  display: grid; place-items: center;
}
.contact-line-icon svg { width: 24px; height: 24px; }
.contact-line:nth-child(2) .contact-line-icon { background: linear-gradient(135deg, #FFD4B5, var(--orange)); }
.contact-line:nth-child(3) .contact-line-icon { background: linear-gradient(135deg, #5B8DEF, #1877F2); }
.contact-line:nth-child(4) .contact-line-icon { background: linear-gradient(135deg, #F58529, #DD2A7B); }
.contact-line:nth-child(5) .contact-line-icon { background: linear-gradient(135deg, var(--navy), var(--ink)); }

.contact-line small {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.contact-line b {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Contact — dominant page ───────────────────────────────────────────── */
.contact-hero { padding-top: clamp(20px, 3vw, 40px); }
/* board strip above the hero — ties to the rink language.
   Pruh vykukuje 6 px nad fotkou, ale sahá až dolů za ni — jinak by u zaoblených rohů
   fotky (hlavně na telefonu) byly vidět jeho rovné spodní rohy. */
.contact-hero .container { padding-top: 6px; }
.contact-hero .container::before {
  content: "";
  position: absolute;
  top: 0; bottom: 24px;
  left: calc(var(--pad) + clamp(10px, 3vw, 34px));
  right: calc(var(--pad) + clamp(10px, 3vw, 34px));
  border-radius: 12px 12px 0 0;
  background:
    repeating-linear-gradient(90deg,
      var(--navy) 0 26px,
      #123A78 26px 52px);
  opacity: .5;
}
.contact-hero-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: clamp(320px, 42vw, 480px);
  background: #060C1E;
  box-shadow: var(--shadow-float);
  isolation: isolate;
}
.contact-hero-banner { position: absolute; inset: 0; z-index: 0; }
.contact-hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) saturate(1.08);
}
.contact-hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(700px 380px at 28% 26%, rgba(31,182,232,.30), transparent 62%),
    linear-gradient(180deg, rgba(6,12,30,.25) 40%, rgba(6,12,30,.82) 100%),
    linear-gradient(90deg, rgba(6,12,30,.5), transparent 55%);
}
.contact-hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: clamp(24px, 4vw, 56px);
  max-width: 660px;
}
.contact-hero-inner h1 {
  color: #fff;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.92;
  margin-top: 0;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.contact-hero-inner h1 span { color: var(--orange-2); }
.contact-hero-inner p {
  color: rgba(255,255,255,.85);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 460px;
  margin: 16px 0 0;
}
/* Maskot vpravo ve spodní části fotky */
.contact-hero-mascot {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(24px, 4vw, 56px);
  width: clamp(168px, 21vw, 280px);
  z-index: 2;
  /* je to tlačítko (klik = střela), ale bez vzhledu tlačítka */
  background: none;
  border: 0;
  margin: 0;
  padding-top: 0; padding-left: 0; padding-right: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.contact-hero-mascot:focus-visible { outline: 3px solid var(--cyan-2); outline-offset: 6px; border-radius: 24px; }
.contact-hero-mascot img {
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.45));
}
/* stín na ledě pod maskotem — při nádechu a skoku se mění */
.mascot-shadow {
  position: absolute;
  left: 22%; right: 22%;
  bottom: calc(clamp(24px, 4vw, 56px) + 2%);
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  filter: blur(2px);
  transition: transform .3s ease, opacity .3s ease;
}
/* natočení za kurzorem / rozhlížení (úhel posílá JS v --look) */
.mascot-look {
  display: block;
  width: 100%;
  transform-origin: 50% 90%;
  transform: perspective(700px) rotate(calc(4deg + var(--look, 0) * 7deg)) rotateY(calc(var(--look, 0) * -14deg));
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
/* klidové „dýchání": nepatrné natažení a stlačení od země, žádné houpání */
.mascot-body {
  display: block;
  transform-origin: 50% 92%;
  animation: mascotBreath 3.6s ease-in-out infinite;
}
@keyframes mascotBreath {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(.985, 1.03); }
}
/* občasná hra s hokejkou (třídu přidává JS) */
.contact-hero-mascot.is-stickhandle .mascot-body { animation: mascotStick .9s ease-in-out; }
@keyframes mascotStick {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg) translateX(-3px); }
  45% { transform: rotate(4deg) translateX(3px); }
  70% { transform: rotate(-3deg) translateX(-2px); }
}
/* střela: nápřah → švih → poskok radosti → dopad */
.contact-hero-mascot.is-shooting .mascot-body { animation: mascotShot 1.15s cubic-bezier(.3,.7,.3,1); }
@keyframes mascotShot {
  0%   { transform: rotate(0) scale(1, 1); }
  18%  { transform: rotate(14deg) scale(1.06, .92); }            /* nápřah + přikrčení */
  32%  { transform: rotate(-20deg) scale(.95, 1.07); }           /* švih */
  55%  { transform: translateY(-26px) rotate(-8deg) scale(.97, 1.04); } /* poskok radosti */
  78%  { transform: translateY(0) rotate(2deg) scale(1.07, .93); }      /* dopad */
  100% { transform: rotate(0) scale(1, 1); }
}
.contact-hero-mascot.is-shooting .mascot-shadow { animation: mascotShadow 1.15s cubic-bezier(.3,.7,.3,1); }
@keyframes mascotShadow {
  0%, 32%, 100% { transform: scale(1); opacity: 1; }
  55% { transform: scale(.7); opacity: .5; }
  78% { transform: scale(1.1); opacity: 1; }
}
/* vystřelený puk letí přes fotku se stopou */
.mascot-puck {
  position: absolute;
  z-index: 3;
  width: 40px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, #5a616e, #0b0d12 70%);
  /* světlý okraj a ledová záře — ať je puk vidět i na tmavé fotce */
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 0 14px 3px rgba(120,210,255,.65), 0 5px 8px rgba(0,0,0,.5);
  pointer-events: none;
}
.mascot-puck::after {
  content: "";
  position: absolute;
  left: 70%; top: 50%;
  width: 190px; height: 5px;
  transform: translateY(-50%);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(190,235,255,.95), rgba(190,235,255,0));
  filter: blur(.5px);
}
@media (max-width: 860px) { .contact-hero-mascot { display: none; } }

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  margin-top: clamp(20px, 3vw, 36px);
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ── Kontaktní dlaždice: 2 × 2, všechny stejně vysoké ── */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: clamp(14px, 1.6vw, 18px);
}
@media (max-width: 560px) {
  .contact-methods { grid-template-columns: 1fr; grid-auto-rows: auto; }
}

/* E-mail a telefon — bílé karty s barevným mantinelem nahoře */
.c-tile {
  --tone: var(--cyan);
  --tone-2: var(--cyan-2);
  --tone-btn: var(--cyan-ink);
  --tone-soft: rgba(31,182,232,.12);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.c-tile-phone {
  --tone: var(--orange);
  --tone-2: var(--orange-2);
  --tone-btn: var(--orange);
  --tone-soft: rgba(255,106,26,.12);
}
.c-tile::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tone), var(--tone-2));
}
.c-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-float), 0 0 0 1px var(--tone-soft); }
/* velká vodoznaková ikona v rohu */
.c-tile-mark {
  position: absolute;
  right: -18px; bottom: -24px;
  width: 150px; height: 150px;
  color: var(--tone);
  opacity: .07;
  transform: rotate(-12deg);
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  pointer-events: none;
  z-index: -1;
}
.c-tile-mark svg { width: 100%; height: 100%; }
.c-tile:hover .c-tile-mark { transform: rotate(-4deg) scale(1.08); opacity: .13; }
.c-tile-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.c-tile-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--tone-2), var(--tone));
  box-shadow: 0 8px 18px -8px var(--tone);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.c-tile-icon svg { width: 22px; height: 22px; }
.c-tile:hover .c-tile-icon { transform: rotate(-8deg) scale(1.06); }
.c-tile-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-tile-value {
  margin-top: 4px;
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
  transition: color .2s ease;
}
.c-tile-value:hover { color: var(--tone-btn); }
.c-tile-actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, gap .2s ease;
}
.c-act-main {
  background: var(--tone-btn);
  color: #fff;
  box-shadow: 0 10px 20px -10px var(--tone-btn);
}
.c-act-main:hover { transform: translateY(-1px); }
.c-act-copy { background: var(--tone-soft); color: var(--ink); }
.c-act-copy:hover { background: rgba(11,42,92,.1); }
.c-act-copy.is-copied { background: #E3F7EC; color: #16804A; }

/* Sociální sítě — plné barvy značek, lesklý přejezd při najetí */
.c-social {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  color: #fff;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.c-social-fb {
  background: linear-gradient(135deg, #4C8BF5 0%, #1877F2 45%, #0B4FB3 100%);
  box-shadow: 0 18px 36px -18px rgba(24,119,242,.75);
}
.c-social-ig {
  background: radial-gradient(circle at 15% 115%, #FFD776 0%, #F58529 24%, #DD2A7B 56%, #8134AF 84%, #515BD4 100%);
  box-shadow: 0 18px 36px -18px rgba(221,42,123,.75);
}
.c-social::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
  pointer-events: none;
}
.c-social:hover { transform: translateY(-4px) rotate(-.5deg); }
.c-social:hover::after { transform: translateX(120%); }
.c-social-mark {
  position: absolute;
  right: -26px; bottom: -34px;
  width: 170px; height: 170px;
  opacity: .16;
  transform: rotate(-14deg);
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  pointer-events: none;
  z-index: -1;
}
.c-social-mark svg { width: 100%; height: 100%; }
.c-social:hover .c-social-mark { transform: rotate(-4deg) scale(1.1); opacity: .26; }
.c-social-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.c-social-kicker svg { width: 16px; height: 16px; }
.c-social b {
  margin-top: 6px;
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.1;
  word-break: break-word;
}
.c-social-cta {
  margin-top: auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  transition: gap .25s ease, background .25s ease;
}
.c-social:hover .c-social-cta { background: rgba(255,255,255,.3); }
/* Kontakt: název sítě o kus větší, v tlačítku jméno profilu */
.contact-methods .c-social-kicker { font-size: 14px; gap: 10px; }
.contact-methods .c-social-kicker svg { width: 20px; height: 20px; }
.contact-methods .c-social-cta { font-size: 15px; padding: 10px 16px; }


.contact-org {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-float);
  position: relative; /* ořízne dekorativní záři ::before */
  overflow: hidden;
  /* obsah rozložený po celé výšce karty: text nahoře, web uprostřed, sídlo dole */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.contact-org::before {
  content: "";
  position: absolute;
  top: -30%; right: -15%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,182,232,.35), transparent 60%);
  pointer-events: none;
}
.contact-org > * { position: relative; }
.contact-org-logo {
  margin-top: 18px;
  width: 120px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: var(--r-md);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: .1em;
}
.contact-org h3 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 14px 0 10px;
}
.contact-org h3:first-child { margin-top: 0; }
.contact-org-web {
  width: 100%;
  justify-content: center;
  padding: 16px 22px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}
.contact-org-web svg { width: 20px; height: 20px; }
.contact-org p {
  color: rgba(255,255,255,.78);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
  margin: 0;
}
.contact-org-venue {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.contact-org-venue small {
  display: block;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
  font-weight: 600;
}
/* Telefon (dlaždice pod sebou): e-mail, telefon, název a sídlo pořadatele na střed, text pořadatele do bloku */
@media (max-width: 560px) {
  .c-tile-top, .c-tile-actions { justify-content: center; }
  .c-tile-value { text-align: center; }
  .contact-org h3, .contact-org-venue { text-align: center; }
  .contact-org-logo { margin-inline: auto; }
  .contact-org p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
}

/* ───────── Doplňky pro PHP verzi ───────── */

/* Náhrada plakátu, když ještě žádný není nahraný */
.poster-fill {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center; padding: 16px;
  color: #fff;
  font-family: var(--font-display);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, #1FB6E8, #0E2A6E);
}
.poster-fill-tag {
  font-size: 11px; opacity: .65; letter-spacing: .22em; text-transform: uppercase;
}
.poster-fill-title { margin-top: 8px; font-size: 22px; letter-spacing: .06em; }

/* Odkazy v patce se chovaly jako <button> v prototypu */
.footer-bottom-links a {
  color: inherit; text-decoration: none; opacity: .8; transition: opacity .2s ease;
}
.footer-bottom-links a:hover { opacity: 1; text-decoration: underline; }

/* Logo partnera v patce */
.f-logo-card img { max-width: 100%; max-height: 46px; object-fit: contain; }
/* Generální partner má větší kartu, logo v ní taky */
.f-logo-card.lg img { max-height: 92px; }

/* Lightbox galerie */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: rgba(6, 14, 30, .92);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: min(1200px, 92vw); max-height: 88vh;
  border-radius: var(--r-md); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
}
.lightbox button {
  position: absolute; appearance: none; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  color: #fff; border-radius: 50%;
  width: 48px; height: 48px; font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 20px; }
.lb-next  { right: 20px; }
@media (max-width: 600px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lightbox button { width: 40px; height: 40px; font-size: 22px; }
}

/* YouTube fasáda — přehraje se až po kliknutí */
.video-frame[data-youtube] { cursor: pointer; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.is-playing .video-play { display: none; }
.video-frame.is-playing { cursor: auto; }

/* Fotky v galerii a v medailích vyplní dlaždici */
.gallery-tile { position: relative; overflow: hidden; display: block; }
.gallery-tile img { display: block; }

/* Plaketa "OD 2017" u fotky na stránce O turnaji */
/* „OD 2016" u fotek Tradice — stejná kapka jako s datem u plakátu na homepage (.hero-poster-float::before) */
.about-since {
  position: absolute; top: -28px; right: -28px;
  width: 104px; height: 102px;
  background: url('/assets/img/kapka.svg') center / contain no-repeat;
  filter: drop-shadow(0 10px 14px rgba(255,89,0,.45));
  display: grid; place-content: center;
  padding: 4px 0 0 2px;       /* těžiště skvrny je vpravo — text o kousek doprava, jako na homepage */
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 18px; text-align: center; line-height: 1.05;
  text-shadow: 0 1px 2px rgba(150,50,0,.35);
  transform: rotate(-10deg);
  animation: wobble 5s ease-in-out infinite;
}

.contact-org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Skryté skupiny archivu — .archive-poster-stage má vlastní display,
   takže samotný atribut [hidden] by ho nepřebil. */
[hidden] { display: none !important; }
/* …kromě sousední skupiny, kterou JS (initArchive) nechá neviditelně vykreslit přesně na místě
   té zobrazené: plakáty se tak dekódují ve správné velikosti předem a přepnutí se neseká.
   Neprůhlednost 1 % — při nule by prohlížeč kreslení přeskočil a nic by se nepřipravilo. */
.archive-poster-stage[hidden].is-warm {
  display: flex !important;
  position: absolute;
  margin: 0;
  opacity: .01;
  pointer-events: none;
  z-index: -1;
}

/* Krátká hláška dole uprostřed (např. „Číslo je zkopírované") */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ── O turnaji: puk jako posuvník na lince + časomíra (JS initIceTrail) ── */
.trail-rider {
  position: fixed;
  left: 0; top: 0;
  z-index: -1;               /* v pozadí za obsahem, stejně jako linka */
  pointer-events: none;
  will-change: transform;
}
.rider-puck {
  position: absolute;
  width: 54px;
  left: -27px; top: -24px;
  filter: drop-shadow(0 8px 8px rgba(11,42,92,.35));
}
.rider-clock {
  position: absolute;
  left: 38px; top: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 6px 11px 7px;
  border-radius: 10px;
  background: rgba(8,19,47,.9);
  box-shadow: 0 10px 22px -10px rgba(8,19,47,.7), inset 0 0 0 1px rgba(140,180,255,.22);
  white-space: nowrap;
}
.trail-rider.flip .rider-clock { left: auto; right: 38px; align-items: flex-end; }
/* nad textem se časomíra i puk ztlumí, ať neruší čtení */
.rider-clock, .rider-puck { transition: opacity .3s ease; }
.trail-rider.muted .rider-clock { opacity: .12; }
.trail-rider.muted .rider-puck { opacity: .45; }
.rc-period {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(150,205,255,.85);
}
.rc-time {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .04em;
  color: #FFB347;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255,140,40,.75);
}
@media (max-width: 900px) {
  .rider-puck { width: 40px; left: -20px; top: -18px; }
  .rider-clock { left: 28px; padding: 5px 9px 6px; }
  .trail-rider.flip .rider-clock { right: 28px; }
  .rc-time { font-size: 17px; }
}
