/* ========================================
   ROAST — coffee chat roulette
   Vision-OS glass widget design system
   ======================================== */

:root {
  --ink: #0c0c0c;
  --ink-2: #1a1a1a;
  --cream: #f3f1ec;
  --cream-dim: rgba(255,255,255,0.62);
  --cream-mid: rgba(255,255,255,0.78);
  --glass-bg: rgba(28,26,24,0.42);
  --glass-tile: rgba(255,255,255,0.10);
  --glass-tile-2: rgba(0,0,0,0.18);
  --glass-edge: rgba(255,255,255,0.12);
  --glass-edge-inner: rgba(255,255,255,0.22);
  --shadow: 0 30px 80px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.35);
  --sans: -apple-system, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --tile-radius: 18px;
  --card-radius: 28px;
  /* design-engineering easing curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; width: 100%; overflow: hidden; }
body {
  background: #0a0a09;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   app shell
   ======================================== */
.app {
  position: relative;
  height: 100vh; width: 100vw;
  display: grid;
  grid-template-columns: 64px 1fr;
}

/* ----- left nav rail (kept from previous) ----- */
.rail {
  position: relative;
  z-index: 30;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0;
  gap: 4px;
}
.rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 0 12px;
  cursor: pointer;
  transition: opacity .15s;
  margin-bottom: 8px;
}
.rail-brand:hover { opacity: 0.8; }
.rail-brand-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #f3f1ec, #d8d3c8);
  display: grid; place-items: center;
  color: #1a1a17;
  box-shadow: 0 4px 16px rgba(255,255,255,0.1);
}
.rail-brand-icon svg { width: 22px; height: 22px; }
.rail-brand-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1;
}
.rail-btn {
  width: 48px;
  padding: 7px 0 6px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.45);
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.rail-btn:hover { color: var(--cream); background: rgba(255,255,255,0.06); }
.rail-btn:active { transform: scale(0.96); }
.rail-btn.active {
  color: var(--cream);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
}
.rail-btn svg { width: 17px; height: 17px; }
.rail-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.75;
  line-height: 1;
}
.rail-spacer { flex: 1; }
.rail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34c759;
  margin-top: 8px;
  box-shadow: 0 0 8px #34c759;
}

/* ========================================
   stage — full-bleed cafe photo
   ======================================== */
.stage {
  position: relative;
  overflow: hidden;
  background: #0a0a09;
}
.bg-img {
  position: absolute; inset: 0;
  background-image: url('assets/cafe-bg.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.bg-img::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 25%, rgba(0,0,0,0.35) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.4) 100%);
}

/* ========================================
   IDLE HERO — full-stage spin/browse landing
   ======================================== */
.hero {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(480px, calc(100vw - 80px));
  text-align: center;
}
.hero-title {
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-style: italic;
  color: #fff;
  line-height: 0.88;
  user-select: none;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-count {
  font-size: 72px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.055em;
  color: #fff;
  line-height: 1;
}
.hero-count-unit {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.02em;
}
.hero-city {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.hero-spin-btn {
  flex: 1;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.hero-spin-btn svg { width: 17px; height: 17px; }
.hero-spin-btn:hover { background: rgba(255,255,255,0.20); transform: translateY(-1px); }
.hero-spin-btn:active { transform: scale(0.97); }
.hero-browse-btn {
  height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.65);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.hero-browse-btn svg { width: 15px; height: 15px; }
.hero-browse-btn:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-1px); }
.hero-browse-btn:active { transform: scale(0.97); }
/* hero sub-views */
#hero-idle {
  display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%;
  background: #0a0a09;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px;
  padding: 18px 20px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#hero-idle[hidden] { display: none; }
/* Compact the count for bottom-card context */
#hero-idle .hero-count { font-size: 36px; }
#hero-idle .hero-count-unit { font-size: 14px; }
#hero-idle .hero-city { font-size: 11px; }
#hero-idle .hero-top { gap: 2px; }
#hero-spinning {
  display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%;
  padding-bottom: 8px;
}
#hero-spinning[hidden] { display: none; }
#hero-result { width: 100%; }
#hero-result[hidden] { display: none; }

/* result card — same glass as old widget */
.result-card {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--glass-edge);
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--shadow);
  isolation: isolate;
  position: relative;
}
.result-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 30%, rgba(0,0,0,0.08));
  pointer-events: none;
}

/* spinning name ticker */
.spin-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,0.75);
  text-align: center;
  min-height: 26px;
}

/* suggest a spot link */
.suggest-link {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s;
}
.suggest-link:hover { color: rgba(255,255,255,0.7); }

/* suggest modal extra */
.suggest-card { width: 380px; }
.sug-select { appearance: none; cursor: pointer; }
.sug-notes { resize: none; height: auto; padding: 10px 14px; line-height: 1.5; }

/* ========================================
   GLASS WIDGET — centered card
   ======================================== */
.widget {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% - 20px));
  width: 460px;
  padding: 22px;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-edge);
  z-index: 10;
  isolation: isolate;
}
.widget[hidden] { display: none; }
.widget::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 30%, rgba(0,0,0,0.08));
  pointer-events: none;
}
.widget::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

/* widget head */
.w-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 6px 0;
}
.w-head h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 280px;
  text-wrap: balance;
}
.w-head .sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--cream-dim);
  font-weight: 500;
}
.w-head .sub .dot { margin: 0 4px; opacity: 0.5; }
.w-head .stat {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}
.w-head .num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.w-head .unit {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  color: var(--cream-mid);
  letter-spacing: -0.01em;
}

/* tile grid */
.w-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tile {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border-radius: var(--tile-radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.tile:hover { background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.tile .label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream-mid);
  letter-spacing: -0.01em;
}
.tile .label svg { width: 13px; height: 13px; opacity: 0.85; }
.tile .value {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.tile .value small {
  font-weight: 400;
  font-size: 14px;
  margin-left: 4px;
  color: var(--cream-mid);
}

/* descriptive caption */
.w-desc {
  margin-top: 16px;
  padding: 4px 18px 6px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ========================================
   bottom dock — 6-dot button
   ======================================== */
.dock {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 11;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(28,26,24,0.42);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.dock:hover { transform: translateX(-50%) translateY(-2px); }
.dock .dots {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 4px;
}
.dock .dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
}

/* ========================================
   floating square buttons (bottom-right)
   ======================================== */
.f-btns {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.f-btn {
  width: 60px; height: 60px;
  border-radius: 20px;
  background: rgba(28,26,24,0.38);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
  cursor: pointer;
  color: #fff;
  transition: transform .15s ease, background .15s ease;
  position: relative;
  isolation: isolate;
}
.f-btn::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.f-btn:hover { transform: translateY(-2px); background: rgba(40,38,36,0.5); }
.f-btn svg { width: 22px; height: 22px; }

/* ========================================
   Brand name (top-left)
   ======================================== */
.brand {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 11;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  font-style: italic;
}
.os-status {
  position: absolute;
  top: 26px; right: 24px;
  z-index: 11;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.os-status .live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.os-status .live .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 2px rgba(52,199,89,0.25);
}

/* ── widget head layout tweaks ── */
.w-head { align-items: flex-start; }
.w-head-text { flex: 1; min-width: 0; }
.w-title-row { display: flex; align-items: flex-start; gap: 8px; }
.w-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ── "New" badge ── */
.new-badge {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(52,199,89,0.18);
  color: rgba(52,199,89,1);
  border: 1px solid rgba(52,199,89,0.3);
}

/* ── Star / save button ── */
.star-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.5);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.star-btn:hover { background: rgba(255,200,0,0.12); color: rgba(255,200,0,0.9); border-color: rgba(255,200,0,0.2); }
.star-btn.starred { background: rgba(255,200,0,0.15); color: rgba(255,200,0,1); border-color: rgba(255,200,0,0.3); }
.star-btn.starred svg { fill: rgba(255,200,0,0.9); }
.star-btn svg { width: 16px; height: 16px; }

/* ── Hours row ── */
.w-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: -0.01em;
}
.w-hours[hidden] { display: none; }
.w-hours svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Website / Instagram links ── */
.w-links {
  display: flex;
  gap: 8px;
  padding: 10px 6px 2px;
  flex-wrap: wrap;
}
.w-links[hidden] { display: none; }
.w-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.w-link[hidden] { display: none; }
.w-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.w-link svg { width: 12px; height: 12px; }

/* ── Spin limit pill in sub ── */
.spins-left-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}
.spins-left-pill.has-spins { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); }
.spins-left-pill.no-spins { background: rgba(255,80,80,0.15); color: rgba(255,100,100,0.9); }

/* ── Auth button in rail ── */
.rail-btn.authed { color: rgba(52,199,89,0.9); }
.rail-btn.authed:hover { background: rgba(52,199,89,0.08); }

/* ── Auth modal ── */
.auth-modal {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-modal[hidden] { display: none; }
.auth-card {
  position: relative;
  width: 340px;
  background: rgba(18,16,14,0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.auth-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.auth-close svg { width: 13px; height: 13px; }
.auth-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f3f1ec, #d8d3c8);
  display: grid; place-items: center;
  color: #1a1a17;
  margin-bottom: 16px;
}
.auth-logo svg { width: 24px; height: 24px; }
.auth-title {
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.045em;
  margin-bottom: 6px;
}
.auth-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 20px;
}
.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.auth-input:focus { border-color: rgba(255,255,255,0.28); }
.auth-input::placeholder { color: rgba(255,255,255,0.3); }
.auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.auth-submit:hover { background: rgba(255,255,255,0.18); }
.auth-sent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(52,199,89,0.10);
  border: 1px solid rgba(52,199,89,0.2);
  color: rgba(52,199,89,0.9);
  font-size: 13px;
  line-height: 1.5;
}
.auth-sent[hidden] { display: none; }
.auth-sent svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.auth-user[hidden] { display: none; }
.auth-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,200,0,0.4), rgba(255,140,0,0.4));
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.auth-user-email {
  flex: 1;
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-logout {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,100,100,0.8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.auth-logout:hover { color: rgba(255,100,100,1); }

/* primary CTA inside the widget — glass-native */
.w-cta {
  margin-top: 14px;
  width: 100%;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
  position: relative;
  isolation: isolate;
}
.w-cta::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.w-cta:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.w-cta:active { transform: translateY(0) scale(0.98); }
.w-cta svg { width: 16px; height: 16px; }

/* ========================================
   interaction wiring (behavioral only — no
   change to the static Roast design above)
   ======================================== */
/* spin feedback on the active CTA + dice rail btn */
.f-btn.spinning, .rail-btn.spinning { animation: roast-pulse 0.6s ease-in-out infinite; }
@keyframes roast-pulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: var(--shadow), 0 0 0 4px rgba(255,255,255,0.10); }
}
/* the widget is the live result surface; keep press feedback subtle */
.f-btn:active, .dock:active { transform: translateY(0) scale(0.97); }
.rail-btn:active, .tile:active { transform: scale(0.97); }

/* ========================================
   Filter chips (inside widget, idle state)
   ======================================== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 4px 6px 6px;
  align-items: flex-start;
}
.filter-chip-wrap {
  position: relative;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.60);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.filter-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.filter-chip:hover {
  background: rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.85);
}
.filter-chip.active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.filter-chip.loading { opacity: 0.6; pointer-events: none; }

/* area neighbourhood dropdown */
.area-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  background: rgba(20,18,16,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 6px;
  min-width: 190px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.area-picker[hidden] { display: none; }
.area-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.area-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.area-btn.selected { color: #fff; background: rgba(255,255,255,0.10); }

/* ========================================
   All-cafes grid panel
   ======================================== */
.cafe-grid-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(8,8,7,0.90);
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
  overflow-y: auto;
  padding: 28px 28px 48px;
  display: flex;
  flex-direction: column;
}
.cafe-grid-panel[hidden] { display: none; }

.cgp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-shrink: 0;
}
.cgp-title {
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.04em;
  text-transform: none;
}
.cgp-count {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}
.cgp-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.cgp-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cgp-close svg { width: 14px; height: 14px; }

/* ── Browse grid — editorial light theme ── */
/* NOTE: no `display` override here — the base .cafe-grid-panel sets display:flex
   and .cafe-grid-panel[hidden] sets display:none. Adding display:flex on the ID
   selector would win over [hidden] (specificity 1,0,0 > 0,2,0) and break hiding. */
#cafe-grid-panel {
  background: #f0efe9;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: hidden;
}
#cafe-grid-panel .cgp-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  background: #f0efe9;
}
#cafe-grid-panel .cgp-title {
  color: #111;
  font-size: 20px;
}
#cafe-grid-panel .cgp-count {
  color: rgba(0,0,0,0.35);
}
#cafe-grid-panel .cgp-close {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.45);
}
#cafe-grid-panel .cgp-close:hover { background: rgba(0,0,0,0.1); color: #111; }

.cgp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-left: 1px solid rgba(0,0,0,0.07);
  overflow-y: auto;
  flex: 1;
}

.cafe-card {
  background: #f0efe9;
  border: none;
  border-right: 1px solid rgba(0,0,0,0.07);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  border-radius: 0;
  padding: 18px 20px 16px;
  cursor: pointer;
  transition: background 140ms var(--ease-out), transform 140ms var(--ease-out);
  position: relative;
}
.cafe-card:hover { background: #e8e6df; }
.cafe-card:active { transform: scale(0.99); background: #e2e0d8; }

.cc-name {
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.cc-meta {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(0,0,0,0.38);
  letter-spacing: 0.005em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cc-chip {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.08);
}
/* all chips monochrome — no colour in the grid */
.cc-chip-green, .cc-chip-amber, .cc-chip-blue, .cc-chip-red, .cc-chip-dim {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.4);
  border-color: rgba(0,0,0,0.08);
}

@media (max-width: 640px) {
  .cafe-grid-panel { padding: 20px 16px 40px; }
  .cgp-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (max-width: 420px) {
  .cgp-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Topographic spin visual (in-flow inside hero-spinning)
   ======================================== */
.topo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.topo-cup {
  width: 100px; height: 100px;
  color: rgba(0,0,0,0.55);
  animation: topo-spin 0.38s linear infinite;
  will-change: transform;
}
@keyframes topo-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   Map panel — sidebar + 3D map layout
   ======================================== */
/* ── Brand mark floating over city ── */
#map-brand {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.map-brand-name {
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 800;
  letter-spacing: -0.055em;
  font-style: italic;
  color: rgba(22, 21, 18, 0.78);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 2px 12px rgba(255,255,255,0.08);
  line-height: 1;
  display: block;
}

/* ── Map panel — permanent full-screen background ── */
#map-panel {
  padding: 0;
  overflow: hidden;
  flex-direction: row;
  z-index: 1;            /* beneath hero (z:10) and modals */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.map-layout {
  position: relative;   /* anchor for absolute sidebar */
  display: flex;
  width: 100%;
  height: 100%;
}
.map-sidebar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 300px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background: rgba(8,8,7,0.96);
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  /* slide-in from left */
  transform: translateX(-304px);
  opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 260ms var(--ease-out);
  pointer-events: none;
}
.map-sidebar.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.map-sidebar .cgp-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  margin-bottom: 0;
}
#map-container {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

/* ── Map cafe detail (sidebar) ── */
.mcd-photo-wrap {
  width: 100%;
  height: 175px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.mcd-photo-wrap[hidden] { display: none; }
.mcd-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 350ms var(--ease-out);
}
.mcd-photo-img.loaded { opacity: 1; }

.mcd {
  padding: 16px 18px 32px;
  display: flex;
  flex-direction: column;
}
.mcd[hidden] { display: none; }
.mcd:not([hidden]) {
  animation: mcd-enter 220ms var(--ease-out) both;
}
@keyframes mcd-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}
.mcd-top {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}
.mcd-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.mcd-logo[hidden] { display: none; }
.mcd-title-block { flex: 1; min-width: 0; }
.mcd-name-row { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.mcd-name {
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 1.15;
  word-break: break-word;
}
.mcd-hood {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.36);
  margin-top: 3px;
  letter-spacing: -0.01em;
}
.mcd-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.48);
  padding: 3px 0;
  line-height: 1.45;
}
.mcd-row svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; opacity: 0.65; }
.mcd-row[hidden] { display: none; }
.mcd-grid {
  margin: 12px 0 6px;
  gap: 6px;
}
.mcd-grid .tile { border-radius: 12px; padding: 9px 11px; }
.mcd-grid .tile .label { font-size: 10.5px; }
.mcd-grid .tile .value { font-size: 15px; margin-top: 6px; }
.mcd-vibe {
  font-size: 11px;
  color: rgba(255,255,255,0.34);
  line-height: 1.55;
  margin: 4px 0 14px;
  font-style: italic;
}
.mcd-links { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mcd-links[hidden] { display: none; }
.mcd-links .w-link { font-size: 11px; height: 28px; padding: 0 10px; }
.mcd-spin-btn { margin-top: 4px; }

/* ========================================
   MapLibre GL JS — pins, popups
   ======================================== */

/* Named label pins */
.map-pin-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.map-pin-name {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a17;
  background: rgba(255,255,255,0.95);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 6px rgba(0,0,0,0.20);
  border: 0.5px solid rgba(0,0,0,0.06);
  transition: background .12s, box-shadow .12s;
}
.map-pin-label:hover .map-pin-name {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.map-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a17;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30);
  flex-shrink: 0;
}

/* MapLibre popup overrides */
.maplibregl-popup-content {
  background: rgba(15,13,11,0.97) !important;
  color: #fff !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55) !important;
  padding: 0 !important;
  overflow: hidden;
  font-family: var(--sans) !important;
}
.maplibregl-popup-tip {
  border-top-color: rgba(15,13,11,0.97) !important;
}
.maplibregl-popup-close-button {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  color: rgba(255,255,255,0.35) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 2px 5px !important;
  border-radius: 6px !important;
  background: transparent !important;
  z-index: 1;
}
.maplibregl-popup-close-button:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}

/* Popup inner layout */
.map-popup { padding: 14px 14px 12px; }
.map-popup-header {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  padding-right: 16px;
}
.popup-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  padding: 3px;
  flex-shrink: 0;
  border: 0.5px solid rgba(0,0,0,0.08);
}
.popup-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.popup-hood {
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  margin-top: 2px;
}
.popup-hours {
  font-size: 10.5px;
  color: rgba(255,255,255,0.44);
  margin: 7px 0 4px;
}
.popup-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0;
}
.popup-attr {
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.48);
}
.popup-vibe {
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.45;
  margin: 5px 0 2px;
  font-style: italic;
}
.popup-links {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.popup-link {
  flex: 1;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.popup-link:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* MapLibre nav controls */
.maplibregl-ctrl-group {
  background: rgba(18,16,14,0.88) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
}
.maplibregl-ctrl-group button {
  background: transparent !important;
  color: rgba(255,255,255,0.6) !important;
}
.maplibregl-ctrl-group button:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

/* Result card cafe logo */
.result-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.10);
}
.result-logo[hidden] { display: none; }

/* ========================================
   Mobile responsive
   ======================================== */
@media (max-width: 640px) {
  /* Grid: stage on top, rail as bottom tab bar */
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: "stage" "rail";
  }
  .stage { grid-area: stage; }

  /* Rail → bottom tab bar */
  .rail {
    grid-area: rail;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: auto;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    gap: 0;
    background: rgba(10,10,10,0.97);
  }
  .rail-brand, .rail-spacer, .rail-dot { display: none; }
  .rail-btn {
    flex-direction: column;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 10px;
    min-width: 48px;
  }
  .rail-btn svg { width: 20px; height: 20px; }
  .rail-label { display: block; font-size: 10px; letter-spacing: 0; }

  /* Hero: lift above bottom nav */
  .hero {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 24px);
  }

  /* Modals: fluid width */
  .suggest-card,
  .auth-card,
  .settings-card {
    width: calc(100vw - 24px);
    max-width: 420px;
  }

  /* Map sidebar: full width on mobile */
  .map-sidebar {
    width: 100%;
    transform: translateX(-100%);
  }

  /* Hero card: tighten inner padding, stack action buttons */
  #hero-idle {
    padding: 14px 14px 12px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero-spin-btn, .hero-browse-btn {
    width: 100%;
    flex: none;
  }
  .hero-browse-btn {
    height: 44px;
    justify-content: center;
  }
  .filter-chips {
    padding: 2px 2px 4px;
    gap: 6px;
    justify-content: center;
  }
  .filter-chip {
    padding: 0 10px;
    font-size: 11px;
  }
  .rail-label { display: none; }

  /* Misc widget tweaks */
  .widget {
    width: min(460px, calc(100vw - 32px));
  }
  .w-head .num { font-size: 40px; }
  .w-head h1 { font-size: 18px; max-width: none; }
  .os-time { font-size: 17px; }
}

/* ========================================
   Settings modal
   ======================================== */
.settings-card {
  width: 340px;
  gap: 0;
}
.settings-section {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.settings-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.settings-label {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}
.settings-sub {
  font-size: 11.5px;
  color: rgba(255,255,255,0.36);
  margin-top: 2px;
}
.settings-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.settings-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }
.settings-btn:active { transform: scale(0.96); }
.settings-btn-danger { color: rgba(255,100,80,0.8); border-color: rgba(255,100,80,0.18); }
.settings-btn-danger:hover { background: rgba(255,100,80,0.12); color: rgba(255,100,80,1); }
.settings-kbd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.01em;
}
.settings-about {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  letter-spacing: 0.01em;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .f-btn.spinning, .rail-btn.spinning { animation: none; }
  .topo-cup { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
