/* ===== Mraq ===== */
@property --orb { syntax: '<color>'; inherits: true; initial-value: #8fd3b8; }
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #7f8de0; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #f6a38a; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #ff8a3d; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #ffd23f; }

:root {
  --ink: #141414;
  --ink-2: rgba(20, 20, 20, .55);
  --ink-3: rgba(20, 20, 20, .28);
  --glass: rgba(255, 255, 255, .22);
  --glass-line: rgba(255, 255, 255, .35);
  --accent: #e5322d;
  --sx: 50%;
  --sy: 30%;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --dot: 'Doto', var(--mono);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

body.dark {
  --ink: #f4f1ea;
  --ink-2: rgba(244, 241, 234, .6);
  --ink-3: rgba(244, 241, 234, .3);
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .12);
  --accent: #ffb547;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* jako appka: žádný zoom dvojklepem ani roztahováním (mapa radaru si zoom řeší sama) */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, .orb, .dial, .tl { touch-action: manipulation; }
.radar__map { touch-action: none; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #1b1d2b;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: color .6s var(--ease);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Obloha ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 52%, var(--c3) 100%);
  transition: --c1 .9s var(--ease), --c2 .9s var(--ease), --c3 .9s var(--ease), --glow .9s var(--ease);
}
body.scrubbing .sky { transition-duration: .25s; }
.sky__glow {
  position: absolute; inset: -20%;
  background: radial-gradient(38% 30% at var(--sx) var(--sy), var(--glow) 0%, transparent 70%);
  opacity: .85; mix-blend-mode: soft-light;
  transition: background-position .6s;
}
.sky__blob {
  position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%;
  filter: blur(60px); opacity: .45; mix-blend-mode: soft-light;
}
.sky__blob--a { background: var(--glow); left: -30vmax; top: 40%; animation: drift 22s ease-in-out infinite alternate; }
.sky__blob--b { background: var(--c1); right: -40vmax; top: -30vmax; animation: drift 28s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(18vmax, -12vmax) scale(1.15); } }
.sky__grain {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* déšť – jemné čárky přes oblohu */
.sky.rain::after {
  content: ''; position: absolute; inset: -50% 0 0; pointer-events: none; opacity: .1;
  background-image: repeating-linear-gradient(100deg, transparent 0 14px, rgba(255,255,255,.9) 14px 15px, transparent 15px 40px);
  background-size: 100% 60px;
  animation: rain .5s linear infinite;
}
@keyframes rain { to { transform: translateY(60px); } }

/* ---------- Layout ---------- */
.app {
  max-width: 480px; margin: 0 auto;
  padding: calc(var(--safe-t) + 18px) 18px calc(var(--safe-b) + 120px);
}
.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); }
body.ready .reveal {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Hlavička ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.place { text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.place__name { font-size: 26px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.place__sub { font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-2); }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .2s var(--ease);
}
.iconbtn:active { transform: scale(.92); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------- Líný text ---------- */
.lazy { margin: 22px 0 6px; font-family: var(--mono); font-size: 19px; line-height: 1.45; }
.lazy p { margin: 0; }
.lazy__big { text-transform: uppercase; color: var(--ink-2); letter-spacing: .02em; }
.lazy__big .w { display: inline-block; opacity: 0; transform: translateY(6px); filter: blur(4px); animation: word .7s var(--ease) forwards; animation-delay: calc(var(--d) * 90ms + 350ms); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.lazy__joke { margin-top: 14px !important; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.wear { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wear span {
  font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: scale(.9); animation: pop .5s var(--ease) forwards; animation-delay: calc(var(--d) * 60ms + 700ms);
}
.wear span:first-child { background: none; border-color: transparent; padding-left: 0; color: var(--ink-2); backdrop-filter: none; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* ---------- Mraq (maskot) ---------- */
.buddy { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; margin-top: 22px; }
.orb { position: relative; width: 104px; height: 104px; touch-action: manipulation; transition: --orb 1.2s var(--ease); }
.orb__glow, .orb__ball { position: absolute; border-radius: 50%; pointer-events: none; }
.orb__glow { inset: -14px; background: radial-gradient(closest-side, var(--orb), transparent); opacity: .55; filter: blur(14px); }
.orb__ball {
  inset: 2px; filter: blur(5px);
  background: radial-gradient(circle at 42% 34%, color-mix(in srgb, #fff 55%, var(--orb)) 0%, var(--orb) 46%, color-mix(in srgb, var(--orb) 80%, #000 10%) 72%, transparent 76%);
}
.orb__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orb__eye, .orb__mouthO { fill: #141414; stroke: none; }
.orb__lash { stroke: #141414; stroke-width: 3.4; fill: none; }
.orb__mouth { stroke: #141414; stroke-width: 3.6; fill: none; }
.orb__spark { fill: #fff; stroke: none; transition: opacity .3s; }
.orb__blush { fill: #ff7aa8; stroke: none; opacity: 0; filter: blur(2px); }
.orb__mouthO { transition: opacity .12s; }
.orb:active .orb__face { transform: scale(.94); }
.orb__face { transition: transform .2s var(--ease); transform-origin: 50% 60%; }
.orb.hop { animation: hop .7s var(--ease); }
.orb.shake { animation: shake .55s linear; }
.orb.shiver { animation: shiver .9s linear; }
.orb.tilt { animation: tilt .9s var(--ease); }
@keyframes hop { 30% { transform: translateY(-14px) scale(1.04, .97); } 55% { transform: translateY(0) scale(1.06, .92); } 75% { transform: translateY(-3px); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px) rotate(-3deg); } 40%, 80% { transform: translateX(5px) rotate(3deg); } }
@keyframes shiver { 0%, 100% { transform: none; } 10%, 30%, 50%, 70%, 90% { transform: translateX(-1.5px); } 20%, 40%, 60%, 80% { transform: translateX(1.5px); } }
@keyframes tilt { 40% { transform: rotate(-10deg); } }
.orb { animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025, .985) translateY(1px); } }
.orb__z { position: absolute; right: -2px; top: -4px; pointer-events: none; font: 600 14px var(--mono); color: var(--ink-2); opacity: 0; }
.orb.sleep .orb__z { opacity: 1; }
.orb__z i { position: absolute; font-style: normal; animation: zz 3s ease-in infinite; opacity: 0; }
.orb__z i:nth-child(2) { animation-delay: 1s; font-size: 12px; }
.orb__z i:nth-child(3) { animation-delay: 2s; font-size: 17px; }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -22px); } }
.say { min-width: 0; }
.say__who { margin: 0 0 4px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.say__who b { color: var(--ink); font-weight: 600; }
.say__text { margin: 0; font: 16px/1.4 var(--mono); min-height: 4.2em; text-wrap: pretty; }
.say__text .caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Hero teplota ---------- */
.hero { text-align: center; margin-top: 26px; }
.temp {
  font-family: var(--dot); font-weight: 900; font-size: clamp(112px, 36vw, 156px);
  line-height: .9; letter-spacing: -.04em; display: inline-block; position: relative;
  font-variant-numeric: tabular-nums;
}
/* číslo je přesně na středu, stupeň visí vedle a do centrování se nepočítá */
.temp__deg { position: absolute; left: 100%; top: .06em; font-size: .45em; line-height: 1; margin-left: .04em; }
.temp.tick #tempNum { animation: flick .28s steps(3); }
@keyframes flick { 0% { opacity: .35; } 50% { opacity: .8; } 100% { opacity: 1; } }
.hero__cond { margin: 10px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.hero__sub { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Slunce ---------- */
.sun { margin-top: 22px; }
.sun__svg { width: 100%; height: auto; display: block; overflow: visible; }
.sun__horizon { stroke: var(--ink-3); stroke-width: 1; }
.sun__arc { stroke: var(--ink); stroke-width: 2; }
.sun__tail { stroke: var(--ink-2); stroke-width: 2.4; stroke-dasharray: .1 7; }
.sun__stem { stroke: var(--ink-3); stroke-width: 1; }
.sun__pin { fill: var(--ink); stroke: none; }
.sun__halo { fill: var(--glow); stroke: var(--ink-3); stroke-width: 1; opacity: .9; }
.sun__core { fill: var(--ink); stroke: none; }
#sunDot { transition: transform .5s var(--ease); cursor: grab; touch-action: none; }
.sun__hit { fill: transparent; stroke: none; }
body.sundrag #sunDot { transition: none; cursor: grabbing; }
body.sundrag .sun__halo { r: 19px; }
.sun__halo { transition: r .2s var(--ease); }
body.ready #sunDot .sun__halo { animation: nudge 2.4s 2.2s var(--ease) 2; }
@keyframes nudge { 50% { r: 19px; } }
body.scrubbing #sunDot { transition-duration: .12s; }
#arc { stroke-dasharray: 400; stroke-dashoffset: 400; }
body.ready #arc { animation: draw 1.6s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sun__row { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: end; margin-top: 8px; }
.sun__row b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sun__row span { display: block; font-size: 15px; color: var(--ink-2); }
.sun__mid { text-align: center; }
.sun__mid b { font-size: 15px; height: 22px; }
.sun__mid b svg { width: 20px; height: 20px; }
.sun__mid span { font-size: 13px; white-space: nowrap; }
.right { text-align: right; }
.dotglyph { font-family: var(--dot); font-weight: 900; letter-spacing: -.05em; }

/* ---------- Karty ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 26px; }
.card {
  position: relative; padding: 14px 14px 12px; border-radius: 24px; min-height: 236px;
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.15; }
.card h3 span { display: block; font-weight: 500; color: var(--ink-2); }
.card__num { font-family: var(--dot); font-weight: 800; font-size: 46px; text-align: center; margin: 8px 0 4px; letter-spacing: -.03em; }
.card__num small { font-size: .5em; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

.card__why { margin: -2px 0 6px; text-align: center; font: 11px var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__axis { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--ink-2); margin: 4px 0 6px; }
.wave { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1.5px; min-height: 56px; cursor: pointer; }
.wave i { flex: 1; max-width: 2.5px; border-radius: 2px; background: var(--ink-3); height: 6px; transition: height .6s var(--ease), background .3s; }
.wave i.best { background: var(--ink-2); position: relative; }
.wave i.best::after { content: ''; position: absolute; left: 50%; top: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ink); }
.wave i.on { background: var(--ink); }
.wave i.hot { background: var(--accent); }
#moodBest { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }

.bars { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 3px; min-height: 56px; position: relative; cursor: pointer;
  background: linear-gradient(var(--ink-3), var(--ink-3)) 0 50% / 100% 1px no-repeat; }
.bars .b { height: 56px; display: flex; align-items: flex-end; }
.bars .b i { display: block; width: 100%; height: var(--h); border-radius: 3px 3px 1px 1px; background: var(--ink-3); transform-origin: bottom; animation: grow .5s var(--ease) both; animation-delay: calc(var(--d) * 30ms + 500ms); }
.bars .b.wet i { background: #2f6bff; }
body.dark .bars .b.wet i { background: #7fb2ff; }
.bars .b.sel i { outline: 2px solid var(--ink); outline-offset: 1px; }
@keyframes grow { from { transform: scaleY(0); } }
.key { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-3); margin-right: 4px; vertical-align: 0; }
.key--wet { background: #2f6bff; }
body.dark .key--wet { background: #7fb2ff; }

.rainnote { margin: 12px 4px 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- Části dne ---------- */
.parts { margin-top: 30px; font-family: var(--mono); font-size: 16px; }
.parts .row { display: grid; grid-template-columns: 1fr 64px 28px 1fr; align-items: center; padding: 7px 2px; }
.parts .row + .row { border-top: 1px solid var(--ink-3); }
.parts .n { color: var(--ink); }
.parts .t { font-variant-numeric: tabular-nums; }
.parts .ic svg { width: 20px; height: 20px; }
.parts .d { text-align: right; color: var(--ink-2); display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.parts .d em { font-style: normal; width: 14px; text-align: center; }
.parts .h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-bottom: 6px; display: flex; justify-content: space-between; }

/* ---------- Radar karta ---------- */
.radarcard {
  width: 100%; margin-top: 26px; display: flex; justify-content: space-between; align-items: center; text-align: left;
  padding: 16px 18px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transition: transform .2s var(--ease);
}
.radarcard:active { transform: scale(.98); }
.radarcard h3 { margin: 0; font-size: 17px; font-weight: 600; }
.radarcard p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.radarcard__arrow { font-size: 22px; }

/* ---------- Týden ---------- */
.week { margin-top: 26px; }
.week .day { display: grid; grid-template-columns: 52px 28px 34px 1fr 34px; align-items: center; gap: 8px; padding: 8px 2px; font-size: 15px; }
.week .day + .day { border-top: 1px solid var(--ink-3); }
.week .day .nm { font-weight: 500; }
.week .day .ic svg { width: 20px; height: 20px; }
.week .day .lo { color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.week .day .hi { font-variant-numeric: tabular-nums; }
.week .bar { position: relative; height: 4px; border-radius: 4px; background: var(--ink-3); }
.week .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #6fa8ff, #ffd23f, #ff6b3d); }

.foot { margin-top: 30px; font-size: 11px; line-height: 1.6; color: var(--ink-2); text-align: center; }
.foot a { color: inherit; }

/* ---------- Dock / časová osa ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%);
  width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 6px; z-index: 5;
  padding: 6px; border-radius: 40px;
  background: color-mix(in srgb, var(--c2) 55%, transparent); border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}
.dock__btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .2s var(--ease);
}
.dock__btn:active { transform: scale(.9); }
.dock__btn svg { width: 20px; height: 20px; }
.dock__btn--play { background: var(--ink); color: var(--c2); border-color: transparent; }
.dial { position: relative; flex: 1; height: 58px; }
.dial__scroller {
  position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  touch-action: pan-x;
}
.dial__scroller::-webkit-scrollbar { display: none; }
.dial__track { position: relative; height: 100%; }
.dial__track i { position: absolute; bottom: 14px; width: 1.5px; height: 10px; background: var(--ink-3); border-radius: 1px; }
.dial__track i.h { height: 18px; background: var(--ink-2); }
.dial__track i.mid { height: 22px; background: var(--ink); }
.dial__track b { position: absolute; bottom: 0; font: 500 10px var(--mono); color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.dial__needle { position: absolute; left: 50%; bottom: 12px; width: 2px; height: 30px; margin-left: -1px; background: var(--accent); border-radius: 2px; pointer-events: none; }
.dial__needle::after { content: ''; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); }
.dial__chip {
  position: absolute; left: 50%; top: -22px; z-index: 2; transform: translateX(-50%); pointer-events: none;
  font: 500 12px var(--mono); padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--c2); white-space: nowrap;
  transition: transform .2s var(--ease);
}
body.scrubbing .dial__chip { transform: translateX(-50%) scale(1.08); }

/* ---------- Sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; animation: fade .3s var(--ease); }
.sheet[hidden] { display: none; }
.sheet.closing { animation: fade .25s reverse forwards; }
.sheet.closing .sheet__panel { animation: up .25s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel {
  width: 100%; max-width: 520px; margin: 0 auto; max-height: 88dvh; overflow: auto;
  padding: 10px 18px calc(var(--safe-b) + 22px); border-radius: 28px 28px 0 0;
  background: rgba(250, 247, 242, .92); color: #141414;
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  animation: up .45s var(--ease);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet__grab { width: 40px; height: 5px; border-radius: 5px; background: rgba(0,0,0,.18); margin: 0 auto 12px; }
.sheet h2 { margin: 4px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.sheet input[type=search] {
  width: 100%; font: 500 17px var(--font); padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(0,0,0,.1);
  background: #fff; color: #141414; outline: none;
}
.sheet input[type=search]:focus { border-color: #141414; }
.sheet__geo { margin-top: 10px; font: 500 14px var(--mono); padding: 10px 0; }
.results { list-style: none; margin: 6px 0 0; padding: 0; }
.results li button { width: 100%; text-align: left; padding: 12px 2px; border-top: 1px solid rgba(0,0,0,.08); }
.results li b { display: block; font-weight: 600; }
.results li span { font-size: 13px; color: rgba(0,0,0,.5); }

/* ---------- Radar (celá obrazovka) ---------- */
.radar { position: fixed; inset: 0; z-index: 12; background: #16181d; color: #f4f1ea; animation: fade .3s var(--ease); }
.radar[hidden] { display: none; }
.radar.closing { animation: fade .25s reverse forwards; }
.radar__map { position: absolute; inset: 0; background: #1d2024; }
.radar__top { position: absolute; z-index: 500; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 12px) 14px 26px; background: linear-gradient(#16181dcc, transparent); pointer-events: none; }
.radar__top > * { pointer-events: auto; }
.radar__title { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.radar__title b { font-size: 17px; font-weight: 600; }
.radar__title span { font: 12px var(--mono); color: rgba(244,241,234,.6); }
.rbtn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #f4f1ea;
  background: rgba(30, 33, 40, .72); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rbtn:active { transform: scale(.92); }
.rbtn svg { width: 20px; height: 20px; }
.rbtn--play { background: #f4f1ea; color: #16181d; border: 0; width: 46px; height: 46px; }
.radar__legend { position: absolute; z-index: 500; right: 14px; top: calc(var(--safe-t) + 74px); display: flex; align-items: center; gap: 6px;
  font: 10px var(--mono); color: rgba(244,241,234,.75); padding: 6px 9px; border-radius: 99px; background: rgba(30,33,40,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.radar__legend i { width: 72px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #88ddee, #0099cc, #005588, #ffee00, #ffaa00, #ff4400, #ff00aa); }
.radar__panel { position: absolute; z-index: 500; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); max-width: 560px; margin: 0 auto;
  padding: 12px 14px 12px; border-radius: 24px; background: rgba(26, 29, 35, .86); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.radar__status { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.radar__status b { font: 700 26px var(--dot); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.radar__status span:last-child { font: 13px var(--mono); color: rgba(244,241,234,.6); }
.radar__badge { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 99px; background: #2f6bff; color: #fff; align-self: center; }
.radar.future .radar__badge { background: #ffb547; color: #16181d; }
.radar__tlrow { display: flex; align-items: center; gap: 12px; }
.tl { position: relative; flex: 1; height: 54px; touch-action: none; cursor: pointer; --now: 40%; }
.tl::before { content: ''; position: absolute; left: 0; width: var(--now); top: 8px; height: 26px; border-radius: 8px 0 0 8px; background: rgba(47,107,255,.18); }
.tl::after { content: ''; position: absolute; left: var(--now); right: 0; top: 8px; height: 26px; border-radius: 0 8px 8px 0;
  background: repeating-linear-gradient(135deg, rgba(255,181,71,.10) 0 6px, rgba(255,181,71,.04) 6px 12px); }
.tl__past, .tl__future { position: absolute; left: 0; right: 0; top: 8px; height: 26px; z-index: 1; }
.tl__past i { position: absolute; bottom: 0; width: 2px; height: 10px; margin-left: -1px; border-radius: 2px; background: rgba(127,178,255,.8); }
.tl__future i { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; background: #ffb547; box-shadow: inset 1px 0 0 rgba(26,29,35,.86); }
.tl__future i.dry { background: rgba(255,181,71,.35); }
.tl__now { position: absolute; left: var(--now); top: 2px; height: 38px; width: 2px; margin-left: -1px; background: #f4f1ea; z-index: 2; border-radius: 2px; }
.tl__now span { position: absolute; top: -2px; left: 5px; font: 600 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.tl__cursor { position: absolute; top: 4px; height: 34px; width: 14px; margin-left: -7px; z-index: 3; border-radius: 7px; background: #f4f1ea; box-shadow: 0 2px 10px rgba(0,0,0,.5); pointer-events: none; }
.tl__cursor::after { content: ''; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: #16181d; opacity: .35; }
.tl__labels { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; font: 10px var(--mono); color: rgba(244,241,234,.55); }
.tl__labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.radar__note { margin: 8px 0 0; font: 12px/1.5 var(--mono); color: rgba(244,241,234,.75); min-height: 3em; }
.radar .leaflet-layer, .radar .rv { transition: opacity .35s linear; }
.radar .leaflet-control-attribution { background: rgba(22,24,29,.6); color: rgba(244,241,234,.55); font-size: 9px; }
.radar .leaflet-control-attribution a { color: rgba(244,241,234,.75); }
.radar .leaflet-bottom.leaflet-right { bottom: auto; top: calc(var(--safe-t) + 112px); }
.me { position: relative; }
.me i { position: absolute; inset: 4px; border-radius: 50%; background: #ff6b3d; border: 2.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.me b { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #ff6b3d; animation: ping 2s ease-out infinite; }
.radar.future .me i { background: color-mix(in srgb, #2f6bff calc(var(--wet, 0) * 100%), #ffb547); }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
body.radar-open { overflow: hidden; }
.leaflet-container { font-family: var(--font); }

.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); transform: translateX(-50%); z-index: 20;
  font: 500 13px var(--mono); padding: 10px 14px; border-radius: 14px; background: #141414; color: #fff;
  animation: up .4s var(--ease); max-width: calc(100% - 32px);
}

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