/* Retain game menus, not a second imitation OS window frame. */
#gameWindowChrome{box-sizing:border-box;background:#e8eff5;color:#172b3a;border:1px solid #8ca5b6;box-shadow:inset 0 1px #fff;font:13px "Segoe UI","PingFang SC",sans-serif;flex:none;}
.game-menubar{position:relative;min-height:24px;}
.vista-menubar{gap:2px;padding:1px 4px;background:linear-gradient(#f8fcff 0%,#eaf1f7 48%,#dce6ef 52%,#edf4f9 100%);color:#172b3a;}
.vista-menu-group{position:relative;}
.vista-menu-trigger{border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;padding:3px 9px;font:inherit;cursor:default;}
.vista-menu-trigger:hover,.vista-menu-trigger[aria-expanded=true]{border-color:#a1b9ca;background:linear-gradient(#fafdff,#d2e5f3);box-shadow:inset 0 0 0 1px #ffffffb3;}
.vista-menu-panel{position:absolute;top:100%;left:0;z-index:1000;min-width:218px;padding:3px;background:linear-gradient(to right,#e8edf2 0 27px,#d6dfe6 27px 28px,#f9fafb 28px);border:1px solid #98aab7;border-radius:3px;box-shadow:2px 4px 10px #0004,inset 0 0 0 1px #fff;}
.vista-menu-panel[hidden]{display:none;}
.vista-submenu-group{position:relative;}
.vista-submenu-panel{top:-4px;left:calc(100% - 2px);min-width:150px;}
.vista-submenu-arrow{font-size:18px;line-height:1;text-align:right;}
.vista-menu-item[aria-expanded=true]{border-color:#a5c7e0;background:linear-gradient(#edf7ff,#d5eafa);}
.vista-menu-item{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:7px;box-sizing:border-box;width:100%;min-height:29px;padding:4px 8px 4px 3px;border:1px solid transparent;border-radius:3px;background:transparent;color:inherit;font:inherit;text-align:left;white-space:nowrap;cursor:default;}
.vista-menu-item:not(:disabled):hover,.vista-menu-item:not(:disabled):focus-visible{outline:0;border-color:#a5c7e0;background:linear-gradient(#edf7ff,#d5eafa);box-shadow:inset 0 0 0 1px #ffffffc0;}
.vista-menu-item:disabled{color:#98a0a6;}
.vista-menu-check{text-align:center;color:#326989;}
.vista-menu-shortcut{margin-left:16px;color:#5f7180;font-size:12px;}
.vista-menu-item:disabled .vista-menu-shortcut{color:inherit;}
.vista-menu-panel hr{height:0;margin:4px 5px 4px 29px;border:0;border-top:1px solid #d7dfe6;border-bottom:1px solid #fff;}
.vista-menu-trigger:focus-visible{outline:1px solid #4c9dd1;outline-offset:-2px;}
/* RT_DIALOG155 contents; fixed pale caption as shown in Steven's 21.png.
   556x128.16 logical presentation is scaled together with the 640x480 scene. */
#businessStatus{position:relative;flex:none;margin-top:0;margin-bottom:0;margin-right:0;}
.business-status-window{box-sizing:border-box;width:556px;height:128.16px;border:2px outset #eee;background:#f0f0f0;color:#000;font:12px "Songti SC","PMingLiU",SimSun,serif;transform-origin:top left;}
.business-status-caption{box-sizing:border-box;height:20.16px;background:linear-gradient(100deg,#edf3f8,#f7f2e9);position:relative;user-select:none;cursor:default;}
.business-status-caption button{position:absolute;right:0;top:5px;width:20px;height:20px;border:0;padding:0;background:#dedbd5;color:#e9e6e0;font:16px Arial,sans-serif;cursor:default;}
.business-status-client{position:relative;width:552px;height:104px;}
.business-status-client>[data-field]{position:absolute;box-sizing:border-box;line-height:1;}
.business-status-client [data-field=flag]{object-fit:fill;image-rendering:pixelated;border:2px inset #eee;}
.business-status-client [data-field=shop]{line-height:1;padding-right:7px;overflow:hidden;overflow-wrap:anywhere;}
.business-status-client [data-field=date]{white-space:nowrap;}
.business-status-client [data-field=date]>span{display:inline-block;white-space:nowrap;transform-origin:left top;}
.business-status-client [data-field=time]{font:24px/1 "Times New Roman","Songti SC",serif;white-space:nowrap;}
.business-status-client [data-field=funds],.business-status-client [data-field=guests],.business-status-client [data-field=sales]{text-align:right;white-space:nowrap;}
.business-status-client [data-field=message],.business-status-client [data-field=footer]{border:2px groove #fff;overflow:hidden;}
.business-status-client [data-field=message]{line-height:1.15;white-space:nowrap;text-overflow:ellipsis;}
.business-status-client [data-field=footer]{border-bottom:0;}
/* 像素风：窗口放大保持硬边缘 */
#testbar {height:64px;box-sizing:border-box;color:#ddd;text-align:center;font:14px sans-serif;padding:8px;line-height:26px;}
#testbar button {margin:0 3px;font:12px sans-serif;}
#help {height:36px;text-align:center;color:#bbb;font:12px sans-serif;line-height:18px;}
#help a {color:#a9d1ff;margin-left:10px;}

html, body { margin: 0; padding: 0; background: #1a1a1a; height: 100%; overflow: hidden; }
#wrap { position: relative; display: flex; align-items: center; justify-content: center; height: calc(100% - 130px); }
#businessStatus:not([hidden]) + #wrap {height:auto;}
#cv { image-rendering: auto; background: #000; }
#nameInput {
  position: absolute; display: none; font: 12px "Songti SC", "PMingLiU", "SimSun", serif;
  padding: 1px 3px; background: #fff; border: none; outline: none;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
  width: 150px; z-index: 2; color: #000;
}

/* System UI type at native display resolution; bitmap art stays nearest-neighbor. */
body, button, input, select, [data-menu-controls] * { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important; -webkit-font-smoothing: antialiased; }
/* Vista-inspired Aero caption, reduced a further 10%; client stays opaque. */
.business-status-window{border:1px solid #64899f;border-radius:7px 7px 2px 2px;box-shadow:inset 0 0 0 1px #e8f7ff;overflow:hidden;}
.business-status-caption{height:20.16px;background:linear-gradient(115deg,#d5f0fac9,#ffffffb3 35%,#adcddd90 70%,#dcebf2cc),linear-gradient(to bottom,#e6f7ff 0%,#b8d4e4 48%,#89b0c8 52%,#bad7e8 100%);border-bottom:1px solid #7399af;box-shadow:inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #e7f6ff99;touch-action:none;}
.business-status-client [data-field=fundsLabel],.business-status-client [data-field=guestsLabel],.business-status-client [data-field=salesLabel]{text-align:right;white-space:nowrap;}
.business-status-client [data-field=funds],.business-status-client [data-field=guests],.business-status-client [data-field=sales]{font-variant-numeric:tabular-nums;}
.business-status-client [data-field=weather]{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.business-status-client [data-field=stock]{text-align:right;white-space:nowrap;line-height:1.15;padding:2px 3px 0 0;font-variant-numeric:tabular-nums;}
.business-status-client [data-field=time]{font-size:20px;}
.business-status-window{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;}
.business-status-client [data-field=time]{font-family:inherit;}

/* Alternate preset selected by config/ui/theme.json; no dialog-specific CSS. */
:root[data-ui-style=classic] #gameWindowChrome{background:#c0c0c0;border:2px outset #eee;box-shadow:none;color:#000;}
:root[data-ui-style=classic] .vista-menubar{background:#c0c0c0;padding:0;}
:root[data-ui-style=classic] .vista-menu-trigger{border-radius:0;color:#000;}
:root[data-ui-style=classic] .vista-menu-trigger:hover,:root[data-ui-style=classic] .vista-menu-trigger[aria-expanded=true]{background:#d5d5d5;border-color:#888;box-shadow:none;}
:root[data-ui-style=classic] .vista-menu-panel{background:#c0c0c0;border:2px outset #ddd;border-radius:0;box-shadow:2px 2px #444;}
:root[data-ui-style=classic] .vista-menu-item{border-radius:0;}
:root[data-ui-style=classic] .vista-menu-item[aria-expanded=true]{background:#000080;border-color:#000080;color:#fff;}
:root[data-ui-style=classic] .vista-menu-item:not(:disabled):hover,:root[data-ui-style=classic] .vista-menu-item:not(:disabled):focus-visible{background:#000080;border-color:#000080;box-shadow:none;color:#fff;}
:root[data-ui-style=classic] .vista-menu-item:not(:disabled):hover .vista-menu-check,:root[data-ui-style=classic] .vista-menu-item:not(:disabled):hover .vista-menu-shortcut{color:inherit;}
:root[data-ui-style=classic] .vista-menu-panel hr{border-top-color:#888;}
:root[data-ui-style=classic] .business-status-window{border:2px outset #eee;border-radius:0;box-shadow:none;}
:root[data-ui-style=classic] .business-status-caption{background:#d4d0c8;border-bottom:1px solid #888;box-shadow:none;}
