@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Almendra+SC&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap");
button,
input[type=submit],
input[type=reset] {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.dex-buttons {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.dex-button {
  cursor: pointer;
  border-radius: 24px;
  width: 100%;
  text-align: center;
}
.dex-button--small {
  padding: 0.5rem;
  font-size: 14px;
}
.dex-button--medium {
  padding: 0.5rem 1rem;
}
.dex-button--large {
  padding: 0.75rem 1.5rem;
  font-size: 14px;
}
.dex-button--primary {
  background-color: #0070f3;
  color: white;
  font-weight: 600;
}
.dex-button--primary:active {
  background-color: #79bef0;
}
.dex-button--primary:disabled {
  background-color: #79bef0;
}
.dex-button--primary.dex-button--shadow {
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.15);
}
.dex-button:disabled {
  background-color: #393939;
  cursor: not-allowed;
}

.dex-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dex-checkbox-container > label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dex-checkbox {
  position: relative;
  background-color: white;
  display: inline-flex;
  box-shadow: 2px 2px 0 0 rgba(19, 19, 19, 0.35);
  border-radius: 2px;
  width: 16px;
  height: 16px;
}
.dex-checkbox__input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.dex-checkbox__input:checked ~ .dex-checkbox__checkmark {
  border-color: gray;
}
.dex-checkbox__input:checked ~ .dex-checkbox__checkmark:after {
  display: block;
}
.dex-checkbox__checkmark {
  position: absolute;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}
.dex-checkbox__checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 50%;
  bottom: -1px;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid #262626;
  border-width: 0 2px 2px 0;
}
.dex-checkbox:hover .dex-checkbox__checkmark {
  cursor: pointer;
  background-color: #eee;
}

#expbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#expbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--exp-percent, 0%);
  background: rgb(87, 197, 255);
  transition: width 0.3s ease;
}

/* Container for orbs */
#exp-orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Orb styles */
.exp-orb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgb(197, 255, 22) 0%, rgb(255, 8, 177) 70%);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  /* Start with hover animation */
  animation: fadeIn 0.3s ease forwards, hover 1s ease-in-out infinite, floatToExpBar 2.5s ease-in 0.5s forwards; /* 1s delay before moving */
}

/* Fade in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Hover animation */
@keyframes hover {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}
/* Float to exp bar animation */
@keyframes floatToExpBar {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  90% {
    transform: translate(var(--delta-x), var(--delta-y)) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(var(--delta-x), var(--delta-y)) scale(0);
    opacity: 0;
  }
}
#navigator-menu {
  position: fixed;
  bottom: 30px;
  right: 16px;
  z-index: 1001;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(22, 22, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
#navigator-menu .nav-btn {
  width: 70px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  color: #e9e3d1;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  outline: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#navigator-menu .nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
#navigator-menu .nav-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.08);
}
#navigator-menu .nav-btn:focus-visible {
  outline: 2px solid #37a0ff;
  outline-offset: 1px;
}

#ShortCut {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}
#ShortCut .skillbar {
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
}
#ShortCut .skills-left,
#ShortCut .skills-right {
  display: flex;
}
#ShortCut .container {
  position: relative;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}
#ShortCut .container:hover {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
#ShortCut .container .keybind {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  pointer-events: none;
}
#ShortCut .hp-orb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 0, 0, 0.6), inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
#ShortCut .hp-orb.hp-normal {
  background: radial-gradient(circle at 30% 30%, rgb(220, 20, 60) 0%, rgb(180, 0, 40) 50%, rgb(120, 0, 20) 100%);
  border: 3px solid rgba(220, 20, 60, 0.8);
}
#ShortCut .hp-orb.hp-low {
  background: radial-gradient(circle at 30% 30%, rgb(255, 140, 0) 0%, rgb(200, 100, 0) 50%, rgb(150, 60, 0) 100%);
  border: 3px solid rgba(255, 140, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.7), inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}
#ShortCut .hp-orb.hp-critical {
  background: radial-gradient(circle at 30% 30%, rgb(255, 0, 0) 0%, rgb(200, 0, 0) 50%, rgb(120, 0, 0) 100%);
  border: 3px solid rgba(255, 0, 0, 0.9);
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.8), inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: pulse-critical 1.5s ease-in-out infinite;
}
#ShortCut .hp-orb .hp-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  pointer-events: none;
  letter-spacing: 0.5px;
}
@keyframes pulse-critical {
  0%, 100% {
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.8), inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 32px rgb(255, 0, 0), inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}
#ShortCut .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
#ShortCut .icon .img {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}
#ShortCut .icon .img .delay {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
#ShortCut .icon .name {
  display: none;
  z-index: 1000;
  position: absolute;
  bottom: calc(100% + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  color: #e9e3d1;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
#ShortCut .icon .name::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
}
#ShortCut .icon:hover .name {
  display: block;
}
#ShortCut .icon.hide .name {
  display: none;
}
#ShortCut .icon .amount {
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: white;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  line-height: 1;
}

#WinLogin {
  color: white;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  position: absolute;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  animation: fadeUpBG 0.4s ease-out forwards;
  border: 1px solid #212121;
  background: #2e2e2e;
  min-width: 300px;
  min-height: 200px;
  box-shadow: 0 0 4px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}
@keyframes fadeUpBG {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@media (min-width: 768px) {
  #WinLogin {
    border-radius: 5px;
    bottom: 15% !important;
    width: auto;
  }
}
#WinLogin .dex-header {
  padding-left: 1.5rem;
}
#WinLogin .dex-header > img {
  width: 80px;
}
@media (min-width: 768px) {
  #WinLogin .dex-header > img {
    width: 146px;
  }
}
#WinLogin .login-container-right {
  flex-grow: 1;
}
@media (min-width: 768px) {
  #WinLogin .login-container-right {
    flex-grow: 0;
  }
}
#WinLogin .user-auth {
  padding: 1.5rem;
  width: inherit;
  list-style-type: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#WinLogin .user-auth > label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}
#WinLogin .user-auth > label.save {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
}
#WinLogin .user-auth input[type=text],
#WinLogin .user-auth input[type=password] {
  background-color: #393939;
  color: #fff;
  border: 1px solid #333;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease-in-out;
  padding: 0.75rem;
  border-radius: 8px;
}
#WinLogin .user-auth input[type=text]:hover,
#WinLogin .user-auth input[type=password]:hover {
  cursor: text;
}
#WinLogin .user-auth input[type=text]::placeholder,
#WinLogin .user-auth input[type=password]::placeholder {
  color: #9f9f9f;
}

#DialogueOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: none;
  pointer-events: none;
}
#DialogueOverlay.active {
  display: block;
  pointer-events: all;
  animation: overlayFadeIn 0.3s ease-out forwards;
}
#DialogueOverlay.can-advance {
  cursor: pointer;
}
#DialogueOverlay.cannot-advance {
  cursor: default;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#DialogueBox:has(> *) {
  font-family: "Plus Jakarta Sans", sans-serif;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3);
  background: linear-gradient(#c5b79b, #b3a07b);
  font-size: 20px;
  color: #4b2e14;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: auto;
  min-height: 176px;
  border-radius: 5px;
  line-height: 18px;
  letter-spacing: 0px;
  pointer-events: auto;
  opacity: 0;
  animation: dialogueFadeIn 0.4s ease-out forwards;
}
#DialogueBox:has(> *)::before, #DialogueBox:has(> *)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
#DialogueBox:has(> *)::before {
  border: 2px solid #4b2e14;
  opacity: 0.8;
}
#DialogueBox:has(> *)::after {
  margin: 6px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0.7;
}
#DialogueBox:has(> *) > .content {
  position: relative;
  z-index: 1;
}
#DialogueBox:has(> *) #inputbox {
  order: 2;
  position: relative !important;
  width: calc(100% - 1rem);
  margin: 0.25rem 0.5rem 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(75, 46, 20, 0.45);
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
  box-sizing: border-box;
}
#DialogueBox:has(> *) #inputbox .border {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.25rem;
  border: 0;
  padding: 0;
  box-sizing: border-box;
}
#DialogueBox:has(> *) #inputbox .text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b2e14;
  white-space: nowrap;
  min-width: fit-content;
}
#DialogueBox:has(> *) #inputbox input {
  flex: 1;
  min-width: 0;
  height: 2rem;
  border: 1px solid rgba(75, 46, 20, 0.4);
  border-radius: 3px;
  padding: 0 0.5rem;
  color: #3b2410;
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  box-sizing: border-box;
}
#DialogueBox:has(> *) #inputbox button {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(75, 46, 20, 0.4);
  border-radius: 3px;
  background: rgba(75, 46, 20, 0.12);
  position: static;
  flex-shrink: 0;
  cursor: pointer;
}
#DialogueBox:has(> *) #inputbox.number input {
  max-width: 9rem;
  flex: 0 1 9rem;
}

@keyframes dialogueFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
#NpcBox {
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  position: relative;
  background: none !important;
  padding: 0;
  min-width: 200px;
  flex-grow: 2;
  order: 1;
}
#NpcBox .border {
  display: flex;
  flex-direction: row;
  gap: 0;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 5px;
  flex-grow: 1;
}
#NpcBox .border .portrait {
  width: 150px;
  height: 175px;
  border-radius: 4px;
  flex-shrink: 0;
  order: 1;
  overflow: hidden;
  padding: 0.5rem;
  padding-right: 0;
  background: rgba(75, 46, 20, 0.1);
  position: relative;
}
#NpcBox .border .portrait:not(:has(img))::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(75, 46, 20, 0.2);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b2e14' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.3;
  animation: portraitPulse 1.5s ease-in-out infinite;
}
@keyframes portraitPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}
#NpcBox .border .portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
#NpcBox .content {
  display: flex !important;
  flex-direction: column;
  white-space: pre-wrap;
  width: 100% !important;
  height: 100% !important;
  background: none !important;
  overflow-y: auto;
  padding: 0.5rem 1rem 3rem 0.5rem !important;
  order: 2;
}
#NpcBox .content span {
  margin-right: 4px;
  line-height: 1.25;
}
#NpcBox .content span:last-child {
  margin-right: 0;
}
#NpcBox .content h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  border-bottom: 1px solid #4b2e14;
  margin: 0 0 12px 0;
  width: 100%;
}
#NpcBox .btn {
  border: 0;
  background-repeat: no-repeat;
  background-color: transparent;
  display: none;
}
#NpcBox .close {
  position: absolute;
  top: 16px;
  right: 16px;
}
#NpcBox .next {
  position: absolute;
  bottom: 16px;
  right: 16px;
}

#NpcMenu {
  flex-grow: 1;
  order: 2;
  background: none !important;
  pointer-events: auto;
  opacity: 0;
  animation: menuFadeIn 0.25s ease-out forwards;
}
#NpcMenu hr {
  border: none;
  border-top: 1px solid #4b2e14;
  margin: 0.5rem 0;
}
#NpcMenu .content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  align-items: left;
  justify-content: center;
  height: auto;
  padding: 0 0.5rem;
}
#NpcMenu .content > button {
  padding: 0.5rem;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: border 0.1s ease;
}
#NpcMenu .content > button:hover, #NpcMenu .content > button.selected {
  border: 2px solid #4b2e14 !important;
  background: rgba(75, 46, 20, 0.05);
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#Inventory {
  position: absolute;
  max-width: 31.25rem;
  max-height: 18.75rem;
  width: calc(23.4375rem - 40px);
  min-height: 6.25rem;
  top: 6.25rem;
  left: 6.25rem;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  color: #352d24;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#Inventory .drag-header, #Inventory .drag-footer {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  z-index: 1;
  background: none;
}
#Inventory .drag-header {
  top: 0;
}
#Inventory .drag-footer {
  bottom: 0;
}
#Inventory table {
  border-spacing: 0;
  display: inline-block;
}
#Inventory .titlebar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  padding: 0 1rem;
  height: 2rem;
  background-color: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(197, 163, 83, 0.35);
}
#Inventory .titlebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0, #37a0ff 10%, #37a0ff 90%, transparent 100%);
  opacity: 0.7;
}
#Inventory .titlebar .title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #e9e3d1;
}
#Inventory .titlebar .capacity {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  gap: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}
#Inventory .titlebar .capacity .ncnt, #Inventory .titlebar .capacity .mcnt {
  font-variant-numeric: tabular-nums;
}
#Inventory .titlebar .controls {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}
#Inventory .titlebar .controls .base {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  color: #e9e3d1;
}
#Inventory .titlebar .controls .mini::before {
  content: "–";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  font-size: 0.9rem;
}
#Inventory .titlebar .controls .close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  font-size: 0.95rem;
}
#Inventory .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-grow: 2;
  width: 98%;
  background: rgba(12, 12, 12, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 12px rgba(0, 0, 0, 0.45);
}
#Inventory .inventory-layout {
  background: rgba(22, 22, 22, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 89%;
  border-left: 0;
  border-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}
#Inventory .toolbar {
  width: 100%;
  padding: 0.5rem 1rem 0.25rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}
#Inventory .toolbar .search {
  width: 60%;
  padding: 0.125rem 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  color: #eaeaea;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.75rem;
}
#Inventory .toolbar .search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
#Inventory .tabs-column {
  position: relative;
}
#Inventory .tabs-column .tabs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.25rem;
  position: absolute;
  top: 10px;
  left: -63px;
  padding: 0 0.5rem;
}
#Inventory .tabs-column .tabs .tab {
  all: unset;
  display: inline-block;
  cursor: pointer;
  background-color: #c5ad92;
  font-size: 0.75rem;
  padding: 0 0.5rem;
  line-height: 1.5rem;
  box-shadow: 0px 2px 0 0 rgba(0, 0, 0, 0.5);
}
#Inventory .tabs-column .tabs .tab:focus {
  outline: 0;
}
#Inventory .tabs-column .tabs .tab:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
#Inventory .tabs-column .tabs .tab:hover {
  background-color: #bda181;
}
#Inventory .main-column {
  flex-grow: 1;
}
#Inventory .container {
  display: flex;
  flex-grow: 1;
  height: 100%;
}
#Inventory .ff_bugfix {
  display: flex;
  flex-grow: 1;
  position: relative;
  width: 100%;
  height: 100%;
}
#Inventory .hide {
  height: 100%;
  width: 1rem;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.25);
}
#Inventory .content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  align-items: flex-start;
  row-gap: 0.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-top: 4px solid #352d24;
}
#Inventory .inventory-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  flex-grow: 2;
  width: 100%;
  max-height: 8.75rem;
  max-width: 30.75rem;
  padding: 0.5rem;
  gap: 0.5rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) rgba(255, 255, 255, 0.06);
}
#Inventory .inventory-grid .item {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
}
#Inventory .inventory-grid .item::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
#Inventory .inventory-grid .item[data-index=empty] {
  background-color: rgba(255, 255, 255, 0.015);
  border-style: dashed;
  opacity: 0.6;
}
#Inventory .inventory-grid .item[data-index=empty]::before {
  opacity: 0.3;
}
#Inventory .inventory-grid .item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
#Inventory .inventory-grid .item:hover .icon {
  background-size: 110%;
}
#Inventory .inventory-grid .item .icon {
  width: 80%;
  height: 80%;
  background-repeat: no-repeat;
  background-color: transparent;
  background-size: cover;
  background-size: 100%;
  background-position: center;
  border-radius: 2px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  transition: background-size 0.2s ease-in-out, filter 0.15s ease-in-out;
}
#Inventory .inventory-grid .item .amount {
  color: white;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: -2px;
  right: 0;
  font-size: 0.6875rem;
  text-align: right;
}
#Inventory .inventory-grid .rarity-basic {
  border-color: rgba(229, 229, 229, 0.45);
  box-shadow: 0 0 6px rgba(229, 229, 229, 0.15);
}
#Inventory .inventory-grid .rarity-fine {
  border-color: rgba(74, 163, 255, 0.9);
  box-shadow: 0 0 6px rgba(74, 163, 255, 0.35);
}
#Inventory .inventory-grid .rarity-masterwork {
  border-color: rgba(107, 214, 107, 0.9);
  box-shadow: 0 0 6px rgba(107, 214, 107, 0.35);
}
#Inventory .inventory-grid .rarity-rare {
  border-color: rgba(255, 207, 53, 0.9);
  box-shadow: 0 0 6px rgba(255, 207, 53, 0.35);
}
#Inventory .inventory-grid .rarity-exotic {
  border-color: rgba(255, 164, 58, 0.9);
  box-shadow: 0 0 6px rgba(255, 164, 58, 0.35);
}
#Inventory .inventory-grid .rarity-ascended {
  border-color: rgba(255, 106, 165, 0.9);
  box-shadow: 0 0 6px rgba(255, 106, 165, 0.35);
}
#Inventory .inventory-grid .rarity-legendary {
  border-color: rgba(177, 118, 255, 0.9);
  box-shadow: 0 0 6px rgba(177, 118, 255, 0.35);
}
#Inventory .inventory-grid::-webkit-scrollbar { /* Chrome/Safari/Edge */
  width: 10px;
  height: 10px;
}
#Inventory .inventory-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
#Inventory .inventory-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.18));
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
#Inventory .inventory-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.22));
}
#Inventory .inventory-grid::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #37a0ff, #0488ff);
  border-color: rgba(0, 0, 0, 0.8);
}
#Inventory .inventory-grid::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
#Inventory .inventory-grid::-webkit-scrollbar-corner {
  background: transparent;
}
#Inventory .overlay {
  position: absolute;
  display: none;
  white-space: nowrap;
  z-index: 900;
  height: 0.75rem;
  line-height: 0.75rem;
  padding: 0.25rem;
  border-radius: 0.1875rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-shadow: 1px 1px black;
}
#Inventory .overlay.grey {
  color: #aaa;
}
#Inventory .footer {
  position: relative;
  width: 100%;
  background-color: rgba(15, 15, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 0 rgba(197, 163, 83, 0.35);
  padding: 0.5rem 1rem;
}
#Inventory .footer .currency {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
#Inventory .footer .currency .currency-item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}
#Inventory .footer .currency .currency-item .icon {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
#Inventory .footer .currency .currency-item .value {
  font-variant-numeric: tabular-nums;
}
#Inventory .footer .resize-handle {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  border-radius: 3px;
  background: linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.25) 40% 42%, transparent 42% 60%, rgba(255, 255, 255, 0.18) 60% 62%, transparent 62%);
  opacity: 0.8;
}

#basicinfo {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  min-height: 210px;
  font-size: 13px;
  background: rgba(22, 22, 22, 0.85);
  color: #e9e3d1;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
  /* REDUCED */
}
#basicinfo.small {
  height: 53px;
}
#basicinfo.small .large {
  display: none;
}
#basicinfo.large .small {
  display: none;
}
#basicinfo .topbar {
  background-color: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(197, 163, 83, 0.35);
  position: relative;
  height: 34px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  box-sizing: border-box;
}
#basicinfo .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0, #37a0ff 10%, #37a0ff 90%, transparent 100%);
  opacity: 0.7;
}
#basicinfo .topbar .left,
#basicinfo .topbar .right {
  position: absolute;
  top: 10px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  transition: background 0.2s;
}
#basicinfo .topbar .left:hover,
#basicinfo .topbar .right:hover {
  background: rgba(255, 255, 255, 0.12);
}
#basicinfo .topbar .left {
  left: 12px;
}
#basicinfo .topbar .right {
  right: 12px;
}
#basicinfo .large {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 1fr;
  grid-row-gap: 0.25rem;
}
#basicinfo .large .title {
  font-weight: bold;
  font-size: 18px;
  color: #e9e3d1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding-top: 2px;
}
#basicinfo .large .name,
#basicinfo .large .job {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 2px;
  margin-left: 0;
}
#basicinfo .large .job {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 8px;
}
#basicinfo .large .hp_title,
#basicinfo .large .sp_title {
  display: inline-block;
  width: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: bold;
  margin-right: 4px;
  vertical-align: middle;
}
#basicinfo .large .hp_bar,
#basicinfo .large .sp_bar {
  display: inline-block;
  vertical-align: middle;
  width: 120px;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-right: 6px;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
#basicinfo .large .hp_bar div,
#basicinfo .large .sp_bar div {
  height: 100%;
  border-radius: 9px 0 0 9px;
  transition: width 0.3s;
}
#basicinfo .large .hp_bar {
  margin-bottom: 6px;
}
#basicinfo .large .sp_bar {
  margin-bottom: 10px;
}
#basicinfo .large .hp_bar div {
  background: linear-gradient(90deg, #e57373 60%, #c0392b 100%);
}
#basicinfo .large .sp_bar div {
  background: linear-gradient(90deg, #81c784 60%, #388e3c 100%);
}
#basicinfo .large .hp_bar_perc,
#basicinfo .large .sp_bar_perc {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-size: 13px;
  color: #e9e3d1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#basicinfo .large .hp_perc,
#basicinfo .large .sp_perc {
  display: inline-block;
  width: 44px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  text-align: right;
  margin-left: 2px;
  vertical-align: middle;
}
#basicinfo .large .row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
#basicinfo .large .blvl,
#basicinfo .large .jlvl {
  display: inline-block;
  color: #e9e3d1;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  margin-right: 8px;
}
#basicinfo .large .bexp,
#basicinfo .large .jexp {
  display: inline-block;
  vertical-align: middle;
  width: 120px;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
#basicinfo .large .bexp div,
#basicinfo .large .jexp div {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffe082 60%, #fbc02d 100%);
  border-radius: 5px 0 0 5px;
  transition: width 0.3s;
}
#basicinfo .large .extra {
  margin-top: 8px;
  color: #e9e3d1;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 8px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  text-align: right;
}
#basicinfo.small {
  padding: 8px 12px 8px 12px;
}
#basicinfo.small .line1,
#basicinfo.small .line2,
#basicinfo.small .line3 {
  display: block;
  color: #4b2e13;
  font-size: 13px;
  text-shadow: 1px 1px 0 #fffbe6;
  margin-bottom: 2px;
}
#basicinfo.small .line1 {
  margin-top: 2px;
}

#WinStatsV1 {
  color: #e9e3d1;
  border-radius: 6px;
  padding: 1rem;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  min-width: 320px;
  max-width: 380px;
}
#WinStatsV1 .char-header {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#WinStatsV1 .char-header .char-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  margin-bottom: 4px;
}
#WinStatsV1 .char-header .char-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
#WinStatsV1 .vitals {
  margin-bottom: 12px;
}
#WinStatsV1 .vitals .vital-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
#WinStatsV1 .vitals .vital-row .vital-label {
  font-weight: 700;
  font-size: 11px;
  min-width: 22px;
  color: rgba(255, 255, 255, 0.85);
}
#WinStatsV1 .vitals .vital-row .vital-bar {
  flex: 1;
  height: 18px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  transition: width 0.3s ease;
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.hp-fill.normal {
  background: linear-gradient(90deg, #44d944, #2eb82e);
  box-shadow: 0 0 8px rgba(68, 217, 68, 0.4);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.hp-fill.low {
  background: linear-gradient(90deg, #ffa500, #ff8c00);
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.4);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.hp-fill.critical {
  background: linear-gradient(90deg, #ff4444, #cc0000);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.sp-fill {
  background: linear-gradient(90deg, #4488ff, #2266dd);
  box-shadow: 0 0 8px rgba(68, 136, 255, 0.4);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.sp-fill.low {
  background: linear-gradient(90deg, #6666ff, #4444cc);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-fill.sp-fill.critical {
  background: linear-gradient(90deg, #8844ff, #6622cc);
}
#WinStatsV1 .vitals .vital-row .vital-bar .vital-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
#WinStatsV1 .exp-bars {
  margin-bottom: 12px;
}
#WinStatsV1 .exp-bars .exp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
#WinStatsV1 .exp-bars .exp-row .exp-label {
  font-size: 10px;
  font-weight: 600;
  min-width: 60px;
  color: rgba(255, 255, 255, 0.65);
}
#WinStatsV1 .exp-bars .exp-row .exp-bar {
  flex: 1;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
#WinStatsV1 .exp-bars .exp-row .exp-bar .exp-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #9966ff, #7744cc);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(153, 102, 255, 0.3);
}
#WinStatsV1 .exp-bars .exp-row.jexp .exp-bar .exp-fill {
  background: linear-gradient(90deg, #66ccff, #4499dd);
  box-shadow: 0 0 6px rgba(102, 204, 255, 0.3);
}
#WinStatsV1 .exp-bars .exp-row .exp-percent {
  font-size: 10px;
  min-width: 36px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
#WinStatsV1 .primary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
#WinStatsV1 .primary-stats .row {
  display: grid;
  grid-template-columns: 24px 18px 18px;
  align-items: center;
  gap: 4px;
  padding: 4px 5px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
#WinStatsV1 .primary-stats .row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}
#WinStatsV1 .primary-stats .label {
  font-weight: 700;
  font-size: 11px;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#WinStatsV1 .primary-stats .val {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8);
  min-width: 28px;
}
#WinStatsV1 .primary-stats .bonus {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: rgba(100, 255, 100, 0.85);
  text-shadow: 0 0 6px rgba(100, 255, 100, 0.3), 0 1px 2px rgba(0, 0, 0, 0.8);
  min-width: 32px;
}
#WinStatsV1 .primary-stats .bonus:empty::before {
  content: "+0";
  opacity: 0.3;
}
#WinStatsV1 .primary-stats button.up {
  background: linear-gradient(135deg, rgba(55, 160, 255, 0.15), rgba(55, 160, 255, 0.05));
  border: 1.5px solid rgba(55, 160, 255, 0.4);
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
  color: #5db9ff;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 rgba(55, 160, 255, 0);
}
#WinStatsV1 .primary-stats button.up:hover {
  background: linear-gradient(135deg, rgba(55, 160, 255, 0.3), rgba(55, 160, 255, 0.15));
  border-color: rgba(55, 160, 255, 0.7);
  color: #8dd4ff;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(55, 160, 255, 0.4);
}
#WinStatsV1 .primary-stats button.up:active {
  transform: scale(0.95);
}
#WinStatsV1 .primary-stats button.up:focus-visible {
  outline: 2px solid #37a0ff;
  outline-offset: 2px;
}
#WinStatsV1 .primary-stats .cost {
  font-size: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  min-width: 22px;
}
#WinStatsV1 .primary-stats .cost::before {
  content: "(";
  opacity: 0.5;
}
#WinStatsV1 .primary-stats .cost::after {
  content: ")";
  opacity: 0.5;
}
#WinStatsV1 .derived-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-size: 13px;
  padding: 8px;
}
#WinStatsV1 .derived-stats > div {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
  transition: background 0.2s ease;
}
#WinStatsV1 .derived-stats > div:hover {
  background: rgba(255, 255, 255, 0.04);
}
#WinStatsV1 .derived-stats > div strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  min-width: 48px;
}
#WinStatsV1 .derived-stats .bonus {
  font-weight: 600;
  color: rgba(100, 255, 100, 0.75);
  margin-left: 2px;
}
#WinStatsV1 .derived-stats .atak, #WinStatsV1 .derived-stats .def, #WinStatsV1 .derived-stats .hit, #WinStatsV1 .derived-stats .flee {
  color: #ff9966;
  font-weight: 700;
}
#WinStatsV1 .derived-stats .matak, #WinStatsV1 .derived-stats .mdef {
  color: #99ccff;
  font-weight: 700;
}
#WinStatsV1 .derived-stats .critical {
  color: #ffcc66;
  font-weight: 700;
}
#WinStatsV1 .derived-stats .aspd {
  color: #cc99ff;
  font-weight: 700;
}
#WinStatsV1 .derived-stats .statuspoint {
  color: #66ff99;
  font-weight: 700;
  font-size: 14px;
}
#WinStatsV1 .derived-stats .guildname {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}
#WinStatsV1 .stats-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
#WinStatsV1 .stats-footer .footer-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
#WinStatsV1 .stats-footer .footer-item .footer-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
#WinStatsV1 .stats-footer .footer-item.weight[style*="color: red"] .weight_value, #WinStatsV1 .stats-footer .footer-item.weight[style*="color:red"] .weight_value {
  color: #ff6666 !important;
  font-weight: 700;
}
#WinStatsV1 .stats-footer .zeny_value {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}
#WinStatsV1 .stats-footer .weight_value,
#WinStatsV1 .stats-footer .weight_total {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

#EquipmentV1 {
  position: absolute;
  font-size: 13px;
  width: 340px;
  background: rgba(22, 22, 22, 0.85);
  color: #e9e3d1;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow: visible;
  box-sizing: border-box;
}
#EquipmentV1 .clear {
  clear: both;
}
#EquipmentV1 .titlebar {
  width: 100%;
  height: 34px;
  background-color: rgba(15, 15, 15, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(197, 163, 83, 0.35);
  position: relative;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-sizing: border-box;
}
#EquipmentV1 .titlebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0, #37a0ff 10%, #37a0ff 90%, transparent 100%);
  opacity: 0.7;
}
#EquipmentV1 .titlebar .left, #EquipmentV1 .titlebar .right {
  display: flex;
  align-items: center;
  gap: 8px;
}
#EquipmentV1 .titlebar .text {
  font-size: 18px;
  font-weight: 700;
  color: #e9e3d1;
  text-shadow: 0 1 px 0 rgba(0, 0, 0, 0.7);
  letter-spacing: 0.5px;
  font-family: "Cinzel", serif;
  margin-left: 6px;
  margin-right: 6px;
  width: auto;
  height: auto;
  display: inline-block;
}
#EquipmentV1 .titlebar .base {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  transition: background 0.2s;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #e9e3d1;
}
#EquipmentV1 .titlebar .base:hover {
  background: rgba(255, 255, 255, 0.12);
}
#EquipmentV1 .titlebar .base:focus-visible {
  outline: 2px solid #37a0ff;
  outline-offset: 1px;
}
#EquipmentV1 .titlebar .base.mini::before {
  content: "–";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  font-size: 0.9rem;
}
#EquipmentV1 .titlebar .base.close::before {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  font-size: 0.95rem;
}
#EquipmentV1 .tab-manager {
  width: 100%;
  background: transparent;
  height: 36px;
  display: flex;
  border-radius: 0 0 6px 6px;
  padding: 0 0.5rem;
  box-sizing: border-box;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#EquipmentV1 .tab-manager .tab a {
  width: 90px;
  height: 28px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: -1px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#EquipmentV1 .tab-manager .tab a.selected, #EquipmentV1 .tab-manager .tab a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.2);
}
#EquipmentV1 .panel {
  background: rgba(22, 22, 22, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: 0 0 6px 6px;
  padding: 12px 1rem 18px 1rem;
  box-sizing: border-box;
}
#EquipmentV1 table.content {
  width: 100%;
  min-height: 160px;
  border-spacing: 0;
  margin-bottom: 10px;
  background: none;
}
#EquipmentV1 table.content.hide {
  display: none;
}
#EquipmentV1 .col1, #EquipmentV1 .col3 {
  width: 110px;
  height: 32px;
  background: transparent;
  border-radius: 6px;
  padding: 2px 4px;
  box-sizing: border-box;
}
#EquipmentV1 .col1:empty, #EquipmentV1 .col3:empty {
  position: relative;
  padding-left: 36px;
  align-items: center;
  min-height: 32px;
}
#EquipmentV1 .col1:empty::before, #EquipmentV1 .col3:empty::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
#EquipmentV1 .col1:empty::after, #EquipmentV1 .col3:empty::after {
  content: attr(data-slot);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  white-space: nowrap;
}
#EquipmentV1 .col2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 0;
}
#EquipmentV1 .overlay {
  position: absolute;
  display: none;
  white-space: nowrap;
  z-index: 900;
  height: 20px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-shadow: 1px 1px black;
  border-radius: 4px;
  font-size: 13px;
}
#EquipmentV1 .item button {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: 100%;
}
#EquipmentV1 .footer {
  height: 32px;
  background-color: rgba(15, 15, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 0 rgba(197, 163, 83, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  border-radius: 0 0 6px 6px;
  margin-top: 8px;
  font-size: 13px;
}
#EquipmentV1 .footer .left, #EquipmentV1 .footer .right {
  display: flex;
  align-items: center;
  gap: 6px;
}
#EquipmentV1 .footer button {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#EquipmentV1 .footer button:hover {
  background: rgba(255, 255, 255, 0.12);
}
#EquipmentV1 .footer span {
  color: #e9e3d1;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}
#EquipmentV1 .status_component {
  margin-top: 10px;
}
#EquipmentV1 #lvlup_base {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #e57373;
  border-radius: 50%;
  position: absolute;
  bottom: 12px;
  right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#EquipmentV1 #lvlup_base:hover {
  background: #ff8a8a;
}

#MinigameUI {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  font-family: Arial, sans-serif;
}

#MinigameUI.active {
  display: block;
}

.minigame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: none;
}

.minigame-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: 90vw;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.minigame-header {
  display: none;
}

.minigame-title {
  display: none;
}

.minigame-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
  z-index: 10001;
  opacity: 0.7;
}

.minigame-close:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
  opacity: 1;
}

.minigame-content {
  background: transparent;
  padding: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.minigame-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  color: white;
  text-align: center;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.minigame-info {
  font-size: 14px;
  opacity: 0.9;
}

/* Game-specific styles */
.game-instruction {
  font-size: 18px;
  color: white;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 16px 24px;
  border-radius: 8px;
}

.game-action-button {
  background: rgba(102, 126, 234, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.game-action-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.game-action-button:active:not(:disabled) {
  transform: translateY(0);
}

.game-action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.game-score {
  font-size: 48px;
  font-weight: bold;
  color: #667eea;
  margin: 20px 0;
}

.game-timer {
  font-size: 32px;
  font-weight: bold;
  color: #764ba2;
  margin: 15px 0;
}

.game-result {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.game-result.success {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.5);
}

.game-result.failure {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.5);
}

.game-result h3 {
  font-size: 36px;
  margin: 0 0 10px 0;
}

.game-result p {
  font-size: 18px;
  margin: 10px 0;
}

/* Progress bar */
.game-progress {
  width: 100%;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.game-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.1s linear;
}

#MainCanvas {
  position: relative;
}

#MainCanvasOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
#MainCanvasOverlay.start-screen {
  background: #2e2e2e;
}
#MainCanvasOverlay.start-screen::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background: url("/static/img/mana-overlook.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  animation: move-bg 30s infinite alternate linear;
}
@media (min-width: 1400px) {
  #MainCanvasOverlay.start-screen::before {
    background-size: 110%;
  }
}
@keyframes move-bg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50% 0;
  }
}
#MainCanvasOverlay.start-screen::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  display: none;
  background: url("/static/img/cliff-overlay.png");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeUpOverlay 0.4s ease-out forwards;
}
@keyframes fadeUpOverlay {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 768px) {
  #MainCanvasOverlay.start-screen::after {
    display: block;
  }
}

@keyframes sunsetToNight {
  0% {
    background: rgba(255, 255, 255, 0);
  }
  20% {
    background: rgba(177, 82, 23, 0.1);
  }
  40% {
    background: rgba(142, 51, 50, 0.2);
  }
  60% {
    background: rgba(70, 43, 87, 0.35);
  }
  100% {
    background: rgba(30, 16, 51, 0.4);
  }
}
button,
input[type=button],
input[type=reset],
input[type=submit] {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  appearance: none;
}
button:focus,
input[type=button]:focus,
input[type=reset]:focus,
input[type=submit]:focus {
  outline: none;
}

#basicinfo {
  display: none;
}

#chatbox {
  position: absolute;
  bottom: 20px;
  left: 0;
  top: auto;
}

/*# sourceMappingURL=index.css.map */
