/* ============================================================
   MEMORIÁL VÁCLAVA KLIMUSE — styly
   Teplá krémová paleta, modern-hravý šachový motiv
   ============================================================ */

:root {
  --cream:       #f3e9d4;
  --cream-deep:  #ecdec0;
  --paper:       #fbf6ec;
  --ink:         #2a241b;
  --ink-soft:    #6a6151;
  --ink-faint:   #9a917f;
  --wood:        #8c5a2b;
  --wood-light:  #b6824a;
  --felt:        #3f5641;   /* tlumená šachová zeleň, jen jako doplněk */
  --line:        rgba(42, 36, 27, 0.13);
  --line-strong: rgba(42, 36, 27, 0.28);
  --shadow:      0 26px 60px -32px rgba(60, 42, 18, 0.55);
  --shadow-sm:   0 12px 30px -18px rgba(60, 42, 18, 0.5);

  --serif:  "Bricolage Grotesque", system-ui, sans-serif;
  --grot:   "Bricolage Grotesque", system-ui, sans-serif;
  --body:   "Bricolage Grotesque", system-ui, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(70% 55% at 78% -8%, rgba(182,130,74,0.16), transparent 60%),
    radial-gradient(55% 45% at 8% 4%, rgba(63,86,65,0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 14;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* jemné papírové zrno přes celou stránku */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

button, input, select, textarea { font-family: inherit; }

h1, h2, h3 { font-family: var(--grot); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }

.eyebrow {
  font-family: var(--grot);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wood);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--wood);
  opacity: 0.6;
}

.serif { font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Navigace ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(243, 233, 212, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 28px;
}
.nav__brand { font-family: var(--grot); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand .glyph { font-size: 1.3rem; line-height: 1; transform: translateY(-1px); }
.nav__brand small { display: block; font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.25s; }
.nav__links a::after { content:""; position:absolute; left:0; right:0; bottom:-5px; height:2px; background: var(--wood); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-family: var(--grot); font-weight: 600; font-size: 0.88rem;
  background: var(--wood); padding: 9px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(140, 90, 43, 0.9);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
/* musí mít větší váhu než obecné ".nav__links a", jinak text zdědí tmavou barvu a v hnědé pilulce zanikne */
.nav__links a.nav__cta, .nav__links a.nav__cta:hover { color: #fff; }
.nav__cta::after { display: none; }
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(140, 90, 43, 1); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 60px;
  background:
    radial-gradient(80% 70% at 88% -6%, rgba(182,130,74,0.26), transparent 58%),
    radial-gradient(62% 44% at 4% 66%, rgba(63,86,65,0.12), transparent 62%),
    linear-gradient(178deg, var(--paper) 0%, var(--cream-deep) 55%, var(--cream) 100%);
}
/* tlumený svit za fotkou v heru */
.hero::after {
  content: ""; position: absolute; right: -6%; top: 16%; width: 46%; height: 70%;
  background: radial-gradient(circle at 60% 40%, rgba(182,130,74,0.28), transparent 68%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}
@media (max-width: 960px) { .hero::after { display: none; } }
.hero__grid { display: grid; grid-template-columns: 0.94fr 1.12fr; gap: 44px; align-items: start; width: 100%; }
/* fotka se roztahuje na výšku textového sloupce; tímhle ji pustíme kousek pod odpočet */
.hero__text { padding-bottom: 72px; }
.hero__title { font-size: clamp(3rem, 8vw, 6.6rem); margin: 18px 0 6px; }
.hero__title .name { font-weight: 700; letter-spacing: -0.02em; display: block; color: var(--wood); font-size: inherit; line-height: 1.04; }
.hero__sub { font-family: var(--grot); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--ink-soft); margin: 0 0 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
/* zatím nepoužité: chipy z úvodní obrazovky jsou pryč (kdyby se měly vrátit, stačí vrátit HTML) */
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.chip .ico { color: var(--wood); font-size: 1.25rem; line-height: 1; }
/* ikony jsou SVG ze sady nahoře v index.html — velikost řídí font-size rodiče, barvu color */
.ico svg { width: 1em; height: 1em; display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  font-family: var(--grot); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 0;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary { background: var(--wood); color: #fff; box-shadow: 0 16px 30px -14px rgba(140, 90, 43, 0.7); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(140, 90, 43, 0.8); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* 10 px srovná horní hranu fotky s textem nadpisku (ten je inline-flex, má nad sebou řádkový proklad),
   align-self: stretch ji pak protáhne dolů přesně ke spodní hraně odpočtu */
.hero__photo { position: relative; margin-top: 10px; align-self: stretch; }
.hero__photo .frame {
  position: relative; height: 100%; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
/* Fotka je 1080x1080 a figurky na ní sahají od 1 % do 98 % šířky — jakýkoliv ořez do nich kousne.
   Proto se nekrájí: sedí dole v celé šířce a prostor nad ní vyplní stejná krémová, jakou má její
   vlastní horní okraj (#f2ede7 u krajů, #f3ebe0 uprostřed), takže přechod není vidět. */
.hero__photo .frame { background: linear-gradient(100deg, #f2ede7, #f3ebe0 50%, #f2ede7); }
.hero__photo .frame img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hero__photo .tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: rgba(251, 246, 236, 0.92); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 10px; font-size: 0.8rem; font-weight: 600;
  font-family: var(--grot); box-shadow: var(--shadow-sm);
}

/* plovoucí figurky v pozadí */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floaters .pc {
  position: absolute; color: var(--wood); opacity: 0.09; font-size: 7rem; line-height: 1;
  will-change: transform;
}

/* ---------- Odpočet ---------- */
.countdown {
  margin-top: 30px; display: inline-flex; flex-direction: column; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.countdown__label { font-family: var(--grot); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__units { display: flex; gap: 18px; }
.cu { text-align: center; min-width: 56px; }
.cu b { font-family: var(--grot); font-weight: 700; font-size: 2rem; display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.cu span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.countdown--soon { align-items: flex-start; }
.countdown--soon .big { font-weight: 700; letter-spacing: -0.02em; font-size: 1.9rem; color: var(--wood); line-height: 1.05; }

/* ---------- Sekce ---------- */
.section { padding: 110px 0; position: relative; }
.section--paper { background:
    radial-gradient(52% 34% at 100% 30%, rgba(182,130,74,0.09), transparent 62%),
    linear-gradient(to bottom, var(--cream) 0%, var(--paper) 22%, var(--paper) 78%, var(--cream) 100%); }
.section--cream { background:
    radial-gradient(50% 32% at 0% 70%, rgba(63,86,65,0.09), transparent 62%),
    linear-gradient(to bottom, var(--cream) 0%, var(--cream-deep) 22%, var(--cream-deep) 78%, var(--cream) 100%); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 0; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; margin: 16px 0 0; }

/* ---------- Vzpomínka ---------- */
.memorial { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.memorial__photo { position: relative; }
.memorial__photo img { width: 100%; }
.memorial__photo .years { position: absolute; bottom: -18px; left: -18px; background: var(--ink); color: var(--cream); font-family: var(--grot); font-weight: 600; padding: 12px 18px; border-radius: 12px; font-size: 0.92rem; box-shadow: var(--shadow-sm); }
.memorial__text .quote { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.22; margin: 0 0 26px; }
.memorial__text p { color: var(--ink-soft); margin: 0 0 18px; }
.memorial__text .signoff { font-family: var(--grot); font-weight: 600; color: var(--ink); }
.editable-hint { font-size: 0.8rem; color: var(--ink-faint); font-style: italic; border-left: 2px solid var(--line-strong); padding-left: 12px; margin-top: 26px; }

/* ---------- O turnaji: karty ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .ico { font-size: 1.9rem; color: var(--wood); line-height: 1; }
.info-card h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Interaktivní šachovnice ---------- */
.play { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.board-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.board {
  --sq: clamp(38px, 6vw, 62px);
  width: calc(var(--sq) * 8); height: calc(var(--sq) * 8);
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
  border: 8px solid var(--wood); position: relative; touch-action: none;
}
.sq { display: flex; align-items: center; justify-content: center; position: relative; user-select: none; }
.sq.light { background: #f0e2c4; }
.sq.dark  { background: #b6824a; }
.sq.hl { box-shadow: inset 0 0 0 4px rgba(63, 86, 65, 0.55); }
.piece {
  font-size: calc(var(--sq) * 0.78); line-height: 1; cursor: grab; position: relative; z-index: 2;
  transition: transform 0.18s var(--ease); will-change: transform;
}
.piece.white { color: #fbf6ec; text-shadow: 0 1px 1px rgba(0,0,0,0.35), 0 0 1px rgba(0,0,0,0.5); }
.piece.black { color: #221c14; text-shadow: 0 1px 1px rgba(255,255,255,0.25); }
.piece:active { cursor: grabbing; }
.piece.dragging { transform: scale(1.18); z-index: 30; }
.board__hint { font-size: 0.85rem; color: var(--ink-faint); }
.play__text h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.play__text p { color: var(--ink-soft); }
.board__reset { align-self: center; }

/* ---------- Časová osa ročníků ---------- */
.timeline { position: relative; }
.timeline::before { content:""; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.tl-item { position: relative; padding-left: 78px; margin-bottom: 30px; }
.tl-item .dot {
  position: absolute; left: 16px; top: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--wood); z-index: 2;
}
.tl-item .dot.next { border-color: var(--ink-faint); border-style: dashed; }
.tl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.tl-card .head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-card .num { font-weight: 700; color: var(--wood); font-size: 2.4rem; line-height: 1; }
.tl-card .date { font-family: var(--grot); font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.tl-card h3 { font-size: 1.4rem; margin: 6px 0 10px; }
.tl-card p { margin: 0; color: var(--ink-soft); }
.tl-card .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.tl-card .meta span { display: inline-flex; align-items: center; gap: 7px; }
.tl-card .meta svg { width: 1.15em; height: 1.15em; color: var(--wood); flex: none; }
.tl-card .meta b { color: var(--ink); font-weight: 600; }
.tl-card.next { border-style: dashed; background: transparent; }

/* ---------- Galerie ---------- */
.gallery-groups { display: flex; flex-direction: column; gap: 52px; }
.gal-group__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.gal-group__head .num { color: var(--wood); font-size: 2.2rem; line-height: 1; }
.gal-group__head .t { font-family: var(--grot); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.gal-group__head .y {
  margin-left: auto; font-family: var(--grot); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.16em; color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gitem {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); cursor: pointer; background: var(--cream-deep);
}
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gitem:hover img { transform: scale(1.06); }
.gitem .cap {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(to top, rgba(20,16,10,0.7), transparent);
  color: #fbf6ec; font-family: var(--grot); font-weight: 600; font-size: 0.92rem;
  opacity: 0; transform: translateY(8px); transition: 0.35s var(--ease);
}
.gitem:hover .cap { opacity: 1; transform: translateY(0); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,15,8,0.92);
  display: none; align-items: center; justify-content: center; padding: 5vh 5vw; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow); }
.lightbox .lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #f3e9d4; font-family: var(--grot); }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #f3e9d4; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: background 0.25s; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }

/* ---------- Místo konání / mapa ---------- */
.venue { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 24px; align-items: stretch; }
.venue__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: center;
}
.venue__card h3 { font-size: 1.7rem; margin: 14px 0 6px; }
.venue__card p { color: var(--ink-soft); margin: 0 0 24px; }
.venue__card .btn { align-self: flex-start; }
.venue__map {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); min-height: 400px; background: var(--cream);
}
.venue__map #map, .venue__map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* ---------- Registrace ---------- */
.register { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.register h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.register p { color: var(--ink-soft); }
.reg-card { background: var(--ink); color: var(--cream); border-radius: 20px; padding: 38px 36px; box-shadow: var(--shadow); }
.reg-card .eyebrow { color: var(--wood-light); }
.reg-card .eyebrow::before { background: var(--wood-light); }
.reg-card h3 { color: var(--cream); font-size: 1.5rem; margin: 14px 0 4px; }
.reg-card .role { color: rgba(243,233,212,0.6); font-size: 0.92rem; margin-bottom: 22px; }
.reg-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(243,233,212,0.16); }
.reg-line .ico { color: var(--wood-light); font-size: 1.3rem; width: 24px; display: flex; justify-content: center; }
.reg-line a, .reg-line span { color: var(--cream); text-decoration: none; font-weight: 500; word-break: break-word; }
.reg-line a:hover { color: var(--wood-light); }
.reg-card .btn { margin-top: 24px; width: 100%; justify-content: center; }
.reg-card .btn--primary { background: var(--cream); color: var(--ink); }
.reg-card .btn--primary:hover { background: var(--wood-light); color: var(--ink); }
.free-note .ico { color: var(--wood-light); font-size: 1.1rem; line-height: 1; }
.free-note { display:inline-flex; align-items:center; gap:8px; margin-top: 14px; font-size: 0.85rem; color: rgba(243,233,212,0.7); }

.poster { margin: 36px 0 0; max-width: 330px; }
.poster__img {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.poster__img:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.poster__img img { display: block; width: 100%; height: auto; }
.poster__cap { margin-top: 12px; font-size: 0.85rem; color: var(--ink-faint); }
.poster__cap a { color: var(--wood); font-weight: 600; text-decoration: none; }
.poster__cap a:hover { text-decoration: underline; }

/* ---------- Patička ---------- */
.footer { background: var(--ink); color: rgba(243,233,212,0.8); padding: 70px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 40px; border-bottom: 1px solid rgba(243,233,212,0.14); }
.footer__brand { font-family: var(--grot); font-weight: 700; color: var(--cream); font-size: 1.3rem; }
.footer__brand small { display:block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,233,212,0.55); margin-top: 6px; }
.supporters { text-align: right; }
.supporters .lbl { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243,233,212,0.55); margin-bottom: 14px; }
.supporters .logos { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.supporters .logos img { height: 56px; width: auto; background: var(--cream); padding: 8px 12px; border-radius: 10px; }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: rgba(243,233,212,0.6); }

@keyframes floatY {
  from { translate: 0 -10px; }
  to   { translate: 0 12px; }
}

/* ---------- Animace textu po slovech ---------- */
.split .word { display: inline-block; margin-right: 0; }
.split .word__in {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.62em);
  transition: opacity 0.6s var(--ease), transform 0.72s var(--ease);
  will-change: transform, opacity;
}
.split.in .word__in { opacity: 1; transform: none; }

/* ---------- Zoom-reveal obrázků (kombinuje se s .reveal) ---------- */
.reveal.zoom { transform: translateY(30px) scale(1.06); }
.reveal.zoom.in { transform: none; }
.m-frame { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.m-frame img { width: 100%; filter: grayscale(1) contrast(1.02); display: block; }
[data-parallax] { will-change: transform; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.zoom { transform: none; }
  .split .word__in { opacity: 1; transform: none; transition: none; }
  .floaters { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 17px; }
  .hero__text { padding-bottom: 0; }
  .hero__photo { align-self: auto; margin-top: 0; }
  .hero__photo .frame { height: auto; }
  .hero__photo .frame img { height: auto; object-fit: fill; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 14px;
    background: var(--paper); padding: 18px 24px; border-radius: 14px; box-shadow: var(--shadow);
    gap: 16px; min-width: 200px;
  }
  .hero__grid, .memorial, .play, .register { grid-template-columns: 1fr; }
  .venue { grid-template-columns: 1fr; }
  .venue__map, .venue__map #map, .venue__map iframe { min-height: 320px; }
  .hero__photo { order: -1; max-width: 420px; }
  .memorial__photo { max-width: 320px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}
@media (max-width: 540px) {
  .info-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .countdown__units { gap: 12px; }
  .supporters { text-align: left; }
  .supporters .logos { justify-content: flex-start; }
  .footer__top { flex-direction: column; }
}

/* ---------- Úvodní animace: celoobrazovková prasklá šachovnice ---------- */
body.intro-lock{overflow:hidden}
.intro{position:fixed;inset:0;z-index:9999;overflow:hidden;background-color:#0d0904;transition:opacity .5s ease,background-color .4s ease}
.intro.burst{background-color:transparent;pointer-events:none}
.intro.out{opacity:0;pointer-events:none}
.intro__cam{position:absolute;inset:0;transform-origin:50% 50%;animation:iZoom 1.75s cubic-bezier(.32,0,.4,1) forwards}
@keyframes iZoom{0%{transform:scale(1.09)}100%{transform:scale(1)}}
.intro.burst .intro__cam{animation:iPush 1.05s cubic-bezier(.26,0,.3,1) forwards}
@keyframes iPush{0%{transform:scale(1)}100%{transform:scale(1.24)}}
.intro__shake{position:absolute;inset:0}
.intro.hit .intro__shake{animation:iShake .62s cubic-bezier(.36,.07,.19,.97)}
@keyframes iShake{0%,100%{transform:translate3d(0,0,0)}9%{transform:translate3d(-20px,14px,0)}20%{transform:translate3d(17px,-11px,0)}32%{transform:translate3d(-13px,9px,0)}46%{transform:translate3d(10px,-7px,0)}60%{transform:translate3d(-7px,5px,0)}75%{transform:translate3d(4px,-3px,0)}89%{transform:translate3d(-2px,1px,0)}}
.intro__glass{position:absolute;inset:0;perspective:1400px;perspective-origin:50% 50%}
.intro__base{position:absolute;inset:0;background-image:linear-gradient(158deg,rgba(255,241,214,.2),transparent 44%,rgba(0,0,0,.46)),conic-gradient(#8b5a2b 0 25%,#e9dabb 0 50%,#8b5a2b 0 75%,#e9dabb 0);background-size:var(--W) var(--H),var(--t) var(--t);background-repeat:no-repeat,repeat;background-position:0 0,0 0}
.intro.burst .intro__base{animation:iFade .18s ease forwards}
.ishard{position:absolute;background-image:linear-gradient(158deg,rgba(255,241,214,.2),transparent 44%,rgba(0,0,0,.46)),conic-gradient(#8b5a2b 0 25%,#e9dabb 0 50%,#8b5a2b 0 75%,#e9dabb 0);background-size:var(--W) var(--H),var(--t) var(--t);background-repeat:no-repeat,repeat;backface-visibility:hidden}
.intro.hit .ishard{transform:translate3d(var(--nx),var(--ny),0) rotate(var(--nr));transition:transform .55s cubic-bezier(.2,.8,.3,1);transition-delay:var(--cd)}
.intro.burst .ishard{will-change:transform,opacity;animation:iBurst 1s cubic-bezier(.18,.6,.28,1) forwards;animation-delay:var(--bd)}
@keyframes iBurst{0%{transform:translate3d(var(--nx),var(--ny),0) rotate(var(--nr));opacity:1}70%{opacity:1}100%{transform:translate3d(var(--bx),var(--by),var(--bz)) rotate3d(var(--rx),var(--ry),var(--rz),var(--rot));opacity:0}}
.intro__cracks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.intro__cracks path{fill:none;stroke-linecap:round;stroke-dasharray:var(--L);stroke-dashoffset:var(--L)}
.intro__cracks .cdark path{stroke:rgba(24,14,4,.6);stroke-width:5}
.intro__cracks .clight path{stroke:rgba(255,240,208,.95);stroke-width:1.7;filter:drop-shadow(0 0 7px rgba(255,206,132,.85))}
.intro.hit .intro__cracks path{animation:iCrack .52s cubic-bezier(.2,.72,.3,1) forwards;animation-delay:var(--cd)}
@keyframes iCrack{to{stroke-dashoffset:0}}
.intro.burst .intro__cracks{animation:iFade .34s ease forwards}
@keyframes iFade{to{opacity:0}}
.intro__trail{position:absolute;left:var(--ix);top:0;height:var(--iy);width:calc(var(--ps) * .46);margin-left:calc(var(--ps) * -.23);transform-origin:50% 100%;background:linear-gradient(to bottom,transparent,rgba(255,226,182,.2));filter:blur(7px);opacity:0;pointer-events:none;animation:iTrail .9s ease-in forwards}
@keyframes iTrail{0%{opacity:0;transform:scaleY(.15)}72%{opacity:1}100%{opacity:0;transform:scaleY(1)}}
.intro__pshadow{position:absolute;left:var(--ix);top:var(--iy);width:var(--ps);height:calc(var(--ps) * .3);margin:calc(var(--ps) * -.15) 0 0 calc(var(--ps) * -.5);border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.66),transparent);opacity:0;pointer-events:none;animation:iPShadow .9s cubic-bezier(.6,0,.9,.62) forwards}
@keyframes iPShadow{0%{opacity:0;transform:scale(.12)}100%{opacity:.92;transform:scale(1)}}
.intro.hit .intro__pshadow{animation:iFade .28s ease forwards}
.intro__pawn{position:absolute;left:var(--ix);top:var(--iy);width:1px;height:1px;pointer-events:none;animation:iFall .9s cubic-bezier(.6,0,.9,.6) forwards}
@keyframes iFall{0%{transform:translate3d(0,calc(-1 * var(--iy) - 60vh),0)}100%{transform:translate3d(0,0,0)}}
.intro__pawn .ip{position:absolute;left:0;bottom:0;display:block;transform:translateX(-50%)}
.intro__pawn b{display:block;font:400 var(--ps)/.82 Georgia,"DejaVu Sans",serif;color:#faf1de;transform-origin:50% 100%;text-shadow:0 26px 50px rgba(0,0,0,.6),0 0 90px rgba(255,205,132,.28)}
.intro.hit .intro__pawn b{animation:iSquash .72s cubic-bezier(.2,.9,.3,1) forwards}
@keyframes iSquash{0%{transform:scale3d(1,1,1);opacity:1}12%{transform:scale3d(1.42,.54,1)}36%{transform:scale3d(.9,1.15,1);opacity:1}100%{transform:translateY(70px) scale3d(.66,.78,1);opacity:0}}
.intro__vig{position:absolute;inset:0;pointer-events:none;background:radial-gradient(125% 105% at 50% 50%,transparent 36%,rgba(11,7,2,.76) 100%)}
.intro.burst .intro__vig{animation:iFade .55s ease forwards}
.intro__wave{position:absolute;left:var(--ix);top:var(--iy);width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:3px solid rgba(255,240,210,.85);opacity:0;pointer-events:none}
.intro.hit .intro__wave{animation:iWave .9s cubic-bezier(.1,.7,.25,1) forwards}
@keyframes iWave{0%{opacity:1;transform:scale(.08)}100%{opacity:0;transform:scale(30);border-width:.5px}}
.intro__flash{position:absolute;inset:0;opacity:0;pointer-events:none;background:radial-gradient(circle at var(--ix) var(--iy),rgba(255,248,232,.98),rgba(255,206,133,.34) 24%,transparent 58%)}
.intro.hit .intro__flash{animation:iFlash .58s ease-out forwards}
@keyframes iFlash{0%{opacity:0}6%{opacity:1}100%{opacity:0}}
