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

:root {
  --bg: #f3ebe3;
  --ink: #2c211c;
  --muted: #8d7368;
  --card: #fffaf6;
  --line: rgba(44, 33, 28, 0.08);
  --coral: #e36b4f;
  --rose: #e23d55;
  --shadow: 0 18px 40px rgba(80, 42, 28, 0.14);
  --tab: 86px;
}

html, body { height: 100%; }

body {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, #ffe7d4 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

.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 h2, .loading { color: var(--ink); font-family: Palatino, "Iowan Old Style", Georgia, serif; }

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem 0.2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.logo img { width: 30px; height: 30px; transform: rotate(-8deg); flex: none; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #2c211c;
  color: #fff8f2;
  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(62dvh, 560px);
}

.show-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #3a2a24;
  box-shadow: var(--shadow);
  touch-action: pan-y; /* the page scrolls; only clear sideways drags swipe */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
}
.show-card.dragging { cursor: grabbing; }

.show-card.dragging { transition: none; }

.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; }

@keyframes fly-right { to { transform: translateX(130%) rotate(16deg); opacity: 0; } }
@keyframes fly-left { to { transform: translateX(-130%) rotate(-16deg); 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 {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 250, 246, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.caption h2 {
  font-family: Palatino, "Iowan Old Style", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.caption p { margin-top: 0.35rem; color: rgba(255, 255, 255, 0.9); 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.yes { right: 18px; }
.stamp.no { left: 18px; }

.more {
  position: absolute;
  color: var(--ink);
  top: 14px;
  right: 14px;
  z-index: 2;
  border: none;
  background: rgba(255, 250, 246, 0.92);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

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

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

.round {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(80, 42, 28, 0.12);
  background: white;
}
.round:active { transform: scale(0.94); }
.round.no { color: #9a857c; }
.round.yes { background: white; font-size: 1.9rem; box-shadow: 0 0 0 3px var(--rose), 0 10px 24px rgba(226, 61, 85, 0.25); }

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

.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 h2 { 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: rgba(255, 250, 246, 0.94);
  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;
  padding: 0.55rem 0 0.35rem;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}
.tabs button.active { color: var(--ink); background: #fff; }

.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; }

.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 {
  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: #5c463c; }
.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: #4d3a32;
  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: #f6ece4;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4d3a32;
}
.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 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 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: #3b2c25; 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, rgba(255, 250, 246, 0), var(--card));
}
.synopsis.clamped.open { max-height: none; }
.synopsis.clamped.open::after { display: none; }

.text-link {
  border: none;
  background: none;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.2rem 0;
}

.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: #fff;
  border-radius: 18px;
  padding: 0.6rem 0.8rem 0.6rem 0.6rem;
  box-shadow: 0 2px 8px rgba(80, 42, 28, 0.05);
}
.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(--ink);
  color: #fff8f2;
  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.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;
}

/* Desktop: card stays put on the left, the show page scrolls on the right */
@media (min-width: 900px) {
  #app.view-deck { max-width: 1120px; }
  .view-deck .top { padding: 1.2rem 1.6rem 0.4rem; }
  .deck-layout {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
    padding: 0 1.2rem;
  }
  .deck-layout .stage { position: sticky; top: 1rem; padding: 0.4rem 0 0; }
  .deck-layout .card-stack { height: min(70vh, 620px); }
  .scroll-cue { display: none; }
  .show-page { margin: 0.4rem 0 2rem; padding: 2rem 2.2rem 2.2rem; }
  .sp-head h1 { 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; }
}

/* ---------- 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(--ink);
  color: #fff;
  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); }

/* 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.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: rgba(255, 255, 255, 0.7); }
  .tabs button.active { background: var(--ink); color: #fff; }
  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: 0.5rem 0 1.5rem; }
.profile-page h2 { font-family: Palatino, Georgia, serif; margin-bottom: 0.8rem; }

/* 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: 0.55rem; }
.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 rgba(44, 33, 28, 0.18); background: #fff; color: var(--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 rgba(44, 33, 28, 0.14); background: #fff; color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.auth-btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.auth-btn.primary:hover { filter: brightness(0.96); }
.auth-btn.off { opacity: 0.55; cursor: default; }
.auth-btn.slim { padding: 0.6rem 1rem; }
.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: 0.5rem; 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; }

.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; }
.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; }
