/* ===========================================================
   Víťova základna klidu — styly (chladné, „chlapské“ ladění)
   =========================================================== */

:root {
  --c-steel:  #3b82f6;
  --c-blue:   #2563eb;
  --c-cyan:   #22d3ee;
  --c-teal:   #2dd4bf;
  --c-green:  #34d399;
  --c-slate:  #1e293b;
  --c-slate2: #334155;
  --ink:      #e8eef6;
  --ink-soft: #9fb0c3;
  --card:     rgba(22, 32, 52, 0.74);
  --card-solid:#162034;
  --shadow:   0 18px 40px -16px rgba(0, 0, 0, 0.75);
  --radius:   26px;
  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 8% -10%, rgba(37, 99, 235, 0.38), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(13, 148, 136, 0.30), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, rgba(14, 116, 144, 0.32), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #0f1b2e 50%, #0a1422 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2 { font-family: var(--font-head); letter-spacing: -0.01em; }

/* ---------- konfety + plovoucí dekorace ---------- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}

.floaties { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.floaty {
  position: absolute;
  left: var(--x);
  bottom: -60px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  opacity: 0.4;
  animation: float-up var(--s, 26s) linear var(--d, 0s) infinite;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.45; }
  90%  { opacity: 0.45; }
  100% { transform: translateY(-115vh) rotate(220deg); opacity: 0; }
}

/* ---------- zvuk toggle ---------- */
.sound-toggle {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 70;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--card-solid);
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform .15s ease;
}
.sound-toggle:hover { transform: scale(1.1) rotate(-8deg); }
.sound-toggle.muted { filter: grayscale(1); opacity: 0.65; }

/* ---------- dock navigace ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 65;
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dock a {
  text-decoration: none;
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: transform .18s ease, background .18s ease;
}
.dock a:hover { transform: translateY(-6px) scale(1.15); background: rgba(56, 189, 248, 0.2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 22px 40px;
}
.hero-inner { max-width: 760px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  margin: 0 0 18px;
  line-height: 1.02;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(100deg, #60a5fa, #22d3ee 48%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wiggle-in .8s ease;
}
@keyframes wiggle-in {
  0% { transform: scale(0.8) rotate(-4deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 auto 34px;
  max-width: 640px;
}
.hero-sub strong { color: var(--ink); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.stat {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 14px 20px;
  min-width: 120px;
  box-shadow: var(--shadow);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}
.stat-label { font-size: 0.82rem; color: var(--ink-soft); }

.scroll-hint {
  display: inline-block;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- stanice (karty) ---------- */
.stations {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 22px 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.station {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.station--wide { grid-column: 1 / -1; }

.station-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.station-emoji {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  border-radius: 16px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.35);
}
.station-head h2 { margin: 0; font-size: 1.5rem; color: var(--ink); }
.station-desc { color: var(--ink-soft); margin: 6px 0 20px; line-height: 1.55; }

/* ---------- tlačítka ---------- */
.big-btn, .mini-btn, .smash-btn {
  font-family: var(--font-head);
  cursor: pointer;
  border: none;
  border-radius: 999px;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  color: #fff;
}
.big-btn {
  margin-top: auto;
  align-self: center;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 16px 38px;
  background: linear-gradient(120deg, #2563eb, #22d3ee);
  box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.7);
}
.big-btn:hover { transform: translateY(-3px) scale(1.03); }
.big-btn:active { transform: translateY(1px) scale(0.98); }

.mini-btn {
  margin-top: auto;
  align-self: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 11px 24px;
  background: linear-gradient(120deg, #0ea5e9, #14b8a6);
  box-shadow: 0 10px 20px -8px rgba(13, 148, 136, 0.6);
}
.mini-btn:hover { transform: translateY(-2px) scale(1.03); }
.mini-btn:active { transform: translateY(1px) scale(0.98); }

/* ---------- povzbuzení ---------- */
.pep-card {
  background: linear-gradient(135deg, #16213a, #11192c);
  border: 2px dashed rgba(34, 211, 238, 0.45);
  border-radius: 20px;
  padding: 26px 24px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 22px;
}
#pep-text {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
}
.pep-card.pop { animation: pop-in .45s cubic-bezier(.18,1.4,.5,1); }
@keyframes pop-in {
  0% { transform: scale(0.85); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- bublinková fólie ---------- */
.bubble-wrap {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 18px;
}
.bubble {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.05) 44%),
    radial-gradient(circle at 70% 75%, #3b82f6, #1e3a8a);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.45), 0 2px 5px rgba(0,0,0,0.4);
  transition: transform .08s ease;
}
.bubble:hover { transform: scale(1.08); }
.bubble.popped {
  cursor: default;
  background: radial-gradient(circle at 50% 50%, rgba(56,189,248,0.18), rgba(30,41,59,0.45));
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
  transform: scale(0.82);
  animation: pop-squish .25s ease;
}
@keyframes pop-squish {
  0% { transform: scale(1.15); }
  55% { transform: scale(0.7); }
  100% { transform: scale(0.82); }
}
@media (max-width: 520px) { .bubble-wrap { grid-template-columns: repeat(6, 1fr); } }

/* ---------- dýchání ---------- */
.breath-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin-bottom: 18px;
}
.breath-circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  background: radial-gradient(circle at 35% 30%, #2dd4bf, #2563eb);
  box-shadow: 0 0 0 0 rgba(37,99,235,0.4), var(--shadow);
  transform: scale(1);
  transition: transform var(--breath-dur, 4s) ease-in-out,
              box-shadow var(--breath-dur, 4s) ease-in-out;
}
.breath-circle.inhale  { transform: scale(1.55); box-shadow: 0 0 0 26px rgba(34,211,238,0.14), var(--shadow); }
.breath-circle.exhale  { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(34,211,238,0.0), var(--shadow); }
.breath-count { font-size: 0.85rem; font-weight: 600; opacity: 0.9; margin-top: 4px; }

/* ---------- drtič stresu ---------- */
.stress-meter {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 22px;
}
.stress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #2dd4bf, #a3e635 38%, #f59e0b 72%, #ef4444);
  border-radius: 999px;
  transition: width .25s ease;
}
.stress-pct {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0b1220;
  text-shadow: 0 1px 2px rgba(255,255,255,0.55);
}
.smash-btn {
  margin-top: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f59e0b, #b91c1c);
  box-shadow: 0 14px 28px -10px rgba(185, 28, 28, 0.7);
  font-size: 3rem;
  color: #fff;
  user-select: none;
}
.smash-btn .smash-hint { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; }
.smash-btn:active { transform: scale(0.9); }
.smash-btn.done { background: radial-gradient(circle at 35% 30%, #34d399, #059669); }

/* otřes obrazovky */
.shake { animation: shake .3s; }
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 4px) rotate(-1deg); }
  40% { transform: translate(6px, -4px) rotate(1deg); }
  60% { transform: translate(-5px, -3px); }
  80% { transform: translate(5px, 3px); }
}

/* odlétávající jiskry u drtiče */
.spark {
  position: fixed;
  z-index: 55;
  font-size: 1.4rem;
  pointer-events: none;
  animation: spark-fly .7s ease-out forwards;
}
@keyframes spark-fly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0.4) rotate(var(--sr)); opacity: 0; }
}

/* ---------- komplimentový automat ---------- */
.vending { display: grid; place-items: center; margin-bottom: 20px; }
.vending-window {
  width: 100%;
  max-width: 340px;
  min-height: 150px;
  background: linear-gradient(160deg, #060b16, #1b263b);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 4px 18px rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vending-card {
  width: 100%;
  background: linear-gradient(135deg, #f1f5f9, #dbe4ef);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.12rem;
  line-height: 1.4;
  color: var(--c-slate);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  min-height: 110px;
  display: grid;
  place-items: center;
}
.vending-placeholder { color: #64748b; font-family: var(--font-body); font-size: 0.95rem; }
.vending-card.drop { animation: drop-in .55s cubic-bezier(.2,1.3,.4,1); }
@keyframes drop-in {
  0% { transform: translateY(-130%) rotate(-6deg); opacity: 0; }
  70% { transform: translateY(6%) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}

/* ---------- hoď úkol do koše ---------- */
.trash-game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  min-height: 180px;
}
.task-pile {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 240px;
  align-content: flex-start;
}
.task {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b263b, #243349);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  cursor: grab;
  user-select: none;
  touch-action: none;
  white-space: nowrap;
}
.task.dragging { cursor: grabbing; box-shadow: 0 16px 30px -10px rgba(34, 211, 238, 0.5); }
.task-pile.empty::after {
  content: "Stůl čistej. Žádná výmluva nezbyla. 💪";
  color: var(--ink-soft);
  font-style: italic;
}
.bin {
  position: relative;
  width: 120px; height: 130px;
  display: grid;
  place-items: end center;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.bin-body {
  font-size: 5rem;
  line-height: 1;
  transition: transform .15s ease;
}
.bin-lid {
  position: absolute;
  top: 6px;
  font-size: 0;
}
.bin.hover { transform: scale(1.12); }
.bin.hover .bin-body { transform: translateY(-6px) rotate(-4deg); }
.bin.chomp .bin-body { animation: chomp .35s ease; }
@keyframes chomp {
  0% { transform: scale(1); }
  40% { transform: scale(1.2, 0.85) rotate(3deg); }
  100% { transform: scale(1); }
}

/* ---------- motivační video ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #05080f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 30px -14px rgba(0, 0, 0, 0.8);
}
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  border: none;
  cursor: pointer;
  background: #05080f;
  display: grid;
  place-items: center;
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity .25s ease, transform .4s ease;
}
.video-facade:hover .video-thumb,
.video-facade:focus-visible .video-thumb { opacity: 1; transform: scale(1.05); }
.video-play {
  position: relative;
  z-index: 2;
  width: 88px; height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, #2563eb, #22d3ee);
  color: #fff;
  font-size: 2.1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  transform: scale(1.14);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.5);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Strabag koutek ---------- */
.strabag .station-emoji { background: linear-gradient(135deg, #e2001a, #ffb000); }
.strabag-red { color: #ff3b46; }

.strabag-banner { position: relative; overflow: hidden; }
.strabag-banner::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(45deg, #ffc400 0 16px, #15171c 16px 32px);
}
.strabag-banner-inner { position: relative; }

.strabag-btn {
  background: linear-gradient(120deg, #e2001a, #ff5a2c) !important;
  box-shadow: 0 10px 20px -8px rgba(226, 0, 26, 0.6) !important;
}

/* Zacel výmoly */
.road-stats {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 14px; color: var(--ink-soft); font-size: .95rem;
}
.road-stats b { color: var(--ink); font-family: var(--font-head); }
.road {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 14px; border-radius: 14px; margin-bottom: 20px;
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 196, 0, 0.16) 46px 54px),
    #15171c;
}
.road-cell {
  aspect-ratio: 1; border: none; padding: 0; border-radius: 10px;
  background: #2a2d34;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.45);
  position: relative; overflow: hidden; cursor: pointer;
}
.road-cell .hole {
  position: absolute; inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #050506, #000);
  box-shadow: inset 0 5px 9px rgba(0, 0, 0, 0.85);
  transform: scale(0);
  transition: transform .12s ease;
}
.road-cell.active .hole { transform: scale(1); }
.road-cell.patched { background: #3b3f48; }
.road-cell.patched .hole {
  background: radial-gradient(circle at 50% 40%, #4a4f59, #2f333b);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  transform: scale(1);
}
@media (max-width: 520px) { .road { grid-template-columns: repeat(3, 1fr); } }

/* Vytáhni mrakodrap */
.site {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 8px; min-height: 230px; margin-bottom: 14px; padding-top: 10px;
}
.crane { font-size: 2.6rem; line-height: 1; transform: translateY(-6px); }
.tower {
  display: flex; flex-direction: column-reverse; align-items: center;
  gap: 3px; padding-bottom: 4px;
  border-bottom: 5px solid #3a3f4a;
}
.floor {
  width: 92px; height: 14px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255, 196, 0, 0.5) 6px 9px, transparent 9px 15px),
    linear-gradient(180deg, #444a56, #2c313b);
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: floor-pop .25s ease;
}
@keyframes floor-pop {
  0% { transform: translateY(-14px) scaleY(.3); opacity: .2; }
  100% { transform: none; opacity: 1; }
}
.tower-count { text-align: center; color: var(--ink-soft); margin: 0 0 16px; }
.tower-count b { color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }

/* Tvrdá palba (cedule) */
.excuse-sign {
  border: 4px solid #ffc400;
  background: linear-gradient(135deg, #1b1d22, #14161b);
  border-radius: 14px;
  padding: 24px 20px; min-height: 96px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); font-size: 1.15rem; line-height: 1.4;
  color: var(--ink); margin-bottom: 20px;
}
.excuse-placeholder { color: var(--ink-soft); font-family: var(--font-body); font-size: .95rem; }
.excuse-sign.drop { animation: drop-in .5s cubic-bezier(.2,1.3,.4,1); }

/* ---------- Energetická injekce + rozcvička ---------- */
.energy .station-emoji { background: linear-gradient(135deg, #ffd000, #ff6a00); }
.energy-btn {
  background: linear-gradient(120deg, #ffb300, #ff5e3a) !important;
  box-shadow: 0 12px 24px -8px rgba(255, 140, 0, 0.7) !important;
  color: #2a1c00 !important;
}
.energy-btn.buzz { animation: buzz .18s ease; }
@keyframes buzz {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06) rotate(-1deg); }
}
.energy-label { color: var(--ink-soft); margin: 0 0 8px; font-size: .95rem; }
.energy-label b { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; }
.energy-meter {
  position: relative; height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 22px;
}
.energy-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffe000, #ff8a00 55%, #ff3b3b);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 180, 0, 0.65);
  transition: width .15s ease;
}

.workout-stage {
  display: grid; place-items: center; gap: 8px;
  min-height: 130px; text-align: center; margin-bottom: 20px;
  padding: 16px; background: rgba(255, 255, 255, 0.04); border-radius: 14px;
}
.workout-move {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--ink); line-height: 1.3;
}
.workout-move.pop { animation: pop-in .35s cubic-bezier(.18,1.4,.5,1); }
.workout-timer {
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: #ffd000;
}

/* celoobrazovkový záblesk energie */
.screen-flash {
  position: fixed; inset: 0; z-index: 78;
  pointer-events: none; opacity: 0.85;
  transition: opacity .4s ease;
}
.screen-flash.fade { opacity: 0; }

/* ---------- retro kancelářská sponka ---------- */
.clippy {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.clippy > * { pointer-events: auto; }

.clippy-char {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 60px;
  height: 80px;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.55));
  animation: clippy-bob 3.6s ease-in-out infinite;
}
.clippy-char svg { width: 100%; height: 100%; display: block; }
.clippy-char:hover { animation-play-state: paused; transform: scale(1.06); }
@keyframes clippy-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-3deg); }
}

.clippy-bubble {
  position: relative;
  width: 232px;
  background: linear-gradient(180deg, #ffffe8, #ffffc9);
  color: #1a1a1a;
  border: 1px solid #b9b400;
  border-radius: 10px;
  padding: 13px 13px 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.35;
  transform-origin: bottom right;
  animation: clippy-pop .26s ease;
}
.clippy-bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -9px;
  border-width: 9px 8px 0;
  border-style: solid;
  border-color: #ffffc9 transparent transparent;
}
.clippy-bubble::before {
  content: "";
  position: absolute;
  right: 23px;
  bottom: -11px;
  border-width: 11px 9px 0;
  border-style: solid;
  border-color: #b9b400 transparent transparent;
}
.clippy.collapsed .clippy-bubble { display: none; }
@keyframes clippy-pop {
  0% { transform: scale(.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.clippy-text {
  margin: 0 0 9px;
  font-family: var(--font-head);
  padding-right: 14px;
}
.clippy-form { display: flex; gap: 6px; }
.clippy-input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #9aa0a6;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.82rem;
}
.clippy-input:focus { outline: 2px solid #2563eb; outline-offset: 0; }
.clippy-form button {
  flex-shrink: 0;
  width: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(120deg, #2563eb, #22d3ee);
  color: #fff;
  font-size: 0.85rem;
}
.clippy-close {
  position: absolute;
  top: 3px;
  right: 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #777;
}
.clippy-close:hover { color: #000; }

@media (max-width: 600px) {
  .clippy { right: 12px; bottom: 88px; }
  .clippy-bubble { width: 200px; }
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 22px 110px;
  color: var(--ink-soft);
}
.footer-line { font-size: 1.05rem; margin: 0 0 6px; }
.footer-line strong { color: var(--ink); }
.footer-sub { margin: 0; font-size: 0.95rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 30px);
  z-index: 80;
  background: #0b1220;
  color: var(--ink);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-family: var(--font-head);
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsivita ---------- */
@media (max-width: 760px) {
  .stations { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

@media (max-width: 540px) {
  .dock { gap: 2px; padding: 5px 6px; }
  .dock a { width: 35px; height: 35px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
  html { scroll-behavior: auto; }
}
