/* FNaF 1 multiplayer terminal: restrained CRT-green monochrome, matching the original title menu. */
.mp-menu-option{font-family:monospace!important;font-size:clamp(15px,1.8vw,21px)!important;color:#d6d6d6!important;letter-spacing:-.04em!important;text-shadow:1px 1px #000,0 0 4px #777!important;min-height:32px!important;white-space:nowrap}
.mp-menu-option:hover,.mp-menu-option:focus-visible{color:#fff!important;text-shadow:0 0 7px #ddd!important}
.mp-screen{position:fixed;z-index:1000;inset:0;background:#030403;color:#d7d9d3;display:grid;place-items:center;padding:clamp(10px,2.5vw,30px);font-family:Consolas,'Courier New',monospace;overflow:auto}
.mp-screen.hidden{display:none!important}.mp-grain{position:fixed;inset:0;pointer-events:none;opacity:.13;background:repeating-linear-gradient(0deg,transparent 0 2px,#b8c0b4 3px,transparent 4px);mix-blend-mode:screen}.mp-window{position:relative;width:min(1060px,100%);max-height:94dvh;overflow:auto;border:1px solid #596054;background:linear-gradient(135deg,#0c0e0b,#030403 65%);box-shadow:0 0 0 4px #000,0 0 0 5px #252a24,0 18px 70px #000;padding:clamp(14px,3vw,28px)}.mp-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #343a32;padding-bottom:15px}.mp-kicker,.mp-section-title,.mp-footer,.mp-note,.mp-room-status,.mp-player-name small,.mp-lobby-main span,.mp-lobby-main small,.mp-or,.mp-bottom-actions span{font-size:10px;letter-spacing:.12em;color:#8b9485}.mp-header h1{font-size:clamp(21px,4vw,35px);letter-spacing:.08em;margin:7px 0 0;color:#f1f1ec;font-weight:900}.mp-header h1 span{font-size:.48em;color:#9da496;vertical-align:middle}.mp-close{background:#090a08;border:1px solid #52584e;color:#ddd;font-size:24px;line-height:1;width:40px;height:40px;padding:0}.mp-content{padding:18px 0}.mp-columns,.mp-room-grid{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:14px}.mp-card{border:1px solid #3b4238;background:#090b08;padding:clamp(12px,2vw,20px);min-width:0}.mp-section-title{color:#b6c0af;margin-bottom:14px}.mp-section-title span{float:right}.mp-card label:not(.mp-check){display:block;color:#aab0a5;font-size:10px;letter-spacing:.12em;margin:12px 0}.mp-card label strong{float:right;color:#f1f1eb;font-size:12px}.mp-card input:not([type=checkbox]),.mp-card select{display:block;width:100%;margin-top:6px;background:#030403;color:#ddd;border:1px solid #3e453b;border-radius:0;padding:10px;font:12px monospace;min-height:38px}.mp-card input[type=range]{accent-color:#d7dcd0;padding:0;min-height:20px}.mp-card input[type=checkbox]{accent-color:#cfd5c8}.mp-primary,.mp-secondary,.mp-danger,.mp-small,.mp-join-code button,.mp-lobby-side button{border:1px solid #7c8576;border-radius:0;background:#d9ddd4;color:#080a07;padding:11px 13px;font:bold 11px monospace;letter-spacing:.07em;min-height:38px}.mp-primary{width:100%;margin-top:12px}.mp-primary:disabled,.mp-lobby-side button:disabled{opacity:.35;cursor:not-allowed}.mp-secondary,.mp-small{background:#10130f;color:#d4d9ce;border-color:#4a5146}.mp-danger,.mp-ban{background:#1b0c0b!important;color:#f0b2aa!important;border-color:#77423b!important}.mp-check{display:flex;gap:9px;align-items:center;font-size:10px;letter-spacing:.08em;color:#aeb5a7;margin:14px 0}.mp-or{text-align:center;margin:16px 0 8px}.mp-join-code{display:flex;gap:8px}.mp-join-code input{flex:1;text-transform:uppercase;letter-spacing:.2em;text-align:center}.mp-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.mp-list-head .mp-section-title{margin-bottom:14px}.mp-lobby-list{display:grid;gap:8px}.mp-lobby{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #30362e;background:#050605}.mp-lobby-main{min-width:0;display:grid;gap:4px}.mp-lobby-main strong{font-size:13px;overflow-wrap:anywhere;color:#e2e5dd}.mp-lobby-main span,.mp-lobby-main small{font-size:9px}.mp-lobby-side{display:grid;justify-items:end;gap:7px;flex-shrink:0}.mp-lobby-side b{font-size:12px;color:#e0e3db}.mp-lobby-side button{min-height:30px;padding:6px 10px}.mp-empty{text-align:center;color:#7e8779;font-size:11px;line-height:2;padding:35px 12px}.mp-note{line-height:1.7;margin:15px 0 0;font-size:9px;letter-spacing:.04em}.mp-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #343a32;padding-top:12px;font-size:9px}.mp-room-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.mp-room-head h2{font-size:clamp(18px,3vw,26px);margin:0 0 6px;overflow-wrap:anywhere}.mp-room-head p{margin:0;color:#929b8b;font-size:11px}.mp-code{font-size:18px;letter-spacing:.2em;color:#f1f2ec;margin:0 7px}.mp-room-status{display:flex;align-items:center;gap:8px;white-space:nowrap}.mp-live-dot{width:7px;height:7px;background:#c5d3b8;box-shadow:0 0 8px #a7bf95;border-radius:50%}.mp-players-list{display:grid;gap:7px}.mp-player{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #30362e;background:#050605}.mp-player-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid #555e50;color:#d8ddd2}.mp-player-name{flex:1;min-width:0;display:grid;gap:3px}.mp-player-name strong{font-size:12px;overflow-wrap:anywhere}.mp-player-name small{font-size:8px}.mp-small{font-size:9px;min-height:29px;padding:5px 8px}.mp-host-controls{display:grid;gap:8px;margin-top:16px}.mp-host-controls .mp-danger{width:100%}.mp-bottom-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.mp-toast{position:sticky;bottom:4px;max-width:100%;width:max-content;margin:10px auto 0;padding:10px 14px;background:#dce0d7;color:#050605;font-size:11px;font-weight:bold;opacity:0;transform:translateY(6px);transition:.15s;pointer-events:none}.mp-toast.show{opacity:1;transform:translateY(0)}.mp-toast.error{background:#e2b5ad;color:#190706}.mp-action-banner{position:fixed;z-index:996;bottom:max(18px,env(safe-area-inset-bottom));top:auto;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;max-width:calc(100vw - 24px);padding:9px 14px;border:1px solid #aab39e;background:#030403ed;color:#f1f4e9;font:700 11px monospace;letter-spacing:.06em;text-align:center;box-shadow:0 3px 16px #000;transition:opacity .15s,transform .15s}.mp-action-banner.show{opacity:1;transform:translate(-50%,0)}.mp-door-label{display:none;position:absolute;z-index:30;top:36%;padding:5px 7px;max-width:38%;overflow-wrap:anywhere;background:#030403e8;border:1px solid #aab39e;color:#f0f2e9;font:700 9px monospace;pointer-events:none}.mp-door-label.left{left:1%}.mp-door-label.right{right:1%}.mp-door-label.show{display:block}.mp-door-label.closed{border-color:#d0a39a;color:#ffc7bc}body.mp-open{overflow:hidden}
@media(max-width:720px){.mp-screen{padding:0}.mp-window{max-height:100dvh;height:100dvh;border:0;padding:15px 12px;box-shadow:none}.mp-columns,.mp-room-grid{grid-template-columns:1fr}.mp-header h1{font-size:23px}.mp-kicker{font-size:8px}.mp-content{padding:12px 0}.mp-card{padding:13px}.mp-create{order:0}.mp-browser{order:1}.mp-lobby{padding:9px}.mp-room-head{flex-direction:column}.mp-room-status{align-self:flex-start}.mp-player{flex-wrap:wrap}.mp-player-name{min-width:90px}.mp-bottom-actions{align-items:flex-start;flex-direction:column}.mp-footer{font-size:8px}.mp-room-grid{gap:10px}}
@media(prefers-reduced-motion:reduce){.mp-toast,.mp-action-banner{transition:none}}

.mp-quick-button{display:none;position:fixed;z-index:998;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));border:1px solid #aab39e;background:#030403eF;color:#f1f4e9;padding:10px 12px;font:700 10px monospace;letter-spacing:.06em;box-shadow:0 3px 16px #000}.mp-quick-button:hover,.mp-quick-button:focus-visible{background:#d9ddd4;color:#080a07}.mp-playing .mp-quick-button{display:block}

.mp-roster-bar{display:none;position:fixed;z-index:997;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(900px,calc(100vw - 24px));gap:6px;justify-content:center;flex-wrap:wrap;pointer-events:none}.mp-roster-bar.visible{display:flex}.mp-roster-player{display:grid;gap:2px;max-width:220px;min-width:95px;padding:6px 9px;background:#030403eF;border:1px solid #5b6554;box-shadow:0 2px 12px #000}.mp-roster-player b{font-size:10px;color:#f0f2e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-roster-player small{font-size:8px;color:#aab49e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-roster-player:first-child{border-color:#aab39e}

body.mp-playing.camera-monitor-raised .mp-quick-button{display:none!important;visibility:hidden!important;pointer-events:none!important}

@media(max-width:720px){.mp-action-banner{bottom:max(68px,calc(env(safe-area-inset-bottom) + 62px));max-width:calc(100vw - 20px);font-size:10px}}


/* Multiplayer-only badge collection */
.badge-screen{position:fixed;inset:0;z-index:10010;display:grid;place-items:center;padding:12px;background:#000e;font-family:monospace;color:#e5e8df}.badge-screen.hidden{display:none!important}.badge-window{width:min(900px,100%);max-height:92dvh;overflow:auto;padding:clamp(14px,3vw,25px);border:1px solid #66705f;background:linear-gradient(145deg,#10130f,#030403 70%);box-shadow:0 0 0 4px #000,0 0 0 5px #343a30,0 20px 70px #000}.badge-window header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #394034;padding-bottom:12px}.badge-window header small,.badge-card small{font-size:9px;letter-spacing:.12em;color:#929b8c}.badge-window h2{font-size:clamp(20px,4vw,30px);margin:6px 0 0;letter-spacing:.08em}.badge-window header button{width:38px;height:38px;background:#090b08;border:1px solid #606958;color:#ddd;font-size:23px}.badge-subtitle{font-size:9px;letter-spacing:.1em;color:#aab39e;margin:13px 0}.badge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.badge-card{display:flex;align-items:center;gap:11px;min-width:0;padding:10px;border:1px solid #343b31;background:#080a07}.badge-card.locked{opacity:.56}.badge-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid #6b7563;background:#151a13;color:#e2e8d8;font-size:12px;font-weight:900;text-align:center}.badge-card strong{display:block;font-size:12px;margin:3px 0;color:#e5e8df}.badge-card p{margin:0;color:#9da596;font-size:10px;line-height:1.4}.badge-card.earned{border-color:#737f68}.badge-card.earned .badge-icon{background:#222b1c;border-color:#a2b48f}.badge-window footer{margin-top:12px;padding-top:10px;border-top:1px solid #343b31;text-align:right;color:#aeb7a2;font-size:10px;letter-spacing:.12em}
@media(max-width:600px){.badge-grid{grid-template-columns:1fr}.badge-window{max-height:94dvh}}
/* Keep the badge dialog close control anchored inside its header on every viewport. */
#badgeCollection .badge-window header{position:relative;align-items:flex-start;min-width:0}
#badgeCollection .badge-window header>div{min-width:0;flex:1 1 auto}
#badgeCollection #badgeClose{position:relative;inset:auto;display:grid;place-items:center;flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;margin:0;padding:0;align-self:flex-start;line-height:1;font-family:monospace;font-size:23px;font-weight:400;box-sizing:border-box;transform:none;float:none}
@media(max-width:600px){#badgeCollection .badge-window header{gap:10px}#badgeCollection #badgeClose{flex-basis:36px;width:36px;min-width:36px;height:36px;min-height:36px}}

/* Keep the badge dialog controls fixed while only the badge list scrolls. */
#badgeCollection .badge-window{display:flex;flex-direction:column;overflow:hidden;max-height:92dvh;min-height:0}
#badgeCollection .badge-window header{flex:0 0 auto}
#badgeCollection .badge-window .badge-subtitle{flex:0 0 auto}
#badgeCollection #badgeGrid{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:2px 5px 8px 0;scrollbar-gutter:stable; -webkit-overflow-scrolling:touch}
#badgeCollection .badge-window footer{flex:0 0 auto}
@media(max-width:600px){#badgeCollection .badge-window{max-height:94dvh}}

/* Human-controlled animatronics */
.mp-anim-assignments{display:grid;gap:6px;margin:8px 0 12px}
.mp-role-row,.mp-role-readonly{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.8fr);align-items:center;gap:9px;padding:8px 9px;border:1px solid #30362e;background:#050605;color:#cdd3c6;font:10px monospace;letter-spacing:.06em}
.mp-role-row select{width:100%;min-width:0;background:#030403;color:#e2e5dd;border:1px solid #4a5146;border-radius:0;padding:8px;font:10px monospace}
.mp-role-row select:disabled{opacity:.45}
.mp-role-readonly span{text-align:right;color:#d4dccb;font-weight:700}
.mp-anim-vote{position:fixed;z-index:10020;left:50%;top:50%;transform:translate(-50%,-50%);width:min(410px,calc(100vw - 24px));padding:16px;border:1px solid #9aa58d;background:#050705f5;color:#e8ece2;box-shadow:0 0 0 4px #000,0 12px 48px #000;font-family:Consolas,'Courier New',monospace}
.mp-vote-head{display:flex;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #4b5545;color:#aeb9a2;font-size:9px;letter-spacing:.12em}
.mp-vote-head strong{color:#fff}
.mp-vote-question{margin:14px 0;color:#dfe5d8;font-size:12px;letter-spacing:.06em}
.mp-vote-question b{display:block;margin-top:5px;color:#fff;font-size:15px}
.mp-vote-counts{display:flex;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #30382c;border-bottom:1px solid #30382c;font-size:10px;color:#aeb8a3}
.mp-vote-counts b{color:#fff;margin-left:4px}
.mp-vote-progress{display:flex;justify-content:space-between;gap:10px;margin-top:8px;color:#7f8a77;font-size:9px}
.mp-vote-actions{display:grid;grid-template-columns:1fr 1fr 40px;gap:8px;margin-top:13px}
.mp-vote-actions button{min-height:42px;border:1px solid #9aa58d;background:#d9ddd4;color:#080a07;font:bold 12px monospace;letter-spacing:.08em}
.mp-vote-actions .mp-vote-skip{background:#171b15;color:#e6ebdf;border-color:#586250;font-size:22px;padding:0}
.mp-vote-recorded{margin:14px 0 0;padding:10px;border:1px solid #53604b;background:#11160f;color:#e4eadb;font-size:10px;font-weight:bold;letter-spacing:.08em}
.mp-vote-wheel-overlay{position:fixed;z-index:10030;inset:0;display:grid;place-items:center;padding:16px;background:#000e;color:#f4f5ef;font-family:Consolas,'Courier New',monospace}
.mp-vote-wheel-card{position:relative;display:grid;justify-items:center;gap:15px;width:min(390px,100%);padding:22px 16px;border:1px solid #697360;background:linear-gradient(145deg,#11150f,#030403 72%);box-shadow:0 0 0 4px #000,0 18px 60px #000}
.mp-vote-wheel-card>small{color:#aeb9a2;font-size:10px;letter-spacing:.16em;font-weight:bold}
.mp-vote-pointer{position:absolute;top:59px;left:calc(50% - 12px);z-index:2;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:24px solid #fff;border-bottom:0;filter:drop-shadow(0 2px 3px #000)}
.mp-vote-wheel{position:relative;width:min(260px,68vw);aspect-ratio:1;border:5px solid #e9eee3;border-radius:50%;background:conic-gradient(from 0deg,#dc2626 0deg 180deg,#2563eb 180deg 360deg);box-shadow:0 0 0 4px #10140e,0 0 28px #000;transform:rotate(0);transition:transform 3.6s cubic-bezier(.12,.72,.08,1)}
.mp-vote-wheel-overlay.spinning .mp-vote-wheel{transform:rotate(var(--wheel-spin))}
.mp-vote-wheel-no,.mp-vote-wheel-yes{position:absolute;top:50%;color:#fff;font-size:25px;font-weight:900;text-shadow:0 2px 5px #000;letter-spacing:.04em}
.mp-vote-wheel-no{right:13%;transform:translateY(-50%)}
.mp-vote-wheel-yes{left:8%;transform:translateY(-50%)}
.mp-vote-wheel-result{font-size:13px;letter-spacing:.1em}
body.mp-animatronic #leftButton,body.mp-animatronic #rightButton,body.mp-animatronic #leftLightButton,body.mp-animatronic #rightLightButton,body.mp-animatronic #camButton,body.mp-animatronic #monitorHandle,body.mp-animatronic #muteCallButton,body.mp-animatronic .sprite-controls,body.mp-animatronic #mpQuickButton{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.mp-animatronic #cams{display:block!important}
@media(max-width:600px){.mp-anim-vote{top:auto;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);padding:13px}.mp-vote-wheel-card{padding:18px 12px}.mp-vote-pointer{top:55px}}
@media(prefers-reduced-motion:reduce){.mp-vote-wheel{transition:none}}
