/* ============================================================
   TheLittleThings – Modern Redesign
   Clean whites, pink as accent only.
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
  --pink:        #e8609a;
  --pink-light:  #f0a0c4;
  --pink-pale:   #fde8f2;
  --pink-subtle: #fff5f9;
  --bg:          #fafafa;
  --surface:     #ffffff;
  --border:      #f0f0f0;
  --border-md:   #e8e8e8;
  --text:        #1a1a1a;
  --text-2:      #555;
  --text-3:      #999;
  --radius-lg:   22px;
  --radius-md:   14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Loader ────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.loader-butterfly {
  width: 160px;
  height: 128px;
}

/* Draw-on animation per path */
.loader-butterfly .wing {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawWing 1.4s cubic-bezier(.4,0,.2,1) forwards;
}
.loader-butterfly .wing-tl        { animation-delay: 0.0s; }
.loader-butterfly .wing-tl-inner  { animation-delay: 0.2s; stroke-dasharray:200; stroke-dashoffset:200; }
.loader-butterfly .wing-tr        { animation-delay: 0.1s; }
.loader-butterfly .wing-tr-inner  { animation-delay: 0.3s; stroke-dasharray:200; stroke-dashoffset:200; }
.loader-butterfly .wing-bl        { animation-delay: 0.25s; }
.loader-butterfly .wing-bl-inner  { animation-delay: 0.4s; stroke-dasharray:200; stroke-dashoffset:200; }
.loader-butterfly .wing-br        { animation-delay: 0.35s; }
.loader-butterfly .wing-br-inner  { animation-delay: 0.5s; stroke-dasharray:200; stroke-dashoffset:200; }
.loader-butterfly .body           { stroke-dasharray:50; stroke-dashoffset:50; animation-delay:0.6s; animation-duration:0.5s; }
.loader-butterfly .antenna        { stroke-dasharray:80; stroke-dashoffset:80; animation-delay:0.7s; animation-duration:0.4s; }

@keyframes drawWing {
  to { stroke-dashoffset: 0; }
}

/* After draw — gentle float */
.loader-butterfly {
  animation: loaderFloat 2.2s ease-in-out 1.4s infinite;
}
@keyframes loaderFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}

.loader-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: loaderNameFade 0.6s ease 1.2s forwards;
}
@keyframes loaderNameFade {
  to { opacity: 1; }
}

#loader.hide {
  animation: loaderOut 0.5s ease forwards;
}
@keyframes loaderOut {
  to { opacity: 0; pointer-events: none; }
}

/* ── App Shell ─────────────────────────────────────── */
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: 72px;
  isolation: isolate;
}

/* ── Page ──────────────────────────────────────────── */
.page { display: none; animation: pageIn 0.28s ease; }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Wrap ──────────────────────────────────── */
.section-wrap {
  padding: 16px 18px;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

/* ── Page Hero ─────────────────────────────────────── */
.page-hero {
  padding: 52px 22px 20px;
}
.page-hero h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}
.page-hero p {
  font-size: 0.88rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════
   HOME
══════════════════════════════════════════════════ */
.home-top {
  background: linear-gradient(145deg, #e8609a 0%, #f0a0c4 100%);
  border-radius: 0 0 32px 32px;
  padding: calc(56px + env(safe-area-inset-top)) 24px 44px;
  position: relative;
  overflow: hidden;
}
.home-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.home-top-inner {
  position: relative;
  z-index: 1;
}
.home-butterfly-svg {
  width: 120px;
  height: 96px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.85;
  animation: homeButterfly 4s ease-in-out infinite;
}
@keyframes homeButterfly {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-6px) rotate(1deg); }
}
.home-eyebrow {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.home-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}
.home-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 16px 18px 0;
  padding: 18px 8px;
  box-shadow: var(--shadow-md);
}
.stat-pill {
  flex: 1;
  text-align: center;
  padding: 0 8px;
}
.stat-val {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--pink);
  line-height: 1;
}
.stat-lbl {
  display: block;
  font-size: 0.62rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-md);
  flex-shrink: 0;
}

/* Daily card */
.daily-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.daily-quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  color: var(--pink-pale);
  line-height: 0.6;
  position: absolute;
  top: 18px;
  left: 16px;
  user-select: none;
}
.daily-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  position: relative;
  padding-left: 12px;
}

/* Pet teaser */
.pet-teaser-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.pet-teaser-card:active { transform: scale(0.98); }
.pet-teaser-icon { font-size: 2rem; }
.pet-teaser-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.pet-teaser-sub { font-size: 0.78rem; color: var(--text-3); margin-top: 1px; }
.card-arrow {
  width: 20px; height: 20px;
  color: var(--text-3);
  margin-left: auto;
  flex-shrink: 0;
}

/* Quick grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.quick-btn:active { transform: scale(0.96); background: var(--pink-subtle); }
.qb-icon svg, .quick-btn svg {
  width: 22px;
  height: 22px;
  color: var(--pink);
}
.qb-icon {
  font-size: 1.4rem;
  color: var(--pink);
  line-height: 1;
  font-style: normal;
}
.qb-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════════
   LOVE REASONS
══════════════════════════════════════════════════ */
.love-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  text-align: center;
}
.love-badge {
  display: inline-block;
  background: var(--pink-pale);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.love-main-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}
.love-counter {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary:active { opacity: 0.85; transform: scale(0.98); }
.mt-12 { margin-top: 12px; }

.love-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.love-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.love-num-chip {
  background: var(--pink-pale);
  color: var(--pink);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.love-item-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════
   OPEN WHEN
══════════════════════════════════════════════════ */
#ow-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ow-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.ow-icon-wrap {
  width: 44px; height: 44px;
  background: var(--pink-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ow-label { font-size: 0.72rem; color: var(--text-3); font-weight: 500; }
.ow-trigger { font-size: 0.93rem; font-weight: 600; color: var(--text); margin-top: 1px; }
.ow-chevron {
  margin-left: auto;
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.ow-card.open .ow-chevron { transform: rotate(90deg); }

.ow-body {
  display: none;
  padding: 0 18px 18px;
}
.ow-card.open .ow-body { display: block; }
.ow-letter {
  background: var(--bg);
  border-left: 3px solid var(--pink-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.85;
  white-space: pre-line;
  font-style: italic;
}

/* ══════════════════════════════════════════════════
   MEMORIES
══════════════════════════════════════════════════ */
.memory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  animation: pageIn 0.3s ease both;
}

.memory-emoji-wrap {
  flex-shrink: 0;
  padding-top: 2px;
}

.memory-emoji-circle {
  width: 44px;
  height: 44px;
  background: var(--pink-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.memory-content {
  flex: 1;
  min-width: 0;
}

.memory-date {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 4px;
}

.memory-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.memory-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

.memory-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  object-fit: cover;
  max-height: 180px;
  display: block;
}

.memory-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pink-pale);
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 99px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════
   BUCKET LIST
══════════════════════════════════════════════════ */
.progress-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-title { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.progress-count { font-size: 0.78rem; color: var(--text-3); }
.progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: 99px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}

/* Segmented control */
.seg-control {
  display: flex;
  background: var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
}
.seg-btn {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.seg-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.bucket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bucket-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
.bucket-item.done { opacity: 0.45; }
.bucket-item.done .bucket-text { text-decoration: line-through; }
.bucket-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 0.75rem;
}
.bucket-item.done .bucket-check {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.bucket-emoji { font-size: 1.1rem; }
.bucket-text { font-size: 0.875rem; color: var(--text); flex: 1; font-weight: 500; }


/* ══════════════════════════════════════════════════
   LITTLE THINGS
══════════════════════════════════════════════════ */
.lt-group { margin-bottom: 20px; }
.lt-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.lt-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.lt-label { font-size: 0.82rem; color: var(--text-3); }
.lt-value { font-size: 0.875rem; font-weight: 500; color: var(--text); text-align: right; max-width: 58%; }

/* ══════════════════════════════════════════════════
   PET
══════════════════════════════════════════════════ */
.pet-main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pet-big-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.pet-svg {
  width: 140px;
  height: 112px;
  animation: homeButterfly 3s ease-in-out infinite;
}
.pet-stage-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
}
.pet-stage-days {
  font-size: 0.8rem;
  color: var(--text-3);
}

.pet-stage-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.pet-stage-row.current {
  border-color: var(--pink-light);
  background: var(--pink-subtle);
}
.pet-stage-row-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.pet-stage-row-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.pet-stage-row-req  { font-size: 0.72rem; color: var(--text-3); margin-top: 1px; }
.pet-stage-row-info { flex: 1; }
.pet-stage-row-status { font-size: 0.85rem; color: var(--text-3); }
.pet-stage-row.current .pet-stage-row-status { color: var(--pink); }

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px env(safe-area-inset-bottom, 0px);
  padding-bottom: max(env(safe-area-inset-bottom), 8px);
  z-index: 100;
  /* Force GPU layer so iOS doesn't reposition after first paint */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: var(--text-3);
  transition: color 0.18s;
  border-radius: var(--radius-sm);
  min-width: 0;
  position: relative;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.18s;
}

.nav-btn span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.18s;
}

/* Active state: pink icon + filled pill behind icon */
.nav-btn.active { color: var(--pink); }
.nav-btn.active svg { transform: scale(1.08); }
.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 30px;
  background: var(--pink-pale);
  border-radius: 10px;
  z-index: -1;
}

/* Mehr button open state */
#nav-more-btn.open { color: var(--pink); }

/* ── Push Banner ───────────────────────────────── */
#push-banner {
  position: fixed;
  top: max(env(safe-area-inset-top), 12px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
#push-banner p { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.push-banner-btns { display: flex; gap: 8px; }
.push-banner-btns button {
  flex: 1; border: none; border-radius: 10px; padding: 9px 12px;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
#push-banner-allow { background: var(--pink); color: #fff; }
#push-banner-deny  { background: var(--pink-subtle); color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   MEHR BOTTOM SHEET
══════════════════════════════════════════════════ */
#more-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: flex-end;
  justify-content: center;
  animation: overlayIn 0.28s ease forwards;
}
#more-overlay.open { display: flex; }
#more-overlay.closing {
  animation: overlayOut 0.28s ease forwards;
}
#more-overlay.closing #more-sheet {
  animation: sheetDown 0.28s cubic-bezier(.32,0,.67,0) forwards;
}

#more-sheet {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 430px;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  animation: sheetUp 0.28s cubic-bezier(.32,0,.67,0) forwards;
}
@keyframes sheetUp    { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetDown  { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes overlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlayOut { from { opacity: 1; } to { opacity: 0; } }

.more-handle {
  width: 36px; height: 4px;
  background: var(--border-md);
  border-radius: 99px;
  margin: 0 auto 18px;
}

.more-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.more-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.more-item:active { background: var(--pink-pale); border-color: var(--pink-light); transform: scale(0.96); }

.more-icon {
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.more-icon svg {
  width: 18px; height: 18px;
  color: var(--text-2);
}

.more-item span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  line-height: 1.2;
}

.more-version {
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-3);
  margin-top: 14px;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

/* ── Toast ─────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 300;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }

/* ══════════════════════════════════════════════════
   MAP
══════════════════════════════════════════════════ */
#map-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 340px;
}
#map-el {
  width: 100%;
  height: 100%;
}
#map-denied, #map-prompt {
  display: none;
  width: 100%;
  height: 100%;
  background: var(--pink-subtle);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}
.map-denied-inner {
  text-align: center;
  padding: 32px 24px;
}
.map-denied-icon { font-size: 2.4rem; margin-bottom: 12px; }
.map-denied-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.map-denied-sub {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.5;
}
.map-user-dot {
  width: 16px; height: 16px;
  background: var(--pink);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232,96,154,0.3);
}
.map-place-dot {
  width: 20px; height: 20px;
  background: #fff;
  border: 2.5px solid var(--pink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.map-place-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  margin-bottom: 8px;
}
.map-place-emoji { font-size: 1.4rem; line-height: 1; }
.map-place-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.map-place-desc { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
