/* Source APK dialog artwork; existing editor nodes and handlers stay in place. */
#game-input-dialog {
  --game-scale: 1.2;
  background: transparent !important;
  z-index: 10003 !important;
  padding: 12px;
}
#game-input-dialog > div {
  width: min(calc(240px * var(--game-scale, 1)), 100%) !important;
  padding: calc(14px * var(--game-scale, 1)) calc(28px * var(--game-scale, 1)) !important;
  background: transparent !important;
  border: calc(5px * var(--game-scale, 1)) solid transparent !important;
  border-image: url('./dialog-art/input-panel.png') 12 fill / calc(6px * var(--game-scale, 1)) !important;
  box-shadow: none !important;
  font-family: Arial, 'Microsoft YaHei', sans-serif !important;
}
#game-input-title {
  font: calc(14px * var(--game-scale, 1))/1.5 Arial, 'Microsoft YaHei', sans-serif !important;
  margin-bottom: calc(4px * var(--game-scale, 1)) !important;
}
#game-input-wrap {
  height: calc(38px * var(--game-scale, 1)) !important;
  min-height: calc(38px * var(--game-scale, 1)) !important;
  max-height: calc(38px * var(--game-scale, 1)) !important;
  background: transparent !important;
  border: calc(5px * var(--game-scale, 1)) solid transparent !important;
  border-image: url('./dialog-art/input-field.png') 10 fill / calc(5px * var(--game-scale, 1)) !important;
}
#game-input-dialog input, #game-input-dialog textarea {
  display: block;
  width: 100% !important;
  height: calc(28px * var(--game-scale, 1)) !important;
  min-height: calc(28px * var(--game-scale, 1)) !important;
  max-height: calc(28px * var(--game-scale, 1)) !important;
  padding: calc(3px * var(--game-scale, 1)) !important;
  background: transparent !important;
  color: #fff !important;
  caret-color: #fff;
  font: calc(14px * var(--game-scale, 1))/1.4 Arial, 'Microsoft YaHei', sans-serif !important;
  overflow: hidden !important;
  resize: none !important;
  user-select: text;
  -webkit-user-select: text;
}
#game-input-wrap + div {
  margin-top: calc(9px * var(--game-scale, 1)) !important;
  gap: calc(12px * var(--game-scale, 1));
}
#game-input-ok, #game-input-cancel {
  margin: 0 !important;
  height: calc(32px * var(--game-scale, 1)) !important;
  border: calc(3px * var(--game-scale, 1)) solid transparent !important;
  background: transparent !important;
  border-image: url('./dialog-art/button-normal.png') 5 fill / calc(3px * var(--game-scale, 1)) !important;
  font: calc(14px * var(--game-scale, 1))/1 Arial, 'Microsoft YaHei', sans-serif !important;
}
#game-input-ok:active, #game-input-cancel:active {
  border-image-source: url('./dialog-art/button-pressed.png') !important;
}
#game-startup-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
  width: min(240px, calc(100vw - 24px), calc((100dvh - 24px) * 467 / 384));
  aspect-ratio: 467 / 384;
  container-type: inline-size;
  background: url('./dialog-art/startup-panel.png') center / 100% 100% no-repeat;
  color: #fff;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
  pointer-events: none;
}
#game-startup-title {
  position: absolute;
  top: 4.5%;
  left: 19%;
  width: 59%;
  color: #303030;
  text-align: center;
  font-size: clamp(13px, 6cqw, 22px);
  line-height: 1.5;
  text-shadow: 0 1px #fff;
}
#game-startup-content {
  position: absolute;
  inset: 22% 4% 9% 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  font-size: clamp(12px, 6cqw, 18px);
  line-height: 1.7;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#game-display-btn {
  border: 0 !important;
  border-radius: 50% !important;
  background: url('./dialog-art/float_menu.png') center / 100% 100% no-repeat !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
#game-display-btn:active {
  background-image: url('./dialog-art/float_menu_press.png') !important;
}
#game-display-btn > svg {
  display: none !important;
}
