/* ============================================================
   Escapadinha a Dois — Views e componentes de ecrã
   Login, topbar, tab bar flutuante, sheets, Agora, Roteiro,
   Decidir, Memórias, Nós, Surpresa, Rewind.
   ============================================================ */

/* ---------- Topbar ---------- */
#topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 0; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-soft); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.me-chip {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.pill.is-online { color: var(--success); border-color: oklch(0.780 0.140 165 / 0.45); }
.pill.is-online .dot { background: var(--success); }
.pill.is-off { color: var(--faint); }

/* ---------- Tab bar flutuante ---------- */
#tabbar {
  bottom: calc(12px + var(--safe-b));
  left: 50%;
  width: calc(100% - 24px);
  max-width: calc(var(--shell-max) - 24px);
  border-radius: 24px;
  border: 1px solid var(--border);
  background: oklch(0.170 0.022 340 / 0.84);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 6px;
  box-shadow: 0 12px 40px oklch(0.08 0.02 340 / 0.55);
}
.tab-btn { padding: 8px 4px; border-radius: 18px; gap: 4px; max-width: none; }
.tab-btn .tab-ico { display: inline-flex; }
.tab-btn .tab-ico svg { width: 22px; height: 22px; }
.tab-btn.is-active { background: oklch(0.650 0.250 5 / 0.14); color: var(--accent-soft); }
.tab-btn.is-active .tab-ico svg { filter: none; color: var(--accent); }
main { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 40px); }
#heart-fab { bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); width: 54px; height: 54px; }

/* Transições entre views */
::view-transition-old(root) { animation: vt-out 160ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 240ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: oklch(0.08 0.02 340 / 0.62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--ease);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: var(--shell-max); max-height: 90dvh;
  background: var(--surface); border: 1px solid var(--border);
  border-bottom: 0; border-radius: 22px 22px 0 0;
  padding: 6px 18px calc(18px + var(--safe-b));
  transform: translateY(100%); transition: transform 320ms var(--ease);
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 6px auto 12px; cursor: grab; touch-action: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-title { font-size: 20px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
body.sheet-open { overflow: hidden; }
.sheet-hero { margin: 0 -18px 14px; height: 200px; position: relative; overflow: hidden; }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-hero .sc-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 60%); }

/* ---------- Login ---------- */
#login {
  position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: calc(16px + var(--safe-t)) 20px calc(16px + var(--safe-b)); overflow-y: auto;
}
#login[hidden] { display: none; }
.login-inner { width: 100%; max-width: 380px; margin: auto 0; }
.login-cover { position: relative; height: min(200px, 24dvh); border-radius: 18px; overflow: hidden; margin-bottom: 22px; }
.login-cover img { width: 100%; height: 100%; object-fit: cover; }
.login-cover .sc-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 8%, transparent 70%); }
.login-title { font-size: 34px; letter-spacing: -0.035em; line-height: 1; }
.login-sub { color: var(--muted); margin-top: 8px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 18px; }
.who-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--border); text-align: left;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.who-btn:active { transform: scale(0.97); }
.who-btn.is-selected { border-color: var(--accent); background: oklch(0.222 0.040 350); }
.who-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.who-btn.is-selected .who-avatar { background: var(--accent); color: var(--accent-ink); }
.who-name { font-weight: 600; font-size: 14px; }
.who-role { font-size: 11.5px; color: var(--muted); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 16px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-strong); transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease); }
.pin-dot.is-on { background: var(--accent); border-color: var(--accent); box-shadow: var(--glow-soft); transform: scale(1.1); }
.pin-dots.shake { animation: shake 400ms var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-key {
  height: 60px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink);
  transition: background var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.pin-key:active { transform: scale(0.94); background: var(--surface-2); }
.pin-key.is-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.pin-key svg { width: 24px; height: 24px; }
.login-err { min-height: 20px; color: var(--accent-soft); font-size: 13px; text-align: center; margin-top: 12px; }

/* ---------- Agora ---------- */
.eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.eyebrow .date { font-weight: 600; }
.weather { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--amber); }
.weather svg { width: 16px; height: 16px; }
.hero { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--glow-soft); }
.hero.is-live { box-shadow: var(--glow-accent); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 28px oklch(0.650 0.250 5 / 0.5), 0 0 64px oklch(0.650 0.250 5 / 0.22); } }
.hero-img { height: 230px; position: relative; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-img .sc-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0%, oklch(0.178 0.02 340 / 0.35) 45%, transparent 75%); }
.hero-pills { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.hero-body { padding: 4px 18px 18px; margin-top: -30px; position: relative; }
.hero-title { font-size: 24px; letter-spacing: -0.03em; line-height: 1.08; }
.hero-desc { color: var(--muted); margin-top: 8px; font-size: 14px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; }
.next-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.next-row > svg { width: 18px; height: 18px; color: var(--faint); }
.next-row img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.next-k { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.next-t { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; margin-top: 1px; }
.countdown { text-align: center; padding: 22px 16px; }
.countdown .cd-k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.countdown .cd-v { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.countdown .cd-v small { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.stat-k { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stat-v { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.task-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-card);
  background: oklch(0.222 0.045 350); border: 1px solid oklch(0.650 0.250 5 / 0.5); box-shadow: var(--glow-soft); text-align: left; width: 100%;
}
.task-banner > svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.task-banner b { font-family: var(--font-display); display: block; font-size: 15px; }
.task-banner span { font-size: 12.5px; color: var(--muted); }
.done-card { text-align: center; padding: 30px 18px; }
.done-card svg { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 10px; filter: drop-shadow(0 0 10px oklch(0.650 0.250 5 / 0.8)); }

/* ---------- Roteiro ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--border); border-radius: 1px; }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-dot { position: absolute; left: -22px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); }
.tl-item.is-done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-item.is-live .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px oklch(0.650 0.250 5 / 0.25); animation: pulse-dot 2s var(--ease) infinite; }
.tl-card { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); width: 100%; text-align: left; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast); }
.tl-card:active { transform: scale(0.985); }
.tl-item.is-live .tl-card { border-color: oklch(0.650 0.250 5 / 0.45); }
.tl-item.is-done .tl-card { opacity: 0.62; }
.tl-card img { width: 78px; height: 78px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.tl-time { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; margin-top: 2px; line-height: 1.2; }
.tl-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--accent-soft); }
.tl-chev { color: var(--faint); flex-shrink: 0; }
.tl-chev svg { width: 18px; height: 18px; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.checks { display: flex; flex-direction: column; gap: 2px; }
.check-xp { margin-left: auto; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- Decidir ---------- */
.deck-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.deck-more { margin-top: 12px; }
.deck-more svg { transform: rotate(90deg); }
.task-banner.is-quiet { background: var(--surface); border-color: var(--border); box-shadow: none; }
.task-banner.is-quiet svg { color: var(--muted); }
.task-banner > svg:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--faint); }
.result-wait { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--faint); flex-shrink: 0; }
.result-wait svg { width: 22px; height: 22px; }
.result-item:disabled { opacity: 0.7; }
.result-item[data-detail] { width: 100%; text-align: left; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.menu-list li b { font-weight: 600; white-space: nowrap; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 14px 0 0; }
.info-list div { min-width: 0; }
.info-list dt { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.info-list dd { margin: 2px 0 0; font-size: 14px; }
.why { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: oklch(0.222 0.040 350); color: var(--accent-soft); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.why svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.deck-head { margin-bottom: 4px; }
.deck-stage { height: min(60dvh, 480px); }
.deck-card { border-radius: 18px; box-shadow: 0 16px 40px oklch(0.08 0.02 340 / 0.5); }
.deck-body h3 { font-size: 24px; letter-spacing: -0.03em; }
.deck-body .deck-vibe { color: var(--accent-soft); font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.deck-body p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.vote-row { display: flex; gap: 8px; margin-top: 14px; }
.vote-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.vote-chip.is-yes { color: var(--success); border-color: oklch(0.780 0.140 165 / 0.4); }
.vote-chip.is-no { color: var(--faint); }
.vote-chip.is-match { color: var(--accent-soft); border-color: oklch(0.650 0.250 5 / 0.5); box-shadow: var(--glow-soft); }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.result-item img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.result-item.is-match { border-color: oklch(0.650 0.250 5 / 0.5); }

/* ---------- Memórias ---------- */
.mem-grid { gap: 14px 12px; }
.polaroid { cursor: pointer; }
.polaroid .pol-by { position: absolute; top: 12px; left: 12px; }
.polaroid { position: relative; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--faint); }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.photo-big { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: var(--surface-2); }
.rewind-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); width: 100%; text-align: left; }
.rewind-cta svg { width: 26px; height: 26px; }
.rewind-cta b { font-family: var(--font-display); display: block; font-size: 16px; }
.rewind-cta span { font-size: 12.5px; opacity: 0.8; }

/* ---------- Nós ---------- */
.us-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 4px; }
.us-avatars { display: flex; }
.us-avatar { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; background: var(--surface-2); border: 2px solid var(--bg); }
.us-avatar.is-me { background: var(--accent); color: var(--accent-ink); }
.us-avatar + .us-avatar { margin-left: -12px; }
.us-names { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.rules details { border-top: 1px solid var(--border); }
.rules details:last-child { border-bottom: 1px solid var(--border); }
.rules summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary svg { width: 18px; height: 18px; color: var(--faint); transition: transform var(--dur-fast) var(--ease); }
.rules details[open] summary svg { transform: rotate(90deg); }
.rules p { padding: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.list-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border-top: 1px solid var(--border); text-align: left; font-size: 14px; font-weight: 500; }
.list-btn svg { width: 20px; height: 20px; color: var(--muted); }
.list-btn.is-danger { color: var(--danger); }
.list-btn.is-danger svg { color: var(--danger); }
.credits { font-size: 12px; color: var(--faint); line-height: 1.5; }
.credits li { margin: 4px 0; }

/* ---------- Desktop: frame de telemóvel ---------- */
@media (min-width: 1024px) {
  body { background: oklch(0.10 0.015 340); }
  #app, #login { max-width: 430px; min-height: auto; height: 880px; margin: 40px auto; border-radius: 44px; border: 1px solid var(--border-strong); overflow: hidden; box-shadow: 0 40px 120px oklch(0 0 0 / 0.6); position: relative; background: var(--bg); }
  #login { inset: auto; overflow-y: auto; }
  #login[hidden] { display: none; }
  #app main { overflow-y: auto; }
  #tabbar, #heart-fab { position: absolute; }
  #tabbar { left: 50%; }
  #heart-fab { right: 16px; }
}

/* ---------- Plano (Timeline com conectores) ---------- */
.plan-page {
  display: flex;
  flex-direction: column;
}
.plan-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--border);
}
.plan-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.plan-stat {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.plan-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 14px 0 10px;
}

/* Conectores de estrada */
.plan-connector {
  display: flex;
  align-items: stretch;
  min-height: 40px;
  position: relative;
}
.plan-conn-time {
  width: 50px;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 10px;
}
.plan-conn-line {
  width: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.plan-conn-line i {
  width: 2px;
  height: 100%;
  background: var(--border-strong);
  display: block;
}
.plan-connector.is-active .plan-conn-line i {
  background: var(--accent);
}
.plan-conn-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
}
.plan-conn-text {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.plan-connector.is-decided .plan-conn-text {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}
.plan-connector.is-active .plan-conn-text {
  color: var(--accent-deep);
  font-weight: 600;
  font-style: normal;
}
.plan-conn-wait {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* Nós de paragem */
.plan-node {
  display: flex;
  align-items: stretch;
  min-height: 68px;
  position: relative;
}
.plan-node-time {
  width: 50px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  padding-top: 14px;
}
.plan-node.is-pending .plan-node-time {
  color: var(--muted);
  font-weight: 500;
}
.plan-node.is-arrived .plan-node-time {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
}
.plan-node-marker {
  width: 22px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.plan-node-marker::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
  z-index: 0;
}
.plan-node-marker .dot {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: var(--surface);
}
.plan-node-marker .dot-solid {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface);
}
.plan-node.is-arrived .plan-node-marker .dot-solid {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.plan-node-marker .dot-active {
  width: 11px;
  height: 11px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-pale);
}
.plan-node-marker .dot-ring {
  width: 10px;
  height: 10px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}

.plan-node-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--r-card);
  text-align: left;
  border: 1px solid transparent;
  background: none;
  color: inherit;
  margin: 4px 0;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.plan-node.is-decided .plan-node-card {
  background: var(--surface);
  border-color: var(--border);
}
.plan-node.is-decided .plan-node-card:active {
  transform: scale(0.985);
}
.plan-node.is-decided .plan-node-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}
.plan-node-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
}
.plan-node-tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.plan-node-active-box {
  background: var(--accent-pale);
  border-color: #d7b5ac;
  padding: 10px 12px;
}
.plan-node-pending-box {
  padding: 10px 6px;
}
.plan-node-options {
  font-size: 12px;
  margin-top: 2px;
  color: var(--accent-deep);
  font-weight: 500;
}
.plan-node-options.muted {
  color: var(--faint);
  font-weight: 400;
}
.plan-node-wait {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.plan-add-btn {
  margin: 10px 0 18px;
}

/* ---------- Feed de Momentos ---------- */
.feed-page {
  display: flex;
  flex-direction: column;
}
.feed-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--border);
}
.feed-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.feed-stat {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.feed-shoot-btn {
  margin: 12px 0 16px;
}
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}
.feed-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feed-time {
  width: 44px;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.feed-body {
  flex: 1;
  min-width: 0;
}
.feed-moment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.feed-moment-card:active {
  transform: scale(0.99);
}
.feed-moment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.feed-moment-theme {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.feed-moment-reopen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.feed-moment-reopen svg {
  width: 14px;
  height: 14px;
}
.feed-moment-text {
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.feed-moment-stop {
  font-size: 11.5px;
  color: var(--muted);
}
.feed-inline-polaroid {
  margin-top: 6px;
}

/* Filtros de comida e categorias */
.category-filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filter-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.cat-pill span { font-size: 13px; }
.cat-pill small { opacity: 0.65; font-size: 11px; font-weight: 500; }
.cat-pill:hover { border-color: var(--accent); }
.cat-pill.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cat-pill.is-active small { opacity: 0.85; color: var(--accent-soft); }

/* Grande Final em Story */
.finale-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2b231c 0%, #1a1916 100%);
  color: #fffdf9;
  border: 1px solid rgba(226, 182, 171, 0.3);
  padding: 24px 20px;
  border-radius: var(--r-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
.finale-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(226, 182, 171, 0.18);
  color: #e2b6ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.finale-badge svg { width: 14px; height: 14px; }
.finale-card h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  color: #fffdf9;
  margin-bottom: 8px;
}
.finale-card p {
  font-size: 14px;
  line-height: 1.45;
  color: #d7d0c7;
  margin-bottom: 16px;
}
.finale-card .btn-primary {
  background: #fffdf9;
  color: #1a1916;
  font-weight: 600;
}

.morning-card { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px; background: var(--amber-pale); color: #6f5224; border: 1px solid #dfcea7; border-radius: 9px; text-align: left; }
.morning-card > svg:first-child { width: 23px; height: 23px; }
.morning-card > svg:last-child { width: 17px; height: 17px; margin-left: auto; opacity: .55; }
.morning-card b, .morning-card span { display: block; }
.morning-card b { font-size: 14px; }
.morning-card span { margin-top: 2px; font-size: 11.5px; opacity: .78; }

.settings-select select { max-width: 130px; border: 0; background: transparent; color: var(--muted); font: inherit; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .game-orb i, .game-orb span { animation: none !important; }
}

/* Mapa partilhado — percurso escolhido e posição do condutor */
.live-map-card { overflow: hidden; background: #e9e4d9; border: 1px solid #d7d0c3; border-radius: 18px; }
.live-map-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 17px 17px 10px; }
.live-map-head span { display: block; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.live-map-head h2 { margin-top: 3px; font-family: var(--font-body); font-size: 18px; letter-spacing: -.03em; }
.live-map-head > b { display: flex; align-items: center; gap: 5px; max-width: 110px; color: var(--muted); font-size: 9px; line-height: 1.2; text-align: right; }
.live-map-head > b i { width: 7px; height: 7px; flex: 0 0 auto; background: #aaa396; border-radius: 50%; }
.live-map-head > b.is-live i { background: var(--accent); box-shadow: 0 0 0 4px rgba(187,91,70,.13); }
.live-map-canvas { position: relative; height: 285px; margin: 0 10px; overflow: hidden; background: #ede9df; border-radius: 13px; }
.live-map-canvas svg { width: 100%; height: 100%; }
.map-coast { fill: #f5f1e9; stroke: #cfc8bb; stroke-width: .55; }
.map-river { fill: none; stroke: #b9c9c7; stroke-width: 1.1; stroke-dasharray: 2 2; opacity: .72; }
.map-route { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 2; }
.map-choice circle { fill: #f9f5ed; stroke: var(--accent); stroke-width: 1.1; }
.map-choice text { fill: #49453e; font-family: var(--font-body); font-size: 3.15px; font-weight: 650; paint-order: stroke; stroke: #f5f1e9; stroke-width: 1.5px; stroke-linejoin: round; }
.map-live > circle:last-child { fill: var(--accent); stroke: #fff; stroke-width: 1.4; }
.map-live .pulse { fill: rgba(187,91,70,.14); stroke: rgba(187,91,70,.32); stroke-width: .6; animation: map-pulse 2s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.map-compass { position: absolute; top: 10px; right: 10px; display: grid; width: 26px; height: 26px; place-items: center; color: #706a60; background: rgba(255,255,255,.78); border-radius: 50%; font: 700 9px/1 var(--font-body); }
.live-map-card > p { padding: 10px 17px 14px; color: var(--muted); font-size: 11px; }
.source-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding: 11px 12px; color: var(--accent); background: var(--accent-pale); border-radius: 9px; font-size: 12px; font-weight: 650; }
.source-link svg { width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .map-live .pulse { animation: none !important; opacity: .5; }
}

/* ============================================================
   Refresh 2026 — Aveiro editorial, claro e utilitário
   ============================================================ */

/* Estrutura e navegação */
#topbar {
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}
.brand { gap: 10px; }
.brand-mark {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: none;
}
.brand-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.brand-name i { color: var(--accent); font-style: normal; margin: 0 3px; }
.me-chip {
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.pill.is-online { color: var(--success); border-color: #b8c8bc; background: var(--success-pale); }

#tabbar {
  bottom: 0;
  width: 100%;
  max-width: var(--shell-max);
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 253, 249, 0.94);
  padding: 7px 8px calc(7px + var(--safe-b));
  box-shadow: none;
}
.tab-btn {
  padding: 7px 4px;
  border-radius: 7px;
  color: var(--faint);
}
.tab-btn.is-active { background: var(--accent-pale); color: var(--accent-deep); }
.tab-btn.is-active svg { filter: none; }

#heart-fab {
  width: 48px;
  height: 48px;
  right: max(14px, calc(50% - var(--shell-max) / 2 + 14px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  border-radius: 10px;
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 22px rgba(69, 45, 38, 0.14);
}
#heart-fab svg { width: 22px; height: 22px; }

/* Componentes base */
.btn { border-radius: 6px; box-shadow: none; }
.btn-primary { background: var(--ink); color: var(--surface); box-shadow: none; }
.btn-primary:hover { background: #3b3933; filter: none; }
.btn-secondary { background: var(--accent-pale); color: var(--accent-deep); border: 1px solid #dfc3bb; }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { background: #f8f4ed; }
.card, .next-row, .tl-card, .result-item, .who-btn, .badge-cell {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}
.glass-pill {
  background: rgba(36, 35, 31, 0.78);
  color: #fffdf9;
  box-shadow: none;
}
.pill { background: var(--surface); border-color: var(--border); }
.pill.is-live { color: var(--accent-deep); border-color: #d6aaa0; background: var(--accent-pale); box-shadow: none; }
.pill.is-live .dot { background: var(--accent); box-shadow: none; }
.progress { height: 6px; background: var(--surface-2); }
.progress > i { background: var(--accent); box-shadow: none; }
.ring-fill { stroke: var(--accent); filter: none; }

/* Login */
#login { background: var(--bg); }
.login-cover { border-radius: 12px; }
.login-cover .sc-shade { background: rgba(36, 35, 31, 0.12); }
.login-title { color: var(--ink); font-size: 38px; }
.who-btn { border-radius: 9px; }
.who-btn.is-selected { border-color: #c59a90; background: var(--accent-pale); }
.who-avatar { border-radius: 8px; }
.who-btn.is-selected .who-avatar { background: var(--accent); color: white; }
.pin-dot.is-on { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.pin-key { background: var(--surface); border-color: var(--border); border-radius: 9px; }
.login-err { color: var(--danger); }

/* Agora */
.eyebrow { align-items: flex-start; }
.eyebrow .date { line-height: 1.35; }
.eyebrow .date b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.035em; }
.weather { color: var(--amber); background: var(--amber-pale); padding: 5px 8px; border-radius: 6px; }
.hero, .hero.is-live {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: none;
  animation: none;
}
.hero-img { height: 214px; }
.hero-img .sc-shade { background: rgba(36, 35, 31, 0.1); }
.hero-body { padding: 18px; margin-top: 0; }
.hero-title { font-size: 29px; }
.hero-desc { line-height: 1.55; }
.next-row { border-radius: 9px; }
.next-row img { border-radius: 6px; }
.stat-v { font-family: var(--font-body); font-size: 21px; }
.task-banner {
  border-radius: 9px;
  background: var(--accent-pale);
  border-color: #dfc3bb;
  box-shadow: none;
}
.task-banner > svg { color: var(--accent-deep); }
.task-banner.is-quiet { background: var(--surface); border-color: var(--border); }

/* Roteiro */
.timeline::before { width: 1px; background: var(--border-strong); }
.tl-dot { background: var(--bg); border-color: var(--border-strong); }
.tl-item.is-done .tl-dot, .tl-item.is-live .tl-dot { background: var(--accent); border-color: var(--accent); box-shadow: none; animation: none; }
.tl-item.is-live .tl-card { border-color: #c59a90; }
.tl-tag { color: var(--accent-deep); }
.tl-card img { border-radius: 7px; }

/* Escolhas: um momento de cada vez, três cartas no máximo */
.choice-page { padding-bottom: 8px; }
.choice-intro {
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--border);
}
.choice-route {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.choice-route strong { color: var(--accent-deep); font-size: 13px; }
.choice-intro h1, .deck-head h1 {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 0.98;
  max-width: 390px;
}
.choice-intro > p, .deck-head > p {
  margin-top: 12px;
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.55;
}
.choice-count { margin-top: 20px; font-size: 12px; color: var(--muted); }
.choice-count i {
  display: block;
  position: relative;
  height: 3px;
  margin-top: 7px;
  background: var(--surface-2);
  overflow: hidden;
}
.choice-count i::after { content: ''; display: block; width: var(--choice-pct); height: 100%; background: var(--accent); }
.choice-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--border-strong);
  background: rgba(255, 253, 249, 0.55);
  color: var(--muted);
  font-size: 13px;
}
.choice-note svg { width: 18px; height: 18px; flex: 0 0 auto; }
.choice-note.is-complete { border-color: var(--success); color: var(--success); background: var(--success-pale); }
.choice-step { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; font-weight: 600; color: var(--accent-deep); }

.deck-stage { height: min(54dvh, 430px); min-height: 390px; margin-top: 12px; }
.deck-card {
  border-radius: 12px;
  border-color: var(--border);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(67, 52, 45, 0.08);
}
.deck-card .deck-img { bottom: 44%; }
.deck-card .deck-img img { object-position: center; }
.deck-card .deck-shade { display: none; }
.deck-card .deck-body {
  top: 56%;
  bottom: 0;
  padding: 17px 18px;
  background: var(--surface);
}
.deck-card .glass-pill { background: var(--surface-2); color: var(--muted); }
.deck-body h3 { font-size: 27px; color: var(--ink); }
.deck-body .deck-vibe { color: var(--accent-deep); }
.deck-body p {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck-more { margin-top: 10px; background: transparent; padding: 0; border: 0; min-height: 30px; color: var(--accent-deep); }
.deck-stamp { border-width: 2px; background: var(--surface); text-shadow: none; }
.deck-stamp.stamp-yes { color: var(--success); }
.deck-stamp.stamp-no { color: var(--muted); }
.deck-actions { gap: 10px; margin-top: 12px; }
.deck-action {
  width: auto;
  height: 46px;
  flex: 1;
  border-radius: 6px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.deck-action span { display: inline; }
.deck-action svg { width: 18px; height: 18px; }
.deck-action.action-no { background: var(--surface); border-color: var(--border); color: var(--muted); }
.deck-action.action-yes { background: var(--ink); color: var(--surface); box-shadow: none; }
.swipe-hint { text-align: center; color: var(--faint); font-size: 11.5px; margin-top: 8px !important; }
.result-list { gap: 8px; }
.result-item { border-radius: 9px; min-height: 76px; }
.result-item.is-match { border-color: #d7b5ac; background: #fffaf7; }
.result-item.is-due { border-color: #d7b5ac; }
.result-item.is-locked { opacity: 0.72; }
.result-item.is-locked:hover { opacity: 1; background: #f8f4ed; }
.result-title { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.result-wait { border-radius: 7px; background: var(--surface-2); }
.compare-list { display: flex; flex-direction: column; gap: 8px; }
.compare-item { display: flex; align-items: center; gap: 11px; padding: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.compare-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.compare-item h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: -0.01em; }
.compare-item p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.preview-lock {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 12px;
  background: var(--surface-2);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
}
.preview-lock svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.preview-list { display: flex; flex-direction: column; }
.preview-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.preview-item:first-child { border-top: 1px solid var(--border); }
.preview-item img { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; }
.preview-item b { display: block; font-size: 13.5px; font-weight: 600; }
.preview-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.preview-item > svg { width: 17px; height: 17px; color: var(--faint); }
.why { background: var(--accent-pale); color: var(--accent-deep); }

/* Sheets, estados e feedback */
.sheet { background: var(--surface); border-color: var(--border); }
.sheet-hero { border-radius: 9px; }
.sheet-hero .sc-shade, .stop-cover .sc-shade { background: rgba(36, 35, 31, 0.1); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); box-shadow: none; }
.check input:checked ~ .txt { text-decoration-color: #c89c91; }
.surprise { background: var(--accent-pale); border-color: #d7b5ac; }
.surprise.is-unlocked .surprise-title { color: var(--accent-deep); }
.toast { border-radius: 8px; background: var(--ink); color: var(--surface); border: 0; box-shadow: 0 10px 28px rgba(36, 35, 31, 0.16); }
.toast.toast-accent { border: 0; box-shadow: 0 10px 28px rgba(36, 35, 31, 0.16); }
.toast svg { color: #e1a99b; }
.badge-cell.is-unlocked { border-color: #d7b5ac; background: var(--accent-pale); box-shadow: none; }
.badge-cell.is-unlocked svg { color: var(--accent); filter: none; }
.rewind-cta { background: var(--ink); color: var(--surface); box-shadow: none; }
.sp-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-pale); color: var(--accent-deep); }
.sp-icon svg { width: 21px; height: 21px; }
.wheel { background: var(--accent-pale); border-color: var(--accent); box-shadow: none; }
.done-card svg, .badge-pop svg, .fx-heart { filter: none; }
.badge-pop { background: var(--surface); border-color: #d7b5ac; box-shadow: 0 16px 40px rgba(67, 52, 45, 0.14); }

@media (min-width: 1024px) {
  body { background: #e8e1d8; }
  #app, #login {
    border-radius: 24px;
    border-color: #d2c8bc;
    background: var(--bg);
    box-shadow: 0 24px 70px rgba(67, 52, 45, 0.16);
  }
}

/* ---------- Modo Estrada / Car Display ---------- */
.car-display-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #121316;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.car-display-sheet {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.car-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.car-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.car-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.car-close-btn svg { width: 16px; height: 16px; }
.car-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}
.car-hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
}
.car-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.car-time {
  font-size: 14px;
  font-weight: 700;
  color: #e0a99b;
  letter-spacing: 0.03em;
}
.car-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
}
.car-title {
  font-size: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}
.car-desc {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
}
.car-copilot-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.car-copilot-banner svg { width: 18px; height: 18px; flex-shrink: 0; }
.car-copilot-banner.is-waiting {
  background: rgba(230, 126, 34, 0.18);
  border-color: rgba(230, 126, 34, 0.4);
  color: #f39c12;
}
.car-copilot-banner.is-ready {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.35);
  color: #2ecc71;
}
.car-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.btn-car {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn-car:active { transform: scale(0.97); }
.btn-car svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-car-text { display: flex; flex-direction: column; text-align: left; }
.btn-car-text strong { font-size: 15px; font-weight: 700; line-height: 1.2; }
.btn-car-text small { font-size: 11px; opacity: 0.75; margin-top: 3px; line-height: 1.2; }
.btn-car-primary {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
}
.btn-car-waze {
  background: #0284c7;
  color: #fff;
  border-color: #0369a1;
}
.car-actions-row {
  display: flex;
  gap: 12px;
}
.btn-car-arrive {
  flex: 2;
  background: #16a34a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
}
.btn-car-heart {
  flex: 1;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
}
.car-footer-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.car-voice-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
}
.car-voice-toggle.is-active {
  background: rgba(147, 51, 234, 0.25);
  border-color: rgba(147, 51, 234, 0.5);
  color: #d8b4fe;
}
.car-voice-toggle svg { width: 18px; height: 18px; }
.car-next-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* ---------- Galeria Multi-Foto nas Folhas de Detalhe ---------- */
.sheet-gallery {
  position: relative;
  margin: -16px -16px 14px -16px;
}
.sheet-gallery .sheet-hero {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}
.sheet-gallery .sheet-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 220ms ease;
}
.photo-counter-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px 16px 4px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs .thumb-btn {
  width: 58px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.gallery-thumbs .thumb-btn.is-active {
  border-color: var(--accent);
  transform: scale(1.04);
}
.gallery-thumbs .thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Pratos de Exemplo no Menu dos Restaurantes ---------- */
.menu-dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px 0;
}
.dish-card {
  display: flex;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  align-items: center;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.dish-card:hover {
  border-color: var(--accent);
}
.dish-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.dish-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dish-meta {
  flex: 1;
  min-width: 0;
}
.dish-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.dish-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--text-1);
}
.dish-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  font-family: var(--font-display);
}
.dish-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* ---------- Filtros de Agrupamento 3 a 3 (Proximidade / Zonas) ---------- */
.cluster-pills-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.cluster-pills-bar::-webkit-scrollbar { display: none; }
.cluster-pill {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.cluster-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--glow-soft);
}

/* ---------- O que chega para ela ---------- */
.task-banner.is-soft {
  background: var(--amber-pale);
  border-color: #dfcea7;
  box-shadow: none;
}
.task-banner.is-soft > svg:first-child { color: var(--amber); }
.task-banner { transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.task-banner:not(.is-quiet):active { transform: scale(0.985); }
.glass-pill.is-on { color: var(--accent-soft); font-weight: 600; }

/* Toque: tudo o que se carrega responde. */
.hero, .next-row, .list-btn, .result-item, .polaroid, .collage-cta, .rewind-cta {
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease), background 170ms linear;
}
.hero:active, .next-row:active, .result-item:active, .collage-cta:active, .rewind-cta:active { transform: scale(0.985); }
.list-btn:active { background: var(--surface-2); }
.tab-btn { transition: color 160ms linear; }
.tab-btn .tab-ico { transition: transform 220ms var(--ease); }
.tab-btn.is-active .tab-ico { transform: translateY(-2px); }
.tab-btn:active .tab-ico { transform: scale(0.9); }


/* ---------- Os momentos de hoje (só o condutor) ---------- */
.moment-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.moment-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.moment-row.is-done { background: var(--success-pale); border-color: #c4d6c9; }
.moment-row.is-sent { border-color: var(--accent); }
.moment-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.moment-row-head b { font-family: var(--font-display); font-size: 15px; }
.moment-row-when { flex-shrink: 0; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.moment-row-text { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.moment-row-place { display: block; margin-top: 6px; color: var(--faint); font-size: 11.5px; }
.moment-row-actions { display: flex; gap: 8px; margin-top: 10px; }
.moment-row-actions .btn { flex: 1; padding: 0 10px; font-size: 12.5px; }
.moment-row-actions .btn svg { width: 15px; height: 15px; }

.moment-ritual {
  margin-top: 18px;
  padding: 16px;
  background: var(--amber-pale);
  border: 1px solid #dfcea7;
  border-radius: var(--r-card);
}
.moment-ritual h3 { font-size: 16px; }
.moment-ritual p { margin-top: 6px; }
.ritual-steps { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; }
.ritual-steps button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: rgba(255, 253, 249, 0.7);
  border: 1px solid #e2d3b2;
  border-radius: 10px;
  transition: transform 160ms var(--ease), border-color 160ms linear;
}
.ritual-steps button:active { transform: scale(0.985); }
.ritual-steps b { display: block; font-family: var(--font-display); font-size: 14px; color: #6f5224; }
.ritual-steps span { display: block; margin-top: 2px; color: #8a7247; font-size: 12px; line-height: 1.4; }
.ritual-steps .is-past button { opacity: 0.55; }
.ritual-steps .is-now button { border-color: var(--amber); background: #fffdf9; }

/* ---------- "Agora": um cartão principal de cada vez ---------- */
.now-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.now-photo { position: relative; height: 190px; overflow: hidden; }
.now-photo img { width: 100%; height: 100%; object-fit: cover; }
.now-body { padding: 18px; }
.now-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.now-title { margin-top: 8px; font-size: 26px; line-height: 1.08; }
.now-text { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.now-actions { display: grid; gap: 8px; margin-top: 18px; }

.now-card.is-choice { background: var(--accent-pale); border-color: #e3c7c0; }
.now-card.is-choice .now-title { color: var(--accent-deep); }
.now-card.is-moment { background: var(--amber-pale); border-color: #dfcea7; }
.now-card.is-moment .now-kicker { color: var(--amber); }
.now-card.is-countdown { text-align: center; }
.now-card.is-countdown .now-actions { margin-top: 10px; }
.now-card.is-countdown .cd-v {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.now-card.is-countdown .cd-v small { font-size: 18px; color: var(--faint); }
.now-card.is-openable { cursor: pointer; transition: transform 170ms var(--ease); }
.now-card.is-openable:active { transform: scale(0.99); }

/* ---------- Vale saber ---------- */
.know-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.know-list li { position: relative; padding-left: 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.know-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Entrada: idioma e dica iOS ---------- */
.login-langs { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.login-lang { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600; min-height: 36px; }
.login-lang.is-on { color: var(--text); border-color: var(--text); }
.login-hint { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 8px 0; line-height: 1.45; }

/* ---------- Versões de uma fotografia ---------- */
.looks-title { font-size: 13px; font-weight: 700; margin: 4px 0 8px; }
.looks-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.looks-strip::-webkit-scrollbar { display: none; }
.looks-strip button { flex: 0 0 auto; width: 76px; scroll-snap-align: start; display: grid; gap: 4px; text-align: center; font-size: 11px; color: var(--muted); }
.looks-strip button img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; background: var(--surface-2); display: block; }
.looks-strip button[aria-pressed="true"] { color: var(--text); font-weight: 700; }
.looks-strip button[aria-pressed="true"] img { border-color: var(--accent); }
.looks-strip button.is-waiting img { opacity: 0.35; filter: grayscale(1); }
.looks-status { color: var(--muted); font-size: 12px; margin: 0 0 10px; line-height: 1.45; }
.looks-restyle { display: flex; gap: 8px; align-items: stretch; }
.looks-restyle .input { flex: 1; min-width: 0; }

/* ---------- Restyle (AI) ---------- */
.restyle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.restyle-grid button { display: grid; gap: 3px; justify-items: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 11px; color: var(--muted); min-height: 64px; }
.restyle-grid button b { color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.15; text-align: center; }
.restyle-grid button img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.restyle-grid button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.restyle-grid button[data-state="queued"] small, .restyle-grid button[data-state="processing"] small { color: var(--accent); }
.restyle-grid button[data-state="failed"] small { color: #b3261e; }
.restyle-grid button:disabled { opacity: 0.6; }
