@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  color-scheme: light;
  --espresso-950: #2a1d18;
  --espresso-900: #3b2922;
  --espresso-800: #4b352c;
  --walnut-700: #6f4b37;
  --caramel-500: #b97848;
  --caramel-200: #ead5c4;
  --cement-700: #68635e;
  --cement-500: #8c8680;
  --cement-300: #cbc5be;
  --cement-200: #ded9d2;
  --cement-100: #ebe7e1;
  --paper: #f5f2ed;
  --surface: #fffdf9;
  --white: #ffffff;
  --danger: #8d332f;
  --warning: #8a6116;
  --info: #365f70;
  --success: #386044;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(42 29 24 / 8%);
  --shadow-md: 0 10px 30px rgb(42 29 24 / 10%);
  --z-skip: 30;
  --z-nav: 20;
  --z-header: 10;
  font: 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-height: 100dvh;
  margin: 0;
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  color: var(--espresso-950);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 18%, rgb(59 41 34 / 3%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 62%, rgb(104 99 94 / 4%) 0 1px, transparent 1.5px);
  background-size: 23px 23px, 31px 31px;
}

h1,
h2,
h3 {
  margin-block: 0.25em 0.55em;
  color: var(--espresso-950);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.18rem, 3vw, 1.45rem);
  font-weight: 720;
}

p,
li {
  text-wrap: pretty;
}

button,
a,
input {
  font: inherit;
}

.auth-layout {
  display: grid;
  min-height: min(700px, calc(100dvh - 140px));
  overflow: hidden;
  border: 1px solid var(--cement-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-intro,
.auth-panel {
  padding: clamp(24px, 6vw, 44px);
}

.auth-intro {
  align-content: end;
  color: var(--white);
  background-color: var(--espresso-900);
  background-image: repeating-linear-gradient(96deg, transparent 0 17px, rgb(255 255 255 / 2%) 18px 19px);
}

.auth-intro h1 {
  max-width: 14ch;
  color: var(--white);
}

.auth-intro p {
  max-width: 48ch;
}

.auth-benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}

.auth-benefits li::before {
  content: "✓";
  color: var(--caramel-200);
  font-weight: 800;
}

.auth-panel {
  align-self: center;
}

.auth-panel form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-panel label {
  font-weight: 720;
}

.auth-primary,
.auth-provider {
  width: 100%;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--cement-700);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--cement-200);
  content: "";
}

.step-label {
  margin: 0 0 8px;
  color: var(--walnut-700);
  font-size: 0.74rem;
  font-weight: 780;
  text-transform: uppercase;
}

.field-help,
.auth-legal,
.form-message {
  margin: 4px 0 12px;
  color: var(--cement-700);
  font-size: 0.82rem;
}

.form-message {
  min-height: 1.25rem;
  color: var(--success);
  font-weight: 650;
}

.form-message.error {
  color: var(--danger);
}

.auth-legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cement-200);
}

.otp-input {
  max-width: 260px;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

button {
  touch-action: manipulation;
}

.skip {
  position: fixed;
  top: 10px;
  left: -999px;
  z-index: var(--z-skip);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--espresso-950);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
}

.skip:focus {
  left: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: 68px;
  padding: env(safe-area-inset-top) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgb(59 41 34 / 10%);
  background: rgb(245 242 237 / 96%);
  box-shadow: var(--shadow-sm);
}

.brand {
  color: var(--espresso-950);
  font-weight: 800;
  font-size: 0.86rem;
}

.brand span {
  color: var(--walnut-700);
  font-weight: 650;
}

#runtime-scope {
  max-width: 42vw;
  overflow: hidden;
  color: var(--cement-700);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(59 41 34 / 14%);
  border-radius: 999px;
  background: var(--surface);
  color: var(--espresso-900);
  box-shadow: var(--shadow-sm);
}

.feather-icon {
  display: block;
  flex: 0 0 auto;
}

main {
  width: min(100%, 780px);
  margin-inline: auto;
  padding: 24px max(18px, env(safe-area-inset-right)) 32px max(18px, env(safe-area-inset-left));
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  background-color: var(--espresso-900);
  background-image:
    repeating-linear-gradient(97deg, transparent 0 14px, rgb(255 255 255 / 2%) 15px 16px),
    linear-gradient(120deg, rgb(42 29 24 / 35%), transparent 68%);
  box-shadow: var(--shadow-md);
}

.hero h1,
.hero h2 {
  color: var(--white);
}

.home-hero {
  display: grid;
  gap: 18px;
}

.hero-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.hero-balance .balance span {
  font-size: 0.38em;
  font-weight: 650;
}

.hero-trust {
  max-width: 56ch;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 0.82rem;
}

.freshness-row {
  margin-top: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.quick-action {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--cement-200);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--espresso-900);
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.quick-action > span {
  min-width: 0;
  display: grid;
}

.quick-action strong,
.quick-action small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action small {
  color: var(--cement-700);
}

.home-grid {
  display: grid;
  gap: 12px;
}

.home-stat,
.home-activity {
  margin: 0;
}

.stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.stat-line span,
.masked-code,
.activity-amount {
  font-variant-numeric: tabular-nums;
}

.masked-code {
  overflow-wrap: anywhere;
}

.text-action {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--walnut-700);
  font-weight: 750;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.home-activity-list li > span {
  min-width: 0;
  display: grid;
}

.home-activity-list small {
  overflow: hidden;
  color: var(--cement-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-inline p {
  margin-bottom: 0;
}

.skeleton-shell {
  display: grid;
  gap: 14px;
}

.skeleton-block {
  min-height: 124px;
  border: 1px solid var(--cement-200);
  border-radius: var(--radius-md);
  background: var(--cement-100);
}

.skeleton-block.hero-shape {
  min-height: 230px;
  border-radius: var(--radius-lg);
  background: var(--espresso-900);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eyebrow {
  margin-block: 0 0.4rem;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  opacity: 0.76;
}

.balance {
  margin: 0.25rem 0;
  font-size: clamp(2rem, 9vw, 3.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.card {
  min-width: 0;
  margin: 12px 0;
  padding: 18px;
  border: 1px solid var(--cement-200);
  border-radius: var(--radius-md);
  background: rgb(255 253 249 / 94%);
  box-shadow: var(--shadow-sm);
}

.card h2,
.card h3 {
  margin-top: 0.15rem;
}

.wide {
  grid-column: 1 / -1;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cement-200);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--caramel-500);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 3px 0;
  padding: 11px 16px;
  border: 1px solid var(--espresso-900);
  border-radius: 12px;
  background: var(--espresso-900);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--espresso-900);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.list,
.compact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li,
.compact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cement-200);
}

.compact li {
  padding: 9px 0;
  font-size: 0.9rem;
}

.list strong,
.compact strong {
  font-variant-numeric: tabular-nums;
}

.session-list li {
  gap: 14px;
}

.session-list li > span:first-child {
  display: grid;
  gap: 3px;
}

.compact-action {
  min-width: 104px;
}

.confirm-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 0;
  border: 1px solid var(--cement-200);
  border-radius: var(--radius-md);
  color: var(--espresso-950);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.confirm-dialog::backdrop {
  background: rgb(42 29 24 / 58%);
}

.confirm-dialog-panel {
  padding: 24px;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--caramel-200);
  color: var(--espresso-900);
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 750;
}

.pill.warning {
  background: #f4e7bd;
  color: #62440d;
}

.pill.ok {
  background: #d9eadf;
  color: #234f32;
}

.pill.danger {
  background: #f1d5d2;
  color: #6f2522;
}

.pill.info {
  background: #dbe8ec;
  color: #294c59;
}

.muted {
  color: var(--cement-700);
}

summary {
  cursor: pointer;
  font-weight: 750;
}

input {
  width: min(100%, 420px);
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--cement-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--espresso-950);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border-top: 1px solid var(--cement-200);
  background: rgb(255 253 249 / 98%);
  box-shadow: 0 -8px 24px rgb(42 29 24 / 8%);
}

.bottom-nav button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--cement-700);
  font-size: 0.68rem;
  cursor: pointer;
}

.bottom-nav button[aria-current="page"] {
  background: var(--caramel-200);
  color: var(--espresso-950);
  font-weight: 750;
}

.state {
  max-width: 600px;
  margin-inline: auto;
  padding: 10vh 20px;
  text-align: center;
}

.spinner {
  width: 38px;
  height: 38px;
  margin: auto;
  border: 4px solid var(--cement-200);
  border-top-color: var(--caramel-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

:focus-visible {
  outline: 3px solid var(--caramel-500);
  outline-offset: 3px;
}

@media (max-width: 450px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .list li {
    align-items: flex-start;
  }

  .list .button {
    min-width: 112px;
  }
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wide {
    grid-column: span 2;
  }

  .auth-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-activity {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  body {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) minmax(0, 780px) 236px minmax(24px, 1fr);
    column-gap: 22px;
    padding-bottom: 0;
  }

  .topbar {
    grid-column: 1 / -1;
    padding-inline: max(28px, calc((100vw - 1080px) / 2));
  }

  .scale-context {
    grid-column: 2 / 4;
  }

  main {
    grid-column: 2;
    margin: 0;
  }

  .bottom-nav {
    position: sticky;
    top: 92px;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 3;
    grid-template-columns: 1fr;
    align-self: start;
    margin-top: 24px;
    padding: 10px;
    border: 1px solid var(--cement-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .bottom-nav button {
    grid-template-columns: 24px 1fr;
    place-items: center start;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .card,
  .button,
  .pill,
  .bottom-nav {
    border: 1px solid CanvasText;
  }
}

/* Saga Member V3 — Contemporary Coffee Club */
:root {
  --v3-ink: #1d1714;
  --v3-espresso: #33231d;
  --v3-brown: #5b3b30;
  --v3-caramel: #c86f3d;
  --v3-apricot: #f2ba83;
  --v3-sage: #a8bd83;
  --v3-lime: #c9e79e;
  --v3-paper: #f7f3ed;
  --v3-cloud: #e9e5df;
  --v3-card: #fffdf9;
}

html { background: #d7d2cc; }

body {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
  background: var(--v3-paper);
  background-image: none;
}

body::before { background: none; opacity: 0; }

.topbar {
  min-height: calc(62px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-bottom: 0;
  background: rgb(247 243 237 / 96%);
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--v3-ink);
  font-size: 0.83rem;
}

.brand b { color: #8a3f1f; font-weight: 800; }
.brand span { margin-left: 3px; color: #625a54; font-size: 0.58rem; font-weight: 700; }

#runtime-scope {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--v3-cloud);
  color: #615850;
  font-size: 0.58rem;
}

.topbar .icon-button { border-color: rgb(29 23 20 / 10%); background: var(--v3-card); box-shadow: none; }
main { padding: 12px 14px 36px; }
.member-view { gap: 20px; animation: member-enter 180ms ease-out both; }
.member-view h1 { font-size: clamp(1.75rem, 8vw, 2.1rem); font-weight: 780; }
.member-view h2 { font-size: 1.18rem; font-weight: 730; }
.member-view p { color: #5f5751; font-size: 0.88rem; line-height: 1.55; }

.eyebrow {
  margin-bottom: 4px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 720;
  text-transform: none;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: stretch;
  min-height: 238px;
  border: 0;
  border-radius: 28px;
  background: var(--v3-cloud);
  box-shadow: 0 1px 0 rgb(29 23 20 / 7%), 0 14px 28px rgb(29 23 20 / 7%);
}

.editorial-hero-copy {
  display: grid;
  align-content: end;
  width: auto;
  margin: 0;
  padding: 20px 4px 20px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.editorial-hero-copy h1 {
  max-width: 12ch;
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 8.2vw, 2.2rem);
  line-height: 1.02;
}

.editorial-hero-copy > p:not(.eyebrow) { max-width: 28ch; color: inherit; font-size: 0.78rem; opacity: 0.76; }
.editorial-hero-home { color: #18311f; background: linear-gradient(145deg, #e4efd7, var(--v3-lime)); }
.editorial-hero-explore { color: #1f2e22; background: linear-gradient(145deg, #e7efe1, var(--v3-sage)); }
.editorial-hero-pass { color: #fffaf4; background: linear-gradient(145deg, var(--v3-espresso), #684231); }
.editorial-hero-rewards, .editorial-hero-quest { color: #3b2317; background: linear-gradient(145deg, #ffe0bd, var(--v3-apricot)); }
.editorial-hero-profile { color: #fffaf4; background: linear-gradient(145deg, #25211f, #534a43); }
.editorial-hero-pass h1, .editorial-hero-profile h1 { color: #fffaf4; }
.editorial-hero-pass .editorial-hero-copy > p, .editorial-hero-profile .editorial-hero-copy > p { color: #fffaf4; }
.member-view .editorial-hero-copy .eyebrow { color: currentColor; opacity: 1; }

.hero-object { position: relative; min-width: 112px; overflow: hidden; }
.hero-object-orbit { position: absolute; top: 42px; right: -30px; width: 142px; height: 142px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.22; }
.hero-object-mark {
  position: absolute;
  top: 78px;
  right: 26px;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 24px;
  background: rgb(255 253 249 / 58%);
  color: inherit;
  transform: rotate(8deg);
}

.editorial-hero-pass .hero-object-mark, .editorial-hero-profile .hero-object-mark { background: rgb(255 255 255 / 10%); }
.hero-object i { position: absolute; width: 9px; height: 9px; border-radius: 3px; background: currentColor; opacity: 0.4; }
.hero-object i:nth-of-type(1) { top: 42px; right: 38px; transform: rotate(12deg); }
.hero-object i:nth-of-type(2) { top: 170px; right: 22px; }
.hero-object i:nth-of-type(3) { top: 152px; right: 102px; transform: rotate(45deg); }

.hero-metrics { gap: 12px; margin-top: 14px; }
.hero-metrics > div { min-width: 54px; }
.hero-metrics strong { font-size: 1.05rem; }
.tier-chip { min-height: 28px; border: 0; background: rgb(255 253 249 / 68%); font-size: 0.64rem; }

.hero-balance-inline { display: flex; align-items: baseline; gap: 7px; margin-top: 12px; }
.hero-balance-inline strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.hero-balance-inline span { font-size: 0.68rem; font-weight: 650; }
.profile-avatar { display: grid; width: 34px; height: 34px; margin-top: 13px; place-items: center; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; font-weight: 780; }

.freshness-row { display: flex; align-items: center; justify-content: space-between; margin: -8px 2px 0; }
.freshness-label { color: #5f5751; font-size: 0.66rem; font-weight: 650; }
.pill { min-height: 26px; border-color: rgb(29 23 20 / 9%); font-size: 0.63rem; }
.content-section { gap: 11px; }
.editorial-section-heading { align-items: center; }
.editorial-section-heading .eyebrow, .editorial-card > .eyebrow { color: #8a3f1f; }
.editorial-section-heading h2 { font-size: 1.16rem; }

.destination-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.destination-card {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 92px;
  gap: 6px;
  padding: 9px 4px;
  border-color: rgb(29 23 20 / 8%);
  border-radius: 18px;
  text-align: center;
  box-shadow: none;
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.destination-card:active, .button:active, .settings-row:active, .tenant-card:active, .reward-card:active { transform: scale(0.98); }
.destination-card > .feather-icon:first-child { padding: 8px; border-radius: 14px; background: #f1e6da; color: var(--v3-brown); }
.destination-card > .feather-icon:last-child, .destination-card small { display: none; }
.destination-card strong { font-size: 0.68rem; }

.progress-card, .editorial-card, .tenant-card, .quest-card, .reward-card, .owned-reward, .inbox-item, .quest-detail, .settings-row {
  border-color: rgb(29 23 20 / 8%);
  border-radius: 20px;
  box-shadow: none;
}

.progress-card, .editorial-card, .quest-detail { padding: 16px; }
.progress { height: 8px; background: #e9e4de; }
.progress span { background: var(--v3-caramel); }
.member-view-rewards .progress span, .member-view-quest .progress span { background: #6d8b51; }
.home-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-context-grid .editorial-card { min-width: 0; }
.home-context-grid .editorial-card h2 { font-size: 1rem; }
.home-context-grid .editorial-card p { font-size: 0.72rem; }

.discovery-tools { display: grid; gap: 10px; }
.search-field { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid rgb(29 23 20 / 9%); border-radius: 17px; background: var(--v3-card); }
.search-field input { min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--v3-ink); font-size: 0.82rem; }

.filter-rail { display: flex; gap: 7px; margin: 0; padding: 0 1px 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.filter-rail::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 44px; padding: 8px 14px; flex: 0 0 auto; border: 1px solid rgb(29 23 20 / 10%); border-radius: 999px; background: var(--v3-card); color: var(--v3-ink); font-size: 0.72rem; font-weight: 670; scroll-snap-align: start; transition: transform 120ms ease-out, opacity 120ms ease-out; }
.filter-chip[aria-pressed="true"] { border-color: var(--v3-ink); background: var(--v3-ink); color: #fff; }

.tenant-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 202px; background: var(--v3-card); }
.tenant-card-compact { min-height: 176px; }
.object-art { position: relative; display: grid; min-height: 176px; place-items: center; overflow: hidden; background: #eee7df; color: var(--v3-ink); isolation: isolate; }
.object-art-coffee { background: linear-gradient(150deg, #f6ca9c, #d97d48); }
.object-art-studio { background: linear-gradient(150deg, #dce9d0, #9bb27c); }
.object-art-quest { background: linear-gradient(150deg, #f6e49b, #f0bd53); }
.object-art-scan { background: linear-gradient(150deg, #d9cabf, #a88875); }
.object-art-reward { background: linear-gradient(150deg, #dff1c6, #a5c976); }
.object-art-kicker { position: absolute; top: 12px; left: 12px; max-width: 12ch; font-size: 0.58rem; font-weight: 720; }
.object-art-icon { position: relative; z-index: 2; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgb(255 255 255 / 50%); border-radius: 25px; background: rgb(255 253 249 / 68%); transform: rotate(-6deg); }
.object-art-shadow { position: absolute; right: 20%; bottom: 23%; width: 64px; height: 14px; border-radius: 50%; background: rgb(29 23 20 / 18%); transform: rotate(-8deg); }
.object-art i { position: absolute; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.22; }
.object-art i:nth-of-type(1) { top: 25%; right: -8px; }
.object-art i:nth-of-type(2) { bottom: -12px; left: 16%; width: 54px; height: 54px; }

.tenant-copy { display: grid; align-content: center; padding: 15px; }
.tenant-copy h2 { margin: 7px 0 4px; }
.tenant-copy p { margin: 0 0 12px; font-size: 0.72rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.card-meta > span:last-child { color: #6f675f; font-size: 0.58rem; font-weight: 650; }

.wide-story-card { grid-template-columns: 44% minmax(0, 1fr); min-height: 164px; border-radius: 22px; background: var(--v3-ink); }
.wide-story-visual { position: relative; display: grid; grid-template-columns: repeat(2, 50px); place-content: center; gap: 8px; background: #c9df9e; color: var(--v3-ink); }
.wide-story-visual span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgb(29 23 20 / 14%); border-radius: 17px; background: rgb(255 253 249 / 58%); }
.wide-story-visual span:last-child { grid-column: 1 / -1; justify-self: center; }

.member-pass-card { min-height: 250px; border: 0; border-radius: 28px; background: linear-gradient(145deg, #211916, #57372b 62%, #8a573b); box-shadow: 0 18px 32px rgb(29 23 20 / 18%); }
.cacao-surface { background-image: linear-gradient(145deg, #211916, #57372b 62%, #8a573b); }
.cacao-surface::before { background-image: radial-gradient(circle at 82% 22%, rgb(255 229 184 / 22%) 0 1px, transparent 1.5px); background-size: 13px 13px; opacity: 0.42; }
.pass-spark { position: absolute; top: 72px; right: 34px; width: 26px; height: 26px; border: 1px solid rgb(255 255 255 / 28%); transform: rotate(45deg); }
.pass-identity { margin-top: 42px; }

.instruction-card { grid-template-columns: 42% minmax(0, 1fr); border-radius: 22px; background: var(--v3-card); }
.instruction-card .object-art { min-height: 230px; }
.reward-grid { gap: 9px; }
.reward-card.featured { display: grid; grid-template-columns: 45% minmax(0, 1fr); }
.reward-card.featured .object-art { min-height: 238px; }
.reward-monogram { background: #e8f1d9; }
.reward-copy { padding: 13px; }
.reward-copy h3 { margin: 7px 0 4px; font-size: 0.92rem; }
.reward-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.68rem; }
.reward-action { align-items: end; }
.profile-summary { margin-top: -6px; }
.settings-row { background: var(--v3-card); }
.settings-row > .feather-icon:first-child { padding: 7px; box-sizing: content-box; border-radius: 12px; background: #ece7e2; }

.button { min-height: 44px; border-radius: 14px; background: var(--v3-ink); transition: transform 120ms ease-out, opacity 120ms ease-out; }
.button.secondary { border-color: rgb(29 23 20 / 13%); background: var(--v3-card); color: var(--v3-ink); }
.text-action { min-height: 44px; color: var(--v3-brown); }

.bottom-nav {
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: max(12px, calc((100vw - 430px) / 2 + 12px));
  width: auto;
  max-width: 406px;
  padding: 7px;
  border: 0;
  border-radius: 25px;
  background: rgb(29 23 20 / 96%);
  box-shadow: 0 16px 32px rgb(29 23 20 / 24%);
}

.bottom-nav button { min-height: 58px; border-radius: 18px; color: #bdb5ad; transition: transform 120ms ease-out, opacity 120ms ease-out; }
.bottom-nav button[aria-current="page"] { background: #f5dfbf; color: var(--v3-ink); }
.bottom-nav button[aria-current="page"] .feather-icon { transform: translateY(-2px); }
.bottom-nav .pass-destination { color: #e4ddd7; }
.bottom-nav .pass-destination .feather-icon { padding: 0; background: transparent; }
.bottom-nav .pass-destination[aria-current="page"] { color: var(--v3-ink); }
.secondary-intro { border-radius: 22px; }
[data-filter-item][hidden] { display: none !important; }

@media (max-width: 350px) {
  .editorial-hero { grid-template-columns: minmax(0, 1fr) 94px; min-height: 224px; }
  .editorial-hero-copy { padding-left: 16px; }
  .destination-grid { gap: 5px; }
  .destination-card strong { font-size: 0.62rem; }
  .tenant-card, .reward-card.featured { grid-template-columns: 40% minmax(0, 1fr); }
}

@media (min-width: 700px) {
  .bottom-nav { right: calc((100vw - 406px) / 2); left: calc((100vw - 406px) / 2); width: 406px; }
}

@media (min-width: 960px) {
  .bottom-nav { right: calc((100vw - 406px) / 2); bottom: calc(10px + env(safe-area-inset-bottom)); left: calc((100vw - 406px) / 2); width: 406px; padding: 7px; border-radius: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .destination-card, .button, .settings-row, .tenant-card, .reward-card, .filter-chip, .bottom-nav button { transition: none; }
}

/* Saga Member Gen Z UI v1 — mobile-only execution */
:root {
  --sage-500: #81967f;
  --sage-100: #e5ebe1;
  --cacao-800: #50362d;
  --cacao-100: #f0e4da;
  --z-status: 25;
}

html {
  min-width: 320px;
  background: #d8d2cb;
}

body {
  width: min(100%, 430px);
  min-width: 320px;
  margin-inline: auto;
  overflow-x: clip;
  background-color: var(--paper);
  box-shadow: 0 0 0 1px rgb(42 29 24 / 8%);
}

body::before {
  position: fixed;
  inset: 0 max(0px, calc((100vw - 430px) / 2));
  z-index: -1;
  background: var(--paper) url("/assets/textures/gen-z-v2/cement-soft-gen-z-v2.jpg") center / cover;
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

.topbar,
.scale-context,
main {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.topbar {
  min-height: calc(58px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  border-bottom-color: rgb(42 29 24 / 8%);
  background: rgb(245 242 237 / 96%);
}

.topbar .icon-button {
  min-width: 44px;
  min-height: 44px;
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--caramel-500);
}

main {
  min-height: calc(100dvh - 150px);
  padding: 14px 14px 32px;
}

.member-view {
  display: grid;
  gap: 22px;
  animation: member-enter 200ms ease-out both;
}

@keyframes member-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.member-view h1,
.member-view h2,
.member-view h3 {
  text-wrap: balance;
}

.member-view p,
.member-view small {
  text-wrap: pretty;
}

.editorial-hero {
  position: relative;
  min-height: 395px;
  overflow: hidden;
  border: 1px solid rgb(42 29 24 / 10%);
  border-radius: 30px;
  background: var(--cacao-100);
  box-shadow: 0 12px 32px rgb(42 29 24 / 10%);
  isolation: isolate;
}

.editorial-hero-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  margin: 14px;
  padding: 16px;
  border: 1px solid rgb(42 29 24 / 8%);
  border-radius: 18px;
  background: rgb(255 253 249 / 90%);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(3px);
}

.editorial-hero-copy h1 {
  max-width: 13ch;
  margin: 4px 0 9px;
  font-size: clamp(1.72rem, 8vw, 2.25rem);
  line-height: 1.05;
}

.editorial-hero-copy > p:not(.eyebrow) {
  max-width: 34ch;
  margin: 0;
  color: var(--espresso-800);
  font-size: 0.88rem;
}

.editorial-hero-art,
.editorial-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.editorial-hero-art img {
  object-fit: cover;
  object-position: center;
}

.editorial-hero-home {
  background: var(--sage-100);
}

.editorial-hero-pass {
  background: var(--caramel-200);
}

.editorial-hero-rewards,
.editorial-hero-quest {
  background: #f5dfc8;
}

.editorial-hero-profile {
  background: #ece2d8;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.hero-metrics > div {
  display: grid;
  min-width: 66px;
}

.hero-metrics strong,
.pass-balances strong,
.detail-price strong,
.tabular {
  font-variant-numeric: tabular-nums;
}

.hero-metrics strong {
  font-size: 1.12rem;
  line-height: 1;
}

.hero-metrics span:not(.tier-chip) {
  font-size: 0.68rem;
  color: var(--cement-700);
}

.tier-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgb(42 29 24 / 14%);
  border-radius: 999px;
  background: rgb(255 253 249 / 88%);
  font-size: 0.7rem;
  font-weight: 760;
}

.tier-chip.inverse {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 12%);
  color: white;
}

.content-section {
  display: grid;
  gap: 12px;
}

.editorial-section-heading {
  align-items: end;
  margin: 0 2px;
}

.editorial-section-heading h2 {
  margin: 0;
  font-size: 1.28rem;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.destination-card,
.settings-row {
  min-height: 74px;
  border: 1px solid rgb(42 29 24 / 10%);
  background: var(--surface);
  color: var(--espresso-950);
  cursor: pointer;
}

.destination-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.destination-card > .feather-icon:first-child {
  padding: 7px;
  box-sizing: content-box;
  border-radius: 12px;
  background: var(--cacao-100);
}

.destination-card span,
.settings-row span {
  display: grid;
  min-width: 0;
}

.destination-card small,
.settings-row small {
  overflow: hidden;
  color: var(--cement-700);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-card,
.editorial-card,
.member-pass-card,
.instruction-card,
.tenant-card,
.quest-card,
.reward-card,
.owned-reward,
.inbox-item,
.quest-detail {
  border: 1px solid rgb(42 29 24 / 10%);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.progress-card,
.editorial-card,
.quest-detail {
  padding: 17px;
}

.progress-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.progress-card-head > div {
  display: grid;
}

.progress-card-head > span {
  max-width: 15ch;
  color: var(--cement-700);
  font-size: 0.72rem;
  text-align: right;
}

.progress {
  height: 9px;
  margin: 14px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cement-100);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--caramel-500);
  transform-origin: left;
  animation: progress-enter 200ms ease-out both;
}

@keyframes progress-enter {
  from { opacity: 0; transform: scaleX(0.2); }
  to { opacity: 1; transform: scaleX(1); }
}

.progress.large {
  height: 12px;
}

.home-context-grid {
  display: grid;
  gap: 10px;
}

.editorial-card h2 {
  margin: 4px 0;
  font-size: 1.08rem;
}

.activity-preview,
.owned-reward-list,
.inbox-list,
.timeline,
.settings-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-preview li,
.owned-reward,
.timeline li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid rgb(42 29 24 / 9%);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.activity-preview span,
.owned-reward > div,
.timeline li > div {
  display: grid;
  min-width: 0;
}

.activity-preview small,
.owned-reward span,
.timeline small {
  color: var(--cement-700);
  font-size: 0.72rem;
}

.tenant-card,
.quest-card,
.instruction-card,
.wide-story-card,
.secondary-intro {
  overflow: hidden;
}

.tenant-art,
.quest-art,
.detail-visual {
  background: var(--cement-100);
}

.card-art,
.card-art img,
.reward-art,
.reward-art img,
.wide-story-art,
.wide-story-art img,
.instruction-art,
.instruction-art img,
.secondary-art,
.secondary-art img,
.detail-art,
.detail-art img,
.state-art,
.state-art img {
  display: block;
  width: 100%;
}

.tenant-art,
.tenant-art img,
.quest-art,
.quest-art img,
.reward-art,
.reward-art img {
  aspect-ratio: 16 / 10;
}

.tenant-art img,
.quest-art img,
.reward-art img,
.wide-story-art img,
.detail-art img {
  height: 100%;
  object-fit: cover;
}

.tenant-copy,
.reward-copy,
.quest-card > div:last-child {
  padding: 15px;
}

.tenant-copy h2,
.reward-copy h3,
.quest-card h2 {
  margin: 8px 0 5px;
}

.wide-story-card {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  border-radius: var(--radius-lg);
  background: var(--espresso-900);
  color: var(--white);
}

.wide-story-card > div {
  align-self: center;
  padding: 14px;
  background: var(--espresso-900);
}

.wide-story-card h2 {
  color: var(--white);
}

.wide-story-card .eyebrow {
  color: var(--caramel-200);
}

.wide-story-card p:not(.eyebrow) {
  color: var(--caramel-200);
  font-size: 0.78rem;
}

.member-pass-card {
  position: relative;
  min-height: 280px;
  padding: 20px;
  overflow: hidden;
  color: white;
}

.cacao-surface {
  background-color: var(--cacao-800);
  background-image: url("/assets/textures/gen-z-v2/wood-cacao-modern-v2.jpg");
  background-position: center;
  background-size: cover;
}

.cacao-surface::before {
  position: absolute;
  inset: 0;
  background: rgb(42 29 24 / 72%);
  content: "";
}

.member-pass-card > * {
  position: relative;
}

.pass-top,
.pass-balances {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pass-top > span:first-child {
  font-size: 0.76rem;
  font-weight: 780;
}

.pass-identity {
  margin-top: 56px;
}

.pass-identity p,
.pass-disclosure {
  margin: 0;
  color: var(--caramel-200);
  font-size: 0.7rem;
}

.pass-identity h2 {
  margin: 2px 0 9px;
  font-size: 1.45rem;
}

.pass-balances {
  justify-content: flex-start;
  margin-top: 18px;
}

.pass-balances > div {
  display: grid;
  min-width: 88px;
}

.pass-balances strong {
  font-size: 1.15rem;
}

.pass-balances span {
  color: var(--caramel-200);
  font-size: 0.68rem;
}

.pass-disclosure {
  margin-top: 16px;
}

.instruction-card {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  align-items: center;
}

.instruction-art,
.instruction-art img {
  height: 100%;
  object-fit: cover;
}

.instruction-card > div {
  padding: 14px;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-100);
  font-weight: 750;
}

.inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reward-card {
  min-width: 0;
  overflow: hidden;
}

.reward-card.featured {
  grid-column: 1 / -1;
}

.reward-monogram {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  background: var(--sage-100);
  color: var(--espresso-900);
}

.reward-copy {
  display: grid;
  align-content: start;
  height: 100%;
}

.reward-copy p {
  font-size: 0.76rem;
}

.reward-action,
.detail-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.reward-action strong {
  font-size: 0.78rem;
}

.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  text-align: left;
}

.profile-panels details + details {
  margin-top: 10px;
}

.secondary-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
}

.secondary-header h1 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.secondary-back {
  min-width: 44px;
  min-height: 44px;
}

.secondary-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  align-items: center;
  min-height: 190px;
  border-radius: var(--radius-lg);
  background: var(--sage-100);
}

.secondary-intro > div {
  padding: 18px;
}

.secondary-intro h2 {
  margin: 4px 0 7px;
}

.secondary-intro p:not(.eyebrow) {
  color: var(--espresso-800);
  font-size: 0.8rem;
}

.secondary-art,
.secondary-art img {
  height: 100%;
}

.secondary-art img {
  object-fit: cover;
}

.timeline li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--caramel-500);
  box-shadow: 0 0 0 1px var(--caramel-500);
}

.inbox-item {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.inbox-item.unread {
  border-color: var(--caramel-500);
  background: #fff9f1;
}

.inbox-item h2 {
  margin: 4px 0;
  font-size: 1rem;
}

.inbox-item > div > span {
  color: var(--caramel-500);
  font-size: 0.68rem;
  font-weight: 740;
}

.quest-detail-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.quest-detail-count strong {
  font-size: 2.5rem;
  line-height: 1;
}

.detail-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.detail-visual,
.detail-art,
.detail-art img {
  aspect-ratio: 1 / 1;
}

.detail-copy h1 {
  margin: 8px 0;
}

.detail-price {
  margin: 22px 0 12px;
}

.detail-price span {
  color: var(--cement-700);
  font-size: 0.72rem;
}

.state-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed var(--cement-300);
  border-radius: var(--radius-lg);
  text-align: center;
}

.state-panel.compact {
  padding: 16px;
}

.state-art,
.state-art img {
  max-width: 210px;
}

.inline-status,
.app-status {
  margin: 8px 0 0;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 650;
}

.inline-status.error,
.app-status.error {
  color: var(--danger);
}

.app-status {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: var(--z-status);
  padding: 12px 14px;
  border: 1px solid var(--cement-300);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.full {
  width: 100%;
}

.bottom-nav {
  right: max(0px, calc((100vw - 430px) / 2));
  left: max(0px, calc((100vw - 430px) / 2));
  width: auto;
  max-width: 430px;
  margin-inline: auto;
  padding-top: 7px;
  border: 1px solid rgb(42 29 24 / 10%);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.bottom-nav button {
  min-height: 58px;
}

.bottom-nav .pass-destination {
  color: var(--espresso-900);
}

.bottom-nav .pass-destination .feather-icon {
  box-sizing: content-box;
  padding: 5px;
  border-radius: 10px;
  background: var(--caramel-200);
}

@media (max-width: 350px) {
  main {
    padding-inline: 10px;
  }

  .editorial-hero {
    min-height: 370px;
  }

  .editorial-hero-copy {
    width: calc(100% - 20px);
    margin: 10px;
    padding-inline: 14px;
  }

  .destination-card {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .destination-card > .feather-icon:last-child {
    display: none;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .reward-card.featured {
    grid-column: auto;
  }
}

@media (min-width: 700px) {
  body {
    display: block;
    width: 430px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .topbar,
  .scale-context,
  main {
    width: 430px;
  }

  .auth-layout,
  .grid,
  .quick-actions,
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  body {
    display: block;
    grid-template-columns: none;
    column-gap: 0;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .topbar,
  .scale-context,
  main,
  .bottom-nav {
    grid-column: auto;
  }

  .topbar {
    padding-inline: 18px;
  }

  .bottom-nav {
    position: fixed;
    top: auto;
    right: calc((100vw - 430px) / 2);
    bottom: 0;
    left: calc((100vw - 430px) / 2);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 430px;
    margin: 0;
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .bottom-nav button {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 58px;
    padding: 0;
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-view,
  .progress span {
    animation: none;
  }
}

@media (forced-colors: active) {
  .editorial-hero,
  .editorial-card,
  .progress-card,
  .member-pass-card,
  .destination-card,
  .settings-row,
  .tenant-card,
  .reward-card,
  .quest-card,
  .inbox-item,
  .timeline li {
    border: 1px solid CanvasText;
  }

  .editorial-hero-art,
  .member-art,
  body::before {
    display: none;
  }
}
