@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-Regular-WebS.woff2') format('woff2'),
       url('/fonts/SuisseIntl-Regular-WebS.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-Light-WebS.woff2') format('woff2'),
       url('/fonts/SuisseIntl-Light-WebS.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SuisseIntl';
  src: url('/fonts/SuisseIntl-SemiBold-WebS.woff2') format('woff2'),
       url('/fonts/SuisseIntl-SemiBold-WebS.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0d17;
  --muted: #5b6176;
  --accent: #00b4d8;
  --accent-dark: #0077b6;
  --accent-soft: #e0f7fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

* {
  box-sizing: border-box;
}

button, input, select, textarea {
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #f0f4f8;
}

.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: min(400px, 100vw);
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, #00b4d8 0%, #38b000 100%);
  padding: 28px 24px 24px;
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 280px;
  filter: 
    drop-shadow(0 0 8px rgba(255,255,255,0.9))
    drop-shadow(0 0 16px rgba(255,255,255,0.7))
    drop-shadow(0 0 24px rgba(255,255,255,0.5));
}

.tagline {
  margin: 16px auto 0;
  
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Stats pills */
.section-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.stat-pill.accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.stat-num {
  font-weight: 700;
}

.stat-lbl {
  color: var(--muted);
}

/* Callout */
.callout {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
}

.callout-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.callout-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}

/* How It Works */
.how-section h3 {
  margin: 0 0 20px;
  font-size: 1.25rem;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00b4d8 0%, #38b000 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,180,216,0.3);
}

.step-content h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* CTA */
.cta-section {
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  color: var(--ink);
  font-family: 'SuisseIntl', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.button.primary {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border: none;
  color: white;
}

.button.primary:hover {
  box-shadow: 0 4px 16px rgba(0,180,216,0.4);
}

.button.full {
  width: 100%;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Auth panel */
.auth-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.auth-panel form {
  display: flex;
  flex-direction: column;
}

.auth-panel label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.auth-panel input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.auth-panel input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 16px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* Passcode card */
.passcode-card {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.passcode-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.passcode-header span:first-child {
  font-size: 1.5rem;
}

.passcode-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.passcode-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.passcode-value {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  font-family: 'SF Mono', 'Menlo', monospace;
}

.passcode-warn {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #b45309;
  background: #fffbeb;
  padding: 10px 14px;
  border-radius: 10px;
}

.button.copy {
  background: white;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

/* Leaderboard */
.leaderboard {
  /* background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px; */
}

.leaderboard h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: #f8fafc;
}

.rank-list li:last-child {
  margin-bottom: 0;
}

.rank-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e2e8f0;
  color: var(--muted);
}

.rank-1 .rank-pos {
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
  color: #5d4600;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.rank-2 .rank-pos {
  background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
  color: #424242;
}

.rank-3 .rank-pos {
  background: linear-gradient(135deg, #cd7f32 0%, #a66000 100%);
  color: #fff;
}

.rank-name {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-pts {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.rank-placeholder {
  color: var(--muted);
  font-style: italic;
}

/* FAQ */
.faq-section {
  margin-top: 24px;
}

.faq-header {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  transition: background 0.15s;
}

.faq-item summary:hover {
  background: #f1f5f9;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  background: #fff;
}

.faq-item p a {
  color: var(--accent);
}

/* ============ DRAWER ============ */
/* Phone picker for multiple phones at same location */
.phone-picker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(360px, 90vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 450;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-picker.active {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #00b4d8 0%, #38b000 100%);
}

.picker-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.picker-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-body {
  padding: 16px 20px;
  overflow-y: auto;
}

.picker-subtitle {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.picker-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.picker-list li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.picker-list li:hover {
  background: #f8fafc;
  border-color: var(--accent);
}

.picker-list li:last-child {
  margin-bottom: 0;
}

.picker-phone-id {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}

.picker-phone-address {
  font-size: 0.85rem;
  color: var(--muted);
}

.picker-phone-claimed {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8f5e9;
  color: #2e7d32;
}

.picker-phone-unclaimed {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e3f2fd;
  color: #1565c0;
}

.picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 440;
  display: none;
}

.picker-backdrop.active {
  display: block;
}

.phone-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(400px, 100vw);
  background: #fff;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-open .phone-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #00b4d8 0%, #38b000 100%);
}

.drawer-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close:hover {
  background: rgba(255,255,255,0.3);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.panel-address {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.panel-address-line2 {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.panel-phone-hint {
  margin: 8px 0 12px;
  padding: 10px 14px;
  background: #f0f7ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1565c0;
  display: none;
}

.panel-phone-hint.visible {
  display: block;
}

.panel-phone-hint.full-number {
  background: #e8f5e9;
  color: #2e7d32;
}

.panel-phone-hint strong {
  font-weight: 700;
}

.panel-maps-link {
  display: inline-block;
  margin: 8px 0 12px;
  font-size: 0.9rem;
  color: var(--accent-dark);
  text-decoration: none;
}

.panel-maps-link:hover {
  text-decoration: underline;
}

.panel-total {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.claim-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--muted);
}

.claim-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.claim-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.claim-list li:last-child {
  margin-bottom: 0;
}

.claim-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: #e2e8f0;
  color: var(--muted);
}

.claim-1 {
  background: linear-gradient(135deg, #fffde7 0%, #fff9c4 100%);
  border: 2px solid #ffd700;
}

.claim-1 .claim-rank {
  background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
  color: #5d4600;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.claim-2 {
  background: #f5f5f5;
  border: 2px solid #bdbdbd;
}

.claim-2 .claim-rank {
  background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
  color: #424242;
}

.claim-3 {
  background: #fff3e0;
  border: 2px solid #cd7f32;
}

.claim-3 .claim-rank {
  background: linear-gradient(135deg, #cd7f32 0%, #a66000 100%);
  color: #fff;
}

.claim-name {
  flex: 1;
  font-weight: 600;
}

.claim-pts {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-more {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.panel-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

/* Voicemail section */
.voicemail-section {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.voicemail-section h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #92400e;
}

.voicemail-player {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

.voicemail-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #a16207;
}

.panel-disclaimer {
  margin-bottom: 20px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
}

.panel-disclaimer p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.panel-disclaimer p:last-child {
  margin-bottom: 0;
}

/* ============ MAP ============ */
.map-wrap {
  flex: 1;
  position: relative;
}

.map-fullscreen-close {
  display: none;
}

#map {
  width: 100%;
  height: 100%;
}

.map-stats {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
  z-index: 10;
}

.map-stat {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.85rem;
}

.map-stat-num {
  font-weight: 700;
  color: var(--ink);
}

.map-stat-lbl {
  color: var(--muted);
}

.map-stat-accent {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border: 1px solid var(--accent);
}

.map-stat-accent .map-stat-num {
  color: var(--accent-dark);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}

.sidebar-footer a {
  color: #6b7280;
  text-decoration: none;
}

.sidebar-footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* ============ LOGGED IN CARD ============ */
.logged-in-card {
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.logged-in-msg {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent-dark);
}

.logged-in-msg span {
  font-weight: 700;
}

.logged-in-id {
  margin: 6px 0 10px;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.logged-in-id span {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.modal-content {
  padding: 32px 28px;
}

.modal-content h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  text-align: center;
}

.modal-subtitle {
  margin: 0 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-content .divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 20px 0;
  position: relative;
}

.modal-content .divider::before,
.modal-content .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}

.modal-content .divider::before { left: 0; }
.modal-content .divider::after { right: 0; }

.login-label {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Success state */
.success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.passcode-display {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  padding: 16px;
  border-radius: 12px;
  font-family: 'SF Mono', 'Menlo', monospace;
}

.warning-box {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}

.warning-box p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.4;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

.warning-box strong {
  color: #78350f;
}

#modal-done {
  margin-top: 8px;
}

.ended-modal {
  max-width: 460px;
  overflow: hidden;
}

.ended-hero {
  padding: 28px 28px 24px;
  background: linear-gradient(140deg, #0b0d17 0%, #0077b6 58%, #38b000 100%);
  color: #fff;
  text-align: center;
}

.ended-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

.ended-hero h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.ended-subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.ended-content {
  padding-top: 24px;
}

.ended-callout {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border: 1px solid var(--accent);
  text-align: center;
}

.ended-callout-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ended-callout-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.ended-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.ended-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ MOBILE ============ */
.mobile-map-container {
  display: none;
}

@media (max-width: 700px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: none;
    height: 100vh;
    border-right: none;
    border-bottom: none;
    overflow-y: auto;
  }

  .hero-gradient {
    padding: 20px 20px 16px;
  }

  .logo {
    max-width: 273px;
  }

  .tagline {
    max-width: 266px;
    font-size: 1rem;
  }

  .sidebar-scroll {
    padding: 16px 20px 32px;
    gap: 20px;
  }

  /* Hide the main map on mobile by default */
  .map-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #fff;
  }

  .map-wrap.active {
    display: block;
  }

  .map-wrap.active .map-fullscreen-close {
    display: flex;
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 310;
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .map-wrap.active .map-stats {
    bottom: 60px;
  }

  /* Mobile map preview */
  .mobile-map-container {
    display: block !important;
    position: relative;
    height: 280px !important;
    min-height: 280px !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    background: #e8f5e9;
  }

  .mobile-map-container #mobile-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-map-overlay {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
  }

  .phone-drawer {
    width: 100%;
  }

  .section-stats {
    justify-content: center;
  }

  .step {
    gap: 12px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .map-stats {
    left: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .map-stat {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}
