/* r187 (user 2026-11-02: "en version ordenador tambien agrega el nuevo formato de ventanas para market shop y todo"): on
   a computer the windows of the game take the look of the phone windows (r184, mobile.css, crafting.css, imbuing.css,
   market.css, shop.css) at the size of a computer: the dark panel, a 34 px title in bold Verdana in the middle, a 26 px ✕
   in its box, 30 px buttons with the one that confirms in gold, Verdana everywhere and the selected tab framed in gold.
   Each window keeps its size and its place; the phone (body.force-mobile) keeps its own rules. The book keeps its
   parchment, and the NPC dialog and trade, the Hub and Settings already have this look */

/* ------------------------------------------------------------------------------------------------- the panel */
body:not(.force-mobile) #outfit-modal,
body:not(.force-mobile) #quest-log-modal,
body:not(.force-mobile) #map-modal,
body:not(.force-mobile) #chat-modal,
body:not(.force-mobile) #bug-report-modal,
body:not(.force-mobile) #confirm-modal,
body:not(.force-mobile) #death-modal,
body:not(.force-mobile) #hotbar-add-modal,
body:not(.force-mobile) #hotbar-key-modal,
body:not(.force-mobile) #enter-name-modal,
body:not(.force-mobile) #information-modal,
body:not(.force-mobile) #move-item-modal,
body:not(.force-mobile) #dummy-modal,
body:not(.force-mobile) #crafting-modal.crafting-window,
body:not(.force-mobile) #imbuing-modal.imbuing-window,
body:not(.force-mobile) #market-modal.market-window,
body:not(.force-mobile) #shop-modal.shop-window {
  background: rgba(38, 37, 35, 0.97) !important;
  color: #ece6d6;
  border: 1px solid #0c0c0c !important;
  outline: 1px solid #4a4741;
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7) !important;
  font-family: Verdana, Arial, sans-serif;
}

body:not(.force-mobile) #outfit-modal,
body:not(.force-mobile) #quest-log-modal,
body:not(.force-mobile) #map-modal,
body:not(.force-mobile) #chat-modal,
body:not(.force-mobile) #bug-report-modal,
body:not(.force-mobile) #confirm-modal,
body:not(.force-mobile) #death-modal,
body:not(.force-mobile) #hotbar-add-modal,
body:not(.force-mobile) #hotbar-key-modal,
body:not(.force-mobile) #enter-name-modal,
body:not(.force-mobile) #information-modal,
body:not(.force-mobile) #move-item-modal,
body:not(.force-mobile) #dummy-modal {
  box-sizing: border-box;
  min-width: 260px;
  padding: 0 !important;
}

/* ------------------------------------------------------------------------------------------------- the title */
body:not(.force-mobile) #outfit-modal > .modal-header,
body:not(.force-mobile) #quest-log-modal > .modal-header,
body:not(.force-mobile) #map-modal > .modal-header,
body:not(.force-mobile) #chat-modal > .modal-header,
body:not(.force-mobile) #bug-report-modal > .modal-header,
body:not(.force-mobile) #confirm-modal > .modal-header,
body:not(.force-mobile) #death-modal > .modal-header,
body:not(.force-mobile) #hotbar-add-modal > .modal-header,
body:not(.force-mobile) #hotbar-key-modal > .modal-header,
body:not(.force-mobile) #enter-name-modal > .modal-header,
body:not(.force-mobile) #information-modal > .modal-header,
body:not(.force-mobile) #move-item-modal > .modal-header,
body:not(.force-mobile) #dummy-modal > .modal-header,
body:not(.force-mobile) .crafting-titlebar,
body:not(.force-mobile) .imbuing-titlebar,
body:not(.force-mobile) .market-titlebar,
body:not(.force-mobile) .shop-titlebar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  line-height: 34px;
  margin: 0;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(60, 58, 54, 0.9), rgba(40, 39, 36, 0.9));
  border-bottom: 1px solid #0c0c0c;
  font: bold 14px Verdana, Arial, sans-serif;
  color: #f4efe2;
  text-shadow: none;
}

/* the ✕ in its box */
body:not(.force-mobile) #outfit-modal > .close-button-transparent,
body:not(.force-mobile) #map-modal > .close-button-transparent,
body:not(.force-mobile) #chat-modal > .close-button-transparent,
body:not(.force-mobile) #bug-report-modal > .close-button-transparent,
body:not(.force-mobile) #confirm-modal > .close-button-transparent,
body:not(.force-mobile) #death-modal > .close-button-transparent,
body:not(.force-mobile) #hotbar-add-modal > .close-button-transparent,
body:not(.force-mobile) #hotbar-key-modal > .close-button-transparent,
body:not(.force-mobile) #enter-name-modal > .close-button-transparent,
body:not(.force-mobile) #information-modal > .close-button-transparent,
body:not(.force-mobile) #move-item-modal > .close-button-transparent,
body:not(.force-mobile) #dummy-modal > .close-button-transparent,
body:not(.force-mobile) #crafting-modal .crafting-close-x,
body:not(.force-mobile) #imbuing-modal .imbuing-close-x,
body:not(.force-mobile) #market-modal .market-titlebar .market-close-x,
body:not(.force-mobile) .shop-titlebar .shop-close-x {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 26px !important;
  min-width: 26px !important;
  max-width: none;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0;
  font-size: 13px !important;
  line-height: 24px;
  color: #e9e4d8;
  background: #1d1c1a;
  border: 1px solid #55514a;
  border-radius: 3px;
  cursor: pointer;
}

body:not(.force-mobile) #outfit-modal > .close-button-transparent:hover,
body:not(.force-mobile) #map-modal > .close-button-transparent:hover,
body:not(.force-mobile) #chat-modal > .close-button-transparent:hover,
body:not(.force-mobile) #bug-report-modal > .close-button-transparent:hover,
body:not(.force-mobile) #confirm-modal > .close-button-transparent:hover,
body:not(.force-mobile) #death-modal > .close-button-transparent:hover,
body:not(.force-mobile) #hotbar-add-modal > .close-button-transparent:hover,
body:not(.force-mobile) #hotbar-key-modal > .close-button-transparent:hover,
body:not(.force-mobile) #enter-name-modal > .close-button-transparent:hover,
body:not(.force-mobile) #information-modal > .close-button-transparent:hover,
body:not(.force-mobile) #move-item-modal > .close-button-transparent:hover,
body:not(.force-mobile) #dummy-modal > .close-button-transparent:hover,
body:not(.force-mobile) #crafting-modal .crafting-close-x:hover,
body:not(.force-mobile) #imbuing-modal .imbuing-close-x:hover,
body:not(.force-mobile) #market-modal .market-titlebar .market-close-x:hover,
body:not(.force-mobile) .shop-titlebar .shop-close-x:hover {
  color: #fff;
  border-color: #d9a72c;
}

/* --------------------------------------------------------------------------------------------- body and buttons */
body:not(.force-mobile) #outfit-modal > .modal-body,
body:not(.force-mobile) #map-modal > .modal-body,
body:not(.force-mobile) #chat-modal > .modal-body,
body:not(.force-mobile) #bug-report-modal > .modal-body,
body:not(.force-mobile) #confirm-modal > .modal-body,
body:not(.force-mobile) #death-modal > .modal-body,
body:not(.force-mobile) #hotbar-add-modal > .modal-body,
body:not(.force-mobile) #hotbar-key-modal > .modal-body,
body:not(.force-mobile) #enter-name-modal > .modal-body,
body:not(.force-mobile) #information-modal > .modal-body,
body:not(.force-mobile) #move-item-modal > .modal-body,
body:not(.force-mobile) #dummy-modal > .modal-body {
  padding: 10px 12px !important;
  background: none;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.45;
}

body:not(.force-mobile) #outfit-modal .modal-footer button,
body:not(.force-mobile) #map-modal .modal-footer button,
body:not(.force-mobile) #chat-modal .modal-footer button,
body:not(.force-mobile) #bug-report-modal .modal-footer button,
body:not(.force-mobile) #confirm-modal .modal-footer button,
body:not(.force-mobile) #death-modal .modal-footer button,
body:not(.force-mobile) #hotbar-add-modal .modal-footer button,
body:not(.force-mobile) #hotbar-key-modal .modal-footer button,
body:not(.force-mobile) #enter-name-modal .modal-footer button,
body:not(.force-mobile) #information-modal .modal-footer button,
body:not(.force-mobile) #move-item-modal .modal-footer button,
body:not(.force-mobile) #dummy-modal .modal-footer button,
body:not(.force-mobile) #quest-log-modal .tibia-button,
body:not(.force-mobile) #crafting-modal button:not(.crafting-close-x),
body:not(.force-mobile) #imbuing-modal button:not(.imbuing-big):not(.imbuing-close-x),
body:not(.force-mobile) #market-modal button:not(.market-close-x),
body:not(.force-mobile) .shop-bottom button {
  min-height: 28px;
  padding: 0 12px;
  font: bold 12px Verdana, Arial, sans-serif;
  color: #ece6d6;
  background: #1b1a18;
  border: 1px solid #0c0c0c;
  box-shadow: inset 0 0 0 1px #3d3a34;
  border-radius: 5px;
  text-shadow: none;
  cursor: pointer;
}

body:not(.force-mobile) #outfit-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #map-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #chat-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #bug-report-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #confirm-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #death-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #hotbar-add-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #hotbar-key-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #enter-name-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #information-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #move-item-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #dummy-modal .modal-footer button:hover:not(:disabled),
body:not(.force-mobile) #quest-log-modal .tibia-button:hover,
body:not(.force-mobile) #crafting-modal button:not(.crafting-close-x):hover:not(:disabled),
body:not(.force-mobile) #imbuing-modal button:not(.imbuing-big):not(.imbuing-close-x):hover:not(:disabled),
body:not(.force-mobile) #market-modal button:not(.market-close-x):hover:not(:disabled),
body:not(.force-mobile) .shop-bottom button:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px #8a7440;
}

/* the button that confirms, in gold */
body:not(.force-mobile) #outfit-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #chat-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #bug-report-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #confirm-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #death-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #hotbar-key-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #enter-name-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #move-item-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #dummy-modal .modal-footer button[action="confirm"],
body:not(.force-mobile) #crafting-modal .crafting-craft:not(:disabled) {
  color: #1d1606;
  background: #d9a72c;
  box-shadow: none;
}

body:not(.force-mobile) #outfit-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #chat-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #bug-report-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #confirm-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #death-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #hotbar-key-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #enter-name-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #move-item-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #dummy-modal .modal-footer button[action="confirm"]:hover,
body:not(.force-mobile) #crafting-modal .crafting-craft:not(:disabled):hover {
  background: #e7b63a;
  box-shadow: none;
}

body:not(.force-mobile) #confirm-modal .modal-footer,
body:not(.force-mobile) #death-modal .modal-footer,
body:not(.force-mobile) #chat-modal .modal-footer,
body:not(.force-mobile) #bug-report-modal .modal-footer,
body:not(.force-mobile) #enter-name-modal .modal-footer,
body:not(.force-mobile) #outfit-modal .modal-footer,
body:not(.force-mobile) #move-item-modal .modal-footer,
body:not(.force-mobile) #dummy-modal .modal-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------------------------- fields and tabs */
body:not(.force-mobile) #chat-modal input,
body:not(.force-mobile) #bug-report-modal textarea,
body:not(.force-mobile) #enter-name-modal input,
body:not(.force-mobile) #move-item-modal input,
body:not(.force-mobile) #quest-log-modal .tibia-select,
body:not(.force-mobile) #quest-log-modal .tibia-input,
body:not(.force-mobile) #crafting-modal input,
body:not(.force-mobile) #imbuing-modal select,
body:not(.force-mobile) #market-modal input:not([type="checkbox"]),
body:not(.force-mobile) #market-modal select,
body:not(.force-mobile) #shop-modal input:not([type="checkbox"]) {
  box-sizing: border-box;
  min-height: 26px;
  font: 12px Verdana, Arial, sans-serif;
  color: #ece6d6;
  background: #161513;
  border: 1px solid #0c0c0c;
  box-shadow: inset 0 0 0 1px #3d3a34;
  border-radius: 4px;
}

body:not(.force-mobile) #market-modal input[type="checkbox"],
body:not(.force-mobile) #quest-log-modal input[type="checkbox"],
body:not(.force-mobile) #outfit-modal input[type="checkbox"] {
  accent-color: #d9a72c;
}

body:not(.force-mobile) #crafting-modal .crafting-tab.selected,
body:not(.force-mobile) #market-modal .market-tab.selected {
  color: #f1c75a;
  box-shadow: inset 0 0 0 1px #d9a72c;
}

body:not(.force-mobile) #crafting-modal .crafting-craft {
  min-height: 32px;
  font-size: 13px;
}

body:not(.force-mobile) .crafting-panel-title,
body:not(.force-mobile) .imbuing-panel-title,
body:not(.force-mobile) .market-section-title,
body:not(.force-mobile) .market-panel-title,
body:not(.force-mobile) .market-create-title {
  font: bold 12px Verdana, Arial, sans-serif;
  color: #f4efe2;
}

body:not(.force-mobile) #crafting-modal,
body:not(.force-mobile) #imbuing-modal,
body:not(.force-mobile) #market-modal,
body:not(.force-mobile) #shop-modal {
  font-size: 11px;
}

/* ------------------------------------------------------------------------------------------------- Quest Log */
/* its title was hidden (display:none inline): a computer shows it as the other windows */
body:not(.force-mobile) #quest-log-modal > .modal-header {
  font: bold 14px Verdana, Arial, sans-serif;
}

/* ------------------------------------------------------------------------------------------------------ Shop */
/* Buy Now, when it can be bought, confirms: in gold as the other windows (Get and Gift keep their green and blue) */
body:not(.force-mobile) #shop-modal .shop-buy:not(:disabled) {
  color: #1d1606;
  background: #d9a72c;
  border: 1px solid #0c0c0c;
  box-shadow: none;
  font-family: Verdana, Arial, sans-serif;
  font-weight: bold;
}

/* ------------------------------------------------------------------------------------------------- the book */
/* r189 (user 2026-11-02: "en version escritorio tambien agregaste la nueva ventana a los books?"): the book takes the
   panel, the 34 px title and the 26 px ✕ of the other windows and keeps its parchment; the speaker is a 26 px box on the
   left of the title, facing the ✕ */
body:not(.force-mobile) #readable-modal {
  box-sizing: border-box;
  width: 340px;
  padding: 0 !important;
  background: rgba(38, 37, 35, 0.97) !important;
  color: #ece6d6;
  border: 1px solid #0c0c0c !important;
  outline: 1px solid #4a4741;
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7) !important;
  font-family: Verdana, Arial, sans-serif;
}

body:not(.force-mobile) #readable-modal > .modal-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  line-height: 34px;
  margin: 0;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(60, 58, 54, 0.9), rgba(40, 39, 36, 0.9));
  border-bottom: 1px solid #0c0c0c;
  font: bold 14px Verdana, Arial, sans-serif;
  color: #f4efe2;
  text-shadow: none;
}

body:not(.force-mobile) #readable-modal > .close-button-transparent,
body:not(.force-mobile) #readable-modal > .book-speaker {
  position: absolute;
  top: 4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 26px !important;
  min-width: 26px !important;
  max-width: none;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0;
  font-size: 13px !important;
  line-height: 24px;
  color: #e9e4d8;
  background: #1d1c1a;
  border: 1px solid #55514a;
  border-radius: 3px;
  cursor: pointer;
}

body:not(.force-mobile) #readable-modal > .close-button-transparent {
  right: 4px;
}

body:not(.force-mobile) #readable-modal > .book-speaker {
  left: 4px;
  font-size: 16px !important;
}

body:not(.force-mobile) #readable-modal > .close-button-transparent:hover,
body:not(.force-mobile) #readable-modal > .book-speaker:hover {
  color: #f0c24b;
  border-color: #8a7334;
}

body:not(.force-mobile) #readable-modal > .book-speaker.playing {
  color: #1d1606;
  background: #d9a72c;
  border-color: #d9a72c;
}

body:not(.force-mobile) #readable-modal > .modal-body {
  padding: 10px !important;
  background: none;
  box-shadow: none;
}

body:not(.force-mobile) #readable-modal .modal-footer button {
  min-height: 28px;
  padding: 0 14px;
  font: bold 12px Verdana, Arial, sans-serif;
  color: #1d1606;
  background: #d9a72c;
  border: 1px solid #0c0c0c;
  border-radius: 3px;
  cursor: pointer;
}

/* r190 (user 2026-11-02: "no habiamos cambiado ya en version escritorio todas las ventanas? no se porque sigo viendo las
   viejas en settings y demas"): r187 left Settings out believing it had the new look; it still had the stone texture.
   On a computer it now looks as on the phone (css/mobile.css, r183 after Minibia's settings) at the size of a computer:
   the dark panel and title bar, the tabs in a dark strip with the chosen one in gold, each setting in a box with its
   check box first and its explanation under it */
body:not(.force-mobile) #settings-modal {
  box-sizing: border-box;
  padding: 0 !important;
  background: rgba(38, 37, 35, 0.97) !important;
  color: #ece6d6;
  border: 1px solid #0c0c0c !important;
  outline: 1px solid #4a4741;
  border-radius: 3px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7) !important;
  font-family: Verdana, Arial, sans-serif;
}

body:not(.force-mobile) #settings-modal > .modal-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 34px;
  margin: 0;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(60, 58, 54, 0.9), rgba(40, 39, 36, 0.9));
  border-bottom: 1px solid #0c0c0c;
  font: bold 14px Verdana, Arial, sans-serif;
  color: #f4efe2;
  text-shadow: none;
}

body:not(.force-mobile) #settings-modal > .close-button-transparent {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0;
  font-size: 13px !important;
  line-height: 24px;
  color: #e9e4d8;
  background: #1d1c1a;
  border: 1px solid #55514a;
  border-radius: 3px;
  cursor: pointer;
}

body:not(.force-mobile) #settings-modal > .close-button-transparent:hover {
  color: #fff;
  border-color: #d9a72c;
}

body:not(.force-mobile) #settings-modal > .modal-body {
  padding: 10px 12px 12px !important;
  background: none;
  box-shadow: none;
  font-size: 12px;
}

body:not(.force-mobile) #settings-modal button,
body:not(.force-mobile) #settings-modal select {
  font: bold 12px Verdana, Arial, sans-serif;
  color: #ece6d6;
  background: #1b1a18;
  border: 1px solid #0c0c0c;
  box-shadow: inset 0 0 0 1px #3d3a34;
  border-radius: 5px;
  text-shadow: none;
}

body:not(.force-mobile) #settings-modal button:hover {
  box-shadow: inset 0 0 0 1px #d9a72c;
  color: #fff;
}

body:not(.force-mobile) #settings-modal [role="tablist"] {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px !important;
  padding: 6px;
  background: rgba(24, 23, 22, 0.92);
  border: 1px solid #0c0c0c;
  border-radius: 4px;
}

body:not(.force-mobile) #settings-modal [role="tab"] {
  grid-column: span 2;
  min-height: 28px;
  padding: 0 8px;
  white-space: nowrap;
  color: #b9b2a2;
  background: #151413;
}

body:not(.force-mobile) #settings-modal [role="tab"]:nth-child(n+4) {
  grid-column: span 3;
}

body:not(.force-mobile) #settings-modal [role="tab"][aria-selected="true"] {
  color: #f0c24b;
  box-shadow: inset 0 0 0 1px #c9a13b;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] {
  gap: 6px !important;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] > * {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 7px 10px !important;
  box-sizing: border-box;
  background: rgba(24, 23, 22, 0.6);
  border: 1px solid #0c0c0c;
  border-radius: 4px;
  font: bold 12px Verdana, Arial, sans-serif;
  line-height: 1.3 !important;
  color: #ece6d6;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] input[type="checkbox"] {
  order: -1;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d9a72c;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] select,
body:not(.force-mobile) #settings-modal [role="tabpanel"] input[type="range"] {
  order: 3;
  flex: 1 1 100%;
  accent-color: #d9a72c;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] select {
  min-height: 26px;
  padding: 0 8px;
}

body:not(.force-mobile) #settings-modal [role="tabpanel"] small {
  order: 4;
  flex: 1 1 100%;
  font: normal 11px/1.4 Verdana, Arial, sans-serif !important;
  color: #a9a294 !important;
}

body:not(.force-mobile) #settings-modal .modal-body > p {
  margin: 10px 0 0;
  text-align: center;
  font: 11px Verdana, Arial, sans-serif !important;
  color: #9a9384;
}
