/* Sderot: an app, not a page. Sand, sea, anemone red; warm ink instead of black. */
:root {
  --ink: #2b2118; --ink-2: #6b5b4b; --muted: #8a7a68;
  --sand: #e9d3a5; --sand-2: #f4e6c8; --sand-3: #faf3e4; --sea: #1f9aa8; --sea-2: #8fd0d6; --anemone: #d62839; --sun: #f2a93b;
  --card: #fffaf2; --line: rgba(43, 33, 24, .09);
  --r: 22px; --shadow: 0 1px 2px rgba(60, 40, 15, .06), 0 6px 20px rgba(60, 40, 15, .10);
  --bar-h: 64px; --tab-h: 66px;
  /* the phone's status bar and gesture bar: the app's sky runs behind them (Capacitor sets --safe-area-inset-*) */
  --sa-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); --sa-bot: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: Rubik, system-ui, sans-serif; color: var(--ink); overflow: hidden;
  background: #2b2118; display: flex; justify-content: center;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
h3 { margin: 16px 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
small { font-size: 11px; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 0 0 10px; }
.fine { font-size: 11px; color: var(--muted); text-align: center; margin: 6px 0 0; }

/* ---------- the device ---------- */
#app {
  position: relative; width: 100%; max-width: 460px; height: 100dvh; overflow: clip;
  background: var(--sky); transition: background 1.2s;
}
/* phone: anything below the app (gesture bar) is the tab bar's cream, not the page's brown */
@media (max-width: 519px) { body { background: #fffbf3; } }
@media (min-width: 520px) {
  body { align-items: center; background: radial-gradient(circle at 50% 30%, #4a3c2e, #1d1610); }
  #app { height: min(900px, 96dvh); border-radius: 38px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 10px #15100b; }
}
.sky-day   #app { --sky: linear-gradient(180deg, #74c2e6 0%, #b6e0ef 40%, #f6e7c6 100%); }
.sky-grey  #app { --sky: linear-gradient(180deg, #a9b8c0 0%, #d3d8d6 45%, #efe3c9 100%); }
.sky-rain  #app { --sky: linear-gradient(180deg, #6f8692 0%, #9fb0b5 45%, #d9d2bf 100%); }
.sky-dust  #app { --sky: linear-gradient(180deg, #cf9f5e 0%, #e6c58f 45%, #f1dcb2 100%); }
.sky-dawn  #app { --sky: linear-gradient(180deg, #8fb6d9 0%, #f3c9a8 50%, #f6e1bd 100%); }
.sky-dusk  #app { --sky: linear-gradient(180deg, #4b5b8a 0%, #e0897a 40%, #f4c27f 70%, #f6e1bd 100%); }
.sky-night #app { --sky: linear-gradient(180deg, #14213d 0%, #2c3e63 50%, #5e5650 100%); }

/* ---------- top bar ---------- */
.bar { position: absolute; inset: 0 0 auto 0; height: calc(var(--bar-h) + var(--sa-top)); padding: calc(12px + var(--sa-top)) 18px 0; display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; }
.brand h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1; }
.tagline { font-size: 11px; opacity: .8; letter-spacing: .3px; white-space: nowrap; }
#clock { text-align: left; line-height: 1.25; white-space: nowrap; font: inherit; font-size: 12px; color: inherit; background: none; border: 0; padding: 4px 6px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; }
#clock:active { background: rgba(255,255,255,.35); }
#clock .stale { color: #b0321f; }
#clock.spin span { opacity: .6; }
#clock b { display: block; font-size: 17px; font-weight: 500; }
.bar-side { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.35); }
.top-dark .bar { color: #fbf3e2; }
.top-dark .icon-btn { background: rgba(255,255,255,.14); }
.skyfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- screen ---------- */
.screen {
  position: absolute; inset: calc(var(--bar-h) + var(--sa-top)) 0 calc(var(--tab-h) + var(--sa-bot)) 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 14px 24px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.in-fwd  { animation: in-fwd .28s ease-out; }
.in-back { animation: in-back .28s ease-out; }
@keyframes in-fwd  { from { opacity: 0; transform: translateX(-24px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(24px); } }
.splash { margin: auto; text-align: center; color: var(--ink-2); }
.splash svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { margin: auto; text-align: center; }

.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); flex-shrink: 0; }
/* frosted glass: the live sky shows softly through the cards */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .card { background: rgba(255, 251, 243, .84); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); }
  .top-dark .card { background: rgba(255, 251, 243, .94); }   /* at night/dusk: less see-through, so cards don't go grey */
}

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; inset: auto 0 0 0; height: calc(var(--tab-h) + var(--sa-bot)); display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 251, 243, .96); border-top: 1px solid var(--line); padding-bottom: var(--sa-bot); z-index: 5;
}
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; position: relative; }
.tabbar button .li { padding: 3px 14px; box-sizing: content-box; border-radius: 999px; transition: background .2s; }
.tabbar button.on { color: var(--ink); font-weight: 500; }
.tabbar button.on .li { background: #f6dfc9; color: #b0321f; }

/* ---------- NOW ---------- */
.hero-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; }
.big { font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -2px; direction: ltr; text-align: right; }
.big span { font-size: .5em; vertical-align: .55em; margin-left: 1px; color: var(--ink-2); font-weight: 400; }
.feels { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.desc { font-size: 14px; margin-top: 2px; }
.today-range { font-size: 13px; color: var(--ink-2); margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(43,33,24,.1); }
.tiles.two { grid-template-columns: 1fr 1fr; }
.hero-thermo { display: flex; }
.hero-wear { filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.wear-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; background: var(--sand-3); border-radius: 14px; font-size: 15px; }
.votes { display: flex; gap: 4px; flex-shrink: 0; }
.vote { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.vote.on { background: var(--sand); color: var(--ink); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.src { font-size: 11px; color: var(--muted); }
.src.ims { font-size: 12px; font-weight: 500; color: var(--ink); }
.more { font-size: 14px; color: var(--sea); font-weight: 500; padding: 4px 2px; }

.rows { padding: 6px 16px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; text-align: right; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.badge { width: 36px; height: 36px; border-radius: 12px; background: #f3ebdc; color: var(--ink-2); display: grid; place-items: center; flex-shrink: 0; }
.badge.warm { background: #fdebd3; color: #c2671c; }
.badge.sea { background: #dff1f1; color: #15727c; }
.row-txt { flex: 1; }
.row-txt b { display: block; font-weight: 500; font-size: 14px; }
.row-txt small { color: var(--muted); }
.row .li { color: var(--muted); }

.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.act-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s; }
.act.ok .act-ic { background: #e3f3ee; color: #17707a; }
.act.no .act-ic { background: #f3ede4; color: #b9a893; }
.act-name { font-size: 11px; text-align: center; line-height: 1.2; }
.act.no .act-name { color: var(--muted); }
.act:active .act-ic { transform: scale(.94); }

.season { display: flex; align-items: center; gap: 14px; }
.dial { width: 112px; flex-shrink: 0; }
.dial text { font-size: 11px; }
.season-txt h2 { margin-bottom: 6px; }
.season-split { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.season-split span { display: flex; align-items: center; gap: 6px; }
.season-split b { font-weight: 500; }
.dial-g { color: var(--ink-2); }
.season-txt p { margin: 6px 0 0; font-size: 12px; }

.voice.empty { display: flex; gap: 12px; align-items: flex-start; }
.voice.empty h2 { margin-bottom: 4px; }
.voice.empty p { margin: 0; font-size: 13px; }
.post { border-top: 1px solid var(--line); padding-top: 8px; }

/* ---------- HOURLY ---------- */
.segs { display: flex; background: var(--sand-3); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 8px; }
.seg { flex: 1; padding: 7px 0; border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.seg.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.strip-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.strip-wrap::-webkit-scrollbar { display: none; }
.strip { position: relative; display: flex; padding-top: 26px; }
.curve { position: absolute; bottom: 0; right: 0; pointer-events: none; z-index: 2; }
.curve text { font-size: 13px; font-weight: 500; fill: var(--ink); font-family: Rubik, sans-serif; }
.hcol { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; border-radius: 14px; position: relative; }
.hcol { border-radius: 0; }
.hcol.now { background: #f6ecd8; border-radius: 14px; }
.hcol.nite { background: rgba(44, 62, 99, .045); }
.hcol.nite.now { background: #efe6d6; }
.hh { font-size: 12px; color: var(--ink-2); }
.newday { position: absolute; top: -22px; right: 4px; font-size: 11px; font-weight: 500; color: var(--anemone); white-space: nowrap; }
.hcol.daystart { border-right: 1.5px dashed #e2cfa8; border-radius: 0; }
.hv { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; padding-bottom: 8px; }
.hv b { font-size: 14px; font-weight: 500; }
.hv small { font-size: 10px; color: var(--muted); }
.vbar { width: 18px; border-radius: 6px 6px 3px 3px; }
.vbar.rain { background: linear-gradient(180deg, var(--sea-2), var(--sea)); }
.vbar.dust { background: #e6cf9c; } .vbar.dust.mid { background: var(--sun); } .vbar.dust.bad { background: #e0703a; }
.arrow { color: var(--ink-2); display: inline-flex; }
.arrow .li { transition: transform .3s; }
.arrow.west { color: var(--sea); }

/* ---------- WEEK ---------- */
.parts-head { position: sticky; top: -8px; z-index: 3; display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 999px; padding: 8px 14px 8px 36px; box-shadow: var(--shadow); font-size: 12px; flex-shrink: 0; }
.ph-label { font-weight: 500; }
.ph-cols { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; text-align: center; color: var(--ink-2); }
.day { padding: 12px 12px 12px 8px; cursor: pointer; }
.day-row { display: grid; grid-template-columns: 50px 1fr auto 20px; align-items: center; gap: 8px; }
.day-name { display: flex; flex-direction: column; align-items: center; text-align: center; }
.day-name b { font-weight: 500; font-size: 14px; }
.day-name small { color: var(--muted); }
.day-range { font-size: 12px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.day-text { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.day-text.voice { color: var(--ink); }
.parts { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.part { display: flex; flex-direction: column; align-items: center; }
.part b { font-size: 17px; font-weight: 500; }
.chev { color: var(--muted); }
.day-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.day-more div { background: var(--sand-3); border-radius: 12px; padding: 8px; }
.day-more span { display: block; font-size: 10px; color: var(--muted); }
.day-more b { font-size: 14px; font-weight: 500; }
.day-more small { color: var(--muted); margin-inline-start: 4px; }

/* ---------- SEA ---------- */
.sea-hero { background: linear-gradient(180deg, #fffaf0 0%, #e3f4f3 60%, #bfe5e6 100%); overflow: hidden; }
.sea-top { display: flex; justify-content: space-between; align-items: center; }
.sea-big { color: #13636c; }
.sea-side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sea-side b { font-size: 22px; font-weight: 500; }
.sea-side small { color: var(--muted); }
.chip { background: var(--sea); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.sea-anim { position: relative; height: 40px; margin: 12px -16px 8px; overflow: hidden; }
.sea-anim svg { position: absolute; bottom: 0; width: 200%; height: 40px; fill: var(--sea); animation: wave 7s linear infinite; }
.sea-anim svg + svg { opacity: .35; animation-duration: 11s; bottom: 6px; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(50%); } }
.windline { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.wl { flex: 0 0 38px; display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; }
.wl b { font-size: 12px; font-weight: 500; } .wl small { color: var(--muted); }
.wl.west { background: #e3f4f3; } .wl.west .arrow { color: var(--sea); }
.wl.now { outline: 2px solid var(--sand); }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--ink-2); margin-top: 8px; }
.legend span::before { content: ''; display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.l-west::before { background: #e3f4f3; outline: 1px solid var(--sea-2); } .l-east::before { background: var(--sand-3); outline: 1px solid var(--sand); }
.l-now::before { background: var(--sea); height: 3px !important; } .l-norm::before { border-top: 2px dashed #c9b99a; height: 0 !important; }
.wavebars { display: flex; justify-content: space-around; align-items: flex-end; height: 120px; }
.wavebars > div { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wb { width: 30px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--sea-2), var(--sea)); }
.wavebars b { font-size: 13px; font-weight: 500; } .wavebars small { color: var(--muted); }
.sunset { display: flex; justify-content: space-around; text-align: center; background: linear-gradient(180deg, #fff6e8, #fbd9b0); }
.sunset span { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.sunset b { font-size: 22px; font-weight: 500; }

/* ---------- WHAT WAS ---------- */
.rain-ring { display: flex; align-items: center; gap: 14px; }
.ring { width: 118px; flex-shrink: 0; }
.ring-big { font-size: 26px; font-weight: 500; fill: var(--sea); font-family: Rubik, sans-serif; }
.ring-small { font-size: 11px; fill: var(--muted); font-family: Rubik, sans-serif; }
.rain-ring p { margin: 4px 0; font-size: 13px; }
.rain-ring b { color: var(--sea); }
.rain-chart { width: 100%; height: auto; display: block; }
.rain-chart text { font-size: 15px; fill: var(--muted); font-family: Rubik, sans-serif; }
.month-verdict { font-size: 18px; font-weight: 500; margin: 0 0 10px; }

/* tiles (shared) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { background: var(--sand-3); border-radius: 14px; padding: 10px; }
.tile span { display: block; font-size: 11px; color: var(--muted); }
.tile b { display: block; font-size: 20px; font-weight: 500; margin: 2px 0; }
.tile small { color: var(--ink-2); }

/* ---------- sheets, toast ---------- */
.scrim { position: absolute; inset: 0; background: rgba(20, 14, 8, .4); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 8; }
.sheet {
  position: absolute; inset: auto 0 0 0; max-height: 86%; overflow-y: auto; background: #fffaf2; border-radius: 26px 26px 0 0;
  padding: 10px 18px 28px; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); z-index: 9;
}
.sheet-open .scrim { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--sand); margin: 0 auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-head .icon-btn { background: var(--sand-2); width: 34px; height: 34px; }
.spark { width: 100%; height: auto; }
.spark text { font-size: 11px; fill: var(--muted); font-family: Rubik, sans-serif; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { background: var(--sand-3); padding: 8px 14px; border-radius: 999px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.radios input { accent-color: var(--anemone); }

#toast {
  position: absolute; bottom: calc(var(--tab-h) + 14px); left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  transition: all .25s; pointer-events: none; z-index: 10;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* hour-by-hour list */
.hlist { padding: 8px 16px; }
.hl-head, .hl-row { display: grid; grid-template-columns: 52px 32px 1fr 1fr 1fr 1.2fr; align-items: center; gap: 4px; text-align: center; }
.hl-head { font-size: 11px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.hl-row { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hl-row:last-child { border-bottom: 0; }
.hl-t { color: var(--ink-2); text-align: right; }
.hl-head span:first-child { text-align: right; }
.hl-row b { font-weight: 500; }
.hl-row .wet { color: var(--sea); font-weight: 500; }
.hl-wind { display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2); }
.hl-day { font-size: 12px; font-weight: 500; padding: 8px 0 4px; color: var(--anemone); }

/* voice */
.voice-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.voice-head h2 { margin: 0; }
.note-title { margin: 10px 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.note-body { margin: 0; font-size: 14px; line-height: 1.55; }
.note-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-more { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 500; color: #15727c; cursor: pointer; }
.city-line { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.dyk { margin-top: 12px; padding: 10px 12px; background: var(--sand-3); border-radius: 12px; font-size: 13px; line-height: 1.5; }
.dyk b { color: var(--anemone); margin-inline-end: 4px; }
.season-line { margin: 6px 0 0; font-size: 13px; color: var(--ink); }
.sea-line { margin: 10px 0 0; font-size: 15px; color: #13636c; }
.season-status { font-size: 15px; font-weight: 500; margin: 6px 0 2px; }

/* kids */
.kids-ask { display: flex; align-items: center; gap: 12px; }
.kids-ask b { display: block; font-size: 14px; font-weight: 500; }
.ask-btns { margin-inline-start: auto; display: flex; gap: 6px; }
.chip-btn { padding: 7px 14px; border-radius: 999px; background: var(--sand-2); font-size: 13px; }
.chip-btn.on { background: var(--sea); color: #fff; }
.kids-head { display: flex; justify-content: space-between; align-items: center; }
.kids-head h2 { margin: 0; }
.age-chip { font-size: 12px; background: #dff1f1; color: #15727c; padding: 4px 10px; border-radius: 999px; }
.kids-now { display: flex; gap: 12px; align-items: center; margin: 8px 0 4px; }
.kids-now b { display: block; font-size: 15px; font-weight: 500; }
.kids-now small { display: block; margin-top: 4px; line-height: 1.45; }
.kids-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.kids-row .row-txt b { font-size: 14px; font-weight: 500; display: block; }
.kids-row .row-txt small { color: var(--muted); line-height: 1.45; display: block; }
.kids-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.kids-foot small { color: var(--muted); }
.src-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.src-list a { background: var(--sand-3); border-radius: 12px; padding: 10px 12px; color: #15727c; text-decoration: none; font-size: 14px; }

/* clothing scale sheet */
.wear-why { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; order: 3; }
.scale { display: flex; flex-direction: column; gap: 2px; }
.scale-row { display: grid; grid-template-columns: 44px 84px 1fr; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.scale-row b { font-weight: 500; }
.why-text { font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- opening screen (index.html #intro) ---------- */
#intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: linear-gradient(#7cc4e8, #a9daf0 45%, #d6eef6 68%);
  transition: opacity .6s ease, visibility .6s; }
#intro.done { opacity: 0; visibility: hidden; }
.intro-sun { position: absolute; top: 12%; left: 14%; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0 38%, rgba(255,240,190,.55) 39%, rgba(255,240,190,0) 70%); animation: sunGlow 5s ease-in-out infinite; }
.intro-mark { position: absolute; top: 30%; inset-inline: 0; text-align: center; color: #1d3a4a; }
.intro-flower { display: block; margin: 0 auto 12px; filter: drop-shadow(0 6px 10px rgba(0,40,70,.18)); transform-origin: 50% 90%; animation: sway 4s ease-in-out infinite; }
.intro-name { font-size: 34px; font-weight: 700; letter-spacing: .5px; animation: rise .9s ease-out both .15s; }
.intro-sub { font-size: 15px; opacity: .75; margin-top: 2px; animation: rise .9s ease-out both .35s; }
.intro-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; }
.intro-sea .w { position: absolute; left: 0; width: 200%; height: 100%; }
.intro-sea .crest { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2; vector-effect: non-scaling-stroke; }
.w2 .crest { stroke: rgba(255,255,255,.22); }
.w1 { bottom: 0; fill: #4fb3c0; animation: drift 16s linear infinite, bob 6s ease-in-out infinite; }
.w2 { bottom: -14%; fill: #2a9aa6; animation: drift 11s linear infinite reverse, bob 5s ease-in-out infinite .8s; }
.w3 { bottom: -30%; fill: #15727c; animation: drift 8s linear infinite, bob 4.5s ease-in-out infinite .3s; }
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes bob { 50% { translate: 0 6px; } }
@keyframes sway { 50% { transform: rotate(5deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes sunGlow { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { #intro *, #intro { animation: none !important; } }

/* ---------- evening: tomorrow on the main card ---------- */
.tomorrow { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(21,114,124,.08); }
.tm-head { font-size: 14px; margin-bottom: 6px; } .tm-head b { font-weight: 700; }
.tm-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-part { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; }
.tm-part small { display: block; color: var(--muted); } .tm-part b { font-size: 16px; }

/* ---------- pull to refresh: a little sea under the header ---------- */
#ptr { position: absolute; top: calc(var(--bar-h) + var(--sa-top)); inset-inline: 0; height: 0; overflow: hidden; z-index: 4;
  transition: height .25s ease; pointer-events: none; }
#ptr .pw { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.pw1 { fill: rgba(79,179,192,.75); animation: drift 7s linear infinite; }
.pw2 { fill: rgba(21,114,124,.8); animation: drift 4.5s linear infinite reverse; }
#ptr:not(.go) .pw { animation-play-state: paused; }
#ptr .ptr-txt { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: #fff; }
#ptr .ptr-txt::after { content: 'משיכה לרענון'; opacity: .9; }
#ptr.ready .ptr-txt::after { content: 'לעזוב'; }
#ptr.go .ptr-txt::after { content: 'מרענן…'; }
.foot-btns { display: flex; gap: 14px; align-items: center; }
.more.share { display: inline-flex; gap: 4px; align-items: center; }
.notify-preview { margin-top: 8px; background: rgba(43,33,24,.05); border-radius: 14px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }

/* ---------- Darom Adom ---------- */
.bloom-head { display: flex; align-items: center; gap: 10px; } .bloom-head h2 { margin: 0; } .bloom-head .chip { margin-inline-start: auto; }
.chip.red { background: #d62839; color: #fff; }
.bloom-photos { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 4px; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bloom-photos::-webkit-scrollbar { display: none; }
.bphoto { position: relative; flex: 0 0 78%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: #e9d3a5; }
.bphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bphoto .credit { position: absolute; inset: auto 0 0 0; padding: 14px 10px 6px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.bloom-spots, .bloom-events { display: flex; flex-direction: column; }
.spot, .event { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.spot:last-child, .event:last-child { border-bottom: 0; }
.spot .row-txt, .event .row-txt { flex: 1; display: flex; flex-direction: column; } .spot small, .event small { color: var(--muted); font-size: 12px; }
.spot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.badge-s { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--sand-3); }
.badge-s.sea { background: rgba(21,114,124,.14); color: #15727c; } .badge-s.warm { background: rgba(224,138,46,.16); color: #9a5a12; } .badge-s.muted { color: var(--muted); }
.ev-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; padding: 4px; border-radius: 10px; background: rgba(214,40,57,.08); color: #a01d2b; }
.ev-date b { font-size: 14px; } .ev-date small { font-size: 10px; color: #a01d2b; }
.bloom-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip-link { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--sand-3); color: #15727c; text-decoration: none; }
.chip.warm { background: #e08a2e; }

/* ---------- the bloom map (real geography, paper style) ---------- */
.bloom-map { display: block; width: calc(100% + 8px); margin: 6px -4px 0; border-radius: 16px; overflow: hidden; background: #f2ebda;
  box-shadow: inset 0 0 0 1px rgba(43,33,24,.08); }
.bm-road { fill: none; stroke: #e2d3b0; stroke-width: 1.2; } .bm-road.motorway, .bm-road.trunk { stroke: #dcc89c; stroke-width: 1.8; }
.bm-stream { fill: none; stroke: #8fc0cc; stroke-width: 1.3; stroke-linecap: round; }
.bm-water-label { font: italic 500 8.5px Rubik, sans-serif; fill: #4f8d9b; text-anchor: middle; letter-spacing: .3px; }
.bm-water-label.sea { fill: #fff; font-size: 10px; opacity: .9; }
.bm-place { font: 400 8px Rubik, sans-serif; fill: #6b5b4b; text-anchor: middle; paint-order: stroke; stroke: #f2ebda; stroke-width: 2.4px; }
.bm-place.city, .bm-place.town { font-size: 9.5px; font-weight: 500; fill: #4a3c30; }
.bm-place.town-main { font-size: 12px; font-weight: 700; fill: #2b2118; }
.bm-credit { font: 6.5px Rubik, sans-serif; fill: #8a7a66; text-anchor: end; direction: ltr; }
.bm-spot { cursor: pointer; } .bm-spot.closed { filter: grayscale(1); opacity: .65; }
.bm-spot-label { font: 600 9px Rubik, sans-serif; fill: #8e1b2b; text-anchor: middle; paint-order: stroke; stroke: #f7f0df; stroke-width: 2.6px; }
.bm-breathe { animation: bmBreathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bmBreathe { 50% { transform: scale(1.08); } }
.bloom-map.loading { animation: none; }
@media (prefers-reduced-motion: reduce) { .bm-breathe { animation: none; } }
.bm-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 2px; }
.bm-panel { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(214,40,57,.06); }
.bm-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .bm-panel-head b { font-size: 16px; }
.bm-flowers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bm-flower { display: inline-flex; align-items: center; gap: 6px; background: #fffaf2; border-radius: 12px; padding: 5px 10px 5px 8px; font-size: 13px; }
.bm-flower span { display: flex; flex-direction: column; line-height: 1.15; } .bm-flower small { color: var(--muted); font-size: 11px; }
.bm-note { margin: 8px 0 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .bm-spot.peak path, .bm-wave { animation: none; } }
