* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; color: #fff0d6; background: #1b1013; font: 1rem/1.5 system-ui, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 5vw, 4rem); }
header a { color: inherit; text-underline-offset: .24em; }
.wordmark { font-weight: 700; text-decoration: none; }
main { min-height: calc(100svh - 3.5rem); display: grid; grid-template-rows: 1fr auto; }
.scene { min-height: clamp(22rem, 57svh, 45rem); position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(90deg,#200c16b8,#200c1659 45%,#211010cb),url('theatre-welcome.png') center 52%/cover; }
.curtain { position: absolute; inset: 0 55% 22% 0; background: repeating-linear-gradient(96deg,#2b0815,#7b233a 1.5rem,#450f22 3.5rem); box-shadow: 1rem 0 2rem #080304aa; }
.floor { position: absolute; inset: auto 0 0; height: 35%; background: radial-gradient(ellipse at 74% 8%,#c0915a80,transparent 35%),repeating-linear-gradient(176deg,#2b1518,#452c29 22px,#281418 24px,#3c2525 49px); border-top: 2px solid #e8b87c55; }
.door { position: absolute; left: 74%; bottom: 29%; transform: translateX(-50%); width: clamp(7rem, 19vw, 12rem); height: 48%; border: 9px double #c49461; background: linear-gradient(150deg,#433136,#1f1219 62%); box-shadow: 0 0 2.5rem #f9b46d60; display: grid; align-items: start; justify-items: center; padding-top: 1rem; }
.door span { background: #f5ce94; color: #251416; font-size: .8rem; font-weight: 800; padding: .35rem .45rem; }
.arrived .curtain { transform: translateX(-48%); transition: transform .65s ease-out; }
.arrived .door { background: linear-gradient(#170f19 12%,#53203f 76%,#eea459); box-shadow: 0 0 3rem #f9b46d9c; }
.walker { position: absolute; left: 74%; bottom: 29%; z-index: 1; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1; transform: translateX(-50%) scale(.58); transform-origin: bottom center; }
.walker::before { content: ''; position: absolute; inset: auto 6% 0; height: .2em; background: #0c0508a6; border-radius: 50%; filter: blur(2px); }
.walker span { position: relative; display: block; }
.walking .walker { animation: walk 3.1s ease-in-out both; }
.walking .walker span { animation: step .38s ease-in-out 8 alternate; }
@keyframes walk {
  from { left: 18%; bottom: 10%; transform: translateX(-50%) scale(1); }
  48% { left: 49%; bottom: 13%; transform: translateX(-50%) scale(.88); }
  to { left: 74%; bottom: 29%; transform: translateX(-50%) scale(.58); }
}
@keyframes step { from { rotate: -4deg; translate: 0 0; } to { rotate: 4deg; translate: 0 -7%; } }
.arrival { padding: 1.25rem clamp(1rem, 5vw, 4rem) 1.75rem; background: #23161a; }
.arrival h1 { margin: 0; font: clamp(2rem, 6vw, 4rem)/1.1 Georgia, serif; }
.arrival p { margin: .6rem 0 1rem; color: #e5c9ad; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.actions a, .actions button { font: inherit; color: inherit; background: transparent; border: 1px solid #c49461; border-radius: .5rem; padding: .65rem 1rem; cursor: pointer; }
.actions .continue { color: #251416; background: #f5ce94; text-decoration: none; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .arrived .curtain { transition: none; }
  .walking .walker, .walking .walker span { animation: none; }
}
