:root {
  --bg: #f4eee3;
  --card: #fbf8f2;
  --ink: #1b2333;
  --muted: #6d6658;
  --line: #e3dacb;
  --navy: #15203a;
  --navy2: #1f2c4b;
  --gold: #c8a25a;
  --gold-ink: #8a6a2c;
  --gold-soft: #efe2c6;
  --green: #3f7d5a;
  --red: #b0473a;
  --serif: "Frank Ruhl Libre", "David", Georgia, serif;
  --sans: "Assistant", "Segoe UI", system-ui, sans-serif;
  --r: 18px;
  --shadow: 0 1px 2px rgba(27, 35, 51, .05), 0 6px 22px rgba(27, 35, 51, .06);
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
bdi.ltr, .ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hidden { display: none !important; }

/* ---------- top bar (translucent material) ---------- */
.topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: rgba(244, 238, 227, .78);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition: background .3s, color .3s, box-shadow .3s;
}
.topbar.on-hero { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.topbar.scrolled { box-shadow: 0 1px 0 rgba(27, 35, 51, .07); }
.brand { background: none; border: 0; padding: 4px 0; font: 500 1.05rem var(--serif); text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.pill {
  border: 0; border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: .88rem;
  background: rgba(27, 35, 51, .07); transition: transform .1s ease-out, background .2s;
}
.on-hero .pill { background: rgba(255, 255, 255, .18); }
.menu-btn { border: 0; background: none; font-weight: 700; padding: 6px 2px; }
.pill:active, .menu-btn:active, .btn:active, .chip:active, .icon-btn:active { transform: scale(.96); transition: transform 80ms ease-out; }

/* ---------- views ---------- */
.view {
  padding: calc(env(safe-area-inset-top, 0px) + 64px) 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);
  max-width: 640px; margin: 0 auto; outline: none;
}
.view.with-hero { padding-top: 0; }
.view.enter { animation: viewIn .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.section { margin-block: 18px; }
.card {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 20px; margin-block: 14px;
}
.card.dark { background: var(--navy); color: #f3efe6; box-shadow: 0 10px 30px rgba(21, 32, 58, .25); }
.card.dark .muted { color: #a9b0c2; }
.page-head { margin-block: 6px 14px; }
.page-head p { margin-top: 8px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700;
  background: var(--navy); color: #fff; transition: transform .1s ease-out, opacity .2s;
  text-decoration: none;
}
.btn.gold { background: var(--gold); color: #1c1608; }
.btn.ghost { background: rgba(27, 35, 51, .06); color: var(--ink); }
.btn.danger { background: transparent; color: var(--red); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 0; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip {
  border: 0; border-radius: 999px; padding: 8px 15px; background: rgba(27, 35, 51, .06);
  font-weight: 600; white-space: nowrap; transition: background .2s, color .2s;
}
.chip.on { background: var(--navy); color: #fff; }
.chip .n { opacity: .6; margin-inline-start: 6px; font-weight: 400; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-ink); }

/* ---------- hero ---------- */
.hero {
  position: relative; margin-inline: -16px; min-height: 92vh; min-height: 92svh;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 20px 22px; overflow: hidden; isolation: isolate;
}
.hero { background: #211a28; }
.hero-art { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 66%; }
.hero-photo { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 74%; object-fit: cover; object-position: 50% 55%; animation: heroIn 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 28, .35) 0%, rgba(10, 14, 28, 0) 22%, rgba(10, 14, 28, 0) 42%, rgba(21, 26, 40, .7) 62%, #151a28 76%); }
.hero { background: #151a28; }
.hero h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hero .sub { margin-top: 14px; font: 400 1.15rem/1.5 var(--serif); opacity: .9; }
.hero .plane { position: absolute; top: 22%; left: 0; width: 46px; z-index: -1; opacity: 0; }
.hero .plane svg { width: 100%; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2)); }
.trail { position: absolute; height: 2px; top: calc(22% + 13px); left: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); opacity: 0; }
html[dir="rtl"] .trail { background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); }

.countdown {
  margin-top: 20px; border-radius: var(--r); padding: 16px 20px;
  background: rgba(17, 24, 44, .55); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.countdown .lbl { font-size: .95rem; opacity: .85; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; direction: ltr; }
html[dir="rtl"] .cd-grid { direction: rtl; }
.cd-cell b { display: block; font: 500 2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; overflow: hidden; height: 2.2rem; }
.cd-cell b span { display: inline-block; }
.cd-cell b span.tick { animation: tick .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-cell small { font-size: .82rem; opacity: .75; }
.cd-status { font: 500 1.6rem var(--serif); margin-top: 6px; }

/* ---------- greeting ---------- */
.greet h2 { font-size: 1.9rem; }
.greet p { margin-top: 12px; font-size: 1.12rem; }

/* ---------- timeline ---------- */
.tl { position: relative; height: 92px; margin-top: 18px; }
.tl-bar { position: absolute; inset-inline: 6px; top: 40px; height: 4px; border-radius: 4px; background: var(--gold-soft); }
.tl-fill { position: absolute; inset-inline-start: 6px; top: 40px; height: 4px; border-radius: 4px; background: var(--gold); transform-origin: left; }
html[dir="rtl"] .tl-fill { transform-origin: right; }
.tl-pt { position: absolute; top: 33px; width: 18px; height: 18px; margin-inline-start: -9px; border-radius: 50%; background: var(--card); border: 3px solid var(--navy); }
.tl-pt.today { background: var(--gold); border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(200, 162, 90, .25); }
.tl-lbl { position: absolute; font-size: .78rem; line-height: 1.25; white-space: nowrap; transform: translateX(50%); text-align: center; }
html[dir="ltr"] .tl-lbl { transform: translateX(-50%); }
.tl-lbl.up { top: 0; }
.tl-lbl.down { top: 58px; }
.tl-lbl b { display: block; font-weight: 700; }

/* ---------- ring ---------- */
.ready { display: flex; gap: 18px; align-items: center; }
.ring { width: 76px; height: 76px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: var(--gold-soft); }
.ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.ready h3 { font-size: 1.45rem; }

/* ---------- weather + clocks ---------- */
.wx { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.wx-day { text-align: center; border-radius: 12px; padding: 10px 2px; background: rgba(255, 255, 255, .05); }
.wx-day .d { font-size: .8rem; opacity: .75; }
.wx-day svg { width: 30px; height: 30px; margin: 6px auto; display: block; }
.wx-day .hi { font-weight: 700; }
.wx-day .lo, .wx-day .pp { font-size: .8rem; opacity: .7; }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.clock { width: 104px; height: 104px; margin: 0 auto 8px; display: block; }
.clock .face { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.clock .tk { stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; }
.clock .h, .clock .m { stroke: #fff; stroke-linecap: round; }
.clock .h { stroke-width: 3.5; }
.clock .m { stroke-width: 2.2; }
.clock .s { stroke: var(--gold); stroke-width: 1.2; }
.clocks .city { font-size: .9rem; opacity: .8; }
.clocks .time { font: 500 1.35rem var(--serif); }
.tzdiff { margin-top: 14px; text-align: center; font-size: .92rem; opacity: .85; }

/* ---------- converter ---------- */
.conv { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 14px; direction: ltr; }
.money { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.money:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 90, .2); }
.money span { color: var(--muted); font-weight: 700; }
.money input { border: 0; outline: none; width: 100%; padding: 10px 0; font-size: 1.25rem; background: transparent; direction: ltr; }

/* ---------- list links ---------- */
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.links a:last-child { border-bottom: 0; }
.links h3 { font-size: 1.45rem; }
.links .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); flex: none; }
.links .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- flight ---------- */
.route { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; direction: ltr; margin-top: 18px; }
.route .code { font: 500 3.1rem/1 var(--serif); }
.route .place { font-size: .92rem; opacity: .75; margin-top: 4px; }
.route .end { text-align: right; }
.arc { width: 100%; height: auto; display: block; margin-top: 10px; direction: ltr; }
.arc .path { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1.4; stroke-dasharray: 3 6; }
.arc .done { fill: none; stroke: var(--gold); stroke-width: 2; }
.arc text { fill: rgba(255, 255, 255, .6); font-size: 9px; font-family: var(--sans); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.facts .k { font-size: .82rem; opacity: .65; }
.facts .v { font-weight: 700; font-size: 1.05rem; }
.facts .wide { grid-column: 1 / -1; }

/* ---------- tasks ---------- */
.progress { height: 8px; border-radius: 8px; background: var(--gold-soft); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 8px; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.group-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.group-head h3 { flex: 1; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-of-type { border-bottom: 0; }
.task .txt { flex: 1; min-width: 0; }
.task .ttl { overflow-wrap: anywhere; transition: color .25s; }
.task.done .ttl { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(109, 102, 88, .5); }
.task .cat { font-size: .82rem; color: var(--muted); }
.check { flex: none; width: 28px; height: 28px; border: 0; padding: 0; background: none; margin-top: 1px; }
.check svg { width: 28px; height: 28px; }
.check .c { fill: transparent; stroke: #c9bfae; stroke-width: 1.6; transition: fill .25s, stroke .25s; }
.check .v { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .3s .08s cubic-bezier(.2, .8, .2, 1); }
.task.done .check .c { fill: var(--green); stroke: var(--green); }
.task.done .check .v { stroke-dashoffset: 0; }
.task.pop .check { animation: pop .35s cubic-bezier(.2, .8, .2, 1.4); }
@keyframes pop { 50% { transform: scale(1.18); } }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; min-width: 0; }

/* ---------- inputs ---------- */
.input, .add-row input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .add-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 90, .2); }
textarea.input { min-height: 96px; resize: vertical; }
label.f { display: block; margin-block: 12px; }
label.f > span { display: block; font-size: .88rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.input.ltr { direction: ltr; text-align: start; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px 8px; margin: 14px 0; }
legend { font-weight: 700; padding: 0 6px; }

/* ---------- photos ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin-inline: -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; border-radius: 14px; overflow: hidden; }
.pgrid button { border: 0; padding: 0; aspect-ratio: 1; background: var(--gold-soft); position: relative; overflow: hidden; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pgrid .star { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; width: 18px; fill: var(--gold); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.potd { position: relative; border-radius: var(--r); overflow: hidden; margin-block: 14px; box-shadow: var(--shadow); }
.potd img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.potd .cap { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 30px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.uploading { margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* ---------- plan ---------- */
.day { margin-block: 22px; }
.day .wd { font-size: .9rem; color: var(--muted); }
.day h3 { font-size: 1.6rem; }
.pitem { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; background: var(--card); border-radius: 14px; padding: 14px; margin-top: 10px; box-shadow: var(--shadow); }
.pitem .tm { font-weight: 700; direction: ltr; text-align: start; }
.pitem .ttl { font-weight: 700; }
.pitem .meta { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.pitem .nav { display: flex; gap: 14px; margin-top: 6px; font-size: .9rem; }
.day .add { margin-top: 10px; }
.day.empty-day h3 { color: var(--muted); }

/* ---------- expenses ---------- */
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.totals .big { font: 500 1.9rem var(--serif); direction: ltr; text-align: start; }
.exp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.exp:last-child { border-bottom: 0; }
.exp .amt { font-weight: 700; direction: ltr; white-space: nowrap; }

/* ---------- map ---------- */
#map { height: 62vh; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-top: 14px; background: #e8e2d6; }

/* ---------- tab bar (translucent material) ---------- */
.tabbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(var(--safe-b) + 6px);
  background: rgba(251, 248, 242, .82);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(27, 35, 51, .06);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: #7c7567; font-size: .78rem; font-weight: 600; transition: color .2s; }
.tabbar a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .8, .2, 1.4); }
.tabbar a.on { color: var(--ink); font-weight: 700; }
.tabbar a.on svg { transform: translateY(-1px) scale(1.06); stroke-width: 1.9; }
.tabbar a:active svg { transform: scale(.9); transition-duration: 80ms; }

/* ---------- bottom sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(12, 16, 30, .42); opacity: 0; }
.sheet {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 51; margin: 0 auto; max-width: 640px;
  max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(12, 16, 30, .2);
  transform: translateY(100%); will-change: transform; touch-action: none;
}
.sheet .grab { padding: 10px 0 6px; flex: none; cursor: grab; }
.sheet .grab i { display: block; width: 40px; height: 5px; border-radius: 5px; background: #d6ccbb; margin: 0 auto; }
.sheet .body { overflow-y: auto; padding: 4px 20px calc(var(--safe-b) + 22px); touch-action: pan-y; overscroll-behavior: contain; }
.sheet h2 { font-size: 1.5rem; margin-bottom: 6px; }
.menu-list a, .menu-list button { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; font: 400 1.15rem var(--serif); text-align: start; }
.menu-list .chev { opacity: .45; font-family: var(--sans); }
html[dir="rtl"] .menu-list .chev { transform: scaleX(-1); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.sheet-actions .btn:first-child { flex: 1; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 18, .94); display: flex; flex-direction: column; color: #fff; opacity: 0; transition: opacity .22s; }
.lb.show { opacity: 1; }
.lb .top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; gap: 8px; }
.lb .top .icon-btn { color: #fff; width: 42px; height: 42px; }
.lb .top .icon-btn svg { width: 22px; height: 22px; }
.lb .top .icon-btn.on svg { fill: var(--gold); stroke: var(--gold); }
.lb .pic { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb .pic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transform: scale(.96); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lb.show .pic img { transform: none; }
.lb .cap { padding: 12px 18px calc(var(--safe-b) + 18px); text-align: center; opacity: .85; min-height: 3em; }

/* ---------- toast ---------- */
.toast {
  position: fixed; inset-inline: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  inset-block-end: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 70;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s cubic-bezier(.2, .8, .2, 1); pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--red); }

.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .hero { margin-inline: 0; border-radius: 0 0 28px 28px; min-height: 640px; }
  .pgrid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .view.enter { animation: fadeOnly .2s both !important; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
  .hero .plane, .trail { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar, .countdown { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar { background: var(--bg); }
  .tabbar { background: var(--card); }
  .countdown { background: rgba(17, 24, 44, .9); }
}
