.native-character-select-fit {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 100;
  background: #000;
  isolation: isolate;
}
.native-character-select-fit[hidden] {
  display: none !important;
}
.native-character-select-surface {
  position: relative;
  flex: 0 0 640px;
  width: 640px;
  height: 480px;
}
.native-character-select-fit[data-zoomed="true"] {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.native-character-select-fit[data-zoomed="true"]
  .native-character-select-surface {
  width: 1280px;
  height: 960px;
  min-width: 1280px;
  min-height: 960px;
}
.native-character-select-fit[data-zoomed="true"] .native-character-select {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
}
.native-character-select {
  position: relative;
  flex: 0 0 640px;
  width: 640px;
  height: 480px;
  min-width: 640px;
  min-height: 480px;
  margin: 0;
  padding: 0;
  border: 0;
  transform: scale(var(--native-scale, 1));
  transform-origin: center;
  background: #000 var(--ncs-background) 0 0 / 640px 480px no-repeat;
  font:
    12px Arial,
    "Malgun Gothic",
    sans-serif;
  color: #fff;
  image-rendering: pixelated;
}
.native-character-select > * {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  min-height: 0;
  max-height: none;
  font: inherit;
  line-height: 15px;
}
.native-character-select .ncs-button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent var(--ncs-up) 0 0 / 100% 100% no-repeat;
  cursor: pointer;
  opacity: 1;
  box-shadow: none;
  touch-action: manipulation;
}
.native-character-select .ncs-button:active:not(:disabled),
.native-character-select .ncs-button[aria-pressed="true"] {
  background-image: var(--ncs-down);
}
.native-character-select .ncs-button:disabled {
  cursor: default;
}
.native-character-select .ncs-button:focus-visible,
.native-character-select .ncs-list:focus-visible,
.native-character-select .ncs-field:focus-visible {
  outline: 1px solid #d1c994;
  outline-offset: 1px;
}
.native-character-select .ncs-list {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #c0c0c0;
  overflow: auto;
  scrollbar-width: thin;
}
.native-character-select .ncs-list option {
  height: 15px;
  min-height: 15px;
  line-height: 15px;
  padding: 0;
}
.native-character-select .ncs-field {
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.native-character-select .ncs-field:disabled {
  opacity: 1;
  cursor: help;
}
.native-character-select .ncs-info {
  color: #fff;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}
.native-character-select .ncs-sex {
  text-align: center;
}
.native-character-select .ncs-village {
  padding: 2px 20px 0 2px;
  background: transparent var(--ncs-village-arrow) right 2px center / 16px 15px
    no-repeat;
  cursor: help;
}
/* Selection art remaster is optional; original DFM positions remain identical. */
.ncs-art-toggle {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #887348;
  border-radius: 3px;
  background: #151610e8;
  color: #e9dbb8;
  font:
    12px "Malgun Gothic",
    sans-serif;
  cursor: pointer;
}
.ncs-remaster-label {
  display: none;
}
.native-character-select .ncs-button {
  color: transparent;
  font-size: 0;
}
.native-character-select[data-presentation="remastered"] {
  image-rendering: auto;
  font-family: "Malgun Gothic", "Noto Sans KR", sans-serif;
  color: #f3e7cc;
}
.native-character-select[data-presentation="remastered"] .ncs-remaster-label {
  display: block;
  text-align: center;
  color: #e7d5a6;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px #000;
}
.native-character-select[data-presentation="remastered"] .ncs-title {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 3px;
}
.native-character-select[data-presentation="remastered"] .ncs-button {
  color: #f1e3c1;
  font-size: 11px;
  line-height: 16px;
  background: linear-gradient(#38372c, #191a15);
  border: 1px solid #8c7d59;
  box-shadow:
    inset 0 0 0 1px #10100c,
    0 1px 2px #0009;
  text-shadow: 0 1px #000;
}
.native-character-select[data-presentation="remastered"]
  .ncs-button:active:not(:disabled),
.native-character-select[data-presentation="remastered"]
  .ncs-button[aria-pressed="true"] {
  background: linear-gradient(#4c4630, #2e2b20);
  border-color: #d7bd7c;
}
.native-character-select[data-presentation="remastered"] .ncs-button:disabled {
  color: #a69f8c;
  border-color: #5c5642;
}
.native-character-select[data-presentation="remastered"] .ncs-list {
  background: #10110de8;
  color: #eee0be;
  font-size: 12px;
  line-height: 18px;
}
.native-character-select[data-presentation="remastered"] .ncs-list option {
  height: 18px;
  line-height: 18px;
  padding-left: 3px;
}
.native-character-select[data-presentation="remastered"] .ncs-info {
  color: #eee0be;
}
