/* Bali 2026 — "Christmas in the jungle"
   Deep jungle teal + festive red + fairy-light gold on warm sand, with painted Higgsfield artwork.
   Yeseva One for display (used sparingly), Be Vietnam Pro for everything you read. */

:root {
  --paper: #f5efe4;
  --card: #ffffff;
  --ink: #17302c;
  --muted: #67655c;
  --line: #e6dccb;
  --indigo: #0f3d3a;
  --indigo-2: #1b5e57;
  --lacquer: #c62f3a;
  --gold: #f5b83d;
  --gold-soft: #fbedc9;
  --gold-ink: #6e4300;
  --jade: #2f7a64;
  --jade-soft: #d8ebe2;
  --red-soft: #f8dfdc;
  --shadow: 0 1px 2px rgba(23, 48, 44, .06), 0 8px 24px rgba(23, 48, 44, .08);
  --radius: 20px;
  --tabs-h: 74px;
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1f1d;
    --card: #13302d;
    --ink: #f1eee6;
    --muted: #a9bfb8;
    --line: #21463f;
    --lacquer: #ff7b80;
    --gold-soft: #3a2f16;
    --gold-ink: #f6cf7a;
    --jade: #6fc9a8;
    --jade-soft: #173a31;
    --red-soft: #3c1d24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 16px/1.5 var(--body);
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabs-h) + 18px + env(safe-area-inset-bottom));
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lacquer); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: var(--indigo); color: #fff;
}
.top-title { font-family: var(--display); font-size: 22px; line-height: 1.1; letter-spacing: .2px; }
.sync {
  display: flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 11px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-size: 12px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #8fe0bd; box-shadow: 0 0 8px #8fe0bd; }
.dot.off { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.err { background: #ff9d92; box-shadow: none; }

main { padding: 18px 18px 28px; max-width: 720px; margin: 0 auto; outline: none; }
main.flush { padding-top: 0; }

/* ---------- type ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .1px; }
h2.sec { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; margin: 30px 0 12px; }
h2.sec small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
h3 { font-size: 16px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.sub { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- cards & controls ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
}
.tap { cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); margin: 2px 4px 2px 0;
}
.chip.jade { background: var(--jade-soft); color: var(--jade); }
.chip.red { background: var(--red-soft); color: var(--lacquer); }
.chip.gold { background: rgba(232, 176, 60, .18); color: var(--gold-ink); }
.chip.ink { background: rgba(255,255,255,.16); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 14px; padding: 11px 16px; background: var(--lacquer); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none;
}
.btn.gold { background: var(--gold); color: #3a1f00; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn.danger { background: transparent; color: var(--lacquer); box-shadow: inset 0 0 0 1.5px var(--lacquer); }
.link { background: none; border: 0; padding: 0; color: var(--lacquer); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); z-index: 5;
  width: 58px; height: 58px; border-radius: 20px; border: 0;
  background: var(--lacquer); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(194,74,38,.4); cursor: pointer;
}
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.2; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

.seg { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 10px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: none; border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.seg button.on { background: var(--indigo); color: #fff; }

/* ---------- avatars (one colour per household) ---------- */
.av {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--indigo-2);
  box-shadow: 0 0 0 2px var(--card); flex: none;
}
.av.h0 { background: var(--jade); }
.av.h1 { background: #d08a12; }
.av.h2 { background: var(--lacquer); }
.av.h3 { background: #3f6fb0; }
.av.h4 { background: #8a4f9e; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -8px; }
.av.lg { width: 56px; height: 56px; font-size: 20px; box-shadow: none; }

/* ---------- hero (Today) ---------- */
.hero {
  position: relative; margin: 0 -18px 4px; padding: 26px 22px 24px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,61,58,.15) 0%, rgba(15,61,58,.55) 55%, var(--indigo) 100%),
              url("img/hero.jpg") center 60% / cover no-repeat var(--indigo);
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero-num { font-family: var(--display); font-size: 88px; line-height: .9; color: var(--gold); text-shadow: 0 4px 30px rgba(6,30,28,.6); }
.hero-line { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 4px 0 10px; text-shadow: 0 2px 16px rgba(6,30,28,.6); }
.hero-meta { font-size: 14px; color: rgba(255,255,255,.88); }

/* ---------- next steps ---------- */
.steps { padding: 18px; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--lacquer)); border-radius: 6px; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.step:first-of-type { border-top: 0; }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 2px var(--line); }
.step.done .tick { background: var(--jade); box-shadow: none; color: #fff; }
.step.done .t { color: var(--muted); text-decoration: line-through; }
.tick svg.i { width: 15px; height: 15px; stroke-width: 3; }
.step .go { color: var(--muted); }

/* ---------- boarding pass (the signature) ---------- */
.pass {
  position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden;
}
.pass-head { padding: 16px 18px 14px; background: var(--indigo); color: #fff; }
.pass-head .eyebrow { color: var(--gold); }
.pass-route { display: flex; align-items: center; gap: 6px; margin: 10px 0 8px; flex-wrap: wrap; }
.pass-route b { font-size: 28px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.pass-route.long { gap: 4px; }
.pass-route.long b { font-size: 23px; }
.pass-route .hop { color: var(--gold); display: inline-flex; }
.pass-route.long .hop svg.i { width: 15px; height: 15px; }
.pass-route .hop svg.i { width: 18px; height: 18px; }
.pass-when { font-size: 13px; color: rgba(255,255,255,.85); }
.pass-tear {
  height: 18px; position: relative;
  background: radial-gradient(circle at 0 50%, var(--paper) 9px, transparent 10px) left / 18px 18px no-repeat,
              radial-gradient(circle at 100% 50%, var(--paper) 9px, transparent 10px) right / 18px 18px no-repeat;
}
.pass-tear::after { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed var(--line); }
.pass-legs { padding: 0 18px 16px; }
.leg { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.leg-rail { position: relative; display: flex; justify-content: center; }
.leg-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line); }
.leg:first-child .leg-rail::before { top: 14px; }
.leg:last-child .leg-rail::before { bottom: calc(100% - 14px); }
.leg-dot { position: relative; margin-top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--lacquer); }
.leg.wait .leg-dot { width: 8px; height: 8px; margin-top: 12px; box-shadow: none; background: var(--line); }
.leg-body { padding: 4px 0 12px; }
.leg-times { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.leg-times b { font-size: 17px; font-weight: 800; }
.leg-times .arr { color: var(--muted); }
.leg-meta { font-size: 13px; color: var(--muted); }
.leg.wait .leg-body { padding: 6px 0 12px; }
.waitpill { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.waitpill.long { background: var(--gold-soft); color: var(--gold-ink); }
.together { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--jade); margin-top: 4px; }

/* ---------- idea cards ---------- */
.idea { padding: 0; overflow: hidden; }
.idea-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--indigo), var(--lacquer)); background-size: cover; background-position: center; }
.idea-art .chip { position: absolute; left: 12px; bottom: 10px; background: rgba(23,48,44,.72); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.idea-art .planned { left: auto; right: 12px; background: var(--jade); }
.idea-art.blank { display: grid; place-items: center; color: rgba(255,255,255,.85); }
.idea-art.blank svg { width: 64px; height: 64px; opacity: .9; }
.idea-body { padding: 14px 16px 16px; }
.idea-title { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 0 0 6px; }
.idea-notes { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.idea-foot { display: flex; align-items: center; gap: 10px; }
.keen {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--paper); color: var(--ink);
  transition: background .2s, color .2s, box-shadow .2s;
}
.keen svg.i { width: 18px; height: 18px; }
.keen, .btn { white-space: nowrap; }
.ytcard .idea-foot { flex-wrap: wrap; row-gap: 10px; }
.keen.on { background: var(--gold); color: #3a1f00; box-shadow: 0 0 0 4px rgba(242,182,61,.25), 0 6px 18px rgba(242,182,61,.45); }
.keen.on svg.i { fill: #3a1f00; }
.keen.pop { animation: keen-pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes keen-pop { 40% { transform: scale(1.14); } }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 210px; scroll-snap-align: start; padding: 0; overflow: hidden; margin: 0; cursor: pointer; }
.mini .idea-art { aspect-ratio: 4 / 3; }
.mini .idea-body { padding: 10px 12px 12px; }
.mini .idea-title { font-size: 17px; margin: 0 0 4px; }

/* ---------- plan ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 14px; padding: 4px 18px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 62px; padding: 8px 4px 9px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--card); box-shadow: var(--shadow); text-align: center; line-height: 1.1;
}
.day .dw { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day .dn { font-family: var(--display); font-size: 26px; margin: 3px 0 2px; }
.day .dc { font-size: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day.on { background: var(--indigo); color: #fff; }
.day.on .dw, .day.on .dc { color: rgba(255,255,255,.75); }
.day.travel .dc { color: var(--lacquer); }
.day.on.travel .dc { color: var(--gold); }

.dayhead { padding: 0; overflow: hidden; }
.dayhead-art { position: relative; height: 150px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); background-size: cover; background-position: center; }
.dayhead-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,48,44,.05) 20%, rgba(23,48,44,.55) 55%, rgba(13,36,33,.92)); }
/* Only the date and town sit on the picture; the day's note goes underneath, where it's easy to read. */
.dayhead-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.dayhead-title .display { font-size: 25px; line-height: 1.08; display: block; }
.dh-city { display: inline-block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.dayhead-note { padding: 12px 16px 0; font-size: 15px; line-height: 1.45; }
.dayhead-body { padding: 12px 16px; display: flex; gap: 10px; align-items: center; }

.tl { padding: 6px 16px; }
.tl-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lacquer); font-size: 14px; padding-top: 1px; }
.tl-time.none { color: var(--muted); font-weight: 600; }
.tl-item.flight .tl-what b { display: inline-flex; gap: 6px; align-items: center; }
.tl-item.flight .tl-what svg.i { width: 16px; height: 16px; color: var(--lacquer); }

.draft { background: var(--gold-soft); box-shadow: none; }
.draft h3 { color: var(--gold-ink); }

/* ---------- stays ---------- */
.wants { background: var(--indigo); color: #fff; }
.wants .eyebrow { color: var(--gold); }
.wants .display { font-size: 22px; margin: 4px 0 12px; }
.wants .chip { background: rgba(255,255,255,.12); color: #fff; padding: 6px 12px; font-size: 13px; }
.amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.amen span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.amen span.yes { background: var(--jade-soft); color: var(--jade); }
.amen svg.i { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- more ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { margin: 0; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 14px; min-height: 118px; }
.tile .ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); color: var(--lacquer); }
.tile b { font-size: 15px; line-height: 1.25; }
.tile .sub { font-size: 12px; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px -4px; }

/* ---------- checklists ---------- */
.check { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--jade); flex: none; margin: 0; }
.check.done .t { text-decoration: line-through; color: var(--muted); }

.phrase { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phrase:last-child { border-bottom: 0; }
.phrase .vi { font-weight: 800; font-size: 17px; }
.phrase .say { font-size: 13px; color: var(--muted); font-style: italic; }
.speak { border: 0; background: var(--paper); border-radius: 12px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--lacquer); flex: none; }
.money { font-variant-numeric: tabular-nums; }

/* ---------- idea detail ---------- */
.idea.detail .idea-art { aspect-ratio: 4 / 3; }
.idea.detail h1.idea-title { font-weight: 400; margin: 2px 0 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.facts .fv { font-size: 14px; font-weight: 500; margin-top: 3px; line-height: 1.4; }
.facts .fact.cost { grid-column: 1 / -1; }
.facts .sub { grid-column: 1 / -1; margin-top: 0 !important; }
.facts .home-money { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.facts .home-money span {
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--jade-soft); color: var(--jade); font-variant-numeric: tabular-nums;
}
.dl { margin: 8px 0 0; padding: 0; list-style: none; }
.dl li { position: relative; padding: 6px 0 6px 22px; line-height: 1.45; font-size: 15px; }
.dl li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.pc .card { margin: 0; }
.pros .eyebrow { color: var(--jade); }
.pros .dl li::before { background: var(--jade); }
.cons .eyebrow { color: var(--lacquer); }
.cons .dl li::before { background: var(--lacquer); border-radius: 2px; }
@media (max-width: 420px) { .pc { grid-template-columns: 1fr; } }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.note > div { font-size: 15px; }
.noteform { display: flex; gap: 8px; margin-top: 12px; }
.noteform input { flex: 1; }

/* ---------- YouTube Top 20 ---------- */
.ideaswitch { margin-bottom: 14px; }
.yt-head .display { font-size: 26px; margin: 4px 0 6px; }
.ytcard { padding: 14px; }
.yt-top { display: flex; gap: 12px; align-items: flex-start; }
.yt-rank { flex: none; width: 34px; font-size: 32px; line-height: 1; color: var(--lacquer); text-align: center; padding-top: 4px; }
.yt-thumb { flex: none; width: 92px; height: 92px; border-radius: 14px; background: var(--indigo) center / cover no-repeat; }
.ytcard h3 { font-size: 16px; margin: 0 0 6px; }
.yt-score { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.yt-score b { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--lacquer); min-width: 24px; }
.yt-bar { flex: 1; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.yt-bar span { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gold), var(--lacquer)); }
.ytcard .chip { margin-top: 6px; }
.btn.yt { background: #e3241c; color: #fff; }
.yt-src { font-size: 12px; color: var(--muted); margin-top: 8px; }
.ytdetail .btn.yt { margin-top: 4px; }
.chip.ytrank { position: absolute; left: 12px; top: 10px; bottom: auto; background: #e3241c; color: #fff; }

/* ---------- Round 1 stay vote ---------- */
.stayopt { position: relative; padding: 14px; }
.stayopt.leading { box-shadow: 0 0 0 2.5px var(--gold), var(--shadow); }
.lead-flag { position: absolute; top: -10px; right: 14px; background: var(--gold); color: #3a1f00; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.so-top { display: flex; gap: 12px; align-items: flex-start; }
.so-art { flex: none; width: 84px; height: 84px; border-radius: 14px; background: var(--indigo) center / cover no-repeat; }
.so-top h3 { font-size: 16px; margin: 2px 0 4px; }
.so-list { list-style: none; margin: 10px 0 12px; padding: 0; font-size: 14px; }
.so-list li { position: relative; padding: 3px 0 3px 22px; line-height: 1.4; }
.so-list li.pro svg.i { position: absolute; left: 0; top: 5px; width: 15px; height: 15px; stroke-width: 3; color: var(--jade); }
.so-list li.con { color: var(--muted); }
.so-list li.con::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 2px; background: var(--lacquer); border-radius: 2px; }
.stayopt .idea-foot { flex-wrap: wrap; row-gap: 8px; }
.so-expert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.so-expert .eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.so-expert .chip.ytrank { position: static; margin: 0; font-size: 10px; padding: 2px 8px; }
.so-expert .yt-score b { font-size: 18px; }
.so-clip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.so-clip .btn { white-space: nowrap; }
.so-advice { border-left: 4px solid var(--jade); }
.so-advice h3 { font-size: 18px; margin: 4px 0 0; }
.so-advice summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--indigo); }
.so-src { margin: 8px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.6; }
.so-src a { color: var(--indigo); }
.so-fit { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.so-fit .chip { margin: 0; }
.so-fit .sub { flex-basis: 100%; }
.so-area { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.so-area h3 { font-size: 16px; margin: 0 0 4px; }
.so-bars { margin-top: 8px; }
.so-bars-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.so-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.so-bar > span { width: 48px; flex: none; }
.so-bar b { width: 36px; text-align: right; font-variant-numeric: tabular-nums; color: var(--lacquer); }
.so-areas { list-style: none; margin: 0; padding: 0; }
.so-areas li { padding: 6px 0; font-size: 14px; }
.so-areas li .chip { margin: 0 0 0 4px; font-size: 11px; padding: 1px 8px; }
.so-areas li.pick { border-left: 3px solid var(--jade); padding-left: 8px; }

/* ---------- Round 2 places ---------- */
.sp .eyebrow { margin-bottom: 2px; }
.sp-photo { position: relative; margin: -14px -14px 12px; height: 180px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: var(--indigo) center / cover no-repeat; }
.sp-photo span { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; }
.sp.leading .lead-flag { z-index: 1; }
.sp-photo b { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 999px; }
.sp-photo b svg.i { width: 14px; height: 14px; }
.sp-warn { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--red-soft); color: var(--lacquer); font-size: 13px; font-weight: 600; }
.gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal-i { flex: 0 0 88%; height: 240px; border-radius: 16px; scroll-snap-align: center; background: var(--indigo) center / cover no-repeat; }
.gal-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); margin: 6px 2px 12px; }
.so-bar.sc > span { width: 96px; }

/* ---------- TripAdvisor ratings ---------- */
.ta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.ta-line b { color: var(--ink, inherit); }
.ta-dots { display: inline-flex; gap: 2px; }
.ta-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #00aa6c; }
.ta-dots i.on { background: #00aa6c; }
.ta-dots i.half { background: linear-gradient(90deg, #00aa6c 50%, transparent 50%); }
.ta-big { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; }
.ta-big b { font-size: 22px; }
.ta-big .ta-dots i { width: 14px; height: 14px; }
.ta-picks { margin: 4px 0 0; padding-left: 20px; font-size: 14px; }
.ta-picks li { padding: 4px 0; }
.ta-picks a { color: var(--indigo); font-weight: 600; }

/* ---------- Stays sections and folded research ---------- */
.stays-seg { position: sticky; top: calc(var(--top-h, 56px) + 4px); z-index: 5; margin: 0 -6px 14px; padding: 6px; width: fit-content; border-radius: 999px; background: var(--card, #fff); box-shadow: 0 4px 14px rgba(10, 40, 37, .12); }
.research { margin: 0 0 12px; }
.research > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); font-weight: 700; font-size: 14px; color: var(--indigo); }
.research > summary::-webkit-details-marker { display: none; }
.research > summary svg.i { width: 18px; height: 18px; flex: none; }
.research > summary::after { content: "Show"; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.research[open] > summary::after { content: "Hide"; }
.research[open] > summary { margin-bottom: 10px; }
.sp-rating { font-size: 13px; margin-top: 4px; }
.sp-rating b { color: var(--jade); }
.sp-price { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sp-price > div:first-child b { font-size: 22px; color: var(--lacquer); font-variant-numeric: tabular-nums; }
.sp-cmp { font-size: 13px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.sp-price .chip { margin: 6px 0 0; }
.sp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sp-flags .chip { margin: 0; }
.sp-combo { padding: 10px 0; border-top: 1px solid var(--line); }
.sp-combo:first-of-type { border-top: 0; }
.sp-combo-p { margin-top: 2px; font-weight: 700; color: var(--lacquer); }

/* ---------- app feedback ---------- */
.fb-form textarea { width: 100%; min-height: 90px; }
.fb { padding: 12px 0; border-top: 1px solid var(--line); }
.fb:first-child { border-top: 0; padding-top: 2px; }
.fb-text { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.fb-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fb-meta .av { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.fb-meta .chip { margin: 0; }
.fb-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); font-size: 13px; border-left: 3px solid var(--jade); }

/* ---------- good to know ---------- */
.tip { padding: 12px 0; border-top: 1px solid var(--line); }
.tip:first-child { border-top: 0; padding-top: 2px; }
.tip b { font-size: 15px; }
.tip .sub { margin-top: 2px; line-height: 1.45; }
.tip-by { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tip-by .av { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
.tipday { margin-top: 12px; border-left: 4px solid var(--gold); }
.tipday svg.i { color: var(--gold-ink); }

/* ---------- weather ---------- */
.hero-wx { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); }
.hero-wx b { color: var(--gold); }
.wxpill {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(23,48,44,.7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Today teasers ---------- */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.teaser { margin: 0; padding: 0; overflow: hidden; }
.teaser-art { height: 92px; background: var(--gold-soft) center / cover no-repeat; }
.teaser-art.trophy { display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); }
.teaser-body { padding: 10px 12px 12px; }
.teaser-body b { display: block; font-size: 15px; margin-top: 2px; }
.teaser-body .sub { font-size: 12px; }

/* ---------- food passport ---------- */
.passport-cover {
  position: relative; border-radius: 22px; padding: 20px; margin-bottom: 14px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--indigo-2), var(--indigo) 60%);
  box-shadow: inset 0 0 0 2px rgba(242,182,61,.55), inset 0 0 0 6px var(--indigo), inset 0 0 0 7px rgba(242,182,61,.35), var(--shadow);
}
.passport-cover::after {
  content: "★"; position: absolute; right: -10px; bottom: -40px; font-size: 180px; line-height: 1; color: rgba(242,182,61,.08);
}
.passport-cover .eyebrow { color: var(--gold); }
.pp-name { font-size: 30px; margin: 6px 0 2px; }
.pp-count { font-size: 15px; color: rgba(255,255,255,.88); }
.pp-count b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold); }
.passport-cover .progress { background: rgba(255,255,255,.15); }
.pp-fam { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 700; }
.pp-fam > span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255,255,255,.1); }
.pp-fam .av { box-shadow: none; width: 24px; height: 24px; font-size: 11px; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dish { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dish-art { position: relative; aspect-ratio: 1; background: var(--gold-soft) center / cover no-repeat; }
.dish-art .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.dish-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.dish-body .row { margin-top: auto !important; padding-top: 8px; }
.dish-name { font-size: 18px; line-height: 1.1; }
.dish-en { font-size: 13px; font-weight: 600; margin-top: 2px; }
.dish-where { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stamp {
  position: absolute; right: 8px; bottom: 8px; width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid rgba(194,74,38,.9); background: rgba(255,250,240,.82); color: #a51d16; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  transform: rotate(-14deg); box-shadow: inset 0 0 0 4px rgba(255,250,240,.82), inset 0 0 0 5.5px rgba(194,74,38,.75);
  font-family: var(--body); text-transform: uppercase;
}
.stamp span { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.stamp b { font-family: var(--display); font-weight: 400; font-size: 20px; text-transform: none; }
.stamp small { font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.stamp.thud { animation: thud .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes thud { 0% { transform: rotate(-30deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-12deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); } }

/* ---------- challenges ---------- */
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.lb-row .rank { width: 22px; text-align: center; font-weight: 800; color: rgba(255,255,255,.55); }
.lb-row .crown { width: 22px; text-align: center; font-size: 18px; }
.lb-row .av { box-shadow: none; }
.lb-bar { flex: 0 0 34%; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.ch-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ch-row:first-child { border-top: 0; }
.pts { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--gold-soft); color: var(--gold-ink); }
.ch-row.done .pts { background: var(--jade); color: #fff; }
.ch-row .t { font-weight: 600; line-height: 1.3; }
.ch-row.done .t { color: var(--muted); }

/* ---------- photos ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pthumb { aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--line); cursor: pointer; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 45; background: rgba(6,22,20,.96); color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; font-size: 14px; font-weight: 600; }
.lb-top span { display: inline-flex; align-items: center; gap: 8px; }
.lb-x { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.lb-img { flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.lb-cap { font-size: 16px; margin-bottom: 10px; min-height: 4px; }
.lightbox .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.lightbox .btn.danger { color: #ff9d92; box-shadow: inset 0 0 0 1.5px #ff9d92; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 6;
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabs-h);
  background: rgba(15, 61, 58, .92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-radius: 24px; box-shadow: 0 12px 30px rgba(23,48,44,.35);
}
.tabs button {
  border: 0; background: none; cursor: pointer; color: rgba(255,255,255,.62);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600;
}
.tabs button.on { color: var(--gold); }
.tabs button.on svg.i { filter: drop-shadow(0 0 8px rgba(242,182,61,.7)); }

/* ---------- sheet ---------- */
dialog {
  border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh;
  border-radius: 26px 26px 0 0; margin: auto auto 0; background: var(--card); color: var(--ink);
}
dialog::backdrop { background: rgba(10,30,28,.55); backdrop-filter: blur(3px); }
#sheetForm { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
#sheetForm h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--paper);
  font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 76px; resize: vertical; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticks label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 15px; font-weight: 500; margin: 0; }
.actions { display: flex; gap: 8px; margin-top: 18px; }
.actions .btn { flex: 1; }

/* ---------- toast & big text ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(23,48,44,.35); transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bigtext {
  position: fixed; inset: 0; z-index: 40; background: #fff; color: #000;
  display: flex; flex-direction: column; justify-content: center; padding: 24px;
  font-size: 32px; font-weight: 800; line-height: 1.3; text-align: center;
}
.bigtext[hidden] { display: none; }
.bigtext small { display: block; font-size: 16px; font-weight: 400; margin-top: 16px; color: #555; }

/* ---------- welcome screens fill the whole phone ----------
   100lvh reaches behind the browser's bottom toolbar and the home bar, and the page behind is
   coloured to match, so no light strip shows at the bottom. */
#splash, .joinwrap { height: 100vh; height: 100lvh; bottom: auto; }
html:has(#splash), html:has(.joinwrap), body:has(#splash), body:has(.joinwrap) { background: #0d2f3b; }

/* ---------- join ---------- */
.joinwrap {
  position: fixed; inset: 0; z-index: 7; overflow-y: auto; color: #fff;
  background: linear-gradient(180deg, rgba(15,61,58,.35), rgba(15,61,58,.92) 55%), url("img/splash.jpg") center 30% / cover no-repeat var(--indigo);
}
.join { max-width: 420px; margin: 0 auto; padding: calc(16vh + env(safe-area-inset-top)) 22px 40px; text-align: center; }
.join-star { width: 60px; height: 60px; }
.join-star circle { fill: var(--lacquer); }
.join-star path { fill: var(--gold); }
.join h1 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 12px 0 8px; }
.join p { color: rgba(255,255,255,.85); margin: 0 0 18px; }
.join input[type=text] { background: rgba(255,255,255,.95); color: #1b1838; border: 0; text-align: center; font-weight: 700; letter-spacing: .08em; }
.join .err { color: #ffb4a9; font-weight: 600; min-height: 22px; margin: 8px 0; }
.house { margin: 18px 0 0; text-align: left; }
.house .eyebrow { color: var(--gold); margin-bottom: 8px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.people button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px;
  border: 0; border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.people button:hover { background: rgba(255,255,255,.18); }

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background: #0d2f3b; color: #fff; text-align: center; overflow: hidden;
}
#splash.gone { animation: splash-out .45s ease forwards; }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.splash-art {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,37,0) 18%, rgba(10,40,37,.45) 32%, rgba(10,40,37,.45) 46%, rgba(10,40,37,0) 60%),
              url("img/splash.jpg") center 40% / cover no-repeat;
  animation: drift 3.4s ease-out both;
}
@keyframes drift { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.splash-body { position: relative; padding: 0 24px; margin-top: 29vh; text-shadow: 0 2px 16px rgba(6,30,28,.65); }
.splash-star { width: 52px; height: 52px; fill: var(--gold); filter: drop-shadow(0 0 12px rgba(246,195,67,.75)); animation: pop .7s cubic-bezier(.2,1.6,.4,1) .2s both; }
#splash h1 { font-family: var(--display); font-weight: 400; font-size: 52px; line-height: 1.02; margin: 10px 0 10px; animation: rise .7s ease .35s both; }
#splash h1 span { color: var(--gold); }
.splash-dates { margin: 0; font-size: 18px; font-weight: 600; animation: rise .7s ease .5s both; }
.splash-crew { margin: 14px 0 0; font-size: 14px; opacity: .92; animation: rise .7s ease .65s both; }
.splash-enter {
  position: absolute; left: 50%; bottom: calc(9vh + env(safe-area-inset-bottom));
  bottom: calc(100lvh - 100svh + 9svh + env(safe-area-inset-bottom)); /* stays above the browser's toolbar */
  transform: translateX(-50%);
  min-width: 210px; padding: 16px 40px; border: 0; border-radius: 999px;
  background: var(--gold); color: #3a1f00; font-size: 18px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 6px 24px rgba(6,30,28,.45), 0 0 0 4px rgba(242,182,61,.25);
  cursor: pointer; animation: rise-btn .7s ease .9s both;
}
@keyframes pop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes rise-btn { from { transform: translate(-50%, 14px); opacity: 0; } }

/* ---------- motion ---------- */
.view-in > * { animation: rise .45s ease both; }
.view-in > *:nth-child(2) { animation-delay: .05s; }
.view-in > *:nth-child(3) { animation-delay: .1s; }
.view-in > *:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Bali additions ---------- */
.yt-how { margin-top: 10px; }
.yt-how summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--gold); }
.yt-how p { color: rgba(255,255,255,.82); margin: 6px 0 0; }
.kk-hide { background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: #fff; text-align: center; padding: 28px 18px; }
.kk-hide .eyebrow { color: var(--gold); }
.kk-hide .sub { color: rgba(255,255,255,.75); }
.kk-show { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.so-art.emo { display: grid; place-items: center; font-size: 40px; background: var(--gold-soft); }

/* ---------- Christmas in Bali: fairy lights, garland, petals ---------- */
.top::before, .top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, var(--c) 0 3.2px, transparent 4px) var(--o) 0 / 36px 14px repeat-x;
  filter: drop-shadow(0 0 4px var(--c));
}
.top::before { --c: #ffd36e; --o: 0px; animation: twinkle 2.4s ease-in-out infinite; }
.top::after { --c: #ff5964; --o: 18px; animation: twinkle 2.4s ease-in-out 1.2s infinite; }
.top-title::after { content: " 🎄"; font-size: 17px; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero { min-height: 360px; padding-top: 70px; }
.hero::before { content: ""; position: absolute; top: -8px; left: -4%; right: -4%; height: 78px; background: url("img/garland.webp") center top / auto 100% repeat-x; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.hero-xmas { display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: rgba(198,47,58,.9); font-size: 14px; font-weight: 600; width: fit-content; }
.hero-xmas b { font-family: var(--display); font-size: 20px; font-weight: 400; }

.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petals i { position: absolute; top: -40px; width: 18px; height: 18px; border-radius: 0 70% 0 70%; background: radial-gradient(circle at 30% 30%, #fff8e8, #fde3a7 70%, #f5b83d); opacity: .9; animation: fall linear infinite; }
.petals i:nth-child(1) { left: 6%; animation-duration: 9s; animation-delay: -1s; }
.petals i:nth-child(2) { left: 18%; animation-duration: 12s; animation-delay: -6s; width: 13px; height: 13px; }
.petals i:nth-child(3) { left: 31%; animation-duration: 10s; animation-delay: -3s; }
.petals i:nth-child(4) { left: 44%; animation-duration: 13s; animation-delay: -9s; }
.petals i:nth-child(5) { left: 57%; animation-duration: 9.5s; animation-delay: -4s; }
.petals i:nth-child(6) { left: 69%; animation-duration: 11s; animation-delay: -7s; }
.petals i:nth-child(7) { left: 80%; animation-duration: 12.5s; animation-delay: -2s; }
.petals i:nth-child(8) { left: 90%; animation-duration: 10.5s; animation-delay: -8s; }
.petals i:nth-child(9) { left: 25%; animation-duration: 14s; animation-delay: -11s; background: radial-gradient(circle, #ff7b80, #c62f3a); width: 12px; height: 12px; }
.petals i:nth-child(10) { left: 74%; animation-duration: 13.5s; animation-delay: -5s; background: radial-gradient(circle, #ff7b80, #c62f3a); width: 12px; height: 12px; }
@keyframes fall { from { transform: translate(0, -5vh) rotate(0); } 50% { transform: translate(28px, 50vh) rotate(200deg); } to { transform: translate(-12px, 108vh) rotate(400deg); } }
@media (prefers-reduced-motion: reduce) { .petals { display: none; } .top::before, .top::after { animation: none; } }

/* ---------- tab bar: a raised Vote button in the middle ---------- */
.tabs { overflow: visible; }
.tabs button.tab-vote { position: relative; color: #fff; }
.tabs button.tab-vote svg.i {
  width: 30px; height: 30px; padding: 12px; box-sizing: content-box; margin-top: -30px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff7b80, var(--lacquer) 60%, #8f1d26); color: #fff; fill: #ffd36e; stroke: #fff4d6; stroke-width: 1.4;
  box-shadow: 0 6px 18px rgba(198,47,58,.55), 0 0 0 4px rgba(15,61,58,.92);
}
.tabs button.tab-vote.on svg.i { filter: none; box-shadow: 0 0 0 4px rgba(15,61,58,.92), 0 0 22px rgba(255,211,110,.8); }
.tab-badge { position: absolute; top: -26px; right: calc(50% - 32px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: #3a1f00; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 3px rgba(15,61,58,.92); }
.tab-badge[hidden] { display: none; }

/* ---------- Vote tab ---------- */
.vhero { margin: -18px -18px 10px; padding: 70px 20px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(15,61,58,.2), rgba(15,61,58,.94) 72%), url("img/route-c.jpg") center 40% / cover no-repeat var(--indigo); }
.vhero::before { content: ""; position: absolute; top: -10px; left: -4%; right: -4%; height: 70px; background: url("img/garland.webp") center top / auto 100% repeat-x; }
.vhero .eyebrow { color: var(--gold); }
.vhero-t { font-size: 30px; line-height: 1.05; margin: 4px 0 12px; }
.vsteps { display: flex; flex-direction: column; gap: 6px; }
.vstep { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 14px; padding: 9px 12px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; text-align: left; cursor: pointer; }
.vstep .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; flex: none; }
.vstep.done { background: rgba(255,211,110,.18); }
.vstep.done .tick { background: var(--gold); border-color: var(--gold); color: #3a1f00; }
.vstep .tick svg.i { width: 14px; height: 14px; stroke-width: 3; }
.vgrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .vgrid { grid-template-columns: 1fr 1fr; } }
.vopt { padding: 0; overflow: hidden; margin: 0; position: relative; }
.vopt.leading { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.vopt-img { position: relative; aspect-ratio: 16 / 9; background: var(--gold-soft) center / cover no-repeat; display: grid; place-items: center; }
.vopt-img .emo { font-size: 64px; }
.vopt-img .lead-flag { top: 10px; left: 10px; right: auto; }
.vletter { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lacquer); color: #fff; font-size: 26px; box-shadow: 0 0 0 4px var(--card); }
.rchip { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.62); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.rchip small { font-weight: 600; opacity: .8; }
.vopt-body { padding: 14px 16px; }
.vopt-img:has(.vletter) + .vopt-body { padding-top: 28px; }
.vopt-body h3 { font-size: 18px; margin: 2px 0 4px; }
.vbar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 12px 0 4px; }
.vbar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--lacquer)); transition: width .5s cubic-bezier(.2,1.4,.4,1); }
.vmeta { min-height: 28px; }
.vwait { margin: 8px 2px 0; }

/* ---------- pop-up detail sheet ---------- */
body.noscroll { overflow: hidden; }
#detail { position: fixed; inset: 0; z-index: 40; background: rgba(6,22,20,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s ease; }
#detail[hidden] { display: none; }
.dsheet { position: relative; width: min(640px, 100%); max-height: 94vh; overflow-y: auto; background: var(--paper); border-radius: 26px 26px 0 0; animation: sheetup .32s cubic-bezier(.2,1,.3,1); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@keyframes sheetup { from { transform: translateY(60px); opacity: .4; } }
@keyframes fadein { from { opacity: 0; } }
.dx { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; }
.dgal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 270px; background: var(--indigo); border-radius: 26px 26px 0 0; }
.dgal::-webkit-scrollbar { display: none; }
.dgal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.dgal.emo { display: grid; place-items: center; font-size: 90px; background: var(--gold-soft); }
.dgal-cap { font-size: 11px; color: var(--muted); padding: 6px 16px 0; }
.dbody { padding: 8px 16px 0; }
.dbody h1 { font-size: 28px; line-height: 1.1; margin: 4px 0 10px; }
.drate { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; }
.drate > div { display: flex; align-items: center; gap: 6px; }
.drate b { font-size: 22px; color: var(--lacquer); }
.xmascard { background: linear-gradient(135deg, #fff5f2, var(--card)); box-shadow: inset 0 0 0 1.5px rgba(198,47,58,.25), var(--shadow); }
@media (prefers-color-scheme: dark) { .xmascard { background: linear-gradient(135deg, #3c1d24, var(--card)); } }
.dprice { font-weight: 800; font-size: 17px; margin-top: 8px; color: var(--lacquer); }
.ddays > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ddays > div:last-child { border-bottom: 0; }

/* ---------- swipe deck ---------- */
.deck { position: relative; height: 470px; margin: 14px 0 0; touch-action: pan-y; }
.deck-card { position: absolute; inset: 0; background: var(--card); border-radius: 24px; box-shadow: 0 10px 30px rgba(23,48,44,.18); overflow: hidden; transition: transform .25s ease, opacity .25s ease; user-select: none; cursor: grab; }
.deck-card.back { transform: scale(.94) translateY(16px); opacity: .7; pointer-events: none; }
.deck-img { position: relative; height: 56%; background: var(--indigo) center / cover no-repeat; }
.deck-body { padding: 12px 16px; }
.deck-body h3 { font-size: 21px; margin: 8px 0 4px; }
.deck-body > .sub:first-of-type { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deck-keen { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stamp-yes, .stamp-no { position: absolute; top: 22px; font-family: var(--display); font-size: 30px; padding: 2px 12px; border: 4px solid; border-radius: 10px; opacity: 0; transition: opacity .12s; background: rgba(255,255,255,.85); }
.stamp-yes { left: 18px; color: var(--jade); transform: rotate(-12deg); }
.stamp-no { right: 18px; color: var(--lacquer); transform: rotate(12deg); }
.deck-card.lean-yes .stamp-yes, .deck-card.fly-yes .stamp-yes { opacity: 1; }
.deck-card.lean-no .stamp-no, .deck-card.fly-no .stamp-no { opacity: 1; }
.deck-card.fly-yes { transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.deck-card.fly-no { transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.deck-card.fly-later { transform: translateY(-40px) scale(.9) !important; opacity: 0; }
.deck-btns { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 16px 0 4px; }
.dbtn { border: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); background: var(--card); }
.dbtn.no, .dbtn.yes { width: 64px; height: 64px; }
.dbtn.no { color: var(--lacquer); }
.dbtn.yes { color: #fff; background: radial-gradient(circle at 30% 25%, #4cc59a, var(--jade)); }
.dbtn.yes svg.i { fill: #fff; }
.dbtn svg.i { width: 30px; height: 30px; stroke-width: 2.6; }
.dbtn.later { width: 54px; height: 54px; font-size: 12px; font-weight: 700; color: var(--muted); }
.deck-done { text-align: center; padding: 26px 18px; margin-top: 14px; }
.deck-done .emo { font-size: 54px; }

/* ---------- home: vote call-to-action ---------- */
.votecta { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--lacquer), #8f1d26); color: #fff; }
.votecta .eyebrow { color: #ffd36e; }
.votecta .sub { color: rgba(255,255,255,.85); }
.votecta .vc-art { width: 64px; height: 64px; border-radius: 16px; flex: none; background: url("img/route-b.jpg") center / cover; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }

/* ---------- Kris Kringle artwork ---------- */
.kk-hide { background: linear-gradient(180deg, rgba(15,61,58,.1), rgba(15,61,58,.92)), url("img/kk.jpg") center / cover; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.kk-head { padding-top: 150px; background: linear-gradient(180deg, rgba(15,61,58,0) 10%, rgba(15,61,58,.95) 62%), url("img/kk.jpg") center 30% / cover no-repeat var(--indigo); }
.kk-hide { min-height: 120px; background: linear-gradient(135deg, var(--lacquer), #8f1d26); }

/* ---------- photo avatars ---------- */
.av.pic { background-size: cover; background-position: center; color: transparent; }
.av.xl { width: 72px; height: 72px; font-size: 26px; box-shadow: 0 0 0 3px var(--gold); }
.avbtn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; position: relative; }
.avbtn::after { content: "📷"; position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 13px; box-shadow: var(--shadow); }
.avprev { width: 180px; height: 180px; margin: 8px auto 12px; border-radius: 50%; background: center / cover no-repeat var(--line); box-shadow: 0 0 0 4px var(--gold); }
.byline { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13px; color: var(--muted); }
.byline b { color: var(--ink, inherit); }
/* ---------- our villas ---------- */
.card.villa { padding: 0; overflow: hidden; }
.vgal { border-radius: 0; height: 240px; }
.villa-body { padding: 12px 16px 16px; }
.villa-name { font-weight: 400; font-size: 26px; margin: 4px 0 0; line-height: 1.1; }
.vrate { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.vrate > b { font-size: 26px; color: #fff; background: var(--jade); border-radius: 12px 12px 12px 2px; padding: 4px 10px; }
.vrate > span { color: var(--muted); margin-left: -8px; font-weight: 700; }
.vscores { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 8px 0; font-size: 12px; }
.vscores > div { display: grid; grid-template-columns: 76px 1fr 26px; gap: 6px; align-items: center; }
.vscores b { text-align: right; }
.villa-about { margin: 10px 0; line-height: 1.5; }
.villa-fac { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.vfacts > div, .vnear > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vfacts span, .vnear span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.vfacts b { font-weight: 600; }
.vnear > div { grid-template-columns: 1fr auto; }
.vnear span { text-transform: none; letter-spacing: 0; font-size: 14px; color: inherit; font-weight: 500; }
.vreviews { margin: 12px 0 0; box-shadow: inset 0 0 0 1.5px var(--line); }
.money .mine { margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #13433f, #0b2b28); color: #fff; }
.money .mine .eyebrow { color: var(--gold); }
.money .mine .display { font-size: 34px; line-height: 1.1; margin: 2px 0; }
.money .mine .sub { color: rgba(255,255,255,.82); }
.money .due { margin-top: 12px; padding: 10px 12px 4px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.money .due.soon { box-shadow: inset 0 0 0 2px var(--gold); }
.money .due.late { box-shadow: inset 0 0 0 2px var(--lacquer); background: rgba(198,47,58,.06); }
.chip.red { background: var(--lacquer); color: #fff; }
.working { margin-top: 12px; }
.working summary { cursor: pointer; font-weight: 700; color: var(--lacquer); font-size: 14px; }
.calc { margin-top: 8px; font-size: 13px; }
.calc .cl { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.calc .cl b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc .cl.tot b { font-weight: 800; }
.calc .cl u { text-decoration: none; background: var(--gold-soft, rgba(245,184,61,.25)); padding: 0 4px; border-radius: 4px; font-weight: 800; }
.calc .ch { margin: 12px 0 2px; font-weight: 800; font-size: 13px; }
/* ---------- deadlines: who's had their say ---------- */
.card.deadline { padding: 16px 16px 14px; margin-bottom: 14px; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.card.deadline .eyebrow { margin-bottom: 2px; }
/* Today: the compact list */
.card.dlist { padding: 4px 14px; }
.dlrow { border-top: 1px solid var(--line); }
.dlrow:first-child { border-top: 0; }
.dlrow > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.dlrow > summary::-webkit-details-marker { display: none; }
.dlrow > summary > svg.i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.dlrow[open] > summary > svg.i { transform: rotate(90deg); }
.dl-emo { font-size: 22px; width: 28px; text-align: center; flex: none; }
.dl-t { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.dl-you { font-size: 10px; padding: 1px 7px; }
.dlrow .sub { font-size: 13px; }
.dlrow.soon .dl-left { color: #b5801f; }
.dlrow.urgent .dl-left, .dlrow.late .dl-left { color: var(--lacquer); }
.dl-bar.mini { height: 4px; margin: 6px 0 0; }
.dlrow-body { padding: 0 0 14px 40px; }
.dlrow-body .dl-actions { border-top: 0; padding-top: 0; margin-top: 12px; }
.dl-group { margin-top: 10px; }
.dl-lab { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-actions:empty { display: none; }
.dl-tip { margin-top: 8px; }
.card.deadline.soon { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.card.deadline.urgent { box-shadow: inset 0 0 0 2px var(--lacquer), var(--shadow); }
.card.deadline.late { box-shadow: inset 0 0 0 2px var(--lacquer), var(--shadow); background: linear-gradient(135deg, rgba(198,47,58,.08), var(--card)); }
.dl-when { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 2px 0; }
.deadline.urgent .dl-when, .deadline.late .dl-when { color: var(--lacquer); }
.dl-count { text-align: center; min-width: 58px; font-size: 14px; color: var(--muted); }
.dl-count b { font-size: 28px; color: var(--ink); font-weight: 800; }
.dl-count small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dl-bar { height: 6px; border-radius: 6px; background: var(--line); margin: 12px 0 2px; overflow: hidden; }
.dl-bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--jade), var(--gold)); }
.dl-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dlp { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.dlp.done i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--jade); color: #fff; font-size: 9px; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.dlp.miss { padding: 2px 3px 2px 2px; gap: 5px; border-radius: 999px; background: var(--line); font-size: 12.5px; font-weight: 700; }
.dlp.miss > span { padding-right: 2px; }
.dlp.miss .av { filter: grayscale(1); opacity: .6; }
.dlp.miss em { font-style: normal; font-size: 11px; color: var(--muted); padding-right: 6px; }
.nudge { border: 0; background: var(--card); border-radius: 999px; width: 24px; height: 24px; padding: 0; font-size: 13px; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.nudge:active { transform: scale(.9); }
.keen.locked { opacity: .75; cursor: default; }
.card.result { background: linear-gradient(135deg, #fff8e8, var(--card)); box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
@media (prefers-color-scheme: dark) { .card.result { background: linear-gradient(135deg, #3a2f16, var(--card)); } }
.res-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.res-img { width: 72px; height: 72px; border-radius: 14px; background: center / cover no-repeat var(--line); flex: none; }
.res-row h3 { font-weight: 400; font-size: 22px; margin: 0 0 2px; }
.todo-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tlink { font: inherit; font-size: 12px; font-weight: 700; color: var(--lacquer); background: var(--gold-soft, rgba(245,184,61,.18)); border: 0; border-radius: 999px; padding: 4px 10px; text-decoration: none; cursor: pointer; }
.deck-blank { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold); font-family: var(--display); font-size: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(245,184,61,.25), transparent 60%), url("img/garland.webp") center top / auto 46px repeat-x, linear-gradient(160deg, #13433f, #0b2b28); }
.deck-blank span { font-size: 54px; }
.fab.wide { width: auto; height: 52px; padding: 0 18px 0 14px; border-radius: 26px; display: flex; gap: 6px; font-weight: 800; font-size: 15px; }
.fab.wide svg.i { width: 22px; height: 22px; }

/* ---------- advent calendar ---------- */
.advent { background: linear-gradient(160deg, #13433f, #0b2b28); color: #fff; position: relative; overflow: hidden; }
.advent::before { content: ""; position: absolute; top: -14px; left: -10%; right: -10%; height: 46px; background: url("img/garland.webp") center top / auto 100% repeat-x; opacity: .95; }
.advent > .row { margin-top: 26px; }
.advent .eyebrow { color: var(--gold); }
.advent .sub { color: rgba(255,255,255,.78); }
.adv-emo { font-size: 34px; }
.adv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
.adv-door { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: rgba(255,255,255,.45); font-family: var(--display); font-size: 17px; cursor: default; }
.adv-door.ready { cursor: pointer; border: 0; color: #3a1f00; background: linear-gradient(135deg, #ffd36e, #f5b83d); box-shadow: 0 3px 0 #b5801f; }
.adv-door.ready.today { background: linear-gradient(135deg, #ff7b80, var(--lacquer)); color: #fff; box-shadow: 0 3px 0 #8f1d26, 0 0 16px rgba(255,123,128,.7); animation: doorpulse 1.6s ease-in-out infinite; }
.adv-door.open { background: rgba(255,255,255,.14); box-shadow: none; font-size: 20px; animation: none; }
@keyframes doorpulse { 50% { transform: scale(1.07); } }
.door-open { text-align: center; padding: 6px 4px 10px; }
.door-emo { font-size: 64px; animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.door-open h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 6px 0; }

/* ---------- Christmas Day ---------- */
.hero.xmas { background: linear-gradient(180deg, rgba(198,47,58,.15), rgba(143,29,38,.85) 70%), url("img/kk.jpg") center 40% / cover no-repeat #8f1d26; }
.kkreveal { background: linear-gradient(135deg, var(--lacquer), #8f1d26); color: #fff; }
.kkreveal .eyebrow { color: #ffd36e; }
.kkpair { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.kkpair:last-child { border-bottom: 0; }
.kkpair .arrow { margin: 0 4px; opacity: .85; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confall 2.6s cubic-bezier(.3,.6,.5,1) forwards; }
.confetti i:nth-child(3n) { width: 12px; height: 12px; border-radius: 50%; }
@keyframes confall { to { transform: translate(var(--x, 40px), 105vh) rotate(720deg); opacity: .9; } }
.confetti i:nth-child(odd) { --x: -50px; }

/* ---------- morning briefing ---------- */
.brief { background: linear-gradient(135deg, #fff8e8, var(--card)); box-shadow: inset 0 0 0 1.5px rgba(245,184,61,.45), var(--shadow); }
@media (prefers-color-scheme: dark) { .brief { background: linear-gradient(135deg, #3a2f16, var(--card)); } }
.brief-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.brief-row > span { font-size: 18px; }

/* ---------- flight tracker ---------- */
.ftrack .ft { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ftrack .ft:last-child { border-bottom: 0; }
.ft-line { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 10px 0; font-weight: 800; }
.ft-line small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.ft-line > span:last-child { text-align: right; }
.ft-track { position: relative; height: 4px; border-radius: 4px; background: var(--line); }
.ft-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--lacquer)); }
.ft-track b { position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(45deg); color: var(--lacquer); background: var(--card); border-radius: 50%; padding: 2px; display: grid; }
.ft-track b svg.i { width: 18px; height: 18px; }

/* ---------- kids' scavenger hunt ---------- */
.hunt-head { background: linear-gradient(180deg, rgba(15,61,58,.1), rgba(15,61,58,.95) 65%), url("img/route-b.jpg") center 30% / cover; padding-top: 110px; }
.hunt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hunt { position: relative; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 18px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; cursor: pointer; }
.hunt .he { font-size: 34px; filter: grayscale(1); opacity: .45; }
.hunt .ht { font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--muted); }
.hunt.got { border: 0; background: radial-gradient(circle at 30% 25%, #fff8e8, #ffe4a3); box-shadow: 0 4px 0 #e0b04a, var(--shadow); transform: rotate(-3deg); }
.hunt.got:nth-child(even) { transform: rotate(3deg); }
.hunt.got .he { filter: none; opacity: 1; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.hunt.got .ht { color: #6e4300; }
.hstar { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--lacquer); color: #fff; display: grid; place-items: center; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* ---------- recap film ---------- */
.recap video { width: 100%; border-radius: 14px; margin-top: 8px; background: #000; }
.recap.soon { background: linear-gradient(135deg, var(--gold-soft), var(--card)); }
