/* Explore POV web player: the 3.0 app's language on the web (tokens in ui/tokens.css).
   The photography is the colour and the page's room: each screen's own picture, blurred and
   dimmed, behind white type and dark glass. One white capsule for the one thing to do. */

/* MARK: Base */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--room); color: var(--ink); -webkit-text-size-adjust: 100%; }
/* Not an Apple device (Android, Windows, a headset's browser): Inter, never a system fallback. */
html.font-inter { --font: Inter, system-ui, "Segoe UI", Roboto, sans-serif; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--room);
}
html.has-sheet, html.has-player { overflow: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-160%);
  padding: 10px 18px; border-radius: var(--r-pill); background: #fff; color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { transform: none; }
.noscript { padding: 40px; }

/* MARK: The room (the screen's picture, blurred and dimmed) */

.room { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.room__layer {
  position: absolute; inset: -10%;
  background: center / cover no-repeat;
  filter: blur(64px) saturate(1.35) brightness(0.46);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.room__layer.is-in { opacity: 1; }
.room::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.6) 100%);
}

.app { position: relative; z-index: 1; min-height: 100svh; }
.main { position: relative; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page) 96px; outline: none; }
body[data-screen="place"] .main { max-width: none; padding: 0; }

/* MARK: Top bar */

.topbar {
  position: relative; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-l);
  max-width: var(--content-max); height: 76px; margin: 0 auto; padding: 0 var(--page);
}
body[data-screen="place"] .topbar { position: absolute; left: 0; right: 0; top: 0; max-width: none; }
.wordmark {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.05em;
  font-size: 19px; font-weight: 500; letter-spacing: 0.1em; text-decoration: none;
  text-shadow: var(--text-shadow);
}
.wordmark__eye { width: 1.28em; height: 0.83em; margin: 0 0.02em; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3)); }
.topnav, .seg {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.topnav__link, .seg__btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background var(--t-quick) var(--ease-quick), color var(--t-quick) var(--ease-quick);
}
.topnav__link:hover, .seg__btn:hover { background: rgba(255, 255, 255, 0.1); }
.topnav__link[aria-current="page"], .seg__btn[aria-selected="true"], .seg__btn[aria-checked="true"] { background: #fff; color: var(--on-accent); }
.account { justify-self: end; display: flex; align-items: center; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  font-size: 16px; font-weight: 600;
}
.avatar--large { width: 64px; height: 64px; font-size: 26px; margin: 0 auto var(--s-l); }

/* MARK: Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px;
  border-radius: var(--r-pill);
  font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-quick) var(--ease-quick), background var(--t-quick) var(--ease-quick), filter var(--t-quick) var(--ease-quick);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: default; transform: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.btn--primary:hover:not([disabled]) { filter: brightness(0.92); }
.btn--glass {
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.btn--glass:hover:not([disabled]) { background: var(--glass-hover); }
.btn--small { height: 38px; padding: 0 16px; font-size: 15px; gap: 7px; }
.btn--small svg { width: 16px; height: 16px; }
.btn--wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-m); }
.actions--center { justify-content: center; }

.round {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  transition: background var(--t-quick) var(--ease-quick);
}
.round svg { width: 20px; height: 20px; }
.round:hover:not([disabled]) { background: var(--glass-hover); }
.round[disabled] { opacity: 0.4; cursor: default; }
.round--sm { width: 36px; height: 36px; }
.round--sm svg { width: 16px; height: 16px; }

.pill-premium {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: var(--r-pill);
  background: rgba(24, 30, 42, 0.55); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  font-size: 14px; font-weight: 600; color: #fff;
}
.pill-premium--hero { top: 24px; right: 24px; height: 36px; padding: 0 16px; font-size: 15px; }
/* The app's Added pill: a place added in the last three weeks, top left of its card. */
.pill-added {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: var(--r-pill); background: #fff; color: var(--on-accent);
  font-size: 13px; font-weight: 600;
}

/* MARK: Hero (Explore and Country) */

.hero {
  position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 2.67; min-height: 460px; max-height: 660px;
  border-radius: var(--r-hero); overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.hero__slide.is-current { opacity: 1; z-index: 1; }
.hero__media { position: absolute; inset: 0; background: #16181c; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: var(--scrim), linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0) 66%);
}
.hero__text {
  position: absolute; left: 0; bottom: 0;
  width: min(700px, 100%); padding: 0 clamp(24px, 3.4vw, 56px) clamp(28px, 3.4vw, 52px);
  text-shadow: var(--text-shadow);
}
.hero__eyebrow { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--s-m); }
.hero__title { margin-bottom: var(--s-s); }
.hero--carousel .hero__slide:first-child .hero__title { font-size: clamp(34px, calc(18px + 2.6vw), 60px); }
.hero__meta { font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.86); font-variant-numeric: tabular-nums; margin-bottom: var(--s-s); }
.hero__meta--strong { font-size: var(--fs-body); font-weight: 600; color: #fff; }
.hero__about {
  font-size: var(--fs-body); color: rgba(255, 255, 255, 0.9); max-width: 58ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__about--full { -webkit-line-clamp: 5; }
.hero__text .actions { margin-top: var(--s-xl); text-shadow: none; }
.hero__back { position: absolute; top: 24px; left: 24px; z-index: 3; }
.hero__dots {
  position: absolute; left: 50%; bottom: 24px; z-index: 3; transform: translateX(-50%);
  display: flex; gap: 0; align-items: center; padding: 0 4px;
  border-radius: var(--r-pill);
  background: rgba(20, 22, 26, 0.35); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
}
/* Each dot is a 24 px target around the 8 px mark the eye sees. */
.dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; transition: width var(--t-settle) var(--ease-settle); }
.dot::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); transition: width var(--t-settle) var(--ease-settle), background var(--t-quick); }
.dot.is-current { width: 48px; }
.dot.is-current::after { width: 36px; background: #fff; }
.dot:hover::after { background: rgba(255, 255, 255, 0.85); }
.dot.is-current:hover::after { background: #fff; }
.dot-pause { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; color: rgba(255, 255, 255, 0.85); }
.dot-pause:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.dot-pause svg { width: 12px; height: 12px; }
.hero--country { aspect-ratio: 2.3; min-height: 520px; max-height: 720px; margin-top: var(--s-s); }

/* MARK: Switcher row and rows */

.switcher { margin-top: var(--shelf-gap); }
.switcher__bar, .shelf__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-l); margin-bottom: var(--s-l); }
.switcher__nav, .shelf__nav { display: flex; gap: var(--s-s); }
.seg__skeleton { display: block; width: 420px; height: 36px; }
.row {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gutter)) / 3.12);
  gap: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--page);
  margin: 0 calc(-1 * var(--page)); padding: 4px var(--page) 12px;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }

/* MARK: Library */

.library { margin-top: 64px; scroll-margin-top: 24px; }
.library__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-l); margin-bottom: var(--s-l); }
.library__head h2:focus { outline: none; }
.library__head .seg { flex: none; }
/* The Library's search (the app's "Search places, countries and ways"). */
.search {
  flex: 1 1 auto; max-width: 420px; margin-left: auto; position: relative; display: flex; align-items: center;
  height: 44px; padding: 0 16px 0 44px; border-radius: var(--r-pill);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.search:focus-within { box-shadow: inset 0 0 0 2px #fff; }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.search input { width: 100%; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: #fff; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-s); margin-bottom: var(--s-xl); }
.chips[hidden] { display: none; }
.chips__rule { width: 1px; height: 24px; background: var(--hairline); margin: 0 var(--s-xs); }
.chip {
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
  transition: background var(--t-quick) var(--ease-quick), color var(--t-quick) var(--ease-quick);
}
.chip:hover { background: var(--glass-hover); }
.chip[aria-pressed="true"] { background: #fff; color: var(--on-accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gutter); }
.grid > .card, .grid > .tile { content-visibility: auto; contain-intrinsic-size: auto 220px; }
.empty { grid-column: 1 / -1; padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-l); color: var(--ink-2); }

/* MARK: THE card */

.card {
  position: relative; display: block; isolation: isolate;
  aspect-ratio: 2 / 1; border-radius: var(--r-postcard); overflow: hidden;
  background: var(--tone, #17181b); color: #fff; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-settle) var(--ease-settle), box-shadow var(--t-settle) var(--ease-settle);
}
.card:hover { transform: scale(1.015); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4); }
.card:focus-visible { outline-offset: 4px; border-radius: var(--r-postcard); }
.card__media, .tile__media { position: absolute; inset: 0; }
.card__media img, .tile__media img { width: 100%; height: 100%; object-fit: cover; }
/* A picture still on its way shows its own average colour (the card's --tone), then fades in. */
img[data-fade] { transition: opacity 0.3s ease; }
img[data-fade]:not(.is-loaded) { opacity: 0; }
.card::after, .tile::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--scrim); }
.card__body { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; text-shadow: var(--text-shadow); isolation: isolate; }
/* Bright pictures (ice, sky, surf): a soft shade behind the words only, so the info line holds. */
.card__body::before {
  content: ""; position: absolute; inset: -40px -20px -16px; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 110% at 0% 100%, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 75%);
}
.card__line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 2px; }
/* Pale pictures (snow, white sand, cloud): a card whose renderer set --pale (0..1, from its tone,
   player/core/tone.js) gets a second, taller shade behind its words, reaching up past the info line and
   fading out inside its own box (0 by 90%, clear of the box's top edge), and a soft dark edge on the
   line's letters (critic A #8, measured by scripts/site-dev/card_contrast.py). A card without --pale
   (every ordinary picture) matches neither rule and is drawn exactly as before. */
.card[style*="--pale"] .card__body::after {
  content: ""; position: absolute; inset: -80px -20px -16px; z-index: -1; pointer-events: none;
  background: radial-gradient(160% 110% at 0% 100%, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0) 90%);
  opacity: var(--pale);
}
.card[style*="--pale"] .card__line { text-shadow: 0 0 1px rgba(0, 0, 0, calc(0.5 * var(--pale))), 0 0 4px rgba(0, 0, 0, calc(0.4 * var(--pale))), var(--text-shadow); }
.card__seen { display: inline-flex; align-items: center; gap: 4px; }
.card__seen::before { content: "·"; margin-right: 2px; }
.card__seen svg { width: 14px; height: 14px; }
.card__title {
  font-size: var(--fs-card); font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; text-shadow: none; }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 6px;
  font-size: 12px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, 0.12);
}

.tile {
  position: relative; display: block; isolation: isolate;
  aspect-ratio: 376 / 212; border-radius: var(--r-tile); overflow: hidden;
  background: var(--tone, #17181b); color: #fff; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-settle) var(--ease-settle);
}
.tile:hover { transform: scale(1.015); }
.tile__body { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; text-shadow: var(--text-shadow); }
.tile__title { font-size: var(--fs-tile); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.tile__line { font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.85); }

.smallcard { position: relative; display: block; aspect-ratio: 180 / 100; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; background: #17181b; }
.smallcard__media { position: absolute; inset: 0; }
.smallcard__media img { width: 100%; height: 100%; object-fit: cover; }
.smallcard::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.smallcard__title { position: absolute; left: 12px; right: 12px; bottom: 9px; z-index: 1; font-size: 15px; font-weight: 600; text-shadow: var(--text-shadow); }
.smallcard__lock { position: absolute; top: 8px; right: 8px; z-index: 1; width: 22px; height: 22px; }
.smallcard__lock svg { width: 16px; height: 16px; }

/* MARK: Shelves */

.shelf { margin-top: 48px; }
.shelf__head { display: flex; align-items: baseline; gap: var(--s-m); margin-bottom: var(--s-l); }
.shelf__bar .shelf__head { margin-bottom: 0; }

/* MARK: Place page */

.place__hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: max(600px, min(100svh, 1080px));
}
.place__media { position: absolute; inset: 0; overflow: hidden; background: var(--tone, #1b1d21); }
/* No drift: a transform animation makes browsers downscale the 4K still with cheap filtering (it
   looked blocky), and motion only carries you somewhere. */
.place__img { width: 100%; height: 100%; object-fit: cover; }
.place__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0) 16%),
    var(--scrim),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0) 62%);
}
.place__hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.place__back { position: absolute; z-index: 4; top: 88px; left: var(--page); }
.place__text {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--content-max); margin: 0 auto;
  padding: 0 var(--page) clamp(40px, 7vh, 80px);
}
.place__head, .place__body { max-width: 700px; }
.place__eyebrow { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--s-m); text-shadow: var(--text-shadow); }
.place__title { margin-bottom: var(--s-m); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25); }
.place__facts { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; font-size: var(--fs-body); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: var(--s-m); text-shadow: var(--text-shadow); }
.place__seen { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.place__seen svg { width: 16px; height: 16px; }
.place__about { color: rgba(255, 255, 255, 0.92); text-shadow: var(--text-shadow); }
.place__lock { margin-top: var(--s-m); font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.75); text-shadow: var(--text-shadow); }
.place__actions { margin-top: var(--s-xl); width: max-content; max-width: min(980px, calc(100vw - 2 * var(--page))); }
.place__bar { display: none; }
.place__bar-alt { display: none; }
.place__more { position: relative; max-width: var(--content-max); margin: 0 auto; padding: 8px var(--page) 120px; }
.foot { margin-top: 64px; }
.boot--place { min-height: 72svh; display: flex; align-items: flex-end; padding: 0 var(--page) 12vh; }
.boot__title { text-shadow: var(--text-shadow); opacity: 0.9; }

.handoff-wrap { position: relative; }
.handoff {
  position: absolute; left: calc(100% + 12px); bottom: 0; z-index: 8;
  width: 400px; padding: 20px;
  display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center;
  border-radius: 24px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 30px 80px rgba(0, 0, 0, 0.5);
  text-shadow: none;
}
.handoff--above { left: 0; bottom: calc(100% + 14px); }
.handoff[hidden] { display: none; }
.handoff__qr { width: 116px; height: 116px; border-radius: 14px; background: #fff; padding: 8px; }
.handoff__qr svg { width: 100%; height: 100%; display: block; }
.handoff__title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.handoff__text { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-bottom: 12px; }

/* MARK: Session */

.screen-head { padding: var(--s-l) 0 var(--s-xl); }
.screen-head h1:focus { outline: none; }
.session { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); gap: var(--page); align-items: stretch; }
.session--single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.journey {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 680px; border-radius: var(--r-hero);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #15171a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.journey--loading { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.journey__media { position: absolute; inset: 0; }
.journey__media img { width: 100%; height: 100%; object-fit: cover; }
.journey__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 22%), var(--scrim); }
.route { position: absolute; top: 32px; left: 36px; right: 36px; z-index: 2; display: flex; justify-content: space-between; list-style: none; }
.route::before { content: ""; position: absolute; left: 18px; right: 18px; top: 50%; height: 1.5px; background: rgba(255, 255, 255, 0.7); }
.route__stop { position: relative; }
.route__dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  background: rgba(20, 22, 26, 0.45); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}
.route__stop.is-locked .route__dot { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.7); }
.route__dot svg { width: 15px; height: 15px; }
.journey__text { position: relative; z-index: 2; padding: 36px; text-shadow: var(--text-shadow); }
.journey__text .t-eyebrow { margin-bottom: var(--s-m); color: rgba(255, 255, 255, 0.9); }
.journey__title { font-size: clamp(32px, calc(12px + 2.3vw), 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; margin-bottom: var(--s-s); text-wrap: balance; }
.journey__meta { font-size: var(--fs-body); font-weight: 500; margin-bottom: var(--s-s); font-variant-numeric: tabular-nums; }
.journey__about { font-size: var(--fs-body); color: rgba(255, 255, 255, 0.92); max-width: 56ch; }
.journey__status { font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.8); margin-top: var(--s-s); }
.journey__text .actions { margin-top: var(--s-xl); text-shadow: none; }
.journey__next { font-size: var(--fs-footnote); color: rgba(255, 255, 255, 0.7); margin-top: var(--s-l); }

.make {
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--r-hero);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.make__lede { margin: var(--s-xs) 0 var(--s-xl); }
.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-m); margin-bottom: var(--s-xl); }
.mood:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2.8; }
.mood {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 270 / 150; border-radius: var(--r-postcard);
  text-align: left; background: #17181b;
  transition: transform var(--t-settle) var(--ease-settle);
}
.mood::after { content: ""; position: absolute; inset: 0; background: var(--scrim); border-radius: inherit; transition: box-shadow var(--t-quick); }
.mood.is-selected::after { box-shadow: inset 0 0 0 3px #fff; }
.mood:hover:not([disabled]) { transform: scale(1.02); }
.mood[disabled] { opacity: 0.45; cursor: default; }
.mood__media { position: absolute; inset: 0; }
.mood__media img { width: 100%; height: 100%; object-fit: cover; }
.mood__title { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-size: 19px; font-weight: 600; text-shadow: var(--text-shadow); }
.mood__note { position: absolute; left: 14px; right: 14px; top: 10px; z-index: 1; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.make__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-l); padding: var(--s-m) var(--s-xs); }
.make__row + .make__row { border-top: 1px solid var(--hairline); }
.make__value { font-size: var(--fs-body); font-weight: 500; font-variant-numeric: tabular-nums; }
.make__label { font-size: var(--fs-body); font-weight: 500; }
.make__toggle { cursor: pointer; }
.stepper { display: flex; gap: var(--s-s); }
.toggle {
  appearance: none; -webkit-appearance: none;
  position: relative; width: 51px; height: 31px; flex: none;
  border-radius: var(--r-pill); background: rgba(120, 120, 128, 0.36);
  cursor: pointer; transition: background var(--t-quick) var(--ease-quick);
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-settle) var(--ease-settle);
}
.toggle:checked { background: var(--toggle-tint); }
.toggle:checked::after { transform: translateX(20px); }
.make__foot { margin-top: auto; padding-top: var(--s-xl); display: flex; flex-direction: column; align-items: center; gap: var(--s-m); text-align: center; }

/* MARK: States */

.state { min-height: 62svh; display: grid; place-items: center; padding: 48px 0; }
.state__card {
  width: min(560px, 100%); padding: 48px 40px 40px; text-align: center;
  border-radius: var(--r-hero);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.state__card h1 { margin-bottom: var(--s-m); }
.state__card .t-body { margin: 0 auto var(--s-xl); color: var(--ink-2); }
.state__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s-l); border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.state__icon svg { width: 26px; height: 26px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translateX(-50%);
  /* A pill for a line, a rounded card when it wraps (never a circle with the words spilling out). */
  width: max-content; max-width: min(520px, calc(100vw - 32px));
  padding: 12px 20px; border-radius: 22px; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; text-wrap: balance;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 20px 50px rgba(0, 0, 0, 0.4);
}
.toast[hidden] { display: none; }

/* A payment we haven't seen land: calm, it stays until Premium is here (main.js renderPayment). */
.paystatus {
  position: fixed; right: 24px; bottom: 24px; z-index: 59; width: min(400px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 22px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 20px 50px rgba(0, 0, 0, 0.45);
}
.paystatus[hidden] { display: none; }
body:has(#player:not([hidden])) .paystatus { bottom: auto; top: 84px; }
/* A sheet open (the plans show the held state themselves): the card waits behind it. */
html.has-sheet .paystatus { display: none; }
.paystatus .spinner--small { margin-top: 2px; }
.paystatus__icon { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink-2); }
.paystatus__icon svg { width: 22px; height: 22px; }
.paystatus__title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.paystatus__line { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.paystatus__line a, .paywall__held-line a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.paystatus__actions { display: flex; gap: 8px; margin-top: 12px; }
.spinner.spinner--small { width: 18px; height: 18px; border-width: 2px; margin: 0; flex: none; }

/* The plans while a payment is being confirmed: shown, dimmed, not choosable; Check again instead of Get Premium. */
.plans--held { opacity: 0.45; pointer-events: none; }
.paywall__held { margin-bottom: 14px; text-align: center; }
.paywall__held-title { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.paywall__held-line { margin-top: 6px; }

.tabbar { display: none; }

/* MARK: Sheets */

.sheets { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.sheets[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; overflow: hidden; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.sheet-backdrop__img { display: none; }
.sheet {
  position: relative; width: min(460px, 100%); max-height: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain;
  padding: 44px 32px 28px;
  border-radius: var(--r-hero);
  /* Thick glass: the page behind never reads through a sheet, blur or no blur. */
  background: var(--glass-thick); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 40px 120px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translateY(14px) scale(0.985);
  transition: opacity 0.3s ease, transform var(--t-settle) var(--ease-settle);
  outline: none;
}
.sheet.is-in { opacity: 1; transform: none; }
.sheet--wide { width: min(740px, 100%); padding: 0; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 5; }

.signin { display: flex; flex-direction: column; align-items: center; text-align: center; }
.signin__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); margin-bottom: var(--s-l); }
.signin__icon svg { width: 30px; height: 30px; }
.signin__title { margin-bottom: var(--s-s); text-wrap: balance; }
.signin__line { max-width: 40ch; margin: 0 auto; text-wrap: balance; }
.signin__error { min-height: 20px; font-size: 14px; color: #ffb4ab; margin: var(--s-s) 0; }
.signin__error:empty { margin: 0 0 var(--s-l); min-height: 0; }
.signin__buttons { width: 100%; display: flex; flex-direction: column; gap: var(--s-m); }
.signin__buttons svg { width: 20px; height: 20px; }
.signin__newsletter { display: flex; align-items: center; gap: 10px; margin-top: var(--s-xl); font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
.signin__newsletter input { width: 18px; height: 18px; accent-color: #fff; flex: none; }
.signin__skip { margin-top: var(--s-l); padding: 8px 12px; font-size: 15px; color: var(--ink-2); border-radius: 10px; }
.signin__skip:hover { color: #fff; }
.signin__busy { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: inherit; background: rgba(18, 19, 22, 0.94); }
.signin__busy[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.9s linear infinite; margin-bottom: var(--s-m); }
@keyframes spin { to { transform: rotate(360deg); } }

.paywall__hero { position: relative; height: 260px; overflow: hidden; border-radius: var(--r-hero) var(--r-hero) 0 0; }
.paywall__media { position: absolute; inset: 0; }
.paywall__media img { width: 100%; height: 100%; object-fit: cover; }
.paywall__scrim { position: absolute; inset: 0; background: var(--scrim); }
.paywall__badge { top: 20px; left: 20px; right: auto; }
.paywall__place { position: absolute; left: 32px; right: 32px; bottom: 20px; text-shadow: var(--text-shadow); }
.paywall__place-title { font-size: var(--fs-tile); font-weight: 600; letter-spacing: -0.01em; }
.paywall__place-meta { font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.85); }
.paywall__content { padding: 28px 32px 0; }
.paywall__foot { padding: 0 32px 32px; }
.paywall__title { margin-bottom: var(--s-xs); }
/* No picture above (the plans on their own, as on /go): the title clears the close button. */
.sheet__body > .paywall__content:first-child .paywall__title { padding-right: 52px; }
.paywall__subtitle { margin-bottom: var(--s-xl); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s-m); margin-bottom: var(--s-xl); }
.plans__note { grid-column: 1 / -1; padding: 24px 0; text-align: center; color: var(--ink-2); font-size: 15px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 18px 18px 16px; border-radius: var(--r-postcard); cursor: pointer;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow var(--t-quick), background var(--t-quick);
}
.plan:hover { background: rgba(255, 255, 255, 0.1); }
.plan.is-selected { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 2px #fff; }
.plan__badge { position: absolute; top: -10px; right: 12px; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: #fff; color: var(--on-accent); font-size: 11px; font-weight: 600; }
.plan__name { font-size: 15px; font-weight: 600; }
.plan__price { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.plan__per { font-size: 14px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.plan__detail { font-size: 13px; color: var(--ink-2); }
.plans__fail { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: var(--s-m); padding: 20px 0 8px; text-align: center; color: var(--ink-2); font-size: 15px; }
.plans__link { font-size: 14px; color: var(--ink-2); text-underline-offset: 3px; }
.plans__link:hover { color: #fff; }
.paywall__signin { display: block; width: 100%; margin: var(--s-xs) 0 0; padding: 8px; min-height: 44px; border-radius: 12px; font-size: 14px; color: var(--ink-2); text-align: center; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.paywall__signin:hover { color: #fff; }
.paywall__guarantee { text-align: center; margin-top: var(--s-m); }
.paywall__error { min-height: 0; font-size: 14px; color: #ffb4ab; text-align: center; }
.paywall__error:not(:empty) { margin-bottom: var(--s-m); }

.stops__title { margin: var(--s-s) 0 var(--s-xs); }
.stops { list-style: none; margin: var(--s-xl) 0; display: flex; flex-direction: column; gap: var(--s-s); }
.stop { display: grid; grid-template-columns: 30px 104px 1fr; gap: var(--s-m); align-items: center; }
.stop.is-locked { opacity: 0.6; }
.stop__num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.stop__num svg { width: 13px; height: 13px; }
.stop__media { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #17181b; }
.stop__media img { width: 100%; height: 100%; object-fit: cover; }
.stop__words { display: flex; flex-direction: column; min-width: 0; }
.stop__title { font-size: 16px; font-weight: 600; }
.stop__line { font-size: 13px; color: var(--ink-2); }
.sheet--stops { width: min(560px, 100%); }
.account-sheet { text-align: center; }
.account-sheet__note { margin-top: var(--s-l); max-width: 36ch; margin-inline: auto; }
.account-sheet__note:empty { display: none; }
.account-sheet__plan { display: inline-block; margin: var(--s-l) 0 var(--s-xl); padding: 4px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--glass-edge); font-size: 14px; font-weight: 600; }

/* MARK: /go, paying from the headset (the phone's side) */

/* The top bar keeps its grid (the avatar stays right); the nav and tab bar step aside. */
body[data-screen="go"] .topnav, body[data-screen="go"] .account [data-signin] { visibility: hidden; }
body[data-screen="go"] .tabbar { display: none; }
.go { min-height: calc(100svh - 96px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 0 40px; }
.go__card {
  width: min(520px, 100%); overflow: hidden; border-radius: var(--r-hero);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.go__media { position: relative; height: 196px; background: var(--tone, #1b1d21); }
.go__media img { width: 100%; height: 100%; object-fit: cover; }
.go__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 40%, rgba(22, 23, 27, 0.55) 80%, rgba(22, 23, 27, 0.92) 100%); }
.go__badge {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: rgb(34, 36, 41); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.go__badge svg { width: 32px; height: 32px; }
.go__badge.is-done { background: #fff; color: var(--on-accent); }
.go__badge.is-done svg { width: 36px; height: 36px; }
.go__body { padding: 44px 32px 32px; text-align: center; }
.go__card:not(:has(.go__media)) .go__body { padding-top: 32px; }
.go__eyebrow { color: var(--ink-2); margin-bottom: var(--s-s); font-variant-numeric: tabular-nums; }
.go__title { margin-bottom: var(--s-s); text-wrap: balance; }
.go__title:focus { outline: none; }
.go__line { max-width: 40ch; margin: 0 auto var(--s-xl); text-wrap: pretty; }
.go__form { display: grid; gap: var(--s-m); }
.go__code {
  width: 100%; height: 80px; padding: 0 12px; border: 0; border-radius: 20px; outline: none;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--glass-edge);
  color: #fff; caret-color: #fff; text-align: center; text-transform: uppercase;
  font-size: 40px; font-weight: 600; letter-spacing: 0.16em; text-indent: 0.16em; font-variant-numeric: tabular-nums;
  transition: box-shadow var(--t-quick);
}
.go__code:focus { box-shadow: inset 0 0 0 2px #fff; }
.go__code::placeholder { color: rgba(255, 255, 255, 0.28); }
.go__code[readonly] { color: rgba(255, 255, 255, 0.7); }
.go__hint { min-height: 20px; font-size: 14px; color: var(--ink-2); }
.go__hint.is-warn { color: #ffcf9e; }
.go__form .btn { margin-top: var(--s-s); }
.go__buttons { display: grid; gap: var(--s-m); }
.go__buttons svg { width: 20px; height: 20px; }
.go__buttons--row { grid-template-columns: 1fr 1fr; }
.go__text { min-height: 44px; padding: 8px 10px; border-radius: 12px; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.go__text:hover { color: #fff; }
.go__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: var(--s-s); }
.go__more:not(:has(button)) { display: none; }
.go__device {
  display: flex; align-items: center; gap: 16px; margin: var(--s-l) 0 var(--s-l); padding: 16px 20px; text-align: left;
  border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.go__device > svg { flex: none; width: 40px; height: 40px; }
.go__device-name { font-size: var(--fs-card); font-weight: 600; line-height: 1.2; }
.go__device-code { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.go__expiry { margin-top: var(--s-l); text-align: center; font-variant-numeric: tabular-nums; }
.go__expiry:empty { display: none; }
.go__alert { font-size: 14px; color: #ffb4ab; margin: calc(-1 * var(--s-m)) 0 var(--s-m); }
.go__alert:empty { display: none; }
.go__busy { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: var(--s-m); font-size: 15px; color: var(--ink-2); }
.go__spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.9s linear infinite; }
.go__spin--dark { border-color: rgba(0, 0, 0, 0.18); border-top-color: rgba(0, 0, 0, 0.8); }
.btn .go__spin { margin-right: 8px; }
.go__done-icon, .go__error-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--s-l); border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.go__done-icon svg { width: 34px; height: 34px; }
.go__error-icon svg { width: 28px; height: 28px; }
.go__body[data-step="done"] .go__line, .go__body[data-step="error"] .go__line { margin-bottom: var(--s-l); }
.go__body[data-step="done"] .go__line:last-child, .go__body[data-step="error"] .go__line:last-child { margin-bottom: 0; }
.go__foot { margin-top: var(--s-l); text-align: center; }
.go__foot a { color: var(--ink-2); text-underline-offset: 3px; }
.go__foot a:hover { color: #fff; }
/* A pointer ray in a headset's browser: bigger type and targets. */
.is-headset .go__code { height: 96px; font-size: 48px; }
.is-headset .go__hint, .is-headset .go__device-code, .is-headset .go__text { font-size: 17px; }

@media (max-width: 700px) {
  /* /go on a phone: the card fills the width, solid (no blur drawn under a scrolling page), the
     code box big enough to read at arm's length, buttons stacked. */
  .go { min-height: calc(100svh - 84px); justify-content: flex-start; padding: 4px 0 32px; }
  .go__card { border-radius: 24px; background: rgb(24, 25, 29); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .go__media { height: 124px; }
  .go__body { padding: 42px 20px 24px; }
  .go__line { margin-bottom: var(--s-l); }
  .go__code { height: 76px; font-size: 38px; }
  .go__buttons--row { grid-template-columns: 1fr; }
  .go__device { padding: 14px 16px; }
}

/* MARK: The 2D player */

.player { position: fixed; inset: 0; z-index: 30; background: #000; overflow: hidden; }
.player[hidden] { display: none; }
.flat-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.flat-canvas:active { cursor: grabbing; }
.chrome { transition: opacity 0.5s ease; }
.player.is-idle .chrome { opacity: 0; pointer-events: none; }
.player.is-idle { cursor: none; }
.player .round { position: absolute; top: max(20px, env(safe-area-inset-top)); left: clamp(16px, 3vw, 32px); width: 48px; height: 48px; }
.player .endcard .round, .player .upnext .round { position: static; }

.bar {
  position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 12px 14px 12px 12px;
  border-radius: 28px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.bar__play { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--on-accent); display: grid; place-items: center; }
.bar__play svg { width: 20px; height: 20px; }
.bar__mid { min-width: 0; }
.bar__where { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; }
.bar__title { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.bar__area { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.scrub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.time { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4ch; }
.track { position: relative; height: 24px; cursor: pointer; touch-action: none; border-radius: 12px; }
.track__rail, .track__buf, .track__fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; }
.track__rail { right: 0; background: rgba(255, 255, 255, 0.18); }
.track__buf { background: rgba(255, 255, 255, 0.34); width: 0; }
.track__fill { background: #fff; width: 0; }
.track__knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); left: 0; transform: scale(0.8); transition: transform 0.15s ease; }
.track:hover .track__knob, .track:focus-visible .track__knob { transform: scale(1); }
.bar__right { display: flex; align-items: center; gap: 4px; }
.icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.icon:hover { background: rgba(255, 255, 255, 0.1); }
.icon svg { width: 22px; height: 22px; }
.icon[hidden] { display: none; }

/* The place's still while its film loads: full-bleed, dimmed, dissolving into the film (0.6 s). */
.pstill { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.pstill.is-on { opacity: 1; }
.pstill img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45); }
/* Behind a locked Up Next once the film has ended: the next place, dimmer, the card in front. */
.pstill.is-next img { filter: brightness(0.35); }
.player.is-upnext-locked .bar, .player.is-error .bar { opacity: 0; pointer-events: none; }
.player.is-waiting .bar { opacity: 0; pointer-events: none; }
.player.is-arriving .bar__where { visibility: hidden; }

.loading, .alert {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 40px)); padding: 28px;
  border-radius: var(--r-hero);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.loading[hidden], .alert[hidden] { display: none; }
.loading .eyebrow, .upnext .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.loading__title { font-size: var(--fs-tile); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; line-height: 1.15; }
.loading__bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; margin-bottom: 10px; }
.loading__fill { height: 100%; width: 0; background: #fff; border-radius: 2px; transition: width 0.25s ease; }
.loading__stage { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.alert h2 { font-size: var(--fs-tile); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.15; }
.alert p { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }
.alert__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* The Reconnecting pill: over the frozen frame, quiet, gone the moment frames move. */
.reconnect {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px;
  border-radius: var(--r-pill); font-size: 15px; font-weight: 600;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge); pointer-events: none;
}
.reconnect__spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.9s linear infinite; }

.arrival { position: absolute; left: clamp(20px, 4vw, 64px); bottom: 140px; max-width: min(760px, calc(100% - 40px)); pointer-events: none; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3); }
.arrival__line { opacity: 0; transform: translateY(8px); transition: opacity 0.6s ease, transform 0.6s var(--ease-settle); }
.arrival__title { font-size: var(--fs-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 8px 0 6px; }
.arrival__meta { font-size: var(--fs-meta); color: rgba(255, 255, 255, 0.85); }
.arrival.is-in .arrival__line { opacity: 1; transform: none; }
.arrival.is-in .arrival__line:nth-child(1) { transition-delay: 0.6s; }
.arrival.is-in .arrival__line:nth-child(2) { transition-delay: 0.75s; }
.arrival.is-in .arrival__line:nth-child(3) { transition-delay: 0.9s; }
.arrival.is-out .arrival__line { opacity: 0; transform: none; transition: opacity 1s ease; transition-delay: 0s; }

.upnext {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: 124px;
  width: min(560px, calc(100% - 32px)); padding: 18px;
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  border-radius: var(--r-hero);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 24px 60px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-settle);
}
.upnext.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.upnext__label { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-2); }
/* The picture fills its column to the card's height (critic r1b #7: no dead card under a thumbnail). */
.upnext__img { position: relative; min-height: 124px; border-radius: var(--r-postcard); overflow: hidden; background: #222; align-self: stretch; }
.upnext__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upnext__img::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.upnext__count { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; text-align: left; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.upnext__barwrap { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); margin-top: 6px; overflow: hidden; }
.upnext__bar { height: 100%; width: 0; background: #fff; }
.upnext__text { display: flex; flex-direction: column; min-width: 0; }
.upnext__title { font-size: var(--fs-card); font-weight: 600; line-height: 1.2; }
.upnext__alts { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; margin-top: 12px; }
.upnext__alts:empty { display: none; }
.upnext__or { font-size: 13px; color: var(--ink-3); }
.upnext__alt { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-2); min-width: 0; }
.upnext__alt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.upnext__alt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext__buttons { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.12); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--glass-edge); }
.chip-btn:hover { background: rgba(255, 255, 255, 0.2); }

.endcard {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(680px, calc(100% - 32px)); padding: 32px; text-align: center;
  border-radius: var(--r-hero);
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.endcard[hidden] { display: none; }
.endcard .t-eyebrow { color: var(--ink-2); }
.endcard__title { font-size: var(--fs-screen); font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 2px; }
.endcard__meta { font-size: var(--fs-meta); color: var(--ink-2); margin-bottom: var(--s-xl); }
.endcard__route { list-style: none; display: flex; justify-content: center; align-items: center; gap: 0; margin: var(--s-l) 0; }
.endcard__route li { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.endcard__route li + li { margin-left: 18px; position: relative; }
.endcard__route li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 18px; height: 1.5px; background: rgba(255, 255, 255, 0.4); }
.endcard__route li:last-child { background: #fff; color: var(--on-accent); box-shadow: none; }
.endcard__stamp, .endcard__next { font-size: var(--fs-meta); color: var(--ink-2); margin-top: calc(-1 * var(--s-l)); margin-bottom: var(--s-l); }
.endcard__premium { display: flex; align-items: center; justify-content: center; gap: var(--s-m); flex-wrap: wrap; font-size: var(--fs-meta); color: var(--ink-2); margin-bottom: var(--s-xl); }
.endcard__premium[hidden], .endcard__stamp[hidden], .endcard__next[hidden] { display: none; }
.upnext__from { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.upnext__line { font-size: 14px; color: var(--ink-2); margin-top: 4px; text-wrap: pretty; }
.upnext__signin { height: 40px; }
.upnext--locked .upnext__count { display: none; }
.upnext__signin svg { width: 18px; height: 18px; }
.upnext__from:empty { display: none; }
.endcard .actions { justify-content: center; }

.notice {
  position: absolute; left: 50%; top: max(20px, env(safe-area-inset-top)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px;
  background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  box-shadow: inset 0 0 0 1px var(--glass-edge);
}
.notice[hidden] { display: none; }
.debug { position: absolute; right: 12px; top: 12px; font: 11px/1.4 ui-monospace, Menlo, monospace; background: rgba(0, 0, 0, 0.6); padding: 8px 10px; border-radius: 8px; white-space: pre; pointer-events: none; }

/* MARK: Mid sizes (laptop, tablet) */

@media (max-width: 1100px) {
  .session { grid-template-columns: 1fr; }
  .journey { min-height: 600px; }
  .row { grid-auto-columns: calc((100% - var(--gutter)) / 2.1); }
}

/* MARK: Phones */

@media (max-width: 700px) {
  .topbar { height: 60px; grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .wordmark { font-size: 16px; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px;
    border-radius: 26px;
    background: rgb(24, 25, 29); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 0 0 1px var(--glass-edge), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
  html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; border-radius: 20px; font-size: 11px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .tabbar__link svg { width: 22px; height: 22px; }
  .tabbar__link[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; }
  body[data-screen="place"] .tabbar { display: none; }

  /* The first screen clears the tab bar: the switcher shows whole above it. */
  .hero { aspect-ratio: auto; height: clamp(400px, calc(100svh - 250px), 540px); min-height: 0; border-radius: 24px; }
  .hero__text { padding: 0 20px 64px; }
  .hero--country .hero__text { padding-bottom: 24px; }
  /* The country's first screen: picture above, its words and both buttons clear of the tab bar. */
  .hero--country { height: auto; min-height: 0; aspect-ratio: auto; }
  .hero--country .hero__slide { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero--country .hero__text { padding-top: 170px; }
  .hero--country .hero__text .actions { margin-top: var(--s-l); gap: 8px; }
  .hero--country .hero__text .actions .btn { height: 44px; padding: 0 18px; font-size: 15px; }
  .hero--country .hero__text { position: relative; }
  .hero__about--full { -webkit-line-clamp: 3; }
  .hero__dots { bottom: 18px; }
  .hero__back { top: 16px; left: 16px; }
  .pill-premium--hero { top: 16px; right: 16px; }
  .hero__text .actions .btn { height: 46px; padding: 0 20px; font-size: 16px; }

  .switcher { margin-top: 32px; }
  .switcher__bar { margin-right: calc(-1 * var(--page)); }
  .switcher__bar .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .switcher__nav, .shelf__nav { display: none; }
  /* Phone targets: 40 px pills in a 48 px group, the Sign in capsule 44 px. */
  .seg__btn { height: 40px; padding: 0 15px; font-size: 15px; }
  .account .btn--small { height: 44px; padding: 0 16px; }
  .row { grid-auto-columns: 86%; }
  .library { margin-top: 48px; }
  .library__head { flex-wrap: wrap; row-gap: var(--s-m); }
  .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .search input { font-size: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--page)) var(--s-l); padding: 0 var(--page); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 36px; padding: 0 14px; font-size: 14px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card__body { left: 16px; right: 16px; bottom: 13px; }
  .card__line { font-size: 13px; }
  .card__tags { margin-top: 8px; }
  .pill-premium { top: 12px; right: 12px; height: 28px; font-size: 13px; }
  .paywall__badge { top: 16px; left: 16px; right: auto; }

  /* The place: the still on top, the words below, the primary action in a sticky bar */
  .place__hero { display: block; min-height: 0; }
  .place__hero::after { display: none; }
  /* The photo fades into the page (no hard edge), and the facts line sits on the fade. */
  .place__media { position: relative; inset: auto; height: clamp(380px, 60svh, 540px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .place__scrim { bottom: auto; height: clamp(380px, 60svh, 540px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .place__back { top: 72px; left: 16px; }
  .place__text { margin-top: -180px; padding-bottom: 8px; }
  .place__title { font-size: 40px; }
  .place__primary { display: none; }
  .place__actions { margin-top: var(--s-l); }
  .place__actions { width: auto; max-width: none; }
  .place__actions:not(:has(.handoff-wrap)) { display: none; }
  /* On a phone the locked page's "Or watch {place} now" rides in the sticky bar, always in view. */
  .place__alt { display: none; }
  .place__bar-alt { display: block; width: 100%; min-height: 40px; margin-top: 6px; padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #fff; text-align: center; text-wrap: balance; }
  .place__bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    /* Solid, as the sheets and tab bar: WebKit draws no blur here and the rows read through. */
    background: rgb(20, 21, 25); -webkit-backdrop-filter: none; backdrop-filter: none;
    box-shadow: inset 0 1px 0 var(--hairline);
  }
  .place__bar .btn { height: 52px; }
  /* Toasts and the payment card sit above whichever bar is at the bottom, solid as the bars
     (WebKit draws no blur here, and the page's words read through glass). */
  .toast, .paystatus { background: rgb(30, 31, 36); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .paystatus { left: 12px; right: 12px; width: auto; bottom: calc(92px + env(safe-area-inset-bottom)); }
  body[data-screen="place"] .toast, body[data-screen="place"] .paystatus { bottom: calc(88px + env(safe-area-inset-bottom)); }
  body[data-screen="place"]:has(.place__bar-alt) .toast, body[data-screen="place"]:has(.place__bar-alt) .paystatus { bottom: calc(136px + env(safe-area-inset-bottom)); }
  body:has(#player:not([hidden])) .toast, body:has(#player:not([hidden])) .paystatus { bottom: auto; top: calc(72px + env(safe-area-inset-top)); }
  .place__more { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .place:has(.place__bar-alt) .place__more { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

  .screen-head { padding: var(--s-s) 0 var(--s-l); }
  /* This Week's Session fits the first screen with both its buttons clear of the tab bar. */
  .journey { min-height: 0; border-radius: 24px; }
  .journey__about { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .journey__text .actions { margin-top: var(--s-l); flex-wrap: nowrap; gap: 8px; }
  .journey__text .actions .btn { height: 44px; padding: 0 16px; font-size: 15px; }
  .journey__text .actions:has(.journey__alt) { flex-wrap: wrap; }
  .journey__text .actions .journey__alt { flex-basis: 100%; height: auto; min-height: 44px; padding: 10px 16px; white-space: normal; line-height: 1.25; text-align: left; }
  .journey__alt span { text-wrap: balance; }
  .route { top: 20px; left: 20px; right: 20px; }
  .route__dot { width: 32px; height: 32px; font-size: 13px; }
  .journey__text { padding: 132px 20px 24px; }
  .make { padding: 24px 20px; border-radius: 24px; }

  /* Phones: sheets and the tab bar are solid (the page never reads through; WebKit draws no blur
     on a scrolling, transformed sheet), and the page behind a sheet is hidden. */
  .sheets { place-items: end stretch; padding: 0; }
  .sheet-backdrop { background: rgba(0, 0, 0, 0.72); }
  /* The place behind the sheet, frosted: never a black void above a partial-height sheet. */
  .sheet-backdrop:has(.sheet-backdrop__img) { background: #000; }
  .sheet-backdrop__img { display: block; position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
    object-fit: cover; filter: blur(24px) saturate(1.2) brightness(0.45); }
  .sheet { width: 100%; max-height: 92svh; border-radius: 28px 28px 0 0; padding: 40px 24px calc(24px + env(safe-area-inset-bottom)); transform: translateY(40px);
    background: rgb(24, 25, 29); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.has-sheet .app { visibility: hidden; }
  .sheet--wide { padding: 0; }
  /* Short enough that all three plans, the chosen one too, sit above the pinned Get Premium. */
  /* 112 px (96 on a short phone): with the Vision Pro line in the pinned footer the sheet ran
     ~20 px past 92svh on an iPhone 13, and the scroll to the chosen plan clipped the Premium pill
     and the close button at rest. */
  .paywall__hero { height: 112px; border-radius: 28px 28px 0 0; }
  .paywall__place { left: 20px; right: 72px; bottom: 14px; }
  /* One line on phones: a long title wrapped up under the Premium pill (the sheet's heading below says it
     in full, "Watch <title>"). 29 Sep 2026, critic B r2i #1. */
  .paywall__place-title { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .paywall__content { padding: 20px 20px 0; }
  .paywall__subtitle { margin-bottom: var(--s-l); }
  /* Get Premium and Cancel anytime stay pinned to the sheet's bottom while the plans scroll. */
  .paywall__foot { position: sticky; bottom: 0; z-index: 3; padding: 12px 20px calc(10px + env(safe-area-inset-bottom)); background: rgb(24, 25, 29); box-shadow: 0 -1px 0 var(--hairline), 0 -18px 24px rgba(24, 25, 29, 0.9); }
  .paywall__guarantee { margin-top: var(--s-s); }
  .paywall__signin { min-height: 36px; padding: 6px 4px 0; font-size: 13px; }
  .plans { grid-template-columns: 1fr; gap: 10px; margin-bottom: var(--s-l); }
  /* A plan is two lines: name and price, then how it bills and what a month costs. */
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 16px; }
  .plan__name { grid-column: 1; grid-row: 1; }
  .plan__price { grid-column: 2; grid-row: 1; font-size: 20px; text-align: right; }
  .plan__detail { grid-column: 1; grid-row: 2; }
  .plan__per { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  .plan__badge { top: -9px; right: auto; left: 12px; }
  .plan { scroll-margin-bottom: 150px; }
  @media (max-height: 760px) { .paywall__hero { height: 96px; } .paywall__place-meta { display: none; } }

  /* Phones: the scrub is a row of its own across the bar (the times under its ends); under it,
     play on the left, the place in the middle, tilt and sound on the right. */
  .bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "scrub scrub scrub" "play where right";
    column-gap: 12px; row-gap: 4px; padding: 8px 14px 10px; border-radius: 24px; }
  .bar__mid { display: contents; }
  .scrub { grid-area: scrub; grid-template-columns: 1fr 1fr; grid-template-areas: "track track" "t0 t1"; gap: 0; }
  .scrub .track { grid-area: track; height: 28px; }
  .scrub #pTime { grid-area: t0; font-size: 12px; }
  .scrub #pDur { grid-area: t1; font-size: 12px; text-align: right; }
  .bar__play { grid-area: play; width: 46px; height: 46px; }
  .bar__where { grid-area: where; align-self: center; margin: 0; }
  .bar__right { grid-area: right; }
  .bar__right .icon--fs { display: none; }
  /* Up Next on a phone: a small picture that still carries the countdown and plays now on a tap. */
  .upnext { grid-template-columns: 116px minmax(0, 1fr); gap: 14px; left: 12px; right: 12px; width: auto; bottom: 146px; padding: 16px; }
  .upnext__count { left: 8px; right: 8px; bottom: 6px; font-size: 12px; }
  .upnext__img { min-height: 72px; }
  .upnext__title { font-size: 17px; }
  .upnext__alts { display: none; }
  .bar__area { display: none; }
  .bar__where { white-space: normal; }
  .bar__title { overflow: visible; text-overflow: clip; line-height: 1.25; }
  .arrival { bottom: 152px; }
  .endcard { padding: 24px 20px; }
  .state__card { padding: 36px 24px 28px; }
}

/* MARK: A headset's browser (Quest 2D): bigger targets for a pointer ray */

.is-headset .btn { height: 58px; padding: 0 30px; font-size: 19px; }
.is-headset .btn--small { height: 46px; font-size: 16px; }
.is-headset .chip { height: 48px; padding: 0 22px; font-size: 17px; }
.is-headset .topnav__link, .is-headset .seg__btn { height: 44px; padding: 0 22px; font-size: 17px; }
.is-headset .round { width: 52px; height: 52px; }
.is-headset .search { height: 56px; }
.is-headset .search input { font-size: 18px; }
.is-headset .card__line { font-size: 16px; }
.is-headset .tag { height: 28px; padding: 0 10px; font-size: 14px; }
/* The Quest browser's 2D panel sits far off: no text under ~1.2 degrees (16 px body, 14 px eyebrows). */
.is-headset { --fs-eyebrow: 14px; --fs-meta: 17px; --fs-footnote: 15px; --fs-body: 18px; }
.is-headset .bar__title { font-size: 17px; }
.is-headset .bar__area, .is-headset .time { font-size: 15px; }
.is-headset .plan__detail, .is-headset .plan__name { font-size: 16px; }
.is-headset .plan__badge { height: 26px; font-size: 14px; }
.is-headset .signin__newsletter, .is-headset .signin__skip, .is-headset .stop__line, .is-headset .tile__line { font-size: 16px; }
.is-headset .loading__stage, .is-headset .upnext__label, .is-headset .loading .eyebrow, .is-headset .upnext .eyebrow { font-size: 14px; }
.is-headset .pill-premium, .is-headset .pill-added { height: 34px; font-size: 15px; }
.is-headset .icon, .is-headset .bar__play { min-width: 52px; min-height: 52px; }
.is-headset .dot { width: 36px; height: 36px; }
.is-headset .dot.is-current { width: 56px; }
.is-headset .dot-pause { width: 40px; height: 40px; }
.is-headset .dot-pause svg { width: 16px; height: 16px; }
.is-headset .track { height: 32px; }

/* MARK: Touch screens: no hover state left behind after a tap */

@media (hover: none) {
  .btn--primary:hover:not([disabled]) { filter: none; }
  .btn--glass:hover:not([disabled]), .round:hover:not([disabled]) { background: var(--glass); }
  .card:hover, .tile:hover, .mood:hover:not([disabled]) { transform: none; box-shadow: none; }
  .plan:hover { background: rgba(255, 255, 255, 0.06); }
  .plan.is-selected:hover { background: rgba(255, 255, 255, 0.12); }
}

/* MARK: Reduced motion: no drift, no lifts; fades of 0.3 s or less */

@media (prefers-reduced-motion: reduce) {
  .card:hover, .tile:hover, .mood:hover:not([disabled]) { transform: none; }
  .hero__slide, .room__layer { transition-duration: 0.3s; }
  .arrival__line, .arrival.is-in .arrival__line, .arrival.is-out .arrival__line { transform: none; transition: opacity 0.3s ease; transition-delay: 0s; }
  .sheet { transform: none; transition: opacity 0.3s ease; }
  .upnext { transform: none; transition: opacity 0.3s ease; }
}
