@font-face {
  font-family: StageRegular;
  src: url(stage-regular.woff?v=8) format('woff');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f3e4c1;
  --muted: #d7bb89;
  --line: #bc98604f;
  --serif: StageRegular, "Noto Serif CJK SC", "Songti SC", "STSong", serif;
  --sans: var(--serif);
}

* { box-sizing: border-box; }
body { margin: 0; background: #21170e; font-family: var(--sans); color: var(--paper); }
button { font: inherit; cursor: pointer; color: inherit; touch-action: manipulation; }
button:focus-visible { outline: 2px solid #f5d491; outline-offset: 4px; }
button, dialog { border: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }

#stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
  min-height: 320px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: max(20px, env(safe-area-inset-top)) clamp(20px, 5vw, 84px) max(19px, env(safe-area-inset-bottom));
  --accent: #e4bd72;
}

#back, .shot, .shade, .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#back { z-index: -5; background: #261a0e; }
.shot {
  opacity: 0;
  background-position: 65% 50%;
  background-size: cover;
  transition: opacity .65s ease, transform 11s ease-out;
  transform: scale(1.065);
  filter: sepia(.27) saturate(.92) brightness(1.18) contrast(1.04);
}
.shot.front { opacity: 1; transform: scale(1); }
.shot:first-child { background-image: url(hall.webp); }
.grain { z-index: -1; background-image: url(grain.png); opacity: .045; }
.shade {
  z-index: -3;
  background:
    linear-gradient(90deg, #27180cf0 0%, #35220e91 41%, #79501c19 76%),
    linear-gradient(0deg, #21150be6, transparent 32%, transparent 79%, #21150b9e),
    #a9762812;
}
header, footer { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 12px; }
header { padding-bottom: 14px; border-bottom: 1px solid var(--line); z-index: 3; }
footer { border-top: 1px solid var(--line); padding-top: 11px; color: #dabf8d; font: 13px var(--serif); letter-spacing: .19em; }
.marks { display: flex; gap: 5px; flex-shrink: 0; }
.marks i { width: 22px; height: 2px; background: #bd9a5a66; }
.marks i.here { background: #efcb7f; }

.brand, .tools { display: flex; align-items: center; gap: 10px; }
.brand>b {
  font: 400 13px/.99 var(--serif);
  padding: 5px 4px;
  background: #8c5c28;
  outline: 1px solid #d9ad6a;
  outline-offset: -3px;
  transform: rotate(-2deg);
  color: #fff1cb;
}
.brand>span { font: 17px var(--serif); letter-spacing: .16em; }
.brand small, .roman, .over small, dialog small, .stationery small {
  display: block;
  font: 10px var(--serif);
  letter-spacing: .18em;
  color: #dabb80;
}
.brand small { margin-top: 4px; font-size: 8px; }
.tools button, .quiet, .replay, #close { background: none; }
.tools button { padding: 9px 11px; font-size: 14px; }
.tools #sound {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #c5a06480;
  border-radius: 30px;
  background: #39270f9c;
}
.eq { display: flex; gap: 2px; align-items: center; height: 14px; }
.eq i { width: 2px; height: 6px; background: #e6c478; }
.eq i:nth-child(2) { height: 12px; }
.eq i:nth-child(3) { height: 9px; }
.on .eq i { animation: eq .69s ease-in-out infinite alternate; }
.on .eq i:nth-child(2) { animation-delay: -.32s; }
@keyframes eq { to { transform: scaleY(.32); } }

#screen {
  display: grid;
  align-items: safe center;
  align-content: safe center;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #aa8448 #36230e77;
  padding: clamp(10px, 2vh, 25px) 3vw;
  position: relative;
}
#screen>section, #screen>article { max-width: 100%; min-width: 0; }
.enter { animation: arrive .62s cubic-bezier(.2,.75,.3,1) both; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.over { display: flex; align-items: center; gap: 11px; color: var(--accent); font: 14px var(--serif); letter-spacing: .18em; }
.over em { display: block; width: 28px; height: 1px; background: #c89544; flex-shrink: 0; }
.cover h1 {
  font-size: clamp(110px, 12.6vw, 205px);
  letter-spacing: .045em;
  line-height: 1.18;
  margin-top: 9px;
  color: #fae7b6;
  text-shadow: 0 8px 36px #110a0466;
}
.roman { letter-spacing: .52em; font-size: 12px; }
.tagline { font: clamp(22px, 2.4vw, 32px)/1.6 var(--serif); letter-spacing: .13em; margin: 22px 0 28px; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(110deg, #9d6b2c, #744518);
  border: 1px solid #d7b070;
  box-shadow: inset 0 0 0 3px #754b1d, 0 4px 16px #1309034d;
  color: #fff0cc;
  font: 16px var(--serif);
  letter-spacing: .1em;
  padding: 13px 23px;
  min-height: 44px;
}
.primary:hover { filter: brightness(1.13); }
.playmark { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid #f8d98b; }

.caption h2, .stationery h2, .seating h2, .roleText h2, dialog h2, .castHead h2, .castInfo h2 {
  font-size: clamp(36px, 5vw, 75px);
  line-height: 1.32;
  letter-spacing: .06em;
  margin: 12px 0;
}
.caption p, .stationery p { max-width: 28em; font: clamp(17px, 1.7vw, 23px)/1.85 var(--serif); margin-bottom: 21px; }
.stationery {
  color: #4d3217;
  width: min(430px, 100%);
  padding: 30px 34px;
  background: linear-gradient(110deg, #f3dfac, #d6b47a);
  box-shadow: 0 16px 58px #140c0566;
  outline: 1px solid #9b6f38;
  outline-offset: -9px;
  transform-origin: top;
  animation: unseal .7s both;
}
.stationery small { color: #795325; }
.stationery h2 { font-size: 36px; }
.stationery p { font-size: 17px; margin: 12px 0; }
.sign { text-align: right; font: 15px var(--serif); margin: 12px 0; }
.credit { display: block; margin: 20px 0; color: #cdb68d; font-size: 13px; }
@keyframes unseal {
  from { opacity: .1; transform: perspective(900px) rotateX(-29deg); }
  to { opacity: 1; transform: none; }
}

[data-scene=seats] .shade {
  background: linear-gradient(90deg, #281b0df0, #442d14d7), linear-gradient(0deg, #21150d, transparent);
}
.seating { width: min(1040px, 100%); margin: auto; }
.seatHead, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seating h2 { font-size: clamp(32px, 3.5vw, 56px); margin: 8px 0 2px; }
.count, .guide { color: #dbbf8d; font-size: 15px; }
.guide { line-height: 1.6; margin: 2px 0 18px; }
.seatGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seatCard {
  position: relative;
  isolation: isolate;
  background: #3a240e var(--art) center 48%/cover;
  border: 1px solid #b5945b72;
  min-height: 100px;
  height: clamp(110px, 19vh, 195px);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  align-items: end;
  transition: filter .35s;
  filter: sepia(.17);
}
.seatCard:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #28190ef8, #50321220 66%, #b9883930);
}
.seatCard:hover { filter: sepia(.17) brightness(1.17); }
.seatCard span { font: 24px var(--serif); letter-spacing: .09em; }
.seatCard small { display: block; font: 13px var(--sans); color: #e4cf9d; letter-spacing: .1em; margin-top: 3px; }
.seatCard b {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #80551f;
  color: #f6e2b1;
  padding: 3px 6px;
  font: 12px var(--serif);
}
.ready { margin-top: 14px; }

[data-scene=role] .shot { background-size: auto 114%; background-position: right center; background-repeat: no-repeat; }
[data-scene=role] #back { background: #30200d; }
[data-scene=role] .shade {
  background:
    linear-gradient(90deg, #2c1c0cf5 3%, #3a260fe0 32%, #5e3a141f 80%),
    linear-gradient(0deg, #23170ce8, transparent 37%, transparent 74%, #2b1a0ca8),
    #ab742516;
}
.roleScene {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(640px, 65%);
  gap: clamp(18px, 4vh, 42px);
}
.roleText h2 { font-size: clamp(44px, 6.4vw, 100px); margin: 7px 0 10px; }
.speech { display: flex; align-items: flex-start; gap: 7px; }
.quote { font: 40px/.9 var(--serif); color: var(--accent); }
blockquote { font-size: clamp(21px, 2.25vw, 33px); max-width: 16em; line-height: 1.6; text-wrap: balance; }
.replay { display: inline-flex; align-items: center; gap: 8px; color: #efd29a; font-size: 14px; padding: 12px 0; min-height: 44px; }
.audioDot { width: 9px; height: 9px; border-radius: 50%; background: #dab467; box-shadow: 0 0 0 3px #cca26230; }
.roleTool { width: min(410px, 100%); border-top: 1px solid var(--line); padding-top: 16px; }
.row { justify-content: flex-start; flex-wrap: wrap; }
.quiet { padding: 10px 13px; border: 1px solid #b895598f; color: #e7cfa3; font: 15px var(--serif); min-height: 44px; }
.quiet:hover { background: #bb833e21; }
.row .primary { font-size: 15px; padding: 10px 16px; }

.paperTicket {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e6c98e;
  color: #51351a;
  border: 1px solid #a17641;
  padding: 12px 22px;
  gap: 7px;
  box-shadow: 0 12px 25px #160b034d;
  outline: 1px solid #906a38;
  outline-offset: -5px;
  touch-action: none;
  transform: translateY(var(--down, 0px)) rotate(-3deg);
}
.paperTicket b, .paperTicket small { font: 12px var(--serif); letter-spacing: .09em; }
.paperTicket span { font: 28px var(--serif); }
.falling .paperTicket { pointer-events: none; animation: deposit .65s ease-in forwards; }
@keyframes deposit {
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(8%, 110%) scale(.67, .03); }
}

dialog { background: #392611; color: var(--paper); border: 1px solid #b18b4d; padding: 24px; width: min(355px, 86vw); }
dialog::backdrop { background: #100a05bf; }
dialog h2 { font-size: 32px; }
#close { float: right; color: #e0c58d; }
#chapters button { display: block; width: 100%; background: none; border-bottom: 1px solid var(--line); text-align: left; padding: 13px 0; font: 17px var(--serif); }

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: max(56px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  background: #070604;
  color: #ead7ac;
  opacity: 1;
  transition: opacity 1.5s ease;
}
.intro-overlay[hidden] { display: none; }
.intro-overlay.leaving { opacity: 0; pointer-events: none; }
.prologue-box { width: min(580px, 100%); text-align: center; margin: auto; }
.prologue-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  font: clamp(23px, 4vw, 36px)/1.8 var(--serif);
  letter-spacing: .08em;
  min-height: 3.6em;
  text-wrap: balance;
  color: #efe0bf;
}
.prologue-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.prologue-actions[hidden] { display: none; }
.prologue-actions button:not(.primary) {
  background: transparent;
  border: 1px solid #ad8b5260;
  min-height: 44px;
  padding: 12px 22px;
  color: #dabd84;
}
.prologue-skip {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: #bca880;
  font-size: 14px;
}
.prologue-skip:hover { color: #fff2d2; }

[data-scene=cast] .shade, [data-scene=cast-detail] .shade, [data-scene=castDetail] .shade {
  background: linear-gradient(120deg, #36210ef5, #291b10ec), linear-gradient(0deg, #241709, transparent);
}
[data-scene=cast] #screen, [data-scene=cast-detail] #screen, [data-scene=castDetail] #screen { align-content: safe start; align-items: start; }
.castScene { width: min(1080px, 100%); margin-inline: auto; }
.castHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.castHead h2 { font-size: clamp(34px, 4vw, 58px); margin: 8px 0 0; }
.castGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
.castCard {
  display: block;
  text-align: left;
  min-width: 0;
  padding: 0;
  background: #52361980;
  color: var(--paper);
  border: 1px solid #c09b5c66;
  transition: border-color .2s, box-shadow .2s, filter .2s;
}
.castCard:hover, .castCard:focus-visible { border-color: #e7c37b; box-shadow: 0 4px 18px #11090360; }
.castCard img {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  background: #342719;
}
.castLabel { display: block; padding: 12px 13px 13px; font: 18px/1.35 var(--serif); letter-spacing: .03em; }
.castLabel small { display: block; font: 13px/1.4 var(--sans); color: #e1c590; margin-top: 4px; }

.castDetail {
  width: min(960px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.castPortrait { min-width: 0; width: 100%; justify-self: center; align-self: start; }
.castPortrait img, img.castPortrait {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(66svh, 680px);
  object-fit: contain;
  margin-inline: auto;
  border: 1px solid #c09b5c88;
  background: #2c2116;
  box-shadow: 0 18px 60px #1b0d0580;
}
.castInfo { min-width: 0; }
.castInfo h2 { font-size: clamp(38px, 5vw, 70px); }
.castInfo p { font: 18px/1.7 var(--serif); color: #e4c88c; }
.castSwitch { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.castSwitch button:not(.primary) {
  background: #5337198f;
  border: 1px solid #ba94564f;
  color: #e3c995;
  padding: 10px 13px;
  min-height: 44px;
}
.castSwitch button[aria-pressed=true], .castSwitch button.active, .castSwitch button.selected {
  border-color: #e1bb72;
  background: #895d29;
  color: #fff0c9;
}

@media (max-width: 650px) {
  #stage { padding-left: 6%; padding-right: 6%; }
  #screen { padding: 15px 0 21px; align-items: safe end; align-content: safe end; }
  .cover { padding-bottom: 3vh; }
  .cover h1 { font-size: clamp(88px, 29vw, 160px); }
  .shade, [data-scene=role] .shade {
    background: linear-gradient(0deg, #28170dfc 3%, #37230fe8 25%, #4d3214a8 45%, #67431410 72%, #25180d70);
  }
  .tagline { margin: 17px 0 23px; }
  .brand { gap: 7px; }
  .brand>span { font-size: 15px; }
  .tools { gap: 1px; }
  .tools button { font-size: 13px; padding-inline: 8px; }
  footer { letter-spacing: .07em; }
  .marks i { width: 15px; }
  .stationery { align-self: center; padding: 24px; }
  .seating { align-self: center; }
  .seatHead { align-items: flex-end; }
  .seatGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .seatCard { height: clamp(94px, 14.3svh, 150px); min-height: 0; padding: 10px 12px; }
  .seatCard span { font-size: 21px; }
  .guide { margin: 3px 0 12px; }
  .seating h2 { font-size: 34px; }
  .seating .over { font-size: 12px; }
  .ready { margin-top: 10px; padding: 9px 15px; }
  [data-scene=role] .shot { background-size: 100% auto; background-position: center 0; }
  .roleScene { width: 100%; justify-content: flex-end; gap: 15px; }
  .roleText h2 { font-size: clamp(44px, 12vw, 64px); margin: 4px 0; }
  .roleTool { padding-top: 10px; }
  .speech .quote { font-size: 30px; }
  blockquote { font-size: 22px; }
  .replay { padding: 7px 0; }
  .roleText .over { font-size: 13px; }
  .credit { margin: 13px 0; }
  .row .quiet { font-size: 14px; }
  .castHead { margin-bottom: 16px; }
  .castGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .castLabel { font-size: 17px; padding: 10px; }
  .castDetail { grid-template-columns: 1fr; gap: 24px; }
  .castPortrait img, img.castPortrait { max-height: min(56svh, 580px); }
  .castInfo h2 { font-size: 42px; margin: 8px 0; }
  .castInfo p { font-size: 17px; }
  .castInfo .row { padding-bottom: 16px; }
}

@media (max-height: 655px) {
  #stage { padding-top: 9px; padding-bottom: 8px; }
  header { padding-bottom: 7px; }
  footer { padding-top: 6px; }
  #screen { padding-block: 8px; }
  .cover { padding-bottom: 0; }
  .tagline { margin: 7px 0 13px; }
  .roleScene { gap: 7px; }
  .roleText h2 { font-size: 40px; }
  .seating h2 { font-size: 28px; }
  .guide { margin-bottom: 6px; }
  .seatCard { height: clamp(70px, 13vh, 90px); }
  .roleTool { padding-top: 7px; }
  .roleText blockquote { font-size: 20px; }
  .castHead { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

.castFull { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }
.prologue-caption[data-speaker="1"] { color:#d5bd89; }
.prologue-actions small { color:var(--muted); font-size:14px; }

/* MASTER — weathered ochre, brush pigment and ink, drawn from the production artwork. */
:root {
  --ochre: #916730;
  --rust: #854829;
  --ink: #23170e;
  --brush: #a5b068;
  --paper: #faedcf;
  --muted: #e5c99c;
  --line: #e4c88e45;
}
body { background: #49321b; }
#stage { --accent: #d9dc95; }
#back { background: #624322; }
.shot { filter: sepia(.4) saturate(.87) brightness(1.25) contrast(.96); }
.shade {
  background: linear-gradient(90deg, #51361bea 0%, #916730b8 39%, #91673016 76%),
    linear-gradient(0deg, #392711c4, transparent 34%, transparent 78%, #31210dc2),
    #b0803826;
}
.grain { opacity: .085; }
.brand>b { background: var(--ochre); outline-color: #e0cc95; }
.brand small,.roman { color: #d6d6a1; }
footer { color: #d8c595; }
.marks i.here { background: #dce09e; }
.over em { background: var(--accent); }
.cover { position: relative; width: min(650px,100%); }
.cover h1.masterTitle { margin: 13px 0 9px -5px; max-width: 100%; line-height: 0; }
.masterTitle img {
  display: block;
  width: clamp(300px, 42vw, 590px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 10px #1b100b8a);
}
.cover .roman { font-size: 11px; letter-spacing: .62em; margin-left: 7px; }
.cover .tagline { color: #f5e8c9; }
.primary {
  background: #a77c3c;
  border: 1px solid #e7c78c80;
  box-shadow: 0 4px 20px #2014084d;
  color: #fff4d6;
}
.primary:hover { background: #b58b4e; }
.tools #sound { background: #50381f8f; border-color: #d2ba8075; }
.quiet { color: #eee0b2; }
[data-scene=seats] .shade {
  background: linear-gradient(110deg, #785329e8, #55371ddd), linear-gradient(0deg,#382417,transparent);
}
.seatCard {
  border-color: #e4c88f52;
  background-color: #785329;
}
.seatCard:before { background: linear-gradient(0deg,#33200bf5,#8c5f382b 70%,#91673027); }
.seatCard small { color: #e3d6a6; }
[data-scene=role] #back { background: #775127; }
[data-scene=role] .shot { background-size: cover; background-position: 50% 50%; }
[data-scene=role] .shade {
  background: linear-gradient(115deg, #493018f2 0%, #8e6330ea 51%, #573b20df 100%);
}
[data-scene=role] #screen {
  align-content: safe center;
  align-items: safe center;
  padding-block: 18px;
}
.roleScene {
  display: grid;
  grid-template-columns: minmax(280px, .94fr) minmax(320px, 1fr);
  grid-template-areas: "text cast" "tools cast";
  align-content: center;
  align-items: center;
  width: min(1080px, 100%);
  margin: auto;
  gap: 24px clamp(28px, 5vw, 72px);
}
.roleText { grid-area: text; min-width: 0; align-self: end; }
.roleText h2 { font-size: clamp(48px,6.2vw,88px); margin: 12px 0 3px; }
.roleMotto { color: #dce0a0; font: clamp(18px,2vw,25px)/1.45 var(--serif); letter-spacing: .06em; }
.roleDesc {
  font-size: clamp(15px,1.45vw,19px);
  line-height: 1.95;
  max-width: 29em;
  color: #faedcf;
  margin: 22px 0 24px;
}
.roleText .speech {
  padding-top: 15px;
  border-top: 1px solid #efd9a764;
}
.roleText blockquote { font-size: clamp(20px,2.15vw,27px); line-height: 1.56; max-width: none; }
.roleText .replay { color: #e0e6ab; }
.audioDot { background:#d5df92; box-shadow:0 0 0 4px #d7da9632; }
.roleTool { grid-area: tools; align-self: start; width: 100%; border: 0; padding: 0; }
.roleCast { grid-area: cast; min-width: 0; align-self: center; }
.roleCastHead {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 7px 12px; margin-bottom: 12px;
  color: #e4daa4;
}
.roleCastHead span { font-size: 12px; letter-spacing: .24em; }
.roleCastHead strong { font: 29px/1.2 var(--serif); color: #f9edce; }
.roleCastHead small { margin-left: auto; font-size: 12px; color: #e2cda2; }
.roleCastGrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.roleCastGrid.single { grid-template-columns: minmax(0,1fr); max-width: 305px; margin-inline: auto; }
.rolePortrait,.castCard {
  display: block;
  position: relative;
  text-align: left;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.rolePortrait img,.castCard img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #524838;
  box-shadow: 0 7px 24px #1b120a42;
  transition: filter .2s;
}
.rolePortrait:hover img,.castCard:hover img { filter: brightness(1.08); }
.castCard:hover,.castCard:focus-visible { border: 0; box-shadow: none; }
.rolePortrait .castLabel,.castCard .castLabel {
  position: relative; display: block;
  padding: 10px 26px 10px 1px;
  border-bottom: 1px solid var(--line);
}
.rolePortrait .castLabel strong { font: 18px var(--serif); }
.portraitExpand { position: absolute; right: 3px; top: 14px; font: 20px/1 var(--sans); color: #e2dfab; }
[data-scene=cast] .shade,[data-scene=cast-detail] .shade {
  background: linear-gradient(120deg,#775027f0,#49301bf0),linear-gradient(0deg,#3b2517,transparent);
}
.castPortrait img { border: 0; }
.castInfo .row { margin-top: 16px; }
dialog { background: #694923; border-color: #d3bc7e; }

/* A black, unframed theatre entrance — no card or outlined button. */
.intro-overlay { background: #090704; color: #dce09a; }
.prologue-caption:empty { display: none; }
.prologue-box { background: none; border: none; box-shadow: none; }
.prologue-actions { flex-direction: column; gap: 11px; margin: 0; }
.prologue-actions button:not(.primary) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  border: 0;
  padding: 9px 20px 5px;
  background: none;
  box-shadow: none;
  font: clamp(28px,6.3vw,43px)/1.4 var(--serif);
  letter-spacing: .19em;
  color: #d8d99a;
  text-indent: .19em;
}
.prologue-actions button::before {
  content: "";
  width: 54px;
  height: 25px;
  opacity: .8;
  background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 25'%3E%3Cpath d='M1 12.5H9L12.5 7L16 18L20 4L24 21L28 1L32 23L36 8L40 17L44 12.5H53' stroke='%23a5b068' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  animation: soundbreath 2.4s ease-in-out infinite;
}
@keyframes soundbreath { 0%,100% { opacity: .4; transform:scaleY(.7); } 50% { opacity: 1; transform:scaleY(1); } }
.prologue-actions button:hover { color: #f3f3bd; }
.prologue-actions small { color: #b9a678; font-size: 13px; letter-spacing: .13em; }
.prologue-skip { color: #b9a678; }
.prologue-caption[data-speaker="1"] { color: #d5be97; }

@media (max-width: 750px) {
  .shade {
    background: linear-gradient(0deg, #523719ef 0%, #916730b8 27%, #9167305b 53%, #895d2a08 73%, #3d2b1580);
  }
  .cover h1.masterTitle { margin-top: 11px; }
  .masterTitle img { width: min(92%,490px); }
  .cover .roman { letter-spacing: .5em; }
  [data-scene=role] .shade { background: linear-gradient(155deg,#543718f0,#916730e3 43%,#60401aef 100%); }
  [data-scene=role] .shot { background-size: cover; background-position: center; }
  [data-scene=role] #screen { align-content: start; align-items: start; padding-top: 15px; }
  .roleScene {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "cast" "tools";
    width: 100%;
    gap: 22px;
    margin: 0;
  }
  .roleText h2 { font-size: clamp(40px,10vw,64px); margin: 7px 0 3px; }
  .roleDesc { margin: 12px 0 14px; line-height: 1.8; font-size: 15px; }
  .roleMotto { font-size: 18px; }
  .roleText .speech { padding-top: 9px; }
  .roleText blockquote { font-size: 20px; }
  .roleCastGrid { gap: 10px; }
  .roleCastHead { margin-bottom: 10px; }
  .roleCastHead strong { font-size: 25px; }
  .roleCastGrid.single { max-width: min(76%,320px); margin-left: 0; }
  .roleTool { padding: 0 0 24px; }
  .castLabel { font-size: 17px; }
}
@media (max-height: 655px) and (min-width: 751px) {
  .roleScene { gap: 12px 30px; }
  .roleText h2 { font-size: 42px; }
  .roleDesc { margin: 12px 0; font-size: 15px; line-height: 1.7; }
  .rolePortrait img { max-height: 45svh; object-fit: contain; }
  .roleCastHead { margin-bottom: 6px; }
  .roleText blockquote { font-size: 20px; }
  .masterTitle img { width: min(48vw,460px); }
}
@media (prefers-reduced-motion: reduce) {
  .prologue-actions button::before { animation: none; opacity: .8; }
}
/* Portrait and faction form one editorial layout. On small screens portraits
   appear directly after the spoken introduction, before the longer reading. */
.roleScene { grid-template-areas: "text cast" "desc cast" "tools cast"; row-gap: 14px; }
.roleDesc { grid-area: desc; margin: 0; align-self: center; }
.roleText .speech { margin-top: 18px; }
@media (max-width: 750px) {
  .roleScene { grid-template-areas: "text" "cast" "desc" "tools"; gap: 18px; }
  .roleText .speech { margin-top: 12px; }
  .roleDesc { margin: 0; }
}

/* A choice is an understated line of dialogue, not a task card. */
[data-scene=arrival] .shade, [data-scene=ballot] .shade, [data-scene=end] .shade, [data-scene=credits] .shade {
  background: linear-gradient(95deg,#352212f5 0%,#68471fe8 43%,#9167306e 76%,#37241462 100%),
    linear-gradient(0deg,#362514d4,transparent 40%,#3b28176b);
}
.choiceScene,.endingScene,.creditsScene {
  width:min(680px,100%); min-width:0; position:relative; padding:clamp(8px,2vh,24px) 0;
}
.choiceScene h2,.endingScene h2 {
  font: clamp(32px,5vw,66px)/1.34 var(--serif); letter-spacing:.025em; margin:12px 0 12px;
}
.choiceLead {
  color:var(--paper); font:clamp(16px,1.6vw,19px)/1.85 var(--serif); max-width:34em; margin:8px 0 21px;
}
.choiceList { display:flex; flex-direction:column; border-top:1px solid var(--line); }
.choiceLine {
  display:grid; grid-template-columns:34px minmax(0,1fr) 28px; align-items:center; gap:14px;
  width:100%; text-align:left; padding:15px 10px 15px 0; min-height:68px;
  color:var(--paper); border:0; border-bottom:1px solid var(--line); background:transparent;
  transition:background .22s,color .22s,padding .22s;
}
.choiceLine:hover,.choiceLine.chosen { background:#dec58a19; color:#e6edb1; padding-left:7px; }
.choiceNum { color:#d5c695; font:12px var(--serif); letter-spacing:.11em; align-self:center; }
.choiceText strong { display:block; font:clamp(18px,1.9vw,24px)/1.4 var(--serif); font-weight:400; }
.choiceText small { display:block; color:#e0cfab; font:13px/1.55 var(--sans); margin-top:5px; }
.choiceArrow { color:#dfe0aa; font:20px/1 var(--sans); justify-self:end; }
.choiceNav { gap:16px; margin-top:clamp(15px,3vh,28px); }
.choiceNav .primary:disabled { opacity:.4; cursor:default; background:#8a713c; filter:none; }
.choiceNav .quiet { border:0; padding-inline:0; color:#d6c394; }
.choiceNav .quiet:hover { color:#f5e9c5; background:none; }
.smallLabel { color:#d9dca1; font:14px/1.5 var(--sans); letter-spacing:.15em; margin-top:24px; }
.identityScene { max-width:620px; }
.identityScene h2 { font-size:clamp(44px,6.5vw,82px); margin:9px 0 8px; }
.identitySeat { color:#e4d4ac; font:16px/1.6 var(--serif); letter-spacing:.08em; margin-bottom:18px; }
.identityStamp {
  position:absolute; right:clamp(12px,6vw,70px); top:clamp(35px,10vh,100px); z-index:-1;
  color:#cf9472; opacity:.54; font:clamp(28px,3.6vw,46px)/1.1 var(--serif); letter-spacing:.12em;
  width:2.65em; padding:.15em; border:2px solid currentColor; text-align:center;
  rotate:-10deg; transform:translateY(-15%);
}
.experienceNote { display:block; color:#d3c09a; font:12px/1.65 var(--sans); margin-top:14px; }
.seatIdentity { color:#d1c29b; font:11px/1.5 var(--sans); text-align:right; }
.seatIdentity strong { color:#e2e7ad; font:17px/1.5 var(--serif); font-weight:400; }
.ready { justify-content:flex-end; }
.voteHeader { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.voteProgress { display:flex; gap:5px; }
.voteProgress i { width:24px; height:2px; background:#c7b77d4d; }
.voteProgress .active { background:#dce2a3; }
.stakes { font:clamp(13px,1.4vw,16px)/1.5 var(--serif); color:#dfe4a3; letter-spacing:.08em; }
.voteScene h2 { margin-top:9px; font-size:clamp(30px,4.4vw,55px); }
.ticketBack { margin-top:20px; }
.ticketBack .quiet { border:0; padding-left:0; }
.endingScene h2 { font-size:clamp(45px,7vw,92px); color:#e1e3a5; }
.endingLine { font:clamp(20px,2.4vw,29px)/1.6 var(--serif); color:#f4e5c2; margin-bottom:10px; }
.endingRule { width:54px; height:1px; background:var(--accent); margin:23px 0 14px; }
.endingTag { font:18px/1.7 var(--serif); color:#e2d6a5; }
.creditsScene { max-width:730px; }
.creditsScene h2 { margin:8px 0 0; }
.creditsScene h2 img { display:block; width:min(300px,65%); height:auto; filter:drop-shadow(0 3px 15px #2515097d); }
.creditsSubtitle { font:16px/1.6 var(--serif); letter-spacing:.22em; color:var(--accent); margin-bottom:10px; }
.creditsInvite { font:clamp(22px,3vw,35px)/1.5 var(--serif); color:var(--paper); margin-bottom:20px; }
.creditsFacts {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; border-top:1px solid var(--line);
}
.creditsFacts>div { padding:13px 0 15px; border-bottom:1px solid var(--line); }
.creditsFacts small { display:block; font:12px/1.5 var(--sans); letter-spacing:.14em; color:#d9c8a1; margin-bottom:5px; }
.creditsFacts strong { font:clamp(16px,2vw,23px)/1.55 var(--serif); font-weight:400; color:var(--paper); display:block; }
.marks i { width:clamp(12px,2vw,21px); }
@media (max-width: 750px) {
  [data-scene=arrival] .shade,[data-scene=ballot] .shade,[data-scene=end] .shade,[data-scene=credits] .shade {
    background:linear-gradient(10deg,#493018fa 2%,#775124e8 59%,#372716c7 100%);
  }
  [data-scene=arrival] #screen,[data-scene=ballot] #screen,[data-scene=end] #screen,[data-scene=credits] #screen {
    align-items:safe center; align-content:safe center;
  }
  .choiceScene,.endingScene,.creditsScene { padding:12px 0 16px; }
  .choiceScene h2 { font-size:clamp(30px,7.5vw,45px); }
  .choiceLead { line-height:1.7; margin:6px 0 17px; }
  .choiceLine { min-height:61px; grid-template-columns:24px minmax(0,1fr) 20px; gap:9px; padding:10px 5px 10px 0; }
  .choiceText strong { font-size:18px; }
  .choiceText small { font-size:12px; margin-top:3px; }
  .choiceNav { margin-top:16px; gap:12px; }
  .choiceNav .primary { padding:11px 15px; font-size:14px; }
  .choiceNav .quiet { font-size:14px; }
  .seatIdentity strong { font-size:15px; }
  .identityStamp { right:16px; top:42px; opacity:.35; }
  .identityScene h2 { font-size:clamp(42px,10vw,61px); }
  .creditsFacts { column-gap:14px; }
  .creditsFacts strong { font-size:16px; }
  .creditsScene h2 img { width:min(260px,65%); }
  .creditsInvite { font-size:23px; }
  .voteProgress i { width:15px; }
}
@media (max-height:655px) {
  .choiceScene,.endingScene,.creditsScene { padding-block:8px; }
  .choiceScene h2 { margin:7px 0; font-size:clamp(28px,4.8vw,40px); }
  .choiceLead { margin:5px 0 12px; font-size:15px; line-height:1.65; }
  .choiceLine { min-height:56px; padding-block:8px; }
  .choiceNav { margin-top:12px; }
  .voteHeader { margin-bottom:6px; }
  .creditsScene h2 img { width:min(220px,60%); }
  .creditsInvite { margin-bottom:10px; }
  .creditsFacts>div { padding:8px 0; }
  .experienceNote { margin-top:9px; }
}
@media (max-width:365px) {
  .marks { gap:3px; }
  .marks i { width:9px; }
  .creditsFacts { grid-template-columns:1fr; }
}

/* Use the same regular weight for all live typography. Keep the supplied
   brush-script logo and actor artwork untouched. */
body { font-weight:400; font-synthesis:none; }
#stage b,#stage strong,#stage button,#prologue button,#prologue p,#prologue small { font-weight:400; }

/* Full-viewport theatre cues. Everything is decorative, pointer-transparent,
   and transform/opacity animated, so it never blocks the interaction. */
#theatreFX {
  position:fixed; inset:0; z-index:40; overflow:hidden; pointer-events:none;
  visibility:hidden; isolation:isolate;
  --fx-x:50%; --fx-y:50%;
}
#theatreFX[data-effect] { visibility:visible; }
#theatreFX>i,#theatreFX>span { position:absolute; display:block; opacity:0; pointer-events:none; }
#theatreFX .fxGlow,#theatreFX .fxDust { inset:0; }
#theatreFX .fxLeft,#theatreFX .fxRight {
  top:0; bottom:0; width:50.12%;
  background:
    linear-gradient(90deg,#100b07 0%,#291b10 24%,#382514 53%,#1b1109 95%),
    #27180d;
  box-shadow:inset 0 0 0 1px #8661326b,inset 0 0 45px #0008;
}
#theatreFX .fxLeft { left:0; border-right:1px solid #c39b54b0; }
#theatreFX .fxRight { right:0; border-left:1px solid #c39b54b0; }
#theatreFX .fxLeft::before,#theatreFX .fxRight::before {
  content:""; position:absolute; inset:9% 8%; border:1px solid #95713f65;
  box-shadow:inset 0 0 0 5px #27190d,0 0 0 4px #100a06,inset 0 0 22px #110a07b0;
}
#theatreFX .fxCrack {
  left:var(--fx-x); top:var(--fx-y); width:clamp(160px,50vw,390px); aspect-ratio:1;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23d2ab72' stroke-width='.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M100 100 89 78 81 74 75 48 66 42 60 20M89 78 63 71 50 60M100 100 119 91 130 63 141 56 153 30M130 63 155 69 174 54M100 100 116 120 144 134 147 149 181 165M116 120 113 147 130 177M100 100 76 113 68 136 48 152 21 154M76 113 47 105 22 118'/%3E%3C/g%3E%3C/svg%3E");
  transform:translate(-50%,-50%); filter:drop-shadow(0 0 3px #e3bc7b66);
}
#theatreFX[data-effect="wax"] .fxGlow {
  background:radial-gradient(circle at var(--fx-x) var(--fx-y),#e4c58925 0%,#bc7f3b17 26%,#110b085e 78%,#0b070664 100%);
  animation:fxWaxGlow .85s ease-out both;
}
#theatreFX[data-effect="wax"] .fxCrack { animation:fxWaxCrack .72s cubic-bezier(.18,.68,.2,1) both; }
#theatreFX .fxDust {
  background:
    radial-gradient(circle at 14% 29%,#f2d49c99 0 1px,transparent 2px),
    radial-gradient(circle at 24% 73%,#e4b3718c 0 1px,transparent 2px),
    radial-gradient(circle at 38% 16%,#f2d49c73 0 1px,transparent 2px),
    radial-gradient(circle at 47% 87%,#e4b37182 0 1px,transparent 2px),
    radial-gradient(circle at 68% 22%,#f2d49c99 0 1px,transparent 2px),
    radial-gradient(circle at 79% 63%,#dca76f8c 0 1px,transparent 2px),
    radial-gradient(circle at 86% 43%,#e4b3718c 0 1.5px,transparent 2.5px),
    radial-gradient(circle at 60% 74%,#f2d49c73 0 1px,transparent 2px);
}
#theatreFX[data-effect="wax"] .fxDust { animation:fxDustRise .9s ease-out both; }
#theatreFX[data-effect="door"] .fxLeft { animation:fxOpenLeft .93s cubic-bezier(.25,.58,.2,1) both; }
#theatreFX[data-effect="door"] .fxRight { animation:fxOpenRight .93s cubic-bezier(.25,.58,.2,1) both; }
#theatreFX[data-effect="door"] .fxGlow {
  background:linear-gradient(90deg,transparent 30%,#ebc17712 42%,#f0d3a22c 50%,#ebc17712 58%,transparent 70%);
  animation:fxDoorLight .98s ease-out both;
}
#theatreFX[data-effect="vote"] .fxGlow {
  background:radial-gradient(ellipse at var(--fx-x) var(--fx-y),#ecd2a415 0%,transparent 25%,#100a06ae 76%,#080503c0 100%);
  animation:fxVoteLight 1.04s ease-in-out both;
}
#theatreFX[data-effect="curtain"] .fxGlow {
  background:radial-gradient(ellipse at 50% 42%,#2a190b 0%,#0a0705 58%,#070504 100%);
  animation:fxCurtain 1.1s cubic-bezier(.22,.42,.25,1) both;
}
#theatreFX[data-effect="curtain"] .fxDust { animation:fxDustRise 1.12s ease-out both; }
@keyframes fxWaxGlow { from{opacity:.75} 30%{opacity:1} to{opacity:0} }
@keyframes fxWaxCrack { 0%{opacity:.06;transform:translate(-50%,-50%) scale(.75)} 16%{opacity:.7} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.25)} }
@keyframes fxDustRise { 0%{opacity:0;transform:translateY(7px) scale(.985)} 27%{opacity:.7} 100%{opacity:0;transform:translateY(-28px) scale(1.025)} }
@keyframes fxOpenLeft { 0%,13%{opacity:1;transform:translateX(0)} 100%{opacity:1;transform:translateX(-101%)} }
@keyframes fxOpenRight { 0%,13%{opacity:1;transform:translateX(0)} 100%{opacity:1;transform:translateX(101%)} }
@keyframes fxDoorLight { 0%{opacity:0} 29%{opacity:1} 100%{opacity:0} }
@keyframes fxVoteLight { 0%{opacity:0} 27%{opacity:.78} 62%{opacity:.84} 100%{opacity:0} }
@keyframes fxCurtain { 0%,16%{opacity:.98} 100%{opacity:0} }
@media(prefers-reduced-motion:reduce) {
  #theatreFX,#theatreFX>i,#theatreFX>span { visibility:hidden !important; animation:none !important; }
}

/* One text face for the entire production UI. Type hierarchy is by size,
   spacing and colour, never synthetic bold or mixed system fonts. */
body,button,input,select,textarea { font-family:var(--serif); font-weight:400; }
#stage :is(h1,h2,h3,p,small,span,strong,b,button,blockquote),#prologue :is(p,small,button) { font-weight:400; }
body { font-synthesis: none; text-rendering: optimizeLegibility; }
.guide,.roleDesc,.choiceLead { letter-spacing:.025em; }
.castLabel small,.choiceText small,.roleCastHead small,.experienceNote { letter-spacing:.04em; }

/* Brass admission controls, restrained hairline secondary actions and
   visible interaction states, consistent from the invitation to the ballot. */
.primary {
  position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; gap:11px; padding:12px 24px;
  border:1px solid #e1bf84; border-radius:3px;
  background:linear-gradient(135deg,#d4b374 0%,#bd9253 54%,#a87336 100%);
  box-shadow:0 3px 0 #5c3a1c,0 9px 23px #1e110d42,inset 0 1px 0 #f5dba880;
  color:#2e1c10; font:16px/1.45 var(--serif); letter-spacing:.10em;
  transition:background .2s,box-shadow .2s,transform .17s,filter .2s;
  white-space:normal; text-align:center;
}
.primary::after {
  content:""; position:absolute; inset:3px; z-index:-1;
  border-top:1px solid #f5dfb02d; border-bottom:1px solid #53320f25;
  border-radius:1px; pointer-events:none;
}
.primary:hover:not(:disabled) { filter:brightness(1.07); transform:translateY(-1px); box-shadow:0 4px 0 #5c3a1c,0 12px 25px #1e110d58,inset 0 1px 0 #f5dba8ac; }
.primary:active:not(:disabled) { transform:translateY(2px); box-shadow:0 1px 0 #5c3a1c,0 3px 10px #1e110d3b; }
.primary:disabled,.choiceNav .primary:disabled { opacity:.45; cursor:default; filter:none; background:#b09669; box-shadow:0 1px 0 #5c3a1c; }
.playmark { border-left-color:#422811; }
.row .primary { font-size:15px; padding:11px 20px; }
.stationery .primary { background:linear-gradient(135deg,#a8773e,#815223); color:#fff0cb; border-color:#915e2c; box-shadow:0 3px 0 #65421e,0 6px 12px #53351b20,inset 0 1px 0 #f7d7a740; }

#stage button.quiet {
  display:inline-flex; align-items:center; justify-content:center; position:relative;
  min-height:44px; padding:8px 10px;
  border:0; border-radius:0; background:transparent; color:#ebdab1;
  font:15px/1.4 var(--serif); letter-spacing:.03em;
  transition:color .2s,background .2s;
}
#stage button.quiet::after {
  content:""; position:absolute; bottom:5px; left:10px; right:10px; height:1px;
  background:#d4b47770; transition:background .2s,transform .2s; transform-origin:left center;
}
#stage button.quiet:hover { color:#fff1cc; background:#dcba7520; }
#stage button.quiet:hover::after { background:#f4dca7; transform:scaleX(1.04); }
#stage button.quiet:active { color:#d4b477; }

.tools { gap:6px; }
.tools button,.tools #sound {
  position:relative; min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  border:0; border-radius:0; background:transparent; padding:6px 9px; color:#f0dfbd;
  letter-spacing:.04em; font-family:var(--serif); transition:color .2s;
}
.tools button::after {
  content:""; position:absolute; left:9px; right:9px; bottom:5px; height:1px;
  background:#dbc186; transform:scaleX(0); transition:transform .2s;
}
.tools button:hover { color:#fff2d2; }
.tools button:hover::after { transform:scaleX(1); }
.tools #sound.on { color:#e0e5ab; }
.tools #sound { gap:6px; }

.seatCard {
  border:1px solid #c6a66c80; border-radius:3px; overflow:hidden;
  box-shadow:0 4px 12px #1d120b24; transition:filter .25s,border-color .25s,transform .18s,box-shadow .25s;
}
.seatCard::after {
  content:"↗"; position:absolute; right:12px; bottom:15px; color:#e9d4a8;
  font:17px/1 var(--serif); opacity:.82; transition:transform .2s,color .2s;
}
.seatCard span { padding-right:15px; }
.seatCard:hover,.seatCard:focus-visible { border-color:#eed5a2; box-shadow:0 6px 20px #1a100a4d; transform:translateY(-2px); }
.seatCard:hover::after { transform:translate(2px,-2px); color:#fff1c9; }
.seatCard:active { transform:translateY(1px); }

.choiceLine { position:relative; border-radius:1px; padding-left:3px; transition:background .2s,color .2s; }
.choiceLine:hover,.choiceLine.chosen { padding-left:3px; background:linear-gradient(90deg,#dec58a22,transparent 95%); }
.choiceLine::before { content:""; position:absolute; top:9px; bottom:9px; left:0; width:1px; background:#d6bf85; opacity:0; transition:opacity .2s; }
.choiceLine:hover::before,.choiceLine.chosen::before { opacity:.85; }
.choiceArrow {
  display:grid; place-items:center; width:27px; height:27px; border:1px solid #d9c18b65;
  border-radius:50%; font:14px/1 var(--serif); transition:background .2s,color .2s,border-color .2s;
}
.choiceLine.chosen .choiceArrow { background:#d6dda1; border-color:#d6dda1; color:#40371d; }
.choiceLine:hover .choiceArrow { border-color:#ebd8a9; }
.replay { gap:9px; color:#e3d5a9; padding:7px 2px; }
.replay .audioDot { display:grid; place-items:center; width:27px; height:27px; background:transparent; border:1px solid #c8b77f; box-shadow:none; flex-shrink:0; }
.replay .audioDot::after { content:""; width:0; height:0; margin-left:2px; border-block:4px solid transparent; border-left:6px solid #d9dda3; }
.replay:hover { color:#f4edcb; }
.replay:hover .audioDot { background:#c5c88830; border-color:#e6dfaa; }
.portraitExpand {
  display:grid; place-items:center; width:24px; height:24px; top:10px; right:0;
  border:1px solid #d8c38a6b; border-radius:50%; font-size:13px; transition:color .2s,background .2s;
}
.rolePortrait:hover .portraitExpand,.castCard:hover .portraitExpand { background:#e3cea533; color:#fff2d0; }
.paperTicket { background:linear-gradient(125deg,#f0d9a2,#dcb677); box-shadow:0 6px 0 #8e6331,0 15px 26px #170b045e; }
.paperTicket:hover { filter:brightness(1.04); }
#menu { background:linear-gradient(145deg,#4c321c,#352315); border-color:#b9975f; box-shadow:0 12px 60px #150d0966; }
#chapters button { position:relative; color:#eddeb8; transition:color .2s,background .2s; }
#chapters button::after { content:"↗"; position:absolute; right:2px; color:#d4ba80; font:13px var(--serif); }
#chapters button:hover { color:#f5edc9; background:#d1ad6f16; }
#close { min-height:36px; padding:4px 8px; }
#close:hover,.prologue-skip:hover { color:#f9edca; }
#prologuePlay:active { transform:scale(.98); }
@media (max-width:650px) {
  .primary { padding:11px 19px; }
  .row .primary { padding:10px 15px; font-size:14px; }
  #stage button.quiet { padding-inline:7px; font-size:14px; }
  #stage button.quiet::after { left:7px; right:7px; }
  .tools { gap:0; }
  .tools button,.tools #sound { font-size:12px; padding-inline:6px; }
  .tools #sound { gap:4px; }
  .seatCard::after { right:8px; bottom:10px; font-size:15px; }
  .seatCard span { padding-right:10px; }
  .choiceLine { grid-template-columns:24px minmax(0,1fr) 24px; }
  .choiceArrow { width:24px; height:24px; font-size:12px; }
}
@media (max-width:365px) {
  .tools button,.tools #sound { padding-inline:4px; letter-spacing:0; }
  .brand>span { font-size:14px; }
}
/* The viewport itself stays fixed; only the scene content is scrollable.
   Unlike overflow:hidden, clip does not allow focus-driven stage scrolling. */
#stage { overflow:clip; }
.primary:hover:not(:disabled) { background:linear-gradient(135deg,#e1c389 0%,#c69c60 54%,#ae7a3f 100%); }
.stationery .primary:hover:not(:disabled) { background:linear-gradient(135deg,#b4864b,#8e5e2a); }
