/* A separate multiplayer command panel, drawing on the retail red metal / amber HUD. */
.edition { color:#ffbd49 }
.mode-launch { display:flex; gap:12px }
.mode-launch button { flex:1; min-width:0; padding-inline:16px }
body:not(.multiplayer) .mp-status,body:not(.multiplayer) #choose-skin,body:not(.multiplayer) #choose-room,body:not(.multiplayer) #toggle-players { display:none }
#mode-menu { width:min(520px,calc(100% - 32px)); padding:28px; border:2px solid #806c57; background:linear-gradient(120deg,#2c1813,#101110); color:#eadcbe; font-family:'Courier New',monospace; box-shadow:0 0 0 5px #181111,0 18px 75px #000c }
#mode-menu::backdrop { background:#0505058c }
#mode-menu h2 { margin:0 0 24px; font-size:24px; color:#f1d5a8 }
#mode-menu button { display:block; width:100%; text-align:left; padding:18px; margin:12px 0 0; border:1px solid #85643d; border-radius:0; background:linear-gradient(#3d2b1d,#211911); color:#efd2a1; box-shadow:inset 0 1px #a98b5733 }
#mode-menu button strong { font:700 20px 'Courier New',monospace }
#mode-menu button span { display:block; font:12px/1.5 'Courier New',monospace; color:#bfa98a; margin-top:6px }
#mode-menu #mode-cancel { padding:10px 18px; width:auto; font:12px 'Courier New',monospace }
#rooms-menu { width:min(680px,calc(100% - 32px)); max-height:calc(100% - 40px); padding:0; border:2px solid #806c57;
  color:#eadcbe; background:linear-gradient(120deg,#231510,#101110); font-family:'Courier New',monospace; box-shadow:0 0 0 5px #181111,0 18px 75px #000c }
#rooms-menu::backdrop { background:#0505058c }
.rooms-head { padding:22px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #7e3e2b; background:linear-gradient(100deg,#431612,#1b1110) }
.rooms-head h2 { margin:5px 0 0; font:700 26px 'Courier New',monospace; color:#f2dcc0 }
#rooms-menu button { padding:10px 16px; border:1px solid #79603a; border-radius:0; background:#312416; color:#efd2a1; font:700 12px 'Courier New',monospace; box-shadow:none }
#rooms-menu button:disabled { opacity:.5; cursor:default }
.rooms-description,#rooms-empty { padding:0 24px; font:12px/1.65 'Courier New',monospace; color:#baa78a }
#rooms-list { padding:0 24px; }
.room-entry { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid #57412d }
.room-entry strong { display:block; font-size:16px; color:#f0d5a3 }
.room-entry span { display:block; font-size:11px; color:#aa9678; margin-top:6px }
.rooms-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 24px; margin:0; color:#b99d72; font-size:11px }
#rooms-menu :focus-visible { outline:2px solid #ffcf62; outline-offset:2px }
.playing .game-toolbar { display:none }
#stage { position:relative }
.mp-dock { position:absolute; z-index:20; top:14px; right:14px; display:flex; align-items:center; gap:0;
  border:1px solid #633331; background:linear-gradient(180deg,#241916f0,#100b0bf5); box-shadow:0 3px 0 #050303, inset 0 1px #93615155;
  font:12px/1.2 'Courier New',monospace; color:#e2d5ba }
.mp-dock::before { content:''; position:absolute; height:3px; top:-4px; left:-1px; right:-1px;
  background:repeating-linear-gradient(135deg,#c33126 0 10px,#211310 10px 20px) }
.mp-status { padding:10px 14px; min-width:125px; border-right:1px solid #6c3931 }
.mp-status strong { color:#ffc660; font-size:21px; margin-right:8px }
.mp-status small { display:block; color:#b29e7e; font-size:9px; letter-spacing:1.4px; margin-top:4px }
.mp-light { display:inline-block; width:5px; height:5px; background:#986232; margin-right:4px }
.mp-light[data-state=connected] { background:#abc795; box-shadow:0 0 8px #bad29a66 }
.mp-dock button { padding:12px 15px; border:0; border-right:1px solid #633331; background:transparent; min-height:52px;
  color:#e8d8b6; font:700 12px/1.5 'Courier New',monospace; box-shadow:none }
.mp-dock button:hover { color:#ffd077; background:#51302466 }
.mp-dock button:disabled { opacity:.4 }
.mp-dock button small { display:block; font-weight:normal; color:#aa9678; font-size:10px }
.mp-dock button:last-child { border:0 }
#skin-menu { position:absolute; inset:0; width:min(1040px,calc(100% - 64px)); height:min(680px,calc(100% - 64px));
  max-width:none; max-height:none; margin:auto; padding:0; color:#eadcbe; background:transparent;
  border:2px solid #806c57; overflow:hidden; box-shadow:0 0 0 5px #181111,0 18px 75px #000c,0 0 0 100vmax #0505058c; font-family:'Courier New',monospace }
#skin-menu::backdrop { background:transparent }
.skin-shell { height:100%; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.skin-head { padding:22px 26px 18px; background:linear-gradient(100deg,#431612,#1b1110); border-bottom:1px solid #7e3e2b;
  display:flex; align-items:flex-end; justify-content:space-between; position:relative }
.skin-head::before { content:''; position:absolute; top:0; left:0; right:0; height:5px;
  background:repeating-linear-gradient(135deg,#b82c20 0 14px,#1c1110 14px 28px) }
.skin-head h2 { color:#f2dcc0; margin:5px 0 0; font:700 clamp(20px,2.7vw,34px)/1.05 'Courier New',monospace; letter-spacing:-1.7px;
  text-shadow:2px 2px #120807 }
.skin-kicker { font-size:10px; letter-spacing:3px; color:#ef8552 }
.skin-total { text-align:right; color:#d98143; font-size:31px; line-height:1 }
.skin-total small { display:block; font-size:9px; color:#aa967e; letter-spacing:2px; margin-top:5px }
.skin-body { display:grid; grid-template-columns:54% 46%; min-height:0 }
.skin-selection { background:linear-gradient(90deg,#121211,#181614); border-right:1px solid #735540; display:flex; flex-direction:column; min-height:0; }
.skin-filters { padding:16px 20px 13px; border-bottom:1px solid #44372b }
.skin-filters input,.skin-filters select { width:100%; border:1px solid #66543f; border-radius:0; padding:10px; background:#090b09;
  color:#e8d6b4; font:12px 'Courier New',monospace; }
.skin-filters input { margin-bottom:8px; }
.skin-filter-row { display:flex; align-items:center; gap:18px }
.skin-filter-row select { flex:1 }
#skin-matches { color:#af976d; font-size:11px; white-space:nowrap }
#skin-list { overflow-y:auto; min-height:0; padding:5px 0; scrollbar-color:#805331 #181411; }
.skin-entry { width:100%; text-align:left; display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:11px;
  padding:13px 20px; border:0; border-bottom:1px solid #372d24; border-left:3px solid transparent; background:none;
  font:700 13px/1.4 'Courier New',monospace; color:#cabb9e; box-shadow:none; border-radius:0 }
.skin-entry:hover { background:#392a1b; color:#f7dfae }
.skin-entry[aria-pressed=true] { background:linear-gradient(90deg,#623623,#2c231b); border-left-color:#e39c38; color:#ffe8b1 }
.skin-number { color:#a77848; font-size:10px; font-weight:normal }
.skin-entry small { color:#94876e; font:9px 'Courier New',monospace; letter-spacing:.8px }
#skin-empty { padding:20px; font-size:13px; color:#a8997d }
.skin-preview-pane { display:flex; min-height:0; flex-direction:column; position:relative; background:transparent }
.skin-preview-label { padding:17px 22px; background:#11100ff5; border-bottom:1px solid #72573d; }
.skin-preview-label small { font-size:9px; color:#b17e50; letter-spacing:2px }
.skin-preview-label h3 { font-size:19px; margin:7px 0 0; color:#f0d5a3 }
#skin-preview { flex:1; min-height:100px; position:relative; cursor:grab; touch-action:none; overflow:hidden }
#skin-preview:active { cursor:grabbing }
#skin-preview::after { content:''; position:absolute; pointer-events:none; inset:0; border:14px solid #151411;
  box-shadow:inset 0 0 0 1px #61492d,inset 0 0 40px #0008; }
.skin-foot { padding:14px 22px; border-top:1px solid #795132; background:#17130f; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.skin-foot p { margin:0; font:11px/1.5 'Courier New',monospace; color:#ae9674; max-width:48%; }
.skin-actions { display:flex; gap:10px; }
.skin-actions button { border:1px solid #79603a; border-radius:0; padding:11px 18px; background:#211d15; color:#d7bd8b; font:700 12px 'Courier New',monospace; box-shadow:inset 0 1px #b1955744,0 2px #050505; }
.skin-actions #skin-apply { background:linear-gradient(#865c21,#604115); color:#ffdf8e; border-color:#b68737; }
#skin-menu :focus-visible,.mp-dock :focus-visible { outline:2px solid #ffcf62; outline-offset:-3px; }
@media(max-width:850px) { .mp-dock{top:8px;right:8px}.mp-dock button{padding:8px;font-size:10px}.mp-status{padding:8px;min-width:85px}.mp-status small{font-size:7px}
  #skin-menu{width:calc(100% - 24px);height:calc(100% - 24px)}.skin-head{padding:17px}.skin-head h2{font-size:24px}.skin-body{grid-template-columns:55% 45%}.skin-entry{padding:10px 12px;grid-template-columns:25px 1fr}.skin-entry small{display:none}.skin-filters{padding:12px}.skin-foot{padding:12px}.skin-actions button{padding:9px}.skin-foot p{font-size:9px}.skin-preview-label{padding:13px}.skin-preview-label h3{font-size:15px} }
@media(prefers-reduced-motion:reduce) { #skin-menu *{scroll-behavior:auto} }

/* Guest identity and the compact amber radio log share the retail command panel. */
#guest-menu { width:min(430px,calc(100% - 32px)); padding:26px; color:#eadcbe; border:2px solid #806c57;
  background:linear-gradient(120deg,#2c1813,#101110); box-shadow:0 0 0 5px #181111,0 18px 75px #000c; font:13px/1.6 'Courier New',monospace }
#guest-menu::backdrop { background:#050505a6 }
#guest-menu h2 { margin:6px 0 15px; color:#f2dcc0; font:700 28px 'Courier New',monospace; letter-spacing:-1px }
#guest-help { color:#baa78a; margin:0 0 20px }
#guest-menu label { color:#cfba95; font-size:11px }
.guest-name-preview { display:flex; align-items:center; gap:12px; margin:7px 0; font-size:32px; color:#8c7050 }
#guest-prefix { width:116px; background:#090b09; border:1px solid #94764d; border-radius:0; color:#ffd077; padding:9px; font:700 32px 'Courier New',monospace; text-transform:uppercase; letter-spacing:5px }
#guest-error { min-height:36px; font-size:11px; color:#ffbd91; margin:12px 0 }
.guest-actions { display:flex; justify-content:flex-end; gap:10px; border-top:1px solid #674331; padding-top:17px }
.guest-actions button,#chat-panel button { border:1px solid #79603a; border-radius:0; padding:9px 13px; background:#211d15; color:#d7bd8b; font:700 12px 'Courier New',monospace; box-shadow:none }
#guest-accept { background:linear-gradient(#865c21,#604115); border-color:#b68737; color:#ffdf8e }
#guest-menu :focus-visible,#chat-panel :focus-visible { outline:2px solid #ffcf62; outline-offset:2px }
#chat-panel { position:absolute; z-index:21; bottom:18px; left:18px; width:min(350px,calc(100% - 36px)); font:12px/1.5 'Courier New',monospace; color:#eddbb6; pointer-events:none; }
#chat-panel header { display:flex; justify-content:space-between; gap:12px; font-size:9px; letter-spacing:1px; color:#d89c53; padding:6px 8px; text-shadow:1px 1px #000; }
#chat-panel header small { font:10px 'Courier New',monospace; color:#ffc660; letter-spacing:0 }
#chat-history { max-height:250px; overflow:hidden; }
.chat-line { overflow-wrap:anywhere; white-space:pre-wrap; padding:4px 8px; background:#130d09c9; text-shadow:1px 1px #000; animation:chat-fade 16s forwards; }
#chat-panel:not(.chat-editing) .chat-line:nth-last-child(n+6) { display:none }
#chat-panel.chat-editing { pointer-events:auto; border:1px solid #805137; background:linear-gradient(135deg,#281811f5,#100e0bf7); box-shadow:0 4px 24px #0008; }
.chat-editing #chat-history { overflow-y:auto; scrollbar-color:#805331 #181411 }
.chat-editing .chat-line { animation:none; }
.chat-editing header { border-bottom:1px solid #6a3e2a; padding:9px }
#chat-compose { padding:10px; border-top:1px solid #6a3e2a; }
#chat-compose label { display:block; font-size:10px; color:#bda583; margin-bottom:5px }
#chat-input { display:block; width:100%; box-sizing:border-box; padding:8px; border:1px solid #927149; border-radius:0; background:#090b09; color:#ffe3aa; font:12px 'Courier New',monospace }
.chat-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:8px }
#chat-panel button { font-size:10px; padding:6px 8px }
#chat-notice { padding:0 9px; color:#ffbd91; font-size:10px; margin:5px 0; background:#130d09c9 }
#chat-notice:empty { display:none }
#chat-bubbles { position:absolute; inset:0; z-index:10; pointer-events:none; overflow:hidden }
.chat-bubble { position:absolute; top:0; left:0; width:max-content; max-width:min(240px,55vw); padding:6px 9px; color:#ffe6b3; background:#1e120df0; border:1px solid #bc8a48; font:12px/1.4 'Courier New',monospace; overflow-wrap:anywhere; white-space:pre-wrap; box-shadow:0 3px 10px #0008; }
.chat-bubble::after { content:''; position:absolute; bottom:-5px; left:calc(50% - 4px); width:7px; height:7px; background:#1e120d; border-right:1px solid #bc8a48; border-bottom:1px solid #bc8a48; transform:rotate(45deg) }
@keyframes chat-fade { 0%,70%{opacity:1} 100%{opacity:0} }
body:not(.multiplayer) #chat-panel,body:not(.multiplayer) #chat-bubbles { display:none }
@media(max-width:650px) { #chat-panel{bottom:10px;left:10px;width:min(310px,calc(100% - 20px))} #chat-history{max-height:180px}.chat-bubble{font-size:10px} }
