/* =====================================================================
   The Movie Club — design system
   A small-town picture house, 1948 onward: warm cream, rust / mustard /
   sky stripes, soft chunky serif, velvet-seat maroon for the dark room.
   Cinephile details on top: numbered film covers, ticket stubs, grain.
====================================================================== */
:root {
  --paper: #fbf1e6;
  --paper-2: #f5e4d2;
  --paper-3: #ecd3ba;
  --ink: #1e2a4a;
  --ink-2: #3f4a68;
  --muted: #5f6680;
  --rule: #e2c6a8;
  --accent: #c4501c;
  --accent-ink: #a8410f;
  --brass: #e9a531;
  --sky: #3d8fcc;
  --screen: #3a1820;
  --screen-2: #4d2129;
  --screen-ink: #fbf1e6;
  --screen-muted: #e3c3b6;
  --ok: #2f6b45;
  --warn: #9a5a0a;

  --f-display: 'Fraunces', 'Cooper Black', Georgia, serif;
  --f-mono: 'Courier Prime', 'Courier New', monospace;
  --f-sans: 'Barlow', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow-pop: 4px 4px 0 var(--brass), 8px 8px 0 var(--sky);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.55; overflow-x: hidden;
}
a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(3%,3%); } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Triple stripe — the house motif */
.stripes { display: grid; gap: 3px; }
.stripes i { display: block; height: 3px; border-radius: 3px; }
.stripes i:nth-child(1) { background: var(--accent); }
.stripes i:nth-child(2) { background: var(--brass); }
.stripes i:nth-child(3) { background: var(--sky); }
.stripes--band { gap: 0; }
.stripes--band i { height: 10px; border-radius: 0; }
.stripes--mast { max-width: 420px; margin: 4px auto 14px; }
.stripes--mast i:nth-child(1) { margin: 0 24px; }
.stripes--mast i:nth-child(3) { margin: 0 24px; }

/* ---------------- Masthead ---------------- */
.masthead { text-align: center; padding: 14px var(--gutter) 0; }
.masthead__top { display: flex; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; color: var(--ink-2); padding-bottom: 8px; }
.masthead__top a { color: var(--ink); }
.masthead__name { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); margin-top: 18px; }
.masthead__the { font-family: var(--f-mono); font-size: 13px; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
.masthead__word {
  font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: clamp(48px, 10vw, 112px); line-height: .95;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.02em; color: var(--accent);
  text-shadow: 3px 3px 0 var(--brass), 6px 6px 0 var(--sky);
}
.masthead__tag { font-family: var(--f-display); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); margin: 0 0 16px; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; max-width: var(--wrap); margin: 0 auto; padding: 10px 0 16px; }
.nav a {
  text-decoration: none; color: var(--ink); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid transparent;
}
.nav a:hover { border-color: var(--rule); }
.nav a[aria-current="page"] { border-color: var(--accent); color: var(--accent-ink); background: var(--paper-2); }
.nav__booth { opacity: .7; }
@media (max-width: 640px) {
  .masthead__top { font-size: 11px; }
  .masthead__season { display: none; }
  .nav a { padding: 6px 10px; font-size: 11px; letter-spacing: .06em; }
  .masthead__word { text-shadow: 2px 2px 0 var(--brass), 4px 4px 0 var(--sky); }
}

main { min-height: 60vh; outline: none; }
section { padding: clamp(44px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2, h2.title, .marquee h1 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4.8vw, 56px); line-height: 1.02; margin: 0;
  letter-spacing: -.015em; font-variation-settings: 'SOFT' 100, 'opsz' 144;
}
h2 em, h1 em { font-style: italic; color: var(--accent); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; margin: 0 0 8px; font-variation-settings: 'SOFT' 100; }
.lede { font-family: var(--f-display); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 48ch; }
.serif { font-family: var(--f-display); font-size: 18px; }
.link-arrow { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; color: var(--accent-ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* Pill heading flanked by stripes */
.pillhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 32px; }
.pill {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); margin: 0; color: var(--accent);
  font-variation-settings: 'SOFT' 100, 'opsz' 144; padding: 4px 26px 6px; border: 2px solid var(--accent); border-radius: 999px; background: var(--paper); white-space: nowrap;
}
@media (max-width: 560px) { .pillhead { grid-template-columns: 1fr; } .pillhead > .stripes { display: none; } .pill { white-space: normal; text-align: center; } }

/* ---------------- Buttons & fields ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .01em; font-variation-settings: 'SOFT' 100;
  padding: 12px 24px; border: 2px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 999px; cursor: pointer; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .spine:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--sm { padding: 6px 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.btn--venmo { background: #008cff; border-color: #008cff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.on-screen .btn { box-shadow: 3px 3px 0 var(--brass); }
.on-screen .btn--ghost { background: transparent; color: var(--screen-ink); border-color: var(--screen-ink); }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--ink); background: #fffaf3; border-radius: 10px; font-size: 17px;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select { appearance: none; background: #fffaf3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231e2a4a'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 32px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 18px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* ---------------- The dark room ---------------- */
.on-screen {
  background: radial-gradient(ellipse at 30% 0%, var(--screen-2), var(--screen) 70%); color: var(--screen-ink); position: relative;
}
.on-screen .eyebrow { color: var(--screen-muted); }
.on-screen .lede { color: var(--screen-ink); opacity: .9; }
.marquee { padding: clamp(48px, 8vw, 92px) 0; overflow: hidden; }
.marquee__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.marquee__theme { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--brass); margin: 0 0 6px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.marquee h1 { font-size: clamp(44px, 8vw, 100px); line-height: .95; margin: 4px 0 18px; }
.marquee h1 em { color: var(--brass); }
.marquee__director { font-family: var(--f-display); font-style: italic; font-size: 22px; opacity: .85; margin: 0 0 20px; }
.marquee__meta { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--f-mono); font-size: 14px; color: var(--screen-muted); margin: 0 0 28px; }
.marquee__meta b { color: var(--screen-ink); font-weight: 400; }
.marquee__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.leader { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.leader__ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--brass); }
.leader__ring--inner { inset: 12%; border-width: 1.5px; border-color: var(--screen-ink); opacity: .45; }
.leader__cross::before, .leader__cross::after { content: ''; position: absolute; background: var(--screen-ink); opacity: .3; }
.leader__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.leader__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.leader__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233,165,49,.25) 25%, transparent 0); animation: sweep 3s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .leader__sweep { animation: none; } }
.leader__num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(84px, 13vw, 150px); line-height: 1; font-variation-settings: 'SOFT' 100; }
.leader__num small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--screen-muted); margin-top: 8px; }

/* ---------------- Film covers ---------------- */
.spines { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
.spines--row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.spine {
  --c: #333; position: relative; display: flex; flex-direction: column; background: #fffaf3; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius); text-align: left; padding: 0; overflow: hidden;
  box-shadow: 4px 4px 0 var(--brass), 8px 8px 0 var(--sky); transition: transform .18s, box-shadow .18s;
}
button.spine { cursor: pointer; }
button.spine:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brass), 10px 10px 0 var(--sky); }
.spine__cover { background: var(--c); color: #fdf3e6; aspect-ratio: 3 / 3.3; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.spine__cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(0,0,0,.35)); }
.spine__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.spine__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 2.3vw, 26px); line-height: 1.04; margin: 0; position: relative; z-index: 1; font-variation-settings: 'SOFT' 100; }
.spine__mark { position: absolute; right: -14px; bottom: -36px; font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 170px; line-height: 1; opacity: .14; }
.spine__body { padding: 12px 14px 14px; display: grid; gap: 3px; flex: 1; }
.spine__dir { font-family: var(--f-display); font-style: italic; font-size: 16px; }
.spine__facts { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.spine__log { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.spine__vote { padding: 0 14px 12px; }
.spine__cta { display: block; text-align: center; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; padding: 10px; border-top: 1.5px dashed var(--rule); color: var(--accent-ink); }
.spine__cta.is-on { background: var(--accent); color: #fff; border-top-color: var(--accent); }
.spine--small .spine__title { font-size: 18px; }
.spine--small .spine__mark { font-size: 120px; }
.spine.is-selected { border-color: var(--accent); }
.spine.is-winner .spine__cover::before {
  content: 'Selected'; position: absolute; z-index: 2; top: 16px; right: -34px; transform: rotate(35deg);
  background: var(--brass); color: var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 40px;
}
.bar { height: 8px; background: var(--paper-3); border-radius: 8px; position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 8px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar-label { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; margin-top: 6px; color: var(--ink-2); }
.archive-card { display: grid; gap: 8px; }
.archive-card > .mono { font-size: 11px; min-height: 2.6em; }

/* Slate ballot */
.progress { max-width: 520px; margin-bottom: 18px; }
.progress .bar { margin-top: 8px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 700; min-width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; }
.jump a.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.night { padding: 40px 0; border-top: 1.5px solid var(--rule); }
.night:nth-of-type(even) { background: var(--paper-2); }
.night__head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.night__no { font-family: var(--f-display); font-weight: 800; font-size: 34px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-variation-settings: 'SOFT' 100; flex: none; }
.night__theme { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--accent); margin: 2px 0 0; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.night__head .badge { margin-left: auto; }

/* Season schedule list (home) */
.schedule { list-style: none; margin: 0; padding: 0; border: 2px solid var(--ink); border-radius: var(--radius); background: #fffaf3; overflow: hidden; box-shadow: var(--shadow-pop); }
.schedule li { display: grid; grid-template-columns: 56px 130px minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1.5px dashed var(--rule); }
.schedule li:last-child { border-bottom: 0; }
.schedule__no { font-family: var(--f-display); font-weight: 800; color: var(--accent); font-size: 22px; }
.schedule__date { font-family: var(--f-mono); font-size: 13px; }
.schedule__theme { font-family: var(--f-display); font-weight: 700; font-size: 19px; font-variation-settings: 'SOFT' 100; }
.schedule__film { font-size: 15px; }
.schedule__film b { font-family: var(--f-display); font-weight: 600; }
.schedule li.is-past { opacity: .55; }
@media (max-width: 720px) { .schedule li { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; } .schedule__no { grid-row: span 3; } }

/* Membership band */
.membership-band { background: var(--paper-2); border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); }
.perks { list-style: none; padding: 0; margin: 20px 0 14px; display: grid; gap: 10px; }
.perks li { padding-left: 30px; position: relative; font-size: 17px; }
.perks li::before { content: '★'; position: absolute; left: 0; color: var(--accent); }
.price-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 26px; background: #fffaf3; box-shadow: var(--shadow-pop); margin-bottom: 30px; }
.price-card__amt { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--accent); font-variation-settings: 'SOFT' 100; }
.paychoice { border: 0; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.paychoice legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 8px; }
.paychoice__opt { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fffaf3; cursor: pointer; }
.paychoice__opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--paper-2); }
.paychoice__opt input { accent-color: var(--accent); }

/* ---------------- Ticket / member card ---------------- */
.ticket { display: grid; grid-template-columns: 1fr auto; background: #fffaf3; border: 2px solid var(--ink); border-radius: var(--radius); position: relative; max-width: 780px; box-shadow: var(--shadow-pop); }
.ticket__main { padding: 26px 30px; border-right: 2px dashed var(--ink); }
.ticket__stub { padding: 26px 22px; display: grid; place-items: center; text-align: center; min-width: 150px; background: var(--accent); color: #fff; border-radius: 0 12px 12px 0; }
.ticket__stub .admit { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: .04em; font-variation-settings: 'SOFT' 100; }
.ticket__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 8px 0 16px; font-variation-settings: 'SOFT' 100; }
.ticket__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px; margin: 0; }
.ticket__grid dt { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ticket__grid dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 19px; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__main { border-right: 0; border-bottom: 2px dashed var(--ink); padding: 22px; }
  .ticket__stub { border-radius: 0 0 12px 12px; }
  .ticket__stub .admit { writing-mode: horizontal-tb; transform: none; }
}
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: #fffaf3; padding: 8px 16px; cursor: pointer; font-family: var(--f-display); font-weight: 600; }
.seg button + button { box-shadow: inset 2px 0 0 var(--ink); }
.seg button.on { background: var(--accent); color: #fff; }

.badge { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 999px; white-space: nowrap; }
.badge--active, .badge--confirmed { color: var(--ok); }
.badge--pending, .badge--submitted, .badge--awaiting { color: var(--warn); }
.badge--lapsed, .badge--rejected, .badge--unpaid { color: var(--accent-ink); }

/* ---------------- Panels, tables, lists ---------------- */
.panel { border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); background: #fffaf3; }
.panel + .panel { margin-top: 22px; }
.panel h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel--focus { box-shadow: var(--shadow-pop); }
.panel--ticket { background: var(--paper); border-style: dashed; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 56px); }
.split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--wide, .marquee__grid { grid-template-columns: 1fr; } .leader { width: min(70%, 240px); } }
.empty { font-family: var(--f-display); font-style: italic; color: var(--muted); padding: 14px 0; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 16px 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fffaf3; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 38px; line-height: 1.05; color: var(--accent); font-variation-settings: 'SOFT' 100; }
.stat span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.noms { list-style: none; padding: 0; margin: 0; }
.noms li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--rule); flex-wrap: wrap; }
.notice { border: 1.5px solid var(--accent); border-radius: 12px; padding: 12px 16px; background: var(--paper-2); font-size: 15px; margin: 0 0 22px; }
.notice--ok { border-color: var(--ok); }

/* Programme */
.season + .season { margin-top: 56px; }
.season__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.season__head h3 { font-size: 32px; font-weight: 800; color: var(--accent); margin: 0; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 110px 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--rule); }
.log__date { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.log__no { color: var(--accent-ink); }
.log__chip { width: 56px; height: 72px; background: var(--c); color: #fdf3e6; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; border-radius: 8px; border: 1.5px solid var(--ink); }
.log__theme { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.log__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.1; margin: 2px 0; font-variation-settings: 'SOFT' 100; }
.log__sub { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.log__rate { text-align: right; }
.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; font-size: 22px; line-height: 1; color: var(--rule); }
.stars button.on, .stars button:hover { color: var(--brass); }
.stars--static span { color: var(--rule); } .stars--static span.on { color: var(--brass); }
@media (max-width: 640px) { .log li { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; } .log__date, .log__rate { grid-column: 1 / -1; text-align: left; } .log__chip { width: 48px; height: 62px; } }

/* Bulletin */
.bulletin-wrap { padding: 40px 0 0; }
.bulletin { border: 2px solid var(--ink); border-radius: var(--radius); background: #fffaf3; padding: 22px clamp(18px, 3vw, 30px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 36px; box-shadow: var(--shadow-pop); }
.bulletin > .eyebrow { grid-column: 1 / -1; margin: 0; border-bottom: 1.5px dashed var(--rule); padding-bottom: 10px; }
.bulletin__item h3 { font-size: 22px; margin: 4px 0 6px; }
.bulletin__item p { margin: 0; font-size: 15px; color: var(--ink-2); }
.bulletin__item.is-pinned h3::before { content: '★ '; color: var(--accent); }

/* Member events */
.meetups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.meetup { display: grid; grid-template-columns: 104px minmax(0, 1fr); border: 2px solid var(--ink); border-radius: var(--radius); background: #fffaf3; overflow: hidden; }
.meetup__time { background: var(--screen); color: var(--screen-ink); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; text-align: center; justify-content: center; }
.meetup__time .mono { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); }
.meetup__time b { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.meetup__body { padding: 16px 18px; }
.meetup__body h3 { margin: 0 0 4px; }
.meetup__body p { margin: 0 0 8px; font-size: 15px; }
.meetup__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

/* Payment */
.paybox { border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); background: #fffaf3; max-width: 680px; box-shadow: var(--shadow-pop); }
.paybox__amount { font-family: var(--f-display); font-weight: 800; font-size: 72px; line-height: 1; margin: 0 0 12px; color: var(--accent); font-variation-settings: 'SOFT' 100; }
.refcode { display: inline-block; font-family: var(--f-mono); font-size: 26px; letter-spacing: .12em; padding: 6px 16px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--paper); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 800; width: 28px; height: 28px; border-radius: 50%; background: var(--brass); display: grid; place-items: center; font-size: 15px; }

/* ---------------- Booth ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; }
.tabs a { text-decoration: none; color: var(--ink); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; background: #fffaf3; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.tabs__dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10px; padding: 0 5px; margin-left: 4px; }
.weeks { display: grid; gap: 22px; }
.week.is-past { opacity: .65; }
.week__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.week__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.week__meta input { border: 0; border-bottom: 1.5px solid var(--rule); background: transparent; padding: 6px 0; }
.week__meta input[name="theme"] { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--accent); min-width: min(360px, 70vw); font-variation-settings: 'SOFT' 100; }
.week__meta input:focus { border-bottom-color: var(--ink); outline: none; }
.week__add { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.week__add details { flex: 1 1 260px; }
.week__add summary { cursor: pointer; padding: 8px 0; color: var(--ink-2); }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select, .inline-form input { padding: 8px 12px; border: 1.5px solid var(--ink); background: #fffaf3; border-radius: 10px; font-size: 14px; max-width: 100%; }
.inline-form input { flex: 1 1 200px; }
.channels { border: 0; padding: 0; margin: 0 0 18px; }
.channels legend { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 6px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: 11px; background: var(--paper-3); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
input.tpl { width: 100%; min-width: 260px; border: 0; border-bottom: 1px dashed var(--rule); background: transparent; font-family: var(--f-mono); font-size: 13px; padding: 6px 0; }
input.tpl:focus { outline: none; border-bottom: 1.5px solid var(--ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; z-index: 200; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 13px; padding: 12px 20px; border-radius: 999px; transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); box-shadow: 3px 3px 0 var(--brass); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Footer */
.colophon { background: var(--screen); color: var(--screen-ink); margin-top: 40px; }
.colophon__inner { text-align: center; padding: 40px var(--gutter) 48px; }
.colophon__mark { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 34px; margin: 0 0 8px; color: var(--brass); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.colophon .mono { color: var(--screen-muted); margin: 4px 0; }
.colophon__fine { font-size: 11px; opacity: .75; }

main.flicker { animation: flicker .4s ease-out; }
@keyframes flicker { 0% { opacity: 0; } 30% { opacity: .75; } 45% { opacity: .5; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { main.flicker { animation: none; } }

/* ---------------- QR codes ---------------- */
.qr { background: #fff; padding: 10px; border-radius: 10px; border: 1.5px solid var(--ink); width: max-content; max-width: 100%; line-height: 0; }
.qr img, .qr canvas { display: block; max-width: 100%; height: auto; }
.qr__fallback { line-height: 1.4; word-break: break-all; max-width: 220px; margin: 0; font-size: 11px; }
.scan-join { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.signup-share { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.signup-share__url { word-break: break-all; background: var(--paper-2); padding: 8px 12px; border-radius: 8px; margin: 0 0 12px; }

/* Venmo payment step */
.paybox--venmo { display: flex; gap: clamp(20px, 4vw, 40px); align-items: center; flex-wrap: wrap; max-width: 760px; }
.paybox__qr { display: grid; gap: 10px; justify-items: center; text-align: center; }
.paybox__info { flex: 1 1 260px; min-width: 0; }
.paybox__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------------- Digital pass ---------------- */
.pass-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 760px) { .pass-layout { grid-template-columns: 1fr; } .pass { margin: 0 auto; } }
.pass {
  position: relative; width: 100%; max-width: 360px; background: radial-gradient(ellipse at 30% 0%, var(--screen-2), var(--screen) 75%);
  color: var(--screen-ink); border-radius: 24px; padding: 30px 24px 22px; text-align: center; overflow: hidden;
  box-shadow: 5px 5px 0 var(--brass), 10px 10px 0 var(--sky);
}
.pass__band {
  position: absolute; inset: 0 0 auto; height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 24px, var(--brass) 24px 48px, var(--sky) 48px 72px);
  background-size: 72px 10px; animation: passband 1.6s linear infinite;
}
@keyframes passband { to { background-position: 72px 0; } }
.pass__top { display: flex; justify-content: space-between; gap: 10px; color: var(--screen-muted); font-size: 12px; }
.pass__live { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.pass__live i { width: 8px; height: 8px; border-radius: 50%; background: #5fd38a; box-shadow: 0 0 0 0 rgba(95,211,138,.7); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(95,211,138,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,138,0); } }
@media (prefers-reduced-motion: reduce) { .pass__band, .pass__live i { animation: none; } }
.pass__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 7vw, 36px); line-height: 1.05; margin: 22px 0 4px; font-variation-settings: 'SOFT' 100; }
.pass__admit { font-family: var(--f-display); font-style: italic; font-weight: 700; color: var(--brass); font-size: 22px; margin: 0 0 18px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.pass__qr { display: flex; justify-content: center; }
.pass__qr .qr { border: 0; padding: 12px; border-radius: 14px; }
.pass__code { margin: 14px 0 2px; letter-spacing: .14em; }
.pass__tonight { margin: 0; color: var(--screen-muted); font-size: 12px; }
.pass-help h3 { font-size: 28px; }
.pass-help .ticket__grid { margin-top: 20px; }

/* ---------------- Pass check (door scan) ---------------- */
.verify { max-width: 560px; margin: 0 auto; text-align: center; border-radius: 24px; padding: clamp(28px, 6vw, 48px) 24px; color: #fff; }
.verify--ok { background: #2f6b45; }
.verify--bad { background: #a8410f; }
.verify__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 8vw, 52px); line-height: 1; margin: 0 0 16px; font-variation-settings: 'SOFT' 100; }
.verify__name { font-family: var(--f-display); font-size: 28px; margin: 0 0 6px; }
.verify__count { font-size: 18px; margin: 18px 0 14px; }
.verify .seg { border-color: #fff; }
.verify .seg button { background: transparent; color: #fff; }
.verify .seg button + button { box-shadow: inset 2px 0 0 #fff; }
.verify .seg button.on { background: #fff; color: #2f6b45; }
.verify .btn--ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.verify .hint { color: rgba(255,255,255,.85); }

/* ---------------- Door ---------------- */
.door-list li.is-in .serif::before { content: '✓ '; color: var(--ok); }
.door-counter { display: flex; align-items: center; gap: 18px; }
.door-counter b { font-family: var(--f-display); font-weight: 800; font-size: 44px; min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.door-counter .btn { width: 52px; height: 52px; padding: 0; font-size: 26px; }

/* Cheese: hidden in the Theater look (shown by sundries.css) */
.cheese-wedge, .progress__hint, .verify__stub { display: none; }
.pass .cheese-stub { display: block; width: calc(100% + 48px); max-width: none; margin: 16px -24px -22px; }
