:root {
  --paper: #FFF5EC;
  --ink: #2A1714;
  --ink-soft: #7A5B55;
  --coral: #FF4F7B;
  --apricot: #FF9A5C;
  --gold: #FFC46B;
  --lilac: #8E6BFF;
  --glass: rgba(255, 255, 255, 0.62);
  --radius: 28px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
a { color: inherit; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 40px rgba(42, 23, 20, 0.12);
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none; color: white;
  background: linear-gradient(90deg, var(--apricot), var(--coral));
  box-shadow: 0 8px 24px rgba(255, 79, 123, 0.35);
}
.button.quiet { color: var(--ink); background: var(--glass); box-shadow: none; border: 1px solid rgba(255,255,255,.8); }

/* Live map page */
#map { position: fixed; inset: 0; background: #cfe3f6; }
.top {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; z-index: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { padding: 12px 18px; border-radius: 24px; }
.brand h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.brand p { margin: 2px 0 0; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.cta { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 500; }
.notice { position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 500;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.pin { width: 46px; height: 58px; border-radius: 10px; border: 3px solid white; background-size: cover; background-position: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; }
.leaflet-popup-content-wrapper { border-radius: 22px; }
.popup { width: 220px; font-family: inherit; }
.popup img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; display: block; }
.popup b { display: block; margin-top: 8px; font-size: 16px; }
.popup span { color: var(--ink-soft); font-weight: 600; font-size: 13px; }

/* Post page */
.post-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px 40px;
  background: radial-gradient(120% 80% at 20% 0%, #FFD3C2 0%, transparent 60%),
              radial-gradient(100% 80% at 100% 100%, #C9D7FF 0%, transparent 60%), var(--paper); }
.card { width: min(460px, 100%); border-radius: 36px; padding: 16px; }
.card .photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 26px; display: block; background: #f3dcd2; }
.card h1 { margin: 16px 6px 4px; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.meta { margin: 0 6px; color: var(--ink-soft); font-weight: 700; }
.suns { margin: 12px 6px 0; font-size: 22px; letter-spacing: 2px; }
.palette { display: flex; height: 30px; border-radius: 12px; overflow: hidden; margin: 14px 6px 0; }
.palette div { flex: 1; }
.reactions { display: flex; gap: 8px; margin: 14px 6px 0; flex-wrap: wrap; }
.reactions span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.7); font-weight: 800; }
.actions { display: grid; gap: 10px; margin: 18px 6px 6px; }
.empty { text-align: center; padding: 40px 20px; }
.empty h1 { font-size: 26px; }
