:root {
  color-scheme: dark;
  --ground:#1b111b;
  --panel:#281a28;
  --paper:#faead7;
  --muted:#d1b4c3;
  --gold:#f4c17c;
  --line:#674858;
  --faint:#503747;
  font:16px/1.5 system-ui, sans-serif;
  background:var(--ground);
  color:var(--paper);
}
*,*::before,*::after { box-sizing:border-box }
body { margin:0; background:radial-gradient(ellipse at 55% 0%, #3b2233 0, transparent 44rem),var(--ground) }
button { font:inherit; cursor:pointer; color:inherit }
button:disabled { cursor:default }
button:focus-visible,a:focus-visible { outline:3px solid #bce3f8; outline-offset:3px }
[hidden] { display:none !important }
p,h1,h2,ol { margin:0 }
.shell { width:min(1100px, calc(100% - 48px)); margin:auto }
.top { padding:34px 0 23px; display:flex; gap:18px; align-items:flex-end; justify-content:space-between }
.eyebrow { text-transform:uppercase; letter-spacing:.19em; font-size:.7rem; font-weight:750; color:var(--gold) }
.diamond { display:inline-block; width:9px; height:9px; background:var(--gold); margin:0 10px 1px 3px; transform:rotate(45deg); border:2px solid #7b543e }
h1,h2 { font-family:"Iowan Old Style", Palatino, Georgia, serif; font-weight:500; line-height:1.06 }
h1 { font-size:clamp(3rem,8.5vw,5.55rem); letter-spacing:-.058em; margin:1px 0 7px }
.title > p:last-child,.act-heading p:not(.eyebrow),.programme-heading p { color:var(--muted); font-size:.92rem }
.acts { display:flex; gap:6px; padding-bottom:2px }
.acts button { width:39px; height:39px; border:1px solid var(--faint); border-radius:6px; background:#251725; font-size:.88rem }
.acts button:hover { border-color:var(--gold) }
.acts button[aria-current] { background:var(--gold); border-color:var(--gold); color:#2d1920; font-weight:800 }
.acts button.cleared:not([aria-current]) { border-color:#a87b54; color:var(--gold) }
.acts button.cleared::after { content:""; display:block; width:8px; height:2px; background:currentColor; margin:-2px auto 0 }
.theatre { position:relative; isolation:isolate; border:1px solid #957053; border-radius:13px; overflow:hidden; background:#3d2330; box-shadow:0 12px 55px #0f080f99 }
.scenery { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 56% }
.theatre::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#1c1025bc,#22132524 86%),linear-gradient(0deg,#1f1423e8,#27142222 50%,#23141baa); pointer-events:none }
.theatre-inner { padding:25px clamp(16px,6vw,75px) 21px }
.act-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:19px }
.act-heading h2 { font-size:clamp(1.9rem,4.5vw,3.4rem); margin:4px 0 5px; letter-spacing:-.035em }
.act-heading .eyebrow { color:#ffcd8b }
.score { display:flex; gap:9px; align-items:center; border:1px solid #896358; border-radius:6px; background:#2a1925de; padding:5px 11px; white-space:nowrap }
.score output { color:var(--gold); font:1.9rem Georgia,serif }
.score span { font-size:.77rem; font-weight:700 }
.score small { display:block; color:var(--muted); font-size:.67rem; font-weight:500 }
.rack { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(6px,1.4vw,16px) }
.slot { display:flex; flex-direction:column; position:relative; align-items:stretch; gap:3px; padding:8px 8px 7px; min-width:0; text-align:left; border:1px solid #635063; border-radius:8px; background:#281926ed; overflow:hidden }
.slot:first-child { border-style:dashed; background:#1e1421ec }
.slot.changeable { border-color:#c99763; background:#362131; box-shadow:inset 0 0 0 1px #dca76c2b }
.slot.changeable:hover { background:#4b2a3f; border-color:var(--gold); transform:translateY(-2px) }
.slot.suggested,.button.suggested { outline:3px solid #a5d0ed; outline-offset:1px }
.slot-heading { display:flex; justify-content:space-between; align-items:center; gap:2px; font-weight:750; font-size:.9rem; min-height:25px; padding:0 3px }
kbd { font:600 .68rem/1.2 system-ui,sans-serif; padding:2px 4px; border:1px solid currentColor; border-radius:3px; opacity:.74 }
.slot img { display:block; width:100%; max-height:157px; height:auto; object-fit:contain; aspect-ratio:1; background:#211222; border-radius:4px; margin:auto }
.outfit,.availability { padding:0 3px }
.outfit { font-family:Palatino, Georgia, serif; font-size:1.15rem }
.costume-name,.costume-dot { color:var(--ink) }
.availability { color:#d1b7cb; font-size:.73rem; min-height:1.2em }
.changeable .availability { color:#f8c98d; font-weight:700 }
.feedback { margin:15px 0 11px; min-height:2.4rem; display:flex; align-items:center; padding:6px 10px; background:#261827ee; border-left:3px solid #aa765c; border-radius:0 5px 5px 0; font-size:.85rem }
.feedback[data-result="missed"] { border-color:#fb92a7; color:#ffc8d2 }
.feedback[data-result="complete"] { border-color:#adcc9f; color:#dfefcc }
.bar,.primary-actions,.secondary-actions { display:flex; gap:8px; align-items:center }
.bar { flex-wrap:wrap; justify-content:space-between }
.secondary-actions { flex-wrap:wrap }
.button { display:inline-flex; gap:9px; align-items:center; justify-content:center; padding:8px 12px; border-radius:5px; border:1px solid #997988; background:#342231; min-height:40px; font-size:.8rem; font-weight:700 }
.button:hover:not(:disabled) { filter:brightness(1.2) }
.button:disabled { opacity:.5 }
.button.primary { background:#f4c17c; color:#2d1920; border-color:#f4c17c }
.programme { margin-top:25px }
.programme-heading { display:flex; justify-content:space-between; gap:10px; align-items:end; margin-bottom:12px }
.programme-heading h2 { font-size:1.85rem; margin-bottom:3px }
.live-key { white-space:nowrap; color:var(--muted); font-size:.68rem }
.live-key span { display:inline-block; width:7px; height:7px; margin-right:3px; background:var(--gold); border-radius:50% }
.cue-list { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(156px,1fr)); gap:7px; padding:0 }
.cue-list li { background:var(--panel); border:1px solid var(--faint); border-radius:6px; padding:7px 10px 9px; color:var(--muted); min-height:72px; line-height:1.45 }
.cue-list li[aria-current] { border-color:var(--gold); background:#422638 }
.cue-list li.passed strong::after { content:" •"; color:#cbd7a0 }
.cue-list strong { display:block; text-transform:uppercase; letter-spacing:.12em; font-size:.71rem; color:var(--paper) }
.wing-list { display:block; font-size:.76rem; color:#f2cc9d; margin-bottom:4px }
.cue-row { display:flex; justify-content:space-between; gap:5px; font-size:.75rem }
footer { padding:21px 0; font-size:.72rem; color:var(--muted) }
footer a { color:var(--gold) }
@media (max-width:680px) {
  .shell { width:calc(100% - 24px) }
  .top { flex-direction:column; align-items:flex-start; gap:11px; padding:23px 0 15px }
  .acts button { width:35px; height:35px }
  .theatre-inner { padding:15px 10px }
  .slot { padding:5px }
  .slot img { max-height:120px }
  .score { padding:4px 7px; gap:5px }
  .score output { font-size:1.45rem }
  .score span { font-size:.7rem }
  .score small { font-size:.59rem }
  .cue-list { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .programme-heading { align-items:start }
}
@media (max-width:410px) {
  .rack { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .slot img { max-height:92px }
  .slot-heading { min-height:20px }
  .bar,.secondary-actions,.primary-actions { gap:5px }
  .button { padding:7px 8px; gap:4px }
  .button kbd { display:none }
  .programme-heading .live-key { display:none }
}
@media (prefers-reduced-motion: no-preference) { .slot { transition:transform 130ms ease,background 130ms ease } }
