:root {
  --safe-top: 0px;
  --safe-right: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  font:
    12px Tahoma,
    '宋体',
    SimSun,
    'Microsoft YaHei',
    sans-serif;
  color: #171717;
  background: #000;
  --bar: 32px;
  --face: #ece9d8;
  --blue: #1859b8;
  user-select: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: default;
}
button:focus-visible {
  outline: 1px dotted #262626;
  outline-offset: -4px;
}
button:disabled {
  color: #858579;
}
button img {
  pointer-events: none;
}
.icon {
  object-fit: contain;
  flex: none;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
#desktop {
  position: absolute;
  inset: 0 0 calc(var(--bar) + var(--safe-bottom));
  background: #3973a0 url(assets/wallpapers/bliss.jpg) center center/cover no-repeat;
  overflow: hidden;
}
#windows {
  position: absolute;
  inset: var(--safe-top) var(--safe-right) 0 var(--safe-left);
  pointer-events: none;
}
#shortcuts {
  position: absolute;
  inset: max(4px, var(--safe-top)) max(4px, var(--safe-right)) 3px max(3px, var(--safe-left));
  --shortcut-col: 81px;
  --shortcut-row: 66px;
  touch-action: none;
}
.shortcut {
  pointer-events: auto;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex-direction: column;
  color: white;
  text-shadow: 1px 1px 2px #181818;
  padding: 2px 0;
  min-width: 0;
  font-size: 12px;
}
.shortcut .icon {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(1px 1px 1px #2443);
}
.shortcut span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 82px;
  padding: 0 3px;
  line-height: 14px;
  overflow-wrap: anywhere;
}
.shortcut:focus {
  outline: 0;
}
.shortcut:focus span {
  background: #155bc2;
  outline: 1px dotted #ddd;
}
.shortcut:focus img {
  filter: drop-shadow(0 0 2px #244b9e) brightness(0.86);
}
#bar {
  z-index: 90000;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bar) + var(--safe-bottom));
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  display: flex;
  align-items: stretch;
  background: linear-gradient(
    #2449a7,
    #488be8 8%,
    #3479e5 14%,
    #245ed8 24%,
    #2259d7 48%,
    #2666e3 82%,
    #1845a8
  );
  box-shadow: inset 0 1px #598de7;
}
#start {
  width: 98px;
  flex: none;
  border: 0;
  border-radius: 0 10px 11px 0;
  background: linear-gradient(#90bd80, #69ae61 9%, #4d9b40 20%, #3b8b35 55%, #469b3a 85%, #29642c);
  box-shadow:
    inset -3px -2px 4px #205d2a,
    inset 0 1px 4px #d0e3a4,
    2px 0 3px #194785;
  color: #fff;
  font-size: 20px;
  font-family: Tahoma, 'Microsoft YaHei', sans-serif;
  font-style: italic;
  font-weight: bold;
  text-shadow: 1px 2px 2px #264e24;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding-right: 10px;
}
#start img {
  width: 25px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(1px 1px 1px #28582b);
}
#start:hover {
  filter: brightness(1.09);
}
#start[aria-expanded='true'],
#start:active {
  filter: brightness(0.88);
}
#tasks {
  min-width: 0;
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 2px 7px;
  flex: 1;
}
.task {
  height: calc(var(--bar) - 6px);
  min-width: 0;
  max-width: 152px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 0 7px;
  border: 1px solid #2554b5;
  background: linear-gradient(#62a0fc, #4384ed 22%, #3581ef 82%, #2b67d4);
  box-shadow: inset 1px 1px 1px #83abfa;
  border-radius: 3px;
  text-align: left;
}
.task span,
.caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task.current {
  background: #2255b7;
  box-shadow: inset 1px 1px 2px #143d8c;
}
.task:hover {
  filter: brightness(1.08);
}
#tray {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 9px 0 7px;
  border-left: 2px solid #185baf;
  background: linear-gradient(#0d77ce, #1cb1ef 10%, #1096ea 23%, #0b8be3 80%, #118edc);
  box-shadow: inset 1px 0 #58baf1;
}
#tray button {
  background: none;
  border: 0;
  color: white;
  padding: 3px 1px;
}
#clock {
  min-width: 43px;
  font:
    12px Tahoma,
    sans-serif;
}
.blink {
  animation: blink 0.7s infinite alternate;
}
@keyframes blink {
  to {
    opacity: 0.25;
  }
}
.window,
.dialog {
  background: var(--face);
  border: 3px solid #0861dd;
  border-top: 0;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 1px 2px 5px #18396380;
  overflow: hidden;
}
.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-color: #7496dd;
  pointer-events: auto;
}
.window.active,
.dialog {
  border-color: #0755d8;
}
.window.max {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}
.titlebar {
  height: 29px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 -1px;
  padding: 0 3px;
  color: white;
  background: linear-gradient(#bad2ff, #849fe0 14%, #84a8e7 32%, #7695dd 82%, #577cce);
  text-shadow: 1px 1px 1px #435996;
  touch-action: none;
}
.active > .titlebar,
.dialog > .titlebar {
  background: linear-gradient(
    #77a9ff 0,
    #3989ff 6%,
    #096bf2 13%,
    #0058e8 46%,
    #0455dd 77%,
    #1668ea 91%,
    #0347ba
  );
}
.caption,
.titlebar > b {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}
.controls {
  display: flex;
  flex: none;
  gap: 2px;
}
.window-controls-right .window > .titlebar > .controls {
  order: 1;
  margin-inline-start: auto;
}
.capbutton {
  width: 21px;
  height: 21px;
  border: 1px solid white;
  border-radius: 3px;
  display: grid;
  place-content: center;
  color: white;
  padding: 0;
  font:
    bold 18px/18px Tahoma,
    sans-serif;
  box-shadow: inset 0 -1px 2px 1px #2552c8;
  background: radial-gradient(at 90% 90%, #0962d7 12%, #4289ed 67%, #bad5ff 94%, white);
}
.capbutton.close {
  background: radial-gradient(at 90% 90%, #bd300d 12%, #ec653b 67%, #ffd3b6 94%, white);
  box-shadow: inset 0 -1px 2px #94331e;
}
.capbutton:hover {
  filter: brightness(1.15);
}
.capbutton:active {
  filter: brightness(0.88);
}
.winbody {
  min-height: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  position: relative;
  padding-top: var(--account-content-gap, 0px);
}
.win-cmd > .winbody {
  background: #080808;
  color: #d5d5d5;
  scrollbar-width: none;
}
.cmd-output {
  margin: 0;
  padding: 12px;
  font: 14px/1.35 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cmd-warning {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmd-warning p {
  margin: 0;
}
.cmd-warning-symbol {
  flex: none;
  width: 32px;
  height: 30px;
  padding-top: 7px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #ffce4d;
  color: #492e00;
  text-align: center;
  font: bold 20px/1 system-ui, sans-serif;
}
.sizegrip {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  touch-action: none;
}
.window.max .sizegrip {
  display: none;
}
.minishadow {
  position: fixed;
  z-index: 95000;
  background: #1568d8;
  color: white;
  pointer-events: none;
  height: 22px;
  transform-origin: 0 0;
  overflow: hidden;
}
#startmenu {
  position: fixed;
  bottom: calc(var(--bar) + var(--safe-bottom));
  left: var(--safe-left);
  z-index: 94000;
  width: min(386px, calc(100vw - var(--safe-left) - var(--safe-right)));
  max-height: calc(100dvh - var(--bar) - var(--safe-top) - var(--safe-bottom));
  scrollbar-width: none;
  overflow: hidden auto;
  background: #4286df;
  border: 2px solid #1766bc;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 3px 6px #2238;
}
.starthead {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(#155bc0, #3e94f1);
  color: white;
  font:
    bold 17px Tahoma,
    sans-serif;
  text-shadow: 1px 1px 2px #26528e;
  padding: 7px 9px;
}
.starthead img {
  object-fit: cover;
  border: 2px solid white;
  border-radius: 4px;
}
.startcols {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  border-top: 2px solid #f6a537;
}
.startcol {
  background: white;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.startcol.right {
  background: #d3e5fa;
  border-left: 1px solid #a9c7ee;
  color: #123b75;
}
.startitem {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 33px;
  border: 0;
  background: transparent;
  padding: 4px 7px;
  width: 100%;
}
.startitem em {
  display: block;
  color: #777;
  font-size: 11px;
  font-style: normal;
}
.startitem:hover,
.menuitem:hover:not(:disabled),
.submenu .startitem:hover {
  background: #316ac5;
  color: white;
}
.startitem:hover em {
  color: #eee;
}
.startfoot {
  display: flex;
  justify-content: flex-end;
  padding: 7px;
  background: linear-gradient(#4794e9, #2474d6);
  color: white;
}
.startfoot button {
  background: none;
  color: white;
  border: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
hr {
  height: 1px;
  border: 0;
  background: #c7c7ba;
  margin: 3px 0;
}
.menu,
#pop.flyout {
  position: fixed;
  z-index: 97000;
  border: 1px solid #898a7e;
  background: #fff;
  box-shadow: 2px 3px 4px #0004;
  padding: 3px;
  max-width: calc(100vw - var(--safe-left) - var(--safe-right));
  max-height: min(80dvh, calc(100dvh - var(--safe-top) - var(--safe-bottom) - var(--bar)));
  scrollbar-width: none;
  overflow: hidden auto;
}
.menuitem {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 5px 22px 5px 16px;
  white-space: nowrap;
}
.menubar,
.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  padding: 2px 3px;
  gap: 2px;
  border-bottom: 1px solid #c9c6b5;
}
.flat,
.tool {
  border: 1px solid transparent;
  background: none;
  padding: 3px 6px;
}
.flat:hover,
.tool:hover {
  background: #f4f2e9;
  border-color: #c5c2b0;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.xpbtn {
  border: 1px solid #777b80;
  border-radius: 3px;
  background: linear-gradient(white, #edece2 85%, #d6d1c1);
  box-shadow: inset 1px 1px white;
  min-height: 23px;
  padding: 2px 12px;
}
.xpbtn:active {
  background: #d9d6ca;
}
.xpbtn:hover {
  border-color: #4776a6;
}
.overlay {
  position: fixed;
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  z-index: 98000;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  background: #16294628;
  padding: 12px;
}
.dialog {
  width: min(390px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
}
.dialog > .dialog-drag {
  cursor: move;
}
.dialogbody {
  padding: 17px;
  line-height: 1.6;
  white-space: pre-line;
  max-height: 65dvh;
  min-height: 0;
  overflow: hidden auto;
  scrollbar-width: none;
}
.dialogfoot {
  display: flex;
  justify-content: flex-end;
  flex: none;
  gap: 6px;
  padding: 2px 12px 12px;
}
.formfield {
  display: grid;
  gap: 8px;
}
input:not([type='range']):not([type='color']),
select,
textarea {
  background: white;
  border: 1px solid #829bb7;
  padding: 3px 5px;
}
.status {
  flex: none;
  border-top: 1px solid #c6c2af;
  padding: 4px 6px;
  font-size: 11px;
  background: var(--face);
}
.spacer {
  flex: 1;
}
#boot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: black;
  color: #ccc;
  display: grid;
  place-items: center;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  font-family: Tahoma, sans-serif;
}
#boot.blue-screen {
  z-index: 150020;
  place-items: start;
  padding: max(32px, var(--safe-top)) max(24px, var(--safe-right))
    max(24px, var(--safe-bottom)) max(24px, var(--safe-left));
  background: #082a93;
  color: #fff;
  outline: none;
  white-space: pre-line;
  font: 16px/1.65 Consolas, "Courier New", monospace;
}
.bootmark {
  display: grid;
  justify-items: center;
  gap: 28px;
}
.bootmark img {
  width: min(254px, 62vw);
}
.progress {
  width: 126px;
  height: 13px;
  border: 1px solid #9e9e9e;
  border-radius: 4px;
  overflow: hidden;
  padding: 2px;
}
.progress i {
  display: block;
  width: 29px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #3357cc 0 6px, #90b1fe 7px, #000 9px);
  animation: bootrun 1s linear infinite;
}
@keyframes bootrun {
  from {
    transform: translateX(-32px);
  }
  to {
    transform: translateX(124px);
  }
}
#boot small {
  position: absolute;
  bottom: max(8%, var(--safe-bottom));
  left: max(9%, var(--safe-left));
}
#boot.welcome {
  background: linear-gradient(
    #00309e 0 13%,
    #f1a263 13.2%,
    #597cce 13.7%,
    #668cdd 83%,
    #f2a960 83.5%,
    #00309e 84%
  );
  color: white;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: bold;
  font-style: italic;
  text-shadow: 2px 2px #3756aa;
}
.powerbox {
  text-align: center;
}
.powerbox h2 {
  font-size: 19px;
  color: #224d99;
  margin: 0 0 15px;
}
.powerchoices {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.powerchoices button {
  background: none;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
}
.dim #desktop,
.dim #bar {
  filter: grayscale(1);
}
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}
@media (pointer: coarse) {
  .capbutton {
    width: 29px;
    height: 25px;
  }
  .titlebar {
    height: 34px;
  }
  .startitem,
  .menuitem {
    min-height: 36px;
  }
  .tool,
  .flat {
    min-height: 30px;
  }
  .xpbtn {
    min-height: 30px;
  }
  #tray button {
    padding: 4px;
  }
  .sizegrip {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  body {
    --bar: 39px;
  }
  .window > .titlebar .caption {
    text-align: center;
  }
  .window > .titlebar .maximize,
  .sizegrip {
    display: none;
  }
  #start {
    width: 79px;
    font-size: 17px;
  }
  #tasks {
    padding: 2px 3px;
    gap: 1px;
  }
  .task {
    justify-content: center;
    padding: 0 3px;
  }
  .task span {
    display: none;
  }
  #tray {
    gap: 1px;
    padding: 0 3px;
  }
  #startmenu {
    width: min(365px, calc(100vw - var(--safe-left) - var(--safe-right)));
  }
}
@media (max-height: 430px) {
  .startitem {
    min-height: 24px;
    padding-block: 1px;
  }
  .starthead {
    padding: 3px 8px;
  }
  .starthead img {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.settingspane {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.settingstab {
  align-self: flex-start;
  border: 1px solid #aba99f;
  border-bottom: 0;
  padding: 4px 15px;
  background: #fdfcf7;
}
.monitor {
  width: 145px;
  height: 106px;
  border: 8px ridge #dddacb;
  border-bottom-width: 13px;
  background: #aaa;
  margin: 7px auto 18px;
  position: relative;
  box-shadow: 0 2px 3px #888;
}
.monitor:after {
  content: '';
  position: absolute;
  width: 68px;
  height: 7px;
  bottom: -21px;
  background: #b4b1a7;
  left: 30px;
}
.monitor-screen {
  width: 100%;
  height: 100%;
}
.settingfields {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.settingfields label:first-child {
  flex: 1;
}
.volumecontrol,
.calendar {
  padding: 10px;
  background: #f1efdf;
}
.volumecontrol {
  display: grid;
  gap: 12px;
  width: 160px;
}
.calendar > b {
  display: block;
  color: #254c85;
  margin-bottom: 9px;
}
.monthgrid {
  display: grid;
  grid-template-columns: repeat(7, 25px);
  text-align: center;
  gap: 2px;
}
.monthgrid span,
.monthgrid strong {
  padding: 3px 0;
}
.today {
  background: #2864b5;
  color: white;
}
.calckeys,
.cardtable {
  user-select: none;
}
.mobileback {
  display: none;
}
.powerdialog {
  background: linear-gradient(#17449c 0 22%, #597fcd 22% 80%, #1646a4 80%);
  color: #fff;
  border: 2px solid #dbe5f5;
  border-radius: 2px;
  box-shadow: 0 3px 10px #0007;
  width: min(345px, 100%);
}
.powerdialog > .titlebar {
  display: none;
}
.powerdialog .dialogbody {
  padding: 0;
}
.powerbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: #1648a9;
}
.powerbox h2 {
  color: white;
  margin: 0;
  font:
    19px Tahoma,
    'Microsoft YaHei',
    sans-serif;
}
.powerbox > .icon {
  width: 31px;
  height: 29px;
}
.powerdialog .dialogfoot {
  justify-content: center;
  position: relative;
  padding: 15px 10px 47px;
  gap: 35px;
}
.powerdialog .dialogfoot button:not(:last-child) {
  display: grid;
  justify-items: center;
  gap: 5px;
  background: none;
  border: 0;
  box-shadow: none;
  color: #fff;
}
.powerdialog .dialogfoot button:last-child {
  position: absolute;
  bottom: 6px;
  right: 9px;
  color: #111;
}
.volumecontrol input {
  accent-color: #2876d3;
}
@media (max-width: 600px) and (orientation: portrait) {
  .mobileback {
    display: inline-grid;
    place-content: center;
    padding: 0 6px;
    border: 0;
    background: none;
    color: white;
    font: 28px/24px Tahoma;
  }
  .window > .titlebar > .icon {
    display: none;
  }
}
#desktop {
  background-size: 100% 100%;
}
#bar {
  background: linear-gradient(
    #c3defb 0,
    #83b0e8 10%,
    #5f94d8 17%,
    #437fc4 43%,
    #2367b5 48%,
    #306cb4 72%,
    #3064a8 91%,
    #194d8f
  );
}
#start {
  background: linear-gradient(
    #b9db9f,
    #8ac86c 13%,
    #7bc157 39%,
    #53a33a 49%,
    #389025 70%,
    #328a28 89%,
    #205f20
  );
  width: 98px;
}
#tray {
  background: linear-gradient(#a2c5ed 0, #81abe0 15%, #578bcb 46%, #3675be 50%, #4783c8);
  border-left: 1px solid #5a8fc6;
}
.shortcut .icon {
  width: 32px;
  height: 32px;
}
.shortcut {
  gap: 2px;
  text-shadow:
    1px 1px 1px #161616,
    -1px 1px 2px #252525,
    0 1px 3px black;
}
#account-float {
  position: fixed;
  z-index: 150005;
  inset: max(3px, var(--safe-top)) max(4px, var(--safe-right))
    max(4px, var(--safe-bottom)) max(4px, var(--safe-left));
  pointer-events: none;
}
#accountchip {
  position: absolute;
  top: 0;
  left: 0;
  height: 31px;
  max-width: min(175px, 42vw);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c9e4ff;
  border-radius: 4px;
  background: linear-gradient(#649cdaed, #326cafeb);
  box-shadow:
    inset 0 1px #bddcfa88,
    1px 1px 3px #13294455;
  color: white;
  text-shadow: 1px 1px #32577d;
  padding: 2px 8px 2px 3px;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}
#accountchip.dragging {
  cursor: grabbing;
}
#accountchip img {
  width: 23px;
  height: 23px;
  border: 1px solid #dff0ff;
  border-radius: 3px;
  object-fit: cover;
}
#accountchip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#accountchip:after {
  content: '▾';
  font-size: 10px;
}
.game-playing #accountchip {
  width: 31px;
  padding: 3px;
}
.game-playing #accountchip span {
  display: none;
}
.game-playing #accountchip:after {
  content: none;
}
.game-playing #desktop,
.game-playing #bar {
  visibility: hidden;
}
.game-apps #windows {
  z-index: 145000;
}
.game-apps .window:is(.win-tt, .win-kugou, .win-qq, .win-chat) {
  visibility: visible;
}
.game-apps #pop,
.game-apps #dialogs .overlay,
.dnf-cloud-starting #dialogs .overlay {
  z-index: 149000;
}
#accountpanel {
  position: fixed;
  z-index: 150010;
  top: calc(max(3px, var(--safe-top)) + 34px);
  left: max(4px, var(--safe-left));
  width: 209px;
  background: var(--face);
  border: 2px solid #3372be;
  box-shadow: 2px 4px 8px #0004;
  border-radius: 4px;
  max-height: 80dvh;
  overflow: hidden auto;
}
.accounthead {
  padding: 4px 5px 4px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(#70a7e4, #427fc5);
  color: white;
}
.accountbody {
  display: grid;
  gap: 10px;
  padding: 11px;
}
.mixlabel {
  display: grid;
  gap: 4px;
}
.mixcheck {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mixlabel input {
  accent-color: #3773b4;
}
#gamestage {
  position: fixed;
  inset: 0;
  background: #05080c;
  z-index: 140000;
  color: white;
}
#gameview {
  position: absolute;
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  overflow: hidden;
}
#gameview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform-origin: top left;
}
.game-status {
  position: absolute;
  inset: max(45%, var(--safe-top)) var(--safe-right) auto var(--safe-left);
  text-align: center;
}
@media (max-width: 600px) and (orientation: portrait) {
  #desktop {
    background-size: auto 100%;
  }
  #shortcuts {
    --shortcut-col: 78px;
  }
  #start {
    width: 80px;
  }
}
@media (max-height: 480px) {
  #shortcuts {
    --shortcut-row: 54px;
    --shortcut-col: 72px;
  }
  .shortcut {
    font-size: 11px;
    padding-block: 2px;
  }
  .shortcut .icon {
    width: 24px;
    height: 24px;
  }
  .shortcut span { line-height: 12px; }
}
#shortcuts .shortcut { position: absolute; touch-action: none; user-select: none; }
.shortcut:focus:not(.selected):not(:focus-visible) span { background: transparent; outline: 0; }
.shortcut.selected span { background: #155bc2; outline: 1px dotted #ddd; }
.shortcut.selected img { filter: brightness(.85) drop-shadow(1px 1px 2px #173764); }
.desktop-marquee { position: fixed; pointer-events: none; background: #4389da38; border: 1px solid #2059a8; }
.shortcut-properties { max-height: 58dvh; overflow: hidden auto; scrollbar-width: none; }
.shortcut-properties section + section { border-top: 1px solid #bdbbb2; padding-top: .7em; }
.shortcut-properties section > div { display: flex; align-items: center; gap: 9px; }
.shortcut-properties small { color: #465570; }
.shortcut-properties p { max-width: 32em; line-height: 1.55; margin: .5em 0 1em; }
#accountpanel { max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 44px); scrollbar-width: none; }
.app-mixer { margin: 4px 0; padding: 5px 7px; min-width: 0; border: 1px solid #a79f8a; }
.app-mixer legend { color: #174a8e; }
.app-mix-row { display: flex; align-items: center; gap: 4px; min-height: 27px; }
.app-mix-row > span { flex: 1; }
.app-mix-open {
  flex: 1;
  text-align: left;
  padding: 3px 0;
  border: 0;
  background: none;
  color: #164a8b;
  cursor: pointer;
}
.app-mix-open:hover { text-decoration: underline; }
.app-mix-row input { margin: 0; }
.app-mix-row small, .app-mixer > small { color: #645e51; }
@media (max-width: 600px) and (orientation: portrait) {
  .window > .titlebar { position: relative; min-height: 38px; justify-content: flex-start; }
  .window > .titlebar .caption {
    position: absolute;
    inset-inline: 99px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
  }
  .window > .titlebar .controls { gap: 3px; }
  .window > .titlebar .mobileback { flex: none; width: 30px; }
}
.accounthead { justify-content: flex-start; gap: 7px; }
