:root { color-scheme: dark; --workshop-photo: url("./assets/oficina.webp"); }
body { margin: 0; }
.lobby, #game-dialog { font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
.lobby *, .lobby *::before, .lobby *::after, #game-dialog * { box-sizing: border-box; }
.lobby {
  position: relative; isolation: isolate; background: #101818; color: #fff9ec;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  padding: 0 clamp(24px, 6vw, 110px); overflow: hidden;
}
.lobby::before, .lobby::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.lobby::before { background: var(--sector-photo, var(--workshop-photo)) center 43% / cover no-repeat; }
.lobby::after { background: linear-gradient(90deg,#101816f5 0%,#101816e8 27%,#10181680 58%,#10181612 95%),linear-gradient(0deg,#101816dc,transparent 36%); }
.lobby .lobby-head, .lobby .lobby-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.lobby .lobby-head { border-bottom: 1px solid #ffffff3d; }
.lobby .imprint { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.lobby .mark { display: inline-block; width: 26px; height: 26px; background: repeating-linear-gradient(55deg,#f3bb6d 0 4px,transparent 4px 7px); clip-path: polygon(50% 0,100% 100%,0 100%); }
.lobby .lobby-main { align-self: center; max-width: 550px; padding: clamp(25px,5vh,74px) 0; }
.lobby .lobby-title { font: 850 clamp(62px,8vw,130px)/.84 "Barlow Condensed","Avenir Next Condensed","Arial Narrow","Helvetica Neue",sans-serif; letter-spacing: -.055em; color: #fff8e8; margin: 0 0 22px; }
.lobby .lobby-title span { display:block; color: #efbc76; }
.lobby .lobby-main p { color: #f0eadc; font-size: clamp(15px,1.3vw,20px); line-height: 1.5; margin: 0 0 25px; max-width: 41ch; }
.lobby .career-controls { display:grid; max-width: 352px; gap: 9px; }
.lobby label { color:#f5ddba; font-size: 13px; font-weight:650; }
.lobby select { background:#15211fee; color:#fff8eb; border:1px solid #899185; font:inherit; padding:10px; border-radius:2px; min-height:44px; }
.lobby button, #game-dialog button { font:inherit; cursor:pointer; }
.lobby .enter, #game-dialog .confirm { color:#201c14; background:#f5bf77; padding:13px 20px; border:1px solid #f8d6a4; border-radius:2px; font-weight:750; min-height:46px; }
.lobby .text-action { background:transparent; border:0; padding:8px 2px; font:inherit; color:#f6efdf; text-decoration:underline; text-underline-offset:4px; }
.lobby .lobby-footer { border-top:1px solid #ffffff42; color:#f4ebd9; font-size:13px; }
.lobby a, #game-dialog a { color: inherit; text-underline-offset: 3px; }
#game-dialog { color:#272b29; background:#f5eedf; width:min(540px,calc(100% - 36px)); max-height:80svh; border:1px solid #bfab87; padding:26px; border-radius:4px; box-sizing:border-box; }
#game-dialog::backdrop { background:#0b1213c9; }
#game-dialog h2 { margin:0 0 16px; color:#222c28; line-height:1.1; }
#game-dialog h3 { font-size:15px; margin:18px 0 4px; }
#game-dialog p, #game-dialog li { font-size:15px; line-height:1.55; }
#game-dialog .dialog-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
#game-dialog .cancel { border:1px solid #627168; padding:10px 15px; color:#23352c; background:transparent; border-radius:2px; }
.lobby :focus-visible, #game-dialog :focus-visible { outline:3px solid #dd9631; outline-offset:3px; }
.game-notice { margin:0; padding:10px; color:#301a08; background:#ffdaa0; font:500 14px/1.4 Arial,sans-serif; }
@media(max-width:600px) {
  .lobby::before { background-position: 65% center; }
  .lobby::after { background:linear-gradient(0deg,#101816fa 12%,#101816d9 48%,#10181644 100%); }
  .lobby .lobby-main { align-self:end; }
  .lobby .lobby-title { font-size:clamp(64px,17vw,92px); }
  .lobby .lobby-footer { flex-wrap:wrap; gap:6px; padding-block:12px; min-height:48px; }
}
.workshop { min-width:0; background:#1b292a; border:1px solid #818d79; color:#f7e5c9; overflow:hidden; box-shadow:0 7px 28px #0003; }
.workshop canvas,.trend-strip canvas { display:block; width:100%; }
.workshop canvas { height:auto; max-height:175px; object-fit:contain; }
.station-switch { display:flex; border-block:1px solid #839081; }
.station-switch button { cursor:pointer; appearance:none; border:0; padding:6px 3px; flex:1; color:#eedece; font:600 11px/1.5 ui-monospace,monospace; background:transparent; }
.station-switch button[aria-pressed=true] { background:#e2bf88; color:#252d28; }
.workshop output { display:block; padding:6px 9px; font:500 11px/1.5 ui-monospace,monospace; }
.trend-strip { max-width:760px; margin:14px 0 22px; padding:12px; background:#eee6d7; color:#352e24; }
.trend-strip figcaption { font-weight:750; }
.trend-strip p { display:flex; flex-wrap:wrap; gap:10px; }
.trend-strip span { border-left:4px solid; padding-left:6px; font-size:12px; }
[data-workshop] { min-width:0; }
.workshop canvas { width:100%; max-height:235px; }
.workshop output { min-height:2.3em; }
.workshop .station-switch button { min-height:34px; }
@media(max-width:680px){
  .workshop canvas { max-height:160px; }
  .workshop .station-switch button { min-height:40px; }
}
#game-dialog label[for^=new-] { display:block; margin:12px 0 4px; }
#game-dialog select { max-width:100%; min-height:36px; color:#23352c; background:white; }
#game-dialog .replay-choice { display:block; margin-top:16px; }
.lobby { min-height:calc(100svh - 37px); }
.lobby .lobby-title { font-size:clamp(48px,8.6vw,115px); line-height:1; margin-bottom:12px; white-space:nowrap; }
.lobby .case-heading { font-size:clamp(20px,3vw,34px); margin:0 0 14px; color:#ffd39b; }
.case-heading small { display:block; color:#d4c9b6; font:600 12px/1.5 "Avenir Next",Arial,sans-serif; text-transform:uppercase; letter-spacing:.1em; }

.lobby .career-controls [data-role-brief]:not([hidden]) { padding-left: .6rem; border-inline-start: 2px solid var(--sector-accent,#e8b878); }
.lobby.prisma-workshop .lobby-title { font: 700 clamp(50px, 6vw, 88px)/1 "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
@media(max-width:800px) {
  .lobby.prisma-workshop { --pilot-gutter: clamp(18px,5vw,36px); padding-inline: var(--pilot-gutter); grid-template-rows: auto auto 1fr auto; }
  .lobby.prisma-workshop::before {
    position: static; grid-row: 2; height: clamp(135px,38vw,250px); margin-inline: calc(-1 * var(--pilot-gutter));
    background-position: center 42%; border-bottom: 2px solid #e4b979;
  }
  .lobby.prisma-workshop::after { display: none; }
  .lobby.prisma-workshop .lobby-head { grid-row: 1; }
  .lobby.prisma-workshop .lobby-main { grid-row: 3; align-self: start; padding-top: 18px; }
  .lobby.prisma-workshop .lobby-footer { grid-row: 4; }
  .lobby.prisma-workshop .lobby-title { font-size: clamp(42px,9vw,66px); }
}
