:root {
  --ink: #4a3f55;
  --ink-soft: #6b5f78;
  --fog: #9a8eaa;
  --paper: #fff7fb;
  --paper-card: #ffffff;
  --blush: #ffd6e7;
  --rose: #ff6b8a;
  --rose-deep: #f25578;
  --sky: #7ec8e3;
  --mint: #7fd4c2;
  --butter: #ffe08a;
  --lilac: #c9b6ff;
  --danger: #e2556a;
  --shadow: 0 18px 40px rgba(255, 107, 138, 0.18);
  --radius: 22px;
  --font-display: "Quicksand", "Zen Maru Gothic", sans-serif;
  --font-body: "Zen Maru Gothic", "Quicksand", sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 45% at 10% 0%, rgba(255, 214, 231, 0.9), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(126, 200, 227, 0.35), transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(255, 224, 138, 0.28), transparent 55%),
    linear-gradient(180deg, #fff7fb 0%, #ffeef6 45%, #f3fbff 100%);
}

.bg-blobs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: floaty 10s ease-in-out infinite alternate;
}
.b1 { width: 180px; height: 180px; background: #ffd6e7; top: 8%; left: -40px; }
.b2 { width: 140px; height: 140px; background: #cdefff; top: 55%; right: -30px; animation-delay: -3s; }
.b3 { width: 100px; height: 100px; background: #ffe9a8; bottom: 12%; left: 20%; animation-delay: -6s; }

.bg-doodles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.doodle {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.35;
  animation: bob 5s ease-in-out infinite;
}
.d1 { top: 12%; right: 8%; }
.d2 { top: 38%; left: 4%; animation-delay: -1.2s; }
.d3 { bottom: 22%; right: 12%; animation-delay: -2.4s; }
.d4 { bottom: 40%; left: 10%; animation-delay: -3.1s; font-size: 1.35rem; }

@keyframes floaty {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-18px) scale(1.05); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hidden { display: none !important; }

/* ——— Onboarding ——— */
#onboarding {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.onboard-card {
  width: min(440px, 100%);
  padding: 2.2rem 1.8rem 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(255, 107, 138, 0.2);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
  text-align: center;
}

.mascot {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(145deg, #ffe4ef, #e8f8ff);
  box-shadow: 0 8px 20px rgba(255, 107, 138, 0.2);
  animation: bob 4s ease-in-out infinite;
}

.brand-mark,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rose);
}

.brand-mark { margin: 0 0 0.25rem; font-size: 1rem; }

.onboard-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 2.8rem);
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.maker-credit {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rose);
  opacity: 0.9;
}

.foot-credit {
  margin: 0;
  width: 100%;
  text-align: center;
  opacity: 0.75;
  font-size: 0.75rem;
  padding-bottom: 0.15rem;
}

.lead, .sub {
  color: var(--fog);
  margin: 0 0 1.25rem;
}

.onboard-card .lead { text-align: center; }
.onboard-card .stack { text-align: left; }

.hint { margin: 0; font-size: 0.82rem; color: var(--fog); min-height: 1.2em; }
.hint.warn { color: var(--rose-deep); }
.hint.ok { color: #3aa88f; }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: #ffe9f1;
}

.mode-btn {
  font: inherit;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--fog);
  background: transparent;
}
.mode-btn.active {
  background: #fff;
  color: var(--rose-deep);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 107, 138, 0.18);
}

.room-pill {
  align-self: flex-start;
  margin-top: 0.35rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  background: #ffe4ef;
  border: 1.5px dashed var(--rose);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
}

.sync-status {
  font-size: 0.78rem;
  color: #3aa88f;
  padding: 0.4rem 0.7rem;
  background: rgba(127, 212, 194, 0.2);
  border-radius: 999px;
}

.stack { display: flex; flex-direction: column; gap: 0.9rem; }

label, .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.field-label { color: var(--ink-soft); }

input[type="text"],
input[type="date"],
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #ffd0e0;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.15);
}
textarea { resize: vertical; }

.name-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: center;
}
.amp {
  font-size: 1.25rem;
  color: var(--rose);
}

.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #ff8fab, #ff6b8a);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 107, 138, 0.35);
}
.btn.ghost {
  background: #fff;
  color: var(--ink-soft);
  border: 1.5px solid #ffd0e0;
}
.btn.danger { color: var(--danger); border-color: rgba(226, 85, 106, 0.4); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ——— App shell ——— */
#app {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.2rem 1.05rem 5.5rem;
  animation: rise 0.55s ease both;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 182, 203, 0.55);
  box-shadow: 0 10px 28px rgba(255, 107, 138, 0.1);
}

.brand { display: flex; flex-direction: column; gap: 0.12rem; }
.brand-name { font-size: 1.35rem; }
.couple-names { color: var(--fog); font-size: 0.92rem; }

.tabs { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tab {
  font: inherit;
  font-size: 0.86rem;
  color: var(--fog);
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}
.tab:hover { color: var(--rose-deep); background: #fff0f5; }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff8fab, #ff6b8a);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(255, 107, 138, 0.28);
}

.view { display: none; animation: rise 0.4s ease both; }
.view.active { display: block; }

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #ffe9f2);
  border: 1.5px solid #ffd0e0;
  box-shadow: var(--shadow);
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--rose);
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.hero-copy h2,
.roulette-wrap h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.stat-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.stat-chip {
  padding: 1rem 0.85rem;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid #ffe0ec;
  box-shadow: 0 8px 18px rgba(255, 107, 138, 0.08);
  text-align: center;
}
.stat-chip .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}
.stat-chip .lbl {
  font-size: 0.78rem;
  color: var(--fog);
  margin-top: 0.35rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.section-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.linkish {
  font: inherit;
  color: var(--rose);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.filters select { padding: 0.4rem 0.65rem; font-size: 0.85rem; }

.stamp-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 200px);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.stamp-card,
.album-card {
  scroll-snap-align: start;
  position: relative;
  padding: 1.1rem;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid #ffd6e5;
  box-shadow: 0 10px 22px rgba(255, 107, 138, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s;
  min-height: 140px;
}
.stamp-card:hover,
.album-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 16px 28px rgba(255, 107, 138, 0.18);
}
.stamp-card.wishlist,
.album-card.wishlist {
  background: linear-gradient(160deg, #f0f8ff, #fff);
  border-style: dashed;
  border-color: var(--sky);
}

.stamp-seal-mark {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2.5px solid var(--rose);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: rotate(12deg);
  background: rgba(255, 214, 231, 0.55);
  box-shadow: inset 0 0 0 3px rgba(255, 107, 138, 0.15);
  animation: bob 6s ease-in-out infinite;
}

.card-cuisine { font-size: 0.75rem; color: var(--sky); margin: 0 0 0.3rem; font-weight: 700; }
.card-name { margin: 0 0 0.45rem; font-size: 1.05rem; font-weight: 700; padding-right: 2.5rem; }
.card-meta { font-size: 0.8rem; color: var(--fog); }
.stars-inline { color: #f0b429; letter-spacing: 0.04em; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}

.empty {
  text-align: center;
  color: var(--fog);
  padding: 2.5rem 1rem;
}

/* ——— Map ——— */
.map-missing {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.map-missing-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  background: #fff;
  border: 1.5px dashed #ffb3c7;
}
.map-missing-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.map-missing-item strong { color: var(--ink); }
.map-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #ffd0e0;
  box-shadow: var(--shadow);
  background: #fff;
}
.food-map {
  width: 100%;
  height: min(62vh, 520px);
  min-height: 320px;
  background: #eef8ff;
}
.map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  margin: 0;
  background: rgba(255, 247, 251, 0.82);
  color: var(--ink-soft);
  font-weight: 500;
  z-index: 400;
  pointer-events: none;
}

.cute-marker { background: transparent; border: none; }
.map-pin {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin, #ff6b8a);
  box-shadow: 0 6px 14px rgba(255, 107, 138, 0.35);
  display: grid;
  place-items: center;
}
.map-pin span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
}
.map-popup { font-family: var(--font-body); min-width: 140px; }
.map-popup strong { color: var(--ink); }
.map-popup-addr { color: var(--fog); font-size: 0.8rem; margin: 0.25rem 0 0.5rem; }
.map-popup-btn {
  font: inherit;
  font-size: 0.8rem;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: linear-gradient(135deg, #ff8fab, #ff6b8a);
  color: #fff;
  cursor: pointer;
}
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  border: 1.5px solid #ffd0e0;
  box-shadow: 0 10px 24px rgba(255, 107, 138, 0.2) !important;
}

/* ——— Roulette ——— */
.roulette-wrap {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}
.wheel-stage {
  position: relative;
  margin: 1.6rem auto;
  width: min(300px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.wheel-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 171, 0.4), transparent 65%);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}
.wheel-result {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px dashed #ff8fab;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  box-shadow: inset 0 0 0 8px #ffe4ef;
}
.wheel-result.spinning { animation: spin-blur 0.12s linear infinite; }
@keyframes spin-blur { to { transform: rotate(20deg); } }
.wheel-placeholder { color: var(--fog); }
.wheel-pick-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
  font-weight: 700;
}
.wheel-pick-meta { color: var(--fog); font-size: 0.9rem; }
.roulette-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--fog);
}

/* ——— Badges ——— */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.85rem;
}
.badge {
  padding: 1.1rem;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid #ffe0ec;
  opacity: 0.45;
  filter: grayscale(0.55);
  transition: 0.3s;
}
.badge.unlocked {
  opacity: 1;
  filter: none;
  border-color: #ffb3c7;
  background: linear-gradient(145deg, #fff7fb, #ffe9f2);
  box-shadow: 0 10px 20px rgba(255, 107, 138, 0.12);
  transform: translateY(-2px);
}
.badge-icon { font-size: 1.55rem; margin-bottom: 0.35rem; }
.badge h4 { margin: 0 0 0.3rem; font-size: 1rem; }
.badge p { margin: 0; font-size: 0.82rem; color: var(--fog); }

/* ——— Footer ——— */
.foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(255, 247, 251, 0.95) 35%);
  backdrop-filter: blur(8px);
}
.ghost, .as-btn {
  font: inherit;
  font-size: 0.8rem;
  color: var(--fog);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.65rem;
}
.ghost:hover, .as-btn:hover { color: var(--rose-deep); }

/* ——— Modals ——— */
dialog {
  border: none;
  padding: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  max-width: min(480px, calc(100vw - 2rem));
  width: 100%;
}
dialog::backdrop {
  background: rgba(74, 63, 85, 0.35);
  backdrop-filter: blur(4px);
}
.modal {
  background: #fff;
  border: 2px solid #ffd0e0;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem 0.4rem;
}
.modal header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.icon-close {
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--fog);
  background: #fff0f5;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.modal-body { padding: 0.7rem 1.25rem 1rem; }
.modal-foot {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 1.25rem 1.15rem;
}
.spacer { flex: 1; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stars { display: flex; gap: 0.3rem; }
.star-btn {
  font-size: 1.55rem;
  color: rgba(240, 180, 41, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, transform 0.15s;
}
.star-btn.on { color: #f0b429; }
.star-btn:hover { transform: scale(1.14); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid #ffd0e0;
  background: #fff;
  color: var(--fog);
  cursor: pointer;
}
.chip.on {
  background: #ffe4ef;
  border-color: var(--rose);
  color: var(--rose-deep);
}

.detail-mood {
  display: inline-block;
  margin: 0.5rem 0.35rem 0.5rem 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ffe4ef;
  color: var(--rose-deep);
  font-size: 0.8rem;
}
.detail-note {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: #fff5f8;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.photo-preview,
.detail-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.photo-thumb,
.detail-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1.5px solid #ffd0e0;
  background: #fff5f8;
}

.photo-slot {
  position: relative;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rose-deep);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.photo-add {
  align-self: flex-start;
  display: inline-flex;
  cursor: pointer;
}

.card-cover {
  width: calc(100% + 2.2rem);
  margin: -1.1rem -1.1rem 0.7rem;
  height: 96px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  display: block;
}

.detail-photos img { cursor: zoom-in; }

#photo-lightbox {
  max-width: min(92vw, 720px);
  background: transparent;
}

.lightbox {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  padding: 2.6rem 0.8rem 0.8rem;
  border: 2px solid #ffd0e0;
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
}

.lightbox .icon-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
}

/* ——— Toast & stamp FX ——— */
.toast {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  border: 1.5px solid #ffb3c7;
  color: var(--ink);
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stamp-fx {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
}
.stamp-fx.play { animation: fx-fade 0.9s ease forwards; }
.stamp-seal {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--rose);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 6px rgba(255, 107, 138, 0.2);
  transform: scale(2.2) rotate(-18deg);
}
.stamp-fx.play .stamp-seal {
  animation: stamp-hit 0.55s cubic-bezier(0.2, 1.4, 0.3, 1) forwards;
}
@keyframes stamp-hit {
  0% { transform: scale(2.2) rotate(-18deg); opacity: 0; }
  55% { transform: scale(0.92) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(6deg); opacity: 1; }
}
@keyframes fx-fade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 560px) {
  .stat-rail { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  .hero-panel { flex-direction: column; align-items: stretch; }
  .food-map { height: 55vh; min-height: 280px; }
}
