/* Native BMP skins and source-sized surfaces. Runtime placement, data binding
   and the touch layout below are web reconstruction, not an original capture. */
:root {
  --native-ink: #ead7a4;
  --native-muted: #b9ad8d;
  --native-wood: url("./assets/native-ui-v5/woodtile.png?v=reconstruction-v62-a04c1bdf5ecf");
  --native-paper: url("./assets/native-ui-v5/bg.png?v=reconstruction-v62-a04c1bdf5ecf");
}
.game-shell {
  border-color: #a28b61;
  background: var(--native-wood);
}
.scene-toolbar,
.player-toolbar,
.panel-heading,
.mobile-tabs {
  color: var(--native-ink);
  background-image: linear-gradient(#231c13bb, #120f0bea), var(--native-wood);
  border-color: #776043;
}
.player-toolbar {
  background-image:
    url("./assets/native-ui-v5/UnderBar.png?v=reconstruction-v62-a04c1bdf5ecf"), var(--native-wood);
  background-size:
    auto 38px,
    auto;
  background-position: bottom;
  background-repeat: repeat-x, repeat;
}
.portrait {
  background: #18130b;
  border-image: url("./assets/native-ui-v5/itemtile.png?v=reconstruction-v62-a04c1bdf5ecf") 4 stretch;
  border-width: 4px;
  box-shadow: none;
}
.portrait img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.scene-toolbar select {
  color: #f1ddb3;
  background: #211c13;
  border-color: #8c7855;
}
.action-bar button,
.game-dock button {
  border-color: #8a7250;
  border-radius: 0;
  color: #ead6a8;
  background:
    linear-gradient(#0002, #0004),
    url("./assets/native-ui-v5/menutable.png?v=reconstruction-v62-a04c1bdf5ecf") 50% 10% / 290px 184px;
  box-shadow: inset 0 0 0 1px #24190d;
}
.action-bar button:hover,
.game-dock button:hover {
  color: #fff4cd;
  border-color: #d5bd82;
  filter: brightness(1.15);
}
.action-bar .action-icon {
  display: none !important;
}
.action-bar button > span:nth-child(2) {
  font-size: 12px;
  display: block;
  margin: 0;
}
.hotkeys button {
  border: 0;
  border-radius: 0;
  background:
    url("./assets/native-ui-v5/itemtile.png?v=reconstruction-v62-a04c1bdf5ecf") 0 0 / 76px 36px,
    #14110b;
  box-shadow: inset 0 0 0 1px #897b58;
}
.hotkeys button.assigned {
  box-shadow: inset 0 0 0 1px #ccb575;
}
.chat-panel,
.quest-panel {
  background: #1b1710;
  border-color: #705c3d;
}
#chat-form {
  background: #17130e;
  border-color: #69593d;
}
#chat-messages {
  scrollbar-color: #7a6645 #1b1710;
}
.game-panel {
  width: min(744px, calc(100vw - 32px));
  max-width: 744px;
  border: 18px solid #584027;
  border-image: url("./assets/native-ui-v5/bg.png?v=reconstruction-v62-a04c1bdf5ecf") 26 stretch;
  color: var(--native-ink);
  background: linear-gradient(#0c0b09bf, #14120edb), var(--native-wood);
  box-shadow: 0 20px 80px #000c;
}
.game-panel-heading {
  padding: 4px 6px 9px;
  border: 0;
  background: none;
}
.game-panel[data-native-panel="board"] {
  border-image-source: url("./assets/native-ui-v5/listwindowbg.png?v=reconstruction-v62-a04c1bdf5ecf");
}
.game-panel[data-native-panel="social"] {
  border-image-source: url("./assets/native-ui-v5/subwindow.png?v=reconstruction-v62-a04c1bdf5ecf");
}
.game-panel-heading small {
  color: #b9a27a;
  font:
    9px/1.4 Georgia,
    serif;
  letter-spacing: 1px;
}
.game-panel-heading h2 {
  color: #efd8a5;
  font:
    700 20px/1.3 "Malgun Gothic",
    serif;
  text-shadow: 0 2px #000;
}
#game-panel-close {
  min-width: 54px;
  min-height: 44px;
  width: 54px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: url("./assets/native-ui-v5/Cancel_N.png?v=reconstruction-v62-a04c1bdf5ecf") center / 54px 33px
    no-repeat;
  color: transparent;
  font-size: 0;
}
#game-panel-close:hover {
  background-image: url("./assets/native-ui-v5/Cancel_M.png?v=reconstruction-v62-a04c1bdf5ecf");
}
#game-panel-close:active {
  background-image: url("./assets/native-ui-v5/Cancel_P.png?v=reconstruction-v62-a04c1bdf5ecf");
}
.game-panel-tabs {
  padding: 0;
  gap: 3px;
  background: none;
  border-color: #8c7650;
}
.game-panel-tabs button {
  padding: 7px 8px;
  color: #c9b992;
  border-color: #695337;
  background: #322418;
  border-radius: 0;
}
.game-panel-tabs button[aria-current="page"] {
  color: #ffe3a2;
  background: #58472c;
  border-color: #b9a275;
}
.game-panel-content {
  padding: 12px 5px 18px;
  min-height: 0;
  scrollbar-color: #89734c #15110b;
}
.game-panel-content h3 {
  color: #e7ca8b;
}
.game-panel .panel-note {
  color: #c1b397;
}
.game-panel-footer {
  padding: 7px 5px 0;
  font-size: 9px;
  color: #b5a581;
  background: none;
  border-color: #76613e;
}
.game-panel-content button {
  color: #f0dab1;
  background: #3b3020;
  border-color: #948061;
  border-radius: 0;
}
.game-panel-content button:hover {
  background: #615036;
  border-color: #d7bd84;
}
.game-panel-content button:disabled {
  opacity: 0.42;
}
.game-panel-content .field-label input,
.game-panel-content .field-label select,
.game-panel-content .field-label textarea {
  color: #f0dfb7;
  border-color: #8b7757;
  background: #100f0c;
  border-radius: 0;
}
.game-panel .game-card {
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #75603f;
  background: none;
  box-shadow: none;
}
.game-panel .game-card p {
  color: #d3c5a5;
}
.game-panel .game-card .panel-note {
  color: #bdb093;
}
.game-panel .item-grid {
  gap: 1px 18px;
}
.game-panel .game-card.has-item-icon {
  padding-left: 8px;
}
.game-panel .item-art {
  left: 8px;
}
.game-panel .character-overview {
  padding: 8px 4px;
  margin-top: 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid #715e3d;
}
.character-overview img {
  display: none;
}
.attribute-grid .attribute-row {
  color: #ddc797;
  background: #201b13;
  border-color: #766446;
}
.equipment-grid {
  gap: 3px;
}
.equipment-grid .game-card {
  border: 1px solid #776347;
  background: #15120d;
}
.appearance-colors details {
  color: #e5d1aa;
  border: 8px solid #75684d;
  border-image: url("./assets/native-ui-v5/PalBox.png?v=reconstruction-v62-a04c1bdf5ecf") 9 stretch;
  background: #14110d;
}
.appearance-colors summary {
  color: #e5d1aa;
}
.appearance-colors details:first-child > summary {
  padding-top: 34px;
  background: url("./assets/native-ui-v5/HeadColor_N.png?v=reconstruction-v62-a04c1bdf5ecf") left top / 112px 33px
    no-repeat;
}
.appearance-colors details:nth-child(2) > summary {
  padding-top: 34px;
  background: url("./assets/native-ui-v5/ClotColor_N.png?v=reconstruction-v62-a04c1bdf5ecf") left top / 112px 32px
    no-repeat;
}
.color-swatches button {
  min-height: 0;
  border: 1px solid #d5c8a144;
}
.native-character-sheet {
  position: relative;
  width: 455px;
  max-width: 100%;
  aspect-ratio: 455 / 428;
  margin: 4px auto 12px;
  overflow: hidden;
  background: #211e1c;
  isolation: isolate;
}
.native-sheet-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.native-sheet-portrait {
  position: absolute;
  top: 1.6%;
  left: 1.6%;
  width: 33%;
  height: 43%;
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
}
.native-sheet-value {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  color: #f3dfac;
  font:
    12px/1 Arial,
    "Malgun Gothic",
    sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px #000;
}
.native-sheet-items {
  position: absolute;
  left: 8%;
  top: 57%;
  width: 84%;
  height: 39%;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 36px;
  gap: 1px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #8d7554 #25201b;
}
.game-panel-content .native-item-slot {
  position: relative;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 2px;
  border: 0;
  background: url("./assets/native-ui-v5/itemtile.png?v=reconstruction-v62-a04c1bdf5ecf") 0 0 / 76px 36px;
  box-shadow: inset 0 0 0 1px #72654c;
  overflow: hidden;
}
.native-item-slot img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}
.native-item-slot small {
  position: absolute;
  bottom: 1px;
  right: 2px;
  color: #fff0bf;
  font: 9px/1 Arial;
  text-shadow:
    1px 1px #000,
    -1px -1px #000;
}
.native-item-slot .native-item-reserved {
  position: absolute;
  top: 1px;
  left: 1px;
  color: #fff2a9;
  font: normal 8px/1.2 sans-serif;
  background: #2c2419df;
}
.native-item-initial {
  font-size: 10px;
  color: #e9d399;
}
.native-inventory-tray {
  position: relative;
  width: 455px;
  max-width: 100%;
  aspect-ratio: 455 / 334;
  margin: 12px auto 18px;
  background: url("./assets/native-ui-v5/bg.png?v=reconstruction-v62-a04c1bdf5ecf") center / 100% 100% no-repeat;
}
.native-inventory-tray > h3 {
  position: absolute;
  top: 10px;
  left: 25%;
  right: 25%;
  text-align: center;
  margin: 0;
  font-size: 13px;
  text-shadow: 0 1px #000;
}
.native-inventory-grid {
  position: absolute;
  inset: 39px 30px 40px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-rows: 36px;
  align-content: start;
  gap: 2px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #88724c #21190f;
}
.native-tray-hint {
  position: absolute;
  bottom: 12px;
  left: 24px;
  right: 24px;
  margin: 0;
  text-align: center;
  font-size: 10px !important;
  text-shadow: 0 1px #000;
}
.native-spell-window {
  width: 400px;
  max-width: 100%;
  min-height: 300px;
  margin: 14px auto;
  padding: 32px 22px 40px;
  background: url("./assets/native-ui-v5/WizardWin.png?v=reconstruction-v62-a04c1bdf5ecf") center / 100% 100%
    no-repeat;
}
.native-spell-row {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  margin: 5px 0;
}
.native-spell-row > span {
  width: 30px;
  flex-shrink: 0;
  color: #ead299;
  font-size: 10px;
}
.native-spell-strip {
  display: flex;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 3px;
  padding-bottom: 3px;
}
.game-panel-content .native-spell-choice {
  width: 48px;
  min-width: 48px;
  min-height: 33px;
  height: 33px;
  padding: 2px;
  font-size: 9px;
  word-break: keep-all;
  white-space: normal;
  color: #f0d69b;
  border-color: #8d7652;
  background: #16110cdf;
}
.game-panel-content .native-spell-choice:disabled {
  opacity: 0.48;
}
.native-store-window {
  position: relative;
  width: 455px;
  max-width: 100%;
  height: 334px;
  margin: 14px auto 4px;
  background: url("./assets/native-ui-v5/storebg.png?v=reconstruction-v62-a04c1bdf5ecf") center / 100% 100%
    no-repeat;
}
.native-store-window > h3 {
  position: absolute;
  top: 28px;
  left: 32%;
  right: 32%;
  text-align: center;
  margin: 0;
  font-size: 11px;
  line-height: 1;
  color: #edd8aa;
  text-shadow: 0 1px #000;
}
.game-panel .native-stock-list {
  display: block;
  position: absolute;
  inset: 59px 37px 61px;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 9px;
  border: 4px solid #716246;
  border-image: url("./assets/native-ui-v5/ShopListFrame.png?v=reconstruction-v62-a04c1bdf5ecf") 5 stretch;
  background: #100e0aca;
  scrollbar-width: thin;
  scrollbar-color: #9b8560 #19130e;
}
.native-stock-list .game-card {
  padding: 10px 4px;
}
.native-stock-list .game-card h3 {
  font-size: 12px;
}
.native-stock-list .panel-note {
  font-size: 10px;
  margin-bottom: 5px;
}
.native-stock-list .card-actions {
  margin-top: 5px;
}
.native-help-browser {
  display: grid;
  grid-template-columns: 31.7% minmax(0, 1fr);
  width: 455px;
  max-width: 100%;
  height: 428px;
  margin: 12px auto 0;
  padding: 16px 7px 9px;
  background: url("./assets/native-ui-v5/helpwin.png?v=reconstruction-v62-a04c1bdf5ecf") center / 100% 100%
    no-repeat;
}
.native-help-index {
  overflow: auto;
  padding: 2px 4px 4px 2px;
  scrollbar-width: thin;
}
.native-help-index button {
  display: block;
  width: 100%;
  padding: 6px 2px;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  background: none;
  border: 0;
  color: #d7c49c;
}
.native-help-index button[aria-current="true"] {
  color: #ffe6a6;
  background: #6f584055;
}
.native-help-copy {
  overflow: auto;
  padding: 2px 10px;
  scrollbar-width: thin;
  min-width: 0;
}
.native-help-copy h3 {
  margin: 5px 0 9px;
  font-size: 13px;
}
.native-help-copy p {
  color: #e7d7b7;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.game-panel-content .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 341px;
  max-width: 100%;
  min-height: 216px;
  margin: 8px auto 16px;
  padding: 8px 75px 10px 20px;
  gap: 1px;
  background: url("./assets/native-ui-v5/menutable.png?v=reconstruction-v62-a04c1bdf5ecf") center / 100% 100%
    no-repeat;
}
.menu-grid button {
  min-height: 31px;
  padding: 2px;
  border: 0;
  color: #f0dab5;
  background: #24170844;
  text-shadow: 0 1px #000;
}
.quickslot-manager .game-card {
  border: 1px solid #776344;
  background: #17130b;
}
.login-panel {
  background:
    linear-gradient(#10100d80, #14100cda),
    url("./assets/native-ui-v5/CharSelBack.png?v=reconstruction-v62-a04c1bdf5ecf") center / cover;
  border: 14px solid #695235;
  border-image: url("./assets/native-ui-v5/bg.png?v=reconstruction-v62-a04c1bdf5ecf") 26 stretch;
  color: #eddbb1;
}
.login-panel .primary {
  color: #efddb2;
  border-color: #a18c63;
  background: url("./assets/native-ui-v5/menutable.png?v=reconstruction-v62-a04c1bdf5ecf") center 8% / 330px 210px;
}
#appearance-select button {
  border: 0;
  border-bottom: 1px solid #89754e;
  background: #16100955;
  box-shadow: none;
}
#appearance-select button[aria-pressed="true"] {
  background: #94803b44;
  box-shadow: inset 0 0 0 1px #dfc78e;
}
@media (min-resolution: 1.5dppx) {
  :root {
    --native-wood: url("./assets/native-ui-v5/woodtile@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .game-panel {
    border-image-source: url("./assets/native-ui-v5/bg@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
    border-image-slice: 52;
  }
  .game-panel[data-native-panel="board"] {
    border-image-source: url("./assets/native-ui-v5/listwindowbg@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .game-panel[data-native-panel="social"] {
    border-image-source: url("./assets/native-ui-v5/subwindow@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .native-inventory-tray {
    background-image: url("./assets/native-ui-v5/bg@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .native-spell-window {
    background-image: url("./assets/native-ui-v5/WizardWin@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .native-store-window {
    background-image: url("./assets/native-ui-v5/storebg@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
  .native-help-browser {
    background-image: url("./assets/native-ui-v5/helpwin@2x.png?v=reconstruction-v62-a04c1bdf5ecf");
  }
}
@media (max-width: 950px) {
  .game-panel {
    width: calc(100% - 12px);
    border-width: 12px;
    max-height: calc(var(--mobile-height, 100dvh) - 12px);
  }
  .game-panel-heading {
    padding: 1px 2px 6px;
  }
  .game-panel-heading h2 {
    font-size: 17px;
  }
  .game-panel-tabs button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 8px;
  }
  .game-panel-content {
    padding: 10px 1px 14px;
    overflow-x: hidden;
  }
  .game-panel-content .native-sheet-value {
    font-size: clamp(9px, 2.6vw, 12px);
  }
  .native-sheet-items {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    grid-auto-rows: 44px;
  }
  .game-panel-content .native-item-slot {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    background-size: 93px 44px;
  }
  .native-item-slot img {
    width: 34px;
    height: 34px;
  }
  .native-item-slot small {
    font-size: 10px;
  }
  .native-inventory-grid {
    inset: 33px 20px 38px;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    grid-auto-rows: 44px;
  }
  .native-inventory-tray > h3 {
    top: 8px;
    font-size: 12px;
  }
  .native-tray-hint {
    bottom: 8px;
    left: 18px;
    right: 18px;
    font-size: 9px !important;
  }
  .native-spell-window {
    padding: 24px 15px 32px;
    min-height: 320px;
  }
  .native-spell-row > span {
    font-size: 11px;
    width: 28px;
  }
  .game-panel-content .native-spell-choice {
    width: 53px;
    min-width: 53px;
    height: 44px;
    min-height: 44px;
    font-size: 10px;
  }
  .native-store-window {
    height: 370px;
  }
  .game-panel .native-stock-list {
    inset: 64px 24px 65px;
    padding: 0 7px;
  }
  .native-store-window > h3 {
    top: 31px;
    left: 25%;
    right: 25%;
    font-size: 12px;
  }
  .native-help-browser {
    grid-template-columns: 31.7% minmax(0, 1fr);
    height: min(470px, calc(var(--mobile-height, 100dvh) - 240px));
    min-height: 150px;
    padding-top: 12px;
  }
  .native-help-index button {
    min-width: 44px;
    min-height: 44px;
    font-size: 11px;
  }
  .native-help-copy {
    padding-left: 7px;
    padding-right: 4px;
  }
  .native-help-copy p {
    font-size: 12px;
    line-height: 1.85;
  }
  .game-panel-content .menu-grid {
    padding-right: 64px;
    min-height: 282px;
  }
  .menu-grid button {
    min-height: 44px;
    font-size: 13px;
  }
  .color-swatches {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    max-height: 258px;
    overflow: auto;
    padding: 3px;
  }
  .color-swatches button {
    min-width: 44px;
    min-height: 44px;
  }
  .game-shell .action-bar button {
    background: #2c2116e8;
    border-radius: 4px;
  }
  .game-shell .action-bar button > span:nth-child(2) {
    font-size: 11px;
  }
  .dpad button {
    color: #f2d59f;
    border-color: #a18d66;
    border-radius: 5px;
    background: #302416e6;
  }
  .mobile-tabs button {
    color: #e8d3a9;
    border-color: #665137;
    background: #2c2218;
  }
  .mobile-tabs button[aria-expanded="true"] {
    background: #6b5433;
  }
  .game-tools,
  .bottom-panels {
    border-color: #a38d61;
    background: #20180f;
  }
  .login-panel {
    border-width: 10px;
  }
  .scene-toolbar {
    height: 44px;
    min-height: 44px;
  }
  .scene-toolbar #render-motion {
    width: 74px;
    max-width: 74px;
    font-size: 16px !important;
  }
  .scene-toolbar #render-quality {
    width: 60px;
    max-width: 60px;
    font-size: 16px !important;
  }
  .scene-toolbar #render-zoom {
    width: 56px;
    max-width: 56px;
    font-size: 16px !important;
  }
  .scene-toolbar .view-controls {
    gap: 2px !important;
  }
  #fullscreen-button {
    min-width: 44px;
    width: 44px;
  }
}
