/* Putování za burčákem — účastnická PWA (styly dle design handoffu) */
@import url("tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: var(--color-navy); }
button, input, textarea, select { font-family: var(--font-body); }
button { -webkit-tap-highlight-color: transparent; }

/* ===== Animace ===== */
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(17,41,76,0.45); } 70% { box-shadow: 0 0 0 11px rgba(17,41,76,0); } 100% { box-shadow: 0 0 0 0 rgba(17,41,76,0); } }
@keyframes stampDrop { 0% { transform: scale(2.6) rotate(-10deg); opacity: 0; } 55% { transform: scale(0.94) rotate(1deg); opacity: 1; } 75% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes confettiFall { 0% { transform: translateY(-30px) rotate(0deg); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(70vh) rotate(560deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===== Skořápka appky ===== */
.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.app-header {
  background: var(--color-navy);
  color: var(--color-cream);
  padding: calc(14px + env(safe-area-inset-top)) 18px 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.app-header__flower { width: 32px; height: 30px; display: block; }
.app-header__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.net-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(228,207,183,0.14);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11.5px; font-weight: 500;
  color: var(--color-cream);
}
.net-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-online-dot); display: inline-block; }
.net-chip.is-offline { background: rgba(228,207,183,0.18); }
.net-chip.is-offline .net-chip__dot { background: var(--color-warn); }

.offline-bar {
  background: var(--color-warn-bg);
  color: var(--color-brown);
  font-size: 12.5px;
  padding: 9px 16px;
  display: none;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(161,138,107,0.25);
}
.offline-bar.is-visible { display: flex; }
.offline-bar svg { flex-shrink: 0; }
.offline-bar strong { font-weight: 600; color: var(--color-warn-text); }

.app-content { flex: 1; position: relative; overflow: hidden; min-height: 0; }

.screen {
  display: none;
  position: absolute;
  inset: 0;
  animation: fadeIn 0.25s ease;
  z-index: 1; /* izolace: glass prvky mapy nesmí probít nad sheety */
  isolation: isolate;
}
.screen.is-active { display: flex; flex-direction: column; }
.screen--scroll { overflow-y: auto; padding: 18px 16px 20px 16px; }
/* Ve scroll-screenu (flex sloupec) se přímé děti nesmí smršťovat — jinak se obsah
   ořízne a obrazovka nejde scrollovat (flex-shrink default = 1). */
.screen--scroll.is-active > * { flex-shrink: 0; }

/* ===== Spodní navigace ===== */
.bottom-nav {
  flex-shrink: 0;
  background: var(--color-paper);
  border-top: 1px solid var(--color-cream);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(10px + env(safe-area-inset-bottom)) 6px;
}
.bottom-nav__btn {
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0;
  color: rgba(108,93,71,0.55);
  font-size: 11px; font-weight: 500;
  position: relative;
}
.bottom-nav__btn.is-active { color: var(--color-navy); }
.bottom-nav__badge {
  position: absolute; top: 3px; right: 50%; margin-right: -26px;
  background: var(--color-gold); color: var(--color-paper);
  font-size: 9.5px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 1px 6px;
}

/* ===== Sdílené prvky ===== */
.h-screen { font-family: var(--font-display); font-size: 26px; margin: 0; color: var(--color-navy); }
.microlabel {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--color-gold); text-transform: uppercase;
}
.card { background: var(--color-paper); border-radius: var(--radius-card); }
.btn-primary {
  border: none; cursor: pointer;
  background: var(--color-navy); color: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 15px; font-size: 15.5px; font-weight: 600;
  transition: transform 0.12s ease;
  width: 100%;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
.btn-cream {
  border: none; cursor: pointer;
  background: var(--color-cream); color: var(--color-navy);
  border-radius: var(--radius-pill);
  padding: 13px; font-size: 14px; font-weight: 600;
  transition: transform 0.12s ease;
}
.btn-cream:active { transform: scale(0.97); }
.btn-outline {
  border: 1.5px solid var(--color-gold); cursor: pointer;
  background: none; color: var(--color-brown);
  border-radius: var(--radius-pill);
  padding: 11px 22px; font-size: 13.5px; font-weight: 600;
  transition: transform 0.12s ease;
}
.btn-outline:active { transform: scale(0.97); }
.btn-ghost-text {
  border: none; cursor: pointer; background: none;
  color: var(--color-brown); padding: 13px; font-size: 14px; font-weight: 600;
}
.btn-back {
  border: none; background: var(--color-paper);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; color: var(--color-navy);
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.input {
  border: none; background: var(--color-paper);
  border-radius: 14px; padding: 14px 16px;
  font-size: 15px; color: var(--color-navy);
  outline: none; min-width: 0; width: 100%;
}
.input::placeholder { color: rgba(108,93,71,0.6); }
.input:focus { box-shadow: 0 0 0 2px rgba(80,146,226,0.45); }
.form-error {
  display: none;
  background: var(--color-danger-bg); color: var(--color-danger);
  border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  margin-top: 12px;
}
.form-error.is-visible { display: block; }
.form-ok {
  background: var(--color-success-bg); color: var(--color-success-text);
  border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  margin-top: 12px;
}

.segmented { display: flex; background: var(--color-cream); border-radius: var(--radius-pill); padding: 2px; gap: 2px; }
.segmented__btn {
  border: none; cursor: pointer; border-radius: var(--radius-pill);
  padding: 5px 13px; font-size: 12.5px; font-weight: 700;
  background: transparent; color: var(--color-brown);
}
.segmented__btn.is-active { background: var(--color-navy); color: var(--color-cream); }

.row-list { background: var(--color-paper); border-radius: var(--radius-card); padding: 4px 16px; }
.row-list__row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #EFE3CE; font-size: 14px;
}
.row-list__row:last-child { border-bottom: none; }
.row-list__label { color: var(--color-brown); }

/* ===== Mapa ===== */
#screen-mapa { background: #EFE3CE; }
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #EFE3CE; }
.map-canvas .leaflet-container { background: #EFE3CE; font-family: var(--font-body); }

/* Stylizace podkladu: odbarvení + posun odstínu do brandu, overlay dorovnává tón.
   Filter je na JEDNOTLIVÝCH dlaždicích (ne na .leaflet-tile-pane) — Safari na iOS
   zahazuje filter na 3D-transformované vrstvě, na img/dlaždicích funguje spolehlivě.
   Funkce jsou per-pixel (contrast/brightness/saturate/hue-rotate) → žádné švy mezi dlaždicemi. */
 /* .map-canvas .leaflet-tile { filter: contrast(1.2) brightness(1) saturate(0.6) hue-rotate(-30deg); } */

.map-tint {
  position: absolute; top: 0; left: 0;
  background-color: rgba(41, 31, 13, 0.1);
  pointer-events: none;
  z-index: 300;
  will-change: transform;
  display: none;
}

.mk { background: none; border: none; }
.mk-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-paper);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(17,41,76,0.3);
  transition: transform 0.12s ease;
  cursor: pointer;
}
.mk-dot:hover { transform: scale(1.15); }
.mk-dot:active { transform: scale(0.88); }
.mk-dot.is-earned { background: var(--color-blue); color: #FFFFFF; }
.mk-dot.is-next { animation: pulseRing 2s ease-out infinite; }
.mk-dot.is-view {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--color-gold); color: #FFFFFF; font-size: 9px;
}
.mk-dot.is-start {
  width: 28px; height: 28px;
  background: var(--color-navy); color: var(--color-gold); font-size: 15px;
  border: 2px solid var(--color-paper);
  box-shadow: 0 2px 10px rgba(17,41,76,0.45);
}
.mk-village {
  font-family: var(--font-display); font-style: italic;
  font-size: 13px; font-weight: 400; color: var(--color-navy);
  white-space: nowrap; pointer-events: none;
  text-shadow: 0 1px 0 #EFE3CE, 0 -1px 0 #EFE3CE, 1px 0 0 #EFE3CE, -1px 0 0 #EFE3CE, 0 0 6px #EFE3CE;
  transform: translate(-50%, -50%);
  display: inline-block;
}
.mk-startchip {
  transform: translate(-50%, 0);
  display: inline-block;
  background: var(--color-navy); color: var(--color-cream);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
}
.mk-me {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-blue);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(17,41,76,0.4);
}

.map-topbar {
  position: absolute; top: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  z-index: 500;
}
.glass-seg {
  display: flex;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 3px; gap: 2px;
  box-shadow: 0 8px 24px rgba(17,41,76,0.10);
}
.glass-seg__btn {
  border: none; cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--color-brown);
}
.glass-seg__btn.is-active { background: var(--color-navy); color: var(--color-cream); }
.map-gpx {
  margin-left: auto;
  border: var(--glass-border);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--color-brown);
  border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17,41,76,0.10);
  text-decoration: none;
}

.map-bottom {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
  z-index: 500;
}
.map-locate {
  pointer-events: auto;
  align-self: flex-end;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,253,248,0.35);
  background: var(--color-navy); color: #FFFFFF;
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(17,41,76,0.3);
}
.map-next {
  pointer-events: auto;
  border: var(--glass-border);
  text-align: left;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 18px;
  padding: 11px 14px;
  display: flex; align-items: center; gap: 11px;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  animation: rise 0.3s ease;
  transition: transform 0.12s ease;
}
.map-next:active { transform: scale(0.97); }
.map-next__num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-paper); color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(17,41,76,0.3);
}
.map-next__body { flex: 1; min-width: 0; }
.map-next__label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(108,93,71,0.85);
}
.map-next__name {
  font-size: 13.5px; color: var(--color-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-next__name strong { font-weight: 600; }
.map-next__name span { font-weight: 400; opacity: 0.7; }
.map-next__chev { color: var(--color-gold); font-size: 24px; line-height: 1; }
.map-attrib {
  align-self: flex-end;
  font-size: 9px; color: rgba(108,93,71,0.75);
  text-shadow: 0 0 4px #EFE3CE;
}
.map-attrib a { color: inherit; text-decoration: none; }

/* ===== Razítka ===== */
.stamps-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.stamps-count { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.stamps-count__num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--color-navy); line-height: 1; }
.stamps-count__total { font-size: 13.5px; color: var(--color-brown); font-weight: 700; }

.raffle-card {
  position: relative;
  background: var(--color-paper); color: var(--color-navy);
  border-radius: var(--radius-card);
  padding: 16px 40px 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(17,41,76,0.08);
}
.raffle-card.is-qualified { background: var(--color-navy); color: var(--color-cream); }
.raffle-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 3px; }
.raffle-card__text { font-size: 13.5px; opacity: 0.85; line-height: 1.45; }
.raffle-card__close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(17,41,76,0.08); color: currentColor;
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
}
.raffle-card.is-qualified .raffle-card__close { background: rgba(228,207,183,0.16); }

.stamps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 560px) { .stamps-grid { grid-template-columns: 1fr 1fr 1fr; } }
.stamp-card {
  background: var(--color-paper);
  border: none;
  border-radius: var(--radius-card);
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  text-align: left; cursor: pointer;
  box-shadow: 0 8px 24px rgba(17,41,76,0.06);
  animation: pop 0.3s ease both;
  transition: transform 0.12s ease;
}
.stamp-card:active { transform: scale(0.96); }
.stamp-card.is-earned { background: var(--color-blue-tint); }
.stamp-card__photowrap { display: block; width: 100%; padding: 6px 6px 0 6px; }
.stamp-card__photo {
  display: block;
  position: relative; width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden;
  background: var(--color-cream);
}
.stamp-card__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.stamp-card__vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 26px rgba(17,41,76,0.20), inset 0 1px 0 rgba(255,255,255,0.25);
  border-radius: 14px; pointer-events: none;
}
.stamp-card__num {
  position: absolute; top: 7px; left: 7px;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 11.5px; font-weight: 600; color: var(--color-navy);
}
.stamp-card__check {
  position: absolute; top: 7px; right: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-blue); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  animation: pop 0.4s ease;
}
.stamp-card__body { display: block; padding: 10px 12px 12px 12px; }
.stamp-card__name { font-size: 13.5px; font-weight: 600; color: var(--color-navy); line-height: 1.25; }
.stamp-card__village { font-size: 11.5px; color: var(--color-gold); margin-top: 2px; }

/* ===== Můj QR ===== */
#screen-qr { align-items: center; text-align: center; padding: 22px 20px; }
.qr-sub { font-size: 14px; color: var(--color-brown); margin-bottom: 18px; }
.ticket {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(17,41,76,0.12);
  position: relative;
  width: 272px;
  flex-shrink: 0;
}
.ticket__qrwrap { padding: 24px 26px 6px 26px; display: flex; justify-content: center; }
.ticket__qr { display: block; width: 220px; height: 220px; }
.ticket__number { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-gold); margin-top: 2px; }
.ticket__perf { position: relative; margin-top: 14px; border-top: 2px dashed var(--color-cream); }
.ticket__perf::before, .ticket__perf::after {
  content: ""; position: absolute; top: -11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-bg);
}
.ticket__perf::before { left: -11px; }
.ticket__perf::after { right: -11px; }
.ticket__account {
  width: 100%; border: none; cursor: pointer; background: none;
  padding: 14px 18px 16px 18px;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.12s ease;
}
.ticket__account:active { transform: scale(0.97); }
.ticket__monogram {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.ticket__who { text-align: left; flex: 1; min-width: 0; }
.ticket__name { font-weight: 600; font-size: 15px; color: var(--color-navy); }
.ticket__status { font-size: 12.5px; font-weight: 600; }
.ticket__status.is-active { color: #7BA05B; }
.ticket__status.is-waiting { color: var(--color-warn-text); }
.ticket__chev { color: var(--color-gold); font-size: 24px; line-height: 1; }
.qr-print-btn { margin-top: 14px; }
.qr-note {
  font-size: 12.5px; color: var(--color-brown);
  margin-top: 12px; max-width: 280px; line-height: 1.5;
}

/* ===== Můj účet ===== */
.account-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.consent-card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.consent-card__title { font-size: 14px; font-weight: 700; }
.consent-card__text { font-size: 12px; color: var(--color-brown); line-height: 1.4; }
.toggle {
  border: none; cursor: pointer;
  width: 46px; height: 27px;
  border-radius: var(--radius-pill);
  background: #D5C3AA;
  position: relative; flex-shrink: 0; padding: 0;
  transition: background 0.15s ease;
}
.toggle.is-on { background: var(--color-gold); }
.toggle__knob {
  position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--color-paper);
  transition: left 0.15s ease;
  box-shadow: 0 1px 3px rgba(17,41,76,0.3);
}
.toggle.is-on .toggle__knob { left: 22px; }
.account-links {
  display: flex; justify-content: center; gap: 18px;
  font-size: 12px; margin-top: 4px;
}
.account-links a, .account-links button {
  color: var(--color-brown);
  background: none; border: none; cursor: pointer;
  font-size: 12px; padding: 0;
  text-decoration: underline;
}

/* ===== Kontakty ===== */
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.sos-tile {
  text-decoration: none;
  background: var(--color-navy); color: var(--color-cream);
  border-radius: var(--radius-card);
  padding: 14px; text-align: center;
  transition: transform 0.12s ease;
  display: block;
}
.sos-tile:active { transform: scale(0.96); }
.sos-tile__num { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.sos-tile__label { font-size: 12px; opacity: 0.8; }
.zachranka {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.zachranka__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-danger); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.zachranka__title { font-size: 14.5px; font-weight: 700; }
.zachranka__text { font-size: 12.5px; color: var(--color-brown); line-height: 1.4; }
.zachranka__link { font-size: 13px; font-weight: 700; color: var(--color-gold); white-space: nowrap; text-decoration: none; }
.contact-card {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.contact-card .microlabel { display: block; margin-bottom: 10px; }
.contact-card__rows { display: flex; flex-direction: column; gap: 10px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.contact-row__name { font-size: 14.5px; font-weight: 700; }
.contact-row__name--plain { font-weight: 400; }
.contact-row a { font-size: 14px; font-weight: 700; color: var(--color-brown); }
.contact-row a.plain { font-weight: 400; }
.partners-label { text-align: center; display: block; margin-bottom: 10px; margin-top: 4px; }
.partners-card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
.partners-card a { display: contents; }
.partners-card img { max-width: 52%; max-height: 56px; object-fit: contain; }
.partners-card img.is-main { max-width: 76%; max-height: 92px; }

/* ===== Detail lokace (bottom sheet) ===== */
.overlay-holder { position: absolute; inset: 0; z-index: 20; display: none; }
.overlay-holder.is-open { display: block; }
.sheet-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; z-index: 20; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(17,41,76,0.45); animation: fadeIn 0.2s ease; }
.sheet {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  max-height: 88%;
  overflow-y: auto;
  animation: sheetUp 0.25s ease;
}
.detail__gallery-wrap { height: 170px; background: var(--color-cream); position: relative; }
.detail__gallery {
  position: absolute; inset: 0;
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.detail__gallery::-webkit-scrollbar { display: none; }
.detail__gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
}
.detail__gallery-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 34px rgba(17,41,76,0.20);
  pointer-events: none;
}
.detail__dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px; pointer-events: none;
}
.detail__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,253,248,0.5);
  box-shadow: 0 1px 3px rgba(17,41,76,0.4);
}
.detail__dot.is-active { background: var(--color-paper); }
.detail__close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,253,248,0.5);
  background: rgba(255,253,248,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--color-navy);
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(17,41,76,0.25);
}
.detail__body { padding: 18px 20px 24px 20px; }
.detail__title { font-family: var(--font-display); font-size: 23px; margin: 4px 0 10px 0; color: var(--color-navy); }
.detail__chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-cream); color: var(--color-navy);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px;
}
.detail__chip.is-earned { background: var(--color-blue); color: #FFFFFF; }
.detail__chip.is-view { color: var(--color-brown); }
.detail__reg {
  background: var(--color-success-bg); color: var(--color-success-text);
  border-radius: 12px; padding: 10px 14px; margin: 0 0 14px 0;
  font-size: 13px; font-weight: 600; line-height: 1.45;
}
.detail__desc { font-size: 14.5px; line-height: 1.55; color: var(--color-navy); margin: 0 0 16px 0; }
.detail__rows { background: var(--color-paper); border-radius: 14px; padding: 4px 16px; }
.detail__row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid #EFE3CE;
  font-size: 14px;
}
.detail__row:last-child { border-bottom: none; }
.detail__row span:first-child { color: var(--color-brown); flex-shrink: 0; }
.detail__row strong, .detail__row a { font-weight: 700; text-align: right; word-break: break-word; }
.detail__minimap {
  margin-top: 12px; position: relative;
  border-radius: 14px; overflow: hidden;
  height: 96px; background: var(--color-cream);
}
.detail__minimap-tiles { position: absolute; inset: 0; display: flex; filter: contrast(1.5) brightness(0.9) saturate(0.3) hue-rotate(-70deg); }
.detail__minimap-tiles div { flex: 1; background-size: 100% 100%; }
.detail__minimap-tint { position: absolute; inset: 0; pointer-events: none; background-color: rgba(241, 239, 231, 0.1); }
.detail__minimap-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-blue);
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(17,41,76,0.4);
}
.detail__msg-btn { display: block; width: 100%; margin-top: 12px; }
.detail__note { margin-top: 18px; }
.detail__note .microlabel { display: block; margin-bottom: 8px; }
.detail__note-input { resize: vertical; min-height: 80px; line-height: 1.45; font-size: 14.5px; }
.detail__note-status { min-height: 16px; margin-top: 6px; font-size: 12px; color: var(--color-brown); }
.confirm-card textarea.input { resize: vertical; line-height: 1.45; }
.detail__nav {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 12.5px; font-weight: 600;
  color: var(--color-navy); text-decoration: none;
  box-shadow: 0 2px 8px rgba(17,41,76,0.2);
}

/* ===== Oslava razítka ===== */
.celebrate {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(17,41,76,0.93);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  animation: fadeIn 0.2s ease;
  cursor: pointer; overflow: hidden;
}
.celebrate__confetti {
  position: absolute; top: -20px;
  border-radius: 2px;
  animation: confettiFall linear both;
}
.celebrate__circle {
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--color-blue); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 700;
  animation: stampDrop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  box-shadow: 0 0 0 12px rgba(80,146,226,0.22);
}
.celebrate__title { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--color-cream); }
.celebrate__sub { font-size: 14.5px; color: rgba(228,207,183,0.85); margin-top: -8px; }

/* ===== Onboarding ===== */
.ob {
  position: fixed; inset: 0; z-index: 40;
  background: var(--color-bg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.ob__step {
  display: none; position: absolute; inset: 0;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}
.ob__step.is-active { display: flex; }
.ob__step--pad { padding: calc(22px + env(safe-area-inset-top)) 24px 24px 24px; overflow-y: auto; }
.ob-hero {
  height: 42%;
  background-image: url(/assets/img/cover.jpg);
  background-size: 150% auto;
  background-position: center 28%;
  background-repeat: no-repeat;
  position: relative;
  flex-shrink: 0;
}
.ob-hero__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,237,223,0) 60%, rgba(245,237,223,0.25) 78%, rgba(245,237,223,0.65) 90%, rgba(245,237,223,1) 100%);
}
.ob-hero__ribbon { position: absolute; left: 24px; top: 0; width: 108px; height: auto; }
.ob-welcome__body {
  flex: 1; display: flex; flex-direction: column;
  padding: 0 26px calc(26px + env(safe-area-inset-bottom)) 26px;
  overflow-y: auto;
}
.ob-welcome__title {
  font-family: var(--font-display);
  font-size: 30px; line-height: 1.1;
  margin: 22px 0 4px 0; color: var(--color-navy);
}
.ob-welcome__sub { font-size: 14px; color: var(--color-brown); margin-bottom: 20px; }
.ob-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.ob-steps__item { display: flex; gap: 12px; align-items: center; }
.ob-steps__num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-cream); color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.ob-steps__text { font-size: 14px; color: var(--color-navy); }
.ob__cta { margin-top: auto; }
.ob-h { font-family: var(--font-display); font-size: 27px; margin: 0 0 4px 0; color: var(--color-navy); }
.ob-sub { font-size: 14px; color: var(--color-brown); margin-bottom: 20px; }
.ob-back { align-self: flex-start; border: none; background: var(--color-paper); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--color-navy); font-size: 17px; margin-bottom: 16px; flex-shrink: 0; }

.route-card {
  border: none; text-align: left;
  background: var(--color-paper); color: var(--color-navy);
  border-radius: var(--radius-card);
  padding: 18px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 24px rgba(17,41,76,0.08);
  transition: transform 0.12s ease;
  width: 100%;
}
.route-card:active { transform: scale(0.97); }
.route-card.is-selected { background: var(--color-navy); color: var(--color-bg); }
.route-card__emoji { font-size: 28px; }
.route-card__body { flex: 1; }
.route-card__title { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.route-card__sub { display: block; font-size: 13px; opacity: 0.75; margin-top: 2px; }
.route-card__dot { width: 22px; height: 22px; border-radius: 50%; background: #EFE3CE; display: block; flex-shrink: 0; }
.route-card.is-selected .route-card__dot { background: var(--color-blue); }

.ob-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-check { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.ob-check + .ob-check { margin-top: 12px; }
.ob-check input { width: 19px; height: 19px; margin: 1px 0 0 0; accent-color: var(--color-navy); flex-shrink: 0; }
.ob-check span { font-size: 13px; color: var(--color-navy); line-height: 1.45; }
.ob-check--optional span { color: var(--color-brown); }
.ob-check a { color: var(--color-gold); }

.ob-done { align-items: center; text-align: center; padding: calc(30px + env(safe-area-inset-top)) 26px calc(26px + env(safe-area-inset-bottom)) 26px; overflow-y: auto; }
.ob-done__check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-blue); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  margin: 14px 0;
  animation: pop 0.4s ease;
}
.chip-waiting {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-warn-bg); color: var(--color-warn-text);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.chip-waiting::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-warn); display: inline-block;
}
.ob-done__qr {
  background: #FFFFFF; border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.ob-done__qr canvas { display: block; width: 160px; height: 160px; }
.ob-done__note { font-size: 13.5px; color: var(--color-brown); line-height: 1.55; max-width: 300px; }
.ob-forgot-link { text-align: center; margin-top: 14px; }
.ob-forgot-link button { background: none; border: none; cursor: pointer; color: var(--color-brown); font-size: 13px; text-decoration: underline; padding: 6px; }

/* ===== Potvrzovací dialog (smazání účtu) ===== */
.confirm-card { padding: 22px 22px calc(20px + env(safe-area-inset-bottom)) 22px; }
.confirm-card h3 { font-family: var(--font-display); font-size: 21px; margin: 0 0 8px 0; color: var(--color-navy); line-height: 110%; }
.confirm-card p { font-size: 13.5px; color: var(--color-brown); line-height: 1.5; margin: 0 0 14px 0; }
.btn-danger {
  border: none; cursor: pointer;
  background: var(--color-danger); color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 14px; font-size: 15px; font-weight: 600;
  width: 100%;
  transition: transform 0.12s ease;
}
.btn-danger:active { transform: scale(0.97); }

/* ===== Dialog trasy (Navigovat v Mapy.com / Stáhnout GPX) ===== */
.route-sheet__actions { display: flex; flex-direction: column; gap: 10px; }
.route-sheet__actions > a { display: block; box-sizing: border-box; width: 100%; text-align: center; text-decoration: none; }

/* ===== Toast ===== */
.toast {
  position: absolute; left: 50%; bottom: 90px;
  transform: translateX(-50%);
  background: var(--color-navy); color: var(--color-cream);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 60;
  animation: rise 0.25s ease;
  max-width: 86%;
  text-align: center;
}

/* ===== Tisk QR ===== */
#print-sheet { display: none; }
@media print {
  html, body { background: #FFFFFF !important; height: auto; }
  .app, .ob, .toast { display: none !important; }
  #print-sheet {
    display: flex !important;
    flex-direction: column; align-items: center;
    text-align: center;
    padding: 60px 40px;
    color: #000000;
    font-family: var(--font-body);
  }
  #print-sheet .print-flower { width: 54px; height: 51px; margin-bottom: 14px; filter: brightness(0); }
  #print-sheet .print-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
  #print-sheet .print-sub { font-size: 15px; margin: 4px 0 34px 0; }
  #print-sheet canvas { width: 320px; height: 320px; }
  #print-sheet .print-name { font-size: 21px; font-weight: 600; margin-top: 26px; }
  #print-sheet .print-route { font-size: 14px; margin-top: 4px; }
  #print-sheet .print-note { font-size: 14px; margin-top: 30px; max-width: 420px; line-height: 1.6; }
}

/* ===== Zámek obsahu (v2) ===== */

/* Jantarový chip „Čeká na aktivaci" (placeholder mapy) */
.chip-amber {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-warn-bg); color: var(--color-warn-text);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
}
.chip-amber::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-warn); display: inline-block;
}

/* Zelenkavý chip „Zaplaceno ✓" (onboarding, waiting) */
.chip-paid {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--color-success-bg); color: var(--color-success-text);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}

/* Placeholder zamčené obrazovky (Mapa) */
.locked-screen[hidden] { display: none; }
.locked-screen {
  position: absolute; inset: 0;
  background: var(--color-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 30px; gap: 4px;
  z-index: 600;
  animation: fadeIn 0.35s ease;
}
.locked-screen__flower {
  width: 92px; height: 86px; margin-bottom: 18px;
  filter: grayscale(1) brightness(1.75) opacity(0.55);
}
.locked-screen__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 27px; line-height: 1.15; color: var(--color-navy);
  margin: 0 0 10px 0; max-width: 320px;
}
.locked-screen__text {
  font-size: 14.5px; line-height: 1.55; color: var(--color-brown);
  margin: 0 0 20px 0; max-width: 300px;
}

/* Zamčená Razítka — podtitulek + neklikatelné karty jen s fotkou */
.stamps-locked-note {
  font-size: 13.5px; line-height: 1.5; color: var(--color-brown);
  margin: 2px 0 14px 0;
}
.stamp-card.is-locked { cursor: default; }
.stamp-card.is-locked:active { transform: none; }
.stamp-card.is-locked .stamp-card__photo { border-radius: 12px; }

/* Stav účtu (Můj účet) + zaplaceno v QR ticketu */
.account-status {
  display: inline-flex; align-self: flex-start; align-items: center;
  border-radius: var(--radius-pill);
  padding: 8px 16px; margin-bottom: 16px;
  font-size: 13px; font-weight: 600;
}
.account-status.is-active { background: var(--color-success-bg); color: var(--color-success-text); }
.account-status.is-paid { background: var(--color-success-bg); color: var(--color-success-text); }
.account-status.is-waiting { background: var(--color-warn-bg); color: var(--color-warn-text); }
.ticket__status.is-paid { color: var(--color-success-text); }

/* ===== Program ===== */
.program-head { margin-bottom: 16px; flex-shrink: 0; }
.program-sub { font-size: 13px; color: var(--color-gold); font-weight: 500; margin-top: 4px; }
.program-list {
  background: var(--color-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  flex-shrink: 0; /* ve scroll-screenu se nesmí smrštit — jinak se řádky oříznou a nejde scrollovat */
}
.program-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--color-cream);
}
.program-row:last-child { border-bottom: none; }
.program-row__time {
  flex-shrink: 0; min-width: 82px;
  font-weight: 700; color: var(--color-navy);
  font-size: 14.5px; font-variant-numeric: tabular-nums;
}
.program-row__body { flex: 1; }
.program-row__title { font-size: 14.5px; font-weight: 600; color: var(--color-navy); line-height: 1.3; }
.program-row__note { font-size: 12.5px; color: var(--color-gold); margin-top: 3px; line-height: 1.4; }
.program-empty { font-size: 14px; color: var(--color-brown); text-align: center; padding: 40px 20px; }
