/* ── Kid Mode: My Adventures ────────────────────────────────────────────────
   Purpose-built child experience for the #vacation page (Kid Mode only).
   Premium iOS polish: lavender/indigo gradients, layered depth, soft glass,
   large touch targets, restrained motion. Parent Adventures styles live in
   adventures.css and are untouched. */

.kidadv-root {
  --kidadv-radius: 22px;
  --kidadv-radius-sm: 14px;
  --kidadv-ink: var(--text-primary, #241a4e);
  --kidadv-ink-soft: var(--text-secondary, #5b5480);
  --kidadv-card-bg: var(--card-bg, #ffffff);
  --kidadv-line: rgba(124, 108, 255, 0.16);
  --kidadv-shadow: 0 10px 30px rgba(76, 56, 180, 0.12), 0 2px 8px rgba(76, 56, 180, 0.08);
  --kidadv-grad: linear-gradient(135deg, #8b7cf8 0%, #6c63ff 55%, #4f46e5 100%);
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--kidadv-ink);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.kidadv-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 28px;
  padding: 28px 30px;
  margin-bottom: 22px;
  background:
    radial-gradient(1200px 420px at 85% -40%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #2e2372 0%, #4c3ab8 45%, #7c6cf0 100%);
  box-shadow: 0 18px 44px rgba(46, 35, 114, 0.35);
  overflow: hidden;
  color: #fff;
}
.kidadv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 12% 22%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(2px 2px at 32% 68%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(3px 3px at 58% 18%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(2px 2px at 78% 55%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(2px 2px at 92% 30%, rgba(255,255,255,.8), transparent 60%);
  pointer-events: none;
}
.kidadv-hero-copy { position: relative; z-index: 1; flex: 1 1 320px; min-width: 0; }
.kidadv-hero-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.kidadv-hero-title {
  margin: 0 0 8px;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(30, 20, 90, 0.35);
  overflow-wrap: break-word;
}
.kidadv-hero-sub {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}
.kidadv-hero-greet {
  margin: 0;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kidadv-hero-art-wrap {
  position: relative;
  z-index: 1;
  flex: 0 1 340px;
  min-width: 220px;
  aspect-ratio: 52 / 33;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kidadv-hero-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(20, 12, 70, 0.4));
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.kidadv-section { margin-bottom: 26px; }
.kidadv-section-title {
  font-size: 19px;
  font-weight: 850;
  margin: 0 0 12px;
  color: var(--kidadv-ink);
}

/* ── Featured "Coming Up" card ────────────────────────────────────────────── */
.kidadv-featured {
  display: flex;
  gap: 0;
  border-radius: var(--kidadv-radius);
  background: var(--kidadv-card-bg);
  border: 1.5px solid var(--kidadv-line);
  box-shadow: var(--kidadv-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.kidadv-featured:hover,
.kidadv-featured:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(76, 56, 180, 0.2);
  border-color: rgba(124, 108, 255, 0.4);
}
.kidadv-featured:focus-visible { outline: 3px solid #6c63ff; outline-offset: 2px; }
.kidadv-featured--active { border-color: rgba(167, 139, 250, 0.65); }
.kidadv-featured--active .kidadv-cover::after {
  content: '✨';
  position: absolute;
  top: 10px; right: 12px;
  font-size: 20px;
  animation: kidadv-twinkle 2.6s ease-in-out infinite;
}
.kidadv-featured-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.kidadv-featured-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  overflow-wrap: break-word;
  max-width: 100%;
}
.kidadv-featured-dest,
.kidadv-featured-dates { margin: 0; font-size: 14px; font-weight: 650; color: var(--kidadv-ink-soft); overflow-wrap: break-word; max-width: 100%; }

/* ── Cover art ────────────────────────────────────────────────────────────── */
.kidadv-cover {
  position: relative;
  flex: 0 0 240px;
  min-height: 150px;
  overflow: hidden;
}
.kidadv-cover--tall { flex-basis: 320px; min-height: 220px; }
.kidadv-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kidadv-cover-art {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.kidadv-cover-emoji { font-size: 54px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.22)); }
.kidadv-cover-spark {
  position: absolute; top: 18%; left: 20%;
  font-size: 15px; color: rgba(255,255,255,.9);
}
.kidadv-cover-spark--2 { top: 68%; left: 74%; font-size: 12px; }

/* ── Status badges ────────────────────────────────────────────────────────── */
.kidadv-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.kidadv-badge--upcoming { background: rgba(108, 99, 255, 0.14); color: #5b50e6; }
.kidadv-badge--active   { background: linear-gradient(90deg, #f0abfc, #a78bfa); color: #3b0764; }
.kidadv-badge--done     { background: rgba(251, 191, 36, 0.18); color: #92610a; }

/* ── Avatars ─────────────────────────────────────────────────────────────── */
.kidadv-avatars { display: flex; align-items: center; }
.kidadv-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--kidadv-card-bg);
  margin-left: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  color: #fff; font-weight: 800; font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.kidadv-avatar:first-child { margin-left: 0; }
.kidadv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kidadv-avatar--emoji { background: #ede9fe; font-size: 18px; }
.kidadv-avatar--more { background: #e0e7ff; color: #4f46e5; font-size: 12px; }

/* ── Packing mini progress ────────────────────────────────────────────────── */
.kidadv-pack-mini { width: 100%; max-width: 340px; }
.kidadv-pack-mini-label { font-size: 13px; font-weight: 750; color: var(--kidadv-ink-soft); }
.kidadv-pack-mini-track {
  margin-top: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.14);
  overflow: hidden;
}
.kidadv-pack-mini-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--kidadv-grad);
  transition: width 300ms ease;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.kidadv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--kidadv-line);
  background: var(--kidadv-card-bg);
  color: var(--kidadv-ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.kidadv-btn--primary {
  background: var(--kidadv-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
}
.kidadv-btn:active { transform: scale(0.97); }

/* ── Adventure card grid ─────────────────────────────────────────────────── */
.kidadv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.kidadv-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--kidadv-radius);
  background: var(--kidadv-card-bg);
  border: 1.5px solid var(--kidadv-line);
  box-shadow: var(--kidadv-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.kidadv-card:hover,
.kidadv-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(76, 56, 180, 0.2);
  border-color: rgba(124, 108, 255, 0.4);
}
.kidadv-card:focus-visible { outline: 3px solid #6c63ff; outline-offset: 2px; }
.kidadv-card .kidadv-cover { flex: 0 0 auto; height: 150px; }
.kidadv-card--completed .kidadv-cover { filter: saturate(0.85); }
.kidadv-card--completed { background: linear-gradient(180deg, rgba(251, 243, 219, 0.55), var(--kidadv-card-bg) 55%); }
.kidadv-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.kidadv-card-title { margin: 0; font-size: 18px; font-weight: 850; overflow-wrap: break-word; max-width: 100%; }
.kidadv-card-dest,
.kidadv-card-dates,
.kidadv-card-memories { margin: 0; font-size: 13px; font-weight: 650; color: var(--kidadv-ink-soft); overflow-wrap: break-word; max-width: 100%; }
.kidadv-card-cta {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 850;
  color: #5b50e6;
}
.kidadv-card--skeleton {
  min-height: 280px;
  background: linear-gradient(100deg, rgba(124,108,255,.08) 30%, rgba(124,108,255,.16) 50%, rgba(124,108,255,.08) 70%);
  background-size: 200% 100%;
  animation: kidadv-shimmer 1.4s ease-in-out infinite;
  cursor: default;
}

/* ── Empty states ─────────────────────────────────────────────────────────── */
.kidadv-empty {
  text-align: center;
  padding: 48px 24px 54px;
  border-radius: var(--kidadv-radius);
  background: var(--kidadv-card-bg);
  border: 1.5px dashed rgba(124, 108, 255, 0.35);
}
.kidadv-empty-art { position: relative; display: inline-block; font-size: 54px; margin-bottom: 12px; }
.kidadv-empty-cloud { position: absolute; left: -34px; top: -8px; font-size: 26px; opacity: .8; }
.kidadv-empty-star  { position: absolute; right: -30px; top: -4px; font-size: 22px; }
.kidadv-empty-title { margin: 0 0 8px; font-size: 21px; font-weight: 900; }
.kidadv-empty-body  { margin: 0 auto 16px; font-size: 14.5px; line-height: 1.55; color: var(--kidadv-ink-soft); max-width: 46ch; }

.kidadv-inline-empty {
  padding: 16px 18px;
  border-radius: var(--kidadv-radius-sm);
  background: rgba(124, 108, 255, 0.07);
  font-size: 14px;
}
.kidadv-inline-empty p { margin: 0 0 4px; }
.kidadv-inline-empty p:last-child { margin-bottom: 0; color: var(--kidadv-ink-soft); }

/* ── Detail view ─────────────────────────────────────────────────────────── */
.kidadv-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--kidadv-line);
  background: var(--kidadv-card-bg);
  color: #5b50e6;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.kidadv-detail-hero {
  display: flex;
  border-radius: var(--kidadv-radius);
  background: var(--kidadv-card-bg);
  border: 1.5px solid var(--kidadv-line);
  box-shadow: var(--kidadv-shadow);
  overflow: hidden;
  margin-bottom: 18px;
}
.kidadv-detail-hero-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.kidadv-detail-title { margin: 0; font-size: 27px; font-weight: 900; overflow-wrap: break-word; max-width: 100%; }
.kidadv-detail-dest,
.kidadv-detail-dates { margin: 0; font-size: 14.5px; color: var(--kidadv-ink-soft); overflow-wrap: break-word; max-width: 100%; }
.kidadv-detail-desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; }

.kidadv-detail-card {
  border-radius: var(--kidadv-radius);
  background: var(--kidadv-card-bg);
  border: 1.5px solid var(--kidadv-line);
  box-shadow: var(--kidadv-shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.kidadv-detail-heading { margin: 0 0 14px; font-size: 18px; font-weight: 850; }

/* Who's coming */
.kidadv-who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kidadv-who-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.08);
}
.kidadv-who-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  color: #fff; font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.kidadv-who-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kidadv-who-name { font-size: 14px; font-weight: 750; }
.kidadv-who-tag {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px;
  background: #ddd6fe; color: #5b21b6;
}

/* Packing */
.kidadv-pack-progress-line { font-size: 14px; margin-bottom: 12px; }
.kidadv-pack-group-title { margin: 14px 0 8px; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: var(--kidadv-ink-soft); }
.kidadv-pack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kidadv-pack-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--kidadv-radius-sm);
  background: rgba(124, 108, 255, 0.06);
  transition: background 180ms ease;
}
.kidadv-pack-row.is-packed { background: rgba(52, 211, 153, 0.12); }
.kidadv-pack-check {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: none;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.kidadv-pack-check-box {
  width: 28px; height: 28px;
  border-radius: 10px;
  border: 2.5px solid #a5b4fc;
  background: var(--kidadv-card-bg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900; color: #fff;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.kidadv-pack-check.is-packed .kidadv-pack-check-box {
  background: linear-gradient(135deg, #34d399, #10b981);
  border-color: #10b981;
  transform: scale(1.05);
}
.kidadv-pack-readonly {
  width: 44px; text-align: center; font-size: 18px; font-weight: 900; color: #a5b4fc; flex-shrink: 0;
}
.kidadv-pack-row.is-packed .kidadv-pack-readonly { color: #10b981; }
.kidadv-pack-icon { font-size: 20px; flex-shrink: 0; }
.kidadv-pack-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kidadv-pack-name { font-size: 15px; font-weight: 750; overflow-wrap: break-word; }
.kidadv-pack-name em.kidadv-pack-qty { font-style: normal; font-weight: 650; color: var(--kidadv-ink-soft); }
.kidadv-pack-note { font-size: 12.5px; color: var(--kidadv-ink-soft); }
.kidadv-pack-status { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--kidadv-ink-soft); flex-shrink: 0; }
.kidadv-pack-row.is-packed .kidadv-pack-status { color: #059669; }

/* Plans / itinerary */
.kidadv-plan-list { list-style: none; margin: 0; padding: 0; position: relative; }
.kidadv-plan-row { display: flex; gap: 14px; padding: 10px 0; }
.kidadv-plan-dot {
  width: 12px; height: 12px; border-radius: 50%;
  margin-top: 5px;
  background: var(--kidadv-grad);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.16);
  flex-shrink: 0;
}
.kidadv-plan-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kidadv-plan-title { font-size: 15px; font-weight: 800; overflow-wrap: break-word; }
.kidadv-plan-when, .kidadv-plan-where { font-size: 13px; color: var(--kidadv-ink-soft); }

/* Memories */
.kidadv-add-memory {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--kidadv-radius-sm);
  border: 1.5px dashed rgba(124, 108, 255, 0.5);
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.16), rgba(129, 140, 248, 0.12));
  cursor: pointer;
  text-align: left;
  color: var(--kidadv-ink);
  transition: transform 180ms ease, border-color 180ms ease;
}
.kidadv-add-memory:hover { transform: translateY(-2px); border-color: #8b7cf8; }
.kidadv-add-memory-icon { font-size: 28px; }
.kidadv-add-memory-copy { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.kidadv-add-memory-copy strong { font-size: 15.5px; }
.kidadv-add-memory-copy span { color: var(--kidadv-ink-soft); }

.kidadv-memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.kidadv-memory-card {
  margin: 0;
  border-radius: var(--kidadv-radius-sm);
  border: 1.5px solid var(--kidadv-line);
  background: var(--kidadv-card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.kidadv-memory-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.kidadv-memory-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kidadv-memory-noimg {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  background: linear-gradient(135deg, rgba(196,181,253,.25), rgba(129,140,248,.2));
}
.kidadv-memory-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; }
.kidadv-memory-title { font-size: 14px; font-weight: 800; overflow-wrap: break-word; }
.kidadv-memory-caption { font-size: 13px; line-height: 1.45; color: var(--kidadv-ink-soft); overflow-wrap: break-word; }
.kidadv-memory-meta { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.kidadv-memory-avatar {
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ede9fe; font-size: 12px; font-weight: 800; color: #6d28d9;
  flex-shrink: 0;
}
.kidadv-memory-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kidadv-memory-by { font-size: 12px; font-weight: 700; color: var(--kidadv-ink-soft); }
.kidadv-memory-actions { display: flex; gap: 8px; margin-top: 4px; }
.kidadv-mini-btn {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--kidadv-line);
  background: transparent;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--kidadv-ink);
  cursor: pointer;
}
.kidadv-mini-btn--danger { color: #dc2626; border-color: rgba(220, 38, 38, 0.3); }

/* ── Memory modal ─────────────────────────────────────────────────────────── */
.kidadv-modal-backdrop {
  position: fixed; inset: 0; z-index: 2600;
  background: rgba(30, 20, 80, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.kidadv-modal {
  width: 100%; max-width: 430px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--card-bg, #fff);
  color: var(--text-primary, #241a4e);
  box-shadow: 0 24px 60px rgba(20, 12, 70, 0.4);
}
.kidadv-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 6px;
}
.kidadv-modal-header h2 { margin: 0; font-size: 19px; font-weight: 900; }
.kidadv-modal-close {
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(124, 108, 255, 0.1);
  font-size: 15px; cursor: pointer; color: inherit;
}
.kidadv-modal-body { padding: 12px 20px; display: flex; flex-direction: column; gap: 14px; }
.kidadv-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 750; }
.kidadv-field em { font-style: normal; font-weight: 500; color: var(--text-secondary, #777); }
.kidadv-field input[type="text"],
.kidadv-field textarea,
.kidadv-field input[type="file"] {
  border: 1.5px solid rgba(124, 108, 255, 0.3);
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg, #fff);
  color: inherit;
}
.kidadv-field textarea { resize: vertical; min-height: 76px; }
.kidadv-upload-status { min-height: 18px; font-size: 13px; font-weight: 700; color: #5b50e6; }
.kidadv-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 8px 20px 20px;
}

/* ── Dark theme ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .kidadv-root {
  --kidadv-ink: var(--text-primary, #efedff);
  --kidadv-ink-soft: var(--text-secondary, #b6b0d8);
  --kidadv-card-bg: var(--card-bg, #221c44);
  --kidadv-line: rgba(148, 132, 255, 0.28);
  --kidadv-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .kidadv-badge--upcoming { background: rgba(139, 124, 248, 0.24); color: #c4b5fd; }
[data-theme="dark"] .kidadv-badge--done { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
[data-theme="dark"] .kidadv-card--completed { background: var(--kidadv-card-bg); }
[data-theme="dark"] .kidadv-pack-check-box { background: transparent; }
[data-theme="dark"] .kidadv-card-cta,
[data-theme="dark"] .kidadv-back,
[data-theme="dark"] .kidadv-upload-status { color: #a99cff; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .kidadv-hero { flex-direction: column-reverse; text-align: left; padding: 22px 20px; }
  .kidadv-hero-art-wrap { flex-basis: auto; width: min(74%, 320px); min-width: 0; }
  .kidadv-featured { flex-direction: column; }
  .kidadv-featured .kidadv-cover--tall { flex-basis: auto; height: 190px; }
  .kidadv-detail-hero { flex-direction: column; }
  .kidadv-detail-hero .kidadv-cover--tall { flex-basis: auto; height: 180px; }
}
@media (max-width: 560px) {
  .kidadv-root { padding: 8px 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .kidadv-grid { grid-template-columns: 1fr; }
  .kidadv-btn { width: 100%; }
  .kidadv-pack-status { display: none; }
  .kidadv-pack-row.is-packed .kidadv-pack-name { text-decoration: line-through; text-decoration-color: rgba(16, 185, 129, 0.6); }
}

/* ── Motion ───────────────────────────────────────────────────────────────── */
@keyframes kidadv-twinkle {
  0%, 100% { opacity: .5; transform: scale(.92); }
  50%      { opacity: 1;  transform: scale(1.08); }
}
@keyframes kidadv-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kidadv-root *, .kidadv-modal, .kidadv-modal-backdrop {
    animation: none !important;
    transition: none !important;
  }
  .kidadv-card:hover, .kidadv-featured:hover, .kidadv-add-memory:hover { transform: none; }
}
