/* Show UI (fix pass 4). The stage is the page; type recedes. Codes are 10-11 px Courier and get their 44 px targets from
   padding, never from font size. No rounded cards, no blur, no shadows on boxes, no pills. Only fixed accent: sign red. */

/* pyro / effect spill reaches the type: --spill / --spill-color are set on the element itself by core/stagehost.js */
#home,#song-title{color:color-mix(in srgb,#e4e4db,var(--spill-color,#ff7420) calc(var(--spill,0)*38%))}
button,a,select,input{touch-action:manipulation}
:focus-visible{outline:2px solid #f5f5e9;outline-offset:4px}

/* --- the LED screen: a wash (white unless the film shows pink / red), the photograph over it, pixel grid on top. No logo. */
#jumbo{background:#050505}
#jumbo i{position:absolute;inset:0;background:#f1efe8;transition:background-color 1.6s}
#jumbo[data-screen="pink"] i{background:#ff3fae}
#jumbo[data-screen="red"] i{background:#e3120c}
#jumbo img{position:relative;opacity:0;transition:opacity 1.8s}
#jumbo.has-image img{opacity:.6}
#jumbo[data-screen="pink"] img,#jumbo[data-screen="red"] img{opacity:0}
#jumbo:after{z-index:2}#jumbo span{z-index:3;background-image:repeating-linear-gradient(0deg,transparent 0 2px,#0000002e 2px 3px),repeating-linear-gradient(90deg,transparent 0 2px,#0000001f 2px 3px)}
.entered #jumbo{opacity:.9}
body.no-stage #jumbo,body.stage-lost #jumbo{display:none}
/* stage facts pass 5: IMAG on the flown LED drum. Strips of the jumbotron's own picture, placed on the cylinder by stagehost.js, behind the canvas. */
#drum-imag{position:fixed;z-index:1;left:0;top:0;width:0;height:0;pointer-events:none;filter:grayscale(1) contrast(1.18) brightness(1.05)}
#drum-imag[hidden],body.no-stage #drum-imag,body.stage-lost #drum-imag,body:not(.entered) #drum-imag{display:none}
#drum-imag i{position:absolute;left:0;top:0;transform-origin:0 0;background:#0c0d0d no-repeat;will-change:transform}
body.stage-lost #bg:after{content:'';position:absolute;inset:0;background:#000a}

/* --- header / nav: codes */
.show-header nav{gap:6px;font:11px/1 'Courier New',monospace;letter-spacing:.04em}
.show-header nav button{padding:0 9px;min-height:44px;min-width:44px;color:#cfcfc8}
.show-header nav b{display:inline;font-weight:400;margin-left:5px;color:#8f8f88}
.show-header nav button:hover,.show-header nav button:hover b{color:#fff}
#home{min-height:44px;min-width:44px}
.seat-label{font-size:11px;color:#a9a9a2}
#mode-label,#now>div{font-size:11px;color:#bdbdb6;letter-spacing:.08em}
#now{bottom:92px}
#song-title{margin:10px 0 14px;text-shadow:0 0 28px #000b}
#hold{min-height:44px;padding:0 6px;font:inherit;color:#eee}

/* --- player: one row; sound, timeline and the playlist link open upward */
#player-dock{width:auto;min-width:360px;right:28px;bottom:66px;background:none}
.dock-row{display:flex;align-items:center;justify-content:flex-end;gap:2px;height:56px;border-top:1px solid #ffffff55;font:11px/1 'Courier New',monospace;letter-spacing:.06em}
.dock-row .dock-code{margin-right:auto;color:#8f8f88;padding-right:18px}
.dock-row button{min-height:44px;min-width:44px;padding:0 10px;font:inherit;color:#cfcfc8}
.dock-row button[aria-pressed="true"]{color:#fff;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
#demo-pause{color:#fff;min-width:64px;text-align:left}
#tap-play{color:#fff;text-decoration:underline;text-underline-offset:4px}
#dock-extra{position:absolute;right:0;bottom:56px;width:380px;max-width:calc(100vw - 36px);background:#080808;border-top:1px solid #ffffff55;padding:0 0 4px}
#dock-extra[hidden]{display:none}
#timing-status{font:11px/1.5 'Courier New',monospace;color:#ddd;margin:8px 0 4px;letter-spacing:.04em}
#timing-status:empty{display:none}
#demo-transport{display:flex;gap:12px;align-items:center;font:11px 'Courier New',monospace;letter-spacing:.06em;color:#bdbdb6}
#demo-transport[hidden]{display:none}
#demo-transport button{font:inherit;min-height:44px;padding:0 4px;white-space:nowrap}
/* the timeline: a 1 px rule with a square thumb */
#demo-seek{-webkit-appearance:none;appearance:none;flex:1;min-width:90px;height:44px;background:none;margin:0;cursor:pointer}
#demo-seek::-webkit-slider-runnable-track{height:1px;background:#ffffff80}
#demo-seek::-moz-range-track{height:1px;background:#ffffff80}
#demo-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:9px;height:15px;margin-top:-7px;background:#eee;border:0;border-radius:0}
#demo-seek::-moz-range-thumb{width:9px;height:15px;background:#eee;border:0;border-radius:0}
#demo-seek:focus-visible{outline:2px solid #f5f5e9;outline-offset:0}
.playlist-link{font-size:11px;padding:14px 0;border-bottom:0;letter-spacing:.04em}
.player-placeholder{font-size:11px;letter-spacing:.04em}

/* --- footer toggles */
.show-footer{font-size:11px;letter-spacing:.04em;color:#a9a9a2}
.show-footer button,.safety button,#social-toggle{min-height:44px;min-width:44px;padding:0 6px;font:11px/1 'Courier New',monospace;letter-spacing:.04em}
.safety{gap:8px}
#doors .safety button{font-size:11px}

/* --- the UI recedes while the show plays (4 s idle). Mark, title and the play control stay. Focus keeps a region lit. */
.show-header nav,.seat-label,.show-footer,.dock-row>*,#mode-label,#now>div{transition:opacity 1.4s}
body.idle .show-header nav,body.idle .seat-label,body.idle .show-footer{opacity:.13}
body.idle .dock-row>:not(#demo-pause):not(#tap-play),body.idle #mode-label,body.idle #now>div{opacity:.13}
body.idle .dock-row{border-top-color:#ffffff1f}
body.idle .show-header nav:focus-within,body.idle .show-footer:focus-within,body.idle .dock-row:focus-within>*{opacity:1}
[data-motion="reduced"] .show-header nav,[data-motion="reduced"] .seat-label,[data-motion="reduced"] .show-footer,[data-motion="reduced"] .dock-row>*,[data-motion="reduced"] #mode-label,[data-motion="reduced"] #now>div{transition:none}

/* --- floating comments: bare text and a -username, no box. Drift up ~50 px over 14 s and fade. */
.ambient-comment{position:absolute;left:auto;bottom:auto;width:300px;max-width:calc(100vw - 40px);background:none;border:0;padding:0;margin:0;
 color:#f0f0e8;opacity:.55;font:13px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.005em;text-shadow:0 0 2px #000,0 1px 10px #000c,0 0 22px #000a;
 pointer-events:auto;animation:comment-drift 14s linear both}
.ambient-comment.right{text-align:right}
.ambient-comment p{margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.ambient-comment .attribution{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 0 0 0;margin-top:-6px;font:11px/1 'Courier New',monospace;letter-spacing:.03em;color:inherit}
.ambient-comment .src-code{opacity:0;font-size:11px;letter-spacing:.1em;border-left:1px solid currentColor;padding-left:8px;transition:opacity .25s}
.ambient-comment:hover,.ambient-comment:focus-within,.ambient-comment.pinned{opacity:1;animation-play-state:paused}
.ambient-comment:hover .attribution,.ambient-comment:focus-within .attribution{text-decoration:underline;text-underline-offset:4px}
.ambient-comment:hover .src-code,.ambient-comment:focus-within .src-code,.ambient-comment.pinned .src-code{opacity:.8}
.ambient-comment.leaving{opacity:0;transition:opacity 1s}
@keyframes comment-drift{0%{opacity:0;translate:0 26px}12%{opacity:.55}82%{opacity:.55}100%{opacity:0;translate:0 -26px}}
[data-motion="reduced"] .ambient-comment{opacity:.8}

/* --- crowd cards: a phone held up. They rise out of a phone light in the crowd (--ox / --dy from the scheduler) and sink back. */
.crowd-card{left:calc(50% - 115px);bottom:14%;width:min(230px,46vw);max-height:none;aspect-ratio:9/16;overflow:hidden;padding:12px;background:#0a0a0a;border:1px solid var(--tint,#777);
 transform-origin:var(--ox,50%) 100%;animation:phone-up 1.3s cubic-bezier(.2,.7,.2,1) both;transition:opacity .9s,transform 1s cubic-bezier(.5,0,.8,.3)}
.crowd-card:not(.leaving){animation:phone-up 1.3s cubic-bezier(.2,.7,.2,1) both,hand-tremor 7s 1.3s ease-in-out infinite alternate}
.crowd-card.leaving{opacity:0;translate:none;transform:translateY(var(--dy,120px)) scale(.05)}
@keyframes phone-up{from{opacity:.35;transform:translateY(var(--dy,120px)) scale(.05)}to{opacity:1;transform:none}}
.crowd-card header{font:11px/1.4 'Courier New',monospace;letter-spacing:.06em;color:#bdbdb6;gap:6px}
.crowd-card button{font:11px 'Courier New',monospace;min-height:44px;min-width:44px;padding:0;text-align:right}
.crowd-card p{font-size:15px;line-height:1.3;letter-spacing:-.02em;margin:6px 0;overflow:auto}
.crowd-card a,.crowd-card .attribution{font:11px/1.4 'Courier New',monospace;min-height:44px;display:flex;align-items:center}
.crowd-card .attribution:hover,.crowd-card .attribution:focus-visible{text-decoration:underline;text-underline-offset:4px}
.ambient-comment.pinned,.crowd-card.pinned{animation-play-state:paused!important;opacity:1!important}
.clip-card{padding:8px;background:#000}.clip-card video{object-fit:contain}
.clip-card>*:not(video){background:#000c;padding:2px 6px}.clip-card header{max-width:100%}
.clip-card footer{gap:0}.clip-card footer button{text-align:left}

/* --- closing beat: PHOENIX 11.21.26 over the stage after the last chapter. An overlay; the stage does not change. */
#closing{position:absolute;left:3.4%;top:24%;width:min(27vw,390px);display:flex;flex-direction:column;align-items:flex-start;gap:20px;pointer-events:none;animation:closing-in 3.2s ease-out both}
#closing[hidden]{display:none}
.closing-lockup{display:block;width:100%;height:auto;overflow:visible;fill:#d9d9d1;filter:drop-shadow(0 0 26px #000)}
.closing-lockup text{font:900 222px/1 Arial,Helvetica,sans-serif;letter-spacing:-.04em}
#closing nav{display:flex;flex-direction:column;gap:0;font:11px/1 'Courier New',monospace;letter-spacing:.06em;pointer-events:auto}
#closing nav a,#closing nav button{display:flex;align-items:center;min-height:44px;padding:0;font:inherit;color:#a9a9a2}
#closing nav b{font-weight:400;margin-left:9px;color:#eee}
#closing nav a:hover,#closing nav button:hover,#closing nav a:hover b,#closing nav button:hover b{color:#fff}
body.ended #now{opacity:0;pointer-events:none}body.ended .seat-label{opacity:0}
@keyframes closing-in{from{opacity:0}to{opacity:1}}

/* --- film player, drawers, viewer */
#film-player{position:fixed;right:28px;top:120px;width:320px;max-width:calc(100vw - 36px);z-index:12;background:#080808;border-top:1px solid #888;padding:8px}
#film-player[hidden]{display:none}.film-mount,.film-mount iframe{height:200px;min-height:200px;min-width:200px}
.film-label{flex-wrap:wrap;gap:4px;font-size:11px}.film-label>span{width:100%}.film-source{display:flex;align-items:center;min-height:44px;font:11px/1.4 'Courier New',monospace}.film-status:empty{display:none}
.film-label button,.drawer-head button,.viewer-head button,.viewer-foot button{min-height:44px;min-width:44px}
.contact-sheet{align-items:start}.photo-tile .thumb{aspect-ratio:auto;background:#080808}.photo-tile img{object-fit:contain}.photo-tile span:last-child{color:#ddd;font-size:11px}.photo-tile .thumb canvas{object-fit:contain}
.panel-intro,.print-item small,.setlist small,.viewer-foot a,.viewer-head,.viewer-foot,.film-status{font-size:11px;line-height:1.6}
.print-item span{font-size:11px;letter-spacing:.06em;color:#cfcfc8}
.provenance{margin:34px 0 10px;padding-top:22px;border-top:1px solid #444;max-width:520px}
.provenance h3{font:11px/1 'Courier New',monospace;letter-spacing:.1em;font-weight:400;color:#8f8f88;margin:0 0 16px}
.provenance p{font:11px/1.7 'Courier New',monospace;color:#bdbdb6;margin:0 0 12px}
select{min-height:44px}

/* --- merch booth: styled by src/modules/merch/merch.css (the module loads it). Nothing about the booth lives here. */
@media(max-width:900px){.show-header nav b{display:none}.show-header nav button{padding:0 7px}}

/* --- portrait phones: the stage owns the top 60 %. Everything else is four quiet rows at the bottom. */
@media(max-aspect-ratio:3/4){
 .arrival-top{font-size:11px}.arrival-top span:first-child{max-width:170px}.arrival-note{font-size:11px;letter-spacing:.02em}
 .arrival-bottom a{min-height:44px;display:flex;align-items:center}.arrival-bottom{font-size:11px}
 .seat-label{display:none}
 .show-header{top:auto;left:14px;right:14px;bottom:calc(44px + env(safe-area-inset-bottom));align-items:center;gap:6px}
 #home{font-size:26px;letter-spacing:-.1em;padding-right:4px}#home span{display:none}
 .show-header nav{display:flex;flex:1;justify-content:space-between;gap:0;font-size:11px;letter-spacing:0}
 .show-header nav button{padding:0 2px;min-width:44px;font-size:11px}.show-header nav b{display:none}
 #now{left:16px;right:16px;width:auto;bottom:calc(142px + env(safe-area-inset-bottom))}
 #mode-label,#now>div{font-size:11px;letter-spacing:.04em}
 #song-title{font-size:27px;line-height:.95;margin:6px 0 8px;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #now>div{gap:14px}
 #player-dock{left:14px;right:14px;min-width:0;width:auto;bottom:calc(88px + env(safe-area-inset-bottom))}
 .dock-row{height:56px;font-size:11px;letter-spacing:0;gap:0}.dock-row .dock-code{display:none}.dock-row button{padding:0 8px;font-size:11px}
 #demo-pause{margin-right:auto}
 #dock-extra{left:0;right:0;width:auto;max-width:none;padding:0 0 6px}
 .show-footer{left:14px;right:14px;bottom:max(2px,env(safe-area-inset-bottom));gap:4px;font-size:11px}
 .show-footer>span{display:none}.show-footer .safety{width:auto;gap:2px;justify-content:flex-end}
 .show-footer button,.show-footer .safety button,#social-toggle{font-size:11px;letter-spacing:0;padding:0 4px}
 #film-player{top:12px;right:14px;width:270px}
 .crowd-card{width:min(46vw,200px)}.crowd-card p{font-size:13px}.crowd-card header span{font-size:11px}
 .ambient-comment{font-size:12px;width:calc(100vw - 60px)}
 #closing{left:20px;top:7%;width:54%;gap:10px}#closing nav{font-size:11px}
 .viewer-foot{flex-wrap:wrap;justify-content:center}.viewer-foot a{font-size:11px;max-width:none;min-height:44px;display:flex;align-items:center}.contact-sheet{gap:24px 12px}
 #notice{top:14px;font-size:11px}
}
@media(max-height:560px) and (min-aspect-ratio:3/4){
 #now{bottom:70px}#song-title{font-size:34px}.seat-label{display:none}#player-dock{bottom:44px}.show-footer{bottom:2px}
 #closing{top:16%;width:24vw;gap:8px}
}

/* minimum 11 px for anything that is read (review 3 item 19); hit areas come from padding */
#home span{font-size:9px}.arrival-top,.arrival-bottom,.arrival-note,.safety,.setlist .code,.setlist time,.setlist small,.photo-tile span:last-child,.gallery-tools,.drawer-head button,.viewer-head,.viewer-foot,.film-label,.film-poster small,.more{font-size:11px}
.arrival-note{letter-spacing:.04em}
.show-footer .safety button,.show-footer button,#doors .safety button{min-height:44px;min-width:44px}
/* polish 23 Nov: the title stays crisp where it lands on a pale dome (IMAG tilt lowers the crowd line): a tight dark edge under the soft halo, plus a faint plate */
#song-title{text-shadow:0 1px 1px #000d,0 0 6px #000a,0 0 28px #000b}
#mode-label,#now>div{text-shadow:0 1px 2px #000c,0 0 8px #0009}
#now{isolation:isolate}
#now:before{content:'';position:absolute;z-index:-1;left:-28px;right:-36px;top:-18px;bottom:-14px;pointer-events:none;background:radial-gradient(ellipse 72% 78% at 32% 55%,#000a,#0006 52%,transparent 78%);opacity:.75}
