* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #1a0b1f, #050008);
    font-family: "Orbitron", sans-serif;
    color: #f3eaff;
}

.nav-wrapper {
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom,
            rgba(120, 30, 160, 0.35),
            rgba(20, 5, 30, 0.85));
    border-bottom: 1px solid rgba(200, 120, 255, 0.25);
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    width: 48px;
    height: 48px;
    border: 2px solid #d28bff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    box-shadow:
        0 0 12px rgba(210, 140, 255, 0.5),
        inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.logo-symbol {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5d9ff;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #e6d3ff;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff5cff, #9b5cff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: flex;
    justify-content: flex-end;
}

.cta-button {
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #b14cff, #ff4fd8);
    box-shadow:
        0 0 12px rgba(255, 90, 220, 0.6),
        inset 0 0 6px rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 18px rgba(255, 120, 255, 0.9),
        inset 0 0 6px rgba(255, 255, 255, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-bar {
        grid-template-columns: auto auto;
    }

    .nav-links {
        display: none;
    }
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.downloads-section {
    margin-top: 4rem;
    text-align: center;
}

.section-title {
    font-size: 1.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 3rem;
    color: #f3eaff;
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    text-decoration: none;
    color: #f3eaff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background:
        linear-gradient(to bottom,
            rgba(120, 40, 160, 0.35),
            rgba(25, 5, 35, 0.95));
    border: 1px solid rgba(200, 120, 255, 0.35);
    box-shadow:
        0 0 18px rgba(170, 80, 255, 0.45),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 28px rgba(220, 120, 255, 0.85),
        inset 0 0 12px rgba(255, 255, 255, 0.18);
}

.download-icon {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    background: rgba(10, 0, 20, 0.7);
    border: 2px solid rgba(200, 120, 255, 0.5);
    box-shadow:
        0 0 14px rgba(200, 120, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.download-icon.windows {
    color: #cfc6ff;
}

.download-icon.linux {
    color: #ffd66b;
}

.download-icon.java {
    color: #ff9c6b;
}

.download-text {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.download-text span {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* SVG icons */
.download-icon svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: #f3eaff;
    stroke-width: 1.6;
    image-rendering: pixelated;
}

/* Subtle hover glow only */
.download-card:hover .download-icon {
    box-shadow:
        0 0 20px rgba(210, 140, 255, 0.75),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Intro section */
.intro-section {
    padding: 4rem 1.5rem 2rem;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Desktop layout */
@media (min-width: 900px) {
    .intro-content {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* Text */
.intro-title {
    font-size: 1.6rem;
    letter-spacing: 0.16em;
    margin-bottom: 1.2rem;
    color: #f3eaff;
}

.intro-description {
    max-width: 520px;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #e0d4f2;
    opacity: 0.95;
}

/* Video frame */
.intro-media {
    display: flex;
    justify-content: center;
}

.video-frame {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 16 / 9;
    padding: 6px;
    border-radius: 14px;
    background:
        linear-gradient(135deg,
            rgba(200, 120, 255, 0.6),
            rgba(120, 40, 160, 0.3));
    box-shadow:
        0 0 28px rgba(170, 80, 255, 0.55),
        inset 0 0 10px rgba(255, 255, 255, 0.18);
}

/* Video */
.video-frame video,
.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Compatibility section */
.compat-section {
    padding: 4rem 1.5rem;
}

.compat-grid {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Scales well up to 65+ items */
@media (min-width: 700px) {
    .compat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .compat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Item */
.compat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background:
        linear-gradient(to bottom,
            rgba(90, 30, 120, 0.35),
            rgba(20, 5, 30, 0.9));
    border: 1px solid rgba(200, 120, 255, 0.3);
    box-shadow:
        0 0 14px rgba(150, 70, 220, 0.35),
        inset 0 0 6px rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* Game name */
.game-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Tier label */
.tier {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.35);
}

/* Tier colors (subtle, consistent) */
.gold .tier {
    color: #ffd98a;
    border: 1px solid rgba(255, 217, 138, 0.6);
}

.silver .tier {
    color: #d0d4dd;
    border: 1px solid rgba(208, 212, 221, 0.6);
}

.bronze .tier {
    color: #d6a57a;
    border: 1px solid rgba(214, 165, 122, 0.6);
}

/* Tooltip trigger */
.tooltip {
  position: relative;
  font-size: 0.7rem;
  cursor: help;
  opacity: 0.85;
}

/* Hidden by default */
.tooltip .tooltip-text {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 0.5rem 0.6rem;
  font-size: 0.65rem;
  line-height: 1.4;
  background: rgba(15, 5, 25, 0.95);
  border: 1px solid rgba(200, 120, 255, 0.5);
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(200, 120, 255, 0.5);
  color: #f3eaff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

/* Show ONLY when hovering/focusing (?) */
.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
  opacity: 1;
}


/* Legend container */
.compat-legend {
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 0.75rem;
}

@media (min-width: 900px) {
  .compat-legend {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legend item */
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background:
    linear-gradient(
      to bottom,
      rgba(70, 20, 100, 0.35),
      rgba(15, 5, 25, 0.9)
    );
  border: 1px solid rgba(200, 120, 255, 0.25);
  box-shadow:
    0 0 10px rgba(150, 70, 220, 0.3),
    inset 0 0 6px rgba(255, 255, 255, 0.1);
}

/* Tier badge */
.legend-tier {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tier coloring (matches list) */
.legend-item.gold .legend-tier {
  color: #ffd98a;
  border: 1px solid rgba(255, 217, 138, 0.6);
}

.legend-item.silver .legend-tier {
  color: #d0d4dd;
  border: 1px solid rgba(208, 212, 221, 0.6);
}

.legend-item.bronze .legend-tier {
  color: #d6a57a;
  border: 1px solid rgba(214, 165, 122, 0.6);
}

/* Description */
.legend-desc {
  color: #e0d4f2;
  line-height: 1.4;
  opacity: 0.9;
}
