/* Si.Brick — veřejná úvodní stránka a roadmapa (index.html + web.js). Barvy ze hry (UITheme.gd), písmo Nunito ze hry. */
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg0: #1d1f23; --bg1: #25282d; --bg2: #2f3238; --bg3: #3a3e45; --line: #4a4c51;
  --text: #eef1f4; --muted: #a3acb6; --faint: #7a838c;
  --accent: #4cc7d4; --accent-soft: rgba(76, 199, 212, .14); --accent-ink: #0b2a2e;
  --gold: #f2b84b; --gold-soft: rgba(242, 184, 75, .16); --gold-ink: #3a2604; --done: #5fd08f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 62px; }
html, body { margin: 0; background: var(--bg0); color: var(--text); font-family: "Nunito", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.obal { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* hlavička */
.lista { position: sticky; top: 0; z-index: 5; background: var(--bg0); border-bottom: 1px solid var(--bg3); }
.lista .obal { display: flex; align-items: center; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.znacka { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; }
.znacka b, .uvod h1 b { color: var(--accent); }
.menu { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: 15px; }
.menu a:hover, .menu a:focus-visible { background: var(--bg2); color: var(--text); }
.menu a.zap { color: var(--text); background: var(--bg2); }

/* úvod */
.uvod { position: relative; min-height: 460px; display: flex; align-items: flex-end; overflow: hidden; }
.uvod-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uvod::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 31, 35, .96) 0%, rgba(29, 31, 35, .78) 45%, rgba(29, 31, 35, .2) 100%), linear-gradient(0deg, var(--bg0) 0%, transparent 40%); }
.uvod .obal { position: relative; z-index: 1; padding-bottom: 46px; width: 100%; }
.uvod h1 { font-size: 64px; line-height: 1; margin: 0 0 12px; font-weight: 900; }
.uvod p { font-size: 19px; line-height: 1.5; color: #d3d9df; max-width: 560px; margin: 0 0 22px; }
.tlacitka { display: flex; gap: 10px; flex-wrap: wrap; }
.tl { display: inline-flex; padding: 12px 18px; border-radius: 10px; font-weight: 800; font-size: 16px; border: 1px solid var(--line); background: var(--bg2); }
.tl.hlavni { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cisla { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.cisla div { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cisla strong { display: block; font-size: 28px; color: var(--text); letter-spacing: 0; }

/* sekce */
.sekce { padding-top: 46px; padding-bottom: 46px; }
h2 { font-size: 30px; font-weight: 900; margin: 0 0 6px; }
.pod { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.galerie figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg1); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; font-weight: 800; font-size: 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech span { background: var(--bg1); border: 1px solid var(--bg3); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 14px; color: #cfd6dc; }
.tech i { font-style: normal; color: var(--faint); font-weight: 600; }

/* ROADMAPA — plakát: jedna mřížka se třemi řádky (karty nahoře · pás · karty dole), období = sloupec s vlastní podmřížkou */
.plakat { padding: 46px 0 30px; background: radial-gradient(1200px 500px at 50% 0%, #203038 0%, var(--bg0) 70%); border-top: 1px solid var(--bg3); border-bottom: 1px solid var(--bg3); }
.plakat h2 { text-align: center; font-size: 46px; letter-spacing: .04em; color: var(--gold); margin-bottom: 2px; }
.plakat .pod { text-align: center; padding: 0 20px; }
.legenda { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 700; margin: -8px 0 18px; padding: 0 20px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.z-hotovo { background: #3fb3c0; } .z-tady { background: var(--gold); } .z-plan { background: #5a6670; }
.posun-obal { position: relative; }
.posun { overflow-x: auto; padding: 6px 50% 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent; cursor: grab; }
.posun.tazeno { scroll-snap-type: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.oddil { scroll-snap-align: center; }
.rm { display: grid; grid-template-rows: auto 54px auto; grid-auto-flow: column; column-gap: 14px; width: max-content; margin: 0 auto; }
.nacitam { color: var(--muted); grid-row: 1 / 4; }
.oddil { display: grid; grid-row: 1 / 4; grid-template-rows: subgrid; }
.karty { display: flex; gap: 12px; }
.karty.nahore { align-items: flex-end; padding-bottom: 14px; }
.karty.dole { align-items: flex-start; padding-top: 14px; }
.pas { display: flex; align-items: center; justify-content: flex-start; padding-left: 16px; font-weight: 900; letter-spacing: .12em; font-size: 14px; color: var(--accent-ink); background: linear-gradient(180deg, #7fe0ea, #3fb3c0); margin: 0 -7px; border-top: 2px solid #a9eef4; border-bottom: 2px solid #2a8c97; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.oddil.plan .pas { background: linear-gradient(180deg, #3a4048, #2c3138); color: #cfd6dc; border-color: #4d545d; }
.oddil.prvni .pas { border-radius: 10px 0 0 10px; margin-left: 0; }
.oddil.posledni .pas { border-radius: 0 10px 10px 0; margin-right: 0; }
/* „JSME TADY“ stojí pevně uprostřed pásu (pás se posouvá pod ním jako kolečko); svislou polohu štítku nastaví web.js (style.top) */
.jezdec-cara { position: absolute; left: 50%; top: 0; bottom: 18px; width: 3px; transform: translateX(-50%); z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.jezdec { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: 13px; letter-spacing: .06em; line-height: 1.25; padding: 8px 10px; border-radius: 10px; text-align: center; white-space: nowrap; box-shadow: 0 0 0 4px rgba(242, 184, 75, .25), 0 0 30px rgba(242, 184, 75, .45); }
.jezdec:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.oddil.vybrane .pas { filter: brightness(1.15); color: transparent; }
.karta { width: 240px; flex: none; text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; background: var(--bg1); border: 1px solid #3d4a52; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.karta:hover, .karta:focus-visible { border-color: var(--accent); outline: none; }
.karta .obr { height: 132px; background: #2a3036; display: flex; align-items: center; justify-content: center; }
.karta .obr img.foto { width: 100%; height: 100%; object-fit: cover; }
.karta .obr img.ikona { width: 40px; height: 40px; opacity: .45; }
.karta .nazev { display: block; padding: 10px 12px 2px; font-size: 15px; font-weight: 900; letter-spacing: .04em; line-height: 1.25; color: var(--accent); }
.oddil.plan .karta .nazev { color: #cfd6dc; }
.karta .od { display: block; padding: 0 12px; color: var(--muted); font-weight: 700; font-size: 13px; }
.karta .pocty { display: block; padding: 4px 12px 12px; color: var(--faint); font-weight: 800; font-size: 12px; }
.oddil.plan .karta { border-style: dashed; border-color: #5a6670; background: #22262b; }
.poznamka { text-align: center; color: var(--faint); font-size: 13px; margin: 6px 0 0; padding: 0 20px; }

/* popisy vybraného období pod plakátem: dva sloupce = horní a spodní řada kartiček */
.oddil-popis { margin-top: 26px; scroll-margin-top: 76px; }
.popis-hlava { border-radius: 8px; display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--bg3); padding-bottom: 10px; margin-bottom: 16px; }
.popis-hlava h3 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: .06em; color: var(--accent); }
.popis-hlava.plan h3 { color: #cfd6dc; }
.popis-hlava:focus { outline: none; }
.popis-hlava.svit { animation: svit 2s ease-out; }
.popis-hlava .meta { color: var(--muted); font-weight: 700; font-size: 15px; }
.sloupce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px; align-items: start; }
.sloupec { display: flex; flex-direction: column; gap: 12px; }
.sloupec h4 { margin: 0 0 2px; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--done); }
.sloupec.chystane h4 { color: #cfd6dc; }
.sloupec .prazdne { margin: 0; color: var(--faint); font-weight: 700; }
.polozka.plan { border-style: dashed; border-color: #5a6670; background: #22262b; }
.polozka { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; background: var(--bg1); border: 1px solid var(--bg3); border-radius: 12px; padding: 10px; scroll-margin: 90px; }
.polozka .obr { width: 96px; height: 72px; border-radius: 8px; background: #2a3036; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.polozka img.foto { width: 100%; height: 100%; object-fit: cover; }
.polozka img.ikona { width: 32px; height: 32px; opacity: .5; }
.polozka h5 { margin: 0 0 2px; font-size: 17px; line-height: 1.25; }
.polozka .kdy { display: block; color: var(--faint); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.polozka p { margin: 0; color: #cfd6dc; line-height: 1.5; font-size: 15px; }
@keyframes svit { 0% { box-shadow: 0 0 0 0 rgba(76, 199, 212, .7); } 100% { box-shadow: 0 0 0 14px rgba(76, 199, 212, 0); } }
@media (prefers-reduced-motion: reduce) { .popis-hlava.svit { animation: none; } html { scroll-behavior: auto; } }

/* patička */
.pata { padding: 30px 0 44px; color: var(--faint); font-size: 13px; line-height: 1.6; border-top: 1px solid var(--bg3); }
.pata a { color: var(--muted); text-decoration: underline; }

@media (max-width: 700px) {
  .uvod { min-height: 400px; }
  .uvod h1 { font-size: 44px; }
  .uvod p { font-size: 17px; }
  .plakat h2 { font-size: 32px; }
  .lista { position: static; }
  section[id] { scroll-margin-top: 0; }
  .menu { margin-left: 0; width: 100%; padding-bottom: 8px; }
  .menu a { padding: 6px 9px; font-size: 14px; }
}
@media (max-width: 640px) {
  .sloupce { grid-template-columns: minmax(0, 1fr); }
  .polozka { grid-template-columns: 72px minmax(0, 1fr); }
  .polozka .obr { width: 72px; height: 56px; }
}
