/* Literal menu.cpp geometry: 492x634, ProggyClean 13px, 30px tabs, 8px columns. */
/* ImGui scales this 2048-em font by its 1664-unit ascent/descent: CSS 16px = ImGui 13px. */
@font-face { font-family:UVMenu; src:url('/img/motion-v3/proggy-clean.ttf') format('truetype'); font-display:swap; size-adjust:123.076923%; }
@font-face { font-family:UVPixel; src:url('/img/motion-v3/lana-pixel.ttf') format('truetype'); font-display:swap; size-adjust:84.530854%; }
.mv-playground { background:transparent; border:0; }
.uv-native-layout { display:flex; justify-content:center; align-items:flex-start; gap:16px; padding:0; width:100%; }
.uv-native-slot { flex:none; position:relative; width:492px; height:634px; }
.uv-native-slot.uv-preview-slot { width:350px; }
.uv-native-menu,.uv-native-preview { position:absolute; left:0; top:0; width:492px; height:634px; transform-origin:top left; background:#101010; color:#fff; font:13px/13px UVMenu,monospace; letter-spacing:0; text-transform:none; text-shadow:1px 1px #000; -webkit-font-smoothing:none; font-smooth:never; box-sizing:border-box; }
.uv-native-menu::before { content:''; position:absolute; inset:1px; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e,inset 0 0 0 2px #000; pointer-events:none; z-index:5; }
.uv-native-menu *,.uv-native-preview * { box-sizing:border-box; }
.uv-native-menu :is(button,input,select) { font:inherit; font-family:UVMenu,monospace!important; font-weight:400!important; color:inherit; letter-spacing:0; text-shadow:inherit; border-radius:0; }
.uv-native-tabs { display:flex; position:absolute; left:3px; top:3px; width:486px; height:30px; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; background:#1c1c1c; }
.uv-native-tabs button { position:relative; flex:1; padding:0 0 4px; min-width:0; color:#fff; border:0; background:transparent; cursor:pointer; }
.uv-native-tabs button[aria-selected=true] { color:#fff; }
.uv-native-tabs button[aria-selected=true]::after { content:''; position:absolute; left:7px; right:7px; bottom:2px; height:2px; background:#fff; }
.uv-native-tabs button:hover { color:#fff; }
.uv-native-menu :is(button,input):focus-visible { outline:1px solid #fff; outline-offset:2px; }
.uv-native-content { position:absolute; left:4px; top:37px; width:484px; height:479px; display:grid; grid-template-columns:238px 238px; gap:8px; overflow:hidden; }
.uv-native-column { min-width:0; overflow-y:auto; scrollbar-width:none; padding:3px 0 0; }
.uv-native-column::-webkit-scrollbar { display:none; }
.uv-native-section { position:relative; margin:12px 1px 18px 0; border:1px solid #000; box-shadow:inset 0 0 0 1px #2c2c2c,inset 0 0 0 2px #000; background:#1e1e1e; padding:13px 11px 13px; }
.uv-native-section h4 { position:absolute; top:-7px; left:50%; transform:translateX(-50%); white-space:nowrap; font:inherit; margin:0; padding:0 6px; background:linear-gradient(#101010 0 9px,#1e1e1e 9px 100%); color:#fff; }
/* The requested monochrome text palette applies to every control state. */
.uv-native-menu :is(.uv-check-label,.uv-check-label>span,.uv-range,.uv-range output,.uv-select-row,.uv-select-button,.uv-config-input,.uv-config-actions button) { color:#fff!important; }
.uv-check-row { display:flex; align-items:center; position:relative; height:14px; padding:0; margin:0; gap:8px; }
.uv-check-label { display:flex; align-items:center; gap:8px; cursor:pointer; white-space:nowrap; height:13px; }
.uv-check-label input[type=checkbox] { appearance:none; -webkit-appearance:none; width:9px; height:9px; margin:0; border:1px solid #000; background:#161616; cursor:pointer; flex:none; }
.uv-check-label input:checked { background:#fff; }
.uv-check-row:has(input:disabled) { opacity:1; }
.uv-check-label input:disabled { opacity:.6; }
.uv-check-label input:disabled { cursor:default; }
.uv-swatch { appearance:none; width:18px; height:8px; padding:0!important; border:1px solid #000; margin-left:auto; flex:none; background:var(--uv-color,#fff); cursor:pointer; text-shadow:none; }
.uv-swatch::-webkit-color-swatch-wrapper { padding:0; }
.uv-swatch::-webkit-color-swatch { border:0; }
.uv-key { margin-left:auto; padding:0 3px; height:13px; border:1px solid #000; background:#1c1c1c; color:#fff!important; cursor:pointer; line-height:11px!important; }
.uv-key[data-uv-capturing=true] { color:#fff!important; }
.uv-range { display:block; position:relative; width:calc(100% - 12px); height:23px; margin:0; }
.uv-range>span { display:flex; height:16px; align-items:flex-start; justify-content:space-between; }
.uv-range output { font:inherit; color:#fff; }
.uv-range input { appearance:none; -webkit-appearance:none; width:100%; height:6px; display:block; border:1px solid #000; margin:0; padding:0; cursor:ew-resize; background:linear-gradient(to right,#fff 0 var(--uv-fill),transparent var(--uv-fill) 100%),linear-gradient(#222,#181818); }
.uv-range input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:1px; height:4px; background:#fff; border:0; }
.uv-range input::-moz-range-thumb { width:1px; height:4px; background:#fff; border:0; border-radius:0; }
.uv-select-row { position:relative; display:block; width:calc(100% - 8px); margin:0 0 1px; height:30px; }
.uv-select-row>span { display:block; height:14px; }
.uv-select-button,.uv-config-input { position:relative; display:block; width:100%; height:15px; border:1px solid #000; background:#1c1c1c; box-shadow:inset 0 0 0 1px #2e2e2e; padding:0 3px!important; text-align:left; cursor:pointer; }
.uv-select-button::after { content:'⌄'; position:absolute; right:3px; top:-2px; color:#fff; }
.uv-select-button:hover,.uv-config-actions button:hover,.uv-key:hover { background:#282828; }
.uv-native-popover { position:fixed; z-index:10001; min-width:100px; background:#101010; padding:3px; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e,0 5px 15px #0008; color:#fff; font:13px/14px UVMenu,monospace; text-shadow:1px 1px #000; }
.uv-native-popover button { display:block; width:100%; font:inherit; font-family:UVMenu,monospace!important; text-shadow:inherit; border:0; color:inherit; background:none; text-align:left; padding:2px 4px; cursor:pointer; }
.uv-native-popover button:hover,.uv-native-popover button[aria-selected=true] { background:#2e2e2e; }
.uv-native-popover .uv-check-label { padding:2px 4px; height:18px; }
.uv-config-input { cursor:text; }
.uv-config-actions { display:flex; gap:6px; margin-top:1px; }
.uv-config-actions button { flex:1; height:20px; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; padding:0; color:#fff; background:#1c1c1c; cursor:pointer; }
.uv-native-logo { position:absolute; width:115px; height:100px; bottom:8px; left:188px; object-fit:contain; }
.uv-native-preview { width:350px; background:#161616; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; }
.uv-native-preview-header { position:absolute; left:0; top:0; right:0; height:18px; padding:1px 9px; color:#fff; background:#1c1c1c; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; }
.uv-native-preview svg { display:block; width:350px; height:634px; }
.uv-preview-label { position:absolute; white-space:nowrap; font:13px/13px UVPixel,monospace; cursor:grab; touch-action:none; text-shadow:1px 1px #000,-1px -1px #000,1px -1px #000,-1px 1px #000; }
.uv-preview-label:active { cursor:grabbing; }
.uv-native-notice { position:fixed; right:20px; bottom:20px; padding:10px 14px; color:#fff; background:#101010; border:1px solid #2e2e2e; z-index:10000; font:13px UVMenu,monospace; }
@media(max-width:760px) { .uv-native-layout { flex-direction:column; align-items:center; } }

/* All menu text is white, including inactive controls and ESP annotations. */
.uv-native-menu,.uv-native-menu *, .uv-native-preview-header,
.uv-native-popover,.uv-native-popover *, .uv-native-notice { color:#fff!important; }
.uv-native-menu :is(h4,button,label,output,.uv-check-row>span),
.uv-native-popover :is(button,label),.uv-native-preview-header,.uv-preview-label,.uv-native-notice {
 -webkit-font-smoothing:none;
 filter:none;
}

/* 2026-10-19: native menu now requests 492 x 824 with five tabs. */
@font-face { font-family:UV04B03; src:url('/img/menu-20261019/04b03.ttf') format('truetype'); font-display:swap; }
.uv-native-slot,.uv-native-menu,.uv-native-preview { height:824px; }
.uv-native-content { height:669px; }
.uv-native-preview svg { height:824px; }
.uv-check-row .uv-swatch + .uv-swatch { margin-left:0; }
.uv-player-list-open { width:calc(100% - 8px); height:20px; padding:0; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; background:#1c1c1c; cursor:pointer; }
.uv-player-list { width:234px; max-width:calc(100vw - 24px); padding:8px; border:1px solid #000; box-shadow:inset 0 0 0 1px #2e2e2e; background:#1e1e1e; color:#fff; font:13px/16px UVMenu,monospace; }
.uv-player-list::backdrop { background:#0009; }
.uv-player-list header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.uv-player-list :is(input,button) { font:inherit; color:#fff; border:1px solid #000; border-radius:0; background:#1c1c1c; }
.uv-player-list input { width:100%; padding:3px; }
.uv-player-list :is(input,button):focus-visible { outline:1px solid #fff; }
.uv-native-popover { max-height:min(420px,70vh); max-width:calc(100vw - 16px); overflow:auto; }

/* The native model is drawn behind the ESP overlay, in the exact same image rect. */
.uv-native-model { position:absolute; display:block; z-index:0; pointer-events:none; }
.uv-native-preview svg { position:absolute; inset:0; z-index:1; pointer-events:none; }
.uv-native-preview-header { z-index:3; }
.uv-native-preview .uv-preview-label { z-index:2; filter:none; }
.uv-native-preview [data-uv-esp=box] { paint-order:stroke; filter:drop-shadow(0 0 1px #0006); }
.uv-native-preview:not([data-model-state=ready]) :is(svg,.uv-preview-label) { visibility:hidden; }
.uv-native-preview:is([data-model-state=loading],[data-model-state=unavailable])::after { position:absolute; left:18px; top:38px; color:#fff; font:13px UVMenu,monospace; }
.uv-native-preview[data-model-state=loading]::after { content:'loading preview…'; }
.uv-native-preview[data-model-state=unavailable]::after { content:'preview asset unavailable'; }

/* Keep control text neutral under the shop's global button/span rules. */
.uv-native-menu .uv-select-row > span,
.uv-native-menu .uv-select-button,
.uv-native-menu .uv-select-button::after,
.uv-native-popover button,.uv-native-popover label > span {
 color:rgb(255,255,255)!important;
 -webkit-text-fill-color:rgb(255,255,255)!important;
 text-shadow:1px 1px rgb(0,0,0)!important;
 filter:grayscale(1)!important;
}
.uv-native-menu :is(button,label,output,span) {-webkit-text-fill-color:rgb(255,255,255);text-shadow:1px 1px #000!important;}
.uv-native-menu :is(h4,button,label,output,.uv-check-row>span,.uv-select-row>span) {filter:grayscale(1)!important;}
[data-readonly=true] .uv-check-label input:disabled {opacity:1;}
