/* The game fills the browser viewport. The world keeps its own tile scale. */
:root{--kg-ink:#0d2422;--kg-panel:#17382e;--kg-gold:#d9b773;--kg-cream:#f6e4bc;--kg-muted:#a5bbae;--kg-line:#b496565c}
body.kingdom-playing,body.in-kingdom{overflow:hidden;background:#080e10}
#kg-desktop{position:fixed;inset:0;z-index:60;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#182725 0,#0d1718 55%,#070d0e 100%)}
#micedom-kingdom{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;isolation:isolate;display:grid;grid-template-rows:64px minmax(0,1fr) 122px 72px;background:#102a25;color:var(--kg-cream);font-family:Trebuchet MS,Arial,sans-serif;overflow:hidden;border-radius:12px 10px 13px 11px;box-shadow:0 22px 85px #0009,0 0 0 1px #b5995c80,0 0 0 5px #090f10}
#micedom-kingdom:before{content:"";position:absolute;z-index:40;inset:0;border:1px solid #d6ba7980;border-radius:inherit;pointer-events:none}
#micedom-kingdom:after{content:"";position:absolute;z-index:41;inset:5px;pointer-events:none;background:linear-gradient(#e1c589,#e1c589) left top/17px 1px no-repeat,linear-gradient(#e1c589,#e1c589) left top/1px 17px no-repeat,linear-gradient(#e1c589,#e1c589) right top/17px 1px no-repeat,linear-gradient(#e1c589,#e1c589) right top/1px 17px no-repeat,linear-gradient(#e1c589,#e1c589) left bottom/17px 1px no-repeat,linear-gradient(#e1c589,#e1c589) left bottom/1px 17px no-repeat,linear-gradient(#e1c589,#e1c589) right bottom/17px 1px no-repeat,linear-gradient(#e1c589,#e1c589) right bottom/1px 17px no-repeat;opacity:.42}
#micedom-kingdom *{box-sizing:border-box}
#micedom-kingdom [hidden]{display:none!important}
#micedom-kingdom button,#micedom-kingdom input{font:inherit}
#micedom-kingdom button{cursor:pointer}
#micedom-kingdom button:disabled{cursor:default;opacity:.45}
#micedom-kingdom button:focus-visible,#micedom-kingdom input:focus-visible,#kg-canvas:focus-visible{outline:2px solid #f3d389;outline-offset:-3px}
.kg-header svg,.kg-nav svg,.kg-sidebar h2 svg{fill:none}
.kg-header{position:relative;z-index:5;display:flex;align-items:center;gap:18px;padding:8px 22px;background:linear-gradient(115deg,#234334,#132d28 58%,#20392e);border-bottom:1px solid #b79c62;box-shadow:0 3px 12px #06191340}
.kg-header:after,.kg-footer:after{content:"";position:absolute;inset:4px 8px;border-top:1px solid #d1b06b20;border-bottom:1px solid #d1b06b18;border-radius:5px 3px 6px 4px;pointer-events:none}
.kg-brand{display:flex;align-items:center;gap:10px;flex:none;border:0;background:none;padding:0 10px 0 0;font-family:Georgia,serif!important;font-size:30px!important;letter-spacing:.04em;font-weight:bold;color:#f5d294!important;text-shadow:0 2px #352d1b}
.kg-brand img{width:42px;height:42px;object-fit:contain}.kg-brand img.kg-brand-image{width:205px;height:47px;filter:drop-shadow(0 2px 3px #06141080)}.kg-brand svg{width:43px;height:43px;stroke-width:1.4}.kg-brand span{display:inline-block}
.kg-global-online{display:flex;align-items:center;gap:7px;flex:none;padding:8px 11px;border:1px solid #8baf7d45;border-radius:20px;background:#0b2820a3;color:#d9e9c6;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.kg-global-online i{width:7px;height:7px;border-radius:50%;background:#91d89b;box-shadow:0 0 0 3px #91d89b13}
.kg-location{display:grid;justify-items:center;gap:3px;min-width:0;max-width:440px;flex:1;margin:auto;padding:5px 18px;border:1px solid #a88b525e;background:#071e1c70;clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
.kg-location strong{font:19px/1.1 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:#f0d79d}.kg-location span{font-size:10px;color:#b3c4b2;letter-spacing:.05em}
.kg-wallet{display:flex;gap:9px;flex:none}.kg-wallet>div,.kg-wallet>span{display:flex;gap:8px;align-items:center;min-width:88px;padding:6px 10px;background:#081c1b9c;border:1px solid #96865b5c;border-radius:6px;box-shadow:inset 0 1px #f6deb311}.kg-wallet img{width:29px;height:29px;object-fit:contain}.kg-wallet b{font:20px Georgia,serif;font-variant-numeric:tabular-nums;color:#f7e2ac}.kg-wallet small{display:none}
.kg-profile{width:47px;height:47px;border:1px solid #ccaa68;border-radius:50%;background:radial-gradient(ellipse,#3a6250,#152e27);padding:0;overflow:hidden;flex:none}.kg-profile canvas{width:100%;height:100%}.kg-settings{width:34px;height:34px;display:grid;place-items:center;flex:none;padding:6px;border:1px solid transparent;border-radius:7px 6px 8px 5px;background:transparent;color:#c5a669!important}.kg-settings svg{width:21px;height:21px;fill:none}.kg-settings:hover{background:#d7bf7e0d;border-color:#b7a16955;color:#f6dd9e!important}
.kg-stage{position:relative;min-height:0;overflow:hidden;background:radial-gradient(ellipse,#496b57,#16352d)}
#kg-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;outline:none;cursor:default;touch-action:none}
.kg-sidebar{position:absolute;right:18px;top:18px;width:182px;padding:13px 12px 10px;background:linear-gradient(150deg,#214031eb,#102a25ed);border:1px solid #c3a26380;border-radius:11px 8px 12px 9px;box-shadow:0 5px 20px #0a1e2d30;backdrop-filter:blur(4px)}
.kg-sidebar h2{font:21px Georgia,serif;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #bfa3623d;color:#e5c48b}.kg-friend-list{display:grid;gap:5px;max-height:190px;overflow:auto;scrollbar-width:thin;scrollbar-color:#8b9b6f transparent}.kg-friend-list>p,.kg-sidebar>p{font-size:11px;line-height:1.5;color:#a9bbab;margin:6px 0 12px}.kg-friend-row{display:flex;gap:9px;align-items:center;padding:5px 0}.kg-friend-row canvas{width:35px;height:39px;border:1px solid #b49b6355;border-radius:50%;background:#284538;flex:none}.kg-friend-row strong{font-size:12px;color:#f1dfb8}.kg-friend-row small,.kg-friend-row span{display:block;font-size:10px;color:#96b6a2;margin-top:3px}.kg-friend-row i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8dbe79;margin-right:4px}.kg-sidebar>button{width:100%;margin-top:12px;border:1px solid #b79a605d;border-radius:5px;background:#253e30;padding:7px;font-size:12px!important;color:#e6cea0!important}.kg-sidebar>button:hover{border-color:#dcc389;background:#31523e}
.kg-round-hud{position:absolute;top:17px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:10px 14px;background:#102c26ed;border:1px solid #c7a565a1;border-radius:9px;box-shadow:0 3px 18px #041c2440;max-width:calc(100% - 35px);font-size:12px}
.kg-bootcamp-hud{position:absolute;top:17px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:108px minmax(220px,1fr) auto auto;align-items:center;gap:3px 15px;max-width:900px;padding:12px 17px;border:1px solid #d9b773a8;border-radius:10px 8px 12px 9px;background:linear-gradient(115deg,#244735f5,#102c27f5);box-shadow:0 5px 22px #061c2445;color:#f0deb3;font-size:12px}
#kg-bootcamp-timer{grid-row:1/3;font:28px/1 Georgia,serif;color:#ffe1a0;font-variant-numeric:tabular-nums;text-align:center;border-right:1px solid #c5aa6b55;padding-right:15px;white-space:nowrap}
#kg-bootcamp-progress{grid-column:2;grid-row:1;white-space:nowrap}#kg-bootcamp-best{grid-column:2;grid-row:2;color:#a9c7b0;font-size:10px;white-space:nowrap}
.kg-bootcamp-hud button{grid-row:1/3;white-space:nowrap;padding:9px 11px;border:1px solid #b5a06d77;border-radius:6px;background:#264636;color:#e9d39f!important;font-size:11px!important}.kg-bootcamp-hud button:hover{border-color:#f0d393;background:#35583e}
#kg-timer{font:32px/1 Georgia,serif;color:#ffe1a0;font-variant-numeric:tabular-nums;min-width:76px;text-align:center}#kg-objective{font-size:13px;color:#f5e0b4;max-width:225px}#kg-switches{font-size:11px;white-space:nowrap;color:#c3d9ac}.kg-round-hud button{padding:7px 10px;white-space:nowrap;background:#253d2f;border:1px solid #9d86555c;border-radius:5px;color:#d5c18e!important;font-size:10px!important}.kg-round-hud button:hover{border-color:#e7c67c}
.kg-context{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);padding:8px 15px;border:1px solid #cdb17280;border-radius:7px;background:#112d28ed;color:#f5deb0;font-size:12px;white-space:nowrap;box-shadow:0 3px 12px #10252255;pointer-events:none}
.kg-context.kg-proximity{display:flex;align-items:center;gap:14px;bottom:20px;max-width:420px;padding:10px 15px;background:linear-gradient(120deg,#213e2ff5,#142e28f5);border-color:#dbc18caa;border-radius:9px 7px 11px 8px;white-space:normal;text-align:left;box-shadow:0 5px 18px #10252255}
.kg-proximity strong{font:17px/1.2 Georgia,serif;color:#f3dba9;white-space:nowrap}.kg-proximity>span{padding-left:14px;border-left:1px solid #b7a16c55;color:#c8d2b9;font-size:11px;line-height:1.5}.kg-proximity kbd{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-right:5px;padding:0 5px;background:#d7bf85;border:1px solid #f1dcab;border-radius:5px;color:#1d3a2b;font:700 12px Trebuchet MS,sans-serif;box-shadow:0 2px #071e18}
.kg-context:empty{display:none}.kg-toast{position:absolute;z-index:20;top:88px;left:50%;transform:translateX(-50%);max-width:min(510px,90%);padding:12px 18px;background:#0b2725f2;border:1px solid #d2b06c;border-radius:8px;color:#f5e1b5;text-align:center;line-height:1.5;font-size:12px;box-shadow:0 12px 30px #0c201966;pointer-events:none}.kg-toast:empty{display:none}.kg-toast:not(.show):not(.is-visible){opacity:0}
.kg-round-result{position:absolute;z-index:25;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,90%);padding:28px;text-align:center;border:1px solid #e1bf79;border-radius:15px;background:linear-gradient(140deg,#1b4537f5,#0d2826f5);box-shadow:0 22px 80px #081f20b0}.kg-round-result h2{font:35px/1.1 Georgia,serif;margin:7px 0 12px;color:#ffe3a3}.kg-round-result p{font-size:13px;line-height:1.65;color:#bccfbd}.kg-round-result strong{color:#edcb77}.kg-round-result button{padding:11px 17px;margin:5px;border-radius:7px;border:1px solid #bba16a;background:#dcc084;color:#213a2d!important;font-weight:bold!important}.kg-round-result button+button{background:#1f4034;color:#ead5a7!important}
.kg-chat{position:relative;z-index:4;display:grid;grid-template-rows:25px minmax(25px,1fr) 35px;padding:0 15px 8px;gap:0;background:linear-gradient(110deg,#112c27,#102629 60%,#0e2622);border-top:2px solid #b99b5b;border-bottom:1px solid #b99b5b5c;box-shadow:0 -3px 18px #142e2833}
.kg-chat-tabs{display:flex;gap:2px;align-items:stretch}.kg-chat-tabs button{min-width:98px;border:1px solid #927c4e77;border-top:0;border-radius:0 0 4px 4px;background:#132f2a;font:12px Georgia,serif!important;color:#d4c09b!important;padding:3px 20px}.kg-chat-tabs button.is-active,.kg-chat-tabs button[aria-selected=true]{color:#f1d28c!important;background:linear-gradient(#365340,#233b30);border-color:#c5a866a1;box-shadow:inset 0 -2px #a68745}.kg-chat-tabs span{font-size:10px;color:#849e90;padding:7px 12px}
.kg-chat-log{list-style:none;padding:5px 9px;margin:0;border:1px solid #7b815159;border-bottom:0;border-top:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#839268 #132e28;font-size:12px;line-height:1.55;background:#0b211e42}.kg-chat-log li{margin:0 0 1px;overflow-wrap:anywhere;color:#e7dfc7}.kg-chat-log strong{color:#b9d68e;margin-right:7px}.kg-chat-log .kg-system{color:#9db7a4;font-size:11px}.kg-chat-log .kg-party-message strong{color:#9fcacc}
.kg-chat-form{display:flex;align-items:center;border:1px solid #70815f88;border-radius:0 0 6px 6px;background:#0a211e8c;overflow:hidden}.kg-chat-form input{width:100%;min-width:0;flex:1;border:0;background:transparent;color:#f4e8ca;padding:7px 10px;outline:none;font-size:12px!important}.kg-chat-form input::placeholder{color:#839c8c}.kg-chat-form button{width:41px;align-self:stretch;border:0;background:transparent;color:#cdb883!important;font-size:18px!important}.kg-chat-form button:hover{background:#36513c}
.kg-footer{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:5px 26px;background:linear-gradient(110deg,#1e3b2f,#132e27 70%,#1e382d);border-bottom:1px solid #ad9053;min-width:0}
.kg-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:#a7b9a3;font-size:10px;max-width:430px;line-height:1.6}.kg-controls>span{white-space:nowrap}.kg-controls kbd{display:inline-block;min-width:21px;padding:2px 5px;background:linear-gradient(#273e30,#142e27);border:1px solid #94845a;border-radius:4px;box-shadow:0 2px #061a16;color:#e9d4a6;font:11px Trebuchet MS,sans-serif;text-align:center;margin-right:3px}
.kg-nav{display:flex;align-items:center;justify-content:center;gap:0;min-width:0}.kg-nav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:78px;min-height:52px;padding:5px 14px;border:0;border-left:1px solid #a48b4c33;background:none;color:#d7c79e!important;font-size:10px!important}.kg-nav button:first-child{border-left:0}.kg-nav button svg{display:block;width:24px;height:24px;color:#d1af6d;stroke-width:1.65}.kg-nav button>span:first-child{font-size:23px;line-height:26px}.kg-nav button:hover{background:#c4b5790d;color:#fff0b7!important}.kg-nav button.is-active,.kg-nav button[aria-current=true]{color:#ffe6a7!important;background:linear-gradient(transparent,#ddc4790d)}.kg-nav button.is-active:after,.kg-nav button[aria-current=true]:after{content:"";position:absolute;bottom:0;left:13px;right:13px;height:2px;background:#d9b56d;box-shadow:0 -2px 9px #e8bd5c77}
.kg-dialog{position:fixed;inset:auto;left:50%;top:50%;margin:0;transform:translate(-50%,-50%);transform-origin:center;box-sizing:border-box;padding:26px;width:710px;max-width:none;max-height:790px;overflow:auto;background:linear-gradient(135deg,#1b3d32,#102b27);border:1px solid #cfb16b;border-radius:15px;box-shadow:0 30px 120px #061c22b8;color:#e8ddbd;font:14px Trebuchet MS,Arial,sans-serif}.kg-dialog::backdrop{background:#061e22a6;backdrop-filter:blur(4px)}.kg-dialog h2{font:31px/1.15 Georgia,serif;color:#f0d495;margin:0 35px 15px 0}.kg-dialog h3{font:22px Georgia,serif;color:#e4cb94}.kg-dialog p{font-size:13px;line-height:1.65;color:#b6cbb8}.kg-dialog button{font:inherit;cursor:pointer}.kg-dialog>button[data-kg=close],.kg-dialog .kg-close{float:right;background:none;border:0;color:#f0d498;font-size:26px;padding:0 4px}.kg-dialog .kg-primary{background:linear-gradient(#e7ce91,#c6a565);border:1px solid #ebd39b;color:#1c3c2e;border-radius:6px;padding:10px 17px;font-weight:bold;box-shadow:0 2px #081e18}.kg-dialog .kg-secondary{background:#244535;border:1px solid #927e51;color:#e0c99b;border-radius:6px;padding:10px 17px}.kg-dialog input{padding:10px 12px;background:#0d2721;color:#f3e3bb;border:1px solid #87997166;border-radius:6px;font:inherit;max-width:100%}.kg-dialog label{display:block;color:#e0d4b4;font-size:12px;margin-bottom:8px}.kg-dialog .kg-game-card{border:1px solid #9a845566;background:#0c282360;border-radius:10px;padding:18px;margin:15px 0}.kg-dialog .kg-game-card h3{margin:0 0 8px}.kg-dialog .kg-game-card p{margin:7px 0 16px}.kg-dialog .kg-join-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding-top:18px;margin-top:18px;border-top:1px solid #a28d4f44}.kg-dialog .kg-join-form input{width:100%}.kg-dialog .kg-join-form label{flex:1;min-width:160px;margin:0}.kg-dialog .kg-emotes{display:flex;flex-wrap:wrap;gap:10px}.kg-dialog .kg-emotes button{font-size:30px;background:#244a38;border:1px solid #7a8b58;border-radius:8px;padding:12px}
.kg-dialog.ex-feature{padding:0;width:1030px;max-width:none;max-height:790px;overflow:auto}.kg-dialog.ex-social-host{width:920px}.kg-dialog.ex-admin-host{width:880px}.kg-dialog.ex-play-host{width:1080px;padding:0}
/* Feature styles predate the fixed desktop and use viewport-sized dialogs.
   Keep every top-layer panel inside the same scaled logical frame. */
#micedom-kingdom .kg-dialog{max-width:none;max-height:790px}
.kg-sidebar h2{display:flex;align-items:center;gap:9px}.kg-sidebar h2 svg{width:21px;height:21px;flex:none;color:#d9b575}.kg-friend{display:flex;align-items:center;gap:8px;padding:5px 0;width:100%;text-align:left;border:0;background:transparent}.kg-friend:hover{background:#a8be8710}.kg-friend-avatar{width:39px;height:42px;border:1px solid #b49b6366;border-radius:50%;background:#294737;flex:none}.kg-friend-copy{display:grid;gap:3px;min-width:0;flex:1}.kg-friend-copy strong{font:15px Georgia,serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f1dfb8}.kg-friend-copy small{font-size:9px;color:#9ab7a1}.kg-friend i{width:6px;height:6px;border-radius:50%;flex:none}.kg-online{background:#79c88b;box-shadow:0 0 0 2px #79c88b15}.kg-offline{background:#89958b}
#kg-chat-channel{min-width:112px;text-align:center;padding:4px 16px;border:1px solid #bd9f5f99;border-top:0;border-radius:0 0 5px 5px;background:linear-gradient(#34553e,#244032);color:#edcf8e;font:13px Georgia,serif;box-shadow:inset 0 -2px #b2934b}.kg-chat-tabs .kg-chat-status{padding-block:7px}.kg-chat-tabs>button{margin-left:auto;border:0;background:transparent;min-width:0;font:10px Trebuchet MS,Arial,sans-serif!important;color:#b7b991!important;padding-inline:8px}.kg-chat-empty,.kg-chat-private{font-size:11px;color:#a7bba5!important}.kg-chat-private strong{color:#d9bd79}
.kg-nav button[aria-current=page]{color:#ffe6a7!important;background:linear-gradient(transparent,#ddc4790d)}.kg-nav button[aria-current=page]:after{content:"";position:absolute;bottom:0;left:13px;right:13px;height:2px;background:#d9b56d;box-shadow:0 -2px 9px #e8bd5c77}
#micedom-kingdom .kg-dialog .kg-primary{color:#1c3c2e}.kg-dialog>.kg-primary{margin:6px 8px 6px 0}.kg-dialog .kg-code-form{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:9px;margin-top:22px;padding-top:20px;border-top:1px solid #b6a16a40}.kg-dialog .kg-code-form label{grid-column:1/-1;margin:0}.kg-dialog .kg-code-form input{min-width:0;width:100%;font:16px Trebuchet MS,Arial,sans-serif;text-transform:uppercase;letter-spacing:.18em}.kg-dialog .kg-game-reward{display:inline-block;margin:0 0 16px;padding:8px 12px;border:1px solid #bda36b55;border-radius:5px;color:#e7cf93;background:#b7bd6b0b;font-size:11px}.kg-dialog .kg-small{font-size:11px;max-width:560px}.kg-round-result small{font-size:10px;letter-spacing:.13em;color:#d7be7d}.kg-creator-host{z-index:35;background:linear-gradient(110deg,#0b2929f2,#143a31ed),linear-gradient(145deg,#2d4b43,#1c2936) center/cover}
@media(prefers-reduced-motion:reduce){#micedom-kingdom *,#micedom-kingdom *:before,#micedom-kingdom *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Community spaces use the same fixed desktop, with quieter room furniture
   and compact, clearly labelled social actions. */
.kg-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.kg-room-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;min-height:206px;padding:66px 17px 16px;border:1px solid #c1a37188;border-radius:12px 9px 14px 10px;background:#193a30;box-shadow:0 6px 18px #051d2530}
.kg-room-card::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(180deg,#0c282308 0%,#102b278c 34%,#102b27f7 72%),var(--room-picture);background-size:cover;background-position:center;opacity:.92;transition:transform .2s ease}
.kg-room-card:hover::before{transform:scale(1.035)}
.kg-room-card[data-room=hotel]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}.kg-room-card[data-room=lounge]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}.kg-room-card[data-room=nightclub]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}.kg-room-card[data-room=hub]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}.kg-room-card[data-room=bar]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}
.kg-dialog .kg-room-card h3{margin:0 0 5px;font-size:22px;color:#fff0c6;text-shadow:0 2px 6px #09241c}
.kg-dialog .kg-room-card p{margin:0 0 14px;color:#dae3c9;font-size:12px;line-height:1.5;flex:1}
.kg-room-card button{font-size:11px!important;padding:8px 13px!important}
#micedom-kingdom .kg-dialog.kg-mouse-actions{width:470px;padding:27px}
.kg-mouse-actions h2{font-size:28px}.kg-dance-choices{display:grid;gap:9px;margin:20px 0}.kg-dance-choices button{text-align:left;padding:13px 15px!important;border-color:#b8a87580!important;background:linear-gradient(105deg,#345844,#234237)!important}
.kg-dance-choices button::before{content:'♪';display:inline-block;width:30px;color:#f0cb84;font:22px Georgia,serif;vertical-align:middle}
.kg-dance-choices button:nth-child(2){background:linear-gradient(105deg,#3f4664,#293c43)!important}.kg-dance-choices button:nth-child(3){background:linear-gradient(105deg,#514260,#353748)!important}
#micedom-kingdom .kg-dialog.kg-community-welcome{width:640px;padding:32px;border-color:#e4c58b;background:radial-gradient(ellipse at 95% 0,#42634d66,transparent 65%),linear-gradient(130deg,#203f32,#112d28)}
.kg-community-welcome h2{max-width:490px;font-size:31px}.kg-community-welcome>p{font-size:14px;line-height:1.7}
.kg-welcome-promises{list-style:none;margin:22px 0;padding:0;border-top:1px solid #ac975955;border-bottom:1px solid #ac975955}
.kg-welcome-promises li{position:relative;padding:12px 8px 12px 28px;color:#e7ddbb;font-size:13px;line-height:1.5}.kg-welcome-promises li+li{border-top:1px solid #ac97591f}.kg-welcome-promises li::before{content:'✦';position:absolute;left:3px;color:#ddbf7c}
.kg-community-welcome>.kg-primary{margin-top:15px!important;padding:13px 18px!important}.kg-community-welcome>.kg-secondary{font-size:12px!important;margin-top:9px}

/* Illustrated atlas and private homes live inside the same scaled client. */
.kg-dialog.kg-world-dialog{width:1320px;padding:22px;scrollbar-width:thin;scrollbar-color:#b3985c #15352d}
.kg-world-dialog>h2{margin-bottom:6px}.kg-world-dialog>p{margin:0 0 13px;max-width:950px}
.kg-world-tools{display:flex;align-items:center;gap:8px;margin:0 0 12px}.kg-world-tools .kg-secondary{padding:6px 12px;font-size:12px}.kg-world-tools .kg-small{margin-left:auto;color:#a5bda9;font-size:11px}.kg-world-zoom-label{min-width:40px;text-align:center;font-size:11px;color:#f0d49b;font-variant-numeric:tabular-nums}
.kg-world-layout{display:grid;grid-template-columns:minmax(0,1fr)245px;gap:15px;align-items:stretch}
.kg-world-map-scroll{height:420px;overflow:auto;border:1px solid #c2a46c99;border-radius:11px;background:#152d25;scrollbar-width:thin;scrollbar-color:#b69a5b #152d25;box-shadow:0 8px 24px #061b2140;overscroll-behavior:contain}
.kg-world-map-scroll:focus-visible{outline:2px solid #ffe1a0;outline-offset:2px}
.kg-world-map{position:relative;min-width:100%;line-height:0;isolation:isolate}.kg-world-art{display:block;width:100%;height:auto;max-width:none;user-select:none}
.kg-world-pin{position:absolute;z-index:1;transform:translate(-50%,-50%);display:grid;place-items:center;width:29px;height:29px;padding:0;border:2px solid #ead5a4;border-radius:50%;background:#265541;color:#fff5cf;font:bold 12px/1 Trebuchet MS,Arial,sans-serif!important;box-shadow:0 2px 6px #071d18b3;transition:box-shadow .15s,background .15s}
.kg-world-pin[data-status=planned]{background:#5e604c;color:#f4e7c7;border-color:#c5b386}.kg-world-pin:hover{background:#537052;box-shadow:0 0 0 5px #f8df9d55,0 2px 8px #102c24}.kg-world-pin.is-selected{z-index:2;background:#f2d08a;color:#18362b;border-color:#fff2c8;box-shadow:0 0 0 5px #f4d49155,0 3px 10px #0c231c}.kg-world-pin:focus-visible{outline:3px solid #fff;outline-offset:3px}
.kg-world-details{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:18px 16px;border:1px solid #b79a6259;border-radius:11px;background:radial-gradient(ellipse at top right,#3d5a3f66,transparent 70%),#102d26;overflow:auto;max-height:420px;scrollbar-width:thin}
.kg-world-region{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#b7c791}.kg-world-details h3{font-size:25px;line-height:1.15;margin:0}.kg-world-details p{margin:0;font-size:12px;line-height:1.6}.kg-world-details .kg-small{font-size:10px}.kg-world-details button{width:100%;margin:1px 0 0;font-size:12px}.kg-world-details>button:last-child{margin-top:auto}.kg-world-availability{display:inline-flex;gap:5px;margin:2px 0;padding:5px 8px;border:1px solid #90bb7b66;border-radius:15px;background:#305a3a66;color:#d6e8b6;font-size:10px}.kg-world-availability.is-planned{border-color:#bd9f6355;background:#69573240;color:#d8c29b}
.kg-world-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:14px}
.kg-world-location{display:grid;grid-template-columns:23px minmax(0,1fr);gap:3px 7px;align-items:center;text-align:left;padding:8px 9px;border:1px solid #8d9b6d44;border-radius:6px;background:#173c2d;color:#e4dfbd}.kg-world-location strong{font-size:11px;line-height:1.2;font-weight:500}.kg-world-location small{grid-column:2;font-size:9px;color:#acd299}.kg-world-number{grid-row:1/3;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#54704766;color:#e8d2a1;font-size:10px}.kg-world-location[data-status=planned]{background:#18342b}.kg-world-location[data-status=planned] small{color:#a9b3a0}.kg-world-location:hover,.kg-world-location.is-selected{border-color:#e2c180;background:#315340}.kg-world-location:focus-visible{outline:2px solid #f5da98;outline-offset:1px}
.kg-dialog.kg-home-dialog{width:830px}.kg-home-dialog>p{max-width:700px}
.kg-home-card{position:relative;isolation:isolate;overflow:hidden;border:1px solid #c4a67099;border-radius:12px;padding:24px;min-height:226px;margin:19px 0 24px;background:#193c2f}
.kg-home-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#112d26f7 0%,#112d26e8 43%,#112d2640 100%),url('assets/world/home.png') center/cover}
.kg-home-card h3{font-size:29px;margin:0 0 12px}.kg-home-status{display:inline-block;margin:0 0 17px!important;padding:5px 10px;border:1px solid #ccb57977;border-radius:20px;background:#203f2f;color:#e6d29f!important;font-size:11px!important}.kg-home-status[data-open=true]{border-color:#9bbf7b;background:#2c553b;color:#d1edbd!important}
.kg-home-actions{display:flex;flex-wrap:wrap;gap:10px}.kg-home-card .kg-small{max-width:460px;margin:14px 0 0;font-size:10px;color:#c2d0b7}
.kg-home-directory{max-height:300px;overflow:auto;scrollbar-width:thin;scrollbar-color:#aa935a transparent}.kg-home-directory h3{font-size:22px;margin:0 0 12px}.kg-home-directory>.kg-secondary{margin-top:14px;font-size:12px}.kg-home-visit{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #b79c5f33}.kg-home-visit strong{font:17px Georgia,serif;color:#ead7ad}.kg-home-visit button{padding:7px 15px!important;font-size:12px}.kg-home-loading{padding:35px;text-align:center}
@media(prefers-reduced-motion:reduce){.kg-world-pin{transition:none}}

/* Micedom Plaza: the illustrated world leads; the interface quietly frames it. */
:root{--kg-ink:#0b1720;--kg-panel:#152631;--kg-gold:#e3b870;--kg-cream:#eef2ef;--kg-muted:#9eb0ba;--kg-line:#334652}
body.kingdom-playing,body.in-kingdom{background:#071018}
#kg-desktop{background:radial-gradient(ellipse at 50% 30%,#1c3540,#0a141d 60%,#060e15)}
#micedom-kingdom{grid-template-rows:68px minmax(0,1fr) 105px 54px;border-radius:12px;background:#10202b;box-shadow:0 24px 90px #0008,0 0 0 1px #49606a66,0 0 0 5px #081018}
#micedom-kingdom:before{border-color:#6b81884a;border-radius:12px}
#micedom-kingdom:after{display:none}
.kg-header{gap:9px;padding:8px 15px;background:linear-gradient(180deg,#1b2b36,#0e1c26);border-bottom:1px solid #44535a;box-shadow:0 4px 16px #04101a5c}
.kg-header:after,.kg-footer:after{inset:0;border-top:1px solid #ffffff07;border-bottom:0;border-radius:0}
.kg-brand{padding:0 11px 0 0;border-right:1px solid #3b4d586b;margin-right:2px}
.kg-brand img.kg-brand-image{width:167px;height:48px;filter:drop-shadow(0 2px 2px #0008)}
.kg-top-nav{display:flex;align-items:center;gap:5px;flex:1;min-width:0}
.kg-top-nav button{height:42px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid #35465280;border-radius:9px;color:#d4e0e6;background:linear-gradient(165deg,#20313e,#13212c);font:600 12px/1 Trebuchet MS,Arial,sans-serif!important;white-space:nowrap;box-shadow:inset 0 1px #ffffff06,0 2px 3px #07131b40;transition:background .16s,border-color .16s,transform .16s}
.kg-top-nav button svg{width:20px;height:20px;flex:none;color:#bdcddd;stroke-width:1.8}
.kg-top-nav button:hover{background:linear-gradient(165deg,#304a5a,#1c303e);border-color:#71899b;transform:translateY(-1px);color:#fff4db}
.kg-top-nav button:hover svg{color:#f3cd86}
.kg-top-nav button[aria-pressed=true],.kg-top-nav button[aria-current=page]{background:linear-gradient(165deg,#375568,#223c4c);border-color:#6a8b9a;color:#fff}
.kg-top-nav button[data-kg=outfits] svg{color:#f5bd60}
.kg-global-online{padding:7px 9px;border-color:#37635455;background:#092d28;color:#b8e8d1;font-size:11px;gap:6px;border-radius:8px}
.kg-global-online i{background:#6ed4a6;box-shadow:0 0 8px #69e2ad38;width:6px;height:6px}
.kg-wallet{gap:5px}
.kg-wallet>div,.kg-wallet>span{min-width:65px;padding:5px 7px;gap:5px;background:#091e24;border:1px solid #2d444e;border-radius:8px;box-shadow:inset 0 1px #ffffff04}
.kg-wallet img{width:25px;height:25px}.kg-wallet b{font:600 15px Trebuchet MS,Arial,sans-serif;color:#f2e4c7}
.kg-profile{width:41px;height:41px;border:1px solid #657982;background:radial-gradient(ellipse,#3e5964,#172d39);box-shadow:inset 0 1px #fff1}
.kg-settings{width:31px;height:35px;padding:6px;border-color:#2f414c;border-radius:8px;background:#14232e;color:#c5d1dd!important}
.kg-settings:hover{background:#2a4050;border-color:#657d8e;color:#f0d297!important}
.kg-stage{background:#0a1e29;box-shadow:inset 0 0 45px #04131a20}
#kg-canvas{cursor:crosshair}
.kg-stage .kg-location{position:absolute;z-index:3;top:16px;left:18px;display:grid;justify-items:start;gap:5px;min-width:198px;max-width:300px;margin:0;padding:12px 17px;border:1px solid #7a949168;clip-path:none;border-radius:11px;background:linear-gradient(135deg,#122630f2,#0c1a25ed);box-shadow:0 5px 20px #0523314d;pointer-events:none;backdrop-filter:blur(8px)}
.kg-stage .kg-location strong{font:600 17px/1.2 Trebuchet MS,Arial,sans-serif;color:#f7e2b6;letter-spacing:.02em}
.kg-stage .kg-location span{font:10px/1.3 Trebuchet MS,Arial,sans-serif;color:#a9c0c5;letter-spacing:.03em}
.kg-sidebar{display:none;z-index:6;top:15px;right:17px;width:236px;padding:16px;background:linear-gradient(150deg,#1d303cf5,#0c1b26f5);border:1px solid #61778080;border-radius:12px;box-shadow:0 8px 30px #04162166;backdrop-filter:blur(10px)}
.kg-shell[data-friends-open=true] .kg-sidebar{display:block}
.kg-sidebar h2{font:600 17px Trebuchet MS,Arial,sans-serif;color:#f0ddb7;border-color:#4a606a66}
.kg-sidebar h2 svg{width:20px;height:20px;color:#dfba78}
.kg-friend-list{max-height:265px;gap:5px;scrollbar-color:#536d7b transparent}
.kg-friend{padding:8px 3px;border-bottom:1px solid #52687922}
.kg-friend:hover{background:#8eb3c710;border-radius:6px}
.kg-friend-avatar{border-color:#5d7a8b7a;background:#2b4352}
.kg-friend-copy strong{font:600 13px Trebuchet MS,Arial,sans-serif;color:#e7edf0}
.kg-friend-copy small{color:#97b9bf;font-size:10px}
.kg-sidebar>button{background:#263f4e;border-color:#476373;color:#e3d8ba!important;border-radius:7px;padding:9px}
.kg-sidebar>button:hover{background:#345263;border-color:#78939d}
.kg-minimap{position:absolute;z-index:3;top:16px;right:18px;width:164px;height:107px;overflow:hidden;border:1px solid #a2a17a88;border-radius:10px;padding:0;background:#10242d url('assets/world/world-map.png') center/cover;box-shadow:0 5px 20px #061b2966;color:#f3e4bd;text-align:left;transition:transform .18s,border-color .18s}
.kg-minimap:hover{transform:translateY(-2px);border-color:#ffe1a0}
.kg-minimap img{width:100%;height:100%;object-fit:cover;opacity:.93;display:block}
.kg-minimap span,.kg-minimap strong{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#0b1d2ef5);padding:20px 11px 8px;font:600 11px Trebuchet MS,Arial,sans-serif;letter-spacing:.02em}
.kg-minimap svg{position:absolute;top:6px;right:6px;width:22px;height:22px;padding:3px;background:#0b1d2ed9;border:1px solid #66809088;border-radius:5px}
.kg-shell[data-friends-open=true] .kg-minimap{display:none}
.kg-plaza-help{position:absolute;z-index:3;bottom:15px;left:18px;padding:8px 12px;border:1px solid #78908c55;border-radius:7px;background:#10232cdf;color:#d4e1dc;font:11px/1.4 Trebuchet MS,Arial,sans-serif;pointer-events:none;box-shadow:0 3px 12px #071a2640}
.kg-plaza-help kbd{padding:2px 4px;border:1px solid #5e7b8580;border-radius:3px;color:#f2d395;background:#233b45;font:10px Trebuchet MS,Arial,sans-serif}
.kg-context,.kg-context.kg-proximity{background:linear-gradient(135deg,#1d3341f5,#0c202cf5);border-color:#a3926788;border-radius:9px;box-shadow:0 5px 20px #0b1c3455}
.kg-proximity strong{font:600 15px Trebuchet MS,Arial,sans-serif;color:#f3d69c}.kg-proximity>span{border-color:#73868f55;color:#c1d1d5}
.kg-toast{top:100px;background:#102734f5;border-color:#a8916288;border-radius:10px;color:#e8e8d9;box-shadow:0 8px 30px #07172675;transition:opacity .18s}
.kg-chat{grid-template-rows:22px minmax(16px,1fr) 34px;padding:0 15px 7px;background:linear-gradient(120deg,#152733,#101e29);border-top:1px solid #5a6d70;border-bottom:1px solid #344651;box-shadow:0 -3px 15px #07152240}
.kg-chat-tabs{align-items:center;gap:4px;padding-top:1px}
#kg-chat-channel{min-width:108px;padding:3px 13px;font:600 10px Trebuchet MS,Arial,sans-serif;background:#2b4858;border:1px solid #56738388;border-top:0;color:#dce7eb;box-shadow:inset 0 -1px #7099aa55;border-radius:0 0 5px 5px}
.kg-chat-tabs span{font-size:10px;padding:5px 10px;color:#92abb9}.kg-chat-tabs .kg-chat-status{padding-block:4px}
.kg-chat-tabs>button{color:#96b1bf!important;font-size:10px!important}
.kg-chat-log{padding:3px 9px;border-color:#3b556140;background:#081b2433;font-size:11px;line-height:1.5;scrollbar-color:#547281 #15232d}
.kg-chat-log li{color:#dce5e5}.kg-chat-log strong{color:#86d4d6}.kg-chat-empty,.kg-chat-private{color:#96aeb9!important}
.kg-chat-form{border:1px solid #426071;border-radius:7px;background:#1c3444;box-shadow:inset 0 1px 4px #09172244}
.kg-chat-form input{color:#eff2eb;font-size:12px!important;padding:7px 11px}.kg-chat-form input::placeholder{color:#97b1c1}
.kg-chat-form button{width:44px;background:#284858;color:#d6e5ee!important;border-left:1px solid #3c5c6d}.kg-chat-form button:hover{background:#3c6475}
.kg-footer{gap:20px;padding:5px 19px;background:linear-gradient(180deg,#1c2d39,#111e29);border-bottom:0}
.kg-controls{gap:8px;color:#9eb1be;font-size:10px;max-width:540px}
.kg-controls kbd{min-width:20px;padding:2px 5px;background:linear-gradient(#2d4554,#203441);border-color:#506977;color:#d6e2e6;box-shadow:0 1px #07151e;font-size:10px}
.kg-nav{gap:4px}
.kg-nav button{flex-direction:row;gap:6px;min-width:70px;min-height:35px;padding:6px 11px;border:1px solid transparent;border-radius:7px;font-size:11px!important;color:#c4d3dd!important}
.kg-nav button svg{width:19px;height:19px;color:#c2af86;stroke-width:1.7}
.kg-nav button:hover{background:#294454;border-color:#4e6778;color:#fff0c6!important}
.kg-nav button[aria-current=page],.kg-nav button.is-active{background:#284250;border-color:#4f6b76;color:#f8dfab!important}
.kg-nav button[aria-current=page]:after,.kg-nav button.is-active:after{display:none}
.kg-dialog{background:radial-gradient(ellipse at 90% 0,#2b4d5966,transparent 70%),linear-gradient(135deg,#1b303c,#101f2c);border-color:#6c807e;border-radius:16px;color:#e1e8e5;box-shadow:0 30px 120px #06111bd9}
.kg-dialog::backdrop{background:#06111b9c;backdrop-filter:blur(7px)}
.kg-dialog h2{color:#f0d6a0}.kg-dialog h3{color:#e7d3ab}.kg-dialog p{color:#b4c7ce}
.kg-dialog .kg-primary{background:linear-gradient(#f4d696,#d8ab62);border-color:#efd4a1;border-radius:8px;color:#24323a!important;box-shadow:0 2px #6d542c55}
.kg-dialog .kg-primary:hover{filter:brightness(1.08)}
.kg-dialog .kg-secondary{background:#2a4554;border-color:#587080;border-radius:8px;color:#dee4df}
.kg-dialog .kg-secondary:hover{background:#3a5b6b;border-color:#8da5ac}
.kg-dialog input{background:#102633;border-color:#4a6575;color:#eef3ed;border-radius:8px}
.kg-dialog .kg-game-card{background:#11263399;border-color:#5d7c874f;border-radius:12px}
.kg-dialog .kg-emotes button{background:#294653;border-color:#5f7a86;border-radius:10px}
.kg-room-card{border-color:#71858177;border-radius:12px}.kg-room-card[data-room=plaza]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}
.kg-world-details{background:radial-gradient(ellipse at top right,#3d637366,transparent 70%),#122936;border-color:#61778466}
.kg-world-location{background:#1d3b49;border-color:#54717b66;color:#e1e6dc}
.kg-world-location[data-status=planned]{background:#152d3a}.kg-world-location:hover,.kg-world-location.is-selected{background:#365566;border-color:#d7bd83}
.kg-world-region{color:#a1c3c9}.kg-world-map-scroll{background:#10232d;border-color:#7d8e7f99}
.kg-home-status{background:#24444f;border-color:#728d8888}.kg-home-visit{border-color:#607f8633}
/* Camera controls live inside the plaza viewport. */
.kg-header .kg-brand{order:0}.kg-header .kg-top-nav{order:1}.kg-header .kg-global-online{order:2;margin-left:auto}.kg-header .kg-wallet{order:3}.kg-header .kg-profile{order:4}.kg-header .kg-settings{order:6}
.kg-camera-tools{position:absolute;right:18px;bottom:15px;z-index:3;display:flex;gap:5px;padding:5px;background:#10232cee;border:1px solid #657e8770;border-radius:9px;box-shadow:0 4px 16px #05192350}
.kg-camera-tools button{width:33px;height:31px;border:1px solid #466170;border-radius:6px;background:#233a48;color:#f4d9a0;font:600 21px Trebuchet MS,Arial,sans-serif}.kg-camera-tools button:hover{background:#3a5562}.kg-shell:not([data-tiled=true]) .kg-camera-tools,.kg-shell:not([data-tiled=true]) .kg-plaza-help{display:none}
.kg-room-card[data-room=plaza]{--room-picture:linear-gradient(145deg,#2d4b43,#1c2936)}

/* Consistent room camera, compact chat composer, and optional left history. */
body.kingdom-playing,body.in-kingdom,#kg-desktop{background:#050607}
#micedom-kingdom{grid-template-rows:68px minmax(0,1fr) 62px 48px;background:#050607}
.kg-stage{background:#050607;box-shadow:none}
#kg-canvas{cursor:default;touch-action:none;user-select:none}
#kg-canvas.is-panning{cursor:grabbing!important}
.kg-chat{grid-template-rows:19px 34px;gap:2px;padding:0 15px 5px;background:#101b24}
.kg-chat-tabs{padding:0;min-height:18px}.kg-chat-tabs span{padding-block:2px}
.kg-chat-form{display:flex;min-height:34px;align-items:stretch}
.kg-chat-form input{min-width:0;flex:1}
.kg-chat-form .kg-chat-toggle{width:auto;min-width:105px;padding:0 12px;border:0;border-right:1px solid #3c5c6d;background:#243c49;font-size:11px!important;white-space:nowrap}
.kg-chat-form .kg-chat-toggle[aria-pressed=true]{color:#ffe1a0!important;background:#365362}
.kg-chat-history{position:absolute;z-index:7;left:18px;top:104px;bottom:69px;width:330px;max-height:470px;display:none;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #526772;border-radius:11px;background:#111e28f5;box-shadow:0 10px 30px #0005}
.kg-shell[data-history-open=true] .kg-chat-history{display:grid}
.kg-chat-history>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #344854}
.kg-chat-history h2,.kg-chat-history h3{margin:0;font:600 14px Trebuchet MS,Arial,sans-serif;color:#efdbb6}
.kg-chat-history>header button,.kg-chat-history>button{border:0;background:transparent;color:#bdcdd5;font-size:18px;padding:4px 7px}
.kg-chat-history .kg-chat-log{margin:0;padding:12px 14px;border:0;border-radius:0;background:transparent;font-size:12px;line-height:1.6;max-height:none;min-height:0;overflow-y:auto;overflow-wrap:anywhere}
.kg-chat-history .kg-chat-log li{padding:5px 0;border-bottom:1px solid #ffffff07}
.kg-adventure-controls{position:absolute;z-index:5;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:9px;padding:8px;background:#0c1921e8;border:1px solid #50636d;border-radius:14px;touch-action:none}
.kg-adventure-controls button{min-width:58px;height:46px;padding:0 15px;border:1px solid #506b79;border-radius:9px;background:#263f4f;color:#edf2eb;font-size:14px;font-weight:bold;user-select:none;touch-action:none}
.kg-adventure-controls button:active,.kg-adventure-controls button[aria-pressed=true]{background:#496979;border-color:#d8ba7d}
.kg-quality-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.kg-quality-option{display:grid;align-content:start;gap:8px;text-align:left;padding:18px;border:1px solid #4b626e;border-radius:12px;background:#142733;color:#c4d2db;min-height:125px}
.kg-quality-option strong{font-size:16px;color:#f0dfbd}.kg-quality-option span,.kg-quality-option small{font-size:12px;line-height:1.5;color:#a7bfcb}
.kg-quality-option[aria-pressed=true]{background:#233e47;border-color:#d8b47b;box-shadow:inset 0 0 0 1px #d8b47b30}
.kg-quality-option[aria-pressed=true] strong{color:#ffe2a3}
.kg-team-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.kg-team-card{display:flex;align-items:center;gap:15px;padding:19px;background:#142934;border:1px solid #526977;border-radius:13px}
.kg-team-card canvas{width:64px;height:72px;flex:none;background:#263d49;border-radius:10px}
.kg-team-card h3{margin:0 0 5px;font-size:17px}.kg-team-card p{margin:4px 0;font-size:12px;line-height:1.45}.kg-team-card .kg-team-role{color:#ecc688;font-weight:600}.kg-team-card .kg-team-online{color:#76d6a4}
.kg-team-card small{color:#9cb2bd}.kg-team-card .kg-team-badge{padding:4px 7px;color:#f3d299;background:#4c412b;border:1px solid #9e8255;border-radius:5px;font-size:10px}
.kg-shell[data-quality=battery] .kg-stage .kg-location,.kg-shell[data-quality=battery] .kg-sidebar,.kg-shell[data-quality=battery] .kg-dialog::backdrop{backdrop-filter:none}
.kg-shell[data-quality=battery] *{animation:none!important;transition:none!important}
.kg-footer{padding-block:3px}.kg-controls{font-size:11px}.kg-top-nav button[data-kg=team] svg{color:#d6b476}
.kg-chat-history-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #344854}
.kg-chat-history-header button{border:0;background:transparent;color:#bdcdd5;font-size:18px;padding:4px 7px}
.kg-chat-form .kg-chat-toggle{min-width:40px;order:-1;border-left:0}
.kg-chat-form .kg-chat-toggle[aria-expanded=true]{color:#ffe1a0!important;background:#365362}
.kg-team-copy{display:grid;gap:6px}.kg-team-copy>strong{font-size:18px;color:#f0dfbd}.kg-team-copy .kg-online-text{color:#76d6a4}.kg-team-copy .kg-offline-text{color:#9cb2bd}

/* Edge-to-edge windowed client, including wide and short desktop windows. */
#micedom-kingdom{border-radius:0;box-shadow:none}
#micedom-kingdom:before{display:none}
.kg-header,.kg-stage,.kg-chat,.kg-footer{min-width:0}
.kg-top-nav{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.kg-top-nav button{flex:none}
.kg-footer{gap:12px}
.kg-footer .kg-controls{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
.kg-footer .kg-nav{flex:none;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.kg-footer .kg-nav button{flex:none}
#micedom-kingdom .kg-dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
@media(max-width:1200px){
  .kg-header{gap:7px;padding-inline:10px}
  .kg-brand img.kg-brand-image{width:140px}
  .kg-brand{padding-right:7px}
  .kg-top-nav button{padding-inline:9px}
  .kg-top-nav button span{display:none}
  .kg-footer{padding-inline:12px}
}
@media(max-width:700px){
  #micedom-kingdom{grid-template-rows:60px minmax(0,1fr) 62px 44px}
  .kg-header{gap:5px;padding-inline:7px}
  .kg-brand img.kg-brand-image{width:105px}
  .kg-global-online{padding:5px;font-size:10px}
  .kg-wallet>span{min-width:0;padding:5px;gap:3px}
  .kg-wallet img{width:19px;height:19px}.kg-wallet b{font-size:12px}
  .kg-profile{width:33px;height:33px}
  .kg-footer .kg-controls{display:none}.kg-footer .kg-nav{flex:1;justify-content:flex-start}
  .kg-chat{padding-inline:8px}
  .kg-chat-history{left:10px;max-width:calc(100% - 20px)}
}
