:root {
  --red: #ff4655;
  --red-dark: #c4303d;
  --red-dim: #7a1e26;
  --red-glow: rgba(255, 70, 85, 0.15);
  --bg: #0f0f0f;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --surface: #252525;
  --border: rgba(255, 70, 85, 0.2);
  --border-dim: rgba(255, 255, 255, 0.06);
  --text: #f0f0f0;
  --text-muted: #888;
  --gold: #ffd700;
  --gold-dim: #b8960c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Sarabun", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
}

.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--red);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 70% 50%,
      rgba(255, 70, 85, 0.08) 0%,
      transparent 70%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 80px
    );
}

.hero-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.3;
  top: 45%;
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-tag {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  letter-spacing: 8px;
  line-height: 0.9;
  color: var(--text);
  position: relative;
}

.hero-name span {
  color: var(--red);
}

.hero-desc {
  max-width: 480px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-x {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: 1px solid var(--border-dim);
  padding: 8px 18px;
  border-radius: 2px;
  transition: all 0.2s;
}

.hero-x:hover {
  border-color: var(--red);
  color: var(--red);
}

.x-icon {
  font-size: 1rem;
  font-weight: 700;
}

/* SECTIONS */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--red);
}

/* PLAYING NOW */
.playing-now {
  background: var(--bg2);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.playing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg3);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.2s;
}

.game-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
}

.game-card.featured::before {
  width: 100%;
  height: 3px;
  top: 0;
  left: 0;
  background: var(--red);
}

.game-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.game-info h3 {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.game-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: white;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 1px;
}

/* GAME GRID (played / recommend) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.game-icon-card {
  background: var(--bg3);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.game-icon-card:hover {
  border-color: var(--red);
  background: rgba(255, 70, 85, 0.05);
  transform: translateY(-3px);
}

.game-icon-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  transition: transform 0.2s;
}

.game-icon-card .icon img,
.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.game-icon-card:hover .icon {
  transform: scale(1.08);
}

.game-icon-card .name {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  color: var(--text-muted);
}

.game-icon-card:hover .name {
  color: var(--text);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  position: relative;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition:
    background 0.2s,
    color 0.2s;
}

.modal-close:hover {
  background: var(--red);
  color: white;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-dim);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  flex-shrink: 0;
}

.modal-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-type {
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Rajdhani", sans-serif;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* VALORANT SECTION */
#valorant {
  background: #080808;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--red);
}

#valorant::before {
  content: "VALORANT";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: "Bebas Neue", sans-serif;
  font-size: 8rem;
  letter-spacing: 16px;
  color: rgba(255, 70, 85, 0.04);
  pointer-events: none;
  white-space: nowrap;
}

.val-bg-geo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 70, 85, 0.04) 100%
  );
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.val-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .val-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

.val-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 70, 85, 0.15);
  border-radius: 3px;
  padding: 1.5rem;
}

.val-card-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.rank-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rank-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 8px rgba(255, 70, 85, 0.4));
}

.rank-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--text);
}

.rank-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 1px;
}

.agent-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agent-icon {
  font-size: 2.5rem;
}

.agent-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
}

.agent-role {
  font-size: 0.75rem;
  color: var(--red);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 500px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-name {
    font-size: 5rem;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 70, 85, 0.12);
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
}

.stat-val {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--red);
  display: block;
  margin-bottom: 2px;
}

.stat-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tracker-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 2px;
  margin-top: 2rem;
  transition:
    background 0.2s,
    transform 0.15s;
}

.tracker-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.tracker-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 2rem;
}

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-top: 1px solid var(--border-dim);
  font-family: "Rajdhani", sans-serif;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

