/* Black Cabinet // operator-facing interface. Existing Trinket art/combat CSS remains untouched. */
:root{--bc-mint:#65efd4;--bc-gold:#eecb88;--bc-line:#315054}
body.bc-player{overflow:hidden;height:100dvh;min-height:0}
#bcLounge{position:fixed;inset:0;z-index:3000;display:flex;flex-direction:column;color:#ddf0ec;font:12px/1.45 Consolas,'Cascadia Code',monospace;background:radial-gradient(ellipse at 50% 0%,#163d43 0%,transparent 58%),linear-gradient(160deg,#080e15,#0b161a 65%,#071016);overflow:hidden}
#bcLounge[hidden]{display:none!important}
#bcLounge *{box-sizing:border-box}
.bc-lounge-top{height:58px;flex:0 0 58px;padding:0 clamp(16px,3vw,42px);border-bottom:1px solid #29464b;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#071016dd}
.bc-wordmark{display:flex;align-items:center;gap:12px}.bc-wordmark .mark{width:27px;height:27px}.bc-wordmark strong{display:block;font-size:13px;letter-spacing:1.5px}.bc-wordmark small{display:block;color:#89b9b8;font-size:9px;letter-spacing:1px;margin-top:2px}
.bc-lounge-top .bc-identity{display:flex;align-items:center;gap:12px;font-size:10px;color:#8bb6b2}.bc-identity b{color:#dff5f0}
.bc-lounge-core{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,330px);gap:15px;max-width:1380px;width:100%;margin:auto;padding:clamp(14px,2vw,26px);overflow:hidden}
.bc-lounge-core.bc-full{display:block;max-width:1170px}
.bc-main{min-height:0;display:flex;flex-direction:column;gap:14px}
.bc-intro{padding:6px 0 3px}.bc-kicker{font-size:10px;letter-spacing:2px;color:#69dfc9}.bc-intro h1{font:700 clamp(23px,3vw,38px)/1.12 Consolas,monospace;color:#ffdda0;margin:8px 0 7px}.bc-intro p{color:#93b3b8;font-size:12px;margin:0}
.bc-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;min-height:0;flex:1;max-height:520px}
.bc-mode{cursor:pointer;text-align:left;display:flex;flex-direction:column;position:relative;overflow:hidden;padding:18px 16px;border:1px solid #325057;color:#dbece5;background:linear-gradient(145deg,#12282a,#0c1b21);transition:border-color .15s,background .15s,transform .15s}
.bc-mode:hover,.bc-mode:focus-visible{border-color:#6ad5c4;background:linear-gradient(145deg,#183e3c,#10252b);transform:translateY(-1px)}.bc-mode.featured{border-color:#529a8f;background:linear-gradient(145deg,#204342,#10252a)}
.bc-mode .glyph{font-size:30px;color:#79e9d2;margin-bottom:auto}.bc-mode .tag{font-size:9px;color:#72a39e;letter-spacing:1.2px;margin:8px 0 5px}.bc-mode strong{font-size:15px;line-height:1.2;color:#f0e9d1}.bc-mode span.desc{font-size:10px;line-height:1.5;color:#9ab9b9;margin-top:6px;max-width:220px}.bc-mode .open{font-size:10px;color:#8ef8da;margin-top:9px}
.bc-side{border:1px solid #325057;background:linear-gradient(145deg,#112226,#0a171e);display:flex;flex-direction:column;min-height:0}.bc-side-h{padding:16px;border-bottom:1px solid #284249;display:flex;align-items:center;justify-content:space-between}.bc-side-h b{font-size:12px;letter-spacing:1px;color:#d6e7df}.bc-side-h small{color:#70e5ce;font-size:9px}.bc-side-body{padding:15px;overflow:auto;min-height:0;flex:1}
.bc-separator{border-top:1px solid #2a444b;margin:13px 0}.bc-field{display:block;margin-bottom:10px;font-size:10px;color:#80b4ac}.bc-field select,.bc-field input{display:block;width:100%;margin-top:7px;padding:10px;border:1px solid #496d70;background:#091920;color:#deefed;border-radius:0;font:12px Consolas,monospace}
.bc-button{border:1px solid #44716e;background:#14322f;color:#c5fff0;padding:10px 12px;font:700 11px Consolas,monospace;text-align:center;cursor:pointer}.bc-button.primary{background:#64e2cc;border-color:#a8ffe8;color:#08251f}.bc-button.soft{background:#0b1b20;color:#a7d4cb}.bc-button.warn{border-color:#835d5b;color:#ffb4b4}.bc-button:disabled{opacity:.4;cursor:not-allowed}.bc-button-row{display:flex;gap:8px;flex-wrap:wrap}.bc-button-row>*{flex:1}
.bc-operator{display:flex;align-items:center;gap:9px;border-bottom:1px solid #243a3f;padding:9px 0}.bc-presence{width:6px;height:6px;border-radius:50%;background:#59777b}.bc-presence.online{background:#65efd4;box-shadow:0 0 9px #65efd4}.bc-operator .name{flex:1;font-size:11px}.bc-operator .state{font-size:9px;color:#7eaba4}.bc-help{font-size:10px;color:#96b5b2;line-height:1.65}.bc-notice{font-size:10px;color:#e9bc85;padding:10px;border:1px solid #775c38;background:#36281b55}.bc-error{color:#ffa7a7}.bc-room-card{border:1px solid #3c655f;background:#132928;padding:12px;margin:9px 0}.bc-room-card b{display:block;font-size:12px;color:#ebecd9}.bc-room-card small{display:block;color:#a3bdb5;font-size:10px;margin:5px 0 10px}
.bc-status-label{font-size:9px;letter-spacing:1.5px;color:#7be7d1;margin-bottom:10px}.bc-wait{padding:35px 16px;border:1px solid #3b6660;background:#0c2020;text-align:center}.bc-wait h2{font-size:17px;color:#ffdda0}.bc-pulse{font-size:36px;display:inline-block;color:#82ffe0;animation:bcPulse 2s infinite}@keyframes bcPulse{50%{opacity:.3;transform:scale(.8)}}
#bcRibbon{display:none;position:sticky;top:0;z-index:90;height:38px;flex:0 0 38px;background:#081719;border-bottom:1px solid #3b6863;align-items:center;justify-content:space-between;padding:0 18px;font:10px Consolas,monospace;color:#9bd3c7}
#bcRibbon button{background:#173631;border:1px solid #48857b;color:#b3ffe9;padding:6px 10px;font:700 10px Consolas,monospace}
body.bc-in-game{height:100dvh;overflow:hidden;display:flex;flex-direction:column}body.bc-in-game #bcRibbon{display:flex}body.bc-in-game .top{height:45px;flex:0 0 45px;padding:0 20px}body.bc-in-game .topright #resetAll{display:none}body.bc-in-game .topright #scoreTop{display:none}
body.bc-in-game main.shell{flex:1;min-height:0;width:100%;max-width:none;padding:12px 16px 8px;overflow:hidden}body.bc-in-game .shell .heading{display:none}body.bc-in-game .shell .smallfoot{display:none}body.bc-in-game .shell .layout{height:100%;grid-template-columns:minmax(140px,.72fr) minmax(400px,2.3fr) minmax(185px,1fr);gap:10px}body.bc-in-game .layout>.panel{height:100%;overflow:auto;min-height:0}body.bc-in-game .layout .panel-body{padding:10px}body.bc-in-game .boardarea{grid-template-columns:minmax(230px,1.2fr) minmax(190px,.8fr);gap:10px;padding:8px 4px}body.bc-in-game .board-wrap{max-width:min(37vh,350px)}body.bc-in-game .arena{padding:12px}body.bc-in-game .step{min-height:54px}body.bc-in-game .rack{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}body.bc-in-game .relic{min-height:65px;padding:5px 2px;font-size:9px}body.bc-in-game .encounter{margin-top:9px}body.bc-in-game .combatbar{margin-top:8px;padding:9px}
body.bc-in-game #bcDuel{flex:1;min-height:0;max-width:none;width:100%;padding:8px 15px;overflow:hidden;display:flex;flex-direction:column}body.bc-in-game #bcDuel[hidden]{display:none!important}body.bc-in-game #bcDuel .duel-hero{flex:0 0 auto;margin-bottom:7px}body.bc-in-game #bcDuel .duel-hero h1{font-size:21px;margin:1px 0}body.bc-in-game #bcDuel .duel-hero .duel-descr{display:none}body.bc-in-game #bcDuel .duel-mode-banner{flex:0 0 auto;margin-bottom:7px}body.bc-in-game #bcDuel #duelBody{min-height:0;flex:1;overflow:hidden}body.bc-in-game #bcDuel .duel-note{font-size:10px;line-height:1.3}body.bc-in-game #bcDuel>.duel-note{display:none}
body.bc-in-game #bcDuel .duel-setup-layout{height:100%;grid-template-columns:minmax(315px,.9fr) minmax(400px,1.1fr);gap:10px}body.bc-in-game #bcDuel .duel-section{padding:9px;margin:0;overflow:auto;min-height:0}body.bc-in-game #bcDuel .duel-board{width:min(30vh,275px);margin:5px auto;gap:4px}body.bc-in-game #bcDuel .duel-rack{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:5px}body.bc-in-game #bcDuel .duel-rack-card{min-height:45px;padding:4px;gap:4px}body.bc-in-game #bcDuel .duel-rack-card .duel-art{max-width:27px}body.bc-in-game #bcDuel .duel-rack-card small{font-size:8px}body.bc-in-game #bcDuel .duel-protocols{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:5px 0}body.bc-in-game #bcDuel .duel-protocol{min-height:48px;padding:5px 6px}body.bc-in-game #bcDuel .duel-protocol span{display:none}body.bc-in-game #bcDuel .duel-protocol b{font-size:10px}body.bc-in-game #bcDuel .duel-dual-stat{margin:5px 0}body.bc-in-game #bcDuel .duel-combos{max-height:54px;overflow:auto}body.bc-in-game #bcDuel .duel-review{gap:10px}body.bc-in-game #bcDuel .duel-review .duel-board{width:min(27vh,260px)}body.bc-in-game #bcDuel .duel-round-showcase{margin:5px 0}body.bc-in-game #bcDuel .duel-round-log{max-height:50px;overflow:auto}body.bc-in-game #bcDuel .duel-actions{margin-top:5px}body.bc-in-game #bcDuel .duel-inputs #duelNew,body.bc-in-game #bcDuel .duel-inputs #duelExit{display:none}
@media(max-width:1100px){.bc-lounge-core{grid-template-columns:minmax(0,1fr) 260px}.bc-mode-grid{gap:7px}.bc-mode{padding:12px}.bc-mode strong{font-size:12px}.bc-mode .glyph{font-size:24px}body.bc-in-game .shell .layout{grid-template-columns:150px minmax(365px,1fr) 190px}body.bc-in-game .boardarea{display:block}body.bc-in-game .coach{display:none}}
@media(max-width:730px){.bc-lounge-core{display:flex;flex-direction:column;overflow:auto}.bc-side{flex:0 0 auto;min-height:210px}.bc-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.bc-mode{min-height:145px}body.bc-in-game .shell .layout{grid-template-columns:1fr}body.bc-in-game .layout>.panel.left,body.bc-in-game .layout>.panel.right{display:none}body.bc-in-game #bcDuel .duel-setup-layout{grid-template-columns:1fr}body.bc-in-game #bcDuel .duel-setup-layout>.duel-section{overflow:auto}}
@media(prefers-reduced-motion:reduce){.bc-pulse{animation:none}}

/* Inventory-status strip; keep it outside the game-board artwork. */
#bcLiveRibbon{display:none;align-items:center;gap:12px;padding:5px 18px;background:#101d20;border-bottom:1px solid #345957;color:#99c5ba;font:10px Consolas,monospace;height:30px;flex:0 0 30px}
#bcLiveRibbon>span:first-child{color:#ebd39b;font-weight:bold}#bcLiveRibbon b{color:#78e9cf}#bcLiveRibbon #bcStashScope{margin-left:auto}#bcLiveRibbon button{padding:3px 9px;border:1px solid #527c73;background:#102a29;color:#9ce8d4;font:10px Consolas,monospace;cursor:pointer}
body.bc-in-game #bcLiveRibbon{display:flex}
@media(max-width:730px){#bcLiveRibbon #bcStashScope{display:none}}

/* 3.1.771 - Simplified operator entrance: only four official modes.
   The legacy ghost/local engines remain for backward compatibility, not public navigation. */
body.bc-player #ghostTab, body.bc-player #duelTab {display:none!important}
@media(max-width:730px){.bc-mode-grid{grid-template-rows:repeat(2,minmax(145px,1fr))}}
