/* Movie Night — an old picture palace: black house, red velvet, brass, cream letterboards. */
:root {
  --bg: #060405;
  --surface: rgba(22, 14, 12, 0.78);
  --surface-solid: #170e0c;
  --line: rgba(233, 180, 76, 0.12);
  --line-2: rgba(233, 180, 76, 0.24);
  --text: #f4ead5;
  --muted: #a99c89;
  --faint: #6e6356;
  --red: #c8102e;
  --red-2: #e23a46;
  --velvet: #6d0c14;
  --gold: #e9b44c;
  --gold-2: #f6d27a;
  --brass: linear-gradient(180deg, #f8dc8c 0%, #e2ad45 45%, #a8781f 100%);
  --cream: #f4ead5;
  --ink: #160c09;
  --radius: 18px;
  --tw: 168px; /* spin-bar tile width */
  --deco: "Limelight", Georgia, serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Anton", "Impact", sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  /* The proscenium art (2688x1520) is drawn top-centred at --sw wide. */
  --sw: max(100vw, 176.84vh);
  --drape: max(0px, calc(var(--sw) * 0.165 - (var(--sw) - 100vw) / 2));
  --valance: calc(var(--sw) * 0.5655 * 0.15);
  color-scheme: dark;
}
@media (max-aspect-ratio: 1/1) { :root { --sw: 170vw; } }
@media (max-width: 640px) { :root { --tw: 118px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(246, 210, 122, 0.13), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 110%, rgba(200, 16, 46, 0.14), transparent 70%),
    var(--bg);
}
body::after { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.6) 100%); }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: rgba(200, 16, 46, 0.5); }

/* ---------- The house: real velvet (Higgsfield art) framing the page ---------- */
/* Content scrolls behind the drapes and valance, like a stage. */
.proscenium { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: url("/art/curtain-frame.webp") center top / var(--sw) auto no-repeat; }

/* Curtain-opening film, once per visit; it ends on the same frame as the proscenium. */
.intro { position: fixed; inset: 0; z-index: 300; background: #000; cursor: pointer; transition: opacity 0.9s ease; }
.intro video { position: absolute; left: 50%; top: 0; width: var(--sw); transform: translateX(-50%); }
@media (max-aspect-ratio: 1/1) { .intro video { inset: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform: none; } }
.intro.done { opacity: 0; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: max(14px, calc(var(--valance) - 18px)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(1200px, 100% - 40px - var(--drape) * 2); margin: max(14px, calc(var(--valance) - 18px)) auto 0; padding: 7px 7px 7px 16px;
  border: 1px solid var(--line-2); border-radius: 99px;
  background: rgba(10, 6, 5, 0.82); backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(246, 210, 122, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 var(--deco); color: var(--gold-2); white-space: nowrap; text-shadow: 0 0 14px rgba(246, 210, 122, 0.35); }
@keyframes onair { 50% { opacity: 0.35; } }
.links { position: relative; display: flex; gap: 2px; }
.links a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.links a:hover { color: var(--text); }
.links a.active { color: var(--ink); }
.pill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 99px; z-index: 0; background: var(--brass);
  box-shadow: 0 6px 18px -6px rgba(233, 180, 76, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.55s var(--spring), width 0.55s var(--spring), opacity 0.3s;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.host-badge { font: 700 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 99px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; color: var(--gold-2); transition: transform 0.3s var(--spring); }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; border-radius: 22px; padding: 10px 10px 10px 14px; }
  .links { order: 3; width: 100%; justify-content: space-between; }
  .links a { flex: 1; text-align: center; padding: 9px 4px; font-size: 12px; }
}

/* ---------- Pages ---------- */
main { position: relative; z-index: 2; width: min(1200px, 100% - 40px - var(--drape) * 2); margin: 0 auto; min-height: calc(100vh - 160px); }
.page { padding: 44px 0 20px; }
.page-head { margin-bottom: 28px; position: relative; z-index: 1; }
.page-head.center { text-align: center; }
.eyebrow { margin: 0 0 12px; font: 700 11px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.title { font: 400 clamp(42px, 7.4vw, 88px)/1 var(--deco); color: var(--cream); text-shadow: 0 0 40px rgba(246, 210, 122, 0.15); }
.title.small { font-size: clamp(32px, 5vw, 58px); }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.empty { color: var(--muted); margin: 0; font-size: 14px; }
.big-empty { font: 400 26px/1.2 var(--deco); padding: 40px 0; color: var(--faint); }
[data-anim] { will-change: transform, opacity; }

/* ---------- Home ---------- */
.page[data-page="home"] { padding: 0; }
.home-top { position: relative; min-height: calc(100vh - 110px); display: grid; align-items: center; }
.wall {
  position: absolute; inset: -40px -50vw; z-index: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  transform: perspective(1400px) rotateX(14deg) scale(1.1); opacity: 0.2; filter: saturate(0.5);
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 15%, transparent 72%);
  pointer-events: none;
}
.wall-row { display: flex; gap: 18px; width: max-content; animation: wallScroll var(--dur, 60s) linear infinite; }
.wall-row.rev { animation-direction: reverse; }
.wall-row img, .wall-row .ph { width: 140px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; background: #1a100d; flex: none; }
@keyframes wallScroll { to { transform: translateX(-50%); } }
.home-hero { position: relative; z-index: 1; text-align: center; padding: 50px 0; }

/* The marquee sign */
.marquee {
  position: relative; display: inline-block; max-width: 100%; padding: 40px clamp(26px, 5vw, 64px) 34px; border-radius: 22px;
  background: linear-gradient(180deg, #24140e, #120a08);
  box-shadow: 0 0 0 3px #3a2410, 0 0 0 7px #b8862e, 0 0 0 9px #3a2410, 0 50px 100px -40px rgba(246, 210, 122, 0.45), inset 0 0 60px rgba(0, 0, 0, 0.7);
  margin-bottom: 34px;
}
.bulbs { position: absolute; inset: 11px; pointer-events: none; }
.b-strip { position: absolute; display: flex; justify-content: space-between; }
.b-strip.top, .b-strip.bottom { left: 0; right: 0; height: 12px; }
.b-strip.top { top: 0; }
.b-strip.bottom { bottom: 0; }
.b-strip.left, .b-strip.right { top: 22px; bottom: 22px; width: 12px; flex-direction: column; }
.b-strip.left { left: 0; }
.b-strip.right { right: 0; }
.bulb {
  display: block; width: 11px; height: 11px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, #fffbe8, #f6d27a 45%, #b8862a 80%);
  box-shadow: 0 0 6px 2px rgba(246, 210, 122, 0.85), 0 0 18px 4px rgba(246, 210, 122, 0.3);
  animation: chase 1.2s steps(1) infinite; animation-delay: calc(var(--i, 0) * -0.4s);
}
@keyframes chase { 0%, 33% { opacity: 1; } 34%, 100% { opacity: 0.28; box-shadow: none; } }
.marquee-top, .marquee-bottom { margin: 0; font: 700 11px/1 var(--mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.marquee-bottom { margin-top: 18px; color: var(--muted); }
@media (max-width: 520px) { .marquee-top, .marquee-bottom { letter-spacing: 0.16em; font-size: 10px; } .marquee { padding-inline: 22px; } }
.letterboard {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.35em;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(50% - 2px), rgba(22, 12, 9, 0.12) calc(50% - 2px) 50%),
    linear-gradient(180deg, #fffaf0, #f2e4c4);
  box-shadow: 0 0 0 2px #1d110c, 0 0 50px rgba(255, 244, 214, 0.35), inset 0 0 30px rgba(180, 140, 70, 0.35);
  font: 400 clamp(52px, 12.5vw, 150px)/1 var(--display); text-transform: uppercase; color: var(--ink);
}
.letterboard .word { display: inline-flex; gap: 0.04em; }
.letterboard .ch { display: inline-block; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transform-origin: 50% 0; }
.letterboard .word:last-child .ch { color: var(--red); }
.lede { font: italic 400 clamp(20px, 2.6vw, 28px)/1.3 var(--serif); color: var(--text); opacity: 0.85; margin: 0 auto 28px; max-width: 30ch; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; }
.stat b { font: 400 26px/1 var(--display); color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 13px; }
.now-stat { border-color: rgba(226, 58, 70, 0.5); }
.now-stat b { font-size: 14px; color: var(--red-2); animation: onair 1.4s ease-in-out infinite; }
.now-stat span { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--spring), filter 0.2s, background 0.2s, box-shadow 0.3s, border-color 0.2s;
}
.btn span { position: relative; z-index: 1; }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: 0; background: linear-gradient(100deg, transparent, rgba(255, 244, 214, 0.35), transparent); transform: skewX(-20deg); transition: left 0.7s var(--out); }
.btn:hover::before { left: 130%; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.big { height: 58px; padding: 0 30px; font-size: 16px; border-radius: 14px; }
.btn.primary {
  background: linear-gradient(180deg, #e3323f, #a50d22); color: #fff4e0; border-color: rgba(246, 210, 122, 0.55);
  box-shadow: 0 12px 30px -10px rgba(200, 16, 46, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover:not(:disabled) { box-shadow: 0 18px 40px -10px rgba(200, 16, 46, 1), 0 0 0 1px rgba(246, 210, 122, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.btn.ghost { background: rgba(14, 9, 7, 0.6); border-color: var(--line-2); color: var(--gold-2); }
.btn.ghost:hover { border-color: rgba(246, 210, 122, 0.6); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Add ---------- */
.search-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: end; }
@media (max-width: 720px) { .search-row { grid-template-columns: 1fr; } }
.name-field { display: block; }
.name-field > span { display: block; margin-bottom: 7px; font: 700 10px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.name-field input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(8, 5, 4, 0.75); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.name-field input:focus { border-color: rgba(246, 210, 122, 0.6); box-shadow: 0 0 0 4px rgba(233, 180, 76, 0.12); }
.name-field input::placeholder, .search-field input::placeholder { color: var(--faint); }
.search-field {
  position: relative; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 22px; border-radius: 16px;
  background: rgba(8, 5, 4, 0.85); border: 1px solid var(--line-2); transition: border-color 0.3s, box-shadow 0.3s;
}
.search-field:focus-within { border-color: rgba(246, 210, 122, 0.7); box-shadow: 0 0 0 4px rgba(233, 180, 76, 0.1), 0 20px 60px -20px rgba(246, 210, 122, 0.35); }
.search-field svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 400 clamp(22px, 3vw, 30px)/1 var(--serif); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(233, 180, 76, 0.25); border-top-color: var(--gold); animation: rot 0.7s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.search-status { min-height: 22px; margin: 16px 0 6px; color: var(--muted); font-size: 14px; }

/* Poster cards: lit display cases */
.results { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.result { position: relative; cursor: pointer; transition: transform 0.35s var(--out); }
.result .poster-box {
  position: relative; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #1a100d;
  box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.25), 0 0 0 5px #120a08, 0 0 0 6px rgba(233, 180, 76, 0.18), 0 22px 40px -16px rgba(0, 0, 0, 0.95);
  transition: box-shadow 0.35s;
}
.result img { width: 100%; height: 100%; object-fit: cover; }
.result .glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 244, 214, 0.3), transparent 55%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.result:hover .glare { opacity: 1; }
.result:hover .poster-box { box-shadow: 0 0 0 1px rgba(246, 210, 122, 0.9), 0 0 0 5px #120a08, 0 0 0 6px rgba(246, 210, 122, 0.6), 0 0 50px -6px rgba(246, 210, 122, 0.45), 0 30px 50px -20px rgba(0, 0, 0, 0.9); }
.result .add-chip {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 12px) scale(0.9); opacity: 0;
  padding: 8px 14px; border-radius: 8px; background: linear-gradient(180deg, #e3323f, #a50d22); color: #fff4e0; border: 1px solid rgba(246, 210, 122, 0.6);
  font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: transform 0.35s var(--spring), opacity 0.25s; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}
.result:hover .add-chip, .result:focus-visible .add-chip { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (hover: none) { .result .add-chip { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.result.in .add-chip { background: rgba(10, 6, 5, 0.9); color: var(--gold-2); border-color: var(--line-2); opacity: 1; transform: translate(-50%, 0) scale(1); }
.result.in { cursor: default; }
.result.in img { filter: grayscale(0.7) brightness(0.55); }
.result .r-title { margin-top: 12px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.result .r-year { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.result .r-genres { color: var(--faint); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result:focus-visible { outline: none; }
.result:focus-visible .poster-box { box-shadow: 0 0 0 3px var(--gold); }
.result.busy .poster-box::after { content: ""; position: absolute; inset: 0; background: rgba(6, 4, 5, 0.55); }
.result .imdb-chip { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 7px; border-radius: 4px; font: 800 11px/1 var(--mono); color: #000; background: #f5c518; }
.result .rank { position: absolute; top: 4px; right: 8px; z-index: 2; font: 400 32px/1 var(--deco); color: var(--gold-2); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px #000; }

.pot { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pot-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pot-head h3 { font: 400 26px/1 var(--deco); color: var(--cream); }
.count { font: 700 12px/1 var(--mono); color: var(--ink); background: var(--brass); padding: 6px 10px; border-radius: 99px; }
.count.bump { animation: bump 0.5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.6); } }
.pot-go { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--gold-2); text-decoration: none; transition: transform 0.3s var(--spring); }
.pot-go:hover { transform: translateX(4px); }
.pot-rail { list-style: none; margin: 0; padding: 6px 4px 8px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3a2a20 transparent; }
.chip { position: relative; flex: none; width: 104px; }
.chip img, .chip .ph { width: 104px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; background: #1a100d; box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.2), 0 10px 24px -10px rgba(0, 0, 0, 0.9); }
.chip .c-title { margin-top: 7px; font-size: 12px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chip .c-by { font-size: 11px; color: var(--faint); }
.chip.picked img { box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(246, 210, 122, 0.5); }
.chip .x { position: absolute; top: -7px; right: -7px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: #1d120e; color: var(--muted); font-size: 16px; line-height: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.3s var(--spring); }
.chip:hover .x, .chip .x:focus-visible { opacity: 1; transform: scale(1); }
@media (hover: none) { .chip .x { opacity: 1; transform: scale(1); } }
.chip .x:hover { background: var(--red); color: #fff; }
.chip.pop { animation: chipPop 0.7s var(--spring); }
@keyframes chipPop { from { opacity: 0; transform: translateY(-30px) scale(0.4) rotate(-10deg); } }
.chip.leaving { animation: chipOut 0.35s ease-in forwards; }
@keyframes chipOut { to { opacity: 0; transform: scale(0.3) rotate(12deg); } }
.flyer { position: fixed; z-index: 70; border-radius: 6px; object-fit: cover; pointer-events: none; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); }

/* ---------- Spin: the screen, the auditorium, the marquee button ---------- */
.spin-page { position: relative; padding-top: 30px; }
@media (min-width: 641px) { .spin-page { --tw: clamp(112px, 17vh, 168px); } }
.spin-head { margin-bottom: 20px; }
.spin-head .title { font-size: clamp(38px, 5.4vw, 64px); }
.spin-count { display: inline-flex; margin-top: 14px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(10, 6, 5, 0.75); font: 700 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.now-card {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 16px; margin: 0 auto 28px; max-width: 760px;
  border: 1px solid rgba(226, 58, 70, 0.5); border-radius: var(--radius); background: linear-gradient(100deg, rgba(109, 12, 20, 0.6), rgba(14, 9, 7, 0.85) 60%);
  box-shadow: 0 30px 60px -30px rgba(200, 16, 46, 0.6);
}
.now-card img { width: 64px; height: 96px; object-fit: cover; border-radius: 5px; flex: none; background: #1a100d; }
.now-card .nc-text { flex: 1; min-width: 0; }
.now-card .eyebrow { margin-bottom: 6px; color: var(--red-2); }
.now-card h3 { font: 400 28px/1.05 var(--deco); }
.now-card .meta { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
@media (max-width: 560px) { .now-card { flex-wrap: wrap; } .now-card .btn { width: 100%; } }

.reel {
  position: relative; z-index: 1; height: calc(var(--tw) * 1.5 + 48px); margin: 0 calc(50% - 50vw); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.05), rgba(255, 244, 214, 0.09) 50%, rgba(255, 244, 214, 0.05));
  border-block: 6px solid #0b0706;
  box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.3), 0 0 120px -30px rgba(255, 244, 214, 0.3);
  transition: box-shadow 0.5s;
}
.reel.spinning { box-shadow: 0 0 0 1px rgba(246, 210, 122, 0.6), 0 0 160px -20px rgba(255, 244, 214, 0.45); }
.reel-strip { position: absolute; top: 24px; left: 0; display: flex; gap: 14px; will-change: transform; }
.tile { position: relative; flex: none; width: var(--tw); aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #1a100d; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9); transition: transform 0.5s var(--spring), box-shadow 0.5s, filter 0.5s; }
.tile img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.tile .t-name { position: absolute; z-index: 2; inset: auto 0 0; padding: 26px 10px 9px; font-size: 12px; font-weight: 700; line-height: 1.2; background: linear-gradient(transparent, rgba(0, 0, 0, 0.88)); }
.tile .t-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 400 18px/1.1 var(--deco); }
.reel.landed .tile:not(.win) { filter: brightness(0.3) saturate(0.5); }
.tile.win { transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 3px var(--gold-2), 0 0 60px rgba(255, 244, 214, 0.55), 0 20px 40px rgba(0, 0, 0, 0.8); }
.reel-fade { position: absolute; top: 0; bottom: 0; width: min(26vw, 300px); z-index: 2; pointer-events: none; }
.reel-fade.l { left: 0; background: linear-gradient(90deg, var(--bg) 8%, transparent); }
.reel-fade.r { right: 0; background: linear-gradient(270deg, var(--bg) 8%, transparent); }
.reel-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; z-index: 4; background: linear-gradient(180deg, var(--red-2), #ff8a94 50%, var(--red-2)); box-shadow: 0 0 14px 2px rgba(226, 58, 70, 0.8); }
.reel-marker i { position: absolute; left: 50%; width: 24px; height: 16px; margin-left: -12px; background: var(--brass); filter: drop-shadow(0 0 6px rgba(246, 210, 122, 0.8)); }
.reel-marker i:first-child { top: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.reel-marker i:last-child { bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.reel-empty { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 400 24px var(--deco); color: var(--faint); }


/* The screen: black masking with brass hairlines, a lit surface, light falling on the floor */
.auditorium { position: relative; }
.screen {
  position: relative; z-index: 2; padding: 12px; border-radius: 10px; background: #040303;
  box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.4), 0 0 0 7px #0c0706, 0 0 0 8px rgba(233, 180, 76, 0.18), 0 40px 120px -40px rgba(255, 244, 214, 0.35);
  transition: box-shadow 0.6s;
}
.screen::after { content: ""; position: absolute; left: 8%; right: 8%; top: 100%; height: 140px; pointer-events: none; background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(255, 244, 214, 0.1), transparent 70%); transition: opacity 0.6s; }
.screen:has(.reel.spinning) { box-shadow: 0 0 0 1px rgba(246, 210, 122, 0.7), 0 0 0 7px #0c0706, 0 0 0 8px rgba(246, 210, 122, 0.3), 0 40px 160px -30px rgba(255, 244, 214, 0.55); }
.screen .reel {
  margin: 0; height: calc(var(--tw) * 1.5 + 40px); border: 0; border-radius: 4px;
  background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(255, 250, 235, 0.16), rgba(255, 244, 214, 0.04) 75%), #0b0807;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
}
.screen .reel.spinning { box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6); }
.screen .reel-strip { top: 20px; }
.screen .reel-fade { width: min(16%, 180px); }
.screen .reel-fade.l { background: linear-gradient(90deg, #040303 4%, transparent); }
.screen .reel-fade.r { background: linear-gradient(270deg, #040303 4%, transparent); }

/* The house: three rows of seat backs, nearer rows bigger and darker, tops rim-lit by the screen */
.house-floor { position: relative; z-index: 1; height: 150px; margin: 0 calc(50% - 50vw); pointer-events: none; }
.seats { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.seats .row { position: absolute; left: 0; right: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 88'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235c1119'/%3E%3Cstop offset='.45' stop-color='%232b070c'/%3E%3Cstop offset='1' stop-color='%23090203'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 88V30C8 15 18 8 31 8h22c13 0 23 7 23 22v58z' fill='url(%23g)'/%3E%3Cpath d='M12 30c0-12 8-18 19-18h22c11 0 19 6 19 18' fill='none' stroke='%23ffd9a8' stroke-opacity='.4' stroke-width='2'/%3E%3Cpath d='M14 46h56' stroke='%23000' stroke-opacity='.35' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: repeat-x; }
.seats .r1 { top: 16px; height: 30px; background-size: 36px 30px; background-position: center top; filter: brightness(1.25); }
.seats .r2 { top: 38px; height: 46px; background-size: 52px 46px; background-position: calc(50% + 26px) top; filter: brightness(0.95); }
.seats .r3 { top: 72px; height: 78px; background-size: 76px 78px; background-position: center top; filter: brightness(0.7); }
/* the projector beam: from behind the Spin sign, over the seats, onto the screen */
.beam {
  position: absolute; z-index: 2; left: 50%; top: 0; bottom: -64px; width: min(1200px, 100vw - 40px - var(--drape) * 2); transform: translateX(-50%);
  clip-path: polygon(0 0, 100% 0, 51.6% 100%, 48.4% 100%);
  background: linear-gradient(0deg, rgba(255, 244, 214, 0.3), rgba(255, 244, 214, 0.07) 55%, rgba(255, 244, 214, 0.04));
  mix-blend-mode: screen; opacity: 0.45; transition: opacity 0.5s;
}
.is-spinning .beam { opacity: 1; animation: projector 0.14s steps(2) infinite; }
@keyframes projector { 50% { opacity: 0.82; } }

/* The Spin button: a little marquee sign, same family as the one on Home */
.spin-zone { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.spin-btn {
  position: relative; width: 320px; max-width: 100%; height: 112px; padding: 0; border: 0; border-radius: 18px;
  background: linear-gradient(180deg, #2a170f, #110907);
  box-shadow: 0 0 0 2px #3a2410, 0 0 0 6px #b8862e, 0 0 0 8px #3a2410, 0 0 60px -12px rgba(246, 210, 122, 0.45), 0 30px 50px -20px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--spring), box-shadow 0.3s, filter 0.3s;
}
.spin-btn .bulbs { inset: 10px; }
.spin-btn .b-strip.top, .spin-btn .b-strip.bottom { height: 9px; }
.spin-btn .b-strip.left, .spin-btn .b-strip.right { width: 9px; top: 20px; bottom: 20px; }
.spin-btn .bulb { width: 9px; height: 9px; }
.spin-face {
  position: absolute; inset: 27px 30px; border-radius: 6px; display: grid; place-items: center;
  background: repeating-linear-gradient(180deg, transparent 0 calc(50% - 1px), rgba(22, 12, 9, 0.1) calc(50% - 1px) 50%), linear-gradient(180deg, #fffaf0, #efe0bd);
  box-shadow: 0 0 0 2px #1d110c, 0 0 30px rgba(255, 244, 214, 0.35), inset 0 0 18px rgba(180, 140, 70, 0.35);
}
.spin-label { font: 400 38px/1 var(--display); letter-spacing: 0.18em; padding-left: 0.18em; text-transform: uppercase; color: var(--red); }
.spin-btn:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 0 0 2px #3a2410, 0 0 0 6px #e2ad45, 0 0 0 8px #3a2410, 0 0 90px -8px rgba(246, 210, 122, 0.6), 0 34px 54px -20px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(0, 0, 0, 0.7); }
.spin-btn:hover:not(:disabled) .bulb { animation-duration: 0.6s; }
.spin-btn:active:not(:disabled) { transform: translateY(1px) scale(0.98); }
.spin-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; }
.spin-btn:disabled { cursor: default; filter: saturate(0.3) brightness(0.6); }
.spin-btn:disabled .bulb { animation: none; opacity: 0.3; box-shadow: none; }
.is-spinning .spin-btn:disabled { filter: none; }
.is-spinning .spin-btn .bulb { animation: chase 0.3s steps(1) infinite; animation-delay: calc(var(--i, 0) * -0.1s); opacity: 1; }
.spin-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; text-align: center; min-height: 21px; }
@media (max-width: 640px) {
  .house-floor { height: 112px; }
  .seats .r1 { top: 12px; height: 22px; background-size: 26px 22px; }
  .seats .r2 { top: 28px; height: 34px; background-size: 38px 34px; background-position: calc(50% + 19px) top; }
  .seats .r3 { top: 52px; height: 60px; background-size: 58px 60px; }
  .spin-btn { width: 270px; height: 100px; }
  .spin-face { inset: 24px 26px; }
  .spin-label { font-size: 32px; }
}

/* ---------- Watched ---------- */
.watched-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 30px 22px; perspective: 1000px; }
@media (max-width: 520px) { .watched-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; } }
.w-card .poster-box { position: relative; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: #1a100d; box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.35), 0 0 0 6px #120a08, 0 0 0 7px rgba(233, 180, 76, 0.25), 0 24px 40px -16px rgba(0, 0, 0, 0.9); }
.w-card img { width: 100%; height: 100%; object-fit: cover; }
/* Score on a little ticket stub */
.w-card .mine {
  position: absolute; right: 8px; bottom: 10px; padding: 7px 12px 7px 14px; border-radius: 4px;
  background: var(--cream); color: var(--red); font: 400 28px/1 var(--display); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  -webkit-mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000); mask: radial-gradient(circle 5px at 0 50%, transparent 98%, #000);
}
.w-card .mine small { font: 700 11px var(--mono); color: #7a6a58; margin-left: 2px; }
.w-card .mine.none { font: 700 11px/1.2 var(--mono); color: #7a6a58; padding: 8px 10px 8px 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.w-card .w-title { margin-top: 14px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.w-card .w-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.w-card .votes { color: var(--faint); font-size: 12px; margin-top: 2px; }
.w-card .qr-btn { margin-top: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font-size: 12px; font-weight: 700; color: var(--gold-2); transition: background 0.2s, transform 0.3s var(--spring); }
.w-card .qr-btn:hover { background: rgba(233, 180, 76, 0.1); transform: translateY(-2px); }
.w-card.fresh .poster-box { box-shadow: 0 0 0 2px var(--gold-2), 0 0 0 6px #120a08, 0 0 0 7px var(--gold), 0 0 50px rgba(246, 210, 122, 0.45); }
.feedback { margin-top: 70px; }
.feedback-list { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 16px; }
.feedback-list li { break-inside: avoid; margin-bottom: 16px; padding: 18px 18px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.feedback-list li::before { content: "“"; position: absolute; top: -10px; left: 12px; font: 400 54px/1 var(--deco); color: var(--red-2); opacity: 0.8; }
.feedback-list .f-text { font: italic 400 20px/1.35 var(--serif); }
.feedback-list .f-meta { margin-top: 10px; color: var(--faint); font: 700 10px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Home: popular grid ---------- */
.featured { position: relative; z-index: 1; padding: 30px 0 20px; scroll-margin-top: 110px; }
.featured-head { margin-bottom: 20px; }
.genre-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 14px; scrollbar-width: none; }
.genre-bar::-webkit-scrollbar { display: none; }
.genre-bar button {
  flex: none; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(10, 6, 5, 0.7);
  font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s, background 0.25s, transform 0.35s var(--spring);
}
.genre-bar button:hover { color: var(--text); transform: translateY(-2px); }
.genre-bar button[aria-selected="true"] { background: var(--brass); color: var(--ink); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(233, 180, 76, 0.8); }
.featured-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 20px; min-height: 300px; }
@media (max-width: 520px) { .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } .featured-grid .r-title { font-size: 12px; } .result .rank { font-size: 24px; } }
.skeleton { aspect-ratio: 2 / 3; border-radius: 6px; background: linear-gradient(100deg, #150d0b 30%, #22150f 50%, #150d0b 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--out), transform 0.9s var(--out); }
[data-reveal].revealed { opacity: 1; transform: none; }
.featured-grid .result { opacity: 0; transform: translateY(36px); transition: opacity 0.7s var(--out), transform 0.8s var(--spring); transition-delay: var(--d, 0ms); }
.featured-grid .result.revealed { opacity: 1; transform: none; }


/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; overflow-x: hidden; overflow-y: auto; background: rgba(4, 3, 3, 0.975); }
.overlay.closing { animation: fadeOut 0.3s ease-in forwards; }
@keyframes fadeOut { to { opacity: 0; } }

/* Reveal: house lights down, letterbox, two spotlights, curtains part on the poster */
.bars i { position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 0; animation: barIn 0.7s var(--out) both; }
.bars i:first-child { top: 0; transform-origin: top; }
.bars i:last-child { bottom: 0; transform-origin: bottom; }
@keyframes barIn { from { transform: scaleY(0); } }
.spot {
  position: fixed; bottom: -12vh; width: 46vw; height: 150vh; pointer-events: none; z-index: 0;
  background: linear-gradient(0deg, rgba(255, 244, 214, 0.2), rgba(255, 244, 214, 0.04) 70%, transparent);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  transform-origin: 50% 100%; filter: blur(4px); opacity: 0;
  animation: spotIn 0.6s ease-out 0.15s forwards, sweep 5s ease-in-out 0.15s infinite alternate;
}
.spot.l { left: -6vw; --from: 28deg; --to: 8deg; }
.spot.r { right: -6vw; --from: -28deg; --to: -8deg; }
@keyframes spotIn { to { opacity: 1; } }
@keyframes sweep { from { transform: rotate(var(--from)); } to { transform: rotate(var(--to)); } }
.reveal-card { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; width: min(900px, 100%); }
.reveal-poster { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px #b8862e, 0 0 0 8px #120a08, 0 0 0 9px rgba(233, 180, 76, 0.4), 0 0 80px rgba(255, 244, 214, 0.25), 0 30px 60px rgba(0, 0, 0, 0.8); }
.reveal-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #1a100d; }
.pc { position: absolute; top: 0; bottom: 0; width: 51%; z-index: 2; background: url("/art/velvet.webp") left center / 200% 100% no-repeat; box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); animation: part 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.45s both; }
.pc.l { left: 0; transform-origin: left center; }
.pc.r { right: 0; transform-origin: right center; background-position: right center; }
@keyframes part { to { transform: scaleX(0.05); } }
.reveal-info { min-width: 0; }
.slam { margin: 0 0 12px; font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.22em; color: var(--red-2); }
.reveal-info h2 { font: 400 clamp(38px, 6vw, 70px)/1 var(--deco); color: var(--cream); text-wrap: balance; text-shadow: 0 0 40px rgba(255, 244, 214, 0.2); }
.reveal-info h2 .ch { display: inline-block; white-space: pre; }
.reveal-info .meta { color: var(--muted); margin: 14px 0 18px; font-family: var(--mono); font-size: 13px; }
.genres { display: flex; flex-wrap: wrap; gap: 8px; }
.genre { padding: 7px 13px; border-radius: 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--cream); color: var(--ink); }
.score { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.score .num { font: 400 64px/0.9 var(--display); color: var(--gold-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(246, 210, 122, 0.35); }
.score .num small { font: 700 15px var(--mono); color: var(--muted); margin-left: 3px; text-shadow: none; }
.score .src { font: 800 12px/1 var(--mono); padding: 6px 8px; border-radius: 4px; background: #f5c518; color: #000; }
.score .stars { display: flex; gap: 3px; }
.score .stars i { width: 18px; height: 18px; display: block; background: #3a2b22; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.score .stars i.on { background: var(--gold-2); }
.score .stars i.half { background: linear-gradient(90deg, var(--gold-2) 50%, #3a2b22 50%); }
.added { color: var(--faint); font-size: 13px; margin: 16px 0 0; min-height: 1em; }
.actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .reveal-card { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .reveal-poster { width: min(52vw, 220px); margin: 0 auto; }
  .genres, .actions, .score { justify-content: center; }
  .spot { width: 80vw; }
}

/* Done: the QR on an admit-one ticket */
.done-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; width: min(980px, 100%); }
@media (max-width: 800px) { .done-card { grid-template-columns: 1fr; gap: 24px; text-align: center; } .done-card .actions, .live { justify-content: center; } }
.qr-side { display: flex; flex-direction: column; align-items: center; }
.ticket {
  position: relative; display: flex; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #efe0bd); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(246, 210, 122, 0.4);
  -webkit-mask: radial-gradient(circle 13px at calc(100% - 78px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at calc(100% - 78px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 13px at calc(100% - 78px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 13px at calc(100% - 78px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(200, 16, 46, 0.35); border-radius: 8px; pointer-events: none; }
.ticket-main { padding: 22px 22px 20px; }
.t-label { margin: 0 0 12px; text-align: center; font: 400 15px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.ticket-stub { width: 78px; border-left: 2px dashed rgba(22, 12, 9, 0.3); display: flex; align-items: center; justify-content: center; gap: 14px; writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 0; }
.ticket-stub span { font: 400 22px/1 var(--deco); color: var(--red); }
.ticket-stub b { font: 700 12px/1 var(--mono); letter-spacing: 0.12em; color: #7a6a58; }
.qr { width: min(280px, 58vw); aspect-ratio: 1; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr rect { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.qr.draw rect { animation: qrPop 0.5s var(--spring) backwards; animation-delay: var(--d); }
@keyframes qrPop { from { transform: scale(0); fill: var(--red); } 60% { fill: var(--red); } }
.qr-url { margin: 16px 0 0; font: 500 12px/1.3 var(--mono); color: var(--muted); word-break: break-all; text-align: center; max-width: 360px; }
.done-info .slam { color: var(--gold); }
.done-info h2 { font: 400 clamp(44px, 6vw, 76px)/1 var(--deco); color: var(--cream); }
.done-info .sub { margin-top: 12px; }
.live { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.live > div { display: flex; flex-direction: column; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 9, 7, 0.7); min-width: 96px; }
.live b { font: 400 46px/1 var(--display); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.live small { font: 700 13px var(--mono); color: var(--muted); }
.live-avg { flex-direction: row !important; flex-wrap: wrap; align-items: baseline; gap: 2px; min-width: 150px !important; border-color: rgba(246, 210, 122, 0.5) !important; }
.live-avg b { font-size: 62px; }
.live span { width: 100%; margin-top: 6px; font: 700 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.live b.bump { animation: bump 0.55s var(--spring); }
.spread { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; align-items: end; height: 70px; margin-top: 18px; max-width: 420px; }
@media (max-width: 800px) { .spread { margin-inline: auto; } }
.spread i { position: relative; display: block; height: 100%; border-radius: 4px 4px 2px 2px; background: rgba(246, 210, 122, 0.07); }
.spread i::before { content: ""; position: absolute; inset: auto 0 0; height: var(--h, 0%); border-radius: inherit; background: linear-gradient(180deg, var(--gold-2), var(--red)); transition: height 0.7s var(--spring); }
.spread i::after { content: attr(data-n); position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font: 700 10px var(--mono); color: var(--faint); }

/* ---------- Rate page (phones) ---------- */
body.solo .links, body.solo .nav-right .host-badge { display: none; }
.rate-page { position: relative; min-height: calc(100vh - 110px); display: grid; place-items: center; padding: 70px 0 40px; }
.rate-bg { position: fixed; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2) brightness(0.35); opacity: 0; transition: opacity 1s; }
.rate-bg.on { opacity: 1; }
.rate-wrap { width: min(560px, 100%); }
.rate-box { padding: 26px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(30, 18, 14, 0.94), rgba(14, 9, 7, 0.96)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8); }
.rate-poster { width: 130px; margin: -80px auto 18px; aspect-ratio: 2 / 3; border-radius: 5px; overflow: hidden; background: #1a100d; box-shadow: 0 0 0 2px #b8862e, 0 0 0 6px #120a08, 0 24px 50px rgba(0, 0, 0, 0.8); }
.rate-poster img { width: 100%; height: 100%; object-fit: cover; }
.rate-box h1 { text-align: center; font: 400 clamp(30px, 8vw, 46px)/1.05 var(--deco); text-wrap: balance; }
.rate-box h1 span { color: var(--gold-2); }
.rate-box .meta { text-align: center; color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.rate-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; margin-top: 26px; }
.rate-scale button {
  aspect-ratio: 1 / 1.3; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(8, 5, 4, 0.7);
  font: 400 26px/1 var(--display); color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.35s var(--spring), box-shadow 0.3s;
}
.rate-scale button.lit { background: linear-gradient(180deg, #e3323f, #a50d22); color: #fff4e0; border-color: rgba(246, 210, 122, 0.5); }
.rate-scale button.chosen { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 2px var(--gold-2), 0 14px 26px -8px rgba(200, 16, 46, 0.9); }
.rate-scale button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .rate-scale { grid-template-columns: repeat(5, 1fr); } }
.rate-word { margin: 18px 0 10px; text-align: center; font: 400 24px/1 var(--deco); color: var(--gold-2); min-height: 24px; }
.rate-word.pop { animation: wordPop 0.4s var(--spring); }
@keyframes wordPop { from { transform: scale(0.6); opacity: 0; } }
.rate-box .q { display: block; margin: 24px 0 8px; font: 400 22px/1.2 var(--deco); color: var(--cream); }
.rate-box textarea {
  width: 100%; min-height: 96px; resize: vertical; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(8, 5, 4, 0.7); color: var(--text); font: 400 16px/1.4 var(--sans); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.rate-box textarea:focus { border-color: rgba(246, 210, 122, 0.6); box-shadow: 0 0 0 4px rgba(233, 180, 76, 0.1); }
.rate-box .anon { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--faint); font-size: 12px; }
.rate-box .anon svg { width: 14px; height: 14px; flex: none; }
.rate-box .btn.primary { width: 100%; height: 56px; margin-top: 18px; font-size: 16px; }
.thanks { text-align: center; }
.thanks .big { font: 400 clamp(52px, 15vw, 90px)/1 var(--deco); color: var(--gold-2); text-shadow: 0 0 30px rgba(246, 210, 122, 0.45), 0 4px 0 #6b4a12; }
.thanks .yours { margin: 14px 0 0; color: var(--muted); }
.thanks .yours b { color: var(--text); }
.thanks .crowd {
  display: inline-flex; flex-direction: column; align-items: center; margin-top: 22px; padding: 18px 28px; border-radius: 6px; background: var(--cream); color: var(--ink);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.thanks .crowd b { font: 400 64px/1 var(--display); color: var(--red); }
.thanks .crowd span { font: 700 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #7a6a58; margin-top: 8px; }
.thanks .again { margin-top: 22px; background: none; border: 0; color: var(--gold-2); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.closed-note { text-align: center; padding: 30px 10px; }
.closed-note h1 { font: 400 36px/1.1 var(--deco); }
.closed-note p { color: var(--muted); }

/* ---------- FX ---------- */
.flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(circle, #fffdf5 0, #fff4d6 45%, rgba(255, 244, 214, 0.5) 100%); opacity: 0; }
.flash.go { animation: flash 0.8s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
body.shake main { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(3px, -1px); } 30%, 50%, 70% { transform: translate(-5px, 2px); } 40%, 60% { transform: translate(5px, -2px); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 30px) scale(0.9); opacity: 0; pointer-events: none;
  padding: 13px 20px; border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  font-size: 14px; font-weight: 700; transition: opacity 0.25s, transform 0.5s var(--spring); max-width: calc(100vw - 32px);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.error { background: #ffd9dc; color: #6d0c14; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .wall-row, .bulb, .beam { animation: none; }
}

/* ---------- Links to and from the Ideas page ---------- */
.ideas-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid rgba(246, 210, 122, 0.35); transition: color 0.2s, border-color 0.2s; }
.ideas-link span { transition: transform 0.3s var(--spring); }
.ideas-link:hover { color: var(--cream); border-color: var(--gold-2); }
.ideas-link:hover span { transform: translateX(4px); }
.ideas-pot { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 18px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(10, 6, 5, 0.75); font: 700 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.ideas-pot b { font: 400 18px/1 var(--display); letter-spacing: 0; color: var(--gold-2); }
.ideas-pot:hover { border-color: rgba(246, 210, 122, 0.6); color: var(--cream); }
.page[data-page="ideas"] { padding-top: 40px; }

/* ---------- Home: the backdrop (poster wall, sunburst, light) ends softly at the bottom of the hero ---------- */
/* Clip vertically only, so the wall still runs full width under the curtains, and fade it into the house. */
.page[data-page="home"] .home-top { overflow: visible clip; }
.page[data-page="home"] .home-top::after {
  content: ""; position: absolute; left: -50vw; right: -50vw; bottom: 0; height: 260px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 4, 5, 0), rgba(6, 4, 5, 0.85) 60%, #060405);
}
@media (max-width: 520px) { .ideas-link { font-size: 10.5px; letter-spacing: 0.07em; gap: 6px; } }
