/* Black page behind the video (the bridge page is blue). */
html, body, body.stream, #root { background: #000 !important; }
html, body { margin: 0 !important; overflow: hidden !important; }

/* Hide all bridge UI: friends see only the game and our screens. */
#sidebar-root, #notification-list, #modal-overlay { display: none !important; }

#cod-ui, #cod-ui * { box-sizing: border-box; }
#cod-ui { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  font-family: "Segoe UI", Arial, sans-serif; color: #e8e2d0; }

#cod-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #000 url('/launcher-assets/cod.png') center / contain no-repeat; pointer-events: auto; transition: opacity .6s; }
#cod-screen::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.9) 100%); }
#cod-screen.hidden { opacity: 0; pointer-events: none; }
#cod-panel { position: absolute; bottom: 9vh; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
#cod-status { font-size: 20px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 6px #000; }
#cod-sub { font-size: 14px; opacity: .75; text-shadow: 0 2px 6px #000; max-width: 640px; text-align: center; }
#cod-bar { width: 420px; max-width: 80vw; height: 6px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(201,165,74,.35); }
#cod-bar > i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, #8a6d24, #e2c063); transition: width .1s linear; }
#cod-pct { font-size: 13px; letter-spacing: .1em; opacity: .7; margin-top: -6px; }
#cod-buttons { display: flex; gap: 12px; }
#cod-msg { font-size: 14px; min-height: 18px; color: #f0b9a0; text-shadow: 0 2px 6px #000; text-align: center; max-width: 640px; }
.cod-form { display: flex; gap: 10px; pointer-events: auto; }
.cod-form input { font-size: 22px; text-align: center; padding: 8px 10px; background: rgba(0,0,0,.75); color: #f1d98c;
  border: 1px solid #c9a54a; border-radius: 3px; outline: none; }
#cod-pin { width: 190px; font-size: 26px; letter-spacing: .4em; }
#cod-name { width: 300px; letter-spacing: .06em; }
.cod-btn { pointer-events: auto; cursor: pointer; border: 1px solid #c9a54a; background: rgba(20,16,8,.85); color: #f1d98c;
  font-size: 18px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 34px; border-radius: 3px; }
.cod-btn:hover { background: rgba(60,46,14,.9); }
.cod-hide { display: none !important; }

/* Small prompts over the running game */
#cod-prompt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  background: rgba(0,0,0,.78); border: 1px solid #c9a54a; padding: 22px 36px; text-align: center; border-radius: 4px; }
#cod-prompt b { display: block; font-size: 20px; letter-spacing: .1em; text-transform: uppercase; color: #f1d98c; margin-bottom: 6px; }
#cod-prompt span { font-size: 14px; opacity: .8; }
#cod-banner { position: absolute; top: 0; left: 50%; transform: translateX(-50%); pointer-events: auto; cursor: pointer;
  background: rgba(0,0,0,.75); border: 1px solid #c9a54a; border-top: 0; padding: 8px 22px; font-size: 14px; letter-spacing: .06em;
  border-radius: 0 0 4px 4px; }
