/* Colony theme only: field console skins for existing controls. Artwork never
   encodes roles, alignment, availability, or any other hidden game information. */
#setup{
  padding:12px 16px;
  gap:10px;
  background:linear-gradient(180deg,transparent, color-mix(in srgb,var(--bg) 85%,transparent));
}
#setup .console-head{
  position:relative;
  isolation:isolate;
  flex:none;
  min-height:64px;
  padding:10px 16px;
  overflow:hidden;
  border:1px solid #aa8353;
  border-radius:16px 7px 16px 7px;
  /* See the same world painting through the panel; do not scale a second copy. */
  background:#102b2b66;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  box-shadow:inset 0 0 0 5px #112b2c30,0 3px 8px #071b1b40;
}
#setup .console-head::after{
  content:"";
  position:absolute;
  pointer-events:none;
  inset:8px;
  border:1px solid #dab77840;
  border-radius:9px 2px 9px 2px;
}
#setup .console-head .lobby-strip{align-items:center;gap:8px 14px}
#setup .console-head .lobby-title{flex:1 1 160px;padding-right:8px}
#setup .console-head .lobby-title h2{
  color:#f4e5bd;
  font-family:"Barlow Condensed","Bahnschrift",var(--sans);
  font-size:24px;
  font-weight:600;
  line-height:1.05;
  letter-spacing:.015em;
  text-shadow:0 1px 2px #071b1b;
}
#setup .console-head .lobby-eyebrow{color:#e8b66d;font-size:9px;letter-spacing:.16em;margin-bottom:4px}
#setup .console-head p,#setup .console-head .strip-join label{color:#e2d4b6}
#setup .console-head .lobby-strip.empty p{color:#e2d4b6;max-width:46ch}
#setup .console-head .strip-join{padding:5px 7px;border:1px solid #c4ad7755;border-radius:5px;background:#10292be6}
#setup .console-head .lobby-code{background:#143136e8;color:#f5e6bc;border-color:#ba9b5d80}
#setup .console-head .lobby-rules-button{background:var(--panel2);color:var(--text)}
#setup .console-grid{gap:10px}
#setup .pane{
  border:6px solid color-mix(in srgb,var(--accent2) 37%,var(--line));
  border-image:url('/static/art/console-panel.webp') 85 fill / 6px;
  border-radius:12px 5px 12px 5px;
  padding:10px;
  background:var(--pane);
  box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--accent2) 7%,transparent),0 5px 0 color-mix(in srgb,var(--shade) 25%,transparent),0 12px 25px -18px var(--shade);
}
#setup .pane>h3{
  flex:none;
  min-height:26px;
  margin:0 0 9px;
  padding:0 0 8px;
  border-bottom:1px solid color-mix(in srgb,var(--accent2) 34%,var(--line));
  font:600 15px/1.1 "Barlow Condensed","Bahnschrift",var(--sans);
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--accent2);
}
#setup .pane>h3 .icon{color:var(--accent2);font-size:18px}
#setup .pane>h3 .pane-sub{font:400 11px var(--sans);letter-spacing:0;text-transform:none;color:var(--muted)}
#setup .pane-minds.is-collapsed{padding:10px 6px}
#setup .pane-minds.is-collapsed>h3{margin:0;border:0;padding:0}
#setup .minds-toggle{font:inherit;letter-spacing:inherit;text-transform:inherit;box-shadow:none;background:none}
#setup .ring{width:min(260px,100%);margin:0 auto 6px}
#setup .ring .table-top{
  width:78%;
  height:78%;
  border:0;
  border-radius:50%;
  background:#1d3635 url('/static/art/table-dial.webp') center/cover no-repeat;
  box-shadow:0 4px 14px #0005,inset 0 0 0 1px #cda86a80;
}
#setup .ring .readout{
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
}
#setup #seatRing .readout input{color:#f6e2ae;background:none;border:0;border-bottom:1px dashed #b9a36f;border-radius:0;box-shadow:none;text-shadow:0 2px 0 #102221}
#setup #seatRing .readout input:hover{border-bottom-color:#f3d498}
#setup #seatRing .readout input:focus-visible{color:#fff3d6;outline:1px dashed #f3d498;outline-offset:3px;border-bottom-color:transparent}
#setup #seatRing .readout.warn input{color:#ffd178}
#setup #seatRing .readout.bad input{color:#ffaca0}
#setup .ring .readout>span{color:#e5d7b9;font-size:10px;background:none;box-shadow:none;text-shadow:0 1px 2px #102221}
#setup .seat-step{color:#ead9b4;border:1px solid #ac935d;background:#243e3a;box-shadow:0 2px 0 #142624,inset 0 0 0 2px #486052}
#setup .seat-step:hover:not(:disabled){background:#3b574b;color:#fff0cf;border-color:#edd1a0}
#setup .seat-token{border:1px dashed #937e54;background:none;box-shadow:none}
#setup .seat-token.filled{border:2px solid #a58b54;background:#263f38;color:var(--seat);box-shadow:0 2px 0 #0006,inset 0 0 0 1px #101f1b}
#setup .seat-token.forbidden:not(.filled){opacity:1;border-style:dotted;border-color:var(--edge-strong)}
#setup .seat-token.forbidden.filled{box-shadow:0 0 0 2px var(--danger)}
#setup .seat-token.preview:not(.filled){background:#486050;border-color:#d5b774}
#setup .seat-token.recommended:after{border-color:#ad925e;border-style:dotted;inset:-4px}
#setup .seat-token:focus-visible,#setup .seat-step:focus-visible{outline:2px dashed var(--accent2);outline-offset:3px}
#setup .seat-drag{color:var(--accent2)}
#setup .faction{border-radius:0;background:none;box-shadow:none;padding:6px 4px;border-right:1px solid var(--edge-strong)}
#setup .faction:last-child{border-right:0}
#setup .table-note{line-height:1.5}
#setup .status-pill{border-radius:4px;line-height:1.5}
#setup .script-deck{gap:7px;margin-bottom:9px}
#setup .pane-script{container-type:inline-size;container-name:script-tray}
#setup .script-card{
  min-height:54px;
  padding:6px 8px;
  border:1px solid color-mix(in srgb,var(--accent2) 32%,var(--line));
  border-radius:3px 9px 3px 9px;
  background:linear-gradient(110deg,var(--panel2),var(--well));
  box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--accent2) 5%,transparent),0 3px 0 #0003;
}
#setup .script-card:hover{transform:translateY(-1px);border-color:var(--accent2);box-shadow:0 4px 0 #0003}
#setup .script-card[aria-checked=true]{border-color:var(--edge-strong);outline:0;box-shadow:inset 0 0 0 1px var(--edge-strong),0 3px 0 #0003}
#setup .script-card:focus-visible{outline:2px dashed var(--accent2);outline-offset:2px}
#setup .script-card .glyph{position:relative;width:32px;height:34px;background:color-mix(in srgb,var(--complexity) 12%,var(--well));border:1px solid color-mix(in srgb,var(--complexity) 45%,transparent);border-radius:45% 45% 38% 38%;box-shadow:inset 0 0 0 3px var(--panel),0 2px 0 #0003}
#setup .script-card[aria-checked=true] .glyph::after{content:"\2713";position:absolute;right:-5px;bottom:-4px;display:grid;place-items:center;width:16px;height:16px;border:1px solid #66502c;border-radius:3px;transform:rotate(-6deg);background:#ddb56a;color:#253d32;box-shadow:0 1px 0 #15292166;font:900 13px/1 var(--sans);pointer-events:none}
#setup .script-card .glyph .icon{font-size:21px}
#setup .script-card .name{font:600 14px/1.1 "Barlow Condensed","Bahnschrift",var(--sans);letter-spacing:.02em}
#setup .script-info{background:none;box-shadow:none;border:0}
#setup .shared-rules{padding:6px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line)}
#setup .modifier-toggle{border-radius:3px;background:var(--well)}
#setup .modifier-toggle input{accent-color:#d8b56d}
#setup .modifier-toggle:has(input:checked){background:var(--well);border-color:var(--edge-strong);color:var(--text)}
#setup .modifier-toggle:has(input:focus-visible){outline:2px dashed var(--accent2);outline-offset:2px}
#setup #characters .role-alignment-title{font-family:var(--mono);font-size:10px;letter-spacing:.08em;margin-bottom:6px}
#setup #characters .role-alignment-group+.role-alignment-group{margin-top:10px}
#setup #characters .characters{gap:6px}
#setup #characters .character{border-radius:4px;padding:4px;background:var(--well);border:1px solid color-mix(in srgb,var(--accent2) 32%,var(--edge));box-shadow:0 3px 0 #0004;opacity:1;transition:box-shadow .16s,transform .16s}
#setup #characters .character::after{content:"";position:absolute;z-index:2;left:4px;top:4px;display:grid;place-items:center;width:14px;height:14px;border:1px solid #746141;border-radius:2px;background:#ecddb6;box-shadow:0 1px 1px #1a291e55;color:#253d32;font:900 12px/1 var(--sans);pointer-events:none}
#setup #characters .character:has(input:checked){border-color:var(--edge-strong);box-shadow:0 3px 0 #0004;outline:0}
#setup #characters .character:has(input:checked)::after{content:"\2713";background:#ddb56a;border-color:#66502c;transform:rotate(-6deg)}
#setup #characters .character:has(input:not(:disabled)):hover{transform:translateY(-1px);box-shadow:0 4px 0 #0005}
#setup #characters .character:has(input:focus-visible){outline:2px dashed var(--accent2);outline-offset:1px}
#setup #characters .character .portrait-setup{border-radius:2px;filter:none;opacity:1}
#setup #characters .character.unavailable{opacity:1;cursor:not-allowed}
#setup #characters .character.unavailable .portrait-setup{filter:saturate(.35)}
#setup #characters .character.unavailable::after{content:"\2013";background:#d0c3a6;border-color:#85785f;color:#6b6049}
#setup #characters .character>span:not(.character-preference){left:4px;right:4px;bottom:4px;padding-bottom:5px;letter-spacing:.035em;border-radius:0 0 2px 2px}
#setup #characters .character:has(.character-preference:not([hidden]))>span:not(.character-preference){bottom:39px}
#setup #characters .character-preference button{border-radius:2px;min-width:28px;min-height:28px;background:#e6d3a5;border:1px solid #998054;color:#374a3b;box-shadow:none}
#setup #characters .character-preference button[aria-pressed=true]{background:#d3ad64;color:#263d33;border-color:#655431;box-shadow:inset 0 -2px 0 #806437}
#setup #characters .character-preference button:focus-visible{outline:2px dashed var(--accent2);outline-offset:1px}
#setup .model-card{border-radius:4px 9px 4px 9px;border:1px solid var(--edge-strong);background:var(--well);box-shadow:0 2px 0 #0003}
#setup .model-card:has(input:checked){border-color:var(--edge-strong);background:var(--well);box-shadow:0 2px 0 #0003}
#setup .model-card:has(.model-selection:hover){background:var(--panel2);box-shadow:0 3px 0 #0004}
#setup .model-card:has(input:focus-visible){outline:2px dashed var(--accent2);outline-offset:2px}
#setup .model-check{border:1px solid #9d8554;border-radius:2px;background:var(--well);box-shadow:none}
#setup .model-card:has(input:checked) .model-check{background:#ddb56a;color:#253d32;border-color:#66502c;box-shadow:0 1px 0 #0c211b;transform:rotate(-4deg)}
#setup .provider{border-radius:3px;background:color-mix(in srgb,var(--accent2) 10%,var(--well));box-shadow:inset 0 0 0 1px var(--edge-strong)}
#setup .launch{
  flex:none;
  padding:6px 10px;
  border:6px solid color-mix(in srgb,var(--accent2) 48%,var(--line));
  border-image:url('/static/art/console-panel.webp') 85 fill / 6px;
  border-radius:6px 12px 6px 12px;
  background:var(--panel);
  box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--accent2) 9%,transparent),0 5px 0 #0003;
}
#setup #btnStart{min-height:36px;padding:6px 18px;border-radius:5px;animation:none;font-family:"Barlow Condensed","Bahnschrift",var(--sans);font-size:17px;letter-spacing:.025em;box-shadow:none}
#setup .segmented{border-radius:4px}
#setup .play-as-option{border-radius:4px}

/* An illustrated invitation, with every label still live text. The meme remains
   an image button with its original accessible name and equal-row behaviour. */
.welcome{
  width:min(560px,calc(100vw / var(--ui-zoom) - 24px));
  border:1px solid color-mix(in srgb,var(--accent2) 60%,var(--line));
  border-radius:14px 5px 14px 5px;
  background:var(--panel);
  box-shadow:0 28px 90px #0009,inset 0 0 0 4px color-mix(in srgb,var(--accent2) 9%,transparent);
}
.welcome-body{gap:11px;padding:16px 20px}
.welcome-head{
  position:relative;
  isolation:isolate;
  min-height:84px;
  margin:-16px -20px 0;
  padding:20px 58px 14px 20px;
  align-items:flex-end;
  background:#193333 url('/static/art/colony-observatory.webp') center 40%/cover no-repeat;
  border-bottom:1px solid #b99460;
}
.welcome-head::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#10282bfa, #14303333 85%)}
.welcome-head img{width:40px;height:40px;filter:drop-shadow(0 3px 4px #0008)}
.welcome-head small{color:#e5b66f;font-size:10px;letter-spacing:.16em;margin-bottom:4px}
.welcome .welcome-head h2{color:#fae9c4;font:600 27px/1.04 "Barlow Condensed","Bahnschrift",var(--sans);letter-spacing:.015em}
.welcome .welcome-x{position:absolute;right:18px;top:17px;margin:0;width:32px;height:32px;background:#183537e8;color:#f6e3b9;border:1px solid #d9b77580;border-radius:4px;box-shadow:0 2px 0 #0006}
.welcome-choices{gap:7px}
.welcome-choices button{
  min-height:56px;
  border-radius:4px 10px 4px 10px;
  padding:9px 12px;
  border-color:color-mix(in srgb,var(--accent2) 30%,var(--line));
  background:linear-gradient(110deg,var(--panel2),var(--panel));
  box-shadow:0 3px 0 #0003;
}
.welcome-choices button.primary{background:color-mix(in srgb,var(--accent) 13%,var(--panel2));color:var(--text);border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent),0 3px 0 #0003}
.welcome-choices button:not(.welcome-meme)>.icon{width:22px;height:22px;padding:5px;box-sizing:content-box;border:1px solid var(--edge-strong);border-radius:50%;background:var(--well)}
.welcome-choices b{font-size:14px}
.welcome-choices small{line-height:1.45}
.welcome-choices button.welcome-returning{display:flex;align-items:center;min-height:56px;padding:9px 12px;gap:12px;text-align:left;background:var(--panel);border:5px solid #b2935e;border-image:var(--colony-panel) 85 fill / 5px}
.welcome-returning img{position:static;inset:auto;width:32px;height:36px;flex:none;object-fit:contain}
.welcome-returning span{position:relative}
:root[data-theme=colony] .welcome-choices button:not(.welcome-meme){background:#173b36;color:#f4e6c4;border:5px solid #b2935e;border-image:url('/static/art/console-panel.webp') 85 fill / 5px;padding:6px 8px}
:root[data-theme=colony] .welcome-choices button:not(.welcome-meme) small{color:#bdc7b1}
:root[data-theme=colony] .welcome-choices button.primary{box-shadow:inset 4px 0 0 var(--accent),0 3px 0 #0003}
.welcome-quiet{border:0;background:none;box-shadow:none}
.welcome-join{background:var(--well);border:1px dashed var(--edge-strong);border-radius:4px;box-shadow:none}
.welcome-foot{padding-top:4px}

#setup.quick .quick-start{padding:4px 0 10px}
.quick-card{
  position:relative;
  width:min(720px,100%);
  padding:18px 20px;
  border:1px solid color-mix(in srgb,var(--accent2) 48%,var(--line));
  border-radius:4px 14px 4px 14px;
  background:var(--pane);
  box-shadow:inset 0 0 0 4px color-mix(in srgb,var(--accent2) 8%,transparent),0 6px 0 #0003;
}
.quick-head{padding-bottom:9px;border-bottom:1px solid var(--edge-strong)}
#setup .quick-card h2{margin-top:4px;font:600 25px "Barlow Condensed","Bahnschrift",var(--sans);letter-spacing:.02em;color:var(--text)}
.quick-card small.quick-eyebrow{font-size:10px;letter-spacing:.14em}
.quick-facts{gap:8px;padding:0}
.quick-facts .icon{color:var(--accent2);padding:7px;width:20px;height:20px;box-sizing:content-box;border:1px solid var(--edge-strong);background:var(--well);border-radius:50%}
.quick-optional,.quick-blocked{border-radius:3px;padding:8px 10px}
.quick-actions{padding-top:8px;border-top:1px dashed var(--line)}

/* Dossiers and portraits share a small brass check stamp. Selection never
   changes the colour of the artwork or competes with alignment colours. */
:root[data-theme=colony] #setup .script-card{
  background:#ead7ad;
  color:#213b36;
  border:5px solid #806c46;
  border-image:url('/static/art/dossier-paper.webp') 85 fill / 5px;
  padding:5px 7px;
  box-shadow:0 3px 0 #071916aa,0 6px 7px #0003;
}
:root[data-theme=colony] #setup .script-card:hover{border-color:#806c46;box-shadow:0 4px 0 #071916aa,0 6px 9px #0004}
:root[data-theme=colony] #setup .script-card[aria-checked=true]{border-color:#806c46;box-shadow:inset 0 0 0 1px #806c4680,0 3px 0 #071916aa;outline:0}
:root[data-theme=colony] #setup .script-card:focus-visible{outline:2px dashed var(--accent2);outline-offset:2px}
:root[data-theme=colony] #setup .script-card .range{color:#5d5544}
:root[data-theme=colony] #setup .script-card .glyph{background:#193633;box-shadow:inset 0 0 0 3px #294840,0 2px 0 #6d583c44;border-color:#877449}
:root[data-theme=colony] #setup .script-info{color:#596052}
:root[data-theme=colony] #setup .script-info:hover{color:#122f2d;background:#d2bb87}
@container script-tray (min-width:600px){
  #setup .script-deck{grid-template-columns:repeat(3,minmax(0,1fr))}
  #setup .script-card,:root[data-theme=colony] #setup .script-card{min-height:54px;padding:5px 8px}
}
:root[data-theme=colony] #setup #characters .character{
  background:#dbc69a;
  border:3px solid #9d8152;
  border-image:url('/static/art/dossier-paper.webp') 85 fill / 3px;
  padding:3px;
}
:root[data-theme=colony] #setup #characters .character:has(input:checked){border-color:#9d8152;box-shadow:inset 0 0 0 1px #806c4666,0 3px 0 #0005}
:root[data-theme=colony] #setup #characters .character>span:not(.character-preference){left:5px;right:5px;bottom:5px;color:#253d35;text-shadow:0 1px 0 #f9ebcb;background:linear-gradient(transparent,#e4d0a6da 42%,#e4d0a6 85%)}
:root[data-theme=colony] #setup #characters .character:has(.character-preference:not([hidden]))>span:not(.character-preference){bottom:39px}
:root[data-theme=colony] .quick-card{
  --text:#263c35;--text-2:#425047;--muted:#685f4f;--accent:#285c4f;--accent2:#865d22;
  --well:#d8c59a;--panel:#ead8b2;--panel2:#e6d0a4;--line:#b9a681;--edge-strong:#aa956a;--danger:#953d2c;
  background:#ead7ad;
  color:var(--text);
  border:8px solid #9d8152;
  border-image:url('/static/art/dossier-paper.webp') 85 fill / 8px;
  padding:14px 16px;
  gap:10px;
}
@media (max-width:1180px){
  #setup{padding:12px 14px}
  #setup .console-head{min-height:64px}
  #setup .pane-minds.is-collapsed{padding:8px 10px}
  #setup .pane-minds.is-collapsed>h3{min-height:20px}
  #setup .launch{box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--accent2) 9%,transparent),0 -9px 22px -12px var(--shade)}
}
@media (min-width:1181px) and (max-height:820px){
  #setup{gap:10px;padding:10px 14px}
  #setup .console-head{min-height:64px;padding:10px 16px}
  #setup .console-head .lobby-title h2{font-size:24px}
  #setup .ring{width:min(230px,100%)}
  #setup .pane{padding:10px}
  #setup .pane>h3{margin-bottom:9px}
  #setup .launch{padding:6px 10px}
}
/* Only content scrolls. The frame is real layout space, so it cannot paint over
   a scrollbar or cover the last line of a card. */
@media (min-width:1181px){
  #setup .pane-script{overflow:hidden}
  #setup .pane-script>.pane-scroll{flex:1;min-height:120px;overflow-y:auto;overflow-x:hidden;padding-right:6px;scrollbar-gutter:stable}
  #setup .pane-table{scrollbar-gutter:stable}
}
@media (max-width:760px){
  #setup{padding:8px;gap:10px}
  #setup .console-head{min-height:0;padding:12px;border-radius:7px}
  #setup .console-head .lobby-strip{gap:8px}
  #setup .console-head .lobby-title{flex:1 1 130px;padding:0}
  #setup .console-head .lobby-title h2{font-size:23px}
  #setup .console-head .lobby-eyebrow{margin-bottom:4px}
  #setup .console-head .strip-join{width:auto;margin:0;padding:5px;border-left:1px solid #c4ad7755}
  #setup .console-head .lobby-invite{gap:6px}
  #setup .console-head .lobby-invite>.lobby-button{min-height:28px;height:auto}
  #setup .console-grid{gap:10px}
  #setup .pane{padding:9px}
  #setup .pane>h3{margin-bottom:8px}
  #setup .ring{width:min(220px,100%)}
  #setup .script-deck{grid-template-columns:repeat(2,minmax(0,1fr))}
  #setup .script-card{min-height:60px;gap:7px}
  #setup .script-card .glyph{width:27px;height:31px}
  #setup .script-card .glyph .icon{font-size:18px}
  #setup .script-card .range{font-size:10px;gap:5px}
  #setup .script-slot .script-card .name{padding-right:10px}
  #setup .script-info{top:5px;right:4px;width:19px;height:19px}
  #setup #characters .character-preference button{min-height:32px}
  #setup #characters .character:has(.character-preference:not([hidden]))>span:not(.character-preference),
  :root[data-theme=colony] #setup #characters .character:has(.character-preference:not([hidden]))>span:not(.character-preference){bottom:43px}
  #setup .launch{display:grid;grid-template-columns:minmax(0,1fr) 118px;align-items:center;padding:6px 8px;gap:4px 8px}
  #setup .launch .play-as{grid-column:1;grid-row:1;gap:5px}
  #setup .launch .control{grid-column:1;grid-row:2;gap:5px}
  #setup .launch .play-as-options{gap:2px;padding:2px;flex-wrap:nowrap}
  #setup .launch .play-as-options button{padding:5px 5px;min-height:28px}
  #setup .launch .segmented button{font-size:10px;padding:5px 4px;min-height:28px}
  #setup .launch-go{grid-column:2;grid-row:1/3;flex-direction:column;align-items:stretch;width:auto;margin:0;gap:4px}
  #setup #launchStatus{min-width:0;font-size:10px;padding:2px 6px;min-height:22px}
  #setup #btnStart{min-height:36px;width:100%;font-size:17px;padding:5px 9px;gap:5px;justify-content:center}
  #setup.quick .launch{display:flex;justify-content:flex-end}
  #setup.quick .launch-go{flex:none;flex-direction:row;align-items:center;width:auto;gap:8px}
  #setup.quick #btnStart{flex:0 0 130px;width:130px}
  #setup.quick .quick-start{padding:2px 0 12px;overflow:visible;flex:none}
  .quick-card{padding:12px}
  :root[data-theme=colony] .quick-card{padding:12px;gap:9px}
  .quick-head{gap:8px}
  #setup .quick-card h2{font-size:24px}
  .quick-card>p,.quick-facts li{font-size:13px;line-height:1.4}
  .quick-facts small{font-size:12px}
  .quick-optional{font-size:12px;line-height:1.4;padding:8px}
  .quick-facts .icon{padding:5px;width:18px;height:18px}
  .welcome{width:calc(100vw / var(--ui-zoom) - 24px);max-height:calc(100dvh / var(--ui-zoom) - 24px)}
  .welcome-body{padding:14px;gap:10px}
  .welcome-head{margin:-14px -14px 0;padding:16px 50px 12px 14px;min-height:78px;background-position:60% 22%;gap:9px}
  .welcome .welcome-head h2{font-size:25px}
  .welcome-head img{width:34px;height:36px}
  .welcome .welcome-x{top:12px;right:12px}
  .welcome-choices button{padding:6px;gap:9px}
  .welcome-choices button:not(.welcome-meme)>.icon{width:20px;height:20px;padding:4px}
  .welcome-choices b{font-size:13px}
  .welcome-choices small{font-size:11px;line-height:1.35}
  .welcome-join{padding:8px}
}
@media (max-width:360px){
  #setup .launch{grid-template-columns:minmax(0,1fr) 94px;gap:4px 6px;padding:5px 6px}
  #setup #btnStart>.icon{display:none}
  #setup .script-card{gap:5px}
  #setup .script-card .glyph{width:22px;height:28px}
  #setup .script-card .name{font-size:13px}
  #setup .script-card .range{gap:3px;font-size:10px}
  #setup .console-head .lobby-title{flex-basis:120px}
  #setup .console-head .member-chip{padding-right:5px}
  #setup .console-head .strip-join label{font-size:10px}
  #setup .console-head .invite-chip{padding:5px 6px;font-size:10px}
  .welcome p{font-size:13px;line-height:1.45}
  .welcome .welcome-head h2{font-size:22px}
  .welcome-choices:has(.welcome-meme){grid-auto-rows:auto}
  .welcome-body{gap:8px}
}
@media (max-height:650px){
  .welcome-head{min-height:74px;padding-top:14px}
  .welcome-body{gap:8px}
}
@media (forced-colors:active){
  #setup .pane,#setup .launch,#setup .script-card,#setup #characters .character,
  .quick-card,.welcome,.welcome-choices button{background:Canvas!important;border-image:none!important;border-color:CanvasText!important;color:CanvasText!important}
  #setup .console-head,.welcome-head{background:Canvas;color:CanvasText}
  #setup .console-head::before,.welcome-head::before{display:none}
  #setup .console-head .lobby-title h2,#setup .console-head .lobby-eyebrow,
  #setup .console-head p,.welcome .welcome-head h2,.welcome-head small{color:CanvasText;text-shadow:none}
  #setup .ring .readout{background:Canvas;box-shadow:none}
  #setup .ring .readout input,#setup .ring .readout>span{color:CanvasText;text-shadow:none}
}
