/* da.place — global tokens */
:root {
  --outsy-orange: #FF7A1A;
  --outsy-orange-soft: #FFB27A;
  --outsy-ink: #0E0F12;
  --outsy-ink-2: #1A1C20;
  --outsy-paper: #F6F3EE;
  --outsy-paper-2: #EDE8DF;
  --outsy-muted: #7A7870;
  --outsy-line: rgba(14, 15, 18, 0.08);

  /* category hues */
  --cat-outdoor: #3E8E5A;
  --cat-food: #E4673B;
  --cat-nightlife: #2E3C78;
  --cat-art: #B043A0;
  --cat-sports: #2F7ED1;
  --cat-wellness: #2EA394;
  --cat-music: #7A3FB8;
  --cat-beach: #D9B265;
  --cat-nature: #4F7A3A;
  --cat-shopping: #D74A7D;
  --cat-historical: #9A7A4A;
  --cat-culture: #8040C0;
}

/* ─────────────────────────────────────────────
   Semantic theme tokens — flipped by [data-theme]
   on the document wrapper. Accent stays constant.
   ───────────────────────────────────────────── */
.dap, [data-theme="light"] {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --surface-3: #EDE8DF;
  --ink: #0E0F12;
  --ink-2: #3C3A35;
  --ink-3: #7A7870;
  --ink-4: #9A988F;
  --line: rgba(0,0,0,0.06);
  --line-2: rgba(0,0,0,0.10);
  --line-3: rgba(0,0,0,0.15);
  --solid: #0E0F12;
  --on-solid: #FFFFFF;
  --accent: #FF7A1A;
  --accent-soft: #FFF7EA;
  --accent-ink: #5A4A2A;
  --danger-soft: #F6EBE8;
  /* canvas chrome */
  --dc-bg: #f0eee9;
  --dc-grid: rgba(0,0,0,0.06);
  --dc-title: rgba(40,30,20,0.85);
  --dc-sub: rgba(60,50,40,0.6);
  --dc-label: rgba(60,50,40,0.7);
}

[data-theme="dark"] {
  --bg: #0F1115;
  --surface: #1A1D23;
  --surface-2: #23262E;
  --surface-3: #2B2F39;
  --ink: #F3F1EC;
  --ink-2: #CFCBC3;
  --ink-3: #9C988F;
  --ink-4: #76736C;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.20);
  --solid: #F3F1EC;
  --on-solid: #14161A;
  --accent: #FF7A1A;
  --accent-soft: rgba(255,122,26,0.15);
  --accent-ink: #F0B27E;
  --danger-soft: rgba(224,68,68,0.18);
  /* canvas chrome */
  --dc-bg: #141518;
  --dc-grid: rgba(255,255,255,0.05);
  --dc-title: rgba(245,242,236,0.92);
  --dc-sub: rgba(220,216,208,0.55);
  --dc-label: rgba(220,216,208,0.6);
}

/* theme toggle (canvas-fixed) */
.theme-toggle {
  position: fixed; top: 18px; right: 18px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 6px 0 14px; border-radius: 20px;
  background: var(--surface); color: var(--ink);
  border: 0.5px solid var(--line-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  font: 600 13px/1 -apple-system, system-ui, sans-serif;
  letter-spacing: -0.1px; cursor: pointer; user-select: none;
}
.theme-toggle .tt-knob {
  width: 28px; height: 28px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); font-size: 15px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: var(--outsy-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(255, 140, 60, 0.10), transparent 60%),
    radial-gradient(900px 700px at 80% 90%, rgba(70, 100, 180, 0.12), transparent 60%),
    #0b0b0d;
}

#root { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); }

/* Scrollbar hiding for phone screens */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite linear;
}

/* pulse for live "here now" dots */
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.live-pulse { animation: livePulse 1.8s ease-in-out infinite; }

@keyframes ringPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.ring-pulse { animation: ringPulse 2s ease-out infinite; }

/* sheet slide */
@keyframes sheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-in { animation: sheetIn 320ms cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn 220ms ease-out; }

/* Heartbeat for check-in */
@keyframes heartbeat {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.heartbeat { animation: heartbeat 540ms ease-out; }

/* Skeleton text */
.sk {
  display: inline-block;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  height: 0.9em;
}

/* Map labels pulled from screenshot style */
.map-label {
  font-family: -apple-system, system-ui;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: rgba(60, 60, 67, 0.55);
  font-weight: 500;
}
.map-label-major {
  font-size: 10px;
  fill: rgba(40, 40, 50, 0.75);
  font-weight: 600;
}

.num { font-variant-numeric: tabular-nums; }
