:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;background:#100d18;color:#faf6ff;--ink:#211333;--line:#58446e;--gold:#fbd477;--pink:#ffa8d2}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:radial-gradient(ellipse at 65% 0,#392151 0,transparent 55%)}
main{width:min(100% - 2rem,72rem);margin:auto;padding-bottom:4rem}
nav{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;border-bottom:1px solid var(--line);padding:1.15rem 0}
a{color:var(--gold)}
header{padding:clamp(1.5rem,5vw,3.5rem) 0 .5rem}
.kicker{color:var(--gold);font-size:.82rem;font-weight:800;letter-spacing:.14em}
h1{margin:.15rem 0;font-size:clamp(2.7rem,8vw,6.5rem);line-height:1;letter-spacing:-.06em}
h2,h3,p{margin:.35rem 0 .7rem}
header p{max-width:48rem}
.stage-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(15rem,1fr);gap:1rem;align-items:start}
.panel{border:1px solid var(--line);background:#191322;border-radius:1rem;padding:clamp(.9rem,3vw,1.4rem);margin:1rem 0}
.stage-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.4rem;color:var(--pink);font-weight:750;margin-bottom:.65rem}
.screen{overflow:hidden;border-radius:.65rem;border:1px solid var(--line);aspect-ratio:16/9;background:#08060d}
.screen video,.screen canvas{display:block;width:100%;height:100%;object-fit:contain}
#standby{width:100%;height:100%;display:grid;align-content:center;justify-items:center;text-align:center;background:radial-gradient(ellipse at 50% 100%,#6a2d6f,#1b112c 50%,#090810 88%)}
#standby strong{font-size:clamp(1.65rem,5vw,4rem);letter-spacing:-.03em;color:var(--gold)}
#standby span{color:#f5d9f1}
label{display:block;font-weight:650}
input:not([type=checkbox]){display:block;width:100%;background:#0d0a15;border:1px solid var(--line);padding:.65rem;color:inherit;font:inherit;border-radius:.45rem}
input[type=checkbox]{accent-color:var(--gold)}
.fields,.controls{display:flex;flex-wrap:wrap;gap:.65rem;margin:.7rem 0}
.fields label{flex:1 1 12rem}
form{display:grid;gap:.65rem}
button,.button{appearance:none;cursor:pointer;background:var(--gold);border:1px solid transparent;border-radius:.45rem;color:#271918;font:inherit;font-weight:750;padding:.58rem .82rem;text-decoration:none;display:inline-block;width:max-content;max-width:100%}
button:disabled{opacity:.48;cursor:default}
.secondary,.seats button{background:#241835;color:#fff;border-color:var(--line)}
.judge-seats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:.75rem 0}
.judge-seats select{width:100%;display:block;padding:.5rem;margin:.3rem 0;background:#241835;color:#fff;border:1px solid var(--line);border-radius:.45rem;font:inherit}
.entries{display:grid;gap:.7rem}
.entry{padding:.9rem;border:1px solid var(--line);border-radius:.7rem;background:#100c19;margin-top:.7rem}
.entry video{max-width:min(100%,34rem);width:100%;display:block;margin-top:.6rem}
.entry audio{max-width:100%;margin-top:.4rem}
#notice:empty{display:none}
#notice{border-left:3px solid var(--pink);padding-left:.7rem;margin-top:1rem}
@media(max-width:730px){.stage-layout{grid-template-columns:1fr;gap:0}.stage-layout .panel{margin:.55rem 0}}
.live-event{width:max-content;max-width:100%;padding:.45rem .85rem;border:1px solid #ff779e;border-radius:99px;background:#671d38;color:#fff;font-weight:850;box-shadow:0 0 22px #ff4c8566}
#performance-screen{position:relative}
.curtain{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;pointer-events:none}
.curtain span{position:absolute;inset:0 auto 0 0;width:51%;background:repeating-linear-gradient(90deg,#410d2a,#862950 9%,#5f1637 17%);transition:transform 1.1s ease-in-out}
.curtain span:nth-child(2){left:auto;right:0}
.curtain strong{position:relative;color:var(--gold);font-size:clamp(.85rem,3vw,2.25rem);text-shadow:0 2px 9px #190510;transition:opacity .35s}
.curtain.revealed span:first-child{transform:translateX(-100%)}
.curtain.revealed span:nth-child(2){transform:translateX(100%)}
.curtain.revealed strong{opacity:0}
#performer-preview{max-width:34rem}
@media(prefers-reduced-motion:reduce){.curtain span,.curtain strong{transition:none}}

.stage-marquee{margin:1rem 0 1.25rem;padding:clamp(1.15rem,4vw,2rem);text-align:center;border:3px double #ffc369;border-radius:.7rem;background:radial-gradient(ellipse at top,#4b1b34,#170917 72%);box-shadow:0 0 1.6rem #f3597044,inset 0 0 1.2rem #eb616b2b}
.marquee-brand{color:#ffd894;letter-spacing:.14em;text-transform:uppercase;font-size:.8rem;font-weight:800}
.stage-marquee h2{margin:.2rem 0;color:#ffd783;font-size:clamp(1.6rem,5vw,3.5rem);line-height:1;text-transform:uppercase;text-shadow:0 0 .9rem #d7704a88}
#marquee-next{color:#fff2e6;font-weight:850;font-size:clamp(1.45rem,4vw,2.8rem);overflow-wrap:anywhere}
#marquee-lineup{display:table;margin:.65rem auto 0;padding-inline-start:2rem;text-align:left;color:#f9d5de;max-width:100%;overflow-wrap:anywhere}
#marquee-lineup li{padding:.2rem .4rem}
.performance-live .stage-layout{grid-template-columns:minmax(0,1fr)}
.performance-live .stage-panel{padding:clamp(.5rem,2vw,1rem)}
#performer-preview{max-width:52rem}
#performer .fields select{display:block;width:100%;padding:.58rem;border:1px solid var(--line);border-radius:.45rem;background:#241835;color:#fff;font:inherit}
#performer .fields small{display:block;color:#ded0e8;font-weight:400}
#performer input[type=range]{accent-color:var(--gold);padding:0}
.intermission-card{position:absolute;z-index:2;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 100%,#6f2349,#1b0e23 75%);color:var(--gold);font-size:clamp(1.7rem,6vw,4rem);font-weight:800;pointer-events:none}
#rehearsal-invite{max-width:36rem;margin-block:1rem}
#copy-rehearsal{margin-top:.5rem}
#break-player{position:absolute;z-index:4;inset:0;background:#000}
#break-player video,#break-player iframe{width:100%;height:100%;object-fit:contain;border:0}
#break-controls{margin-block:1rem}

#stage-scoreboard{margin-top:1rem;padding:.9rem 1rem;background:#15121e;border:1px solid #494157;border-radius:.75rem}
.score-head,.score-labels{display:flex;justify-content:space-between;gap:.5rem}
.score-head strong,#stage-score-points{color:var(--gold);font-weight:800}
.score-meter{height:.9rem;margin:.55rem 0;border-radius:1rem;overflow:hidden;background:linear-gradient(to right,#3b2332 0 60%,#4c3c22 60% 80%,#243e37 80% 100%)}
#stage-score-fill{display:block;height:100%;width:0;background:#f3c356;transition:width .25s ease}
.score-labels{font-size:.8rem;color:#dfd5e7}
#stage-score-votes{margin:.45rem 0 0;font-size:.85rem}

.stage-screen-ad { position:absolute; inset:0; z-index:3; }
.stage-ad-preview { aspect-ratio:16/9; width:min(100%,36rem); }
.stage-flyer { height:100%; box-sizing:border-box; display:grid; align-content:center; gap:.25em; overflow:hidden; padding:5% 8%; border:1px solid #ffffff40; color:var(--flyer-ink); background:var(--flyer-bg); container-type:inline-size; }
.stage-flyer[data-theme=plum] { --flyer-ink:#fff1fc; --flyer-accent:#ffa8d2; --flyer-bg:radial-gradient(ellipse at 100% 0,#913975,#2c1539 60%,#171020); }
.stage-flyer[data-theme=gold] { --flyer-ink:#fff7d4; --flyer-accent:#ffe078; --flyer-bg:linear-gradient(138deg,#15100b 20%,#4b3115 68%,#795321); }
.stage-flyer[data-theme=green] { --flyer-ink:#edffbc; --flyer-accent:#d2fc64; --flyer-bg:radial-gradient(ellipse at 100% 90%,#38684c,#102b2a 65%,#0c1c24); }
.stage-flyer[data-theme=custom] { --flyer-ink:#effaff; --flyer-accent:#9ee8ff; --flyer-bg:linear-gradient(145deg,#111c39,#215066); }
.stage-flyer p { margin:0; font-size:clamp(.65rem,2.8cqi,1.2rem); }
.stage-flyer .flyer-brand, .stage-flyer .flyer-cta { color:var(--flyer-accent); font-weight:850; letter-spacing:.07em; }
.stage-flyer strong { display:block; font-size:clamp(1rem,7.2cqi,4.3rem); line-height:.97; letter-spacing:-.05em; overflow-wrap:anywhere; }
.stage-flyer .flyer-detail { max-width:42ch; }
.stage-flyer .flyer-cta { margin-top:.45em; }
.stage-program { margin:.85rem 0; }
.stage-program summary { cursor:pointer; color:var(--gold); font-weight:750; }
.stage-program select, #stage-booking select, #stage-booking textarea { display:block; width:100%; font:inherit; padding:.6rem; background:#110c19; color:inherit; border:1px solid var(--line); border-radius:.4rem; }
#stage-custom-flyer { min-width:0; border-color:var(--line); }
#curtain-show { max-width:94%; overflow-wrap:anywhere; text-align:center; }
