:root {
  --step--2: clamp(0.72rem, 0.69rem + 0.15vw, 0.8rem);
  --step--1: clamp(0.85rem, 0.82rem + 0.18vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.2rem + 0.25vw, 1.4rem);
  --step-2: clamp(1.56rem, 1.5rem + 0.3vw, 1.75rem);
  --step-3: clamp(1.95rem, 1.85rem + 0.4vw, 2.2rem);
  --step-4: clamp(2.44rem, 2.3rem + 0.5vw, 2.75rem);
}

/* Fonts */
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-v9-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-v9-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/orbitron-v35-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/orbitron-v35-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Orbitron';
  src: url('fonts/orbitron-v35-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
body {
  font-family: 'Inter Tight', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  margin: 0;
  background: linear-gradient(135deg, #1a1a2e, #3a0ca3);
  color: #fff;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  margin: 0;
}

h1 { font-size: var(--step-4); letter-spacing: 2px; text-transform: uppercase; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { font-size: var(--step--1); }
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/black-rhombus-background.png");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.2;
  pointer-events: none;
  z-index: -1;
}
header {
  text-align: center;
  padding: 2em 1em;
  background-color: rgba(50, 0, 100, 0.6);
}

header h1 { color: #b3b3ff; }
header p.summary { max-width: 700px; margin: auto; }

.main-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 1em;
  background-color: rgba(0, 0, 50, 0.7);
}

.main-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
}

.main-nav a.active,
.main-nav a:hover {
  background-color: #5e5eff;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.char-card {
  background-color: rgba(50, 0, 100, 0.6);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  border: 2px solid #5e5eff;
}

.char-card:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.char-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.char-image {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 0.5rem;
}
.char-image img.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.element-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  object-fit: contain;
  z-index: 2;
}
.element-icon.fire { filter: drop-shadow(0 0 6px #ff6b6b); }
.element-icon.ice { filter: drop-shadow(0 0 6px #6bcfff); }
.element-icon.lightning { filter: drop-shadow(0 0 6px #ffd93d); }
.element-icon.wind { filter: drop-shadow(0 0 6px #6bffb3); }
.element-icon.quantum { filter: drop-shadow(0 0 6px #c77dff); }
.element-icon.imaginary { filter: drop-shadow(0 0 6px #ffd166); }
.element-icon.physical { filter: drop-shadow(0 0 6px #cccccc); }

/* Logo */
.logo {
  transform-origin: center center;
  position: fixed;
  top: 15px;
  left: 15px;
  width: 200px;
  z-index: 1000;
  animation: glowPulse 2s infinite ease-in-out;
  transform: none !important;
}

@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 0px #ffffff); }
  50% { filter: drop-shadow(0 0 10px #ffffff); }
  100% { filter: drop-shadow(0 0 0px #ffffff); }
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 12px;
}

.paths-container { 
  padding: 2rem; 
}

.path-section { 
  margin-bottom: 3rem; 
}

.path-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  color: #cdb4ff;
  margin-bottom: 1rem;
}

.path-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
footer {
  text-align: center;
  padding: 1em;
  background-color: rgba(0, 0, 50, 0.7);
  color: #bbb;
}

.char-image {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 0.5rem;
}

.char-image img.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.element-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  object-fit: contain;
  z-index: 2;
}

.char-card .element-icon {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}

.char-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

.char-card {
  flex: 0 0 200px;
  text-align: center;
}

.char-image {
  position: relative;
}

.element-icon {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
}

.five-star { border-color: gold; }
.four-star { border-color: #7aa0ff; }
.special { border-color: violet; }


.char-card h3 { font-family: 'Orbitron', sans-serif; color: #ffcc00; margin: 0.3rem 0; }
