/* Cineville login: the account sheet and its top-bar control.
   Values from the "Cineville web app" design (LoginEmail / LoginCode / Profile artboards). */

/* ---- Top-bar control ---- */
.account-login-button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #3A352D;
  background: transparent;
  color: #F2EDE4;
  font: 500 13.5px Geist, sans-serif;
  cursor: pointer;
}

.account-avatar-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 22px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: #E9B44C;
  color: #14120F;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 20px Geist, sans-serif;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar.small {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  font-size: 14px;
}

/* ---- Sheet body ---- */
.account-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px 28px;
}

.account-lead {
  margin: -6px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #A8A092;
}

.account-lead strong {
  color: #F2EDE4;
  font-weight: 500;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #A8A092;
}

.account-input {
  height: 52px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #3A352D;
  background: #14120F;
  color: #F2EDE4;
  font: 16px Geist, sans-serif; /* 16px stops iOS zooming in on focus */
  outline-color: #E9B44C;
}

.account-submit {
  width: 100%;
  height: 52px;
}

.account-submit:disabled {
  background: #2E2A24;
  color: #8C8578;
  cursor: default;
}

.account-error {
  margin: -4px 0 0;
  font-size: 13.5px;
  color: #E07A5F;
}

.account-privacy {
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #8C8578;
}

.account-privacy svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Six code boxes over one invisible input ---- */
.code-field {
  position: relative;
  height: 60px;
}

.code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  height: 60px;
}

.code-box {
  height: 60px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #3A352D;
  background: #14120F;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 24px 'Geist Mono', monospace;
  color: #F2EDE4;
}

.code-box.filled {
  border-color: #4A443A;
}

.code-field:focus-within .code-box.current {
  border-color: #E9B44C;
  background: #26221C;
}

.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  outline: none;
  cursor: text;
}

/* The highlighted box shows the focus, so the app-wide input ring would only double it. */
.code-input:focus-visible {
  outline: none;
}

.account-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #4A443A;
}

.account-link {
  height: 40px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: #D9D2C5;
  font: 500 13.5px Geist, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.account-link:disabled {
  color: #8C8578;
  cursor: default;
}

.account-logout {
  align-self: flex-start;
  padding: 0;
}

/* ---- Heads ---- */
.account-head-back {
  gap: 4px;
}

.account-head-back .sheet-title {
  flex-grow: 1;
}

/* 14px under the avatar and close button, as in the Profile artboard, so they keep clear of the rows. */
.account-head {
  gap: 12px;
  padding-bottom: 14px;
}

.account-who {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-name {
  margin: 0;
  font: 400 24px/1.1 'Instrument Serif', Georgia, serif;
}

.account-email {
  font-size: 13px;
  color: #A8A092;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Profile rows ---- */
.account-rows {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2E2A24;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 14px;
  border: none;
  background: #14120F;
  color: #F2EDE4;
  font-family: Geist, sans-serif;
  text-align: left;
  cursor: pointer;
}

.account-row + .account-row {
  border-top: 1px solid #2E2A24;
}

.account-row:disabled {
  cursor: default;
}

.account-row-icon {
  display: flex;
  color: #E9B44C;
}

.account-row-label {
  flex-grow: 1;
  font-size: 15px;
  font-weight: 500;
}

.account-row-meta {
  font: 13px 'Geist Mono', monospace;
  color: #A8A092;
}

/* ---- Language toggle ---- */
.account-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #2E2A24;
}

.account-lang-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #D9D2C5;
}

.account-lang-options {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #14120F;
  border: 1px solid #2E2A24;
}

.account-lang-option {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #A8A092;
  font: 500 13px Geist, sans-serif;
  cursor: pointer;
}

.account-lang-option[aria-pressed="true"] {
  background: #F2EDE4;
  color: #14120F;
}

/* The language switch and the account control share the right side of the brand row. */
.brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-row-go {
  display: flex;
  color: var(--muted-soft);
}

/* ---- Watchlist and seen list (Watchlist / SeenList artboards) ---- */
.account-list-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}

.account-list-heading {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* The count sits right after the title, not pushed to the far side. */
.account-list-heading .sheet-title {
  flex-grow: 0;
}

.account-list {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 128px;
  box-sizing: border-box;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
}

button.account-item {
  cursor: pointer;
}

.account-item-poster {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 40px;
  height: 56px;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 5px;
  display: flex;
  align-items: flex-end;
  background: var(--poster-bg);
  color: var(--poster-fg);
  font: italic 19px/0.85 var(--serif);
}

/* A list row's poster: year at the top, the mark at the bottom. */
.list-poster {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 76px;
  height: 108px;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--poster-bg);
  color: var(--poster-fg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.list-poster.is-faded {
  opacity: 0.7;
}

.account-item-year {
  font: 600 9px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

.list-poster-mark {
  font: italic 38px/0.85 var(--serif);
  letter-spacing: -1px;
}

.account-item-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-item-title {
  font: 23px/1.1 var(--serif);
}

.account-item.is-quiet .account-item-title {
  color: var(--text-soft);
}

.account-item-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.account-item-info {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-soft);
}

/* The next screening of a watchlist film, as an amber chip. */
.account-item-chip {
  margin-top: 4px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-raised);
  font: 500 11.5px/1.3 var(--mono);
  color: var(--accent);
}

.account-item-go {
  display: flex;
  color: var(--muted-soft);
}

.account-list .notice {
  margin: 20px 0;
}

/* The score on a seen film: a dashed "Rate" until it has one. */
.score-chip {
  flex-shrink: 0;
  min-width: 60px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px dashed var(--outline-dashed);
  background: transparent;
  color: var(--text-soft);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font: 500 13px/44px var(--sans);
  cursor: pointer;
}

.score-chip.is-rated {
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--accent);
}

.score-number {
  font-size: 19px;
  font-weight: 600;
}

.score-of {
  font-size: 11.5px;
  opacity: 0.7;
}

/* ---- The bookmark on posters of films on the watchlist ---- */
.watch-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  color: var(--poster-fg);
}

/* Over a real poster image the mark gets a backing in the poster's colour, so it stays readable. */
.poster-image ~ .watch-mark {
  padding: 4px;
  border-radius: 6px;
  background: var(--poster-bg);
}

/* ---- Reservations sheet (Reservations / ReservationsEmpty artboards) ---- */
.reservation-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The day stays at the top while its reservations scroll under it. */
.reservation-day-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 16px 0 6px;
  background: var(--surface);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.reservation-rel {
  color: var(--text-soft);
}

.reservation-rel.is-today {
  color: var(--accent);
}

.reservation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.reservation-main {
  display: flex;
  gap: 14px;
}

.reservation-card .list-poster {
  width: 64px;
  height: 92px;
  padding: 7px;
  box-shadow: none;
}

.reservation-card .account-item-year {
  font-size: 8.5px;
}

.reservation-card .list-poster-mark {
  font-size: 32px;
}

.reservation-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reservation-when {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
}

.reservation-time {
  font-size: 22px;
  color: var(--accent);
}

.reservation-end {
  font-size: 11.5px;
  color: var(--muted-soft);
}

.reservation-title {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: 22px/1.1 var(--serif);
  text-align: left;
}

button.reservation-title {
  cursor: pointer;
}

.reservation-where {
  font-size: 13px;
  color: var(--muted);
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.reservation-pass {
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px var(--sans);
  cursor: pointer;
}

.reservation-manage {
  height: 40px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font: 500 13px var(--sans);
  text-decoration: none;
}

.reservation-manage:hover {
  color: var(--text);
}

.reservations-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 10px 0;
  text-align: center;
}

.reservations-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.reservations-empty-title {
  font: 26px/1.1 var(--serif);
}

.reservations-empty-sub {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.reservations-browse {
  margin-top: 6px;
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 14.5px var(--sans);
  cursor: pointer;
}

/* ---- "Your score" sheet (RateSheet artboard) ---- */
.rate-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 0 var(--gutter);
}

.rate-head-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rate-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.rate-title {
  margin: 0;
  font: 400 26px/1.05 var(--serif);
}

.rate-value {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent);
}

.rate-value.is-empty {
  color: #5A5346;
}

.rate-value-number {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.rate-value-of {
  font-size: 14px;
  color: var(--muted-soft);
}

.rate-close {
  align-self: flex-start;
}

.rate-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
}

.score-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.score-option {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--text);
  font: 600 17px var(--sans);
  cursor: pointer;
}

.score-option[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.score-option:disabled {
  cursor: default;
}

.rate-hint {
  font-size: 12.5px;
  color: var(--muted-soft);
}

.rate-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rate-remove {
  flex-shrink: 0;
  width: auto;
  height: 52px;
  padding: 0 16px;
}

.rate-actions .account-submit {
  flex-grow: 1;
  width: auto;
}

/* ---- "Select watchlist" in the film filter (no artboard; follows the account rows) ---- */
.watchlist-filter {
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line-strong);
}

.watchlist-filter-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.watchlist-filter-button[aria-pressed="true"] {
  border-color: var(--accent);
}

.watchlist-filter-button:disabled {
  cursor: default;
}

.watchlist-filter-button:disabled .account-row-icon {
  color: var(--muted-soft);
}

.watchlist-filter-button .option-text {
  flex-grow: 1;
}

/* ---- Watchlist buttons (ListBookmarks / DetailActions artboards) ---- */
.film-card {
  position: relative;
}

/* Room for the bookmark beside the title. */
.film-card .film-text {
  padding-right: 30px;
}

.watch-toggle {
  position: absolute;
  top: 8px;
  right: -10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.watch-toggle[aria-pressed="true"] {
  color: var(--accent);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-watch {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 14.5px var(--sans);
  cursor: pointer;
}

.detail-watch[aria-pressed="true"] {
  background: var(--surface-raised);
  border-color: var(--accent);
  color: var(--accent);
}

.detail-watch svg {
  width: 18px;
  height: 18px;
}

/* Why the login sheet opened when a logged-out visitor tapped a watchlist button. */
.account-reason {
  margin: -4px 0 4px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
}

.account-reason svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ---- Toast with Undo ---- */
.toast-region {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  width: 100%;
  max-width: calc(var(--max-width) - 32px);
  min-height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  animation: sheet-in 180ms ease-out;
}

.toast-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
}

.toast-text {
  flex-grow: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.toast-undo {
  flex-shrink: 0;
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--bg);
  font: 600 13.5px var(--sans);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

/* ---- "Seen it?" and the score on the film page (DetailActions / DetailSeen artboards) ---- */
.detail-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-seen {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 14.5px var(--sans);
  cursor: pointer;
}

.detail-seen[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.detail-score {
  align-self: flex-start;
  height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font: 13.5px var(--sans);
  cursor: pointer;
}

.detail-score-label {
  color: var(--muted);
}

.detail-score-value {
  font-weight: 600;
  color: var(--accent);
}

.detail-score-action {
  color: var(--muted-soft);
}

/* While a sheet is open the note moves to the top, so it never covers the sheet's buttons. */
.toast-region.is-top {
  top: calc(16px + env(safe-area-inset-top));
  bottom: auto;
}

/* ---- Your Cineville pass (Profile row + Pass artboard, the cinema-ticket variant) ---- */
.account-pass-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--surface-raised);
  color: var(--text);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.account-pass-icon {
  flex-shrink: 0;
  display: flex;
}

.account-pass-text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-pass-title {
  font-size: 15px;
  font-weight: 600;
}

.account-pass-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.pass-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.pass-ticket {
  position: relative;
  flex-shrink: 0;
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pass-top {
  position: relative;
  height: 330px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
}

.pass-top > :not(.pass-sprockets):not(.pass-rays) {
  position: relative;
}

/* Film-strip holes along the top edge. */
.pass-sprockets {
  position: absolute;
  inset: 7px 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
}

.pass-sprockets span {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: var(--on-accent);
  opacity: 0.85;
}

/* A projector's light rays, very faint, behind the photo. */
.pass-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(20, 18, 15, 0.07) 0deg 9deg, transparent 9deg 18deg);
}

.pass-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  text-align: center;
  padding: 0 16px;
}

.pass-photo {
  width: 84px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--text);
  border: 2px solid var(--on-accent);
  display: flex;
}

.pass-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pass-name {
  font: 400 40px/1 var(--serif);
  text-align: center;
  padding: 0 16px;
}

.pass-status {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.pass-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: currentColor;
}

.pass-status.is-off {
  color: var(--text);
}

/* The tear line, with a half-circle notch cut out at each end. */
.pass-tear {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--outline-dashed);
}

.pass-tear::before,
.pass-tear::after {
  content: '';
  position: absolute;
  top: -15px;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--outline);
}

.pass-tear::before {
  left: -15px;
}

.pass-tear::after {
  right: -15px;
}

.pass-stub {
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  /* The scanner needs a light ground and a quiet zone around the bars. */
  padding: 0 20px;
  background: var(--text);
  color: var(--on-accent);
}

.pass-barcode {
  width: 100%;
  max-width: 276px;
  height: 130px;
  image-rendering: pixelated;
}

.pass-number {
  font: 500 18px var(--mono);
  letter-spacing: 2.5px;
}

.pass-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  text-align: center;
}

.pass-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* ---- Supporting filmdoek. (Donate artboard) ---- */
.support-row-meta {
  font-size: 12.5px;
  color: #8C8578;
}

.support-icon {
  display: flex;
  flex-shrink: 0;
  color: #E9B44C;
}

/* The note under "Reserve" in the booking popup. */
.support-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed #4A443A;
}

.support-note-text {
  flex-grow: 1;
  font-size: 13px;
  line-height: 1.4;
  color: #A8A092;
}

.support-note-link {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: none;
  font-family: Geist, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #E9B44C;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The support sheet. */
.support-nav {
  padding-bottom: 6px;
}

.support-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}

.support-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.support-badge {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #14120F;
  border: 1px solid #3A352D;
  color: #E9B44C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-title {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  color: #F2EDE4;
}

.support-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #D9D2C5;
}

.support-sign-off {
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: #F2EDE4;
}

.support-hint {
  line-height: 1.5;
}

.support-amounts {
  display: flex;
  gap: 8px;
}

.support-amount {
  flex: 1 1 0;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #3A352D;
  background: #14120F;
  color: #F2EDE4;
  font-family: Geist, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.support-amount[aria-checked="true"] {
  border-color: #E9B44C;
  background: #E9B44C;
  color: #14120F;
}

/* The field for an amount of your own, under the chips once "Other" is picked. */
.support-other {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #3A352D;
  background: #14120F;
  color: #F2EDE4;
  font-family: Geist, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: text;
}

.support-other:focus-within {
  border-color: #E9B44C;
}

.support-other-currency {
  color: #8C8578;
}

.support-other-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit; /* 16px keeps iOS Safari from zooming in on focus */
}

.support-other-input:focus-visible {
  outline: none; /* the box around it turns gold instead */
}

.support-other-input::placeholder {
  color: #4A443A;
}
