* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light;
  --bg: #f3ebe3;
  --glow: #ffe7d4;
  --ink: #2c211c;
  --muted: #6f574c;
  --card: #fffaf6;
  --surface: #fffaf6;
  --line: rgba(44, 33, 28, 0.12);
  --control: #5c463c;
  --coral: #9a341f;
  --coral-btn: #9a341f;
  --on-coral: #ffffff;
  --btn-bg: #fffaf6;
  --btn-ink: #2c211c;
  --btn-border: rgba(44, 33, 28, 0.34);
  --btn-primary-bg: #9a341f;
  --btn-primary-ink: #ffffff;
  --link: #9a341f;
  --input-bg: #fffaf6;
  --row: 0.75rem;
  --rose: #c4233c;
  --inverse: #2c211c;
  --on-inverse: #ffffff;
  --bar: rgba(255, 250, 246, 0.94);
  --hover: rgba(255, 255, 255, 0.7);
  --chip-bg: #fffaf6;
  --chip-ink: #2c211c;
  --soft: #f6ece4;
  --ok: #1f6b3a;
  --danger: #9a341f;
  --pill-bg: #fdeee8;
  --pill-ink: #9a341f;
  --urgent-bg: #fde8df;
  --urgent-ink: #8a3b28;
  --sold-bg: #f3e6d4;
  --sold-ink: #6b3a22;
  --shadow: 0 18px 40px rgba(80, 42, 28, 0.14);
  --tab: 86px;
}

html { color-scheme: light dark; }
html, body { min-height: 100%; max-width: 100%; overflow-x: clip; }
body { overscroll-behavior: none; }
@media (max-width: 480px) {
  html, body { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

body {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom));
}

.loading, .empty {
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  padding: 2rem;
  color: var(--muted);
}

.empty h1, .empty h2, .loading { color: var(--ink); font-family: Palatino, "Iowan Old Style", Georgia, serif; font-size: 1.7rem; font-weight: 600; }

button, select { font: inherit; color: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn.primary { background: var(--btn-primary-bg); color: var(--btn-primary-ink); border-color: transparent; }
.btn.secondary { background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-border); }
.btn.ghost {
  background: transparent;
  color: var(--link);
  border: none;
  min-height: 36px;
  padding: 0.2rem 0.15rem;
  font-weight: 650;
}
.btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: calc(0.35rem + env(safe-area-inset-top)) 0.7rem 0.15rem;
  min-width: 0;
}
/* Static pages put this header outside #app. Above the phone it sits in the
   same 480px centred column as the page, the way the deck header does. */
@media (min-width: 481px) {
  .site-header {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 380px) {
  .site-header { padding-left: 0.45rem; padding-right: 0.45rem; }
  .site-header .logo { font-size: 0.92rem; gap: 0.25rem; }
  .site-header .logo img { width: 24px; height: 24px; }
  .site-header .top-actions { gap: 0.15rem; }
  .site-header .text-btn { padding: 0.15rem 0.4rem; font-size: 0.75rem; }
}
@media (max-width: 340px) {
  .site-header .logo span { display: none; }
}
.top-actions { display: flex; align-items: center; gap: 0.25rem; flex: none; }
.top-actions .text-btn,
a.text-btn.quiet {
  min-height: 32px;
  padding: 0.2rem 0.6rem;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: clamp(0.95rem, 3.2vw, 1.3rem);
  letter-spacing: -0.03em;
}
.logo span { white-space: nowrap; }
.logo img { width: 30px; height: 30px; transform: rotate(-8deg); flex: none; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 700;
  cursor: pointer;
}

.stage {
  padding: 0.4rem 1rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card-stack {
  position: relative;
  height: min(46dvh, 420px);
}

.show-card {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #3a2a24;
  box-shadow: none;
  touch-action: pan-y;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.show-card.dragging { cursor: grabbing; transition: none; }
.show-card.spring { transition: transform 0.34s cubic-bezier(.2, .9, .2, 1); }
.show-card.peek {
  transform: translateY(16px) scale(0.965);
  transform-origin: center bottom;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.show-card.top { z-index: 1; }

.show-card.swiped-right { animation: fly-right 0.42s cubic-bezier(.18,.8,.2,1) forwards; }
.show-card.swiped-left { animation: fly-left 0.42s cubic-bezier(.18,.8,.2,1) forwards; }
.show-card.swiped-up { animation: fly-up 0.42s cubic-bezier(.18,.8,.2,1) forwards; }

@keyframes fly-right { to { transform: translateX(130%) rotate(16deg); opacity: 0; } }
@keyframes fly-left { to { transform: translateX(-130%) rotate(-16deg); opacity: 0; } }
@keyframes fly-up { to { transform: translateY(-120%) rotate(-6deg); opacity: 0; } }

.hero, .photo {
  position: absolute;
  inset: 0;
}

.hero-img, .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swipe card: whole photo, centred, over a soft blurred copy of itself */
.hero .photo-blur {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(26px) saturate(1.4) brightness(0.7);
  transform: scale(1.05);
}
.hero .hero-img {
  object-fit: contain;
  object-position: center 40%;
  padding: 44px 10px 118px;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.38));
}

.emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
}

.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 8, 0.05) 20%, rgba(20, 10, 8, 0.18) 48%, rgba(20, 10, 8, 0.82) 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.show-card .chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 0;
  padding: 0.28rem 0.7rem;
}

.caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  color: white;
}

.caption h1 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.25rem, 4vh, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Line-clamp swallows taps on the glyphs. */
  pointer-events: none;
}
/* The caption sits above the photo. Glyphs pass the hit through to the card
   link; the gesture handler opens the sheet and cancels that navigation.
   More, Pass and Love stay outside this box. */
.show-card .caption,
.show-card .caption * {
  pointer-events: none;
}
.show-card a.card-link {
  color: inherit;
  text-decoration: none;
  cursor: inherit;
}
.caption .where {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption p { margin-top: 0.35rem; color: #ffffff; font-size: 0.95rem; }

.stamp {
  position: absolute;
  top: 18%;
  z-index: 3;
  font-size: 4.2rem;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
}
.stamp.up { left: 50%; top: 12%; transform: translateX(-50%); }
.stamp.yes { right: 18px; }
.stamp.no { left: 18px; }

.more {
  position: absolute;
  color: var(--chip-ink);
  top: 8px;
  right: 8px;
  z-index: 2;
  border: none;
  background: var(--chip-bg);
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.caption .next { font-weight: 650; }
.caption .next span { font-weight: 500; margin-left: 0.25rem; }

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  padding-bottom: 0.2rem;
}

.round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  box-shadow: none;
  background: var(--card);
}
.round:active { transform: scale(0.94); }
.round.no { color: var(--ink); }
.round.yes { background: white; font-size: 1.9rem; box-shadow: 0 0 0 3px var(--rose); }
.round.love { background: white; font-size: 1.7rem; box-shadow: 0 0 0 3px #c45c7a; }
.round:focus-visible, .rate-btn:focus-visible, .wait-btn:focus-visible, .text-btn:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.undo {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}

.list { display: flex; flex-direction: column; gap: 1rem; padding: 0.4rem 1rem 1.2rem; }

.banner {
  font-family: Palatino, Georgia, serif;
  font-size: 1.7rem;
  padding: 0.2rem 0.2rem 0.1rem;
}

.match-card, .pick-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo { position: relative; height: 190px; }
.photo .caption { bottom: 12px; }
.photo .caption h1 { font-size: 1.45rem; }

.match-body, .pick-card { padding: 0.9rem 1rem 1rem; }
.match-card .match-body { padding: 0.95rem 1rem 1.05rem; }

.fit {
  margin: 0.35rem 0;
  font-weight: 650;
  color: #2f6b45;
}

.match-body a, .pick-card a { color: var(--coral); font-weight: 700; text-decoration: none; }

.tabs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: flex;
  background: var(--bar);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
  z-index: 20;
}

.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  min-height: 44px;
  padding: 0.55rem 0 0.35rem;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}
.tabs button.active { color: var(--ink); background: var(--surface); }

/* Phone tab bar: icons over labels, pinned to the bottom, clear of the home indicator. */
@media (max-width: 699px) {
  .tabs {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: none;
    height: calc(var(--tab) + env(safe-area-inset-bottom));
    padding: 0.15rem 0.2rem env(safe-area-inset-bottom);
    box-sizing: border-box;
  }
  .tabs button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-height: 0;
    padding: 0.2rem 0;
    font-size: 0.68rem;
    line-height: 1.1;
    border-radius: 12px;
  }
  .tabs button span { margin: 0; font-size: 1.2rem; line-height: 1; }
  .tabs button.active {
    color: var(--coral);
    background: color-mix(in srgb, var(--coral) 14%, transparent);
    box-shadow: none;
  }
}

.calendar-head, .calendar-grid, .legend, .day-panel {
  margin: 0.4rem 1rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar-head h2 { font-family: Palatino, Georgia, serif; font-size: 1.45rem; }
.calendar-head button, .text-btn {
  border: none;
  background: white;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(80, 42, 28, 0.08);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  background: rgba(255, 250, 246, 0.7);
  padding: 0.8rem;
  border-radius: 22px;
}

.dow { text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 700; }

.day {
  aspect-ratio: 1;
  border: none;
  border-radius: 14px;
  background: transparent;
  position: relative;
  cursor: pointer;
  font-weight: 700;
}
.day.today { box-shadow: inset 0 0 0 2px var(--coral); }
.day.selected { background: white; }
.day .thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px white;
}
.day .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
}
.day.busy { color: #b08980; }

.legend { display: flex; gap: 0.8rem; color: var(--muted); font-size: 0.8rem; flex-wrap: wrap; }
.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 0.3rem; }

.day-panel {
  background: white;
  border-radius: 22px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}
.showing {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.showing strong { display: block; }
.muted { color: var(--muted); font-size: 0.9rem; }

.busy-btn {
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: #2c211c;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.busy-btn.on { background: var(--rose); }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(44, 33, 28, 0.35);
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-card {
  width: min(480px, 100%);
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 1rem 1rem 1.4rem;
  max-height: 80dvh;
  overflow: auto;
}
.sheet-card h2 { font-family: Palatino, Georgia, serif; margin-bottom: 0.8rem; }
.pick-card { padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.pick-card button { margin-top: 0.6rem; }
.pick-card .reaction-state { margin: 0.45rem 0 0; }
.pick-card .reaction-state .btn { margin-top: 0; }

.cat-theatre { background: linear-gradient(160deg, #c45c4a, #f0b59a); }
.cat-opera, .cat-classical { background: linear-gradient(160deg, #6d4c7a, #e7b4c4); }
.cat-film { background: linear-gradient(160deg, #31445f, #e0a06a); }
.cat-dance { background: linear-gradient(160deg, #c44b78, #f3c1ae); }
.cat-concert, .cat-other { background: linear-gradient(160deg, #d9783a, #f3d27a); }

/* ---------- Swipe + show page layout ---------- */
.view-deck main { touch-action: pan-y; }

.deck-layout { display: flex; flex-direction: column; }

.scroll-cue {
  align-self: center;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem 0.4rem;
  cursor: pointer;
}
.scroll-cue span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.show-page {
  margin: 0.6rem 0.75rem 1.4rem;
  padding: 1.5rem 1.25rem 1.6rem;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(80, 42, 28, 0.08);
  scroll-margin-top: 12px;
}

.sp-head .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.sp-head h1,
.sp-head h2 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.4rem;
  font-weight: 600;
}
.sp-head .subtitle { font-family: Palatino, Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--muted); }
.sp-head .venue-line { color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }
.sp-head .why {
  margin-top: 0.9rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--coral);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.facts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0.2rem; }
.fact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.fact i { font-style: normal; font-size: 0.9rem; }

.gallery {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 1.2rem -1.25rem 0.4rem;
  padding: 0 1.25rem 0.4rem;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto;
  border: none;
  padding: 0;
  background: #eadbd0;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
  height: 240px;
}
.shot img { height: 100%; width: auto; max-width: 78vw; object-fit: cover; display: block; }
.gallery .shot:only-child { width: 100%; }
.gallery .shot:only-child img { width: 100%; max-width: none; object-fit: contain; background: #2c211c; }

.sp-section { margin-top: 1.6rem; }
.sp-section h2,
.sp-section h3 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.sp-section h2 small,
.sp-section h3 small { font-family: "Avenir Next", system-ui, sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-left: 0.3rem; }

.synopsis p { line-height: 1.6; margin-bottom: 0.8rem; color: var(--ink); font-size: 1rem; }
.synopsis.clamped { max-height: 14.5em; overflow: hidden; position: relative; }
.synopsis.clamped::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4.5em;
  background: linear-gradient(180deg, transparent, var(--card));
}
.synopsis.clamped.open { max-height: none; }
.synopsis.clamped.open::after { display: none; }

.text-link {
  border: none;
  background: none;
  color: var(--link);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.2rem 0;
}
.sp-head h1,
.sp-head h2 { margin: 0.2rem 0 0.35rem; }
.sp-meta { margin: 0.15rem 0 0.2rem; color: var(--muted); }
.sp-price { margin: 0.2rem 0 0.85rem; font-weight: 750; }
.show-page .sp-section { margin-top: 1.15rem; }
.details-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; margin-top: 1.35rem; }
.details-reaction .reaction-state { margin: 0.15rem 0 0; }
.ticket-row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0.55rem; width: 100%; }
.ticket-row > .btn.primary { flex: 1 1 auto; width: auto; min-width: 0; white-space: nowrap; }
.ticket-row > .btn.primary:disabled {
  background: var(--btn-bg);
  color: var(--muted);
  border: 1px solid var(--btn-border);
  cursor: default;
}
.cal-slot { position: relative; flex: none; }
.cal-circle {
  position: relative;
  flex: none;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  align-self: stretch;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.cal-glyph { width: 22px; height: 22px; display: block; }
.cal-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cal-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 6;
  min-width: 220px;
  max-width: min(280px, 70vw);
  padding: 0.7rem 0.8rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .cal-circle:hover .cal-tip,
  .cal-circle:focus-visible .cal-tip {
    opacity: 1;
    visibility: visible;
  }
}
.details-links { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; align-items: center; }
.reaction-state { margin: 0.9rem 0 0; }
.choose-actions { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.35rem; }
.choose-actions .btn.ghost { min-height: 44px; padding: 0.2rem 0.1rem; }
.trailer { margin: 0.2rem 0 1rem; }
.trailer-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #1a1412;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.trailer-play {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
}
.trailer-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #1a1412; }
.details-hint { margin: 0.35rem 0 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }

.date-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.date-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: transparent;
  border-radius: 0;
  padding: 0.7rem 0;
  box-shadow: none;
}
.day-badge {
  width: 50px;
  height: 52px;
  border-radius: 14px;
  background: var(--coral);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: none;
}
.day-badge b { font-size: 1.3rem; font-family: Palatino, Georgia, serif; }
.day-badge span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.date-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.date-text strong { font-size: 0.96rem; }
.date-text span { color: var(--muted); font-size: 0.84rem; }
.ticket { margin-left: auto; color: var(--coral); font-weight: 700; text-decoration: none; font-size: 0.85rem; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.8rem; }
.person { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.person.extra { display: none; }
.person.extra.shown { display: flex; }
.initials {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(150deg, #f6c7b4, #e9a28c);
  color: #6a2f20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.person strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.person em { display: block; font-style: normal; font-size: 0.78rem; color: var(--muted); line-height: 1.25; margin-top: 0.1rem; }
.cast-more { margin-top: 0.7rem; }

.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.crew dt { font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.crew dd { font-size: 0.95rem; margin-top: 0.15rem; font-weight: 600; }

.program, .awards { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.program li, .awards li { line-height: 1.4; font-size: 0.94rem; padding-left: 1.3rem; position: relative; }
.program li::before { content: '♪'; position: absolute; left: 0; color: var(--coral); }
.awards li::before { content: '★'; position: absolute; left: 0; color: #d9a03a; }

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.8rem;
  background: var(--inverse);
  color: var(--on-inverse);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.95rem 1rem;
}
.cta span { color: #f6b39f; }

/* Small ❌/❤️ that follow you down the show page */
.float-vote {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab) + 12px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  display: flex;
  gap: 1rem;
  padding: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(80, 42, 28, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 19;
}
.float-vote.shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.round.small { width: 54px; height: 54px; font-size: 1.3rem; box-shadow: none; }
.round.small.yes { box-shadow: 0 0 0 2.5px var(--rose); }
.round.small.love { box-shadow: 0 0 0 2.5px #c45c7a; font-size: 1.2rem; }
.round.small.no { background: #f4ebe5; }

.viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(24, 16, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.viewer button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  cursor: pointer;
}

/* Wide screens keep readable pages. The deck splits into two panes from 1024. */
@media (min-width: 900px) {
  .scroll-cue { display: none; }
  .show-page { margin: 0.4rem auto 2rem; padding: 2rem 2.2rem 2.2rem; max-width: 720px; }
  .sp-head h1, .sp-head h2 { font-size: 2.6rem; }
  .shot { height: 280px; }
  .shot img { max-width: 520px; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .crew { grid-template-columns: repeat(3, 1fr); }
  .float-vote { display: none; }
  .prose, .site-footer { max-width: 720px; }
}

/* ---------- Faces: artist portraits and Harry/Eli avatars ---------- */
.initials, .face {
  position: relative;
  overflow: hidden;
}
.initials b, .face b { font-weight: 700; }
.initials img, .face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  background: #eadbd0;
}
.people .initials { width: 48px; height: 48px; }
.initials.small { width: 34px; height: 34px; font-size: 0.7rem; }
.crew .with-photo { display: flex; align-items: center; gap: 0.55rem; }

.face {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2c211c;
  color: #fff8f2;
  font-size: 0.85rem;
  box-shadow: 0 0 0 2px var(--card);
}
.face.big { width: 40px; height: 40px; font-size: 1rem; box-shadow: none; }
.face.tiny { width: 20px; height: 20px; font-size: 0.6rem; margin-right: 0.35rem; vertical-align: -5px; box-shadow: none; }
.face.tiny + .face.tiny { margin-left: -0.6rem; box-shadow: 0 0 0 1.5px #fff; }
.avatar { padding: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.pair { display: inline-flex; margin-right: 0.55rem; vertical-align: middle; }
.pair .face + .face { margin-left: -10px; }
.pair .face:last-child { background: var(--coral); }
.sheet-title { display: flex; align-items: center; gap: 0.6rem; }

/* Sharing */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--coral); color: var(--coral); }
.share-btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.entry-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.entry-actions .share-btn { margin-left: auto; }
.showing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.showing-head .share-btn { padding: 0.3rem 0.55rem; }
.showing-head .share-btn span { display: none; }
.show-link { color: inherit; text-decoration: none; }
.show-link:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0.2rem 0.6rem;
}
.back-link { color: var(--coral); font-weight: 700; text-decoration: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab) + 18px);
  transform: translate(-50%, 12px);
  background: var(--inverse);
  color: var(--on-inverse);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}
.toast.shown { opacity: 1; transform: translate(-50%, 0); }
.day-strip, .party-toggle { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; margin: 0.6rem 0; }
.day-strip button, .party-toggle button, .poll-option { border: 1px solid var(--line, #e4d8cf); background: transparent; border-radius: 999px; padding: 0.35rem 0.7rem; min-height: 44px; }
.day-strip button.on, .party-toggle button.on, .poll-option.on { background: var(--inverse); color: var(--on-inverse); }
.facepile { display: inline-flex; gap: 0.2rem; align-items: center; }
.face.tiny, .face.blur { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem; position: relative; overflow: hidden; }
.face.blur { background: #c4b6ae; filter: blur(3px); }
.face.tiny img { width: 100%; height: 100%; object-fit: cover; }
.face.tiny i { position: absolute; right: -0.1rem; bottom: -0.15rem; font-style: normal; font-size: 0.55rem; background: #fff; color: #2b211c; border-radius: 999px; padding: 0 0.15rem; }
.poll { display: grid; gap: 0.4rem; margin: 0.8rem 0; }
.whos-going { display: flex; gap: 0.5rem; align-items: center; }
.check { display: flex; align-items: baseline; gap: 0.6rem; margin: var(--row) 0; }
.check input[type="checkbox"] {
  accent-color: var(--btn-primary-bg);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: none;
  position: relative;
  top: 0.12em;
}
.toast.with-link { pointer-events: auto; }
.toast a, .toast button { color: inherit; background: transparent; border: none; font: inherit; text-decoration: underline; cursor: pointer; }

.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0; }
.price-pill, .urgency {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.caption .price-pill { background: rgba(255, 255, 255, 0.92); color: #1c140f; }
.show-page .price-pill, .match-body .price-pill, .best-match .price-pill, .prose .price-pill { background: var(--pill-bg); color: var(--pill-ink); }
.price-pill.sold, .price-pill.wait { background: var(--sold-bg); color: var(--sold-ink); }
.caption .urgency { color: #ffffff; background: rgba(180, 60, 40, 0.88); }
.show-page .urgency, .match-body .urgency, .best-match .urgency, .prose .urgency { color: var(--urgent-ink); background: var(--urgent-bg); }
.seat-note { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: var(--muted); }
@media (max-width: 640px) {
  .caption .price-pill, .caption .urgency { font-size: 0.64rem; padding: 0.08rem 0.38rem; }
}

/* Calendar: every showing, with where you both stand */
.day .dot.quiet { background: #cdb8ad; }
.day .count {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--muted);
}
.day.busy {
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(44, 33, 28, 0.05) 5px 7px);
}
.day.busy.selected { background: white; }
.cal-tools { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.cal-tools .legend { flex: 1 1 auto; }
.seg { display: inline-flex; background: rgba(44, 33, 28, 0.06); border-radius: 999px; padding: 2px; }
.seg button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(44, 33, 28, 0.12); }
.showing { cursor: pointer; }
.showing.is-match strong { color: var(--rose); }
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.55rem 0.12rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
  background: rgba(44, 33, 28, 0.06);
  color: var(--muted);
  white-space: nowrap;
}
.badge .face.tiny { width: 16px; height: 16px; font-size: 0.5rem; margin-right: 0.3rem; vertical-align: 0; }
.badge .face.tiny + .face.tiny { margin-left: -0.55rem; }
.badge.match { background: #fde3e6; color: var(--rose); }
.badge.yes { background: #fdeee8; color: #b9472d; }
.badge.yes.love { background: #f8e4ec; color: #9a3458; }
.badge.no { background: #efe9e6; color: #8a7b74; text-decoration: none; }
.badge.new { background: transparent; box-shadow: inset 0 0 0 1px rgba(44, 33, 28, 0.14); }
.badge.busy { background: #2c211c; color: #fff; margin-left: 0.5rem; font-size: 0.66rem; padding: 0.05rem 0.5rem; }
.day-panel-head { display: flex; align-items: center; gap: 0.2rem; }
.day-panel-head .link-btn { margin-left: auto; }
.link-btn { border: none; background: none; color: var(--coral); font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.agenda { display: flex; flex-direction: column; gap: 0.9rem; }
.agenda-day {
  background: white;
  border-radius: 22px;
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 10px 30px rgba(80, 42, 28, 0.08);
}
.agenda-day h3 {
  font-family: Palatino, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.agenda-day .showing:first-of-type { border-top: none; padding-top: 0; }
.empty.small { padding: 1.5rem 1rem; text-align: center; }

/* Day page */
.day-link { color: inherit; text-decoration: none; }
.day-link:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.agenda-day h3 .day-open { margin-left: auto; font-family: inherit; font-size: 0.78rem; font-weight: 700; color: var(--coral); text-decoration: none; }
.day-page { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.4rem 0.2rem 1rem; }
.day-top { display: flex; align-items: center; justify-content: space-between; }
.day-page h1 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.day-navs { display: flex; justify-content: space-between; gap: 0.6rem; }
.day-nav {
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.day-nav.off { opacity: 0.35; }
.day-nav.next { margin-left: auto; }
.busy-note {
  background: #2c211c;
  color: #fff;
  border-radius: 16px;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.day-list { display: flex; flex-direction: column; gap: 0.75rem; }
.day-entry {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.85rem;
  background: var(--card);
  border-radius: 22px;
  padding: 0.7rem;
  box-shadow: 0 10px 30px rgba(80, 42, 28, 0.08);
  cursor: pointer;
}
.day-thumb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #e9ddd4;
  min-height: 132px;
  display: grid;
  place-items: center;
}
.day-thumb .emoji { font-size: 2rem; }
.day-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.day-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.day-time { font-weight: 800; color: var(--coral); font-size: 0.9rem; }
.day-info strong { font-family: Palatino, Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.day-more { margin-top: 0.35rem; color: var(--coral); font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.clash { margin-top: 0.3rem; font-size: 0.8rem; font-weight: 700; color: #a3412a; }
.day-entry.past { opacity: 0.6; }

/* Picks vs. everything else */
.sec-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-top: 0.2rem;
}
.sec-label.minor { color: var(--muted); margin-top: 0.5rem; }
.also { display: flex; flex-direction: column; gap: 0.5rem; }
.showing.minor { padding-top: 0.5rem; }
.showing.minor strong { font-size: 0.9rem; font-weight: 650; color: #5c463c; }
.showing.minor .muted { font-size: 0.8rem; }
.showing.minor .badges { margin-top: 0.25rem; }
.showing.minor .badge { font-size: 0.68rem; }
.showing.minor .share-btn { opacity: 0.6; }
.also .showing:first-child { border-top: none; padding-top: 0; }
.day-list .also { gap: 0.45rem; }
.day-entry.minor {
  grid-template-columns: 56px 1fr;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 250, 246, 0.6);
  box-shadow: none;
  border: 1px solid var(--line);
}
.day-entry.minor .day-thumb { min-height: 64px; border-radius: 10px; }
.day-entry.minor .day-thumb .emoji { font-size: 1.3rem; }
.day-entry.minor .day-time { font-size: 0.78rem; color: var(--muted); }
.day-entry.minor .day-info strong { font-family: inherit; font-size: 0.92rem; font-weight: 650; color: #5c463c; }
.day-entry.minor .muted { font-size: 0.8rem; }
.day-entry.minor .badge { font-size: 0.68rem; }
.day .dot.faint { background: transparent; box-shadow: inset 0 0 0 1.5px #cdb8ad; width: 6px; height: 6px; }
.day .count.faint { opacity: 0.55; font-weight: 600; }
.swatch.ring { background: transparent; box-shadow: inset 0 0 0 1.5px #cdb8ad; }

/* Getting back to the deck from anywhere */
a.logo { color: inherit; text-decoration: none; }
a.logo:hover { color: var(--coral); }
.page-back { margin: 0.35rem 1.2rem 0.5rem; font-size: 0.95rem; }
.tabs button span { margin-right: 0.15rem; }
.tabs button.active { box-shadow: 0 2px 8px rgba(44, 33, 28, 0.1); }

@media (min-width: 700px) {
  /* A floating, obvious tab bar on wide screens. */
  .tabs {
    bottom: 18px;
    width: min(520px, calc(100% - 2rem));
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.3rem;
    box-shadow: 0 14px 36px rgba(80, 42, 28, 0.18);
  }
  .tabs button { font-size: 1rem; padding: 0.7rem 0; border-radius: 999px; }
  .tabs button:hover { color: var(--ink); background: var(--hover); }
  .tabs button.active { background: var(--inverse); color: var(--on-inverse); }
  main { padding-bottom: 6rem; }
}

/* Type and genre chips: tap one for every show of that kind */
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.3rem 0 0.15rem; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.tag.type { color: var(--ink); }
.tag:hover { border-color: var(--coral); color: var(--coral); }
.tag.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag .n { opacity: 0.6; font-weight: 600; }
.type-bar { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.2rem 1rem 0.5rem; }
.type-bar .tag { font-size: 0.82rem; padding: 0.32rem 0.7rem; }
.list-page .type-bar { margin: 0.8rem 0 0.4rem; }
.kicker-line { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.more-dates { color: var(--muted); font-weight: 600; }
a.chip { text-decoration: none; cursor: pointer; }
a.chip:hover { color: var(--coral); }
.sp-top .tags { margin: 0; }
.day-entry.minor .tags .tag { font-size: 0.7rem; padding: 0.12rem 0.45rem; }

/* Showings you already have tickets for */
.badge.booked { background: #2f7d4f; color: #fff; }
.date-list li.booked, li.booked { background: rgba(47, 125, 79, 0.08); border-radius: 12px; }
.day .ticket-mark { display: block; font-size: 0.8rem; line-height: 1; margin-top: 2px; }
.day.has-booked { box-shadow: inset 0 0 0 2px #2f7d4f; border-radius: 12px; }

/* Deck cards that aren't Show Scout picks: same quiet note as "Also on". */
.show-card .caption .also-on { margin: 0 0 0.25rem; font-size: 0.78rem; opacity: 0.8; letter-spacing: 0.01em; }

/* Matches: my yeses that aren't matches yet. */
.liked-label { margin-top: 1.6rem; }
.partner-status { font-size: 0.85rem; margin: 0.25rem 0 0.35rem; color: var(--muted, #8a7a70); }
.partner-status.no { color: #a2463a; }

/* /profile is a page now, not a bottom sheet. */
a.avatar { text-decoration: none; }
.profile-page { max-width: 560px; margin: 0 auto; padding: var(--row) 1rem 1.5rem; }
.profile-page h1, .profile-page h2 { font-family: Palatino, Georgia, serif; margin: 1.5rem 0 0.8rem; }
.profile-page h1 { margin-top: 0; }
.profile-page .account-signin { margin: 0.75rem 0 1.5rem; }
.cal-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.4rem 0 0.8rem; }
.cal-summary a { font-weight: 700; }
.filters-pill {
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.1;
  padding: 0.1rem 0.5rem;
  min-height: 32px;
  white-space: nowrap;
  cursor: pointer;
}
.filters-pill[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.filters-panel, .filters-page {
  position: relative;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
}
.filters-panel {
  flex: none;
  width: min(880px, calc(100% - 2rem));
  margin: 0.35rem auto 0.5rem;
  padding: 0.75rem 0.9rem 0.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (min-width: 1024px) {
  .filters-panel { max-height: 14rem; overflow: auto; }
  /* The card is sized from the viewport. Leave room for this panel so it stays on screen. */
  #app.view-deck:has(.filters-panel) .stage {
    width: min(300px, calc((100dvh - 24rem) * 2 / 3));
  }
}
.filters-page { padding: 0.2rem 1rem 1.5rem; }
.filters-page .back-link {
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.2rem 0 0.6rem;
  cursor: pointer;
}
.filters-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.35rem; }
.filters-panel-head h2 { margin: 0; font-family: Palatino, Georgia, serif; font-size: 1.25rem; }
.taste-filters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  min-width: 0;
  max-width: 100%;
}
.taste-filters legend { font-size: 0.75rem; font-weight: 750; color: var(--muted); padding: 0; }
.taste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.2rem), 1fr));
  gap: 0.4rem 0.55rem;
  min-width: 0;
}
.taste-grid .check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.55rem;
  white-space: normal;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.taste-grid .check input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--coral-btn); }

/* Tickets: a quiet button by the event link; booked dates count as busy. */
.cta-row { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cta-row .cta { align-self: stretch; }
.tickets-btn {
  border: 1px solid #cdb8ad; background: transparent; color: var(--ink); border-radius: 999px;
  padding: 0.35rem 0.8rem; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.tickets-btn:hover { border-color: var(--ink); }
.tickets-pick { display: inline-flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.tickets-pick select { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.4rem; border-radius: 8px; border: 1px solid #cdb8ad; background: transparent; color: var(--ink); }
.tickets-have { font-size: 0.85rem; color: #2f7d4f; font-weight: 700; }
.tickets-have .text-btn.small { font-size: 0.8rem; font-weight: 400; margin-left: 0.3rem; }
.entry-actions .tickets-btn, .entry-actions .tickets-pick { font-size: 0.8rem; }
/* A showing that clashes with your busy time or tickets: muted, never recommended. */
.showing.clashing, .day-entry.clashing { opacity: 0.55; }
.showing.clashing:hover, .day-entry.clashing:hover { opacity: 0.85; }

/* ---- showmatch.co: sign-in pages, account, groups ---- */
.auth-body { min-height: 100dvh; }
.auth-page { max-width: 420px; margin: 0 auto; padding: 1.4rem 1.1rem 3rem; display: flex; flex-direction: column; gap: 1.4rem; }
.auth-logo { text-decoration: none; color: var(--ink); font-size: 1.25rem; }
.auth-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 1.5rem 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.auth-card h1 { font-family: Palatino, "Iowan Old Style", Georgia, serif; font-size: 1.55rem; line-height: 1.2; }
.auth-form { display: flex; flex-direction: column; gap: var(--row); }
.auth-form label { font-weight: 650; font-size: 0.9rem; }
.auth-form input, .group-form input {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 14px; border: 1px solid var(--btn-border); background: var(--input-bg); color: var(--btn-ink);
}
.auth-form input:focus, .group-form input:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.code-input { font-size: 1.5rem; letter-spacing: 0.4rem; text-align: center; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.8rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.auth-btn.primary { background: var(--btn-primary-bg); border-color: var(--btn-primary-bg); color: var(--btn-primary-ink); }
.auth-btn.primary:hover { filter: brightness(0.96); }
.auth-btn.off { opacity: 0.55; cursor: default; }
.auth-btn.slim { padding: 0.6rem 1rem; }
.auth-btn.facebook { background: #1877F2; border-color: #1877F2; color: #fff; }
.auth-btn.apple { background: #000; border-color: #000; color: #fff; }
.auth-btn.outlook { background: #0f6cbd; border-color: #0f6cbd; color: #fff; }
.auth-or { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-error { color: #a2463a; background: #fbe6e0; border-radius: 12px; padding: 0.6rem 0.8rem; font-size: 0.92rem; }
.muted.small, .small { font-size: 0.85rem; }
.back-link.subtle { font-weight: 600; opacity: 0.85; }

.account-panel { background: var(--card); border-radius: 18px; padding: 0.9rem 1rem; margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: var(--row); box-shadow: 0 6px 18px rgba(80, 42, 28, 0.06); }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.account-panel .auth-btn { align-self: flex-start; }
.digest-opt { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; }
.digest-opt input { margin: 0; accent-color: var(--btn-primary-bg); width: 1.05rem; height: 1.05rem; flex: none; position: relative; top: 0.12em; }
.source-card { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.source-card .auth-form input { width: 100%; box-sizing: border-box; }
.cal-google { display: flex; flex-direction: column; gap: 0.7rem; }
.cal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cal-account {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.cal-account-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cal-account-main strong { overflow-wrap: anywhere; }
.cal-account-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cal-account-actions .btn { flex: 1 1 7rem; }
.account-panel .cal-add { width: 100%; box-sizing: border-box; }
.account-panel .auth-error { margin: 0; }

.groups-page { padding: 0.5rem 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.group-form { display: flex; gap: 0.5rem; }
.group-form input { flex: 1; min-width: 0; }
.group-link { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.group-page .banner { font-family: Palatino, Georgia, serif; }
.members { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.member { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.best-match {
  display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: #fff; border-radius: 20px; padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--coral), var(--rose)); box-shadow: var(--shadow);
}
.best-match strong { font-family: Palatino, Georgia, serif; font-size: 1.3rem; }
.best-match.none { background: var(--card); color: var(--muted); box-shadow: none; border: 1px dashed rgba(44, 33, 28, 0.18); }
.best-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 800; opacity: 0.9; }
.groups-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.groups-head h1 { margin: 0; }
.groups-page .group-form { margin-top: 0.8rem; }
.invite-banner {
  margin: 0.4rem 0.85rem 0.2rem;
  padding: 0.75rem 0.9rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.invite-banner p { margin: 0 0 0.35rem; font-weight: 700; }
.inline-ask { margin: 0.6rem 0; }
.invite-box { background: var(--card); border-radius: 18px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.invite-box code { font-size: 0.8rem; word-break: break-all; background: rgba(44, 33, 28, 0.05); padding: 0.4rem 0.55rem; border-radius: 10px; }
.invite-box .entry-actions .share-btn { margin-left: 0; }
.group-page .leave { text-align: center; margin-top: 0.5rem; }

.top-actions { display: flex; align-items: center; gap: 0.35rem; }
.nudge {
  position: sticky; bottom: 4.6rem; z-index: 20; margin: 0.6rem 0.8rem 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 0.75rem 0.9rem;
  box-shadow: 0 10px 28px rgba(80, 42, 28, 0.12);
}
.nudge p { margin: 0; flex: 1 1 12rem; }
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(44, 33, 28, 0.35); display: grid; align-items: end; }
.sheet { background: var(--bg); border-radius: 22px 22px 0 0; padding: 1.1rem 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.notify-settings { display: flex; flex-direction: column; gap: var(--row); }
.notify-settings h2 { margin: 0; font-family: Palatino, Georgia, serif; }
.city-row { display: flex; align-items: center; gap: 0.45rem; margin: 0; }
.city-row .chip { text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 650; }
.chip.on { background: var(--ink); color: var(--bg); }
.check { display: flex; align-items: baseline; gap: 0.6rem; margin: 0; }
.check-rows { display: flex; flex-direction: column; gap: var(--row); }
.check-rows .check, .notify-settings .check { margin: 0; }
.group-filter { font-weight: 650; margin: 0; }
.group-jumps { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; }
.link-form { flex-direction: column; align-items: stretch; background: var(--card); border-radius: 18px; padding: 0.9rem 1rem; }
.link-form h2 { margin: 0; font-family: Palatino, Georgia, serif; font-size: 1.15rem; }
.link-form label { font-weight: 650; font-size: 0.88rem; display: flex; flex-direction: column; gap: 0.3rem; }
.link-form select, .group-form select {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 14px; border: 1px solid var(--btn-border); background: var(--input-bg); color: var(--btn-ink);
}
.made-link { margin-top: 0.2rem; }
.invite-landing .inviter { display: flex; align-items: center; gap: 0.8rem; }
.invite-landing h1 { margin: 0; }
.invite-filter { font-weight: 700; margin: 0; }
.invite-preview { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.invite-preview li { display: flex; align-items: center; gap: 0.7rem; }
.invite-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; background: #eadbd0; }
.invite-preview li span { display: flex; flex-direction: column; min-width: 0; }
.deck-scope { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; margin: 0 0 0.6rem; }

.add-row { display: flex; justify-content: flex-end; align-items: center; gap: 0.15rem; margin: 0 1rem 0.15rem; }
.empty .add-row { justify-content: center; margin: 0.2rem 0 0; }
.day-tools { display: flex; align-items: center; gap: 0.35rem; }
.day-tools .add-row { margin: 0; }
.add-plus {
  width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
  background: var(--card); color: var(--ink); font: inherit; font-size: 1.35rem; line-height: 1; font-weight: 600;
  box-shadow: none; cursor: pointer;
  display: grid; place-items: center;
}
.header-plus { width: 32px; height: 32px; min-width: 32px; font-size: 1.15rem; }
.add-plus:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.add-hint {
  border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 650; font-size: 0.88rem;
  cursor: pointer; padding: 0.35rem 0.45rem;
}
form.add-show-form {
  position: relative;
  inset: auto;
  z-index: 1;
  width: min(480px, 100%);
  max-height: 85dvh;
  overflow: auto;
  margin: 0 auto;
}
.add-show-form h3 { margin: 0; font-family: Palatino, Georgia, serif; font-size: 1.35rem; }
.add-show-form label { font-weight: 650; font-size: 0.9rem; }
.add-show-form input {
  font: inherit; padding: 0.75rem 0.9rem; border-radius: 14px; border: 1px solid var(--btn-border);
  background: var(--input-bg); color: var(--btn-ink); width: 100%;
}
.add-show-form input:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.add-show-form .form-error { color: var(--rose); margin: 0; font-weight: 650; }
.add-show-form .form-ok { margin: 0; font-weight: 650; }
.add-show-form .auth-btn { width: 100%; }

.why-line { margin: 0.15rem 0 0; font-size: 0.92rem; color: #6d4a3e; }
.announced { margin: 0.2rem 0 0; font-weight: 700; color: #8a5a32; }

.rate-banner, .rate-box {
  background: var(--card);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  margin: 0.6rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 6px 18px rgba(80, 42, 28, 0.06);
}
.rate-box { margin: 0.4rem 0 0.2rem; }
.rate-banner p, .rate-box h3 { margin: 0; }
.rate-box h3 { font-family: Palatino, Georgia, serif; font-size: 1.15rem; }
.rate-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rate-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid rgba(44, 33, 28, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rate-btn.on, .rate-btn[aria-checked="true"] { box-shadow: 0 0 0 2px var(--rose); background: #fff6f2; }
.rate-btn.loved.on { box-shadow: 0 0 0 2px #c45c7a; }
.rate-dismiss { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.agg { margin: 0; font-weight: 700; }
.rate-note-label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 650; font-size: 0.88rem; }
.rate-note-label textarea {
  font: inherit; min-height: 4.5rem; padding: 0.6rem 0.7rem; border-radius: 12px;
  border: 1px solid rgba(44, 33, 28, 0.18); resize: vertical;
}
.rate-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.rate-note { display: block; font-weight: 500; color: var(--muted); }
.rate-signin { margin: 0.4rem 0; }

.wait-btn {
  align-self: center;
  min-height: 44px;
  margin: 0.4rem 1rem 0;
  border: 1px solid rgba(44, 33, 28, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.wait-btn.on { background: #f3efe4; }
.date-list .wait-btn { margin: 0; align-self: auto; }
.wait-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(24, 16, 12, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.wait-dialog form {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 20px;
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.wait-dialog h3 { margin: 0; font-family: Palatino, Georgia, serif; }
.wait-dialog label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 650; }
.wait-dialog input {
  font: inherit; min-height: 44px; padding: 0.55rem 0.7rem; border-radius: 12px;
  border: 1px solid rgba(44, 33, 28, 0.18);
}
.pick-votes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.pick-votes .text-btn { min-height: 44px; }
.pick-votes .text-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--rose); }
a.round { display: grid; place-items: center; text-decoration: none; color: inherit; }
.site-footer { max-width: 480px; margin: 0 auto; padding: 1.4rem 1.1rem 2.2rem; color: var(--muted); font-size: 0.85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin-bottom: 0.6rem; }
.site-footer a { color: var(--ink); font-weight: 650; text-decoration: none; }
.city-bar { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: center; padding: 0.8rem 1rem 0; }
.city-bar a[aria-current="page"] { color: var(--coral); }
.near-note { margin: 0.4rem 1rem; padding: 0.7rem 0.9rem; background: #fff4ea; border-radius: 6px; }
.ask-form, .near-note form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 1rem 0.8rem; }
.ask-form input, .near-note input { font: inherit; padding: 0.55rem 0.7rem; border-radius: 6px; border: 1px solid rgba(44, 33, 28, 0.18); min-height: 44px; }
.ask-form button, .near-note button { font: inherit; font-weight: 700; min-height: 44px; background: var(--coral-btn); color: var(--on-coral); border: none; border-radius: 6px; padding: 0.55rem 0.9rem; cursor: pointer; }
.catalog-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; padding: 0.4rem 1rem 1.2rem; }
.catalog-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.prose { padding: 1.2rem 1.1rem 0.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.prose h1, .prose h2, .prose h3 { font-family: Palatino, Georgia, serif; line-height: 1.15; }
.prose h1 { font-size: 1.8rem; }
.prose a { color: var(--coral); font-weight: 700; }
.prose ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.prose .lede { font-size: 1.15rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 800; color: var(--coral); }
.guide-index { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.guide-index a { color: var(--ink); font-weight: 750; text-decoration: none; font-size: 1.15rem; }
.pick-chip {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.pick-chip .mark { font-style: normal; font-weight: 800; color: var(--danger); }
.show-rows { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.35rem 0 0.2rem; }
.show-rows.compact { margin: 0 0.15rem; }
.show-row .row-label { font-size: 0.72rem; font-weight: 750; color: var(--muted); margin-bottom: 0.25rem; }
.show-row.fallback .row-label { color: var(--danger); }
.row-scroll { display: flex; gap: 0.35rem; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.cal-add { font-size: 0.85rem; }
.cal-add summary { cursor: pointer; font-weight: 750; color: var(--coral); }
.cal-add-menu, .cal-ask { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.35rem; }
.cal-add-menu a { color: var(--ink); font-weight: 650; text-decoration: none; }
.cal-ask .row-scroll { flex-direction: row; }

.hub { display: flex; flex-direction: column; gap: 1.85rem; padding: 1.35rem 0 3rem; }
.hub h1 { font-family: Palatino, Georgia, serif; font-size: 2rem; line-height: 1.05; letter-spacing: -0.03em; padding: 0 1.15rem; overflow-wrap: anywhere; }
.hub .lede { padding: 0 1.15rem; color: var(--muted); font-size: 1.05rem; margin-top: -0.7rem; }
.start-swiping { margin: 0 1.15rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; width: calc(100% - 2.3rem); background: var(--coral-btn); color: var(--on-coral); font-weight: 750; text-decoration: none; border-radius: 6px; }
.hub-block { display: flex; flex-direction: column; }
.hub-block header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.15rem; }
.hub-block h2 { font-size: 1rem; font-weight: 750; }
.hub-block header a { min-height: 44px; display: inline-flex; align-items: center; color: var(--coral); font-weight: 700; text-decoration: none; }
.hub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.7rem; align-items: center; margin: 0 1.15rem; padding: 0.8rem 0; min-height: 44px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.hub-main strong, .listing-card h2 { overflow-wrap: anywhere; }
.hub-when { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.hub-main { grid-column: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.hub-main span { color: var(--muted); font-size: 0.85rem; }
.hub-row .price-pill { grid-column: 2; grid-row: 1 / span 2; }
.hub-empty { margin: 0 1.15rem; color: var(--muted); }
.hub .ask-form { margin-top: 4.75rem; }
.listing { display: flex; flex-direction: column; gap: 1rem; padding: 0.8rem 0 2rem; }
.listing h1 { font-family: Palatino, Georgia, serif; font-size: 1.85rem; line-height: 1.1; padding: 0 1.15rem; }
.listing .lede, .listing .updated, .listing .fallback-note, .listing .kicker { padding: 0 1.15rem; }
.listing-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; padding: 0 1.15rem; }
.swipe-these { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 1rem; border-radius: 6px; background: var(--coral-btn); color: var(--on-coral); font-weight: 750; text-decoration: none; }
.listing-card { position: relative; display: flex; flex-direction: column; gap: 0.45rem; margin: 0 1.15rem; padding: 0 0 0.9rem; border-radius: 6px; background: var(--card); overflow: hidden; }
.listing-card img { width: 100%; height: 168px; object-fit: cover; border-radius: 0; }
.listing-card h2, .listing-meta, .listing-people, .extra-times { padding: 0 0.9rem; }
.listing-card h2 { font-size: 1.2rem; line-height: 1.2; }
.listing-card h2 a, .listing-people a, .listing-meta a { color: var(--ink); text-decoration: none; }
.listing-card h2 a { font-weight: 750; }
.listing-meta, .listing-people, .extra-times { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: center; color: var(--muted); font-size: 0.9rem; }
.listing-meta a, .listing-people a { min-height: 44px; display: inline-flex; align-items: center; }
.listing-meta .price-pill { background: var(--pill-bg); color: var(--pill-ink); }
.marker { font-size: 0.75rem; font-weight: 750; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--sold-bg); color: var(--sold-ink); }
.day-chips, .type-chips, .browse-menu nav { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.2rem 1.15rem 0.4rem; }
.day-chips a, .type-chips a, .browse-menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 650; padding: 0.35rem 0.75rem; border-radius: 6px; background: var(--card); }
.type-chips a[aria-current="page"] { background: var(--coral-btn); color: var(--on-coral); }
.browse-menu { margin: 0 1.15rem; }
.browse-menu summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.browse-menu nav { padding-left: 0; padding-right: 0; }
.top-actions .browse-quiet { position: relative; margin: 0; }
.top-actions .browse-quiet summary { list-style: none; padding: 0.4rem 0.55rem; font-size: 0.85rem; font-weight: 650; }
.top-actions .browse-quiet summary::-webkit-details-marker { display: none; }
.top-actions .browse-quiet nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.2rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  background: var(--card);
  border-radius: 12px;
}
.top-actions .browse-quiet nav a,
.top-actions .browse-quiet nav button {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  text-align: left;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.date-pair { display: flex; flex-direction: column; gap: 0.75rem; }
.date-pair h2, .date-pair .pair-note { padding: 0 1.15rem; }
.fallback-note { font-size: 0.85rem; color: var(--muted); }
.share-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--inverse); color: var(--on-inverse); padding: 0.55rem 0.9rem; border-radius: 999px; opacity: 0; pointer-events: none; }
.share-toast.shown { opacity: 1; }
.share-btn { border-radius: 6px; min-height: 48px; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1a1412;
    --glow: #3a241c;
    --ink: #f6efe9;
    --muted: #d7c4b8;
    --card: #2a211d;
    --surface: #2a211d;
    --line: rgba(246, 239, 233, 0.14);
    --control: #e6d5cb;
    --coral: #ffb4a2;
    --coral-btn: #9a341f;
    --on-coral: #ffffff;
    --btn-bg: #3a2e28;
    --btn-ink: #f6efe9;
    --btn-border: rgba(246, 239, 233, 0.45);
    --btn-primary-bg: #9a341f;
    --btn-primary-ink: #ffffff;
    --link: #ffb4a2;
    --input-bg: #2a211d;
    --muted: #eaded6;
    --rose: #ff8fa0;
    --inverse: #f6efe9;
    --on-inverse: #1a1412;
    --bar: rgba(26, 20, 18, 0.94);
    --hover: rgba(255, 255, 255, 0.08);
    --chip-bg: #fffaf6;
    --chip-ink: #2c211c;
    --soft: #3a2e28;
    --ok: #8fd9a8;
    --danger: #ffb4a2;
    --pill-bg: #fdeee8;
    --pill-ink: #9a341f;
    --urgent-bg: #fde8df;
    --urgent-ink: #8a3b28;
    --sold-bg: #f3e6d4;
    --sold-ink: #6b3a22;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
  .text-btn, .ask-form button, .near-note button { background: var(--coral-btn); color: var(--on-coral); }
  .tag, .tag.type, .chip, a.chip {
    background: var(--chip-bg);
    color: var(--chip-ink);
  }
  a.text-btn, .top-actions .text-btn, .text-btn.quiet {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--control);
  }
  .date-list li, .day.selected, .day.busy.selected, .day-panel, .agenda-day,
  .share-btn, .add-plus, .wait-btn, .seg button.on, .calendar-grid, .calendar-head button {
    background: var(--surface);
    color: var(--ink);
  }
  .day-badge { background: var(--coral-btn); color: var(--on-coral); }
  .day.busy { color: var(--muted); }
  .badge.match { background: #4a242c; color: var(--rose); }
  .badge.yes { background: #4a2c24; color: #ffb4a2; }
  .badge.yes.love { background: #4a2434; color: #ffb4c8; }
  .badge.no { background: #3a302c; color: var(--muted); }
  .sp-head .why, .why-line { color: var(--ink); }
  .cta span { color: var(--coral-btn); }
  .wait-btn.on, .rate-btn.on, .rate-btn[aria-checked="true"] { background: var(--soft); color: var(--ink); }
  .day .thumb { box-shadow: 0 0 0 2px var(--card); }
  input, select, textarea, .sheet, .match-card, .pick-card, .rate-btn, .auth-card, .invite-box {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }
  .round, .round.yes, .round.love, .round.small.no { background: var(--card); }
  .fact, .near-note { background: var(--soft); color: var(--ink); }
  .why-line, .synopsis p, .sp-head .subtitle, .sp-head .why { color: var(--ink); }
  .announced { color: var(--coral); }
  .listing-meta .price-pill, .show-page .price-pill, .match-body .price-pill, .best-match .price-pill, .prose .price-pill,
  .marker { background: var(--soft); color: var(--ink); }
  .caption .price-pill { background: var(--pill-bg); color: var(--pill-ink); }
  .logo, a.logo { color: var(--ink); }
  .auth-error { color: #ffb4a2; background: rgba(255, 180, 162, 0.14); }
}

.logo { min-width: 0; white-space: nowrap; }
.top-actions { flex: none; }
.top-actions .text-btn { padding: 0.2rem 0.6rem; font-size: 0.82rem; }
.caption .genre-line { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0; }
.caption .blurb {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
}
.caption .time-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.caption .time-chips .pick-chip.on { background: var(--inverse); color: var(--on-inverse); }
.details-related { min-width: 0; }
.details-related:empty { display: none; }
.type-picker { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.type-chip, .type-more summary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.type-chip.on { background: var(--inverse); color: var(--on-inverse); }
.type-chip.empty { opacity: 0.45; }
.type-more { width: 100%; }
.type-more summary { display: inline-block; color: var(--muted); list-style: none; }
.type-more .type-chip { margin: 0.35rem 0.35rem 0 0; }

.deck-actions .round { min-width: 56px; min-height: 56px; }
.sheet-close {
  margin: 0.4rem 1rem 0 auto;
  display: block;
  border: none;
  background: transparent;
  color: var(--coral);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

/* One viewport: header, card, and X/heart, with the section nav still reachable.
   On a phone the nav is the bottom bar, so the card ends above it. */
body:has(#app.view-deck) {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}
#app.view-deck,
.deck-ready.view-deck {
  --tab: 86px;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  max-height: 100vh;
  max-height: 100svh;
  max-height: 100dvh;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* Painted under the show page at the same size as the live deck, so revealing it does not jump. */
.deck-ready {
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(480px, 100%);
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
  background: var(--bg);
}
.deck-ready * { pointer-events: none; }
#app.view-deck .tabs { display: flex; }
.deck-ready.view-deck .tabs { display: flex; }
#app.view-deck main,
.deck-ready.view-deck main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
#app.filters-open main { overflow: auto; }
.view-deck .deck-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.view-deck .stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: min(460px, 100%);
  gap: 0.4rem;
  padding: 0.15rem 0.85rem calc(0.3rem + env(safe-area-inset-bottom));
}
.view-deck .card-stack {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  width: 100%;
  max-width: 460px;
  overflow: hidden;
}
.view-deck .show-card.top { bottom: 16px; }
.view-deck .show-card.peek {
  transform: translateY(12px) scale(0.975);
  opacity: 0.72;
}
.view-deck .hero .hero-img { object-fit: cover; padding: 0; filter: none; object-position: center center; }
.view-deck .deck-actions {
  position: static;
  transform: none;
  flex: none;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  padding: 0.1rem 0 0.1rem;
  background: none;
}
.view-deck .deck-actions .round {
  width: clamp(56px, 9vh, 76px);
  height: clamp(56px, 9vh, 76px);
}
#app.view-deck .nudge,
.feedback-ask {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 1.2rem));
  top: calc(3.2rem + env(safe-area-inset-top));
  z-index: 19;
  margin: 0;
}
.feedback-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.feedback-ask p { flex: 1 1 10rem; margin: 0; }
.feedback-ask button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.2rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.party-prompt {
  position: absolute;
  z-index: 6;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(clamp(56px, 9vh, 76px) + 0.55rem + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.party-prompt p { width: 100%; margin: 0; text-align: center; font-weight: 700; font-size: 0.88rem; }
.party-prompt button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.15rem 0.7rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.party-prompt .party-dismiss { min-width: 36px; padding: 0; }
.show-layer > .top { position: relative; z-index: 40; }
.show-close {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-left: -0.4rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.show-layer {
  position: relative;
  z-index: 30;
  min-height: 100dvh;
  background: var(--bg);
  touch-action: pan-y;
}
/* At the top, the browser must not claim a downward pan (it cancels the pointer). */
.show-layer.at-top,
.show-layer.at-top * { touch-action: pan-x; }
.show-layer.at-top .show-close { touch-action: manipulation; }
.show-layer:has(.show-dock .deck-actions) .show-screen { padding-bottom: calc(11rem + env(safe-area-inset-bottom)); }
.show-layer:not(:has(.show-dock .deck-actions)) .show-screen { padding-bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
.show-dock {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.show-dock .deck-actions {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.6rem;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0 0.15rem;
  background: none;
}
.show-dock .deck-actions .round {
  width: clamp(56px, 9vh, 76px);
  height: clamp(56px, 9vh, 76px);
}
#app.view-show {
  /* The page fills the screen, including the space the tab bar uses on the deck. */
  --tab: 0px;
  height: auto;
  max-height: none;
  overflow: visible;
  padding-bottom: 0;
}
#app.view-show .show-layer .tabs { display: none; }
.sheet-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.2rem 1rem 0.4rem;
}
.sheet-actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 40px;
  padding: 0.2rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.feedback-form textarea, .feedback-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.feedback-form textarea { min-height: 7rem; resize: vertical; }
.moods { display: flex; gap: 0.4rem; }
.moods button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.moods button.on { box-shadow: 0 0 0 2px var(--rose); }
.footer-feedback { font-weight: 650; }
body:has(#app.view-deck) .toast {
  bottom: calc(clamp(56px, 9vh, 76px) + 0.8rem + env(safe-area-inset-bottom));
}
@media (max-width: 390px) {
  .top { gap: 0.25rem; padding-left: 0.5rem; padding-right: 0.4rem; }
  .logo { font-size: 0.95rem; gap: 0.25rem; }
  .logo img { width: 22px; height: 22px; }
  .top-actions { gap: 0.15rem; }
  .top-actions .browse-quiet summary { padding: 0.1rem 0.3rem; font-size: 0.78rem; min-height: 32px; }
  .top-actions .text-btn, a.text-btn.quiet { font-size: 0.75rem; padding: 0.1rem 0.45rem; min-height: 32px; }
  .filters-pill { font-size: 0.7rem; padding: 0.1rem 0.4rem; min-height: 32px; }
  .header-plus { width: 28px; height: 28px; min-width: 28px; }
}
@media (max-width: 380px) {
  #app .logo span { display: none; }
}
html:has(#app.view-deck) { height: 100dvh; overflow: hidden; }
@media (max-width: 1023px) {
  html:has(#app.view-deck),
  html:has(#app.view-show) { scrollbar-gutter: stable; }
}

/* Phone and tablet show page: one scrolling page, same order from the deck or a direct visit. */
@media (max-width: 1023px) {
  .view-show .show-page.has-photos {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0 0 1rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .view-show .details-photos { display: contents; }
  .view-show .details-hero { order: 1; }
  .view-show .sp-head { order: 2; padding: 0.85rem 1.15rem 0; }
  .view-show .details-reaction { order: 3; padding: 0 1.15rem; }
  .view-show .details-story { order: 4; padding: 0 1.15rem; }
  .view-show .gallery { order: 5; min-width: 0; align-self: stretch; margin-left: 0; margin-right: 0; }
  .view-show .details-trailer { order: 6; padding: 0 1.15rem; }
  .view-show .details-rest { order: 7; padding: 0 1.15rem; }
  .view-show .details-hero {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 0 0.35rem;
    border-radius: 0;
  }
  .view-show .details-hero img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 42dvh;
    object-fit: cover;
  }
}
@media (max-width: 1023px) and (max-height: 700px) {
  .view-show .details-hero img { max-height: 26dvh; }
}

@keyframes slide-in-right { from { transform: translateX(100%); } }
@keyframes slide-out-left { to { transform: translateX(-28%); } }
@keyframes slide-out-right { to { transform: translateX(100%); } }
@keyframes slide-in-left { from { transform: translateX(-28%); } }
@media (prefers-reduced-motion: no-preference) {
  html[data-nav="forward"]::view-transition-old(root) { animation: 200ms ease both slide-out-left; }
  html[data-nav="forward"]::view-transition-new(root) { animation: 200ms ease both slide-in-right; }
  html[data-nav="back"]::view-transition-old(root) { animation: 200ms ease both slide-out-right; }
  html[data-nav="back"]::view-transition-new(root) { animation: 200ms ease both slide-in-left; }
  #app.nav-forward { animation: slide-in-right 200ms ease; }
  #app.nav-back { animation: slide-in-left 200ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  #app.nav-forward, #app.nav-back { animation: none; }
  html[data-nav]::view-transition-old(root),
  html[data-nav]::view-transition-new(root) { animation: none; }
}

/* Desktop deck: a portrait card and the votes on the left, this show's details
   on the right. No dialog. The card keeps a 2:3 ratio and sizes from the
   viewport height so the X and heart stay on screen. It does not shrink to
   make room for the details pane. */
@media (min-width: 1024px) {
  #app.view-deck { max-width: none; --tab: 0px; padding-bottom: 0; }
  /* Wide screens: the section nav sits in the top band, clear of the logo and account actions. */
  #app.view-deck .tabs {
    top: calc(0.4rem + env(safe-area-inset-top));
    bottom: auto;
    width: min(440px, calc(100vw - 28rem));
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem;
    box-shadow: 0 10px 28px rgba(80, 42, 28, 0.16);
  }
  #app.view-deck .tabs button {
    min-height: 36px;
    padding: 0.3rem 0.4rem;
    font-size: 0.88rem;
  }
  .view-deck .deck-layout {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: clamp(1.5rem, 2.5vw, 2.75rem);
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0.35rem clamp(1.5rem, 3vw, 3rem) 0.5rem;
  }
  .view-deck .stage {
    flex: 0 0 auto;
    align-self: center;
    width: min(420px, calc((100dvh - 12.5rem) * 2 / 3));
    max-width: 420px;
    min-width: 0;
    height: auto;
    max-height: 100%;
    gap: 0.7rem;
    padding: 0;
  }
  .view-deck .card-stack {
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .view-deck .show-card.top { bottom: 0; }
  .view-deck .caption h1 {
    font-size: 1.6rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .view-deck .more,
  .view-deck .details-hint { display: none; }
  .deck-panel {
    flex: 1 1 0;
    align-self: stretch;
    width: auto;
    max-width: 760px;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
  }
  .deck-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .deck-panel .show-page {
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.85rem 1.15rem 1rem;
  }
  .deck-panel .gallery { min-width: 0; max-width: 100%; }
  .deck-panel .details-photos { display: contents; }
  .deck-panel .details-hero { order: 1; width: 100%; height: auto; border-radius: 12px; }
  .deck-panel .gallery { order: 2; margin: 0.65rem 0 0; padding: 0 0 0.2rem; }
  .deck-panel .sp-head { order: 3; }
  .deck-panel .sp-head h2 { font-size: 1.7rem; }
  .deck-panel .details-reaction { order: 4; }
  .deck-panel .details-story { order: 5; }
  .deck-panel .details-trailer { order: 6; }
  .deck-panel .details-rest { order: 7; }
  .deck-panel .details-hero img {
    width: 100%;
    height: 220px;
    max-width: none;
    object-fit: cover;
  }
  .deck-panel .gallery .shot { height: 120px; border-radius: 10px; }
  .deck-panel .gallery .shot img { height: 100%; width: auto; max-width: 240px; }
}

.prose { padding: 1.15rem 1.15rem 0.6rem; }
.listing { padding: 1rem 0 2rem; }
.listing h1, .listing .lede, .listing .updated, .listing .fallback-note, .listing .kicker { padding-left: 1.15rem; padding-right: 1.15rem; }
.show-page { margin: 0.8rem 1rem 1.4rem; }
.auth-card { margin: 1rem; }
.site-footer { padding: 1.25rem 1.15rem calc(1.6rem + env(safe-area-inset-bottom)); }
.group-page, .invite-landing { padding-left: 1rem; padding-right: 1rem; }

/* Header pills match the + button, and text sits in the middle of the 32px box. */
.top-actions a.text-btn,
.top-actions .text-btn,
a.text-btn.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0 0.75rem;
  margin: 0;
  line-height: 1;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--control);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: none;
}
.add-plus.header-plus {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  line-height: 1;
  font-size: 1.15rem;
  border: 1px solid var(--control);
  background: var(--card);
  color: var(--ink);
}
::placeholder { color: var(--muted); opacity: 1; }
input, textarea, select,
.feedback-form textarea, .feedback-form input,
.party-prompt button, .sheet-actions button, .moods button {
  border-color: var(--control);
}

/* Caption sits on its own dark bar so the date and venue clear AA over any poster. */
.caption {
  background: #1a1412;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.55rem 0.7rem 0.6rem;
}
.caption h1, .caption p, .caption .where, .caption .next { color: #ffffff; }

.view-deck .stage { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
  .view-deck .stage { padding-bottom: 0; }
}
.party-prompt {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  flex: none;
  width: auto;
  max-width: 100%;
  align-self: center;
  margin: 0;
  box-shadow: none;
  border: 1px solid var(--control);
}

/* Feedback and other sheets are content-sized and left-aligned, not stretched across the viewport. */
.sheet-back > .sheet,
.sheet-back > form.sheet {
  position: relative;
  inset: auto;
  width: min(480px, 100%);
  max-height: min(92dvh, 100%);
  margin-top: auto;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  padding: 1.15rem 2.8rem calc(1.15rem + env(safe-area-inset-bottom)) 1.15rem;
  gap: 0.55rem;
}
.feedback-form form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
}
.feedback-form label, .feedback-form h2 { text-align: left; }
.feedback-form h2 { font-family: Palatino, Georgia, serif; font-size: 1.35rem; font-weight: 600; margin: 0; }
.feedback-form label { margin: 0; }
.moods { justify-content: flex-start; }
.feedback-form .auth-btn { width: 100%; }
.sheet-x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  z-index: 2;
}
.deck-panel .details-actions {
  flex: none;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.75rem 1.15rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
}
/* Quieter browse, lists, show pages, and legal copy. */
.show-page {
  margin: 0.2rem 0 1rem;
  padding: 0.2rem 1.15rem 1.4rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.facts { gap: 0.35rem 1rem; }
.listing { gap: 1.6rem; }
.listing-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  gap: 0.35rem;
  margin: 0 1.15rem;
  padding: 0 0 0.4rem;
}
.listing-card img { border-radius: 6px; height: 200px; }
.listing-card h2, .listing-meta, .listing-people, .extra-times { padding: 0; }
.swipe-these {
  background: transparent;
  color: var(--coral);
  padding: 0;
  min-height: 44px;
  justify-content: flex-start;
  border-radius: 0;
}
.day-chips a, .type-chips a, .browse-menu a {
  background: transparent;
  padding: 0.2rem 0;
  border-radius: 0;
}
.type-chips a[aria-current="page"] { background: transparent; color: var(--coral); }
.listing-meta .price-pill, .show-page .price-pill, .prose .price-pill, .marker,
.match-body .price-pill, .best-match .price-pill {
  background: transparent;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
  font-weight: 650;
}
.listing-actions .share-btn, .prose .share-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink);
  padding-left: 0;
  min-height: 44px;
}
.city-browse { padding: 1.5rem 1.2rem 2.4rem; gap: 1.4rem; }
.city-browse h1 { font-size: 2.15rem; line-height: 1.05; padding: 0; }
.city-browse .lede, .city-browse .listing-actions { padding: 0; margin: 0; }
.city-browse section { display: flex; flex-direction: column; gap: 0.2rem; }
.city-browse h2 { font-family: Palatino, Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.text-nav { display: flex; flex-wrap: wrap; column-gap: 1.05rem; row-gap: 0; }
.text-nav a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}
.text-nav a[aria-current="page"] { color: var(--coral); }
.plain-list { display: flex; flex-direction: column; }
.plain-row {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.plain-when { color: var(--muted); font-size: 0.88rem; }
.plain-row strong { display: block; }
.plain-row span span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.12rem; }
.prose { gap: 1.05rem; }
.prose p, .prose li { line-height: 1.6; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
a { color: inherit; }
.listing .kicker a { color: var(--coral); }
.prose.show-public a { color: var(--ink); }
.prose.show-public a[data-named-track="ticket_link_click"] { color: var(--coral); }
.show-page .tag,
.show-page .tag.type {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--muted);
}
.show-page .share-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink);
  padding-left: 0;
}
.rate-box {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0.6rem 0 0;
}
.date-list li { background: transparent; box-shadow: none; }
.why-line { color: var(--ink); }
.top-actions a.text-btn:focus-visible,
.add-plus.header-plus:focus-visible,
.text-nav a:focus-visible,
.plain-row:focus-visible,
.sheet-x:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}
