:root {
    --bg: #070b14;
    --bg-elev: #101827;
    --line: rgba(120, 210, 255, 0.18);
    --text: #e8f4ff;
    --muted: #8aa0b8;
    --accent: #4fd2ff;
    --accent-2: #7c5cff;
    --danger: #ff6b8a;
    --ok: #3ee0a5;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(79, 210, 255, 0.16), transparent 50%),
        radial-gradient(900px 400px at 100% 0%, rgba(124, 92, 255, 0.18), transparent 45%),
        var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.card {
    width: min(440px, 100%);
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(10, 16, 28, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.brand {
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--accent);
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 650;
}

.lede {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.5;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
}

input,
select,
button {
    font: inherit;
}

.field {
    margin-bottom: 14px;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: #0b1220;
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 210, 255, 0.15);
}

.btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--accent), #5b8cff);
    color: #041018;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.08);
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert.error {
    background: rgba(255, 107, 138, 0.12);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 138, 0.3);
}

.foot {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.dash {
    width: min(980px, calc(100% - 32px));
    margin: 32px auto;
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.panel {
    background: rgba(16, 24, 39, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
    font-size: 14px;
}

.kv span {
    color: var(--muted);
}

.ok {
    color: var(--ok);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--line);
}

.muted {
    color: var(--muted);
}

html.vr-app,
html.vr-app body,
html.desktop-app,
html.desktop-app body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
}

html.desktop-app #vr-root canvas {
    cursor: default;
}

#vr-root {
    position: fixed;
    inset: 0;
}

#vr-root canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hud {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.hud-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto;
}

.hud-user .brand {
    margin-bottom: 2px;
}

.hud-user strong {
    display: block;
    font-size: 14px;
}

.hud-tokens {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.hud-tokens b {
    color: var(--ok);
}

.mp-hud {
    position: absolute;
    top: 72px;
    right: 16px;
    width: min(280px, 42vw);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 30;
}

.mp-connect {
    display: flex;
    gap: 6px;
}

.mp-connect input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0b1220;
    color: var(--text);
}

.mp-connect button,
.mp-leave,
.mp-invite button {
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--accent);
    color: #041018;
    font-weight: 700;
    cursor: pointer;
}

.mp-leave {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.mp-room {
    font-size: 12px;
    color: var(--muted);
}

.mp-online {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
}

.mp-online-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.mp-online-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(16, 24, 39, 0.92);
    color: var(--text);
    cursor: pointer;
}

.mp-online-row b,
.mp-online-row small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-online-row b {
    font-size: 13px;
}

.mp-online-row small {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.mp-online-row:disabled {
    cursor: default;
    opacity: 0.72;
}

.mp-online-row:disabled small {
    color: var(--muted);
}

.mp-invite {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    background: rgba(16, 24, 39, 0.92);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    font-size: 13px;
}

.mp-toast {
    background: rgba(16, 24, 39, 0.95);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
}

.hud.is-playing .mp-hud {
    opacity: 0.92;
}

.hud-logout {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
}

.crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(79, 210, 255, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(79, 210, 255, 0.35);
}

.hud-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(7, 11, 20, 0.72);
    pointer-events: auto;
}

.hud-card {
    text-align: center;
}

.hud-card .btn {
    margin-top: 8px;
}

.hud-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    background: #070b14;
    pointer-events: auto;
    text-align: center;
    color: var(--muted);
}

.hud-loading.is-hidden,
.hud-start.is-hidden,
.hud-top.is-hidden {
    display: none;
}

.load-bar {
    width: 180px;
    height: 4px;
    margin: 0 auto;
    border-radius: 99px;
    background: rgba(79, 210, 255, 0.15);
    overflow: hidden;
}

.load-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--accent);
    animation: loadslide 1.1s ease-in-out infinite;
}

@keyframes loadslide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(350%); }
}

.hud-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.03em;
}

.hud.is-playing .hud-top {
    opacity: 0.35;
}

.hud.is-playing .hud-top:hover {
    opacity: 1;
}

html.desktop-app .hud.is-playing .hud-top,
html.desktop-app .hud.is-playing .mp-hud {
    opacity: 1;
}

html.desktop-app .hud-hint {
    top: 64px;
    bottom: auto;
    max-width: min(560px, calc(100vw - 360px));
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(8, 12, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    pointer-events: none;
}

html.desktop-app .desk-dock {
    right: 16px;
    bottom: 14px;
    max-width: none;
}

html.desktop-app .desk-move:not([hidden]) ~ #desk-dock {
    left: 248px;
}

html.desktop-app .desk-move {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 31;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 12, 24, 0.9);
    color: var(--text);
    pointer-events: auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

html.desktop-app .desk-move[hidden] {
    display: none;
}

html.desktop-app .desk-move-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

html.desktop-app .desk-move-top b {
    display: block;
    font-size: 13px;
}

html.desktop-app .desk-move-top small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

html.desktop-app .desk-move-pad {
    display: grid;
    grid-template-columns: repeat(3, 22px);
    gap: 3px;
    flex: none;
}

html.desktop-app .desk-move-pad span {
    display: grid;
    place-items: center;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #121a2b;
    font: 700 11px/1 system-ui, sans-serif;
}

html.desktop-app .desk-move-pad span:first-child {
    grid-column: 2;
}

html.desktop-app .desk-move-pad span.is-down,
html.desktop-app .desk-move kbd.is-down {
    border-color: #c7ff75;
    color: #dfffaf;
    background: rgba(199, 255, 117, 0.16);
}

html.desktop-app #desk-move-hide {
    margin-left: auto;
    align-self: flex-start;
    border: 0;
    border-radius: 8px;
    padding: 4px 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
}

html.desktop-app .desk-move.is-collapsed .desk-move-list {
    display: none;
}

html.desktop-app .desk-move-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 11px;
}

html.desktop-app .desk-move-list kbd {
    display: inline-block;
    margin-right: 3px;
    padding: 0 4px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font: 700 10px/1.6 system-ui, sans-serif;
}

@media (max-width: 900px) {
    html.desktop-app .desk-move {
        bottom: 86px;
        width: min(220px, calc(100vw - 24px));
    }
    html.desktop-app .desk-move:not([hidden]) ~ #desk-dock,
    html.desktop-app .desk-dock {
        left: 10px;
        right: 10px;
    }
    html.desktop-app .hud-hint {
        max-width: calc(100vw - 32px);
    }
}

.desk-dock {
    position: absolute;
    left: 16px;
    bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    max-width: calc(100vw - 32px);
    gap: 8px;
    pointer-events: auto;
    z-index: 30;
}

.desk-dock button {
    border: 1px solid var(--line);
    background: rgba(16, 24, 39, 0.92);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.desk-dock button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mp-members,
.mp-chess-host {
    background: rgba(16, 24, 39, 0.92);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    font-size: 12px;
}

.mp-member {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.mp-member em {
    color: var(--muted);
    font-style: normal;
    margin-left: auto;
}

.mp-tag {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 6px;
    padding: 2px 5px;
}

.mp-tag-vr {
    background: rgba(124, 92, 255, 0.25);
    color: #cbb8ff;
}

.mp-tag-pc {
    background: rgba(79, 210, 255, 0.2);
    color: var(--accent);
}

.mp-chess-host label {
    display: block;
    margin-bottom: 6px;
}

.mp-chess-host select {
    margin-bottom: 6px;
}

.mp-chess-host button {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--accent);
    color: #041018;
    font-weight: 700;
    cursor: pointer;
}

.portal {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.portal-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.portal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.portal-actions .btn,
.portal-actions form .btn {
    width: auto;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.portal-grid.has-admin {
    grid-template-columns: repeat(3, 1fr);
}

.portal-card {
    display: block;
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(10, 16, 28, 0.96));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px 22px 20px;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    min-height: 340px;
}

.portal-card:hover {
    text-decoration: none;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.portal-card.is-preferred {
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.portal-kicker {
    display: block;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portal-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.portal-card p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 14px;
}

.portal-card ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
}

.portal-go {
    color: var(--accent);
    font-weight: 700;
}

.portal-card-admin {
    border-color: rgba(124, 92, 255, 0.35);
}

@media (max-width: 900px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .portal-head {
        flex-direction: column;
    }
}

.guest-notice{position:fixed;right:12px;top:8px;z-index:40;background:#101827e8;color:#e5edff;border:1px solid #6c8499;border-radius:7px;padding:6px 10px;font:12px/1.4 system-ui;max-width:calc(100vw - 24px)}.guest-notice a{color:#c7ff75}

.guest-player .mp-hud{display:none}

/* Override inline game-button colors so pointer and keyboard states are visible. */
[aria-label="Tunnel campaign controls"] button:hover,
[aria-label="Tunnel campaign controls"] button:focus-visible {
    background: #f5df9c !important;
    color: #10242d !important;
    border-color: #fff5cb !important;
    outline: 2px solid #fff5cb;
    outline-offset: 2px;
}
[aria-label="Tunnel campaign controls"] button:active {
    background: #56cbb8 !important;
    color: #10242d !important;
    border-color: #b4fff0 !important;
}
.desk-dock{padding:12px;background:rgba(8,12,24,.86);border:1px solid #ffffff20;border-radius:16px;backdrop-filter:blur(14px);gap:14px;align-items:stretch}.dock-group{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding-right:14px;border-right:1px solid #ffffff18}.dock-group:last-child{border-right:0;padding-right:0}.dock-label{width:100%;font-size:9px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase;padding-left:4px}.desk-dock button{padding:8px 11px;border-radius:9px;background:#131d31;border-color:#ffffff1c;font-size:12px}.desk-dock button.dock-active{background:#c7ff7520;border-color:#c7ff7580;color:#dfffaf}.desk-dock button.dock-soon{color:#77869c;background:transparent;border-style:dashed}.desk-dock button.dock-soon span{color:var(--accent);font-size:16px;margin-left:4px}@media(max-width:700px){.desk-dock{left:10px;right:10px;bottom:10px;max-width:none;overflow-x:auto;flex-wrap:nowrap}.dock-group{min-width:max-content}.dock-more{display:none}}

.farm-panel{position:fixed;right:18px;bottom:18px;z-index:35;width:min(430px,calc(100vw - 36px));padding:14px 16px;border:1px solid rgba(199,255,117,.4);border-radius:16px;background:rgba(8,18,20,.9);backdrop-filter:blur(14px);color:#e8f4ff;box-shadow:0 18px 50px #0008;font:13px/1.4 system-ui}.farm-title{display:flex;justify-content:space-between;align-items:center;letter-spacing:.12em;color:#c7ff75}.farm-title b{font-size:18px;color:#fff;letter-spacing:0}.farm-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.farm-actions select,.farm-actions button{border:1px solid #ffffff26;border-radius:8px;background:#162b2d;color:#e8f4ff;padding:8px 10px;cursor:pointer}.farm-actions button:hover{border-color:#c7ff75;color:#c7ff75}.farm-help{margin-top:9px;color:#8aa0b8;font-size:11px}.farm-panel #farm-status{margin-top:5px;color:#b4fff0}@media(max-width:700px){.farm-panel{right:10px;bottom:10px;width:calc(100vw - 20px)}}
.city-panel{position:fixed;right:24px;top:92px;z-index:8;width:260px;padding:18px;border:1px solid rgba(120,210,255,.24);border-radius:16px;background:rgba(8,16,28,.92);backdrop-filter:blur(14px);box-shadow:0 18px 55px #0008;display:grid;gap:10px;color:#e8f4ff}.city-panel b{letter-spacing:.16em;color:#4fd2ff}.city-panel span{font-size:13px;color:#9fb3c8}.city-panel select,.city-panel button{border:1px solid rgba(120,210,255,.25);border-radius:9px;padding:9px;background:#0d1928;color:#e8f4ff}.city-panel button{cursor:pointer;background:linear-gradient(90deg,#4fd2ff,#7c5cff);color:#041018;font-weight:700}.city-panel small{font-size:11px;line-height:1.4;color:#8aa0b8}@media(max-width:700px){.city-panel{right:12px;left:12px;top:auto;bottom:18px;width:auto}}
.dino-panel{position:fixed;left:22px;bottom:22px;z-index:20;display:flex;flex-direction:column;gap:6px;min-width:240px;padding:14px 16px;color:#f6f1dc;background:rgba(20,38,30,.9);border:1px solid rgba(209,232,173,.35);border-radius:14px;box-shadow:0 12px 40px #0006;font:13px/1.35 system-ui,sans-serif}.dino-panel strong{font-size:16px;letter-spacing:.08em;color:#d8f09b}.dino-panel span{color:#f2d69a}.dino-panel b{font-size:15px}.dino-panel small{opacity:.75}
.dino-panel{left:auto;right:22px;bottom:22px;min-width:280px;background:linear-gradient(145deg,rgba(18,39,31,.94),rgba(11,23,24,.92));border-color:rgba(199,255,117,.4);backdrop-filter:blur(16px)}.dino-panel strong{color:#c7ff75}.dino-panel small{display:block;margin-top:3px;color:#b9c8b5}.dino-vr-help{display:none}.vr-app .dino-desktop-help{display:none}.vr-app .dino-vr-help{display:block}
.city-studio{position:fixed;right:22px;top:112px;z-index:15;width:330px;max-height:calc(100dvh - 225px);overflow:auto;padding:22px;background:#f1eddfed;color:#24454a;border:1px solid #fff8;border-radius:4px 22px 4px 22px;box-shadow:0 16px 44px #16373c33;backdrop-filter:blur(16px);font:13px/1.5 'Segoe UI',sans-serif}.city-studio[hidden]{display:none}.city-studio header>span{font-size:9px;letter-spacing:2px;font-weight:700;color:#66847b}.city-studio h2{font-size:30px;font-weight:600;letter-spacing:-1px;margin:8px 0 18px}.city-studio h2 span{display:block;font-size:12px;letter-spacing:1px;color:#79877b;margin-top:2px}.city-metrics{border-block:1px solid #24454a22;padding:12px 0;font-size:12px;font-weight:600}.city-modes{display:flex;gap:6px;margin:14px 0}.city-studio button{cursor:pointer;border:1px solid #24454a22;color:#24454a;background:transparent;border-radius:6px;padding:9px;font:inherit}.city-studio button:hover,.city-studio button:focus-visible{background:#deeadb;outline:2px solid #618c7c;outline-offset:1px}.city-catalog{display:grid;gap:6px}.city-catalog button{display:flex;align-items:center;text-align:left;gap:10px;padding:12px 8px}.city-catalog i{font-size:10px;font-style:normal;color:#819c8b}.city-catalog strong{flex:1;font-size:13px;font-weight:600}.city-catalog small{display:block;font-size:10px;font-weight:400;color:#76897e;line-height:1.5;margin-top:2px}.city-catalog em{font-size:11px;font-style:normal}.city-studio button.active{background:#28594f;color:#fff5dc;border-color:#28594f}.city-studio button.active small,.city-studio button.active i{color:#c3d9c6}.city-feedback{font-size:12px;min-height:36px;color:#316d60}.city-studio footer{font-size:10px;color:#76897e;border-top:1px solid #24454a22;padding-top:12px}@media(max-width:760px){.city-studio{top:auto;right:10px;left:10px;bottom:120px;width:auto;max-height:36dvh;padding:12px}.city-studio h2{font-size:20px}.city-catalog{grid-template-columns:1fr 1fr}.city-catalog small{display:none}.city-studio header>span{display:none}}
/* Island Notebook direction: warm paper, quieter controls, stronger scene separation. */
.city-studio{background:linear-gradient(105deg,#f7f2e8f5,#eee6d5f2);border-color:#cbbd9e;color:#3c3830;box-shadow:0 14px 42px #293b3a2e;border-radius:8px;font-family:Georgia,'Times New Roman',serif}.city-studio header>span{color:#9b7354}.city-studio h2{font-family:Georgia,'Times New Roman',serif;color:#3c3830;letter-spacing:-.7px}.city-studio h2 span{color:#8b7f6a;font-family:Georgia,'Times New Roman',serif;font-style:italic;letter-spacing:.2px}.city-studio button{color:#514634;border-color:#cbbd9e;border-radius:5px;background:#fffaf04d}.city-studio button.active{background:#b46c47;border-color:#985936;color:#fff8e9}.city-studio button:hover,.city-studio button:focus-visible{background:#e7d7bb;outline-color:#bb875f}.city-studio button.active small,.city-studio button.active i{color:#fff0d6}.city-metrics{border-color:#cbbd9e;color:#726149;font-family:'Segoe UI',sans-serif}.city-group-strip{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.city-group-strip button{font:10px/1.2 'Segoe UI',sans-serif;padding:6px 8px;border-radius:14px;color:#896a4d}.city-catalog strong{font-family:'Segoe UI',sans-serif}.city-catalog small{font-family:Georgia,'Times New Roman',serif;font-style:italic;color:#8b7f6a}.city-feedback{color:#9c5e3d}.city-studio footer{color:#8b7f6a;border-color:#cbbd9e}
.city-library-count{font-size:10px;color:#9b7354;letter-spacing:.04em;margin:8px 0 12px;font-family:'Segoe UI',sans-serif}.city-catalog button[hidden]{display:none}

.mp-live {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: #05070c;
    pointer-events: auto;
}
.mp-live[hidden] {
    display: none !important;
}
.mp-live.is-xr {
    display: block !important;
    inset: auto;
    left: -4000px;
    top: 0;
    width: 1280px;
    height: 720px;
    pointer-events: none;
}
.mp-live video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05070c;
}
.mp-live.is-xr video {
    width: 1280px;
    height: 720px;
}
.mp-live.is-waiting {
    inset: auto;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100vw - 24px));
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(8, 14, 24, 0.92);
    border: 1px solid rgba(79, 210, 255, 0.35);
    border-radius: 14px;
    pointer-events: auto;
}
.mp-live.is-waiting video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
}
.mp-live.is-waiting .mp-live-bar,
.mp-live.is-waiting .mp-live-status {
    position: static;
    transform: none;
    width: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    margin: 0;
    padding: 0;
    background: transparent;
}
.mp-live-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(8, 14, 24, 0.82);
    color: #e8f4ff;
    font: 600 14px/1.3 system-ui, sans-serif;
}
.mp-live-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #ff4d6a;
    box-shadow: 0 0 8px #ff4d6a;
}
.mp-live-stop {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: #4fd2ff;
    color: #041018;
    font-weight: 700;
    cursor: pointer;
}
.mp-live-status {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #9fb3c8;
    font: 14px system-ui, sans-serif;
}

.wardrobe-panel {
    position: absolute;
    right: 16px;
    bottom: 96px;
    z-index: 36;
    width: min(320px, calc(100vw - 32px));
    max-height: min(68vh, 560px);
    overflow: auto;
    padding: 12px;
    pointer-events: auto;
    color: #e8f4ff;
    background: rgba(8, 12, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px #0008;
    font: 13px/1.4 system-ui, sans-serif;
}
.wardrobe-panel[hidden] { display: none; }
.wardrobe-panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wardrobe-panel header b { font-size: 16px; letter-spacing: 0.04em; }
.wardrobe-panel header button,
.wardrobe-tabs button,
.wardrobe-cats button,
.wardrobe-row button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #131d31;
    color: #e8f4ff;
    border-radius: 9px;
    padding: 7px 10px;
    cursor: pointer;
    font: inherit;
}
.wardrobe-panel button.is-on { background: rgba(199, 255, 117, 0.16); border-color: rgba(199, 255, 117, 0.7); color: #dfffaf; }
.wardrobe-tabs, .wardrobe-cats, .wardrobe-row, .wardrobe-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wardrobe-cats button { font-size: 12px; }
.wardrobe-swatches span { width: 100%; color: #8aa0b8; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.wardrobe-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); padding: 0; cursor: pointer; }
.wardrobe-swatch.is-on { outline: 2px solid #c7ff75; outline-offset: 2px; }
.wardrobe-panel p { margin: 10px 0 0; color: #8aa0b8; font-size: 11px; }
@media (max-width: 700px) {
    .wardrobe-panel { right: 10px; left: 10px; width: auto; bottom: 108px; }
}
