#game-recorder-shade{position:absolute;inset:0;z-index:130;background:#0a0e14bd}
#game-recorder-shade[hidden],#game-recorder-dialog [hidden]{display:none!important}
#game-recorder-dialog{position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;box-sizing:border-box;width:min(620px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100% - 20px);overflow:auto;overscroll-behavior:contain;z-index:131;padding:22px;border:1px solid #b69c69;border-radius:12px;background:#1e252b;color:#f3ead7;font:14px/1.45 system-ui,sans-serif;box-shadow:0 12px 45px #0009}
#game-recorder-dialog h2{margin:0 0 10px;font-size:23px}
#game-recorder-dialog p{overflow-wrap:anywhere}
#game-recorder-dialog label{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #b69c6966;border-radius:7px;background:#26333a;cursor:pointer}
#game-recorder-dialog input{accent-color:#d4433d;width:20px;height:20px;margin:0}
#game-recorder-mic-note,#game-recorder-format{font-size:12px;color:#c1d8d8}
#game-recorder-message,#game-recorder-mic-status{color:#f4cf9c;min-height:1.4em}
#game-recorder-clock{font-variant-numeric:tabular-nums}
#game-recorder-preview{display:block;width:100%;max-height:250px;margin:12px 0;background:#000}
#game-recorder-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
#game-recorder-actions button{min-height:42px;padding:10px 14px;border:1px solid #b69c6988;border-radius:7px;background:#30434a;color:#f3ead7;cursor:pointer;font:600 13px system-ui,sans-serif}
#game-recorder-start,#game-recorder-stop{background:#7f2c2a!important;border-color:#e78b73!important}
#game-recorder-dialog button:disabled,#game-recorder-dialog input:disabled{opacity:.45;cursor:default}
#game-recorder-dialog :focus-visible{outline:3px solid #f2cc84;outline-offset:3px}
@media(max-width:560px){#game-recorder-dialog{padding:14px;font-size:12px}#game-recorder-dialog h2{font-size:18px}#game-recorder-preview{max-height:180px}#game-recorder-actions button{font-size:12px;flex:1}}

/* The camera is available on title, selection, demos, and live fights. */
#game-recorder-button{position:absolute;right:14px;top:54px;z-index:125;max-width:calc(100% - 28px);min-height:32px;padding:7px 12px;border:1px solid #ffaba5;border-radius:7px;background:#ab2424;color:#fff;font:600 13px system-ui,sans-serif;cursor:pointer;box-shadow:0 2px 12px #0006}
#game-recorder-button:hover{background:#c82d2d}
#game-recorder-button.game-recorder-active{background:#d32f2f}
#game-recorder-button::before{content:"";display:inline-block;width:17px;height:14px;margin-right:7px;vertical-align:-2px;background:currentColor;clip-path:polygon(0 8%,67% 8%,67% 32%,100% 8%,100% 92%,67% 68%,67% 92%,0 92%)}
#game-recorder-button:focus-visible{outline:3px solid #fff1b5;outline-offset:3px}
#game-window.martin-front-open #game-recorder-button{visibility:visible;pointer-events:auto;top:auto;bottom:8px;right:6px;width:30px;height:27px;max-width:30px;min-height:0;padding:4px;font-size:0;border-color:#ffd25c;background:#211c25;color:#fff3d1}
#game-window.martin-front-open #game-recorder-button::before{margin:0;vertical-align:0}
@media(max-width:500px){#game-recorder-button{top:48px;right:8px;max-width:calc(100% - 16px);font-size:11px;padding:6px 8px}}
#game-window.martin-front-open .martin-select-footer{padding-right:34px}
#game-window.martin-front-open:has(#game-recorder-dialog[open]) #game-recorder-button{visibility:hidden;pointer-events:none}
@media(max-width:600px){#game-window.martin-front-open #game-recorder-button{bottom:3px;right:3px;width:23px;height:21px;padding:3px;max-width:23px}#game-window.martin-front-open .martin-select-footer{padding-right:26px}#game-recorder-button::before{width:13px;height:11px;margin-right:4px}}
