/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #151515; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #ffc451; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #312f2f; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: rgba(255, 255, 255, 0.905);  /* The default color of the main navmenu links */
  --nav-hover-color: #ffc451; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #212529; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #ffc451; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #2a2727;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

img.custom-icon {
  width: 50px !important;
  height: 50px !important;
  inset: auto !important;
  position: relative !important;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0.8);
  --heading-color: #ffffff;
  --contrast-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  height: 48px;
}

/* Esconde o header quando a seção de skills chega ao topo, para não cobrir a grade */
.header-hidden .header {
  transform: translateY(-100%);
}

/* Seletor de idioma */
.lang-picker {
  position: relative;
  font-family: var(--nav-font);
}

.lang-picker img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-color);
  font-size: 14px;
  transition: 0.3s;
}

.lang-current:hover,
.lang-picker.open .lang-current {
  border-color: var(--accent-color);
  color: var(--nav-hover-color);
}

.lang-current .bi {
  font-size: 11px;
  transition: transform 0.3s;
}

.lang-picker.open .lang-current .bi {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-color);
  font-size: 14px;
  white-space: nowrap;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-hover-color);
}

/* Item de menu ainda não disponível: mostra "Em breve" ao passar o mouse */
.navmenu .nav-soon {
  position: relative;
  cursor: default;
}

.navmenu .nav-soon::after {
  content: attr(data-soon);
  position: absolute;
  left: 50%;
  bottom: -10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-color);
  color: #222;
  font-size: 11px;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.navmenu .nav-soon:hover::after {
  opacity: 1;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .lang-picker {
    order: 2;
    margin-right: 12px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Index Page Header
------------------------------*/
.index-page .header {
  --background-color: rgba(0, 0, 0, 0);
}

/* Index Page Header on Scroll
------------------------------*/
.index-page.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 0;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    background-color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), white 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: color-mix(in srgb, var(--accent-color), white 90%);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    background-color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

/* Alice varrendo no canto inferior esquerdo, sobrepondo o que estiver acima do rodapé */
.footer-mascot {
  position: absolute;
  left: 24px;
  bottom: 0;
  z-index: 10;
  height: 120px;
  image-rendering: pixelated;
  pointer-events: none;
}

@media (max-width: 767px) {
  .footer-mascot {
    left: 8px;
    height: 84px;
  }

  /* Abre espaço para a mascote não cobrir o texto do rodapé */
  #footer .copyright {
    padding-left: 64px;
    padding-right: 8px;
  }
}

.footer .copyright {
  padding: 10px 0;
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  font-size: 12px;
}

.footer .disclaimer {
  margin: 2px 0 0;
  font-size: 11px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #000;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 30px 0;
  scroll-margin-top: 80px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 58px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 120px 0 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  font-family: var(--nav-font);
}

/* Ferramenta atual, entre o slogan e "Escolha a sua classe" */
.hero .hero-tool {
  display: inline-block;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);
  color: #fff;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero .hero-tool + p {
  margin-top: 4px;
}

/* Slogan abaixo do nome do site */
.hero .hero-tagline {
  margin-top: 6px;
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-size: 18px;
  letter-spacing: 0.5px;
}

.hero p {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.hero .icon-box {
  padding: 30px 20px;
  transition: ease-in-out 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
}

.hero .icon-box h3 {
  font-weight: 700;
  margin: 10px 0 0 0;
  padding: 0;
  line-height: 1;
  font-size: 20px;
  line-height: 26px;
}

.hero .icon-box h3 span {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: ease-in-out 0.3s;
}

.hero .icon-box:hover,
.hero .icon-box.selected {
  border-color: var(--accent-color);
}

.hero .icon-box:hover h3 span,
.hero .icon-box.selected h3 span {
  color: var(--accent-color);
}

/* Retrato da classe: aparece no lugar do ícone ao passar o mouse ou quando a classe está selecionada */
.hero .class-cards .icon-box {
  position: relative;
  overflow: visible;
  transition: border-color 0.3s;
}

/* Camada do retrato, ancorada na base do card. A imagem vem do atributo style no HTML (url relativo à página) */
.hero .class-cards .class-portrait {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 0 !important;
  height: calc(100% + 2px);
  border: 1px solid transparent;
  /* Retrato sem fundo: um fundo escuro translúcido destaca o personagem e esconde o título quando o card cresce */
  background-color: rgba(18, 22, 40, 0.75);
  backdrop-filter: blur(4px);
  background-position: center 16%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, height 0.35s ease-in-out, background-position 0.35s ease-in-out;
}

/* Escurece a base para o nome continuar legível sobre o retrato */
.hero .class-cards .class-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 30%, transparent 55%);
}

.hero .class-cards .icon-box > :not(.class-portrait) {
  position: relative;
  z-index: 1;
}

.hero .class-cards .icon-box .custom-icon {
  transition: opacity 0.3s;
}

.hero .class-cards .icon-box:hover .class-portrait,
.hero .class-cards .icon-box.selected .class-portrait {
  opacity: 1;
  border-color: var(--accent-color);
}

.hero .class-cards .icon-box:hover .custom-icon,
.hero .class-cards .icon-box.selected .custom-icon {
  opacity: 0;
}

/* Com mouse: no hover o retrato cresce para cima sobre o título, sem mover nada na página */
@media (hover: hover) {
  .hero .class-cards > div:hover {
    position: relative;
    z-index: 5;
  }

  .hero .class-cards .icon-box:hover .class-portrait {
    height: 360px;
    background-position: center top;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
/* Visual baseado na janela de skills do jogo */
/* Variáveis da janela de skills, também usadas pelos modais */
:root {
  --skill-blue: #6f97ec;
  --skill-blue-light: #8db0f5;
  --skill-blue-dark: #5b72c2;
  --skill-badge: #55617d;
  --skill-muted: #a9b4d0;
  --skill-text: #4a5370;
  --skill-size: clamp(48px, 6.5vw, 84px);
}

.skill-window {
  background: linear-gradient(135deg, #f8f7ef 0%, #f1f2fa 55%, #eceffa 100%);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 80, 140, 0.15);
  padding: 16px;
  font-family: var(--nav-font);
}

/* Abas */
.skill-tabs {
  display: flex;
  max-width: 760px;
  padding: 6px;
  background: #f7f8fd;
  border: 1px solid #e3e8f5;
  border-radius: 14px;
}

.skill-tab {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--skill-muted);
  font-size: clamp(13px, 1.8vw, 22px);
  line-height: 1.2;
  transition: 0.2s;
}

.skill-tab:hover {
  color: var(--skill-blue);
}

.skill-tab.active {
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  box-shadow: 0 4px 12px rgba(95, 138, 230, 0.4);
}

.skill-tab.locked:not(.active) {
  opacity: 0.6;
}

.skill-body {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

/* Painel lateral */
.skill-side {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 64px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #86a5f2 0%, #6a8be3 100%);
  box-shadow: inset 0 0 0 6px rgba(170, 195, 250, 0.5);
  border-radius: 10px 10px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  color: #fff;
}

.skill-banner-title {
  width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(70, 90, 180, 0.55);
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
}

/* Nomes longos (ex.: Sumo Sacerdote) cabem em uma linha */
.skill-banner-title.long {
  font-size: 18px;
  line-height: 1.6;
}

/* Espaço do emblema: reservado para a escolha da subclasse */
.skill-banner-emblem {
  width: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.skill-path {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  transition: 0.2s;
}

.skill-path:hover {
  background: rgba(255, 255, 255, 0.15);
}

.skill-path.active {
  background: #fff;
  color: var(--skill-blue-dark);
  font-weight: 600;
}

.skill-banner-label {
  font-size: 20px;
}

.skill-banner-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.08);
  font-size: 28px;
}

/* Seção usando pontos das seções seguintes */
.skill-borrowed {
  color: #f6c25b;
}

/* Pontos acima do disponível: build inválido até ser corrigido */
.skill-over {
  color: #ff5a5f !important;
  font-weight: 600;
}

.skill-points {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.skill-points-label {
  flex: 1;
  color: var(--skill-muted);
  font-size: 22px;
}

.skill-points-value {
  color: var(--skill-text);
  font-size: 24px;
}

.skill-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(95, 138, 230, 0.35);
}

.skill-reset:hover {
  filter: brightness(1.08);
}

/* Grade de skills: 5 colunas × 3 linhas */
.skill-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* Altura fixa por linha, para as 3 linhas existirem mesmo sem skills nelas */
  grid-template-rows: repeat(3, calc(var(--skill-size) * 1.75));
  gap: 28px 16px;
  align-content: start;
  min-width: 0;
  padding: 8px 0;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.skill-icon-wrap {
  position: relative;
  line-height: 0;
}

.skill-btn {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(22px, calc(var(--skill-size) * 0.34));
  height: max(22px, calc(var(--skill-size) * 0.34));
  padding: 0;
  border: 2px solid #fff;
  border-radius: 6px;
  background: linear-gradient(180deg, #6b9cf2, #4a7fe0);
  color: #fff;
  font-size: max(13px, calc(var(--skill-size) * 0.2));
  box-shadow: 0 2px 6px rgba(60, 80, 140, 0.3);
  transform: translateY(-50%);
  transition: filter 0.15s;
}

.skill-btn:hover {
  filter: brightness(1.1);
}

.skill-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.skill-btn-minus {
  right: calc(100% - 4px);
}

.skill-btn-plus {
  left: calc(100% - 4px);
}

.skill-level {
  position: relative;
  z-index: 1;
  min-width: calc(var(--skill-size) * 0.8);
  margin-bottom: calc(var(--skill-size) * -0.1);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--skill-badge);
  color: #fff;
  text-align: center;
  font-size: max(11px, calc(var(--skill-size) * 0.24));
  line-height: 1.3;
}

/* Os ícones originais já trazem o formato (redondo ou quadrado) com fundo transparente */
.skill-icon {
  width: var(--skill-size);
  height: var(--skill-size);
  border-radius: 22%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(60, 80, 140, 0.25));
  transition: filter 0.2s;
  outline: none;
}

/* Skill concedida sem pontos: no jogo aparece sem o contador de nível */
.skill.auto .skill-level {
  visibility: hidden;
}

.skill.empty .skill-icon {
  filter: drop-shadow(0 3px 6px rgba(60, 80, 140, 0.25)) grayscale(1) brightness(1.05);
}

/* Descrição: aparece ao passar o mouse ou tocar no ícone */
.skill-tooltip {
  position: absolute;
  top: calc(100% + var(--skill-size) * 0.4);
  left: 50%;
  z-index: 10;
  display: none;
  width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(40, 48, 72, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  transform: translateX(-50%);
}

.skill-icon:hover ~ .skill-tooltip,
.skill-icon:focus ~ .skill-tooltip {
  display: block;
}

/* Nas colunas das pontas, o tooltip abre para dentro da grade */
.skill-tooltip-col1,
.skill-tooltip-col2 {
  left: 0;
  transform: none;
}

.skill-tooltip-col4,
.skill-tooltip-col5 {
  left: auto;
  right: 0;
  transform: none;
}

/* Na última linha, abre para cima para não ser cortado pela borda da seção */
.skill-tooltip-up {
  top: auto;
  bottom: calc(100% + var(--skill-size) * 0.35);
}

.skill-tooltip strong {
  display: block;
  font-size: 15px;
}

.skill-tooltip small {
  display: block;
  color: #b9c4e4;
}

.skill-tooltip-requires {
  color: #f6c25b !important;
}

.skill-tooltip p {
  margin: 6px 0 0;
}

.skill-name {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: calc(var(--skill-size) * 1.55);
  min-height: calc(var(--skill-size) * 0.36);
  margin-top: calc(var(--skill-size) * -0.08);
  padding: 2px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  text-align: center;
  font-size: max(10px, calc(var(--skill-size) * 0.17));
  line-height: 1.15;
}

/* Link de compartilhamento */
.skill-share {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.skill-share-link {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e3e8f5;
  border-radius: 10px;
  background: #f7f8fd;
  color: var(--skill-text);
  font-size: 14px;
}

.skill-share-link.invalid {
  border-color: #ff5a5f;
  color: #ff5a5f;
  font-weight: 600;
}

.skill-share-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.skill-share-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Aviso de nível máximo no tooltip */
.skill-tooltip-note {
  margin-top: 6px;
  font-style: italic;
  opacity: 0.8;
}

/* Modal de informações (Atualizações, Sobre) */
.modal-open-custom {
  overflow: hidden;
}

.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 14, 30, 0.55);
  backdrop-filter: blur(3px);
  animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; }
}

.info-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(640px, 100%);
  padding: 24px;
  border: 2px solid var(--skill-blue);
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f7ef 0%, #f1f2fa 55%, #eceffa 100%);
  box-shadow: 0 16px 40px rgba(20, 30, 70, 0.35);
  color: var(--skill-text);
  font-family: var(--nav-font);
}

.info-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  font-size: 16px;
}

.info-modal-close:hover {
  filter: brightness(1.08);
}

.info-modal-title {
  margin: 0 48px 4px 0;
  color: var(--skill-blue-dark);
  font-family: var(--nav-font);
  font-size: 26px;
  font-weight: 600;
}

.info-modal-date {
  margin: 0 0 16px;
  color: var(--skill-muted);
  font-size: 14px;
}

.info-modal-date strong {
  color: var(--skill-text);
  font-weight: 500;
}

.info-modal-tabs {
  flex: 0 0 auto;
  max-width: none;
}

.info-modal-tabs .skill-tab {
  font-size: 16px;
}

.info-modal-body {
  margin-top: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.55;
}

.info-modal-body p {
  margin: 0 0 10px;
}

.info-modal-body p + h3 {
  margin-top: 18px;
}

.info-modal-highlight {
  padding: 10px 12px;
  border-left: 3px solid var(--skill-blue);
  border-radius: 8px;
  background: rgba(111, 151, 236, 0.1);
}

.info-modal-body a {
  color: var(--skill-blue-dark);
  font-weight: 500;
}

.info-modal-body h3 {
  margin: 0 0 8px;
  color: var(--skill-blue-dark);
  font-family: var(--nav-font);
  font-size: 18px;
  font-weight: 600;
}

.info-modal-body h3 small {
  margin-left: 6px;
  color: var(--skill-muted);
  font-size: 13px;
  font-weight: 400;
}

.info-modal-body ul {
  margin: 0;
  padding-left: 20px;
}

.info-modal-body li + li {
  margin-top: 6px;
}

.info-modal-soon {
  padding-left: 0 !important;
  list-style: none;
}

.info-modal-soon li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(111, 151, 236, 0.1);
}

.info-modal-soon .bi {
  margin-right: 6px;
  color: var(--skill-blue);
}

/* Aba bloqueada */
.skill-locked {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  border-radius: 12px;
  background: rgba(241, 242, 250, 0.75);
  backdrop-filter: blur(2px);
  color: var(--skill-text);
  font-size: 20px;
  text-align: center;
}

.skill-locked p {
  margin: 0;
}

.skill-unlock {
  padding: 8px 28px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--skill-blue-light), var(--skill-blue));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(95, 138, 230, 0.35);
}

@media (max-width: 991px) {
  .skill-body {
    flex-direction: column;
  }

  .skill-side {
    flex-basis: auto;
  }

  /* Banner vira uma faixa horizontal */
  .skill-banner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
    border-radius: 10px;
    clip-path: none;
  }

  .skill-banner-title {
    width: auto;
    flex: 1 1 100%;
    font-size: 20px;
  }

  .skill-banner-emblem {
    flex: 1 1 100%;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .skill-banner-emblem:empty {
    display: none;
  }

  .skill-banner-ring {
    width: 80px;
    height: 80px;
    font-size: 20px;
  }

  .skill-points-label {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .skill-window {
    padding: 10px;
  }

  .skill-grid {
    gap: 18px 4px;
  }

  /* Botões encostados no ícone, para não invadir a coluna vizinha */
  .skill-btn {
    z-index: 2;
  }

  .skill-btn-minus {
    right: auto;
    left: -14px;
  }

  .skill-btn-plus {
    left: auto;
    right: -14px;
  }
}
