/* Doom tab: game frame in the console area, players + game chat on the right. */
.console.doom-console { padding: 0; overflow: hidden; background: #000; }
.doom-stage { height: 100%; display: flex; overflow-y: auto; }
.doom-frame { flex: 1; border: 0; width: 100%; height: 100%; background: #000; }
/* Idle page shrinks with the window; it scrolls only when there is no room
   left to shrink, and never clips its top (safe centering). */
.doom-idle { margin: 0 auto; align-self: safe center; max-width: 560px; padding: clamp(8px, 2.5vh, 24px) 16px; box-sizing: border-box; color: #d8d8d8; font: clamp(11px, 1.6vh, 14px)/1.45 'Segoe UI', sans-serif; }
.doom-idle p { margin: .6em 0; }
.doom-idle b { color: #fff; }
.doom-logo img { display: block; width: clamp(96px, 20vh, 192px); height: auto; aspect-ratio: 2 / 1; margin: 0 auto clamp(4px, 1.2vh, 12px); }
.doom-logo.small img { width: 128px; height: 64px; margin-bottom: 4px; }
.doom-wads { margin: 1em 0 .6em; padding: .5em .9em; border: 1px solid #4a1a14; }
.doom-wads legend { color: #f08a1c; padding: 0 4px; }
.doom-wad { display: flex; align-items: center; gap: 8px; margin: .15em 0; }
.doom-idle { text-align: center; }
.doom-games { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 1em 0; }
.doom-game { font-size: inherit; padding: .35em .8em; background: #140404; border: 1px solid #4a1a14; color: #d8d8d8; cursor: pointer; }
.doom-game.active { border-color: #f08a1c; color: #fff; background: #3a0e06; }
.doom-actions { flex-wrap: wrap; justify-content: center; }
.doom-play { font-size: 1.15em; padding: .45em 1.4em; }
.doom-actions button { font-size: inherit; }
.doom-wad small { color: #8f8f8f; }
.doom-actions { display: flex; gap: 8px; }
.doom-hint { color: #8f8f8f; font-size: 12px; }
.doom-warn { color: #e0a060; }
.doom-waiting { color: #f0cf58; }
.doom-waiting button { margin-left: 6px; }

/* The DOOM badge: same box as the s.net badge. */
.doom-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 32px; height: 16px; box-sizing: border-box; background: #140404; border: 1px solid #7a1c10; border-radius: 2px; overflow: hidden; }
.doom-icon img { display: block; width: 100%; height: 100%; }

/* Userlist becomes two players on top and the game chat below. */
/* The panel is a grid (header, roster); in the Doom tab it becomes header,
   players, game chat, with the chat taking the rest of the height. */
html .roster-panel.doom-active { grid-template-rows: auto auto minmax(0, 1fr) !important; }
.roster-panel.doom-active #roster { max-height: 64px; }
.roster-panel.doom-active .roster-tools { display: none; }
.doom-side { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid #3b1410; }
.doom-side[hidden] { display: none; }
.doom-side-head { padding: 6px 8px 4px; color: #f08a1c; font: 700 11px Tahoma, 'Segoe UI', sans-serif; letter-spacing: .08em; }
.doom-side-log { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; font: 13px 'Segoe UI', sans-serif; color: #fff; overflow-wrap: anywhere; }
.doom-chat-line { margin: 2px 0; }
.doom-chat-line .doom-chat-name { color: #f0cf58; }
.doom-chat-line.own .doom-chat-name { color: #39c5c8; }
.doom-chat-line.whisper { color: #bdbdbd; }
.doom-chat-line.system { color: #c97b4a; }
.doom-side #composer { margin: 0; border-top: 1px solid #3b1410; padding: 4px; display: flex; gap: 4px; align-items: flex-end; }
.doom-side #composer .prompt { display: none; }
.doom-side #composer textarea { flex: 1; min-width: 0; }
/* Normally tabs / console / composer; with the composer moved out, the game
   takes the composer's row too. */
html .chat-panel.doom-full { grid-template-rows: auto minmax(0, 1fr) !important; }
html[data-skin="dock"] .chat-panel.doom-full { display: flex; }
.doom-invite form { min-width: 300px; text-align: center; }
.doom-mp label { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; text-align: left; }
.doom-invite footer { display: flex; gap: 8px; justify-content: center; }
