:root {
  --night: #120709;
  --cream: #f6ead2;
  --gold: #d9b26a;
  --gold-hi: #f7dc9a;
  --exit: #ff3d2e;
  --ui: "Oswald", "Arial Narrow", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--cream); overflow: hidden; }
body { font-family: var(--ui); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus-within { position: fixed !important; left: 12px; top: 60px; width: auto; height: auto; clip: auto; z-index: 70; background: #000; padding: 8px; }
.sr button { display: block; background: none; border: 0; color: var(--cream); padding: 4px 0; cursor: pointer; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; cursor: grab; }
#gl.point { cursor: pointer; }
#gl.drag { cursor: grabbing; }

/* chrome: brass lobby lettering, kept small */
#chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-t)) 18px 12px; pointer-events: none; }
#chrome > * { pointer-events: auto; }
#house { font-family: "Limelight", var(--ui); font-size: 20px; letter-spacing: .06em; color: var(--gold-hi); text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 196, 110, .45), 0 1px 0 #000; white-space: nowrap; }
#top { display: flex; align-items: center; gap: 8px; }
#top button { background: rgba(14, 6, 8, .62); border: 1px solid rgba(217, 178, 106, .55); color: var(--cream); border-radius: 3px; padding: 6px 12px 7px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; line-height: 1; }
#top button:hover { border-color: var(--gold-hi); color: #fff; }
#top button:focus-visible, .walk:focus-visible, #round:focus-visible, .exit:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
#snd { width: 34px; height: 30px; padding: 4px !important; display: grid; place-items: center; }
#snd svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#snd .spk { fill: var(--cream); stroke: none; }
#snd[aria-pressed="true"] .off, #snd[aria-pressed="false"] .on { display: none; }

body.intro #chrome, body.intro #walkers { opacity: 0; }
#chrome, #walkers { transition: opacity .5s; }
#walkers { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.walk { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14, 6, 8, .5); border: 1px solid rgba(217, 178, 106, .45); cursor: pointer; pointer-events: auto; padding: 0; }
.walk svg, #round svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#prev { left: 14px; } #next { right: 14px; }
.walk:hover, #round:hover { border-color: var(--gold-hi); background: rgba(30, 12, 14, .7); }
.walk[disabled] { opacity: .25; cursor: default; }
#round { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(14, 6, 8, .55); border: 1px solid rgba(217, 178, 106, .5); cursor: pointer; pointer-events: auto; padding: 0; }
#round[hidden] { display: none; }
#round.hint { animation: hint 1.4s ease-in-out 3; }
@keyframes hint { 50% { box-shadow: 0 0 0 6px rgba(247, 220, 154, .25), 0 0 22px rgba(247, 220, 154, .45); border-color: var(--gold-hi); } }
#round.back svg { transform: scaleX(-1); }

/* the EXIT sign is the close button */
.exit { position: fixed; top: calc(12px + var(--safe-t)); right: 16px; z-index: 5; cursor: pointer; padding: 6px 12px 7px; border-radius: 3px;
  background: linear-gradient(#1d0c0c, #0d0505); border: 1px solid #3a2a2a; color: var(--exit); font-family: var(--ui); font-weight: 700; font-size: 17px;
  letter-spacing: .22em; text-transform: uppercase; line-height: 1;
  text-shadow: 0 0 6px rgba(255, 61, 46, .9), 0 0 18px rgba(255, 40, 20, .55); box-shadow: 0 0 18px rgba(255, 40, 20, .18), inset 0 0 8px rgba(255, 40, 20, .12); }
.exit:hover { color: #ff6a5a; }

/* showtimes: a backlit changeable-letter board */
#showtimes { position: fixed; inset: 0; z-index: 30; background: radial-gradient(120% 90% at 50% 0%, rgba(40, 14, 16, .92), rgba(8, 3, 4, .97));
  display: grid; place-items: start center; overflow: auto; padding: calc(60px + var(--safe-t)) 14px calc(24px + var(--safe-b)); }
#showtimes[hidden] { display: none; }
.st-board { width: min(1180px, 100%); padding: 14px; border-radius: 4px; background: linear-gradient(#2b2b2e, #141416);
  box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 236, 200, .12); }
.st-frame { background: linear-gradient(#fbf7ee, #efe7d6); border-radius: 2px; padding: 18px 18px 22px;
  box-shadow: inset 0 0 40px rgba(255, 250, 235, .9), inset 0 0 2px rgba(0, 0, 0, .3);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(0, 0, 0, .07) 33px 35px), linear-gradient(#fbf7ee, #efe7d6); }
.st-head { margin: 0 0 14px; text-align: center; color: #121212; font-family: var(--ui); font-weight: 700; font-size: 30px; letter-spacing: .3em; text-transform: uppercase; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 14px; }
.st-list button { all: unset; cursor: pointer; display: grid; gap: 6px; width: 100%; }
.st-list button:focus-visible { outline: 2px solid #b00; outline-offset: 3px; }
.st-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #0d0a0a; border: 3px solid #191919; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); overflow: hidden; }
.st-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.st-name { color: #111; font-family: var(--ui); font-weight: 500; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; }
.st-client { color: #6b1515; font-family: var(--ui); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-top: -3px; }
.st-list button:hover .st-name { color: #8a0f0f; }
@media (max-width: 560px) {
  .st-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .st-name { font-size: 14px; }
  .st-head { font-size: 22px; }
  .st-board { padding: 8px; }
  .st-frame { padding: 12px 10px 16px; }
}

/* the auditorium: the real work on a screen between curtains */
#aud { position: fixed; inset: 0; z-index: 40; background: #070304; perspective: 1600px; }
#aud[hidden] { display: none; }
.aud-room { position: absolute; inset: 0; pointer-events: none; }
.valance { position: absolute; left: 0; right: 0; top: 0; height: 50px; z-index: 2; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='50' viewBox='0 0 120 50'%3E%3Cdefs%3E%3ClinearGradient id='v' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23420710'/%3E%3Cstop offset='.7' stop-color='%23861320'/%3E%3Cstop offset='1' stop-color='%235a0a14'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H120V18Q60 58 0 18Z' fill='url(%23v)'/%3E%3Cpath d='M0 18Q60 58 120 18' fill='none' stroke='%23c9a055' stroke-width='3'/%3E%3C/svg%3E") 0 0 / 120px 50px repeat-x; }
.curtain { position: absolute; top: 0; bottom: 0; width: max(10px, calc((100vw - 1100px) / 2)); z-index: 1;
  background: repeating-linear-gradient(90deg, #4a070d 0 14px, #7c111b 22px, #a01826 28px, #6a0d16 36px, #3c050a 46px),
    linear-gradient(#000, transparent);
  background-blend-mode: normal; box-shadow: inset 0 0 60px rgba(0, 0, 0, .6); }
.curtain.l { left: 0; } .curtain.r { right: 0; }
.seats { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: 3;
  background: radial-gradient(24px 30px at 30px 34px, #160909 96%, transparent 100%) 0 0 / 62px 40px repeat-x; }
.aud-screen { position: absolute; z-index: 2; top: calc(58px + var(--safe-t)); bottom: 44px; left: 50%; transform: translateX(-50%);
  width: min(1060px, calc(100vw - 2 * max(10px, (100vw - 1100px) / 2) - 24px)); overflow: auto; -webkit-overflow-scrolling: touch;
  background: #0c0b0b; border-radius: 2px; padding: 26px 28px 36px; outline: none;
  box-shadow: 0 0 0 1px #000, 0 0 70px rgba(255, 238, 210, .1), inset 0 0 120px rgba(255, 240, 220, .03);
  --ab-fg: #ece6dc; --ab-muted: #b8a993; --ab-accent: var(--gold-hi); --ab-chrome: 150px; }
.aud-head { margin: 0 0 22px; }
#aud-title { margin: 0; font-family: "Limelight", var(--ui); font-weight: 400; font-size: clamp(30px, 5vw, 54px); line-height: 1.05; color: var(--gold-hi);
  letter-spacing: .02em; text-shadow: 0 0 22px rgba(255, 200, 120, .25); }
#aud-client { margin: 6px 0 0; font-family: var(--ui); font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: #c9a77a; }
#aud-client:empty { display: none; }
.aud-screen .ab-media { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.55; }
.aud-screen .ab-heading { font-family: var(--ui); font-weight: 500; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.aud-screen .ab-lede { font-size: 19px; color: #f2ece2; max-width: 46em; }
.aud-screen .ab-text { max-width: 46em; }
.aud-screen .ab-credits { font-family: var(--ui); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.7; color: #a99a85;
  border-top: 1px solid #2a2320; padding-top: 14px; }
.aud-screen figcaption { font-family: var(--ui); letter-spacing: .06em; }
.aud-screen a { color: var(--gold-hi); }
#about-box { font-family: Georgia, serif; font-size: 18px; line-height: 1.6; max-width: 40em; }
#about-box[hidden] { display: none; }
.about-title { font-family: var(--ui); font-size: 16px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.about-bio { margin: 0 0 18px; }
.about-line { margin: 0 0 6px; }
.about-loc { margin: 14px 0 0; font-family: var(--ui); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: #a99a85; }
#aud-exit { z-index: 6; }

/* auditorium doors: padded, with portholes; they swing open on the campaign */
.aud-doors { position: absolute; inset: 0; z-index: 8; display: flex; pointer-events: none; transform-style: preserve-3d; }
.adoor { flex: 1; position: relative; background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .35) 0 2px, transparent 3px) 0 0 / 46px 46px,
    linear-gradient(90deg, #4b0f15, #6e1720 50%, #4b0f15);
  box-shadow: inset 0 0 0 10px #2a0a0d, inset 0 0 0 12px #b08a48, inset 0 0 60px rgba(0, 0, 0, .55); backface-visibility: hidden; }
.adoor i { position: absolute; top: 18%; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3b2c22, #0b0607 70%);
  box-shadow: 0 0 0 6px #b08a48, 0 0 0 8px #2a0a0d; }
.adoor.l { transform-origin: 0 50%; } .adoor.r { transform-origin: 100% 50%; }
.adoor.l i { right: 22%; } .adoor.r i { left: 22%; }
#aud.opening .adoor.l { animation: swingL .95s cubic-bezier(.5, 0, .3, 1) .12s forwards; }
#aud.opening .adoor.r { animation: swingR .95s cubic-bezier(.5, 0, .3, 1) .12s forwards; }
#aud.open .aud-doors { display: none; }
@keyframes swingL { to { transform: rotateY(-102deg); opacity: .0; } }
@keyframes swingR { to { transform: rotateY(102deg); opacity: .0; } }

/* the way in: glass doors, gold leaf */
#intro { position: fixed; inset: 0; z-index: 50; display: flex; perspective: 1500px; cursor: pointer; }
#intro[hidden] { display: none; }
.gdoor { flex: 1; position: relative; border: 16px solid #8e6a2e; border-top-width: 22px; border-bottom-width: 34px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .08) 0 18%, transparent 18% 32%, rgba(255, 255, 255, .05) 32% 36%, transparent 36%),
    linear-gradient(rgba(16, 22, 30, .58), rgba(10, 12, 18, .7));
  box-shadow: inset 0 0 0 2px #c79c4f, inset 0 0 0 5px #5c4219, 0 0 0 1px #000; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.gdoor.l { transform-origin: 0 50%; } .gdoor.r { transform-origin: 100% 50%; }
/* the house's name in small gold leaf on the glass, read across the two doors */
.leaf { position: absolute; top: 47%; font-family: "Limelight", serif; font-size: clamp(12px, 1.35vw, 19px); letter-spacing: .3em; line-height: 1;
  background: linear-gradient(#fff4c8, #e2b45a 45%, #9c6c22 55%, #f4d58a); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .5)); white-space: nowrap; }
.gdoor.l .leaf { right: 9%; } .gdoor.r .leaf { left: 9%; }
.bar { position: absolute; top: 56%; height: 16px; width: 64%; border-radius: 8px; background: linear-gradient(#f3d996, #a77a32 60%, #6d4c1b);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.gdoor.l .bar { right: 8%; } .gdoor.r .bar { left: 8%; }
#intro.open .gdoor.l { animation: gL 1.25s cubic-bezier(.55, 0, .25, 1) forwards; }
#intro.open .gdoor.r { animation: gR 1.25s cubic-bezier(.55, 0, .25, 1) forwards; }
@keyframes gL { 70% { opacity: 1; } to { transform: rotateY(-96deg); opacity: 0; } }
@keyframes gR { 70% { opacity: 1; } to { transform: rotateY(96deg); opacity: 0; } }

/* loading: the marquee bulbs come up as the lobby loads */
#loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #0b0506; transition: opacity .45s; }
#loader.gone { opacity: 0; pointer-events: none; }
.ld-bulbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 80vw; }
.ld-bulbs span { width: 14px; height: 14px; border-radius: 50%; background: #3a2a1a; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .5); transition: background .2s, box-shadow .2s; }
.ld-bulbs span.on { background: #fff1c4; box-shadow: 0 0 8px 2px rgba(255, 210, 120, .85), 0 0 22px rgba(255, 180, 80, .6); }

@media (max-width: 640px) {
  #chrome { padding: calc(10px + var(--safe-t)) 10px 8px; }
  #house { font-size: 15px; }
  #top { gap: 5px; }
  #top button { padding: 6px 8px 7px; font-size: 11px; letter-spacing: .12em; }
  #snd { width: 30px; height: 27px; }
  .walk { width: 40px; height: 40px; top: auto; bottom: calc(22px + var(--safe-b)); transform: none; }
  #prev { left: 12px; } #next { right: 12px; }
  .curtain { width: 6px; }
  .seats { display: none; }
  .valance { height: 34px; }
  .aud-screen { top: calc(52px + var(--safe-t)); bottom: 0; left: 6px; right: 6px; width: auto; transform: none; padding: 18px 14px 40px; --ab-chrome: 120px; }
  .exit { top: calc(8px + var(--safe-t)); right: 10px; font-size: 15px; }
  .adoor i { width: 40px; height: 40px; }
  .gdoor { border-width: 10px; border-top-width: 14px; border-bottom-width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #intro.open .gdoor.l, #intro.open .gdoor.r, #aud.opening .adoor.l, #aud.opening .adoor.r { animation-duration: .01s; }
}
