:root {
  color-scheme: light;
  --paper: #fff8ee;
  --ink: #351b29;
  --red: #bd1d3d;
  --line: #e8c9bc;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; border-top: 6px solid var(--red); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid #222053; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.topbar { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: bold 24px/1 var(--serif); letter-spacing: -.06em; white-space: nowrap; }
.wordmark i { font-weight: normal; color: var(--red); }
.brand-icon { width: 35px; aspect-ratio: 1; background: var(--red); color: #fff6eb; border-radius: 9px; display: grid; place-items: center; font: 14px/1 system-ui; padding-left: 2px; transform: rotate(-8deg); }
.progress-label { display: flex; gap: 7px; align-items: center; padding: 9px 13px; border: 1px solid #e8c2b9; border-radius: 100px; font-size: .875rem; white-space: nowrap; }
.progress-label span { color: var(--red); }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 460px; display: grid; grid-template-columns: 53% 47%; align-items: center;
  background: #ffebe5; border: 1px solid #e8b3ab; border-radius: 30px;
}
.hero::before { content: ""; z-index: 1; position: absolute; inset: 12px; pointer-events: none; border: 1px solid #d99083; border-radius: 22px; }
.hero-copy { position: relative; z-index: 2; padding: 50px 0 50px clamp(36px, 5.3vw, 75px); }
.eyebrow { font-size: .875rem; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; margin: 0; color: #99243b; }
.eyebrow span { margin-right: 5px; }
h1, h2 { font-family: var(--serif); letter-spacing: -.062em; }
h1 { margin: 14px 0 0; font-size: clamp(3rem, 6.3vw, 6rem); font-weight: 700; line-height: .96; }
h1 em { display: block; color: var(--red); font-weight: 400; }
.intro { margin: 22px 0 25px; max-width: 325px; font-size: 1.075rem; line-height: 1.55; }
.primary { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff9f3; font-weight: 730; text-decoration: none; border: 1px solid var(--red); border-radius: 100px; padding: 12px 21px; min-height: 46px; cursor: pointer; transition: background .2s, transform .2s; }
.primary:hover { background: #9c1531; transform: translateY(-2px); }
.hero-art {
  position: absolute; z-index: 0; inset: 0 0 0 42%;
  background: url(hero.webp) center / cover no-repeat;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 88%, transparent), linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.hero-star { position: absolute; color: var(--red); z-index: 1; pointer-events: none; }
.star-a { right: 27px; top: 16px; font-size: 31px; }
.star-b { right: 39%; bottom: 18px; font-size: 35px; }
.calendar { padding: 49px 0 38px; scroll-margin-top: 22px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(2.4rem, 4vw, 3.75rem); margin: 4px 0 0; line-height: 1; }
.grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; }
.door {
  --pale: #fff4e5; position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 1.2; min-width: 0; border: 1px solid var(--deep);
  border-radius: 16px; background: var(--tile); color: var(--pale);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 3px 0 var(--deep); transition: transform .18s, box-shadow .18s;
}
.door-cover, .door-reveal { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.door-cover { z-index: 1; perspective: 540px; }
.door-sash { position: absolute; inset-block: 0; width: 50%; padding: 6px; background: var(--tile); border: 2px solid var(--deep); box-shadow: inset 0 0 0 1px #fff3da88; backface-visibility: hidden; }
.door-sash-left { left: 0; border-radius: 14px 0 0 14px; transform-origin: left center; }
.door-sash-right { right: 0; border-radius: 0 14px 14px 0; transform-origin: right center; }
.door-panes { position: absolute; inset: 6px; border: 1px solid #fff3daaa; border-radius: 5px; background: linear-gradient(147deg,#ffffff28,transparent 58%,#16071933), var(--pattern), var(--tile); background-blend-mode: normal, soft-light, normal; box-shadow: inset 0 0 6px #270d2466; }
.door-panes::before, .door-panes::after { content: ""; position: absolute; background: var(--tile); box-shadow: 0 0 0 1px #fff3da92; }
.door-panes::before { width: 3px; inset-block: 0; left: calc(50% - 1.5px); }
.door-panes::after { height: 3px; inset-inline: 0; top: calc(50% - 1.5px); }
.door-handle { position: absolute; width: 3px; height: 13px; top: 57%; background: #ffe083; border-radius: 3px; box-shadow: 0 0 0 1px #59341b; }
.door-sash-left .door-handle { right: 5px; }
.door-sash-right .door-handle { left: 5px; }
.door-labels { position: absolute; inset: 0; display: grid; place-items: center; }
.door-num { background: var(--tile); border: 1px solid var(--deep); border-radius: 10px; padding: 0 .16em .08em; box-shadow: 0 2px 6px #240d2a33; }
.door.is-opening .door-sash { transition: transform 540ms cubic-bezier(.3,.08,.2,1); }
.door.is-opening .door-labels { transition: opacity 160ms ease; }
.door[data-opened="true"] .door-sash-left { transform: rotateY(-86deg); }
.door[data-opened="true"] .door-sash-right { transform: rotateY(86deg); }
.door[data-opened="true"] .door-labels { opacity: 0; }
.door-reveal { visibility: hidden; overflow: hidden; background: #351b29; box-shadow: inset 6px 0 10px #15061180; }
.door[data-opened="true"] .door-reveal { visibility: visible; }
.door-poster { display: block; width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; }
.door-date, .door-checkmark { position: absolute; z-index: 1; display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 6px; background: #261321df; color: #fff8ee; font-size: .79rem; font-weight: 750; }
.door-date { left: 7px; top: 7px; }
.door-checkmark { right: 7px; top: 7px; background: #236657; }
.door-checkmark[hidden] { display: none; }
.door:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 8px 0 var(--deep); }
.door:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--deep); }
.cherry { --tile: #c61f40; --deep: #9a1933; }
.pine { --tile: #236657; --deep: #184c43; }
.pink { --tile: #ffbbcf; --deep: #d586a0; --pale: #661e43; }
.gold { --tile: #ffc84e; --deep: #d69a24; --pale: #55262a; }
.plum { --tile: #5d366b; --deep: #482852; }
.mint { --tile: #ace3c4; --deep: #6eae9c; --pale: #164a42; }
.stripe { --pattern: repeating-linear-gradient(45deg, transparent 0 12px, #ffffff60 12px 14px, transparent 14px 22px); }
.dots { --pattern: radial-gradient(circle, #fff8dc9c 1.2px, transparent 1.6px) 0 0 / 12px 12px; }
.rays { --pattern: repeating-conic-gradient(from 7deg at 50% 54%, transparent 0 15deg, #fff8d94d 15deg 30deg); }
.door-num { font: bold clamp(2.5rem, 5.7vw, 4.65rem)/1 var(--serif); letter-spacing: -.085em; font-variant-numeric: lining-nums; }
.door-decoration { position: absolute; font-size: clamp(.85rem, 2vw, 1.5rem); line-height: 1; }
.door-decoration:first-child { left: 13px; top: 13px; }
.door-decoration:last-child { right: 13px; bottom: 13px; }
.footer { display: flex; justify-content: center; gap: 12px; color: #7e3547; border-top: 1px solid var(--line); padding: 24px 0 30px; font: italic 1.25rem var(--serif); }
dialog { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 16px; border: 0; color: var(--ink); background: transparent; overflow: hidden; }
dialog[open] { display: grid; place-items: center; }
dialog::backdrop { background: #3d142bc2; }
body:has(dialog[open]) { overflow: hidden; }
.ticket { position: relative; width: min(516px, 100%); max-height: 100%; overflow: auto; border: 1px solid #e09ba7; border-radius: 24px; background: var(--paper); box-shadow: 0 18px 90px #360d3770; }
.close { position: absolute; z-index: 2; top: 12px; right: 12px; cursor: pointer; background: #fff7ec; color: var(--ink); width: 44px; height: 44px; border-radius: 50%; border: 1px solid #6f2744; font-size: 28px; line-height: 1; }
.ticket-body { padding: 25px 32px 32px; }
.ticket-body h2 { font-size: clamp(2.1rem, 6vw, 3.25rem); margin: 7px 0 0; line-height: 1.08; }
.film-meta { margin: 8px 0 0; color: #743b4f; font-weight: 650; }
.film-description { margin: 15px 0 21px; line-height: 1.6; }
#watched[aria-pressed="true"] { background: #236657; border-color: #236657; }
#fireworks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
@media (max-width: 940px) { .hero { min-height: 410px; } .wrap { width: calc(100% - 44px); } }
@media (min-width: 691px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 30px); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 38px 28px 0; }
  h1 { font-size: clamp(2.75rem, 10.1vw, 4.6rem); }
  .hero-art { position: relative; inset: auto; min-height: clamp(200px, 54vw, 315px); background-size: contain; }
  .star-b { display: none; }
  .grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
  .calendar { padding-top: 34px; }
  .door-decoration:first-child { left: 10px; top: 9px; }
  .door-decoration:last-child { right: 10px; bottom: 9px; }
}
@media (max-width: 410px) {
  .topbar { min-height: 67px; }
  .wordmark { gap: 7px; font-size: 19px; }
  .brand-icon { width: 30px; }
  .progress-label { gap: 5px; padding: 6px 8px; font-size: .75rem; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.availability { margin: 9px 0 0; color: #6a4551; line-height: 1.45; }
.door:disabled { cursor: default; color: var(--pale); transform: none; box-shadow: 0 3px 0 var(--deep); }
.door:disabled .door-num { font-weight: normal; }
.door:disabled .door-decoration:first-child { font: 750 .875rem/1 system-ui; }
.door[data-today="true"] { outline: 2px solid #aa5020; outline-offset: 3px; }
.door[data-today="true"] .door-decoration:first-child { font: 800 .75rem/1 system-ui; letter-spacing: .12em; }
.ticket { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); width: min(755px, 100%); background: #fff8ee; }
.poster { background: var(--tile, #c61f40); display: grid; align-items: center; margin: 0; padding: 21px; }
.poster img { display: block; width: 100%; max-height: 55vh; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 18px #30162350; }
.ticket-body { align-self: center; padding: 40px clamp(23px, 4vw, 37px); }
.ticket-body .eyebrow { padding-right: 26px; }
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 15px; }
.ticket-actions a { color: #823449; font-size: .875rem; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 575px) {
  .ticket { grid-template-columns: minmax(0,1fr); }
  .poster { padding: 16px 54px; justify-items: center; }
  .poster img { width: auto; max-width: 100%; max-height: min(30vh, 220px); }
  .ticket-body { padding: 20px; }
}
