/* ============================================================
   Hannah's Bach — shared styles
   Palette pulled from the Vieques poster. Change colors here.
   ============================================================ */
:root {
  --lemon: #EFE145;
  --cobalt: #2170C0;
  --pink: #FD85B8;
  --coral: #F54B51;
  --tangerine: #F96B1D;
  --teal: #02697F;
  --brick: #981C12;
  --jungle: #043A2D;   /* used for all text instead of black */
  --cream: #FDDDB0;
  --paper: #FFF2D9;    /* page background */
  --card: #FFF9EE;
  --muted: #4F6B60;

  --sec: var(--lemon);      /* current section color, set per page */
  --sec-ink: var(--jungle); /* text on the section color */

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .02 0 0 0 0 .2 0 0 0 0 .15 .4 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --nav-h: 66px;
  color-scheme: light;
}

body[data-section="home"]   { --sec: var(--lemon);     --sec-ink: var(--cobalt); }
body[data-section="plan"]   { --sec: var(--cobalt);    --sec-ink: var(--card); }
body[data-section="stay"]   { --sec: var(--pink);      --sec-ink: var(--jungle); }
body[data-section="photos"] { --sec: var(--tangerine); --sec-ink: var(--jungle); }
body[data-section="crew"]   { --sec: var(--teal);      --sec-ink: var(--lemon); }
body[data-section="me"]     { --sec: var(--brick);     --sec-ink: var(--cream); }
body[data-section="notes"]  { --sec: var(--coral);     --sec-ink: var(--jungle); }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none; /* stops the rubber-band bounce past the page end */
  background: var(--jungle); /* anything showing below the page matches the bottom nav */
  scroll-padding-top: calc(70px + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--jungle);
  background: var(--paper) var(--grain);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 28px);
  min-height: 100vh;
  min-height: 100dvh; /* short pages still fill the screen with paper */
}
body.no-nav { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); }
body.loading main { visibility: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 900; font-stretch: 125%; }
h2 { font-size: 25px; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 800; font-stretch: 112%; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
#top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 10px;
  background: var(--sec) var(--grain);
  color: var(--sec-ink);
}
.wordmark {
  font-weight: 900;
  font-stretch: 125%;
  font-size: 15px;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.avatar-link { text-decoration: none; border-radius: 50%; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--jungle);
  background-size: cover;
  background-position: center;
}

/* ---------- Section band ---------- */
.band {
  position: relative;
  background: var(--sec) var(--grain);
  color: var(--sec-ink);
  padding: 2px 20px 46px;
}
.band h1 {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(48px, 15vw, 96px);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}
.band p {
  max-width: 640px;
  margin: 12px auto 0;
  font-weight: 600;
}
.edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 22px;
  display: block;
  fill: var(--paper);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 20px 0;
}
.section { margin-top: 36px; }
.section:first-child { margin-top: 12px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lede { color: var(--muted); font-size: 15px; margin: -6px 0 16px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 2px solid var(--jungle);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--jungle);
}
.card + .card { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--jungle);
  background: var(--jungle);
  color: var(--lemon);
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: translate(1px, 1px); }
.btn.ghost { background: transparent; color: var(--jungle); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: default; }
.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--jungle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Forms ---------- */
.form label, .field {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-top: 16px;
}
input[type=text], input[type=password], input[type=datetime-local], select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--jungle);
  border-radius: 10px;
  background: #fff;
  color: var(--jungle);
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in */
  font-weight: 500;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--jungle) 50%), linear-gradient(135deg, var(--jungle) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.form h3 { margin-top: 26px; }
.form h2 + h3, .form .lede + h3 { margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .two label { margin-top: 12px; }
@media (max-width: 400px) { .two.dt { grid-template-columns: 1fr; } }
.check {
  display: flex !important;
  gap: 10px;
  align-items: center;
  font-weight: 600 !important;
  font-size: 15px !important;
}
.check input { width: 22px; height: 22px; accent-color: var(--jungle); margin: 0; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.status { font-size: 14px; font-weight: 700; }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ---------- Editable content ---------- */
.content-body { font-size: 16.5px; line-height: 1.6; }
.content-body h3 { font-size: 20px; margin: 24px 0 8px; }
.content-body h3:first-child { margin-top: 0; }
.content-body h4 { font-size: 17px; font-weight: 800; margin: 18px 0 6px; }
.content-body h4:first-child { margin-top: 0; }
.content-body p { margin: 0 0 12px; }
.content-body ul { margin: 0 0 12px; padding-left: 20px; }
.content-body li { margin-bottom: 4px; }
.content-body li::marker { color: var(--coral); }
.content-body a { font-weight: 700; }
.empty { color: var(--muted); font-style: italic; }
.content-img { margin: 6px 0 18px; }
.content-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--jungle);
  border-radius: 14px;
  background: var(--cream);
  cursor: zoom-in;
}
.content-img img:not([src]) { aspect-ratio: 4 / 3; }
.content-img figcaption { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.editor-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.form .editor-tools label { margin: 0; display: inline-flex; }

/* Playlist */
.spotify { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; margin-top: 4px; }
.song-pick { margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(4, 58, 45, 0.25); }
.song-t { margin-top: 8px; font-size: 22px; font-weight: 900; font-stretch: 112%; line-height: 1.15; }
.song-a { font-weight: 600; color: var(--muted); margin-top: 2px; }
.song-pick a { display: inline-block; margin-top: 8px; font-weight: 700; }
.song-list { list-style: none; margin: 0; padding: 0; }
.song-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px dashed rgba(4, 58, 45, 0.2); }
.song-list li:first-child { border-top: 0; }
.song-who {
  appearance: none;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--jungle);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}
.song-who img { width: 100%; height: 100%; object-fit: cover; display: block; }
.song-info { flex: 1; min-width: 0; }
.song-info b { display: block; font-weight: 800; line-height: 1.25; }
.song-info span { display: block; font-size: 14px; color: var(--muted); }
.song-links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; font-weight: 700; text-align: right; }
.edit-area textarea { min-height: 280px; font-size: 15px; }

details.day {
  border: 2px solid var(--jungle);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
details.day summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  font-weight: 900;
  font-stretch: 118%;
  font-size: 18px;
  line-height: 1.15;
}
details.day summary::-webkit-details-marker { display: none; }
details.day summary::after { content: '+'; margin-left: auto; font-size: 26px; line-height: 1; }
details.day[open] summary::after { content: '\2013'; }
details.day[open] summary { background: var(--cobalt) var(--grain); color: var(--card); }
.today-tag {
  font-style: normal;
  background: var(--lemon);
  color: var(--jungle);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 800;
  font-stretch: 100%;
  white-space: nowrap;
}
.day-body { padding: 16px 16px 6px; }

/* ---------- Bottom nav ---------- */
#nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--jungle) var(--grain);
}
#nav a {
  flex: 1;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 5px;
  border-radius: 14px;
  color: var(--cream);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
#nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
#nav a[aria-current="page"] { background: var(--c); color: var(--i); }
/* Extend the bar's color below the screen edge, so no gap shows when the
   browser toolbar slides away or the page bounces while scrolling. */
#nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100vh;
  background: var(--jungle);
}
@media (min-width: 720px) {
  #nav { max-width: 520px; margin: 0 auto 16px; border-radius: 22px; }
  #nav::after { display: none; }
}

/* ---------- Role badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 7px;
  border-radius: 999px;
  background: var(--c);
  color: var(--i);
  font-weight: 800;
  font-size: 13px;
  border: 2px solid var(--jungle);
  white-space: nowrap;
}
.badge svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.badge > span { min-width: 0; }

/* Main Character: holographic foil with twinkles */
.badge.sparkle {
  position: relative;
  overflow: visible;
  color: var(--jungle);
  background: linear-gradient(105deg, #FD85B8 0%, #EFE145 22%, #FFF9EE 34%, #9ED8E3 48%, #FD85B8 64%, #EFE145 82%, #FFF9EE 100%);
  background-size: 260% 100%;
  animation: foil 4.5s linear infinite;
}
.badge.sparkle::before, .badge.sparkle::after {
  content: '\2726';
  position: absolute;
  color: #EFE145;
  -webkit-text-stroke: 1.2px var(--jungle);
  text-shadow: 0 0 6px #FFF9EE;
  line-height: 1;
  pointer-events: none;
  animation: twinkle 1.8s ease-in-out infinite;
}
.badge.sparkle::before { top: -13px; right: -8px; font-size: 21px; }
.badge.sparkle::after { bottom: -11px; left: 10px; font-size: 15px; animation-delay: 0.9s; }
@keyframes foil { to { background-position: -260% 0; } }
@keyframes twinkle {
  0%, 100% { transform: scale(0.35) rotate(0deg); opacity: 0.15; }
  50% { transform: scale(1) rotate(20deg); opacity: 1; }
}

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.form .role-option { position: relative; margin: 0; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--jungle);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  cursor: pointer;
}
.role-option span svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.role-option input:checked + span { background: var(--c); color: var(--i); box-shadow: 3px 3px 0 var(--jungle); }
.role-option input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.signs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0 10px; }
.signs { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 3px; }

.photo-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.photo-preview {
  width: 92px;
  height: 115px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid var(--jungle);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 36px;
}
.form .photo-pick { margin: 0; display: inline-flex; font-size: 14px; font-weight: 800; }

/* ---------- Crew ---------- */
.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
@media (min-width: 560px) { .crew-grid { grid-template-columns: repeat(3, 1fr); } }
.crew-card {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  align-self: start;
}
.crew-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  border: 2px solid var(--jungle);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--jungle);
}
.crew-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 72px;
}
.crew-photo .badge {
  position: absolute;
  white-space: normal;
  line-height: 1.15;
  border-radius: 14px;
  left: 8px;
  bottom: 9px;
  max-width: calc(100% - 16px);
  font-size: 12px;
  transform: rotate(-4deg);
  transform-origin: left bottom;
}
.crew-name { margin-top: 11px; font-weight: 900; font-stretch: 118%; font-size: 19px; line-height: 1.1; }

dialog.sheet {
  border: 0;
  padding: 0;
  width: min(560px, 100%);
  max-width: 100%;
  max-height: 92vh;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper) var(--grain);
  color: var(--jungle);
  overflow: auto;
}
@media (min-width: 600px) { dialog.sheet { margin: auto; border-radius: 22px; } }
dialog.sheet::backdrop { background: rgba(4, 58, 45, 0.65); }
.sheet-photo { position: relative; aspect-ratio: 1 / 1; max-height: 58vh; width: 100%; background: var(--cream); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--jungle);
  background: var(--lemon);
  color: var(--jungle);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.sheet-body { padding: 18px 20px calc(26px + env(safe-area-inset-bottom, 0px)); }
.sheet-body h2 { font-size: 34px; margin-top: 10px; }

/* ---------- Photos ---------- */
.upload-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 18px -20px 12px;
  padding: 2px 20px 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 2px solid var(--jungle);
  background: #fff;
  color: var(--jungle);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--jungle); color: var(--lemon); }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  appearance: none;
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .by {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid #fff;
}
.tile .play { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .play::before { content: ''; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.empty-box {
  padding: 34px 18px;
  text-align: center;
  border: 2px dashed var(--jungle);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: rgba(4, 58, 45, 0.97);
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.lb-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--cream); font-weight: 700; }
.lb-top .who { flex: 1; min-width: 0; }
.lb-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; touch-action: pan-y; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: rgba(4, 58, 45, 0.7);
  color: var(--cream);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-count { text-align: center; color: var(--cream); font-size: 13px; font-weight: 600; padding: 6px 0 12px; }

/* ---------- Activities ---------- */
.activity + .activity { margin-top: 16px; }
.activity h3 { font-size: 19px; }
.activity .desc { margin-top: 6px; color: var(--muted); white-space: pre-wrap; }
.activity .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.vote-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--jungle);
  background: #fff;
  color: var(--jungle);
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.vote-btn[aria-pressed="true"] { background: var(--cobalt); color: var(--card); }
.who-in { font-size: 14px; color: var(--muted); flex: 1; min-width: 160px; }
.who-in strong { color: var(--jungle); }

/* ---------- Home ---------- */
.hero { position: relative; background: var(--lemon); color: var(--cobalt); padding-top: 6px; overflow: hidden; }
/* One grain layer over the headline and the illustration together */
.hero::after { content: ''; position: absolute; inset: 0; background: var(--grain); pointer-events: none; }
.hero-inner { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.hero h1 { text-transform: uppercase; letter-spacing: -0.02em; }
.hero h1 span { display: block; white-space: nowrap; }
/* Sized so each line spans the phone's width */
.hero h1 .l1 { font-size: clamp(38px, 12.4vw, 86px); line-height: 1; }
.hero h1 .l2 { font-size: clamp(78px, 23.6vw, 166px); line-height: 0.82; margin-left: -0.03em; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.hero-meta p { color: var(--jungle); font-weight: 800; font-size: 17px; line-height: 1.3; }
.sticker {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--tangerine);
  color: var(--jungle);
  border: 2px solid var(--jungle);
  transform: rotate(9deg);
  line-height: 0.95;
}
.sticker b { display: block; font-size: 38px; font-weight: 900; font-stretch: 125%; }
.sticker span { display: block; font-size: 12px; font-weight: 800; margin-top: 3px; }
.hero-art { display: block; width: 100%; height: clamp(210px, 62vw, 380px); margin-top: 10px; }
.hero-art .rise { transform-box: fill-box; animation: rise 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-art .r2 { animation-delay: 0.08s; }
.hero-art .r3 { animation-delay: 0.16s; }
.hero-art .r4 { animation-delay: 0.24s; }
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }

.todo a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 2px dashed rgba(4, 58, 45, 0.25);
  color: var(--jungle);
  text-decoration: none;
  font-weight: 700;
}
.todo a:first-of-type { border-top: 0; padding-top: 6px; }
.todo .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--jungle); flex-shrink: 0; background: #fff; }
.todo .go { margin-left: auto; font-size: 22px; line-height: 1; }
.pill-label {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 999px;
  border: 2px solid var(--jungle);
  background: var(--lemon);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.strip a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cream); border: 2px solid var(--jungle); }
.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notes-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 2px solid var(--jungle);
  border-radius: 14px;
  background: var(--coral) var(--grain);
  color: var(--jungle);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--jungle);
}
.notes-tile svg { width: 64px; flex-shrink: 0; }
.notes-tile b { display: block; font-size: 20px; font-weight: 900; font-stretch: 118%; line-height: 1.1; }
.notes-tile span { font-weight: 600; font-size: 14px; }

/* ---------- Login ---------- */
.login-card { position: relative; max-width: 420px; margin: -34px auto 0; }
.login-card .btn { width: 100%; margin-top: 22px; }
.error { color: var(--brick); font-weight: 700; font-size: 14px; margin-top: 14px; }

/* ---------- Me: travel legs + admin ---------- */
.leg { margin-top: 12px; padding: 12px 14px 14px; border: 2px solid var(--jungle); border-radius: 12px; background: #fff; }
.leg-head { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-stretch: 112%; }
.form .leg label { margin-top: 10px; }
.leg-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.add-leg { margin-top: 12px; }

.day-label {
  display: inline-block;
  margin: 20px 0 6px;
  padding: 2px 10px;
  border: 2px solid var(--jungle);
  border-radius: 6px;
  background: var(--lemon);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 15px;
}
.arr-row { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 0; border-top: 2px dashed rgba(4, 58, 45, 0.2); }
.day-label + .arr-row { border-top: 0; }
.arr-row .t { font-weight: 900; font-stretch: 112%; }
.arr-row .n { font-weight: 800; }
.arr-row .d { font-size: 14px; color: var(--muted); }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--lemon);
  font-size: 12px;
  font-weight: 800;
  vertical-align: 1px;
}
.detail-row { padding: 12px 0; border-top: 2px dashed rgba(4, 58, 45, 0.2); font-size: 15px; }
.detail-row:first-of-type { border-top: 0; }
.detail-row b { display: block; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 2px dashed rgba(4, 58, 45, 0.2); font-weight: 700; }
.check-list li:first-child { border-top: 0; }
.check-list .yes { color: var(--teal); }
.check-list .no { color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 8px; margin-bottom: 6px; }

/* ---------- Notes for Hannah ---------- */
.sealed { text-align: center; padding-top: 8px; }
.envelope { width: min(300px, 88%); height: auto; }
.sealed h2 { margin-top: 18px; font-size: 30px; }
.sealed p { margin-top: 8px; font-weight: 600; }
.clock { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.clock div { min-width: 76px; padding: 8px 10px; border: 2px solid var(--jungle); border-radius: 12px; background: var(--card); }
.clock b { display: block; font-size: 28px; font-weight: 900; font-stretch: 125%; line-height: 1.1; }
.clock span { font-size: 12px; font-weight: 700; }
.postcards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -20px;
  padding: 6px 20px 18px;
  scrollbar-width: none;
}
.postcards::-webkit-scrollbar { display: none; }
.postcard {
  flex: 0 0 86%;
  max-width: 480px;
  min-height: 44vh;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--card) var(--grain);
  border: 2px solid var(--jungle);
  border-top: 16px solid var(--stripe, var(--pink));
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--jungle);
}
.postcard .body { flex: 1; font-size: 19px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.postcard .from { margin-top: 18px; font-weight: 900; font-stretch: 118%; font-size: 19px; }
.pc-count { text-align: center; font-weight: 700; font-size: 14px; }
.offline-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Easter egg toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: 10px 18px;
  border: 2px solid var(--jungle);
  border-radius: 999px;
  background: var(--jungle);
  color: var(--lemon);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(4, 58, 45, 0.35);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.no-nav .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
@media (min-width: 720px) { .toast { bottom: calc(var(--nav-h) + 40px); } }

/* ============================================================
   Easter eggs
   ============================================================ */
:root { --aqua: #4FC9B8; --night: #0B2545; --deep: #061A30; --glow: #9FE7F5; --glow-hi: #BDF4FF; }

/* Golden Girls line under "Day by day"; White Lotus line on boat activities */
.content-sub { margin: -6px 0 14px; font-style: italic; font-weight: 600; color: var(--muted); }
.activity .lotus { margin-top: 8px; font-size: 14px; font-style: italic; font-weight: 600; color: var(--brick); }

/* SATC: unknown signs */
.signs .q { font-weight: 800; color: var(--coral); }
.wonder-q {
  appearance: none; border: 0; background: none; padding: 0 2px; margin: 0;
  font: inherit; font-weight: 800; color: var(--coral);
  text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer;
}
.wonder-line, .wonder-all { font-style: italic; }
.wonder-line { flex-basis: 100%; color: var(--jungle); margin-top: 2px; }

/* Mermaid mode */
body.mermaid[data-section] { --sec: var(--aqua); --sec-ink: var(--jungle); }
body.mermaid #top, body.mermaid .band {
  background-image: radial-gradient(circle at 50% 100%, transparent 8px, rgba(2, 105, 127, 0.18) 9px, transparent 10.5px), var(--grain);
  background-size: 20px 11px, auto;
  background-color: var(--aqua);
}
body.mermaid #nav a[aria-current="page"] { background: var(--aqua); color: var(--jungle); }
body.mermaid .vote-btn[aria-pressed="true"] { background: var(--teal); color: var(--lemon); }
body.mermaid details.day[open] summary { background-color: var(--aqua); color: var(--jungle); }

/* Mermaid pod: aquamarine frame on crew cards */
.crew-photo.pod { border-color: var(--aqua); box-shadow: 4px 4px 0 var(--aqua); }
.sheet-photo.pod::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--aqua); pointer-events: none; }

/* ✨ sticker for bay finders */
.stickers { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 4px; }
.sheet-photo .stickers { right: auto; left: 12px; top: 12px; }
.sticker-mini {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night); border: 2px solid var(--jungle);
  font-size: 18px; line-height: 1; transform: rotate(10deg);
}
.top-right { display: flex; align-items: center; gap: 10px; }
.avatar-link { position: relative; display: inline-block; }

/* Moon button (bay finders) */
.moon-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--jungle); background: var(--night); color: var(--glow-hi); cursor: pointer;
}
.moon-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* The sun and its hints */
.hero { transition: background-color 1.3s ease; }
.hero.dusk { background-color: var(--night); }
.hero-art .sun-g { transform-box: fill-box; transform-origin: center; }
.hero-art .sun-g.setting { animation: sunset 1.3s cubic-bezier(.5, 0, .8, .4) forwards; }
.hero-art .sun-g.moonlit .sun { fill: var(--cream); }
.hero-art .sun-g.wobble { animation: wobble 0.9s ease-in-out; }
@keyframes sunset { to { transform: translateY(150px); } }
@keyframes wobble {
  20% { transform: translateX(-5px) rotate(-4deg); }
  40% { transform: translateX(5px) rotate(4deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.sun-ring { fill: none; stroke: #6FD8F0; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.sun-ring.faint { animation: shimmer 3.5s ease-in-out infinite; }
.sun-ring.pulse { stroke-width: 4; animation: ringpulse 2.4s ease-out infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0; } 50% { opacity: 0.45; } }
@keyframes ringpulse { 0% { opacity: 0.8; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.35); } }
.hint-speck { fill: var(--glow); pointer-events: none; animation: speck 2.8s ease-in-out infinite; }
@keyframes speck { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.bay-psst { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--cobalt); }

/* The bay overlay */
.bay {
  position: fixed; inset: 0; z-index: 80;
  background: var(--deep); color: var(--cream);
  opacity: 0; transition: opacity 1.6s ease;
}
.bay:not(.show) { transition-duration: 0.5s; }
.bay.show { opacity: 1; }
.bay canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.bay-copy {
  position: absolute; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 44px);
  padding: 0 24px; text-align: center; pointer-events: none;
}
.bay-copy h2 { font-size: clamp(34px, 10vw, 58px); line-height: 0.9; text-transform: uppercase; color: var(--glow-hi); }
.bay-copy p { margin-top: 10px; font-weight: 600; color: var(--glow); }
.bay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; pointer-events: auto; }
.bay .btn { background: var(--glow); border-color: var(--glow); color: var(--deep); }
.bay .btn.ghost { background: transparent; border-color: var(--glow-hi); color: var(--glow-hi); }

/* Off the Record page */
body[data-section="bay"] { --sec: var(--night); --sec-ink: var(--glow-hi); background: var(--deep) var(--grain); color: var(--cream); }
body[data-section="bay"] .edge { fill: var(--deep); }
body[data-section="bay"] main { position: relative; z-index: 1; }
body[data-section="bay"] .band { z-index: 1; }
body[data-section="bay"] .card { color: var(--jungle); }
body[data-section="bay"] .empty-box { border-color: var(--glow); color: var(--glow); }
body[data-section="bay"] .sealed p, body[data-section="bay"] .open-note { color: var(--glow); }
.bay-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.moon-big { width: 120px; height: 120px; fill: var(--glow-hi); }
.story + .story { margin-top: 16px; }
.story-body { font-size: 17px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.story-foot b { font-weight: 900; font-stretch: 118%; margin-right: auto; }
.open-note { text-align: center; font-weight: 700; margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  /* Easter eggs: still versions */
  .sun-ring.faint { opacity: 0.35; }
  .sun-ring.pulse { opacity: 0.85; }
  .hint-speck { opacity: 0.85; }
  .bay { transition: opacity 1.5s ease !important; } /* a gentle fade is fine */

  /* Toasts appear in place instead of sliding up. */
  .toast, .toast.show { transform: translate(-50%, 0); }

  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
