  .hide-mobile{
    display: none !important;
  }
  .underline-dots, .underline-premium-dots {
    text-decoration: none;
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: auto;
  }
  .underline-dots::after, .underline-premium-dots::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -1px;
    left: 0;
    z-index: -1;
  }
  .underline-dots::after{
    border-bottom: 1px dotted #b3cce3;
  }
  
  .underline-premium-dots::after{
    border-bottom: 1px dotted #c9b3e3;
  }
  .underline-dots:hover,
  .underline-dots.hover-active {
    color: var(--amber);
    transition: color 0.3s ease-in-out;
  }
  
  .underline-premium-dots:hover,
  .underline-premium-dots.hover-active {
    color: #d17dff;
    transition: color 0.3s ease-in-out;
  }

  .font-size-75rem-mobile{
    font-size: .75rem !important;
  }


  .rpg-overlay.open {
    display: grid;
    width: 100vw;
    opacity: 1;
  visibility: visible;
  }
  .rpg-overlay-close {
    padding: 0;
    margin: 0;
  }
  .rpg-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    grid-template-rows: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }
  .slot img, .equipped-item img, .slot, .equipped-item{
    cursor: none;
  }
  .slot, .item{
    transition: none !important;
    animation: none !important;
  }
  #rpgOverlay {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
  }
  #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;
    transition: transform 0.3s ease-in-out;
  }
  #rpgHamburger:hover {
    color: var(--amber);
    transition: color 0.5s ease;
  }
  .toggle-section {
    display: none;
  }
  .bold{
    letter-spacing: .004rem;
  }

  .arrow {
    position: fixed;
    top: 150px;
    right: -75px; /* Initially hidden */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 52px;
    height: 52px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.8);
    transition: right 0.5s ease; /* Only transition right */
    will-change: right; /* Hint the browser about sliding */
    z-index: 8;
  }
  .arrow img {
    width: 52px;
    height: 52px;
    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;
  
  }

  .arrow.visible {
    right: 5px; /* Slide into view */
    animation: amberGlow 5s ease-in-out infinite;
  }
  
  .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;
  }

  @keyframes flashOverlay {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes burstEffect {
    0% {
      box-shadow: 0 0 20px rgba(0, 128, 255, 0.4), 0 0 28px rgba(0, 128, 255, 0.4);
      background-color: rgba(0, 128, 255, 0.4);
    
    }
    50% {
      box-shadow: 0 0 28px rgba(0, 128, 255, 0.8), 0 0 44px rgba(0, 128, 255, 0.8);
      background-color: rgba(0, 128, 255, 0.6);
    }
    100% {
      box-shadow: 0 0 20px rgba(0, 128, 255, 0.4);
      background-color: rgba(0, 0, 0, 0.6);
    }
  }

  @keyframes amberGlow {
    0% {
      box-shadow: 0 0 4px rgba(255, 99, 71, 0.4);
      transform: scale(1);
    }
    50% {
      box-shadow: 0 2px 10px rgba(255, 191, 0, 0.8);
      transform: scale(1.1);
    }
    100% {
      box-shadow: 0 0 4px rgba(255, 99, 71, 0.4);
      transform: scale(1);
    }
  }
    /* .arrow.no-glow {
    animation: none;
    box-shadow: none;
  } */
  /* .arrow.blue {
    background-color: rgba(0, 128, 255, 0.4) !important;
  } */
  .rpg-profile {
    height: 100%;
    overflow-y: auto;
    z-index: 8;
    padding: 0;
    margin: unset;
    width: 100vw;
    max-width: unset;
    border: unset;
  }
  .rpg-picture img {
    max-width: 140px;
  }
  .rpg-left {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0;
    gap: 0;
    align-items: start;
    border-radius: 0;
  }

.character-class-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  color: var(--ivory-cream);
  text-transform: uppercase;
  z-index: 1000;
}
.character-class-modal.hidden {
  display: none;
}
.character-class-modal-content{
  position: fixed;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 120px 240px 240px 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;
  border: 1px solid var(--grey);
  padding: 20px;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: visible;
}
.change-character-choose-h2{
  font-family: 'Cinzel-Regular', serif;
  font-size: 28px;
  color: var(--golden-sand);
  grid-row: 1;
  grid-column: 1 / -1;
  align-self: end;
  margin: 0 0 12px;
}
#change-character-selection-section{
  grid-row: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 60px 60px 60px;
  justify-items: center;
}
.change-character-choose-h3{
  grid-row: 1;
  grid-column: 1 / -1;
  padding: 0;
}
#class-selection-header{
  grid-row: 1;
  grid-column: 1 / -1;
  padding: auto;
  margin: auto;
}
#change-class-selection-section{
  grid-row: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 60px 60px 60px 60px;
}
#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: 4px;
  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: 17px;
  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-self: 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: 14px;
  padding: 12px 34px;
  height: auto;
  width: 90%;
}
.change-class-option-button{
  display: grid;
  grid-template-columns: .1fr 2fr;
  grid-column: 1 / -1;
  justify-self: center;
  justify-items: stretch;
  align-self: 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: 8px auto;
  text-align: center;
  font-family: "QuattrocentoSans-Bold", sans-serif;
  font-size: 14px;
  padding: 8px 8px;
  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.selected,
.change-class-option-button.selected {
  background: linear-gradient(to bottom, #ff0000, #ff7300);
  color: var(--rich-black);
}
.menu-modal {
  position: absolute;
  top: unset;
  left: unset;
  transform: unset;
  height: 80%;
 
  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: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
}
  #rpg-class-name{
    color: var(--amber);
  }
  .health-bar .health-bar-fill {
    grid-column: 1 / -1;
    width: 95%;
    height: 100%;
    transition: width 0.5s ease-in-out;
    border-radius: 4px;
    z-index: 10;    
  }
  .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: 10;
  }
  .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: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  }
  .mana-bar .mana-bar-fill {
    grid-column: 1 / -1;
    width: 80%;
    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: 8px;
  }
  .experience-needed {
    padding: 12px 20px 0;
  }
  .bar-container {
    height: 18px;
  }
  #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));
    aspect-ratio: 1; 
    justify-items: stretch;
    justify-content: center;
    padding: 4px 0;
    gap: 4px;
  }
  .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: 4px;
    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: absolute;
    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;
  }
  #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;
  }
  #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: 4px;
    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: 4px;
  }
  .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: 4px;
  }
  #character-talents, #inventory, #character-equipment, #character-vault, #rpg-profile-overlay{
    width: 100vw;
  }
  #character-talents {
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: column;
    padding: 0 12px;
    justify-items: stretch;
  }
  .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;
  }
  .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: 4px;
    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: fixed;
    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: #ffc107 !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::before {
    content: "";
    position: absolute;
    height: 2px;
    width: 28px;
    background-color: #ffa500;
    top: 50%;
    right: -54px;
    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: 28px;
    background-color: #ffa500;
    top: 50%;
    right: -54px;
    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);
  }
  #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: 4px;
    padding: 8px;
    width: 90%;
    justify-self: left;
    margin: 0 0 4px;
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  #resetButton:active,
  #unequipAllBtn:active {
    background: linear-gradient(180deg, var(--deep-red), rgb(75, 0, 0));
    color: var(--amber);
  }
  .top-modal {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
    z-index: 10;
    position: relative;
    top:0;
    left: 0;
    opacity: 1;
    height: 70px;
    overflow: hidden;
    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, .modal{
    display: none;
    position: fixed;
    grid-template-rows: 70px auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    margin: auto;
    justify-content: center;
    align-items: center;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    }
    .modal-wrapper{
      position: absolute;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
    .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);
  }
  #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 16s ease infinite;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
}
#intro-content{
  grid-template-rows: 140px 250px 65px 65px 65px 65px;
}

  #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: 28px;
    padding: 10px 40px;
    letter-spacing: 0.7px;
    margin: 0;
    align-items: center;
  }
  #intro-content .modal-intro-p{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 0 8px;
    font-size: 15px;
    padding: 0px 30px;
    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 4px;
  }
  #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: 80%;
    height: 50px;
    justify-self: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  #exit-world-button{
    height: 50px;
  }
  #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);
  }  
  .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: 80%; 
    height: 50px;
    justify-self: center;
  }
  #select-class-button:hover, #select-class-button:active{
    background: linear-gradient(to bottom, #ffc107, #ff7300); /* Brightened gradient */
    transform: scale(1.05);
    box-shadow: 0px 0px 10px rgba(255, 193, 7, 0.6); /* Glow effect */
    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: 80%;
    height: 50px;
    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;
    margin: 10px 0;
}
.action-list li {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    color: var(--antiflash-white);
    font-size: 15px !important;
}
.action-list li:hover {
  color: #ffc107; /* Amber */
  transition: color 0.2s ease;
}
.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-select-header{
  grid-row: 1;
}
#character-ian, #character-gukar, #character-merlyn{
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 2fr 2fr 1fr;
  grid-template-rows: auto;
  padding: 8px 20px;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin: 8px 12px;
}
#character-ian{
  grid-row: 1;
  grid-column: 1 / -1;
}
#character-ian img, #character-gukar img, #character-merlyn img{
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}
#character-ian .character-name, #character-gukar .character-name, #character-merlyn .character-name{
  font-size: 19px;
}
#character-gukar{
  grid-row: 2;
  grid-column: 1 / -1;
}
#character-merlyn{
  grid-row: 3;
  grid-column: 1 / -1;
}
#char-back,
#class-back {
  grid-row: 4;
  grid-column: 1;
}
.class-1-grid {
  display: grid;
  grid-row: 1;
  grid-column: 1 / -1;
}
.class-2-grid {
  display: grid;
  grid-row: 2;
  grid-column: 1 / -1;
}
.class-3-grid {
  display: grid;
  grid-row: 3;
  grid-column: 1 / -1;
}
.character-stats ul{
margin: 0;
}
.character-stats li{
  font-size: 12px !important;
  text-align: right;
  margin: 0;
}
  .rpg-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .rpg-intro-overlay-content {
    background: #333;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(125, 152, 211, 0.6);
    color: var(--antiflash-white);
    text-align: center;
    max-width: 320px;
  }
    .rpg-intro-overlay-content img{
    width: 120px;
    height: 120px;
    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%;
  }
  .rpg-intro-overlay-content p{
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    letter-spacing: 0.002rem;
  }

  .rpg-intro-overlay-content h3{
    margin: 24px 0 20px;
  }

  #confirmYes, #talentResetConfirmYes {
    background: linear-gradient(
      to bottom,
      #c0c6d6,
      #6b7b9a
    );
    color: #1b1b1b;
    border: 1px solid #6b7b9a;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
    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: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: inherit;
    margin-left: 8px;
  }
  .rpg-row-mobile {
    height: 60px;
    width: 60px;
  }
  .rpg-icon-mobile {
    display: flex;
    justify-items: center;
    width: 48px;
    height: 48px;

    margin: auto;
  }

  .rpg-row-mobile.active .rpg-icon-mobile,
  .rpg-row-mobile:hover svg {
    transform: scale(1.5);

  }

  .stat-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto;
    width: 100%;
    gap: 10px;
    align-items: start;
    padding: 0 8px;
    margin: 8px 0 0;
    border-radius: 0;
    background: transparent;
  }
  .stat-item {
    display: contents;
    grid-auto-flow: unset;
  }
  .stat-divider {
    grid-row: unset;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--grey);
  }
  .stat-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--golden-sand);
    text-align: right;
    justify-self: right;
    margin: 0;
    grid-column: unset;
    grid-row: unset;
    width: 100%;
  }
  .stat-name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    grid-column: 1 / span 2;
  }
  .stat-value {
    font-size: 14px;
    text-align: left;
    color: var(--ivory-cream);
    padding: 0;
    margin: 0;
    justify-self: left;
    width: 100%;
    align-self: center;
  }
  .level {
    color: #b0b0b0;
    font-family: "QuattrocentoSans-Regular", sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: none;
    margin: 4px 0 0;
  }
  .rpg-icon-description-mobile {
    display: flex;
    grid-row: unset;
    grid-column: 1 / -1;
    width: 100%;
    height: 500px !important;
    margin: auto;
    clear: both;
    padding: 8px 0;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    text-align: center;
    justify-content: center;
    align-items: start;
    background-color: var(--rich-black);
  }
  #desktop-tooltip {
    display: none;
  }