/* ───────────── Tokens ───────────── */
:root {
  --bg: #fff7f4;
  --bg-2: #fff0f0;
  --surface: #ffffff;
  --ink: #3d2b33;
  --ink-2: #6f5964;
  --muted: #a08b95;
  --line: #f3e3e6;
  --pink: #ff6f91;
  --pink-ink: #e2456d;
  --pink-soft: #ffe1e8;
  --peach: #ffe9dc;
  --lav: #eee7ff;
  --mint: #ddf6ea;
  --sky: #e1f0ff;
  --lemon: #fff4c9;
  --green: #36b37e;
  --shadow: 0 2px 6px rgba(205, 120, 140, .08), 0 10px 30px rgba(205, 120, 140, .12);
  --shadow-lg: 0 20px 60px rgba(120, 50, 70, .22);
  --r: 22px;
  --r-sm: 14px;
  --font-h: 'Twemoji Country Flags', 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font: 'Twemoji Country Flags', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sidebar: 248px;
  --tabbar: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1418;
    --bg-2: #241a1f;
    --surface: #2a1f25;
    --ink: #fdeef3;
    --ink-2: #d9c3cc;
    --muted: #a48e98;
    --line: #3b2d34;
    --pink: #ff7d9c;
    --pink-ink: #ff9bb3;
    --pink-soft: #4a2733;
    --peach: #43302a;
    --lav: #352d4a;
    --mint: #233b31;
    --sky: #22323f;
    --lemon: #403820;
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1418;
  --bg-2: #241a1f;
  --surface: #2a1f25;
  --ink: #fdeef3;
  --ink-2: #d9c3cc;
  --muted: #a48e98;
  --line: #3b2d34;
  --pink: #ff7d9c;
  --pink-ink: #ff9bb3;
  --pink-soft: #4a2733;
  --peach: #43302a;
  --lav: #352d4a;
  --mint: #233b31;
  --sky: #22323f;
  --lemon: #403820;
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, var(--bg-2) 0, transparent 40%), radial-gradient(circle at 100% 30%, var(--bg-2) 0, transparent 35%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 600; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 10px; }
svg { display: block; }

/* ───────────── Layout ───────────── */
.app { min-height: 100dvh; }
main { padding: 12px 16px calc(var(--tabbar) + var(--safe-b) + 28px); max-width: 1400px; margin: 0 auto; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar .brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-h); font-size: 22px; }
.topbar .brand b { font-weight: 700; color: var(--pink-ink); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(205, 120, 140, .08);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.tabbar a svg, .side-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--pink-ink); }
.tabbar a.active svg { fill: var(--pink-soft); }
.tab-shoot i {
  display: grid; place-items: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%;
  background: linear-gradient(135deg, #ff8fab, #ff6f91 55%, #ff9a76); color: #fff;
  box-shadow: 0 8px 20px rgba(255, 111, 145, .45), 0 0 0 5px var(--bg);
}
.tab-shoot i svg { width: 28px; height: 28px; stroke: #fff; }

.sidebar { display: none; }

@media (min-width: 900px) {
  .topbar, .tabbar { display: none; }
  .app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  main { padding: 28px 36px 48px; width: 100%; }
  .sidebar {
    display: flex; flex-direction: column; gap: 18px;
    position: sticky; top: 0; height: 100dvh; padding: 24px 16px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 70%, transparent);
  }
  .sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 8px; }
  .sidebar .brand span { display: flex; flex-direction: column; line-height: 1.1; }
  .sidebar .brand b { font-family: var(--font-h); font-size: 26px; color: var(--pink-ink); }
  .sidebar .brand small { color: var(--muted); font-weight: 700; font-size: 12px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-weight: 700; color: var(--ink-2); transition: background .15s, color .15s; }
  .side-nav a:hover { background: var(--pink-soft); color: var(--pink-ink); }
  .side-nav a.active { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(255, 111, 145, .35); }
  .side-nav a.active svg { stroke: #fff; }
  .side-card { margin-top: auto; }
}
@media (min-width: 1500px) { :root { --sidebar: 280px; } }

/* ───────────── Common bits ───────────── */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 16px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--pink-ink); }
.hero p { color: var(--ink-2); font-weight: 600; margin-top: 4px; }
.eyebrow { font-size: 13px; font-weight: 800; color: var(--pink-ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--surface); box-shadow: var(--shadow); white-space: nowrap;
  transition: transform .12s ease, box-shadow .15s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(135deg, #ff8fab, #ff6f91); color: #fff; box-shadow: 0 8px 20px rgba(255, 111, 145, .35); }
.btn.ghost { background: var(--pink-soft); color: var(--pink-ink); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 10px; }
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }
}
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface); color: var(--ink-2); border: 1.5px solid var(--line);
  transition: all .15s; scroll-snap-align: start;
}
.chip:hover { border-color: var(--pink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .6; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 21px; }
.muted { color: var(--muted); }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); background: var(--surface); border-radius: var(--r); border: 2px dashed var(--line); }
.empty .big { font-size: 44px; margin-bottom: 6px; }
.empty b { display: block; font-family: var(--font-h); font-size: 19px; color: var(--ink); margin-bottom: 4px; }

.search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  background: var(--surface); border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: var(--shadow);
  border: 1.5px solid transparent;
}
.search:focus-within { border-color: var(--pink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 9px 0; font-weight: 600; }
.search input::placeholder { color: var(--muted); }

.bg-pink { background: var(--pink-soft); }
.bg-peach { background: var(--peach); }
.bg-lav { background: var(--lav); }
.bg-mint { background: var(--mint); }
.bg-sky { background: var(--sky); }
.bg-lemon { background: var(--lemon); }

/* ───────────── Poses ───────────── */
.ppl {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px;
}
.ppl button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 4px 10px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  font-weight: 800; font-size: 13px; color: var(--ink-2); border: 2px solid transparent; transition: all .15s;
}
.ppl button:hover { transform: translateY(-2px); }
.ppl button.on { border-color: var(--pink); color: var(--pink-ink); background: var(--pink-soft); }
.ppl .heads { display: flex; height: 22px; align-items: center; }
.ppl .heads i { width: 16px; height: 16px; border-radius: 50%; margin-left: -5px; border: 2px solid var(--surface); }
.ppl .heads i:first-child { margin-left: 0; }
.ppl button.on .heads i { border-color: var(--pink-soft); }
.ppl .lbl-n { font-family: var(--font-h); font-size: 18px; line-height: 1; color: var(--ink); }
@media (max-width: 420px) { .ppl { grid-template-columns: repeat(3, 1fr); } }

.pose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .pose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pose-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1500px) { .pose-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard {
  position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s; cursor: pointer;
  animation: pop .35s ease both;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard:active { transform: scale(.98); }
.pcard-art { display: block; width: 100%; aspect-ratio: 1 / .93; padding: 6px 6px 0; }
.pcard-art svg { width: 100%; height: 100%; }
.pcard-body { padding: 10px 12px 12px; }
.pcard h3 { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); font-size: 18px; transition: transform .15s;
}
.fav:active { transform: scale(.85); }
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--pink-ink); stroke-width: 2; }
.fav.on svg { fill: var(--pink); stroke: var(--pink); animation: beat .4s ease; }
.badge-ppl { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.badge-done { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--green); color: #fff; }

.dice { font-size: 15px; }

/* ───────────── Spots ───────────── */
.spot-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); flex: none; }
.seg button { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.seg button.on { background: var(--pink); color: #fff; }
.icon-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); font-size: 19px; }
.icon-btn.on { background: var(--pink); color: #fff; }

.spots-split { display: block; }
.spot-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
@media (min-width: 640px) and (max-width: 899px) { .spot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-wrap { display: none; }
.spots-split.show-map .spot-list { display: none; }
.spots-split.show-map .map-wrap { display: block; height: calc(100dvh - 300px); min-height: 360px; }
@media (min-width: 900px) {
  .spot-tools .seg { display: none; }
  .spots-split, .spots-split.show-map { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 20px; align-items: start; }
  .spots-split .spot-list, .spots-split.show-map .spot-list { display: grid; }
  .spots-split .map-wrap, .spots-split.show-map .map-wrap { display: block; position: sticky; top: 24px; height: calc(100dvh - 48px); }
}
@media (min-width: 1400px) { .spots-split, .spots-split.show-map { grid-template-columns: 480px 1fr; } }
#map { width: 100%; height: 100%; border-radius: var(--r); box-shadow: var(--shadow); background: var(--sky); z-index: 0; }

.scard {
  display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface);
  border-radius: 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s, box-shadow .15s;
  animation: pop .3s ease both; border: 2px solid transparent;
}
.scard:hover { transform: translateY(-2px); }
.scard.hl { border-color: var(--pink); }
.scard-emoji { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; }
.scard-body { flex: 1; min-width: 0; }
.scard h3 { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .where { font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .best { font-size: 12.5px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-side { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.ring { width: 40px; height: 40px; position: relative; }
.ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bgc { stroke: var(--line); }
.ring .fg { stroke: var(--pink); stroke-linecap: round; transition: stroke-dashoffset .4s; }
.ring.done .fg { stroke: var(--green); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.ring.done b { color: var(--green); font-size: 16px; }
.dist { font-size: 11px; font-weight: 800; color: var(--muted); }

.country-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px;
  background: linear-gradient(135deg, var(--pink-soft), var(--peach)); margin-bottom: 4px;
}
.country-card .flag { font-size: 38px; line-height: 1; }
.country-card h3 { font-size: 19px; }
.country-card .bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); margin-top: 6px; overflow: hidden; }
.country-card .bar i { display: block; height: 100%; background: var(--pink); border-radius: 99px; transition: width .4s; }
.country-card small { font-weight: 800; color: var(--ink-2); }

/* Leaflet customisation */
.pin-wrap { background: none; border: 0; }
.pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: #fff; border: 3px solid var(--pink); display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(120, 50, 70, .3);
}
.pin span { transform: rotate(45deg); font-size: 17px; line-height: 1; }
.pin.done { border-color: var(--green); background: #eafff3; }
.pin.hl { border-color: #ff9a3c; transform: rotate(-45deg) scale(1.2); }
.mc-wrap { background: none; border: 0; }
.mc {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #fff; font-weight: 800; font-family: var(--font-h); font-size: 15px;
  box-shadow: 0 0 0 6px rgba(255, 111, 145, .25), 0 4px 12px rgba(120, 50, 70, .25);
}
.leaflet-container { font-family: var(--font) !important; }
.leaflet-tile-pane { filter: saturate(.7) brightness(1.04) sepia(.08); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) saturate(.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) saturate(.5); } }
.leaflet-tooltip { font-weight: 800; border-radius: 10px; border: 0; box-shadow: var(--shadow); }
.map-loading { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-weight: 700; }

/* ───────────── Sheet ───────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(40, 18, 28, .42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease;
}
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92dvh;
  background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: up .32s cubic-bezier(.2, .9, .3, 1.1);
}
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet-close {
  position: absolute; top: 12px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 800; color: var(--ink-2);
}
.sheet-body { overflow-y: auto; padding: 8px 18px calc(24px + var(--safe-b)); overscroll-behavior: contain; }
@media (min-width: 900px) {
  .sheet {
    left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%);
    width: min(980px, calc(100vw - 64px)); max-height: min(88dvh, 860px); border-radius: 30px;
    animation: zoom .25s ease;
  }
  .sheet-grip { display: none; }
  .sheet-body { padding: 28px 32px 32px; }
}

.dt { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.dt > *, .spot-list > *, .box { min-width: 0; }
@media (min-width: 900px) {
  .dt.two { grid-template-columns: 380px minmax(0, 1fr); gap: 30px; align-items: start; }
  .dt.two > .dt-art-col { position: sticky; top: 0; }
  .dt.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.dt-art { border-radius: 26px; padding: 10px 10px 0; position: relative; }
.dt-art svg { width: 100%; height: auto; aspect-ratio: 1 / .93; }
.dt-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dt h2 { font-size: 28px; font-weight: 700; padding-right: 44px; }
.dt .sub { color: var(--ink-2); font-weight: 700; margin-top: 2px; }
.cam-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cam {
  background: var(--surface); border-radius: 16px; padding: 10px 8px; text-align: center; box-shadow: var(--shadow);
}
.cam .ic { font-size: 22px; line-height: 1.2; }
.cam b { display: block; font-size: 13.5px; }
.cam small { display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.box { background: var(--surface); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.box h4 { font-size: 16.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.say { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  align-self: flex-start; max-width: 92%; padding: 10px 14px; border-radius: 18px 18px 18px 6px;
  background: var(--pink-soft); font-weight: 700; color: var(--ink);
}
.bubble:nth-child(even) { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--lav); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 10px; font-weight: 600; color: var(--ink-2); }
.steps li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; margin-top: 1px;
}
.tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--lemon); font-weight: 700; color: var(--ink); }
.tip .ic { font-size: 22px; line-height: 1.2; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
.btn.favbig.on { background: var(--pink-soft); color: var(--pink-ink); }
.btn.tried.on { background: var(--mint); color: var(--green); }

.spot-hero { border-radius: 26px; padding: 22px 20px; display: flex; gap: 16px; align-items: center; }
.spot-hero .big { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px;
  border-radius: 16px; background: var(--bg); font-weight: 700; color: var(--ink); transition: background .15s;
}
.check .bx {
  flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2.5px solid var(--pink); display: grid; place-items: center;
  color: transparent; font-size: 14px; font-weight: 900; margin-top: 1px; transition: all .15s;
}
.check.on { background: var(--mint); }
.check.on .bx { background: var(--green); border-color: var(--green); color: #fff; }
.check.on .tx { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink-2); }
.props { display: flex; gap: 8px; flex-wrap: wrap; }
.prop { padding: 8px 12px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 14px; border: 1.5px dashed var(--line); }
.prop.on { background: var(--mint); border-style: solid; border-color: var(--green); }
.prop.on::before { content: '✓ '; color: var(--green); font-weight: 900; }
.mini-poses { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.mini {
  flex: none; width: 128px; border-radius: 18px; overflow: hidden; background: var(--bg); text-align: left;
  transition: transform .15s;
}
.mini:hover { transform: translateY(-3px); }
.mini .art { display: block; padding: 4px 4px 0; }
.mini svg { width: 100%; height: auto; aspect-ratio: 1 / .93; }
.mini b { display: block; font-size: 13px; padding: 6px 10px 9px; font-family: var(--font-h); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #ff8fab, #ff6f91); border-radius: 99px; transition: width .4s; }

/* ───────────── Tips ───────────── */
.tips-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tips-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tipcard { display: flex; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); animation: pop .3s ease both; }
.tipcard .ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.tipcard h3 { font-size: 17px; margin-bottom: 2px; }
.tipcard p { font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
.prompts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .prompts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .prompts { grid-template-columns: repeat(3, 1fr); } }
.prompt { padding: 14px 16px; border-radius: 18px 18px 18px 6px; font-weight: 700; text-align: left; transition: transform .15s; }
.prompt:hover { transform: rotate(-1deg) scale(1.02); }
.prompt small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 800; margin-top: 4px; }
.checklist-plain { display: grid; gap: 8px; }
@media (min-width: 900px) { .checklist-plain { grid-template-columns: 1fr 1fr; } }

/* ───────────── Saved ───────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; border-radius: 22px; box-shadow: var(--shadow); }
.stat b { font-family: var(--font-h); font-size: 34px; line-height: 1; display: block; }
.stat span { font-weight: 800; font-size: 13px; color: var(--ink-2); }
.clist { display: grid; gap: 10px; }
@media (min-width: 900px) { .clist { grid-template-columns: repeat(2, 1fr); } }
.crow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: left; width: 100%; }
.crow .flag { font-size: 30px; }
.crow .grow { flex: 1; min-width: 0; }
.crow b { font-family: var(--font-h); font-weight: 600; font-size: 16px; }
.crow small { font-weight: 800; color: var(--muted); }

.side-card .sc { padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--pink-soft), var(--lav)); }
.side-card .sc b { font-family: var(--font-h); font-size: 15px; display: block; margin-bottom: 8px; }
.side-card .sc .row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }
.install-btn { padding: 10px 14px; border-radius: 14px; font-weight: 800; background: var(--surface); box-shadow: var(--shadow); }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); font-size: 18px; flex: none; }
.side-foot { display: flex; gap: 8px; align-items: center; }
.side-foot .install-btn { flex: 1; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.install-btn.small { padding: 7px 12px; border-radius: 999px; font-size: 13px; }

/* ───────────── Shoot mode ───────────── */
.shoot { position: fixed; inset: 0; z-index: 80; background: #120c10; color: #fff; overflow: hidden; touch-action: manipulation; }
.shoot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shoot video.mirror { transform: scaleX(-1); }
.shoot-nocam {
  position: absolute; inset: 0; display: grid; place-items: start center; text-align: center; padding: calc(env(safe-area-inset-top, 0px) + 150px) 76px 220px;
  background: radial-gradient(circle at 50% 30%, #4a2335, #120c10 70%);
}
.shoot-nocam div { max-width: 300px; font-size: 14px; font-weight: 700; color: #f4d8e2; }
.shoot-nocam b { display: block; font-family: var(--font-h); font-size: 22px; color: #fff; margin: 8px 0 4px; }
.shoot-grid { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.shoot-ghost { position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%); width: min(92vw, 62dvh); pointer-events: none; transition: width .25s; }
.shoot-ghost.big { width: min(100vw, 80dvh); bottom: 170px; }
.shoot-ghost svg { width: 100%; height: auto; filter: brightness(0) invert(1) drop-shadow(0 0 1.5px rgba(0,0,0,.9)) drop-shadow(0 0 6px rgba(255,111,145,.9)); opacity: .55; }
.shoot-top {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 30px; background: linear-gradient(rgba(0,0,0,.55), transparent);
}
.shoot-title { font-family: var(--font-h); font-size: 18px; text-align: center; flex: 1; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.sbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 18px; font-weight: 800; color: #fff; }
.sbtn.big { width: 52px; height: 52px; font-size: 24px; }
.shoot-say {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 70px); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px)); padding: 12px 16px; border-radius: 18px;
  background: rgba(255,255,255,.92); color: #3d2b33; font-weight: 800; text-align: left; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: flex-start;
}
.shoot-say .k { flex: none; font-size: 11px; font-weight: 900; background: #ff6f91; color: #fff; padding: 3px 8px; border-radius: 99px; margin-top: 1px; text-transform: uppercase; letter-spacing: .04em; }
.shoot-say .nx { margin-left: auto; color: #ff6f91; font-size: 12px; white-space: nowrap; align-self: center; }
.shoot-toggles { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.shoot-toggles .chip { background: rgba(0,0,0,.35); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); font-size: 13px; padding: 7px 12px; }
.shoot-toggles .chip.on { background: #fff; color: #3d2b33; border-color: #fff; }
.shoot-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 0 calc(var(--safe-b) + 16px); background: linear-gradient(transparent, rgba(0,0,0,.65) 40%); }
.shoot-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.shoot-strip::-webkit-scrollbar { display: none; }
.shoot-strip button { flex: none; width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.88); padding: 2px; border: 3px solid transparent; scroll-snap-align: center; }
.shoot-strip button.on { border-color: #ff6f91; background: #fff; }
.shoot-strip svg { width: 100%; height: 100%; }
.shoot-controls { display: flex; align-items: center; justify-content: space-around; padding: 0 24px; max-width: 520px; margin: 0 auto; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.shutter span { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #ff8fab, #ff6f91); transition: transform .1s; }
.shutter:active span { transform: scale(.85); }
.shoot-thumb { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18) center/cover; border: 2px solid rgba(255,255,255,.8); }
.flash { position: absolute; inset: 0; background: #fff; animation: flash .35s ease forwards; pointer-events: none; }

/* ───────────── Toast & misc ───────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 18px); transform: translate(-50%, 20px);
  z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .25s ease; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + var(--sidebar) / 2); } }

.welcome { text-align: center; padding: 10px 4px 4px; }
.welcome .art { max-width: 300px; margin: 0 auto; }
.welcome h2 { font-size: 30px; margin: 6px 0 6px; padding: 0; }
.welcome ul { list-style: none; padding: 0; margin: 18px auto; display: grid; gap: 10px; text-align: left; max-width: 440px; }
.welcome li { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px 14px; border-radius: 16px; font-weight: 700; box-shadow: var(--shadow); }
.welcome li span { font-size: 24px; }

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes zoom { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes beat { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
