/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

:root {
  --paper: #fff9ec;
  --white: #ffffff;
  --ink: #221e60;
  --muted: #5e6480;
  --line: #d8c7a8;
  --red: #d43058;
  --blue: #4a6fa8;
  --font-display: "MaokenAssortedSans", "JiangChengYuanTi", "Yuanti SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "JiangChengYuanTi", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
  --radius: 12px;
  --header-h: 112px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-modal-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--blue); }
p, h1, h2, h3, dl, dd, dt, ul, ol { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--paper); }
.ticket :focus-visible { outline-color: var(--blue); }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#films, #how { scroll-margin-top: calc(var(--header-h) + 24px); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.head-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; padding-block: 20px; text-decoration: none; }
.brand-logo { display: block; width: 180px; height: auto; transition: transform 120ms ease; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.head-actions { display: flex; align-items: center; gap: 16px; }
.head-deadline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.head-deadline .od-icon { --od-icon-size: 16px; color: var(--blue); }

/* Identity */
.identity-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.identity-inner { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.identity-label { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: var(--muted); }
.identity-label .od-icon { --od-icon-size: 16px; color: var(--blue); }
.identity-name { max-width: min(24ch, 30vw); min-width: 0; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.identity-name.is-empty { color: var(--muted); font-weight: 400; }
.identity-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
@media (hover: hover) { .identity-edit:hover { color: var(--ink); } }
.identity-note { margin-left: auto; font-size: 12px; color: var(--muted); }

@media (hover: hover) {
  .head-nav a:hover { border-bottom-color: var(--ink); }
  .brand:hover .brand-logo { transform: translateY(-1px); }
  .foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.btn .od-icon { --od-icon-size: 18px; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--paper);
  border-color: var(--line);
  color: var(--muted);
  transform: none;
}
.head-cta { padding-inline: 16px; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
  .btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
  .btn-ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: translateY(-1px); }
  .btn:disabled:hover { background: var(--paper); border-color: var(--line); color: var(--muted); transform: none; }
}
.btn:active { transform: translateY(0); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: var(--ink); color: var(--paper); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 96px, var(--blue) 96px 97px);
  opacity: 0.12;
  pointer-events: none;
}
.hero-arch {
  position: absolute;
  right: 3%;
  bottom: -120px;
  width: 560px;
  height: 680px;
  border: 1px solid var(--paper);
  border-radius: 280px 280px 0 0;
  opacity: 0.18;
  pointer-events: none;
}
.hero-spooky { position: absolute; inset: 0; pointer-events: none; }
.hero-moon {
  position: absolute;
  top: 40px;
  left: 43%;
  width: 170px;
  height: 170px;
  color: var(--paper);
  opacity: 0.24;
  overflow: visible;
}
.hero-web {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 132px;
  height: 132px;
  color: var(--paper);
  opacity: 0.18;
}
.hero-bat { position: absolute; display: block; width: 42px; height: 21px; color: var(--paper); opacity: 0.8; }
.hero-bat.bat-a { top: 18px; left: 44%; transform: rotate(-8deg); }
.hero-bat.bat-b { top: 198px; left: 55%; width: 28px; height: 14px; color: var(--blue); opacity: 1; transform: rotate(8deg); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.eyebrow-moon { width: 14px; height: 14px; color: var(--paper); flex: none; }
.hero h1 {
  margin: 24px 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 7.3vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero-lede { max-width: 560px; font-size: 17px; line-height: 1.8; color: var(--paper); opacity: 0.82; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--paper);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hero-link .od-icon { --od-icon-size: 18px; transition: transform 120ms ease; }
@media (hover: hover) { .hero-link:hover .od-icon { transform: translateX(4px); } }
.event-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.event-facts dt { font-size: 11px; letter-spacing: 0.08em; color: var(--line); }
.event-facts dd { margin-top: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact-location dd { white-space: normal; overflow-wrap: anywhere; }

/* Ticket */
.ticket-wrap { position: relative; justify-self: end; width: min(100%, 392px); margin: 24px 24px 0 0; }
.ticket {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(1deg);
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ticket-main { padding: 24px; }
.ticket-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--blue); }
.ticket-date {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ticket-sub { display: block; font-size: 15px; font-weight: 600; }
.ticket-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ticket-details span { display: block; font-size: 10px; color: var(--muted); }
.ticket-details strong { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticket-hours { margin-top: 8px; font-size: 11px; color: var(--muted); }
.ticket-stub { padding: 16px 24px 24px; border-top: 1px dashed var(--line); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.count-unit { display: grid; gap: 2px; text-align: center; border-right: 1px solid var(--line); }
.count-unit:last-child { border-right: 0; }
.count-unit strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.count-unit span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.countdown-note { margin-top: 8px; text-align: center; font-size: 11px; color: var(--muted); }
.ticket-sticker {
  position: absolute;
  top: -12px;
  right: 24px;
  z-index: 2;
  padding: 4px 12px;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  transform: rotate(3deg);
  white-space: nowrap;
}
.ticket-tape {
  position: absolute;
  left: 50%;
  bottom: -12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 24px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  transform: translateX(-50%) rotate(-3deg);
  clip-path: polygon(2% 0, 98% 4%, 100% 100%, 0 96%);
}
.spark { position: absolute; color: var(--paper); opacity: 0.72; pointer-events: none; }
.spark-a { top: 8%; left: 44%; width: 24px; height: 24px; }
.spark-b { bottom: 10%; left: 4%; width: 16px; height: 16px; color: var(--blue); opacity: 1; }
.spark-c { top: 18%; right: 4%; width: 16px; height: 16px; }

/* Section basics */
.kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--blue); }
.kicker-with-icon { display: inline-flex; align-items: center; gap: 8px; }
.kicker-icon { width: 18px; height: 18px; flex: none; color: var(--blue); }
.section-title { margin-top: 8px; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
.section-lede { margin-top: 12px; max-width: 560px; font-size: 16px; color: var(--muted); }

/* Board */
.board { padding: 96px 0; }
.board-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.board-summary { margin-top: 12px; font-size: 16px; color: var(--muted); }
.vote-quota { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.quota-label { color: var(--ink); font-weight: 600; }
.quota-dots { display: inline-flex; gap: 4px; }
.quota-dot { width: 8px; height: 8px; border: 1px solid var(--muted); border-radius: 999px; background: var(--white); }
.quota-dot.is-filled { background: var(--blue); border-color: var(--blue); }
.quota-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quota-note { font-size: 11px; }
.board-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.sync-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.sync-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--blue); flex: none; }
.sync-dot.is-local { background: var(--muted); }
.sync-dot.is-error { background: var(--red); }
.sync-dot.is-connecting { background: var(--line); }
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.filter-chip .filter-count { font-family: var(--font-mono); font-size: 10px; opacity: 0.68; }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .filter-chip:hover { border-color: var(--ink); }
  .filter-chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); }
}
.board-cta { border-color: var(--line); }
@media (hover: hover) { .board-cta:hover { border-color: var(--ink); } }

.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.film-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 120ms ease, transform 120ms ease;
}
@media (hover: hover) { .film-card:hover { border-color: var(--muted); transform: translateY(-2px); } }
.film-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.film-rank { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.film-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.pill-lead { color: var(--red); }
.pill-new { color: var(--blue); }
.film-title { margin-top: 24px; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.film-meta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.film-meta dt { font-size: 11px; line-height: 1.5; color: var(--muted); }
.film-meta dd { margin-top: 2px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.film-reason { margin-top: 16px; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.film-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.vote-total { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; }
.vote-total strong { font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.vote-total span { font-size: 12px; color: var(--muted); }
.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.vote-btn .od-icon { --od-icon-size: 18px; }
.vote-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (hover: hover) {
  .vote-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .vote-btn[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
.vote-btn:disabled { background: var(--paper); border-color: var(--line); color: var(--muted); }
.vote-btn.is-busy { opacity: 0.72; }
.vote-meter { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 999px; background: var(--line); }
.vote-meter span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.film-card.is-leading { border-color: var(--ink); }

.empty-state {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
}
.empty-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--blue); }
.empty-state h3 { margin-top: 8px; font-family: var(--font-display); font-size: 28px; font-weight: 500; line-height: 1.3; }
.empty-state p { max-width: 440px; margin: 8px auto 0; font-size: 16px; color: var(--muted); }
.empty-state .btn { margin-top: 24px; }

.result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.result-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--line); }
.result-title { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.3; }
.result-copy { max-width: 440px; font-size: 15px; color: var(--paper); opacity: 0.82; }

/* How it works */
.how { padding: 96px 0; border-top: 1px solid var(--line); background: var(--white); }
.how-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); }
.how-step { padding: 24px 32px 0 0; border-right: 1px solid var(--line); }
.how-step:not(:first-child) { padding-left: 32px; }
.how-step:last-child { padding-right: 0; border-right: 0; }
.step-number { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--blue); }
.how-step h3 { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.35; }
.how-step p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.how-note { margin-top: 32px; font-size: 12px; color: var(--muted); }

/* Footer */
.address-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.address-strip .od-icon { --od-icon-size: 18px; }
.site-foot { background: var(--paper); }
.foot-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 48px 0 64px; }
.foot-brand { font-size: 16px; font-weight: 700; }
.foot-tag { margin-top: 4px; font-size: 14px; color: var(--muted); }
.foot-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--muted);
  transform: rotate(-1.5deg);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; text-decoration: none; }
.foot-meta { max-width: 430px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.mode-note { margin-top: 8px; }

/* Dialog */
.nominate-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px var(--ink);
}
.nominate-dialog::backdrop { background: var(--ink); opacity: 0.72; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 24px 16px; border-bottom: 1px solid var(--line); }
.dialog-title { margin-top: 4px; font-family: var(--font-display); font-size: clamp(28px, 5vw, 36px); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.dialog-intro { margin-top: 8px; font-size: 15px; color: var(--muted); }
.dialog-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.dialog-close .od-icon { --od-icon-size: 20px; }
@media (hover: hover) { .dialog-close:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } }
.dialog-body { padding: 24px; }
.form-alert { margin-bottom: 24px; padding: 12px 16px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--paper); color: var(--ink); font-size: 13px; }
.form-alert strong { display: block; }
.form-alert ul { margin: 4px 0 0; padding-left: 20px; }
.form-alert a { color: var(--red); font-weight: 600; }
.form-alert-message { margin-top: 4px; }
.field { display: grid; gap: 4px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.field label .optional { font-size: 11px; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 120ms ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field-help, .field-error { font-size: 12px; line-height: 1.6; }
.field-help { color: var(--muted); }
.field-error { color: var(--red); }
.privacy-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px 24px; border-top: 1px solid var(--line); }
.dialog-actions .btn { min-width: 112px; }
.nickname-dialog { width: min(520px, calc(100vw - 32px)); }
.name-tag { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }
.name-tag-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--blue); }
.name-tag .field { margin-top: 16px; margin-bottom: 0; }
.name-preview { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.name-preview strong { min-width: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.nominator-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); font-size: 12px; color: var(--muted); }
.nominator-line strong { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.nominator-line .nominator-note { margin-left: auto; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(480px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast .od-icon { --od-icon-size: 18px; color: var(--paper); }

.noscript { margin-top: 24px; padding: 16px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--white); font-size: 14px; }

@media (max-width: 1024px) {
  .event-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 48px; }
  .hero h1 { font-size: clamp(56px, 7.6vw, 80px); }
  .ticket-date { font-size: 72px; }
  .board-head { grid-template-columns: minmax(0, 1fr); }
  .board-controls { align-items: flex-start; }
  .filter-group { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .head-nav { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero h1 { font-size: clamp(56px, 10vw, 80px); }
  .hero-moon, .hero-web, .hero-bat.bat-b { display: none; }
  .hero-bat.bat-a { top: 12px; left: auto; right: 8%; width: 34px; height: 17px; opacity: 0.58; }
  .ticket-wrap { justify-self: center; width: min(100%, 420px); margin: 16px 0 0; }
  .board, .how { padding: 64px 0; }
  .how-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .head-inner { gap: 20px; }
  .head-deadline { display: none; }
  .identity-note { display: none; }
  .film-grid { grid-template-columns: minmax(0, 1fr); }
  .film-card { min-height: 0; }
  .how-steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .how-step, .how-step:not(:first-child) { padding: 24px 0; border-top: 1px solid var(--line); border-right: 0; }
  .how-step:last-child { padding-bottom: 0; }
  .result-banner { flex-direction: column; align-items: flex-start; }
  .foot-main { flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --header-h: 96px; }
  .wrap { width: calc(100% - 32px); }
  .brand { padding-block: 16px; }
  .brand-logo { width: 160px; }
  .head-cta { padding-inline: 12px; font-size: 13px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { margin: 16px 0; font-size: clamp(48px, 14vw, 64px); }
  .hero-bat.bat-a { top: 10px; width: 30px; height: 15px; }
  .hero-lede { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-link { justify-content: center; }
  .event-facts { gap: 8px; margin-top: 32px; }
  .event-facts dd { font-size: 13px; }
  .ticket { transform: none; }
  .ticket-main { padding: 24px 24px 20px; }
  .ticket-date { font-size: 68px; }
  .ticket-stub { padding: 16px 24px 24px; }
  .count-unit strong { font-size: 24px; }
  .spark-a { left: 78%; }
  .board { padding: 56px 0; }
  .board-head { margin-bottom: 24px; }
  .board-controls { width: 100%; }
  .filter-group { width: 100%; }
  .filter-chip { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .identity-name { max-width: 42vw; }
  .identity-label { gap: 4px; }
  .board-cta { align-self: flex-start; }
  .film-card { padding: 24px; }
  .film-title { font-size: 32px; }
  .film-foot { gap: 12px; }
  .vote-btn { min-width: 120px; }
  .result-banner { padding: 24px; }
  .result-title { font-size: 28px; }
  .how { padding: 56px 0; }
  .dialog-head { padding: 24px 24px 16px; }
  .dialog-body { padding: 24px; }
  .name-tag { padding: 16px; }
  .nickname-dialog .dialog-body { padding: 16px 24px 20px; }
  .dialog-actions { flex-direction: column; padding: 16px 24px 24px; }
  .dialog-actions .btn { width: 100%; }
  .foot-main { padding: 32px 0 48px; }
  .address-strip { font-size: 14px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .head-cta .od-icon { display: none; }
  .hero h1 { font-size: 46px; }
  .identity-name { max-width: 34vw; }
  .ticket-date { font-size: 60px; }
  .vote-btn { min-width: 112px; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
