.height-64 {
  height: 64px !important;
}


.underline-dots, .underline-premium-dots {
  text-decoration: underline dotted;
  text-underline-offset: 3px; /* Adjust the offset as needed */
  text-decoration-thickness: .003rem;
  cursor: pointer;
}

.underline-dots{
  text-decoration-color: #b3cce3;
}

.underline-premium-dots{
  text-decoration-color: #c9b3e3;
}

.underline-dots:hover {
  color: var(--amber);
  text-decoration-color: #b3cce3;
  transition: color 0.3s ease-in-out, text-decoration-color 0.3s ease-in-out;
}

.underline-premium-dots:hover {
  color: #d17dff;
  text-decoration-color: #c9b3e3;
  transition: color 0.3s ease-in-out, text-decoration-color 0.3s ease-in-out;
}

.underline-dots::after{
  border-bottom: 1px dotted #b3cce3;
}

.underline-premium-dots::after{
  border-bottom: 1px dotted #c9b3e3;
}


.desktop-display-rpg {
  grid-row: 1;
  grid-column: 2;
}
.hide-desktop {
  display: none !important;
}

@keyframes amberGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 99, 71, 0.4);
    transform: scale(1.0);
  }
  50% {
    box-shadow: 0 4px 16px rgba(255, 191, 0, 0.8);
    transform: scale(1.2);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 99, 71, 0.4);
    transform: scale(1.0);
  }
}
.rpg-overlay.open {
  display: grid;
  width: 100vw; /* Full width when open */
  height: calc(100vh + 100px);

}
.rpg-overlay-close {
  padding: 0;
  margin: 0;
}
.rpg-overlay {
  overflow-y: auto; /* Enable vertical scrolling */
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  justify-items: center;
  will-change: width;
  background-color: rgba(14, 18, 26, 0.95);
}



#rpgHamburger {
  font-size: 44px;
  width: 40px;
  height: 32px;
  grid-column: 5;
  justify-content: center;
  align-items: center;
  margin: auto;
  display: flex;
  justify-self: flex-end;
  padding: 0;
  color: var(--ivory-cream);
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.5s ease, transform 0.3s ease-in-out, box-shadow 0.1s ease-in-out;
}
#rpgHamburger:hover {
  color: var(--amber);
  box-shadow: inset 0px 2px 3px rgba(0, 0, 0, 0.6);
}


.toggle-section {
  display: none;
}
/* .arrow {
  display: none;
} */

.arrow {
  position: fixed;
  top: 175px;
  right: -140px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--amber);
  padding: 10px;
  width: 115px;
  height: 115px;
  background-color: rgba(10, 38, 73, 0.0);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 191, 0, 0.8);
  transition: right 0.5s ease, background-color 0.5s ease;
  transform: translateZ(0);
  will-change: top, right, transform;
  z-index: 8;
}
.arrow.visible:hover, .arrow:hover img {
  background-color: rgba(0, 128, 255, 0.4);
  transform: scale(1.1);
  transition: transform .6s ease-in-out;
}
.arrow img {
  width: 115px;
  height: 115px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
      background: linear-gradient(to bottom right, #4682b4, #c0c0c0);
      padding: 2px;
      box-shadow: 0 0 10px rgba(70, 130, 180, 0.4), 0 0 8px rgba(192, 192, 192, 0.4);
      background-clip: padding-box;
      transition: transform .6s ease-in-out;
}
.arrow.visible {
  right: 25px;
  animation: amberGlow 5s ease-in-out infinite;
  visibility: visible;

}
.arrow.blue {
  background-color: rgba(0, 128, 255, 0.4);
}

@keyframes burstEffect {
  0% {
    box-shadow: 0 0 24px rgba(0, 128, 255, 0.4), 0 0 32px rgba(0, 128, 255, 0.4);
    background-color: rgba(0, 128, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 32px rgba(0, 128, 255, 0.8), 0 0 48px rgba(0, 128, 255, 0.8);
    background-color: rgba(0, 128, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 24px rgba(0, 128, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.6);
  }
}

.arrow.burst {
  animation: burstEffect 2s forwards; 
  
}

.arrow.blue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(70, 130, 180, 0.4);
  border-radius: 50%;
  animation: flashOverlay 0.4s forwards;
}

#rpgIntroModal{
  z-index: 13;
  justify-items: center;  
}
.rpg-profile {
  height: 908px;
  width: 450px;
  max-height: unset;
  overflow-y: auto;
  z-index: 8;
  padding: 0;
  margin: unset;
  grid-row: unset;
  grid-column: unset;
  justify-items: center;
  max-width: unset;
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #ffc107, #b36800);
  border-image-slice: 1;
  
  box-shadow: inset 0 0 10px rgba(255, 193, 7, 0.5);
}
.rpg-picture img {
  width: 160px;
}
.rpg-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  gap: 0px 8px;
  align-items: start;
  grid-column: 1;
  grid-row: 2;
  border-bottom: none;
  width: 100%;
}

.character-class-modal {
  position: fixed;
  width: auto;
  height: auto;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  color: var(--ivory-cream);
  text-transform: uppercase;
  z-index: 9;
  flex-direction: column;
}
.character-class-modal.hidden {
  display: none;
}
.character-class-modal-content {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 120px 320px 320px auto;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 30%, transparent), linear-gradient(to top, #2c3f5b, #1b2c42, #4b9b8a, #0e121a);
  background-size: 400% 400%;
  animation: gradient-shift 16s ease infinite;
  padding: 20px;
  border: 2px solid var(--amber);
  width: 450px;
  height: auto;
  margin: auto 0;
  text-align: center;
  overflow: visible;
}
.change-character-choose-h2 {
  font-family: "Cinzel-Regular", serif;
  color: var(--golden-sand);
  grid-row: 1;
  grid-column: 1 / -1;
  align-self: end;
  margin: 0 0 12px;
  font-size: 28px;
  padding: 0 32px;
}
#change-character-selection-section {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 80px 80px 80px;
  justify-items: center;
}
.change-character-choose-h3 {
  grid-row: 1;
  grid-column: 1 / -1;
  padding: 0;
  font-size: 1.2rem;
}
#class-selection-header {
  grid-row: 1;
  grid-column: 1 / -1;
  font-size: 1.2rem;
  margin: auto;
}
#change-class-selection-section {
  grid-row: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 80px 80px 80px 80px;
}
#class-options-container {
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  justify-items: center;
}
.close-button {
  grid-row: 1;
  grid-column: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: right;
  width: 28px;
  height: 28px;
  padding: 0 0 4px;
  background: linear-gradient(180deg, var(--deep-red), rgb(75, 0, 0));
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--antiflash-white);
  border-radius: 5px;
  cursor: pointer;
  font-size: 32px;
  font-weight: 600;
  text-align: center;
}
#confirm-character-class {
  grid-row: 4;
  grid-column: 1 / -1;
  margin: 40px 5% 0;
  background: linear-gradient(to bottom, #5b1818, #0e121a);
  color: var(--golden-sand);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  padding: 10px 16px;
  height: 60px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}
#confirm-character-class.disabled {
  background: linear-gradient(
    to bottom,
    #1a1a1a,
    #333
  );
  color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.change-character-option-button {
  display: grid;
  justify-self: center;
  justify-items: center;
  align-items: center;
  background: linear-gradient(to bottom, #ff7300, #ffc107);
  color: var(--rich-black);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #ff7300);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  padding: 12px 16px;
  height: unset;
  width: 90%;
}
.change-class-option-button {
  display: grid;
  grid-template-columns: 0.1fr 2fr;
  grid-column: 1 / -1;
  justify-self: center;
  justify-items: stretch;
  align-items: center;
  background: linear-gradient(to bottom, #ff7300, #ffc107);
  color: var(--rich-black);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #ff7300);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  margin: 8px auto;
  text-align: center;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  padding: 8px 8px;
  height: 64px;
  width: 90%;
}
.change-class-option-button .profile-icon {
  grid-row: 1;
  grid-column: 1;
  width: 28px;
  height: 28px;
  margin: 0 0 0 0;
  padding: 0;
  justify-self: right;
  align-self: center;
  background-size: cover;
  background-position: center;
}
.class-name-change {
  grid-row: 1;
  grid-column: 2;
  text-align: center;
  margin: 0 0 0 -24px;
}
.change-class-option-button #text {
  grid-column: 2;
}
.change-character-option-button:hover,
.change-class-option-button:hover {
  background: linear-gradient(
    to bottom,
    #ff9c33,
    #ffc107
  );
  border-image: linear-gradient(
    to bottom,
    #ffd700,
    #ff7300
  );
  border-image-slice: 1;
  color: var(--rich-black);
  transform: scale(1.05);
  box-shadow: 0px 4px 6px rgba(255, 165, 0, 0.4),
    0px 0px 12px rgba(255, 140, 0, 0.5);
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}
.change-character-option-button.selected,
.change-class-option-button.selected {
  background: linear-gradient(
    to bottom,
    #ff4500,
    #ff7300
  );
  border: 2px solid #ff4500;
  color: var(--rich-black);
  box-shadow: 0px 4px 8px rgba(255, 69, 0, 0.6),
    0px 0px 14px rgba(255, 115, 0, 0.6);
  transform: scale(1.06);
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}
.menu-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 30%, transparent), linear-gradient(to top, #2c3f5b, #1b2c42, #4b9b8a, #0e121a);
  background-size: 400% 400%;
  animation: gradient-shift 16s ease infinite;
  border: 2px solid var(--amber);
  border-radius: 4px;
  padding: 20px;
  z-index: 100;
  width: 100%;
  max-width: 400px;
  display: flex;
  height: auto;
  flex-direction: column;
  align-items: center;
}
#rpg-class-name {
  color: var(--amber);
}
.slot img,
.equipped-slot img {
  cursor: pointer;
}
.health-bar,
.mana-bar {
  margin: 0 auto 6px;
  width: 80%;
}
.health-bar .health-bar-fill {
  grid-column: 1 / span 2;
  width: 75%;
  height: 100%;
  transition: width 0.5s ease-in-out;
  border-radius: 4px;
  z-index: 6;
}
.bar-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: auto;
  z-index: 6;
}
.bar-text p {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 16px;
  font-size: 12px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  color: #f0e6d2;
  font-weight: 400;
  padding: 0 0 0 8px;
  margin: auto;
  text-transform: uppercase;
  z-index: 6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.mana-bar .mana-bar-fill {
  grid-column: 1 / span 2;
  width: 60%;
  height: 100%;
  transition: width 0.5s ease-in-out;
  border-radius: 4px;
}
.health-bar .health-bar-fill,
.mana-bar .mana-bar-fill {
  transition: width 0.3s ease, background-color 0.3s ease;
}
.health-bar,
.mana-bar {
  position: relative;
  box-shadow: 0px 0px 5px rgba(255, 153, 0, 0.4);
}
.health-bar::after,
.mana-bar::after {
  content: attr(data-percentage) "%";
  position: absolute;
  right: 10px;
  color: #f0e6d2;
  font-size: 12px;
  top: 50%;
  text-align: left;
  transform: translateY(-50%);
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.experience-bar {
  padding: 10px;
}
.experience-needed {
  padding: 8px 20px 0;
}
.bar-container {
  height: 16px;
}
#talent-tooltip,
.talent-slot {
  touch-action: manipulation;
}
.scroll-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}
#inventory {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(28px, 48px));
  grid-template-rows: repeat(4, minmax(28px, 48px));
  justify-items: stretch;
  justify-content: center;
  padding: 4px;
  gap: 4px;
}
#toggle-buttons button:hover {
  background: linear-gradient(
    180deg,
    #333333,
    #1b1b1b
  );
  border-image: linear-gradient(
    to bottom,
    #ffd700,
    #b38d3c
  );
  border-image-slice: 1;
  color: #ffffff;
  text-shadow: 0px 4px 8px rgba(255, 215, 0, 0.5);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.6);
}
.active-section-button:hover {
  background: linear-gradient(
    to bottom,
    #d17a00,
    #ff9c33
  );
  color: #ffffff;
  border-image: linear-gradient(
    to bottom,
    #ffc107,
    #b34f00
  );
  text-shadow: 0px 2px 4px rgba(255, 165, 0, 0.5);
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,
  box-shadow 0.1s ease-in-out;
}
.rpg-profile {
  overflow-y: scroll; /* Keeps it scrollable */
  scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.rpg-profile::-webkit-scrollbar {
  display: none; /* Hides scrollbar in Chrome, Edge, and Safari */
}

.stat-box {
  display: grid;
  align-content: start;
  grid-template-rows: auto;
  grid-row: 1 / -1;
  grid-column: 3 / span 2;
  padding: 6px;
  background-color: rgba(34, 34, 34, 0.8);
  border: 1px solid #444;
  color: #fff;
  align-self: normal;
  border-radius: 5px;
  margin: 0;
  gap: 0;
}
#tooltip {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto 36px auto 17px minmax(auto, 100px) auto;
  position: fixed;
  background-color: rgba(33, 33, 33, 1);
  color: #fff;
  padding: 10px 14px 10px;
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-width: 222px;
  max-width: 222px;
  width: 100%;
  height: auto;
}
#item-tooltip-close {
  grid-row: 1;
  grid-column: 6;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: right;
  width: 26px;
  height: 26px;
  padding: 0 0 4px;
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--antiflash-white);
  border-radius: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0 -4px 0 0;
}

#tooltip .stat-display {
  margin: 10px 0;
}

.item-icon:active {
  cursor: grabbing;
}

/* Flavor Text*/
#item-title {
  grid-row: 1;
  grid-column: 1 / span 5;
  font-family: "Cinzel-SemiBold", serif;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 22px;
  font-size: 17px;
  padding: 2px 4px 0;
  margin: 4px 0 8px;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.8), 1px -1px 0 rgba(0, 0, 0, 0.8), -1px 1px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8);
}

#item-rarity {
  grid-column: 1 / span 3;
  grid-row: 2;
  font-size: 9px;
  text-transform: uppercase;
  text-align: left;
  justify-self: start;
  margin: 0;
  align-self: center;
  background-color: #2e2e2e;
  border: 0.5px solid #8c9ea3;
  color: #c0e0ff;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 600;
}

#equip-button:hover,
#unequip-button:hover,
#close-menu-modal:hover {
  background: linear-gradient(
    to bottom,
    #8b0000,
    #4b0e0e
  );
  border-image: linear-gradient(
    to bottom,
    #ffd700,
    #5b1818
  );
  border-image-slice: 1; 
  color: #ffd700;
  text-shadow: 0px 2px 4px rgba(255, 193, 7, 0.6);
  transform: translateY(-2px);
  /* box-shadow: 0px 4px 8px rgba(255, 87, 34, 0.5),
    0px 0px 10px rgba(255, 193, 7, 0.4); */
}

.tooltip-stat-label {
  font-size: 11px;
}
.tooltip-stat-value-white {
  font-size: 11px;
}
#buff-tooltip .close-button,
#debuff-tooltip .close-button {
  grid-row: 1;
  grid-column: 3;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: right;
  width: 24px;
  height: 24px;
  padding: 0 0 4px;
  background: linear-gradient(180deg, var(--deep-red), rgb(75, 0, 0));
  border: 1px solid var(--grey);
  color: var(--antiflash-white);
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}
.buff-debuff-grid img {
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid #636363;
  border-radius: 5px;
}
.buff-debuff-grid {
  display: grid;
  font-size: 12px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  position: relative;
}
.buff-item,
.debuff-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 5px;
  align-items: center;
  background-color: rgba(99, 99, 99, 0.2);
  border-radius: 5px;
}
#character-talents {
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: column;
  padding: 0 12px;
  justify-items: stretch;
}
.rpg-icon-description-mobile {
  grid-column: 1 / -1;
}
.talent-tree {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  z-index: 1;
}
.talent-tree-titles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  font-size: 13px;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  text-transform: uppercase;
  margin: 12px 0 4px;
  position: relative;
  -webkit-text-stroke: 0.25px black;
  text-align: center;
  padding: 6px 0px;
  color: var(--amber);
}
.talent-tree-titles span {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 0;
  margin: 0;
  font-size: larger;
}
.points-counter {
  grid-column: 3;
  grid-row: 1;
  font-size: 13px;
}
.talent-footer {
  height: 80px;
  width: 100%;
  margin: 40px 0 120px;
  grid-row: 7;
  grid-column: 1 / -1;
  text-align: center;
  align-content: center;
  font-size: 14px;
  color: #c0c0c0;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
}
.talent-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  justify-items: center;
}
.talent-slot {
  position: relative;
  width: 64px;
  height: 64px;
  background-color: rgb(0, 0, 0);
  border: 2px solid rgba(70, 130, 180, 0.4);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  touch-action: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}
.talent-points {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.8em;
  padding: 2px 5px;
  border-radius: 3px;
}
#talent-tooltip {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  position: absolute;
  width: 80%;
  max-width: 240px;
  min-height: 200px;
  padding: 16px 20px 8px;
  background-color: #333;
  color: #fff;
  border-radius: 0;
  display: none;
  z-index: 1000;
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
}
#tooltip-title {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--amber);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  margin: 4px 0 0;
}
#tooltip-description {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 13px;
  margin: 5px 0 0;
}
#tooltip-talent-stat {
  grid-row: 4;
  grid-column: 1 / -1;
  font-size: 13px;
  margin: 5px 0 4px;
  color: var(--muted-teal);
}
#tooltip-points {
  grid-row: 6;
  grid-column: 2;
  text-align: center;
  align-self: center;
  font-size: 13px;
  font-family: "QuattrocentoSans-Semi-Bold", sans-serif;
  color: var(--steel-blue-hover);
}
#tooltip-points p {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  grid-column: 2;
  grid-row: 1;
}
#tooltip-flavor {
  grid-row: 7;
  grid-column: 1 / span 3;
  font-size: 13px;
  color: var(--slate-gray);
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  line-height: 1.1;
  padding: 8px;
  margin: 0;
}
#tooltip-requirement ul {
  list-style-type: square;
  margin: 4px 0 0;
}
#tooltip-requirement ul li {
  position: relative;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--tangerine);
  padding-left: 12px;
}
#tooltip-requirement,
#tooltip-requiredment ul,
#tooltip-requirement li {
  grid-row: 5;
  grid-column: 1 / -1;
  color: var(--tangerine);
  padding: 0;
  margin: 0;
}
#tooltip-requirement ul li::before {
  content: "•";
  color: var(--golden-sand);
  position: absolute;
  left: 0;
  top: -8px;
  font-size: 26px !important;
  line-height: 1;
}
.tooltip h3 {
  display: flex;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
}
.tooltip p {
  display: flex;
  padding: 0;
}
.maxed-out {
  color: var(--amber) !important;
}
.tooltip-controls {
  margin-top: 10px;
  display: grid;
  grid-row: 6;
  grid-column: 1 / span 3;
  grid-template-columns: 1fr 1.5fr 1fr;
  justify-items: center;
  align-items: center;
  padding: 0;
}
#tooltip-increase {
  width: 40px;
  height: 40px;
  grid-row: 1;
  grid-column: 3;
  justify-self: start;
}
#tooltip-decrease {
  width: 40px;
  height: 40px;
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
}
.tooltip-controls button {
  background-color: #555;
  color: #ffffff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  padding: 0 0 4px;
  border-image: linear-gradient(to bottom, #333, #222);
  border-image-slice: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tooltip-image {
  grid-row: 1;
  grid-column: 1;
  width: 52px;
  height: 52px;
  margin: 0;
  justify-self: left;
}
.tooltip-close {
  grid-row: 1;
  grid-column: 3;
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: right;
  margin: -4px -8px;
  width: 30px;
  height: 30px;
  padding: 0 0 4px;
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--antiflash-white);
  border-radius: 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
#tooltip-error {
  display: none;
  grid-row: 8;
  grid-column: 1 / -1;
  color: var(--subtle-red);
  font-size: 13px;
  text-align: left;
  margin-top: 10px;
}
/* Vertical Connector */
#row1-talent2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}

/* Vertical Connector */
#row1-talent3::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}

/* Horizontal Connector */
#row2-talent1::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 38px;
  background-color: #ffa500;
  top: 50%;
  right: -69px;
  transform: translateX(-50%);
  z-index: -1;
  margin-right: 10px;
}
/* Vertical Connector */
#row2-talent3::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row3-talent2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row3-talent3::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row4-talent1::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row4-talent3::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row5-talent2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row6-talent3::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row7-talent2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row7-talent4::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row8-talent1::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Vertical Connector */
#row8-talent2::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #ffa500;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  margin-top: 2px;
}
/* Horizontal Connector */
#row8-talent3::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 38px;
  background-color: #ffa500;
  top: 50%;
  right: -69px;
  transform: translateX(-50%);
  z-index: -1;
  margin-right: 10px;
}
.flavor-stat-text-1,
.flavor-stat-text-2,
.flavor-stat-text-3 {
  font-size: 12px;
}
.flavor-stat-text-1 {
  color: var(--amber-dark2);
}
.flavor-stat-text-2 {
  color: var(--slate-gray);
}
.flavor-stat-text-3 {
  color: var(--ivory-cream);
}
#resetButton {
  width: 100%;
  grid-column: 1;
  grid-row: 1;
}
#unequipAllBtn {
  background: linear-gradient(to bottom, var(--maroon), #0e121a);
  border: 1px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  color: var(--ivory-cream);
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  border-radius: 5px;
  padding: 8px;
  width: 90%;
  justify-self: left;
  margin: 0 0 4px;
  grid-column: 1 / span 2;
  grid-row: 1;
  transition: box-shadow 0.1s ease-in-out;
  box-shadow: inset 0px -1px 3px rgba(0, 0, 0, 0.4);
  
}
#unequipAllBtn:hover,
#resetButton:hover,
#confirm-character-class:not(:disabled):hover {
  background: linear-gradient(to bottom, #8b0000, #4b0e0e);
  border-image: linear-gradient(to bottom, #ffd700, #5b1818);
  border-image-slice: 1;
  color: #ffd700;
  /* text-shadow: 0px 2px 4px rgba(255, 193, 7, 0.6); */
  box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

#resetButton:active,
#unequipAllBtn:active,
#resetButton:active,
#confirm-character-class:not(:disabled):active {
  background: linear-gradient(180deg, var(--deep-red), rgb(75, 0, 0));
  color: var(--amber);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.6);
  transform: scale(0.98);
}

.top-modal {
  grid-row: 1;
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: var(--rich-black);
  color: var(--golden-sand, #ffc107);
  padding: 10px 50px;
  text-align: center;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 13px;
  border-bottom: 2px solid #986745;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  z-index: 10;
  top: 0;
  left: 0;
  opacity: 1;
  height: 70px;
  position: sticky;
  transition: all 0.5s ease-in-out;
}
.top-modal.highlight {
  animation: glow-smooth 4s ease-in-out infinite alternate;
}
.top-modal img {
  width: 50px;
  height: 50px;
  justify-self: center;
  border-radius: 50%;
  margin-right: 10px;
  background: linear-gradient(
    to bottom right,
    #4682b4,
    #c0c0c0
  );
  padding: 2px;
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.4), 0 0 8px rgba(192, 192, 192, 0.4);
}
.top-modal p {
  margin: 0;
  padding: 0 10px;
  font-size: 15px;
  text-transform: uppercase;
}
#current-character,
#current-class {
  color: var(--ivory-cream);
}
@keyframes fadeInRPGWelcome {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.confirmation-modal {
  /* grid-row: 1 / span 2;
  grid-column: 2; */
  display: none;
  position: absolute;
  align-content: start;
  grid-template-rows: 70px auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9;
  margin: auto;
  border-radius: 4px;
  place-items: center;
  justify-content: center;
}
.modal {
  /* grid-row: 1 / span 2;
  grid-column: 2; */
  display: none;
  position: fixed;
  align-content: start;
  grid-template-rows: 70px auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9;
  margin: auto;
  border-radius: 4px;
  place-items: center;
}
.confirmation-modal-content {
  background-color: #0e121a;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
  max-width: 350px;
  width: 100%;
  border: 1px solid var(--grey);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}
.confirmation-modal-content p {
  margin: 20px 0 30px;
}
.modal-header {
  position: relative;
  grid-row: 1;
  grid-column: 1 / -1;
  height: 100%;
  background: linear-gradient(to bottom, #4b0e0e, #0e121a);
  background-size: 100% 100%;
  color: var(--golden-sand);
  text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.5);
  align-content: center;
  box-shadow: inset 0px -2px 4px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  text-align: center;
  font-size: 24px;
  border-bottom: 2px solid rgba(229, 192, 123, 0.5);
}
.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 65px auto;
  height: 100%;
  background-color: #0e121a;
  padding: 0;
  text-align: center;
  width: 100%;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}
.modal-wrapper{
  height: auto;
  width: 100%;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#intro-content,
#class-selection-content,
#character-selection-content {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px auto 60px 60px 60px 60px;
  padding: 0 0 8px;
  z-index: 9;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 30%, transparent),
    linear-gradient(
      to top,
      #2c3f5b, #1b2c42, #4b9b8a, #0e121a
    );
  background-size: 400% 400%;
  animation: gradient-shift 45s ease infinite;
  -webkit-overflow-scrolling: touch;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  height: auto;
  width: 75%;
  /* overflow: scroll; */
}

#intro-content{
  width: 33%;
}
#class-selection-content, #character-selection-content{
  width: 55%;
  grid-template-rows: 140px auto 60px;
}
#class-back{
  height: 45px;
}
#intro-content h3,
#class-selection-content h3,
#character-selection-content h3 {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  font-family: "Cinzel-Regular", serif;
  text-transform: uppercase;
  grid-row: 1;
  font-size: 32px;
  padding: 10px 40px;
  letter-spacing: 0.7px;
  margin: 0;
  align-items: center;
}
#intro-content .modal-intro-p {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  grid-row: 2;
  grid-column: 1 / -1;
  margin: 8px 0;
  font-size: 16px;
  padding: 0px 20px;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.65;
  color: var(--antiflash-white);
}
#intro-content .modal-intro-p p {
  margin: 16px 0 0;
  padding: 0px 24px 24px;
  font-size: 22px;
}
#character-selection-content .tooltip-stat-value, #class-selection-content .tooltip-stat-value, #character-selection-content .tooltip-stat-label, #class-selection-content .tooltip-stat-label, #class-selection-content .character-stats, .class-selection-str, .class-selection-agi, .class-selection-sta, .class-selection-int, .class-selection-spi, .class-selection-value {
  font-size: 0.8rem !important;
}
#character-selection-content .tooltip-stat-value, #class-selection-content .tooltip-stat-value{
 margin-top: 8px;
}

#rpg-profile-overlay .character-stats-char li{
  line-height: 1.2;
  font-size: 0.9rem;
}
#character-selection-content .class-selections-title, #class-selection-content .class-selections-title{
  font-size: 1rem;
  letter-spacing: .5px;
}

#character-selection-content .class-selections li, #class-selection-content .class-selections li {
  font-size: .825rem !important;
}

#character-selection-content .character-description,.class-1-description, .class-2-description, .class-3-description{
background-color: rgba(105, 105, 105, 0.1);
font-size: 1rem;
letter-spacing: .2px;
line-height: 1.4;
color: var(--antiflash-white);
padding: 12px;
}
#character-selection-content .character-description{
  /* min-height: 220px; */
  padding: 12px;
  grid-row: 3;
}

/* .class-1-description, .class-2-description, .class-3-description{
  min-height: 200px;
} */
.character-stats li{
  display: inline-block;
  inline-size: min-content;
  text-align-last: center;
  padding: 0 !important;
}
.character-stats{
  padding: 0;
  margin: 0;
  height: 100%;
  display: grid;
  /* grid-auto-flow: column; */
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  justify-items: center;
  grid-auto-rows: auto;
  gap: 16px;
  list-style: none;
   align-items: start;
}
#enter-world-button {
  grid-row: 5;
  grid-column: 1 / -1;
  background: linear-gradient(to bottom, #5b1818, #0e121a);
  color: var(--golden-sand);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
  padding: 10px 16px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  box-shadow: 0px 0px 15px rgba(229, 192, 123, 0.8);
  margin: 10px 0;
  width: 300px;
  justify-self: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#enter-world-button.disabled {
  background: linear-gradient(
    to bottom,
    #1a1a1a,
    #333
  );
  color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}
#exit-world-button {
  width: 300px;
}

#enter-world-button:not(:disabled):hover,
#enter-world-button:not(:disabled):active,
#exit-world-button:hover {
  background: linear-gradient(to bottom, #8b2500, #4b0e0e);
  box-shadow: 0px 0px 10px rgba(229, 192, 123, 0.8);
  transform: scale(1.05);
  transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
}
.back-button {
  grid-column: 1 / -1;
  background: linear-gradient(to bottom, #5b1818, #0e121a);
  color: var(--golden-sand);
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #5b1818);
  border-image-slice: 1;
}
.back-button:hover,
.back-button:active {
  background: linear-gradient(
    to bottom,
    #8b2500,
    #4b0e0e
  );
  box-shadow: 0px 0px 10px rgba(229, 192, 123, 0.6);
  transform: scale(1.05);
  transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
}
#select-class-button {
  grid-row: 4;
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: linear-gradient(to bottom, #ff7300, #ffc107);
  color: var(--rich-black);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #ff7300);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  margin: 10px 0;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  width: 300px;
  justify-self: center;
}
#select-class-button:hover,
#select-class-button:active {
  background: linear-gradient(
    to bottom,
    #ffc107,
    #ff7300
  );
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(255, 193, 7, 0.6);
  transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
}
#select-character-button {
  grid-row: 3;
  grid-column: 1 / -1;
  padding: 12px 16px;
  background: linear-gradient(to bottom, #ff7300, #ffc107);
  color: var(--rich-black);
  border: 2px solid transparent;
  border-image: linear-gradient(to bottom, #e5c07b, #ff7300);
  border-image-slice: 1;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  margin: 10px 0;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 17px;
  width: 300px;
  justify-self: center;
}
#select-character-button:hover,
#select-character-button:active {
  background: linear-gradient(
    to bottom,
    #ffc107,
    #ff7300
  );
  transform: scale(1.05);
  box-shadow: 0px 0px 10px rgba(255, 193, 7, 0.6);
  transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
}
.selected {
  background: linear-gradient(to bottom, #ffc107, #b36800);
  color: #fff;
  border: 2px solid #ff7300;
}
.action-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
;
}
.action-list li {
  display: flex;
  margin-bottom: 3px;
  color: var(--antiflash-white);
  font-size: 15px !important;
  flex-direction: column;
  align-items: center;
}
.action-list li:hover {
  color: var(--amber);
  transition: color 0.2s ease;
}
.action-list li:hover img {
  transform: scale(1.2) rotate(-10deg);
}
.list-icon img {
  width: 36px;
  height: 36px;
  margin-right: 16px;
  transition: transform 0.5s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
.list-icon img.icon-clicked {
  transform: scale(1.3) rotate(-10deg);
  transition: transform 0.5s ease;
}
.modal-footer {
  justify-items: center;
  background-color: transparent;
  grid-row: 6;
  grid-column: 1 / -1;
}
#character-ian .character-name,
#character-gukar .character-name,
#character-merlyn .character-name {
  font-size: 22px;
  letter-spacing: .3px;
  color: var(--amber);
}
#character-ian, #character-gukar, #character-merlyn {
  display: grid;
  grid-template-columns: 1fr auto;
}
.character-selection img {
  width: 135px;
  height: 135px;
  margin: 0 0 12px;
}
#character-select-header {
  grid-row: 1;
}
.character-stats-char {
  padding: 0;
  align-self: center;
}
.class-selections{
  display: flex  ;
  flex-direction: column;
}
.class-selections-box{
  display: flex  ;
  flex-direction: column;
  grid-row: 1;
  grid-column: 2;
}
.class-selections > li{
  grid-row: none;
}
.rpg-intro {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 10;
}
#confirmYes,
#talentResetConfirmYes {
  background: linear-gradient(
    to bottom,
    #c0c6d6,
    #6b7b9a
  ); 
  color: #1b1b1b;
  border: 1px solid #6b7b9a;
  padding: 10px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'QuattrocentoSans-Bold';
  margin-right: 8px;
}
#confirmNo,
#talentResetConfirmNo {
  background: linear-gradient(
    to bottom,
    #3c4f76,
    #0e121a
  );
  color: var(--ivory-cream);
  border: 1px solid #3c4f76;
  padding: 10px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'QuattrocentoSans-Bold';
  margin-left: 8px;
}
#bag1-button:hover,
#bag2-button:hover {
  box-shadow: inset 0px -1px 6px rgba(0, 0, 0, 0.5), 0px 4px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
#desktop-tooltip {
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
  max-width: 300px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#desktop-item-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}
.desktop-stat-display-tooltip {
  grid-column: 1 / -1;
  grid-row: 3;
  align-items: center;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
}
#desktop-tooltip .desktop-tooltip-item-description {
  font-size: 14px;
  margin-bottom: 8px;
}
#desktop-tooltip .desktop-tooltip-item-rarity {
  font-size: 12px;
  color: var(--rarity-color);
  margin-bottom: 8px;
}
#desktop-tooltip .desktop-divider-line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}
#desktop-tooltip .desktop-tooltip-flavor-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
#desktop-tooltip .desktop-tooltip-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
#desktop-tooltip .desktop-tooltip-button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: var(--button-bg-color);
  border: 1px solid var(--button-border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#desktop-tooltip .desktop-tooltip-button:hover {
  background-color: var(--button-hover-bg-color);
}
.desktop-overlay {
  position: fixed;
  top: 15%;
  left: 50%;
  width: 20%;
  transform: translate(-50%, 0);
  height: auto;
  background: rgba(14, 18, 26, 0.95);
  color: var(--antiflash-white);
  border: 2px solid #ffc107;
  border-radius: 4px;
  padding: 40px;
  z-index: 10;
  display: none;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
.desktop-overlay img {
  width: 180px;
  height: 180px;
  background: linear-gradient(to bottom right, #4682b4, #c0c0c0);
  padding: 4px;
  box-shadow: 0 0 10px rgba(70, 130, 180, 0.4), 0 0 8px rgba(192, 192, 192, 0.4);
  border-radius: 50%;
}
.desktop-overlay-content h3 {
  font-size: 24px;
}
.desktop-overlay-content p {
  line-height: 1.7;
  text-align: left;
  padding: 0 10%;
}

.rpg-icon-mobile {
  display: flex;
  justify-items: center;
  align-items: center;
  will-change: transform;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin: auto;
  padding: 0;
  transform-origin: center;
  transition: transform 0.6s ease, fill 0.6s ease;
  fill: rgba(0, 0, 0, 0.9);
}
.rpg-icon-mobile:hover {
  fill: var(--amber);
  padding: 0;
  margin: auto;
}

.rpg-row-mobile svg,
.rpg-row-mobile img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.rpg-table {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  max-width: 100%;
  gap: 8px;
  padding: 16px 8px;
  margin: 0;
  border-radius: 0;
  height: auto;
  background: rgba(0, 0, 0, 0.5);
  justify-items: center;
  align-items: stretch;
}
.row-5.equipment-active {
  grid-template-columns: 2fr auto auto;
}
.talent-modal-actions {
  display: flex;
  justify-content: space-evenly;
  margin-top: 20px;
}
.desktop-continue-button {
  background: linear-gradient(
    to bottom,
    #ff8c00,
    #ffc107
  );
  color: var(--rich-black);
  text-transform: uppercase;
  border-radius: 4px;
  font-size: clamp(18px, 1.8281535648994516vw, 20px);
  cursor: pointer;
  font-weight: 400;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.6);
  padding: 16px 36px;
  width: auto;
  max-width: 300px;
  text-decoration: none;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  text-align: center;
  background-size: 200%;
  opacity: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.3s ease;
  will-change: background-color, box-shadow, transform;
  justify-self: center;
  align-self: center;
}
.desktop-continue-button:hover {
  background: linear-gradient(
    to bottom,
    #ffa726,
    #ffcc33
  );
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.8);
  transform: scale(1.03);
}

@media (min-width: 1921px) {
.rpg-overlay.open {
  top: 0;
  height: 100vh !important;
}
#rpgOverlay{
  scale: 1.1;
}
}