/* Layout: jeden sloupec do 1080 px. Úvod = text + vizuál (terminál / dům),
   pod ním sekce oddělené linkou, karty jen tam, kde jde o samostatné věci. */
:root {
  --bg: #11131b;
  --surface: #181b26;
  --house: #232737;
  --line: #2b3043;
  --fg: #ebe7df;
  --muted: #9a9dae;
  --lamp: #f2b24b;
  --window: #f2b24b;
  --lamp-ink: #1b1306;
  --lamp-soft: rgba(242, 178, 75, 0.12);
  --ice: #1a1f2d;
  --rink-red: #d9625b;
  --rink-blue: #5f82d9;
  --glass: color-mix(in srgb, var(--bg) 84%, transparent);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0f5;
    --surface: #ffffff;
    --house: #dce1eb;
    --line: #d3d8e3;
    --fg: #151823;
    --muted: #545a6d;
    --lamp: #a65e06;
    --window: #f0a63a;
    --lamp-ink: #fff8ec;
    --lamp-soft: rgba(166, 94, 6, 0.09);
    --ice: #f8fafd;
    --rink-red: #c8433b;
    --rink-blue: #3c64c8;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0f5;
  --surface: #ffffff;
  --house: #dce1eb;
  --line: #d3d8e3;
  --fg: #151823;
  --muted: #545a6d;
  --lamp: #a65e06;
  --window: #f0a63a;
  --lamp-ink: #fff8ec;
  --lamp-soft: rgba(166, 94, 6, 0.09);
  --ice: #f8fafd;
  --rink-red: #c8433b;
  --rink-blue: #3c64c8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
}
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- hlavička ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 100vmax var(--glass);
  clip-path: inset(0 -100vmax -1px);
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.15rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.top.scrolled { box-shadow: 0 0 0 100vmax var(--glass), 0 1px 0 100vmax var(--line); }
section[id], main[id] { scroll-margin-top: 76px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a {
  font: 500 0.88rem/1 var(--mono);
  color: var(--muted);
  text-decoration: none;
  padding-block: 6px;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--lamp); }

/* ---------- úvod ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -24px 0 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--line) 1.2px, transparent 1.8px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 78% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 78% 45%, #000 15%, transparent 72%);
  pointer-events: none;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 500 0.88rem/1.2 var(--body);
  text-decoration: none;
  transition: border-color 0.2s;
}
.status:hover { border-color: var(--lamp); }
.status .dot { margin-right: 0; }
.prompt {
  font: 500 0.9rem/1.4 var(--mono);
  color: var(--muted);
  margin: 0 0 18px;
}
.prompt b { color: var(--lamp); font-weight: 500; }
h1 {
  font: 700 clamp(2.6rem, 6.4vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
h1 .lamp { color: var(--lamp); }
.lead {
  font-size: 1.15rem;
  max-width: 33em;
  margin: 0 0 30px;
  color: var(--fg);
  opacity: 0.88;
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 600 0.98rem/1 var(--body);
  text-decoration: none;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.btn.primary:hover { filter: brightness(1.06); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

/* terminál (fastfetch) */
.term {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font: 400 0.86rem/1.7 var(--mono);
  min-width: 0;
}
.term-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
.term-body { padding: 16px 18px 18px; overflow-x: auto; }
.term-body p { margin: 0; white-space: nowrap; }
.term .k { color: var(--lamp); }
.term .rule { color: var(--muted); }
.term .cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--fg);
  vertical-align: -0.2em;
  margin-left: 2px;
}
.ff { display: flex; gap: 18px; align-items: flex-start; margin-top: 8px; }
.ff-logo svg { width: 58px; height: 58px; display: block; margin-top: 4px; }
.ff-info { min-width: 0; }
.swatches { display: flex; gap: 4px; margin-top: 10px; }
.swatches i { width: 18px; height: 12px; border-radius: 2px; display: block; }

/* dům */
.house { width: 100%; max-width: 340px; justify-self: center; }
.house .body { fill: var(--house); stroke: var(--line); stroke-width: 2; }
.house .roof { fill: var(--surface); stroke: var(--line); stroke-width: 2; stroke-linejoin: round; }
.house .win { fill: var(--window); }
.house .win-off { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.house .bar { stroke: var(--house); stroke-width: 3; }
.house .glow { fill: var(--lamp-soft); }
.house .ground { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.house .door { fill: var(--bg); stroke: var(--line); stroke-width: 2; }
.house .ant { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; fill: none; }
.house .led { fill: var(--lamp); }

/* ---------- sekce ---------- */
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.label {
  font: 500 0.82rem/1 var(--mono);
  color: var(--lamp);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
h2 {
  font: 700 clamp(1.8rem, 3.6vw, 2.5rem)/1.1 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  text-wrap: balance;
}
h3 {
  font: 700 1.3rem/1.2 var(--display);
  letter-spacing: -0.015em;
  margin: 0;
}
.intro { max-width: 36em; color: var(--muted); margin: -12px 0 28px; }

/* karty */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card p { margin: 0; color: var(--muted); }
.card .more {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  color: var(--lamp);
  text-decoration: none;
}
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 40px;
  align-items: center;
  border-color: color-mix(in srgb, var(--lamp) 35%, var(--line));
  background: radial-gradient(circle at 100% 0%, var(--lamp-soft), transparent 50%), var(--surface);
}
.card.featured .text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.featured h3 { font-size: 1.7rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font: 500 0.75rem/1 var(--mono);
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.facts div { border-left: 2px solid var(--line); padding-left: 12px; }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd {
  margin: 2px 0 0;
  font: 700 1.6rem/1.1 var(--display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* o mně */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.about p { margin: 0 0 16px; max-width: 34em; }
.rows { margin: 0; display: grid; gap: 0; }
.rows div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.rows div:first-child { border-top: 1px solid var(--line); }
.rows dt { font: 500 0.82rem/1.6 var(--mono); color: var(--muted); }
.rows dd { margin: 0; font-variant-numeric: tabular-nums; }

/* kontakt */
.contact-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font: 700 clamp(1.5rem, 4vw, 2.2rem)/1.2 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--lamp);
  word-break: break-word;
}
.contact-link:hover { color: var(--lamp); }

/* adresy a kopírování */
.addr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 6px 6px 12px;
  min-width: 0;
}
.addr code {
  font: 500 0.88rem/1.4 var(--mono);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.copy {
  font: 600 0.8rem/1 var(--body);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  flex: none;
}
.copy:hover { border-color: var(--muted); }
.copy[data-done] { color: var(--lamp); border-color: var(--lamp); }
.badge {
  align-self: flex-start;
  font: 500 0.72rem/1 var(--mono);
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--lamp-soft);
  color: var(--lamp);
}
.card-head { display: flex; justify-content: flex-start; align-items: center; gap: 12px; flex-wrap: wrap; }
.ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lamp-soft);
  color: var(--lamp);
}
.ic svg { width: 20px; height: 20px; }
.card.soon { background: transparent; border-style: dashed; }

/* cesta provozu */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: krok;
}
.flow li {
  position: relative;
  padding: 18px 20px 18px 0;
  border-top: 2px solid var(--line);
  counter-increment: krok;
  min-width: 0;
}
.flow li::before {
  content: counter(krok);
  position: absolute;
  top: -13px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 0.75rem/1 var(--mono);
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--muted);
  z-index: 1;
}
.flow li:last-child::before { border-color: var(--lamp); color: var(--lamp); }
.flow li:last-child { border-top-color: var(--lamp); }
.flow strong { display: block; margin: 10px 0 4px; font: 700 1.05rem/1.3 var(--display); }
.flow span { color: var(--muted); font-size: 0.92rem; }
.note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--lamp-soft);
  max-width: 44em;
}

/* uvnitř: okna */
.rooms { display: grid; gap: 0 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.room {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 14px;
  align-content: start;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.room svg { width: 22px; height: 18px; margin-top: 3px; }
.room svg rect { fill: var(--window); }
.room svg path { stroke: var(--surface); stroke-width: 2; }
.room h3 { font-size: 1.05rem; }
.room p { grid-column: 2; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- patička ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: start;
}
.foot-main p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-nav a { font: 500 0.85rem/1.8 var(--mono); color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--fg); }
.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 400 0.78rem/1.6 var(--mono);
  color: var(--muted);
}

/* puck: kluziště */
.rink { width: 100%; max-width: 470px; justify-self: center; overflow: visible; }
.rink .ice { fill: var(--ice); }
.rink .boards { fill: none; stroke: var(--line); stroke-width: 3; }
.rink .red { stroke: var(--rink-red); stroke-width: 1.5; opacity: 0.8; }
.rink .red.thick { stroke-width: 4; opacity: 0.7; }
.rink .blue { stroke: var(--rink-blue); stroke-width: 5; opacity: 0.75; }
.rink .blue-c { fill: none; stroke: var(--rink-blue); stroke-width: 2; opacity: 0.8; }
.rink .red-c { fill: none; stroke: var(--rink-red); stroke-width: 1.5; opacity: 0.7; }
.rink .dotc { fill: var(--rink-blue); }
.rink .dotr { fill: var(--rink-red); opacity: 0.8; }
.rink .crease { fill: var(--rink-blue); opacity: 0.22; }
.rink .goal { fill: none; stroke: var(--fg); stroke-width: 2; opacity: 0.8; }
.rink .goal-lamp { fill: var(--lamp); filter: drop-shadow(0 0 6px var(--lamp)); }
.rink .jersey { font: 700 34px var(--display); fill: var(--muted); opacity: 0.55; }
.rink .trail { fill: none; stroke: var(--lamp); stroke-width: 2; stroke-linecap: round; opacity: 0.45; stroke-dasharray: 260; }
.rink .puck ellipse { fill: var(--fg); stroke: var(--bg); stroke-width: 2; }

.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-note { margin: 28px 0 0; max-width: 40em; color: var(--muted); }

.leagues { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.league {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.league-tag {
  font: 600 0.74rem/1 var(--mono);
  padding: 7px 8px;
  min-width: 4.6em;
  text-align: center;
  border-radius: 6px;
  background: var(--lamp-soft);
  color: var(--lamp);
  flex: none;
}
.league h3 { font-size: 1.05rem; }
.league p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.clips { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clip { padding: 0; overflow: hidden; text-decoration: none; gap: 0; }
.clip .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--ice);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.clip .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip .play {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lamp);
  color: var(--lamp-ink);
  display: grid;
  place-items: center;
}
.clip .play svg { width: 18px; height: 18px; margin-left: 3px; }
.clip .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.clip h3 { font-size: 1rem; }
.clip time { font: 400 0.78rem/1.4 var(--mono); color: var(--muted); }
.clip .badge { position: absolute; top: 10px; left: 10px; }
.clips-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.clips-empty p { margin: 0; }
.clips-empty a { color: var(--lamp); }
.clips-all { display: inline-block; margin-top: 18px; }
a.inline { color: var(--lamp); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.inline:hover { text-decoration-thickness: 2px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.server-card { max-width: 600px; }
.server-card > p { margin: 22px 0 10px; color: var(--muted); font-size: 0.92rem; }
.conn { margin: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.conn code { white-space: nowrap; }
.conn dt { font: 500 0.78rem/1 var(--mono); color: var(--muted); margin-bottom: 6px; }
.conn dd { margin: 0; }
.port-note { font-size: 0.75rem; color: var(--muted); padding-right: 6px; flex: none; }
@media (max-width: 520px) { .conn { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before {
  content: counter(s);
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 0.75rem/1 var(--mono);
  background: var(--lamp-soft);
  color: var(--lamp);
  transform: translateY(-1px);
}
.steps b { font-weight: 600; color: var(--fg); }

/* 404 */
.lost { padding-block: 96px 120px; max-width: 34em; }

/* deník */
.log { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.log li {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.log time {
  font: 500 0.85rem/1.9 var(--mono);
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
}
.log h3 { font-size: 1.1rem; margin-bottom: 4px; }
.log p { margin: 0; color: var(--muted); }
.next {
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  max-width: 46em;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}
.next .label { margin: 0; }

/* drobnosti */
.arrow { display: inline-block; transition: transform 0.2s ease; }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lamp);
  margin-right: 6px;
  vertical-align: 1px;
}
.flow li::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lamp);
  transform-origin: left center;
  transform: scaleX(0);
}
.flow li.seen::after { transform: scaleX(1); }
.flow li.seen::before { border-color: var(--lamp); color: var(--lamp); }

/* ---------- pohyb (jen když ho systém nemá vypnutý) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { visibility: hidden; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes lightup {
  0% { fill-opacity: 0.06; }
  25% { fill-opacity: 0.9; }
  35% { fill-opacity: 0.25; }
  55%, 100% { fill-opacity: 1; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes shot {
  0% { transform: translate(-190px, 50px); }
  15% { transform: translate(-137px, 40px); }
  35% { transform: translate(-86px, 26px); }
  60% { transform: translate(-41px, 11px); }
  100% { transform: translate(0, 0); }
}
@keyframes draw { from { stroke-dashoffset: 260; } }
@keyframes goal {
  0%, 100% { opacity: 1; }
  0% { opacity: 0; }
  20%, 60% { opacity: 1; }
  40%, 80% { opacity: 0.2; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .lost > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  .term { animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .term .tl { animation: appear 0.01s both; animation-delay: calc(0.6s + var(--i) * 0.11s); }
  .term .cursor { animation: blink 1.1s steps(1) infinite; }

  .house { animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .house .win { animation: lightup 0.9s both; animation-delay: calc(0.75s + var(--i) * 0.22s); }
  .house .glow { animation: fade 1.4s 1.6s both; }
  .rink { animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rink .puck { animation: shot 1.1s 0.9s cubic-bezier(0.3, 0.5, 0.4, 1) both; }
  .rink .trail { animation: draw 1.1s 0.9s cubic-bezier(0.3, 0.5, 0.4, 1) both; }
  .rink .goal-lamp { animation: goal 1.2s 2s both; }
  .house .led { animation: pulse 2.6s 2.4s ease-in-out infinite; }
  .dot { animation: pulse 2.2s ease-in-out infinite; }

  .card, .copy, .room svg rect { transition: transform 0.25s ease, border-color 0.25s ease, fill 0.25s ease; }
  .reveal, .card.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
  }
  .reveal.in { opacity: 1; transform: none; }

  .flow li::after { transition: transform 0.7s cubic-bezier(0.6, 0, 0.3, 1); transition-delay: calc(var(--d, 0ms) * 4 + 0.2s); }
  .flow li::before { transition: border-color 0.3s, color 0.3s; transition-delay: calc(var(--d, 0ms) * 4 + 0.2s); }

  @media (hover: hover) {
    .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--lamp) 50%, var(--line)); }
    .btn:hover .arrow, .more:hover .arrow { transform: translateX(4px); }
    .contact-link:hover .arrow { transform: translate(3px, -3px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow li::after { transform: scaleX(1); }
  .flow li::before { border-color: var(--lamp); color: var(--lamp); }
}

/* ---------- úzké obrazovky ---------- */
@media (max-width: 880px) {
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .grid.two { grid-template-columns: minmax(0, 1fr); }
  .card.featured { grid-template-columns: minmax(0, 1fr); }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 56px; }
  .house { max-width: 260px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .rooms, .flow { grid-template-columns: minmax(0, 1fr); }
  .addr code { font-size: 0.8rem; }
  .facts dd { font-size: 1.35rem; }
  .rows div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .section { padding-block: 44px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .top { flex-wrap: nowrap; padding-block: 14px; gap: 12px; }
  .nav { gap: 4px 12px; flex-wrap: nowrap; }
  .nav a { font-size: 0.8rem; }
  .nav a { white-space: nowrap; }
  .nav .nav-gh { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .clips { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 1.05rem; }
  .brand svg { width: 22px; height: 22px; }
  .ff-logo svg { width: 44px; height: 44px; }
  .ff { gap: 14px; }
}
@media (max-width: 400px) {
  .nav { gap: 4px 10px; }
  .nav a { font-size: 0.76rem; }
  .brand { font-size: 1rem; }
}
