/* =========================================================
   Baby-Proofing Sunset Beach Castle
   Editorial checklist — pine & cream, Fraunces + Inter
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --p: 0; /* overall progress, 0..1 — drives the sun */

  --paper: #f3ecdf;
  --paper-2: #efe6d6;
  --card: #fffdf8;
  --ink: #2a2723;
  --ink-soft: #6f685b;
  --ink-faint: #a79e8d;
  --line: #e8e0cf;
  --line-soft: #f0eadc;

  /* coastal blues — "beach castle", named --pine for historical reasons */
  --pine: #2c5a76;
  --pine-deep: #1e4259;
  --pine-soft: #5e809a;
  --pine-tint: #d9e6ef;

  --high-bg: #f6d9cf;  --high-ink: #a83a2b;
  --med-bg:  #efe0c4;  --med-ink:  #8a6a2b;
  --low-bg:  #d8e4ed;  --low-ink:  #3f627d;

  --gold: #ffcb5e;
  --gold-soft: #ffe2a0;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(42, 39, 35, 0.04), 0 14px 36px -18px rgba(42, 39, 35, 0.16);
  --shadow-dock: 0 1px 0 var(--line), 0 10px 30px -20px rgba(42, 39, 35, 0.25);

  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 720px;
  --gutter: clamp(18px, 5vw, 40px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--pine); color: #fff; }

/* ---------- ambient top progress hairline ---------- */
.topline {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.topline-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pine), var(--pine-soft) 55%, var(--gold));
  border-radius: 0 3px 3px 0;
  transition: width 0.6s var(--ease-out);
}

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 6vw, 48px) var(--gutter) 0;
}
.masthead-inner {
  position: relative;
  background: var(--pine);
  color: #f4efe6;
  border-radius: var(--radius);
  padding: clamp(26px, 6vw, 44px);
  /* tall sky band: keeps the stats line clear of both the sea bar and the sun crest */
  padding-bottom: clamp(124px, 26vw, 134px);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-card);
}
/* warm glow behind the sun, intensifies with progress */
.masthead-inner::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: calc(-40% + var(--p) * 36%);
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 94, 0.5), rgba(255, 203, 94, 0) 62%);
  opacity: calc(0.12 + var(--p) * 0.55);
  z-index: -1;
  transition: opacity 0.9s var(--ease-out), bottom 0.9s var(--ease-out);
  pointer-events: none;
}

.masthead-copy {
  position: relative;
  z-index: 2;
  max-width: 30em;
  text-shadow: 0 1px 14px rgba(24, 38, 32, 0.22);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.66);
  margin-bottom: 0.9em;
}
.title {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 120, "SOFT" 30;
  font-size: clamp(2.1rem, 8.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #fdfaf3;
}
.title-accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 120, "SOFT" 60, "WONK" 1;
  color: var(--gold-soft);
}
.lede {
  margin-top: 1.1em;
  font-size: clamp(0.98rem, 2.6vw, 1.08rem);
  line-height: 1.62;
  color: rgba(244, 239, 230, 0.85);
  max-width: 34em;
}
.stat-line {
  margin-top: 1.25em;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 230, 0.62);
}
.stat-line b { font-weight: 600; color: rgba(244, 239, 230, 0.9); }

/* ---------- the rising sun ---------- */
/* sun + sea are positioned directly against .masthead-inner (which clips them),
   so the sea anchors to the true bottom of the card */
.sun {
  position: absolute;
  right: clamp(16px, 7vw, 60px);
  bottom: 13px;
  /* fixed size so the hide/crest geometry is identical at every viewport width */
  width: 106px;
  aspect-ratio: 1;
  /* rises with progress: already ~20% up at 0% (a warm crescent, never an
     empty horizon) and climbing to a full crest at 100% */
  transform: translateY(calc((1 - var(--p)) * 40px));
  transition: transform 1.1s var(--ease-spring);
}
.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%),
    linear-gradient(160deg, var(--gold-soft), var(--gold));
  /* dim/cool at 0% → warm gold near 100% via mix */
  filter: saturate(calc(0.45 + var(--p) * 0.75)) brightness(calc(0.86 + var(--p) * 0.2));
  box-shadow: 0 0 0 6px rgba(255, 203, 94, 0.1);
  transition: filter 0.9s var(--ease-out);
}
.sun-glow {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.55), rgba(255, 210, 120, 0) 60%);
  opacity: var(--p);
  transition: opacity 0.9s var(--ease-out);
}
.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--pine-deep), #143447);
  pointer-events: none;
}
.sea::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 170, calc(0.15 + var(--p) * 0.5)), transparent);
}

/* the sun is tappable — it pops into Ash */
.sun {
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sun:hover .sun-glow { opacity: calc(var(--p) + 0.15); }

/* Ash sticker easter egg */
.ash {
  position: absolute;
  z-index: 4;
  right: clamp(2px, 2.5vw, 26px);
  bottom: 0;
  width: clamp(138px, 40vw, 188px);
  height: auto;
  transform-origin: 72% 100%;
  transform: scale(0.2) rotate(-10deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(18, 28, 38, 0.4));
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  will-change: transform, opacity;
}
.ash.is-pop {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
  transform: scale(1) rotate(-3deg);
  animation: ash-pop 0.62s var(--ease-spring), ash-bob 3.2s ease-in-out 0.62s infinite;
}
@keyframes ash-pop {
  0% { transform: scale(0.2) rotate(-12deg); opacity: 0; }
  55% { transform: scale(1.12) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(-3deg); opacity: 1; }
}
@keyframes ash-bob {
  0%, 100% { transform: translateY(0) scale(1) rotate(-3deg); }
  50% { transform: translateY(-7px) scale(1.012) rotate(-1deg); }
}
.ash-open .sun { opacity: 0; transition: opacity 0.35s var(--ease-out); }

/* ---------- live summary ---------- */
.summary {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 26px) var(--gutter) 0;
}
.summary-main {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.summary-pct {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-variation-settings: "opsz" 100;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
}
.summary-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.summary-note {
  margin-top: 0.3em;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.summary-note b { color: var(--high-ink); font-weight: 600; }

/* ---------- sticky dock ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: clamp(18px, 4vw, 26px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.dock-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-progress {
  position: relative;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  padding: 0;
  flex: none;
  display: grid;
  place-items: center;
}
.ring { width: 38px; height: 38px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--line); stroke-width: 3; }
.ring-fill {
  fill: none;
  stroke: var(--pine);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 97.39; /* 2πr, r=15.5 */
  stroke-dashoffset: 97.39;
  transition: stroke-dashoffset 0.7s var(--ease-out), stroke 0.4s;
}
.dock-pct {
  position: absolute;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--pine);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* segmented filter */
.seg {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-btn {
  border: none;
  background: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s, background 0.2s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(42, 39, 35, 0.1);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-high { background: var(--high-ink); }
.dot-medium { background: var(--med-ink); }
.dot-low { background: var(--low-ink); }

.rooms-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 13px 7px 11px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.15s;
}
.rooms-btn:active { transform: scale(0.96); }
.rooms-ico { width: 16px; height: 16px; fill: none; stroke: var(--pine); stroke-width: 2; stroke-linecap: round; }

.dock-tools {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
  display: flex;
  justify-content: flex-end;
}
.hide-done {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  user-select: none;
}
.hide-done input { accent-color: var(--pine); width: 15px; height: 15px; }

/* ---------- plan / rooms ---------- */
.plan {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3.5vw, 22px);
}

.room {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4.5vw, 30px);
  box-shadow: var(--shadow-card);
  scroll-margin-top: 76px;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.room.is-complete {
  border-color: color-mix(in srgb, var(--pine) 35%, var(--line));
}

.room-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.room-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex: none;
  filter: saturate(1.05);
}
.room-titles { flex: 1 1 auto; min-width: 0; }
.room-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.6vw, 1.7rem);
  font-variation-settings: "opsz" 80, "SOFT" 20;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.room-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  font-weight: 500;
}

/* per-room ring meter */
.room-meter { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.room-meter .ring { width: 34px; height: 34px; }
.room-meter .ring-fill { stroke: var(--pine-soft); transition: stroke-dashoffset 0.7s var(--ease-out), stroke 0.4s; }
.room.is-complete .room-meter .ring-fill { stroke: var(--pine); }
.room-meter-check {
  position: absolute;
  width: 16px;
  height: 16px;
  stroke: var(--pine);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}
.room.is-complete .room-meter-check { opacity: 1; transform: scale(1); }
.room-meter-count {
  position: absolute;
  font-size: 0.56rem;
  font-weight: 600;
  color: var(--pine-soft);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s;
}
.room.is-complete .room-meter-count { opacity: 0; }

.room-rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 16px 0 4px;
}

/* group */
.group { padding-top: 12px; }
.group-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine-soft);
  margin: 14px 0 2px;
}

/* ---------- item row ---------- */
.item {
  border-bottom: 1px dotted var(--line);
}
.item:last-child { border-bottom: 0; }
.item.is-hidden { display: none; }

.row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 4px 13px 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.row-check {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* custom checkbox */
.box {
  flex: none;
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.8px solid color-mix(in srgb, var(--pine) 40%, var(--line));
  border-radius: 7px;
  background: var(--card);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease-out), border-color 0.25s, transform 0.2s var(--ease-spring);
}
.row:hover .box { border-color: var(--pine); }
.box::after {
  /* halo pulse */
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9px;
  border: 2px solid var(--pine);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}
.tick {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.3s var(--ease-out) 0.05s;
}

.row-body { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
.badge {
  display: inline-block;
  vertical-align: 1px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  margin-right: 9px;
  white-space: nowrap;
  transition: filter 0.3s, opacity 0.3s;
}
.badge-high { background: var(--high-bg); color: var(--high-ink); }
.badge-medium { background: var(--med-bg); color: var(--med-ink); }
.badge-low { background: var(--low-bg); color: var(--low-ink); }

.row-text {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink);
  text-decoration-line: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.6px;
  transition: color 0.35s var(--ease-out), text-decoration-color 0.45s var(--ease-out);
}

/* detail sub-notes */
.detail { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.detail-row {
  position: relative;
  padding-left: 16px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.detail-row::before {
  content: "–";
  position: absolute;
  left: 2px;
  color: var(--ink-faint);
}

/* ---------- DONE state ---------- */
.item.done .box {
  background: var(--pine);
  border-color: var(--pine);
}
.item.done .tick path { stroke-dashoffset: 0; }
.item.done .row-text {
  color: var(--ink-faint);
  text-decoration-color: color-mix(in srgb, var(--pine) 55%, transparent);
}
.item.done .badge { filter: grayscale(0.55); opacity: 0.65; }

/* one-shot celebration when toggled on */
.item.just-done .box { animation: box-pop 0.42s var(--ease-spring); }
.item.just-done .box::after { animation: halo 0.55s var(--ease-out); }
.item.just-done .row-text { animation: text-settle 0.4s var(--ease-out); }

@keyframes box-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
@keyframes halo {
  0% { opacity: 0.7; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.7); }
}
@keyframes text-settle {
  0% { transform: translateX(0); }
  30% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* ---------- notes ---------- */
.note {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--pine-tint);
  border: 1px solid color-mix(in srgb, var(--pine) 18%, var(--line));
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.note-label {
  flex: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine);
  background: color-mix(in srgb, var(--pine) 14%, #fff);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 1px;
}
.note-text { font-size: 0.9rem; line-height: 1.55; color: color-mix(in srgb, var(--ink) 88%, var(--pine)); }

/* ---------- footer ---------- */
.colophon {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) calc(56px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--line);
}
.colophon-mark {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--pine);
  margin-bottom: 8px;
}
.colophon-note { font-size: 0.84rem; color: var(--ink-soft); }
.reset-btn {
  border: none;
  background: none;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  font-size: 0.84rem;
}
.reset-btn:hover { color: var(--high-ink); }
.colophon-fine { margin-top: 14px; font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.03em; }

/* ---------- rooms sheet ---------- */
.sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 33, 28, 0.4);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.3s;
}
.sheet-scrim.is-open { opacity: 1; }

.sheet {
  position: fixed;
  z-index: 71;
  left: 50%;
  bottom: 0;
  width: min(440px, 100%);
  transform: translate(-50%, 100%);
  background: var(--card);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 50px -20px rgba(42, 39, 35, 0.4);
  padding: 8px 0 calc(16px + env(safe-area-inset-bottom));
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  transition: transform 0.42s var(--ease-spring);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  margin: 8px auto 4px;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 12px;
}
.sheet-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
}
.sheet-close {
  border: none;
  background: var(--paper-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-soft);
}
.sheet-list { overflow-y: auto; padding: 0 12px 8px; }
.sheet-room {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.18s;
}
.sheet-room:hover { background: var(--paper-2); }
.sheet-room-emoji { font-size: 1.15rem; flex: none; }
.sheet-room-name { flex: 1 1 auto; font-size: 0.98rem; font-weight: 500; }
.sheet-room-count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sheet-room.done .sheet-room-name { color: var(--ink-faint); }
.sheet-room-tick { color: var(--pine); font-weight: 600; }
.mini-bar {
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.mini-bar span {
  display: block;
  height: 100%;
  background: var(--pine-soft);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pine);
  color: #fdf8ee;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 40px -16px rgba(36, 33, 28, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: calc(100vw - 32px);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast-emoji { font-size: 1.15rem; }

/* ---------- confetti ---------- */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 79;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  /* set sides/top only — never reset padding-bottom (the sky band) */
  .masthead-inner { padding-top: 46px; padding-left: 48px; padding-right: 48px; min-height: 300px; }
  .row-text { font-size: 1rem; }
}

@media (max-width: 460px) {
  .seg-btn { padding: 6px 10px; }
  .rooms-btn span { display: none; }
  .rooms-btn { padding: 8px 10px; }
}

/* tiniest phones: drop the filter dots so all four options fit without scrolling */
@media (max-width: 360px) {
  .dock-inner { gap: 7px; }
  .seg { padding: 2px; }
  .seg-btn { padding: 6px 8px; gap: 0; }
  .seg-btn .dot { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sun { transition: none; }
}
