#evening-screen{--brass:#f5c976;--ivory:#fff3d4;min-height:100svh;display:grid;place-items:center;background:#10151b;color:var(--ivory)}
#evening-frame{width:min(100%,calc((100svh - 58px)*16/9));position:relative;background:#0b141a;box-shadow:0 12px 70px #080c11}
#evening-frame:has(#evening-commands[hidden]){width:min(100%,calc(100svh*16/9))}
#evening-stage{position:relative;isolation:isolate;aspect-ratio:16/9;container-type:inline-size}
#evening-screen:not([data-loaded]) #evening-stage{background:center/cover url("../assets/arcade/evening-opening.webp")}
#evening-screen:not([data-loaded]) #evening-view{visibility:hidden}
#evening-view,#evening-titles,#evening-spots,#evening-menu{position:absolute;inset:0;width:100%;height:100%}
#evening-view{display:block;touch-action:manipulation;image-rendering:pixelated;outline-offset:-3px}
#evening-screen button{border:0;background:none;box-shadow:none;border-radius:0;color:inherit}
#evening-screen button:focus-visible{outline:2px solid var(--brass);outline-offset:-2px}
#evening-screen button:is(:hover,:focus-visible){color:var(--brass)}
#evening-titles{pointer-events:none;background:linear-gradient(180deg,#0d1828a9,transparent 28%,transparent 73%,#08111fe6);text-shadow:2px 3px #10141d}
#evening-titles header{position:absolute;top:5%;left:5%}
#evening-titles header span,.overline,#room-slug{color:var(--brass);letter-spacing:.14em;font-size:clamp(11px,1.35cqw,20px)}
#evening-titles h1{font-size:clamp(32px,5.6cqw,83px);line-height:1;text-shadow:3px 4px #12222c;color:#ffe4a8}
.evening-start{position:absolute;inset:auto 5% 4%;display:flex;align-items:end;justify-content:space-between;gap:12px}
.evening-start p{font-size:clamp(13px,1.8cqw,28px)}.evening-start small{font-size:.77em;color:#e3cca0}
#evening-screen #take-control{pointer-events:auto;color:var(--brass);text-align:left;text-shadow:2px 2px #121920;padding:5px 0;font-size:clamp(16px,2.1cqw,31px);white-space:nowrap}
#take-control:not(:disabled)::before,#evening-options button:is(:hover,:focus-visible)::before{content:"▸ ";color:var(--brass)}
#evening-spots{pointer-events:none}
#evening-spots button{position:absolute;pointer-events:auto;cursor:pointer;padding:0;touch-action:manipulation}
#evening-spots .mark{display:flex;align-items:center;gap:4px;position:absolute;transform:translate(-50%,-100%);white-space:nowrap;font-size:clamp(11px,1.25cqw,18px);line-height:1.15;padding:2px 4px;color:#ffedc8;background:#17212cd9;text-shadow:1px 1px #111;cursor:pointer}
#evening-spots .mark::before{content:"";width:6px;height:6px;flex-shrink:0;transform:rotate(45deg);background:var(--brass);box-shadow:0 0 0 1px #33322c}
#evening-spots .mark{z-index:1;pointer-events:auto}
#evening-spots .mark small{font:inherit}#evening-spots .mark small:empty{display:none}
#evening-spots .pin{display:none}
#evening-spots button:focus-visible .pin,#evening-spots.reveal .pin{display:inline}
#evening-spots button:focus-visible small,#evening-spots.reveal small{display:none}
#evening-spots.reveal .aisle{z-index:2}
#evening-spots [data-spot=tv] .mark,#evening-spots [data-spot=driveway] .mark{transform:translate(-20%,-100%)}
@media(hover:hover){#evening-spots button:hover .pin{display:inline}#evening-spots button:hover .mark small{display:none}}
#room-slug{position:absolute;pointer-events:none;top:3%;left:2%;padding:3px 8px;background:#121b26db;text-transform:uppercase}
#walk-legend{position:absolute;top:3%;right:2%;pointer-events:none;color:#f1e4c9;background:#121b26db;padding:3px 8px;font-size:clamp(11px,1.3cqw,19px)}
#evening-screen:not([data-phase=play]) #walk-legend{display:none}
@media(pointer:coarse){#walk-legend{font-size:0}#walk-legend::after{content:"Tap to walk · ◆ use or talk";font-size:12px}}
#evening-speech{position:absolute;z-index:3;width:max-content;max-width:min(34ch,calc(100% - 12px));pointer-events:none;background:#101c29f5;color:var(--ivory);border:1px solid var(--brass);border-radius:5px;padding:.34em .64em;line-height:1.22;font-size:clamp(15px,1.6cqw,24px);box-shadow:0 2px 5px #0007}
#evening-speech::after{content:"";position:absolute;left:var(--tail);top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:var(--brass)}
#evening-speech[data-side=below]::after{top:auto;bottom:100%;border-color:transparent;border-bottom-color:var(--brass)}
#evening-commands{display:flex;align-items:stretch;min-height:52px;padding:2px 1.4%;gap:1.7%;border-top:2px solid #87795e;background:linear-gradient(#293039,#162029)}
#evening-commands button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:clamp(14px,1.75vw,22px);white-space:nowrap;padding:2px 3px}
#evening-commands i{font:normal .68em "Saimaa Grid",monospace;color:#e3c18c;border:1px solid #908271;padding:1px 4px}
#change-actor img{height:40px;width:40px;object-fit:contain;align-self:end}
#change-actor span{text-align:left;line-height:1.08}#change-actor small{display:block;text-transform:uppercase;font-size:10px;letter-spacing:.07em;color:#d4be96}
#scene-use{flex:1}#scene-look[aria-pressed=true]{color:var(--brass)}#evening-commands #scene-pause{min-width:40px;font-family:monospace}
#evening-screen #scene-use.pin-now,#evening-options button[aria-pressed=true]{color:var(--brass)}
#evening-options button[aria-pressed=true]::after{content:"  ♪";color:var(--brass)}
#evening-menu{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;background:#0f1726b8;z-index:4}
.evening-menu-box{background:#15212af5;border-block:2px solid #ae996c;padding:clamp(8px,2cqw,30px) 4%;min-width:min(390px,85%);max-width:94%;max-height:94%;overflow:auto}
.evening-menu-box h2{color:#ffe0a2;font-size:clamp(23px,3.8cqw,50px)}
#evening-menu-note{font-size:clamp(14px,1.65cqw,22px);color:#dfddd4;margin:.45em 0;max-width:34em}
#evening-options{display:grid}#evening-options button{position:relative;text-align:left;padding:.15em 1em;min-height:30px;font-size:clamp(15px,1.9cqw,26px)}
#home-postcard{width:auto;max-width:100%;max-height:28cqh;aspect-ratio:16/9;border:4px solid #e4dcc7}
#evening-options button::before{position:absolute;left:.12em}
#evening-options button img{height:1.75em;width:auto;vertical-align:middle;margin:.12em .4em .12em 0;image-rendering:auto;filter:drop-shadow(0 2px 2px #0008)}
.adventure-round #cabinet{background:#101820}.adventure-round .system-bar{display:none}
.adventure-round .match-bar button,.adventure-round .actions button,.adventure-round #round-buttons button{border:0;box-shadow:none;background:transparent;color:var(--paper)}
.adventure-round .actions button:is(:focus-visible,:hover),.adventure-round .actions .gold,.adventure-round #round-buttons .suggested{color:var(--gold);background:#303943}
.adventure-round .actions .gold::before{content:"▸ "}
@media(min-width:726px) and (min-height:571px){
  .adventure-round #match-screen{padding:10px 12px}
  .adventure-round #arena-layout.briefing{display:grid;grid-template:1fr/1fr;isolation:isolate;width:min(100%,calc((100svh - 135px)*1.77778));margin:6px auto}
  .adventure-round #arena-layout.briefing .viewport,.adventure-round #brief{grid-area:1/1}
  .adventure-round #arena-layout.briefing .viewport{width:100%;filter:brightness(.7)}
  .adventure-round #brief{align-self:center;justify-self:center;position:relative;max-width:min(520px,80%);max-height:94%;overflow:auto;border:0;border-block:2px solid #ad9367;background:#14212cf5;box-shadow:none}
  .adventure-round #arena-layout:not(.briefing) .viewport{width:min(100%,calc((100svh - 182px)*1.77778))}
}
@media(max-width:600px){
  #evening-frame{width:100%}#evening-commands{gap:1px;flex-wrap:wrap;justify-content:space-around}#evening-commands button{font-size:14px;gap:3px}
  #evening-commands i{display:none}#change-actor img{width:27px;height:34px}#evening-commands #scene-pause{min-width:32px}
  #evening-spots.reveal .pin{font-size:10px}.evening-start{display:block}.evening-start p{margin-bottom:2px}.evening-menu-box{max-height:98%}
}
@media(pointer:coarse){
  #evening-screen{padding-inline:env(safe-area-inset-left) env(safe-area-inset-right)}
  #evening-options button,#evening-screen #take-control,#evening-commands #scene-pause,#evening-commands #scene-look{min-width:44px;min-height:44px}
  .evening-menu-box{overscroll-behavior:contain}
}
@media(pointer:coarse) and (max-width:600px) and (orientation:portrait){
  #evening-commands{display:grid;grid-template-columns:minmax(62px,.9fr) minmax(0,1.4fr) minmax(0,1.2fr) auto 44px;gap:1px}
  #evening-commands button{white-space:normal;line-height:1.1}
  #evening-menu{top:50%;bottom:auto;height:min(72svh,560px);transform:translateY(-50%)}
}
