/* Flara web. Tokens from DESIGN.md: one tint, night ground, bone text. */
:root {
  --flare: #ff4b2b;
  --flare-deep: #c22e12;
  --glow: #ffb49e;
  --night: #0b0d14;
  --night-card: #151827;
  --bone: #f7f3ee;
  --bone-60: rgba(247, 243, 238, 0.62);
  --bone-30: rgba(247, 243, 238, 0.3);
  --safe: #2fbf71;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, system-ui, sans-serif;
  background: var(--night);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--flare); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--bone);
}
.wordmark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 14px var(--flare); }
.page { min-height: 100%; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 22px; letter-spacing: -0.02em; margin: 32px 0 8px; }
p { margin: 0 0 12px; color: var(--bone-60); }
.lead { font-size: 20px; color: var(--bone); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:active { transform: scale(0.97); }
.btn-flare { background: var(--flare); color: var(--bone); }
.btn-ghost { background: var(--night-card); color: var(--bone); }
.btn-big { min-height: 64px; font-size: 20px; }
.card { background: var(--night-card); border-radius: var(--radius); padding: 16px; }
.muted { color: var(--bone-60); }
.small { font-size: 15px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; user-select: all; }
.stack > * + * { margin-top: 12px; }

/* Live map page */
.map-page { height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--night); }
#map { width: 100%; height: 100%; background: #0f1220; }
.sheet {
  background: var(--night); padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  display: grid; gap: 12px;
}
.status { display: flex; align-items: center; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 600; background: var(--night-card); color: var(--bone);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bone-30); }
.badge.active { background: var(--flare); }
.badge.active::before { background: var(--bone); animation: pulse 1.2s ease-out infinite; }
.badge.countdown::before { background: var(--glow); }
.badge.ended::before { background: var(--safe); }
.badge.cancelled::before { background: var(--bone-30); }
.meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--bone-60); font-size: 15px; }
.owner { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.error { color: var(--glow); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247,243,238,0.6); } 100% { box-shadow: 0 0 0 10px rgba(247,243,238,0); } }
@media (prefers-reduced-motion: reduce) { .badge.active::before { animation: none; } .btn { transition: none; } }
@media (min-width: 720px) { .only-phone { display: none; } }
.maplibregl-ctrl-attrib { font-size: 11px; }
