/* vaganti.com: Studio (lab/04-pms/podpad/design/studio.css) for travellers. Dark, frosted panels over a
   night gradient that takes the colors of the region in view, as Studio's takes its section's.

   1. Tokens: the palette, the regions' colors, type
   2. The window: background, header, footer, the dock
   3. Home: the prompt, the draft, the shelves
   4. Cards, grids, chips, buttons
   5. A place, a listing
   6. The trip
   7. Phone, motion */

/* ------------------------------------------------------------ 1. tokens */

@property --s1 { syntax: '<color>'; inherits: true; initial-value: #4f8bff; }
@property --s2 { syntax: '<color>'; inherits: true; initial-value: #8a4dff; }
@property --s3 { syntax: '<color>'; inherits: true; initial-value: #110f3b; }

:root {
  --ds-glass: rgba(255, 255, 255, 0.055);
  --ds-glass-2: rgba(255, 255, 255, 0.09);
  --ds-glass-hover: rgba(255, 255, 255, 0.12);
  --ds-panel: rgba(16, 14, 34, 0.62);
  --ds-line: rgba(255, 255, 255, 0.08);
  --ds-line-2: rgba(255, 255, 255, 0.14);
  --ds-text: #f3f1fb;
  --ds-text-2: rgba(255, 255, 255, 0.64);
  --ds-text-3: rgba(255, 255, 255, 0.42);
  --ds-green: #3ddc84;
  --ds-radius: 20px;
  --ds-radius-sm: 12px;
  --ds-blur: blur(28px) saturate(150%);
  --ds-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --ds-display: "Bruno Ace", var(--ds-font);
  --ds-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ds-face: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  --ds-raised: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --page: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --ion-font-family: var(--ds-font);
  --ion-background-color: #0b0a1c;
  --ion-background-color-rgb: 11, 10, 28;
  --ion-text-color: var(--ds-text);
  --ion-text-color-rgb: 243, 241, 251;
  --ion-toolbar-background: transparent;
  --ion-border-color: var(--ds-line);
  --ion-color-primary: #8b97ff;
  --ion-color-primary-rgb: 139, 151, 255;
  --ion-color-primary-contrast: #0e0c1f;

  color-scheme: dark;
  /* The page's colors follow the region in view; home is the night. */
  --g1: #4f8bff; --g2: #8a4dff; --g3: #110f3b;
  --s1: var(--g1); --s2: var(--g2); --s3: var(--g3);
  transition: --s1 0.9s var(--ds-ease), --s2 0.9s var(--ds-ease), --s3 0.9s var(--ds-ease);
}

/* The regions of Honduras (catalog.country.regions): g1 leads, g2 follows, g3 is the night behind them. */
[data-region="insular"] { --g1: #1cc8c0; --g2: #2f6bff; --g3: #05263a; }
[data-region="norte"] { --g1: #34d67f; --g2: #149bd0; --g3: #052a22; }
[data-region="corredor_yojoa"] { --g1: #5ab0ff; --g2: #34d6b5; --g3: #06223a; }
[data-region="centro"] { --g1: #ffa53a; --g2: #ff4d6d; --g3: #2c1108; }
[data-region="occidente"] { --g1: #b16dff; --g2: #ff5fc8; --g3: #1f0a3e; }
[data-region="oriente"] { --g1: #f5c84b; --g2: #f0803c; --g3: #261b06; }
[data-region="sur"] { --g1: #ff5aa8; --g2: #9b4dff; --g3: #2a0b33; }

/* ------------------------------------------------------------ 2. the window */

body, ion-app {
  background:
    radial-gradient(70rem 48rem at 92% -12%, color-mix(in oklab, var(--s1) 46%, transparent), transparent 62%),
    radial-gradient(56rem 44rem at -8% 108%, color-mix(in oklab, var(--s2) 38%, transparent), transparent 60%),
    linear-gradient(165deg, var(--s3) 0%, #07060f 100%);
  background-attachment: fixed;
  color: var(--ds-text);
  font-family: var(--ds-font);
  -webkit-font-smoothing: antialiased;
}
ion-content { --background: transparent; --padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

#top { background: transparent; box-shadow: none; }
#top::after { display: none; }
#top ion-toolbar {
  --background: rgba(10, 9, 24, 0.38); --border-color: var(--ds-line); --min-height: 68px;
  --padding-start: var(--gutter); --padding-end: var(--gutter);
  -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur);
  padding-top: env(safe-area-inset-top);
}
.wordmark {
  display: block; height: 46px; aspect-ratio: 628 / 456; background: #fff;
  -webkit-mask: url(/wordmark.svg) center / contain no-repeat; mask: url(/wordmark.svg) center / contain no-repeat;
}
.wordmark.small { height: 40px; opacity: 0.6; }
.brand { display: block; padding: 11px 0; }

/* The menu: a frosted track with a lit pill that slides under the open section, each section's glyph in its
   own colors, the trip as it stands (nights and its places' dots), the planner, the other language. */
#nav { display: flex; align-items: center; gap: 10px; }
.nav-track {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--ds-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-lit {
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in oklab, var(--n1) 62%, transparent), color-mix(in oklab, var(--n2) 52%, transparent));
  box-shadow: 0 0 22px -4px var(--n1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.5s var(--ds-ease), width 0.5s var(--ds-ease), opacity 0.3s, --n1 0.5s, --n2 0.5s;
}
@property --n1 { syntax: '<color>'; inherits: true; initial-value: #4f8bff; }
@property --n2 { syntax: '<color>'; inherits: true; initial-value: #8a4dff; }
[data-nav="destinations"], .nav-lit[data-section="destinations"] { --n1: #1cc8c0; --n2: #2f6bff; }
[data-nav="stays"], .nav-lit[data-section="stays"] { --n1: #b16dff; --n2: #ff5fc8; }
[data-nav="restaurants"], .nav-lit[data-section="restaurants"] { --n1: #ffa53a; --n2: #ff4d6d; }
[data-nav="trip"], .nav-lit[data-section="trip"] { --n1: #4f8bff; --n2: #8a4dff; }
#nav [data-nav] {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  color: var(--ds-text-2); font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.25s;
}
#nav [data-nav] ion-icon { font-size: 1.05rem; color: color-mix(in oklab, var(--n1) 75%, #fff); transition: color 0.25s, filter 0.25s; }
#nav [data-nav]:hover { color: var(--ds-text); }
#nav [data-nav]:hover ion-icon { filter: drop-shadow(0 0 6px var(--n1)); }
#nav [data-nav].on, #nav [data-nav].on ion-icon { color: #fff; }
.trip-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; color: #0b0a1c; background: #fff; box-shadow: 0 0 12px -2px var(--n1);
}
.trip-dots { display: inline-flex; }
.trip-dots i { width: 9px; height: 9px; border-radius: 50%; margin-left: -3px; border: 1.5px solid #14122a; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.ask-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  border: 0; color: #fff; font: inherit; font-family: var(--ds-display); font-size: 0.78rem; letter-spacing: 0.06em; isolation: isolate;
  background: linear-gradient(135deg, rgba(79, 139, 255, 0.35), rgba(177, 109, 255, 0.35));
  box-shadow: 0 0 24px -6px #8a6dff, inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.ask-btn::before {
  content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 25%, #8fd3ff 38%, #fff 42%, #c08bff 48%, transparent 60% 100%), rgba(255, 255, 255, 0.18);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 4.5s linear infinite;
}
.ask-btn ion-icon { font-size: 1.1rem; color: #e9dcff; }
.ask-btn:hover { box-shadow: 0 0 30px -4px #8a6dff, inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.lang {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--ds-text-2); border: 1px solid var(--ds-line); background: rgba(255, 255, 255, 0.04); transition: all 0.2s;
}
.lang:hover { color: var(--ds-text); background: var(--ds-glass-hover); }
#page { min-height: 70vh; padding-bottom: 120px; }
#page > section:not(.hero, .place-hero, .gallery), #page > .grid, #page > .empty { max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }

.foot {
  max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter) calc(110px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ds-line); display: flex; gap: 24px; align-items: center; color: var(--ds-text-3); font-size: 0.85rem;
}

/* The trip, always in reach: a frosted shelf at the foot. */
#dock {
  position: fixed; z-index: 20; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(520px, calc(100vw - 32px)); animation: rise 0.5s var(--ds-ease) both;
}
#dock[hidden] { display: none; }
.dock-in {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: rgba(20, 18, 40, 0.9); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur);
  border: 1px solid var(--ds-line-2); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dock-in .dots { display: flex; }
.dock-in .dots i {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -8px; border: 2px solid #15132c;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.dock-in .dots i:first-child { margin-left: 0; }
.dock-in .what { flex: 1; font-size: 0.92rem; color: var(--ds-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-in .what b { color: var(--ds-text); margin-right: 6px; }
.flyer {
  position: fixed; z-index: 30; width: 22px; height: 22px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff, var(--s1) 55%, var(--s2)); box-shadow: 0 0 22px var(--s1);
}

/* ------------------------------------------------------------ 3. home */

.hero { position: relative; min-height: 70svh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 64px var(--gutter) 72px; overflow: hidden; isolation: isolate; }
.hero-in { position: relative; width: min(820px, 100%); text-align: center; }
/* The reel: the destinations' heroes, one at a time, cross-fading with a slow drift, under a night veil. */
.reel { position: absolute; inset: 0; z-index: -1; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.8s ease, transform 9s linear; }
.reel img.on { opacity: 1; transform: scale(1); }
.reel::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 30rem at 50% 45%, rgba(8, 7, 20, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(8, 7, 20, 0.55) 0%, rgba(8, 7, 20, 0.35) 40%, color-mix(in oklab, var(--s3) 70%, #07060f) 100%);
}
.hello {
  font-family: var(--ds-display); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero .sub { max-width: 34rem; margin: -14px auto 30px; font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.55; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.now {
  position: absolute; right: var(--gutter); bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 0.84rem; color: #fff; background: rgba(8, 7, 20, 0.45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.16);
}
.now small { color: rgba(255, 255, 255, 0.65); }
/* Moods: what you're in the mood for, as tiles that plan it. */
.moods { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.mood {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 600;
  color: #fff; background: rgba(8, 7, 20, 0.5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.25s var(--ds-ease), border-color 0.25s, box-shadow 0.25s;
}
.mood span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; background: linear-gradient(135deg, var(--m1), var(--m2)); box-shadow: 0 0 14px -3px var(--m1); }
.mood:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--m1) 60%, transparent); box-shadow: 0 10px 30px -12px var(--m1); }
.eyebrow {
  font-family: var(--ds-display); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ds-text-2); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 780; line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 30px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.hero h1 span {
  display: block; background: linear-gradient(92deg, #fff 0%, color-mix(in oklab, var(--s1) 70%, #fff) 45%, color-mix(in oklab, var(--s2) 75%, #fff) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The prompt: a well with a slow light running round its edge. */
.prompt {
  position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 12px 12px 12px 22px; text-align: left;
  border-radius: 28px; background: rgba(12, 11, 28, 0.66); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45), 0 30px 80px -30px color-mix(in oklab, var(--s1) 60%, transparent);
  isolation: isolate;
}
.prompt::before {
  content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 20%, var(--s1) 32%, #fff 36%, var(--s2) 42%, transparent 55% 100%), var(--ds-line-2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 7s linear infinite;
}
.prompt:focus-within::before { animation-duration: 2.6s; }
.prompt { padding-left: 12px; }
.prompt .orb {
  flex: none; align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%), linear-gradient(135deg, var(--s1), var(--s2));
  box-shadow: 0 0 18px -2px var(--s1); animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 0 28px 2px var(--s1); } }
.prompt.slim { border-radius: 22px; padding-block: 8px; }
.prompt.slim #ask { font-size: 1.02rem; min-height: 44px; }
.prompt.slim .send { width: 44px; height: 44px; font-size: 1.2rem; }
.ask-trip { margin-bottom: 22px; }
.tweaks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tweaks .chip { cursor: pointer; }

/* Vaganti's suggestions: above the trip, and inside the leg they're about. */
.hints {
  display: grid; gap: 12px; margin: 0 0 24px; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--s1) 16%, transparent), color-mix(in oklab, var(--s2) 12%, transparent));
  border: 1px solid color-mix(in oklab, var(--s1) 32%, transparent); box-shadow: 0 18px 50px -30px var(--s1);
}
.hints-title {
  display: flex; align-items: center; gap: 8px; font-family: var(--ds-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: color-mix(in oklab, var(--s1) 50%, #fff);
}
.hint { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; animation: rise 0.4s var(--ds-ease) both; animation-delay: calc(var(--i) * 80ms); }
.hint-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, var(--g1, var(--s1)), var(--g2, var(--s2))); box-shadow: 0 0 14px -3px var(--g1, var(--s1));
}
.hint p { font-size: 0.92rem; line-height: 1.45; }
.hint-do { display: flex; gap: 6px; align-items: center; }
.hint-yes {
  padding: 8px 15px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 700; white-space: nowrap;
  color: #0b0a1c; background: linear-gradient(135deg, #fff, color-mix(in oklab, var(--g1, var(--s1)) 40%, #fff));
}
.hint-yes:hover { transform: translateY(-1px); }
.hints.in-leg { margin: 2px 0 0; padding: 12px 14px; gap: 10px; background: rgba(0, 0, 0, 0.22); border-color: color-mix(in oklab, var(--g1) 30%, transparent); box-shadow: none; }
.hints-note { margin: 14px 0 0 46px; color: var(--ds-text-3); font-size: 0.8rem; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
#ask {
  flex: 1; --color: var(--ds-text); --placeholder-color: var(--ds-text-3); --placeholder-opacity: 1;
  --padding-top: 10px; --padding-bottom: 10px; --background: transparent;
  font-size: clamp(1.08rem, 2.2vw, 1.3rem); line-height: 1.45; min-height: 52px; max-height: 40svh;
}
#ask::part(native) { max-height: 36svh; }
.send {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  color: #0b0a1c; font-size: 1.4rem; background: linear-gradient(135deg, #fff, color-mix(in oklab, var(--s1) 55%, #fff));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 8px 26px -6px var(--s1); transition: transform 0.2s var(--ds-ease);
}
.send:hover { transform: scale(1.06); }
.send:active { transform: scale(0.96); }
.ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.idea {
  border: 1px solid var(--ds-line); background: var(--ds-glass); color: var(--ds-text-2); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 0.86rem; cursor: pointer; transition: all 0.2s;
}
.idea:hover { color: var(--ds-text); background: var(--ds-glass-hover); border-color: var(--ds-line-2); }

/* The draft. */
.proposal-slot { scroll-margin-top: 80px; }
.proposal {
  margin: 8px 0 40px; padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: var(--ds-panel);
  border: 1px solid var(--ds-line); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur);
  box-shadow: var(--ds-raised); animation: rise 0.5s var(--ds-ease) both;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: center; color: var(--ds-text-2); font-size: 0.95rem; animation: rise 0.4s var(--ds-ease) both; }
.steps li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-green); box-shadow: 0 0 10px var(--ds-green); }
.steps li.now { color: var(--ds-text); }
.steps li.now::before { background: var(--s1); box-shadow: 0 0 12px var(--s1); animation: pulse 1s ease-in-out infinite; }
.steps li.now span, .proposal.thinking .steps li.now {
  background: linear-gradient(90deg, var(--ds-text-2) 0%, #fff 50%, var(--ds-text-2) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.4s linear infinite, rise 0.4s var(--ds-ease) both;
}
.reasoning { margin-bottom: 18px; color: var(--ds-text-2); font-size: 0.9rem; }
.reasoning summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; list-style: none; }
.reasoning summary::-webkit-details-marker { display: none; }
.reasoning[open] summary { margin-bottom: 12px; }
.proposal header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.proposal header p:not(.eyebrow) { color: var(--ds-text-2); }
.route { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; position: relative; }
.route::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--s1), var(--s2)); opacity: 0.5; }
.stop { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; animation: rise 0.5s var(--ds-ease) both; animation-delay: calc(var(--i) * 90ms); }
.node {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 0 0 5px rgba(11, 10, 28, 0.9), 0 0 24px -2px var(--g1);
  color: #fff; line-height: 1;
}
.node span { font-family: var(--ds-display); font-size: 1.1rem; }
.node small { font-size: 0.6rem; opacity: 0.85; }
.stop-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px; border-radius: var(--ds-radius);
  background: var(--ds-glass); border: 1px solid var(--ds-line); transition: background 0.2s;
}
.stop-card:hover { background: var(--ds-glass-hover); }
.stop-card .pic { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.stop-card .meta { padding: 4px 6px 4px 0; display: grid; gap: 4px; align-content: center; }
.stop-card h3 { font-size: 1.08rem; }
.stop-card p { color: var(--ds-text-2); font-size: 0.88rem; line-height: 1.45; }
.stop-card .eats { display: flex; gap: 6px; align-items: center; }
.region { font-family: var(--ds-display); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--g1) 70%, #fff); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.proposal .note { margin-top: 14px; color: var(--ds-text-3); font-size: 0.8rem; }

/* Shelves: a row that scrolls sideways. */
.shelf { margin-top: 44px; }
.shelf header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shelf h2 { font-size: 1.45rem; }
.shelf header p { color: var(--ds-text-2); font-size: 0.92rem; margin-top: 4px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--ds-text-2); font-size: 0.9rem; white-space: nowrap; }
.more:hover { color: var(--ds-text); }
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 270px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }

/* ------------------------------------------------------------ 4. cards, grids, chips, buttons */

.card {
  position: relative; border-radius: var(--ds-radius); background: var(--ds-glass); border: 1px solid var(--ds-line);
  overflow: hidden; transition: transform 0.35s var(--ds-ease), background 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); background: var(--ds-glass-hover); border-color: var(--ds-line-2); }
.card-link { display: block; }
.pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.pic.tall { aspect-ratio: 3 / 4; }
.pic img, .ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ds-ease); }
.card:hover .pic img { transform: scale(1.04); }
/* No photo: the initial over its region's colors, on a faint grid. */
.ph {
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--g1) 70%, transparent), transparent 60%),
    linear-gradient(145deg, var(--g2), var(--g3));
}
.ph span { font-family: var(--ds-display); font-size: 3.4rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 0 30px var(--g1); }
.score, .tag {
  position: absolute; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: rgba(10, 9, 24, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.16);
}
.score { top: 10px; }
.score small { opacity: 0.6; font-weight: 500; }
.tag { bottom: 10px; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; }
.meta { padding: 12px 14px 14px; }
.meta h3 { font-size: 1rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta p { color: var(--ds-text-2); font-size: 0.84rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .price { color: var(--ds-text); font-weight: 650; margin-top: 8px; }
.meta .price small { color: var(--ds-text-3); font-weight: 450; }
.place .over { position: absolute; inset: auto 0 0 0; padding: 60px 16px 16px; background: linear-gradient(transparent, rgba(5, 4, 14, 0.88)); }
.place .over h3 { font-size: 1.4rem; margin: 4px 0 2px; }
.place .over p { color: var(--ds-text-2); font-size: 0.84rem; }

/* Add to the trip: a round button that turns into a check. */
.add {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; cursor: pointer; font-size: 1.25rem; color: #fff;
  background: rgba(10, 9, 24, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ds-ease), background 0.25s;
}
.add:hover { transform: scale(1.1); background: linear-gradient(135deg, var(--g1), var(--g2)); }
.add ion-icon { grid-area: 1 / 1; transition: transform 0.3s var(--ds-ease), opacity 0.2s; }
[data-add] ion-icon[name="checkmark"], [data-add].in ion-icon[name="add"] { opacity: 0; transform: scale(0.4) rotate(-45deg); }
[data-add].in ion-icon[name="checkmark"] { opacity: 1; transform: none; }
.add.in { background: var(--ds-green); color: #062814; border-color: transparent; }
[data-add] .on, [data-add].in .off { display: none; }
[data-add].in .on { display: inline; }
button[data-add]:not(.add):not(.chip) ion-icon[name="add"], button[data-add]:not(.add):not(.chip) ion-icon[name="checkmark"] { position: absolute; }
button[data-add]:not(.add):not(.chip) { position: relative; padding-left: 44px; }
button[data-add]:not(.add):not(.chip) ion-icon { left: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.empty { color: var(--ds-text-2); padding: 40px 0; }

.page-head { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 22px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 750; letter-spacing: -0.04em; margin-bottom: 14px; }
.page-head.slim { padding-top: 40px; padding-bottom: 14px; }
.page-head.slim h2 { font-size: 1.45rem; }
.page-head.center { text-align: center; display: grid; justify-items: center; gap: 12px; padding-top: 14vh; }
.page-head.center p:not(.eyebrow) { color: var(--ds-text-2); max-width: 30rem; }
.page-head.center ion-icon { vertical-align: -2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 0.86rem;
  color: var(--ds-text-2); background: var(--ds-glass); border: 1px solid var(--ds-line); cursor: pointer; transition: all 0.2s;
}
.chip:hover { color: var(--ds-text); background: var(--ds-glass-hover); }
.chip.on { color: #0b0a1c; background: #fff; border-color: #fff; font-weight: 600; }

button.primary, a.primary, button.ghost, .actions button, .summary > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 0.95rem; cursor: pointer; border: 1px solid var(--ds-line-2);
  color: var(--ds-text); background: var(--ds-face); box-shadow: var(--ds-raised); transition: transform 0.2s var(--ds-ease), background 0.2s;
}
button.primary, a.primary { color: #0b0a1c; border-color: transparent; background: linear-gradient(135deg, #fff, color-mix(in oklab, var(--s1) 45%, #fff)); box-shadow: 0 10px 30px -10px var(--s1); }
button.primary.in { background: var(--ds-green); color: #062814; box-shadow: 0 10px 30px -12px var(--ds-green); }
button.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ds-text-2); }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.wide { width: 100%; }
button.icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ds-line);
  background: var(--ds-glass); color: var(--ds-text-2); cursor: pointer; font-size: 1rem;
}
button.icon:hover:not(:disabled) { color: var(--ds-text); background: var(--ds-glass-hover); }
button.icon:disabled { opacity: 0.25; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ds-glass-2); color: var(--ds-text); cursor: pointer; }
.stepper button:hover { background: var(--ds-glass-hover); }
.stepper span { min-width: 74px; text-align: center; font-size: 0.88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.crumbs { color: var(--ds-text-2); font-size: 0.86rem; margin-bottom: 10px; }
.crumbs a:hover { color: var(--ds-text); }

/* ------------------------------------------------------------ 5. a place, a listing */

.place-hero { position: relative; height: min(62svh, 620px); overflow: hidden; }
.place-hero > img, .place-hero > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-hero .over {
  position: absolute; inset: auto 0 0 0; display: grid; gap: 8px; justify-items: start; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  padding: 120px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))) 36px;
  background: linear-gradient(transparent, color-mix(in oklab, var(--s3) 70%, #05040e) 92%);
}
.place-hero .over > * { max-width: var(--page); }
.place-hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; }
.place-hero p { color: var(--ds-text-2); margin-bottom: 10px; }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 980px); gap: 10px; height: min(56svh, 560px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px var(--gutter) 0; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.one { grid-auto-columns: 100%; }
.gallery figure { margin: 0; border-radius: var(--ds-radius); overflow: hidden; scroll-snap-align: center; background: rgba(0, 0, 0, 0.3); }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 28px; align-items: start; }
.detail h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.04; }
.detail .area { color: var(--ds-text-2); margin: 8px 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts .chip { cursor: default; }
.rating { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.rating b {
  font-family: var(--ds-display); font-size: 1.6rem; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--s1), var(--s2)); box-shadow: 0 10px 30px -10px var(--s1);
}
.rating span { color: var(--ds-text-2); font-size: 0.9rem; line-height: 1.4; }
.about { font-size: 1.08rem; line-height: 1.65; color: color-mix(in oklab, var(--ds-text) 88%, transparent); max-width: 44rem; }
.detail-main h2 { font-size: 1.1rem; margin: 30px 0 12px; }
.detail-main > p { color: var(--ds-text-2); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; color: var(--ds-text-2); }
.amenities li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--s1); margin-right: 10px; vertical-align: 2px; }
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--ds-glass); border: 1px solid var(--ds-line); color: var(--ds-text-2); font-size: 0.9rem; }
.contact a:hover { color: var(--ds-text); background: var(--ds-glass-hover); }
.book, .summary {
  position: sticky; top: 84px; display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--ds-panel);
  border: 1px solid var(--ds-line); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur); box-shadow: var(--ds-raised);
}
.book .big { font-size: 1.8rem; font-weight: 750; letter-spacing: -0.03em; }
.book .big small { font-size: 0.86rem; font-weight: 450; color: var(--ds-text-2); letter-spacing: 0; }
.book .sub, .book .note { color: var(--ds-text-2); font-size: 0.86rem; }
.book .stepper { justify-self: start; }

/* ------------------------------------------------------------ 6. the trip */

.trip { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.trip .page-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
.legs { list-style: none; padding: 0; margin: 0; position: relative; }
.legs::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--s1), var(--s2)); opacity: 0.4; }
.leg { display: grid; grid-template-columns: 28px 1fr; gap: 18px; animation: rise 0.45s var(--ds-ease) both; }
.leg .node { width: 28px; height: 28px; margin-top: 18px; box-shadow: 0 0 0 5px rgba(11, 10, 28, 0.9), 0 0 18px var(--g1); }
.leg-body {
  padding: 18px; border-radius: 22px; background: var(--ds-glass); border: 1px solid var(--ds-line); display: grid; gap: 12px; min-width: 0;
}
.leg-body > header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.leg-body h2 { font-size: 1.5rem; }
.leg-body h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.days { font-size: 0.8rem; color: color-mix(in oklab, var(--g1) 65%, #fff); font-weight: 600; }
.tools { display: flex; gap: 6px; align-items: center; }
.item { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, 0.22); }
.item.small { grid-template-columns: 72px 1fr auto; }
.item-pic { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.item-pic img, .item-pic .ph { width: 100%; height: 100%; object-fit: cover; }
.item-pic .ph span { font-size: 1.6rem; }
.item-meta { min-width: 0; display: grid; gap: 3px; }
.item-meta a { display: block; min-width: 0; }
.item-meta h3 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta p { color: var(--ds-text-2); font-size: 0.86rem; }
.label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ds-text-3); font-weight: 600; }
.pick { display: grid; gap: 10px; }
.row.mini { grid-auto-columns: 220px; margin-inline: -18px; padding-inline: 18px; scroll-padding-inline: 18px; }
.also { display: flex; flex-wrap: wrap; gap: 8px; }
.hop { margin: 6px 0 6px 46px; padding: 6px 0; color: var(--ds-text-3); font-size: 0.85rem; display: flex; gap: 8px; align-items: center; }
.summary { top: 84px; margin-top: clamp(28px, 5vw, 56px); }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ds-text-2); font-size: 0.9rem; }
.field input {
  height: 38px; box-sizing: border-box; font: inherit; color: var(--ds-text); background: rgba(0, 0, 0, 0.3); border: 1px solid var(--ds-line); border-radius: 12px; padding: 8px 10px; color-scheme: dark;
}
.summary dl { margin: 6px 0; display: grid; gap: 10px; padding: 14px 0; border-block: 1px solid var(--ds-line); }
.summary dl div { display: flex; justify-content: space-between; align-items: baseline; }
.summary dt { color: var(--ds-text-2); font-size: 0.9rem; }
.summary dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.summary .total dd { font-size: 1.6rem; letter-spacing: -0.03em; }
.summary .total small { display: block; font-size: 0.8rem; color: var(--ds-text-3); font-weight: 500; letter-spacing: 0; }

/* ------------------------------------------------------------ 7. phone, motion */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.6; } }
@keyframes shimmer { to { background-position: -200% 0; } }
#dock { animation-name: dock-rise; }
@keyframes dock-rise { from { opacity: 0; transform: translate(-50%, 20px); } }

@media (max-width: 900px) {
  .detail, .trip { grid-template-columns: 1fr; }
  .book, .summary { position: static; }
}
@media (max-width: 720px) {
  #nav { gap: 6px; }
  #nav [data-nav] > span:not(.trip-dots), .ask-btn span, .trip-dots { display: none; }
  #nav [data-nav] { padding: 9px; }
  #nav [data-nav] ion-icon { font-size: 1.2rem; }
  .trip-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; font-size: 0.64rem; padding: 0 4px; }
  .ask-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .lang { width: 34px; height: 34px; }
  .wordmark { height: 38px; }
  .hint { grid-template-columns: 34px minmax(0, 1fr); }
  .hint-do { grid-column: 2; }
  .hero { padding-top: 32px; }
  .stop-card { grid-template-columns: 1fr; }
  .route::before { left: 21px; }
  .stop { grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
  .stop .node { width: 44px; height: 44px; margin-top: 12px; }
  .item { grid-template-columns: 84px 1fr auto; }
  .gallery { grid-auto-columns: 88%; height: 42svh; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid .meta { padding: 10px 11px 12px; }
  .grid .meta h3 { font-size: 0.92rem; }
  .grid .add { width: 34px; height: 34px; top: 8px; right: 8px; }
  .grid .tag { display: none; }
  .stop-card .pic { aspect-ratio: 16 / 7; }
  .foot { flex-direction: column; align-items: flex-start; }
  .leg-body { padding: 14px; }
  .row.mini { margin-inline: -14px; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ 8. character */

/* Images arrive softly. */
.pic img, .gallery img, .place-hero > img, .stop-card img, .item-pic img, .stamp-pic img { opacity: 0; transition: opacity 0.6s ease, transform 0.8s var(--ds-ease); }
img.ok { opacity: 1 !important; }
/* Pages cross-fade (View Transitions). */
::view-transition-old(root) { animation: 0.22s ease both vt-out; }
::view-transition-new(root) { animation: 0.38s var(--ds-ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.card:active { transform: scale(0.985); }

.meta .perk { display: flex; align-items: center; gap: 6px; color: color-mix(in oklab, var(--g1) 55%, #fff); font-weight: 600; font-size: 0.8rem; }
.place .over .tagline { color: rgba(255, 255, 255, 0.86); font-size: 0.86rem; line-height: 1.4; margin: 2px 0 6px; white-space: normal; }
.place-hero .tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #fff; font-weight: 500; margin: 4px 0 2px; max-width: 34rem; }
.tag.double { color: #2a1c00; background: linear-gradient(135deg, #ffe08a, #f5b84b); border-color: transparent; display: inline-flex; gap: 4px; align-items: center; }
.route-line { color: var(--ds-text-2); margin: -6px 0 6px; }
.empty-orb {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; margin-bottom: 8px; color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 45%), linear-gradient(135deg, var(--s1), var(--s2));
  box-shadow: 0 0 40px -6px var(--s1); animation: breathe 3.2s ease-in-out infinite;
}
.foot .made { color: var(--ds-text-2); font-weight: 600; margin-bottom: 4px; }

/* The menu's points: the tier's ring, filled toward the next tier. */
.points {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; font-weight: 800; font-size: 0.86rem;
  color: var(--ds-text); background: rgba(255, 255, 255, 0.045); border: 1px solid var(--ds-line); font-variant-numeric: tabular-nums;
}
.points.on { border-color: color-mix(in oklab, var(--t1) 60%, transparent); box-shadow: 0 0 18px -6px var(--t1); }
.points .ring {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; color: #1b1400;
  background: radial-gradient(closest-side, var(--t1) 74%, transparent 76% 100%), conic-gradient(var(--t2) calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
}
.earns {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 224, 138, 0.14), rgba(245, 184, 75, 0.08)); border: 1px solid rgba(245, 200, 75, 0.3);
}
.earns span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #2a1c00; background: linear-gradient(135deg, #ffe08a, #f5b84b); }
.earns small { display: block; color: var(--ds-text-2); font-size: 0.78rem; }
.earns b { font-size: 1.05rem; }

/* A celebration: points earned, what for, and a new tier when there is one. */
.cheer {
  position: fixed; z-index: 40; left: 50%; top: calc(80px + env(safe-area-inset-top)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 999px; color: #fff; max-width: calc(100vw - 32px);
  background: rgba(20, 18, 40, 0.92); -webkit-backdrop-filter: var(--ds-blur); backdrop-filter: var(--ds-blur);
  border: 1px solid color-mix(in oklab, var(--t1) 50%, transparent); box-shadow: 0 20px 60px -16px var(--t1);
  animation: cheer-in 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.cheer.out { animation: cheer-out 0.5s ease both; }
.cheer-star { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #1b1400; background: linear-gradient(135deg, #ffe08a, #f5b84b); box-shadow: 0 0 22px -2px #f5c84b; }
.cheer b { display: block; font-size: 1.05rem; }
.cheer span { color: var(--ds-text-2); font-size: 0.88rem; }
.cheer em { display: block; font-style: normal; font-family: var(--ds-display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t1); margin-top: 2px; }
@keyframes cheer-in { from { opacity: 0; transform: translate(-50%, -16px) scale(0.9); } }
@keyframes cheer-out { to { opacity: 0; transform: translate(-50%, -12px); } }
.spark { position: fixed; z-index: 41; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff, #ffd76a 60%, transparent); box-shadow: 0 0 8px #ffd76a; }
ion-toast.undo { --background: rgba(20, 18, 40, 0.94); --color: var(--ds-text); --button-color: #ffd76a; --border-radius: 16px; --max-width: 420px; }

/* Rewards. */
.rewards { padding-top: clamp(28px, 5vw, 56px); }
.rewards h2 { font-size: 1.45rem; margin: 44px 0 4px; }
.rw-hint { color: var(--ds-text-2); margin-bottom: 16px; }
.rw-hero { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: center; }
.rw-card {
  position: relative; aspect-ratio: 1.586; border-radius: 26px; padding: 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--t1) 55%, transparent), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in oklab, var(--t2) 45%, transparent), transparent 60%),
    linear-gradient(145deg, #1b1838, #0c0b1d);
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 80px -30px var(--t1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: perspective(900px) rotateX(4deg) rotateY(-8deg); transition: transform 0.6s var(--ds-ease);
}
.rw-card:hover { transform: perspective(900px) rotateX(0) rotateY(0); }
.rw-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.rw-mark { position: absolute; top: 18px; left: 22px; height: 40px; }
.rw-tier { font-family: var(--ds-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.82rem; color: var(--t1); }
.rw-points b { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.rw-points { color: var(--ds-text-2); }
.rw-bar { height: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); overflow: hidden; }
.rw-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--t2), var(--t1)); box-shadow: 0 0 12px var(--t1); }
.rw-next { color: var(--ds-text-2); font-size: 0.84rem; }
.rw-tiers { display: flex; gap: 6px; margin-top: 4px; }
.rw-tiers span { font-size: 0.68rem; padding: 3px 8px; border-radius: 999px; color: var(--ds-text-3); border: 1px solid var(--ds-line); }
.rw-tiers span.on { color: #0b0a1c; background: linear-gradient(135deg, var(--t1), var(--t2)); border-color: transparent; font-weight: 700; }
.rw-copy h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 780; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 14px; }
.rw-copy p:not(.eyebrow) { color: var(--ds-text-2); line-height: 1.6; max-width: 36rem; margin-bottom: 20px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.stamp {
  position: relative; padding: 10px 10px 12px; border-radius: 6px; background: #f3efe6; color: #3b2f2f; transform: rotate(var(--r));
  /* Perforated edges: a solid middle, and a field of holes that only shows around it. */
  --holes: radial-gradient(circle 4px at 6px 6px, #0000 97%, #000) -6px -6px / 12px 12px round;
  -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat, var(--holes);
  mask: linear-gradient(#000 0 0) center / calc(100% - 12px) calc(100% - 12px) no-repeat, var(--holes);
  filter: grayscale(1) opacity(0.45); transition: filter 0.4s, transform 0.4s var(--ds-ease);
}
.stamp.got { filter: none; }
.stamp:hover { transform: rotate(0) scale(1.03); }
.stamp-pic { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #ddd; }
.stamp-pic img { width: 100%; height: 100%; object-fit: cover; }
.stamp-name { display: block; text-align: center; margin-top: 8px; font-family: var(--ds-display); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.stamp-ok { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.3); transform: rotate(-12deg); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.badge { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--ds-glass); border: 1px solid var(--ds-line); }
.badge-ring {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: rgba(255, 255, 255, 0.5);
  background: radial-gradient(closest-side, #15132b 78%, transparent 80% 100%), conic-gradient(var(--b1) calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0);
}
.badge.got .badge-ring { color: #fff; background: linear-gradient(135deg, var(--b1), var(--b2)); box-shadow: 0 0 22px -4px var(--b1); }
.badge h3 { font-size: 1rem; }
.badge p { color: var(--ds-text-2); font-size: 0.82rem; margin: 2px 0 4px; }
.badge small { color: var(--ds-text-3); font-weight: 700; font-size: 0.8rem; }
.badge.got small { color: var(--ds-green); font-size: 1.1rem; }
.rw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.earn { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.earn li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ds-line); color: var(--ds-text-2); }
.earn b { color: #ffd76a; font-variant-numeric: tabular-nums; }
.rewards > .note { margin-top: 30px; color: var(--ds-text-3); font-size: 0.82rem; }

@media (max-width: 900px) { .rw-hero, .rw-two { grid-template-columns: 1fr; } .rw-card { max-width: 380px; } }
@media (max-width: 720px) {
  .hero { min-height: 74svh; padding-top: 40px; }
  .moods { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .moods::-webkit-scrollbar { display: none; }
  .mood { flex: none; }
  .now { left: var(--gutter); right: auto; bottom: 14px; }
  .points { padding: 0 3px; height: 38px; }
  .points b { display: none; }
  .stamps { grid-template-columns: repeat(2, 1fr); }
}
