:root {
  color-scheme: dark;
  --background: #160e10;
  --panel: #211417;
  --panel-deep: #1b1113;
  --light: #f7e9d8;
  --muted: #c5b2a7;
  --gold: #e3b978;
  --line: #493438;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--light); font: 400 1rem/1.6 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f5cd85; outline-offset: 4px; }
.shell { width: min(1192px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; top: .7rem; left: .7rem; padding: .5rem 1rem; z-index: 20; background: var(--panel); transform: translateY(-180%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 1; background: #170e10; border-bottom: 1px solid #56372d; }
.header-layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.65rem; min-height: 78px; align-items: center; }
.brand { display: inline-flex; gap: .75rem; align-items: center; width: fit-content; text-decoration: none; }
.brand-mark { position: relative; width: 43px; height: 43px; flex: 0 0 43px; overflow: hidden; border-radius: 50%; background: #100b0b; }
.brand-mark img { position: absolute; width: 66px; height: 66px; max-width: none; top: -1px; left: 50%; transform: translateX(-50%); }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.7rem/.93 var(--serif); color: var(--light); }
.brand small { margin-top: .36rem; color: var(--muted); font-size: .73rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 3.1rem); }
.site-nav a, .footer nav a { color: #e0cfc4; text-decoration: none; font-size: .91rem; }
.site-nav a:hover, .footer nav a:hover { color: var(--gold); }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: .7rem; min-height: 44px; padding: .55rem 1.12rem; border: 1px solid transparent; border-radius: 5px; background: none; color: var(--light); font-weight: 750; font-size: .875rem; line-height: 1.35; text-align: center; text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button-outline { border-color: #916d51; color: #efd1a5; }
.button-outline:hover { background: #4a2d23; border-color: var(--gold); }
.button-gold { border-color: #e7bc7c; background: #e8bc7c; color: #261814; }
.button-gold:hover { background: #f8d59b; border-color: #f8d59b; }
.button:disabled { background: #372b2d; border-color: #584447; color: #c5b2a7; cursor: default; }
.header-tickets { justify-self: end; padding-inline: 1.4rem; }

.hero { position: relative; display: grid; align-items: center; min-height: clamp(430px, 40vw, 600px); overflow: clip; background-color: #271319; background-image: linear-gradient(90deg, #1a1013f5 0%, #211015bd 33%, #2c131849 61%, #1c10120a 100%), linear-gradient(0deg, #1c1114a6 0%, transparent 36%), url('/assets/stage.webp'); background-size: cover; background-position: center, center, center 58%; border-bottom: 1px solid #553336; }
.hero-inner { position: relative; align-self: stretch; display: grid; align-items: center; padding-block: 4rem 5.1rem; }
.hero-copy { justify-self: start; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 .45rem; color: var(--gold); font-size: .77rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { display: inline-block; flex: 0 0 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .performance h3 { font-family: var(--serif); font-weight: 600; }
h1 { margin: 0 0 .55rem -.055em; font-size: clamp(5rem, 9.6vw, 9.2rem); line-height: .96; letter-spacing: -.042em; color: #fff0dc; }
h2 { margin: 0; font-size: clamp(3.2rem, 5.6vw, 5.1rem); line-height: .96; letter-spacing: -.034em; }
.hero-summary { margin: .85rem 0 1.9rem; color: #e8d6ca; font-size: clamp(1rem, 1.58vw, 1.24rem); line-height: 1.55; }
.hero .button { min-height: 51px; padding-inline: 1.2rem; }
.ticket-icon { position: relative; width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; transform: rotate(-12deg); }
.ticket-icon::after { position: absolute; content: ''; top: 0; bottom: 0; right: 4px; border-left: 1px dashed currentColor; }
.hero-venue { position: absolute; right: 0; bottom: 1.75rem; display: flex; align-items: center; gap: .6rem; color: #f7e4d4; font-size: .84rem; text-decoration: none; text-shadow: 0 1px 5px #140b0b; }
.hero-venue:hover { text-decoration: underline; }
.pin-icon { display: inline-block; position: relative; width: 11px; height: 11px; border: 1.5px solid var(--gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 3px 4px; }
.pin-icon::after { position: absolute; content: ''; width: 3px; height: 3px; top: 2.5px; left: 2.5px; border-radius: 50%; background: var(--gold); }

.section-space { padding-block: clamp(3.15rem, 6vw, 5.4rem); }
.schedule { background: radial-gradient(ellipse at 86% 0, #241217, transparent 56%), var(--background); }
.schedule-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.35rem; padding-bottom: 1.65rem; }
.filters { display: flex; align-items: center; gap: .25rem; border: 1px solid var(--line); padding: .24rem; border-radius: 7px; background: #1c1114; }
.filter { border: 1px solid transparent; border-radius: 4px; padding: .4rem .8rem; color: #dbc4bc; background: none; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.filter:hover { color: #ffe4c1; }
.filter[aria-pressed=true] { border-color: #674346; background: #42252a; color: #ffe4c1; }
.performance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.1vw, 1.65rem); }
.performance { display: flex; flex-direction: column; min-width: 0; position: relative; border: 1px solid #53383d; border-radius: 9px; overflow: hidden; background: var(--panel); }
.poster { display: block; position: relative; padding: 0; width: 100%; aspect-ratio: 1.46; border: 0; border-bottom: 1px solid #53383d; overflow: hidden; background: #2b191a; }
.poster:focus-visible { outline-offset: -5px; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.poster:hover img { transform: scale(1.035); }
.poster.fox img { object-position: center 47%; }
.poster.dream img { object-position: center 33%; }
.poster.snow img { object-position: center 46%; }
.age { display: inline-block; border: 1px solid #cfa370a6; border-radius: 4px; padding: .07rem .43rem; color: #ffebcf; background: #120b0ce8; font-size: .8rem; font-weight: 750; }
.poster .age { position: absolute; top: .68rem; right: .68rem; }
.performance-body { display: flex; flex-direction: column; flex: 1; padding: 1.22rem 1.23rem; }
.genre { margin: 0 0 .36rem; color: #e5b983; font-size: .875rem; }
.performance h3 { margin: 0 0 .55rem; font-size: clamp(1.98rem, 2.6vw, 2.7rem); line-height: 1; letter-spacing: -.018em; }
.show-link { font: inherit; padding: 0; color: inherit; background: none; border: 0; text-align: left; }
.show-link:hover { color: #fad8a9; }
.performance-body > p:not(.genre) { margin: 0 0 .95rem; color: var(--muted); min-height: 3.15em; font-size: .94rem; }
.date-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .72rem; margin: auto 0 .8rem; padding: .8rem 0 0; border-top: 1px solid #483137; color: #ead2bc; font-size: .875rem; }
.date-line time + time::before { content: '·'; display: inline-block; color: #b88d65; margin-right: .72rem; }
.performance-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; }
.price { color: #f2d1a3; font-size: .875rem; font-weight: 750; white-space: nowrap; }
.notice { margin: 0 0 1.15rem; padding: .6rem .82rem; border: 1px solid #61434a; border-radius: 5px; color: #e0c8b6; background: #2b1a20; font-size: .875rem; }
.schedule-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.ticket-info { margin: 1.15rem 0 0; max-width: 755px; color: var(--muted); font-size: .9rem; }
.ticket-info strong { display: block; margin-bottom: .12rem; color: #f2d1a3; }

.theatre { border-block: 1px solid var(--line); background: #211416; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .7fr); align-items: center; gap: 3.5rem; }
.about-copy { max-width: 570px; }
.about-copy p:not(.eyebrow) { color: var(--muted); margin: 1rem 0; }
.about-copy .about-lead { color: var(--light) !important; font-size: 1.15rem; }
.about-copy .button { margin-top: .55rem; }
.opening { display: grid; grid-template-columns: minmax(100px, 173px) 1fr; align-items: center; gap: 1.2rem; margin: 0; padding: 1rem; background: #2a1a1e; border: 1px solid var(--line); border-radius: 8px; }
.opening img { width: 100%; height: auto; border-radius: 5px; }
.opening figcaption strong, .opening figcaption span { display: block; }
.opening figcaption strong { color: var(--light); font: 600 1.85rem/1 var(--serif); margin-bottom: .45rem; }
.opening figcaption span { color: var(--muted); font-size: .875rem; }
.contact-layout { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: 2rem; align-items: start; }
.contact-item h3 { margin: 0 0 .35rem; font-size: 1rem; color: #f2d2a9; }
.contact-item p { color: var(--muted); margin: 0 0 .4rem; }
.contact-item > a, .footer nav a { font-size: .9rem; }
.contact-item > a, .phone { text-underline-offset: .21em; text-decoration-color: #a17854; }
.social-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.social-links .button { padding-inline: .8rem; }
.footer { border-top: 1px solid var(--line); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 1.2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

.dialog { padding: 0; max-width: min(54rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); width: 100%; background: #231619; color: var(--light); border: 1px solid #8a6253; border-radius: 11px; box-shadow: 0 20px 82px #090506b5; }
.dialog::backdrop { background: #0c0708c7; backdrop-filter: blur(4px); }
.dialog-frame { position: relative; padding: clamp(1rem, 3vw, 2rem); }
.close { display: grid; place-items: center; position: absolute; z-index: 1; right: .7rem; top: .7rem; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #1c1114; color: var(--light); font-size: 1.55rem; line-height: 1; }
.close:hover { background: #48292d; }
.dialog h2 { font-size: clamp(2.38rem, 5.2vw, 3.8rem); padding-right: 1.8rem; margin-bottom: .6rem; }
.dialog p { color: var(--muted); }
.dialog .eyebrow { color: var(--gold); }
.detail-view { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.35fr); gap: 1.65rem; align-items: start; }
.detail-view img { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: top; border-radius: 6px; background: #170f11; }
.detail-view .detail-meta { color: #ecc799; margin: 0 0 .85rem; }
.showtimes { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.showtimes button { padding: .5rem .73rem; }
.showtimes button[aria-pressed=true] { border-color: #e3b978; background: #55333a; color: #ffdfa8; }
.seat-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .8fr); gap: 1.3rem; align-items: start; }
.hall { border: 1px solid var(--line); background: #190f12; border-radius: 7px; padding: clamp(.55rem, 2.5vw, 1.2rem); }
.stage { position: relative; border-top: 2px solid #c39b69; border-radius: 48% 48% 0 0; text-align: center; color: #eccb9c; padding: .45rem 0 .33rem; margin: 0 0 .8rem 1.4rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(#46312c, transparent); }
.seat-grid { display: grid; gap: .36rem; }
.seat-row { display: grid; grid-template-columns: 1.17rem repeat(4, minmax(0, 1fr)) .62rem repeat(4, minmax(0, 1fr)); align-items: center; gap: .26rem; }
.row-label { color: #d3b9ab; font-size: .86rem; font-weight: 700; }
.seat { padding: 0; min-height: 37px; width: 100%; border: 1px solid #ac8464; border-radius: 5px 5px 2px 2px; color: #ffe9d0; background: #513137; font-size: .86rem; font-weight: 750; }
.seat.premium { background: #4d3929; border-color: #c2915f; }
.seat:hover:not(:disabled):not([aria-pressed=true]) { background: #885443; }
.seat[aria-pressed=true] { background: #ebbd7a; color: #251817; border-color: #f7d8a9; }
.seat:disabled { color: #b29ba1; background: #251c20; border-color: #5a494f; cursor: default; text-decoration: line-through; }
.legend { display: flex; flex-wrap: wrap; gap: .25rem .74rem; margin-top: .85rem; color: #d2bcb5; font-size: .81rem; }
.legend span { display: flex; align-items: center; gap: .31rem; }
.legend i { width: 12px; height: 12px; border: 1px solid #ac8464; border-radius: 3px; background: #513137; }
.legend .premium-key { background: #4d3929; border-color: #c2915f; }
.legend .unavailable-key { background: #251c20; border-color: #5a494f; }
.legend .selected-key { background: #ebbd7a; border-color: #f7d8a9; }
.checkout { display: grid; gap: .62rem; }
.checkout h3 { margin: 0; color: #f7dec5; font-size: 1.06rem; }
.checkout p { margin: 0; font-size: .875rem; }
.checkout .button { width: 100%; }
.order-total { display: flex; justify-content: space-between; gap: .55rem; align-items: center; border-top: 1px solid var(--line); padding-top: .58rem; font-size: .9rem; }
.order-total strong { color: #f7d5a5; }
.field { display: grid; gap: .27rem; font-size: .9rem; }
.field input { width: 100%; border: 1px solid #856369; border-radius: 4px; padding: .43rem .63rem; background: #181012; color: var(--light); }
.field a, .order-view a { text-underline-offset: .18em; }
.error-text { color: #ffc1af !important; }
.order-view { padding-block: .2rem .4rem; }
.order-view p { margin: 0 0 .7rem; }
.order-view .order-description { color: var(--light); font-size: 1.08rem; }
.order-view .order-code { overflow-wrap: anywhere; font-weight: 750; color: #f2cf9d; }
.order-view .showtimes { margin: 1rem 0 0; }
.legal { max-width: 740px; }
.legal h2 { font-size: 2.15rem; margin: 1.25rem 0 .55rem; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); margin: .4rem 0 1rem; }
.legal p { color: var(--muted); }
.seller-details { display: grid; grid-template-columns: minmax(100px, .55fr) 1fr; gap: .75rem; }
.seller-details dt { color: var(--muted); }
.seller-details dd { margin: 0; overflow-wrap: anywhere; }
#payment-form { max-width: 540px; margin-top: 1rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 72px); }
  .performance-body { padding-inline: .95rem; }
  .about-layout { gap: 1.7rem; }
  .opening { grid-template-columns: minmax(86px, 127px) 1fr; gap: .85rem; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-layout { grid-template-columns: 1fr auto; min-height: 68px; gap: 0 .75rem; padding-block: .55rem; }
  .header-tickets { grid-area: 1 / 2; }
  .site-nav { grid-column: 1 / -1; gap: 1.55rem; padding-top: .35rem; }
  .site-nav a { padding-block: .22rem; }
  .hero { min-height: 450px; background-position: center, center, 59% 55%; }
  .hero-inner { padding-block: 3.8rem 5rem; }
  .hero-venue { left: 0; right: auto; bottom: 1.2rem; }
  .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout { grid-template-columns: 1fr; }
  .opening { width: min(100%, 430px); }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .contact-layout > :first-child { grid-column: 1 / -1; }
  .seat-layout { grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-width: 510px) {
  .shell { width: calc(100% - 32px); }
  .hero { min-height: 411px; background-image: linear-gradient(90deg, #1b1013ed, #211015a3 55%, #2c13182f 100%), linear-gradient(0deg, #1c1114bb 0%, transparent 42%), url('/assets/stage.webp'); }
  h1 { font-size: clamp(4.05rem, 14vw, 5.5rem); }
  .hero-summary { margin-bottom: 1.45rem; }
  .schedule-heading { align-items: start; flex-direction: column; gap: .85rem; padding-bottom: 1rem; }
  .performance-grid { grid-template-columns: 1fr; }
  .poster { aspect-ratio: 1.5; }
  .performance h3 { font-size: 2.5rem; }
  .performance-body > p:not(.genre) { min-height: 0; }
  .footer-layout { flex-direction: column; align-items: start; }
  .detail-view { grid-template-columns: 1fr; gap: .85rem; }
  .detail-view img { max-height: 260px; }
  .dialog { max-width: calc(100% - 1rem); }
  .seat-row { gap: .21rem; grid-template-columns: 1rem repeat(4, minmax(0, 1fr)) .5rem repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
@media (max-width: 350px) {
  .dialog:has(#payment-form) .dialog-frame { padding-inline: .4rem; }
}
@media print {
  body { background: white; }
  body > :not(.dialog), .dialog .close, .dialog .showtimes { display: none !important; }
  .dialog[open] { position: static; width: 100%; max-width: none; max-height: none; margin: 0; padding: 0; background: white; color: black; border: 1px solid black; box-shadow: none; }
  .dialog::backdrop { background: white; }
  .dialog p, .dialog .eyebrow, .order-view .order-code, .order-view .order-description { color: black; }
}
