﻿:root {
  --bg: #0f061c;
  --bg-deep: #07030f;
  --violet: #5d3a8c;
  --violet-bright: #8f5bd6;
  --mist: rgba(212, 193, 255, 0.18);
  --text: #f2ecff;
  --muted: #c8b7ea;
  --card-shadow: rgba(9, 4, 18, 0.75);
  --glow: rgba(143, 91, 214, 0.35);
}

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

body {
  font-family: "Spectral", serif;
  background: radial-gradient(circle at top, rgba(84, 47, 141, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/background-ultra.png") center/cover no-repeat;
  opacity: 0.2;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(112, 66, 182, 0.35), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(153, 92, 214, 0.25), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(88, 44, 140, 0.45), transparent 55%);
  z-index: -1;
}

.site-header {
  padding: 32px 6vw 16px;
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-radius: 18px;
  background: rgba(18, 9, 32, 0.55);
  box-shadow: 0 20px 40px rgba(6, 2, 14, 0.65);
  border: 1px solid rgba(143, 91, 214, 0.25);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(143, 91, 214, 0.5));
}

.brand-title {
  font-family: "Cinzel", serif;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 18px);
  margin-top: 4px;
}

.main {
  padding: 24px 6vw 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

.page {
  width: min(1000px, 100%);
  background: rgba(16, 8, 30, 0.6);
  border: 1px solid rgba(143, 91, 214, 0.3);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 24px 60px rgba(8, 4, 16, 0.7);
}

.page-title {
  font-family: "Cinzel", serif;
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.flow-text {
  color: var(--muted);
  line-height: 1.7;
}

.float-card {
  float: left;
  width: min(320px, 45%);
  margin: 6px 24px 16px 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(10, 5, 22, 0.75);
  border: 1px solid rgba(143, 91, 214, 0.4);
  box-shadow: 0 16px 32px rgba(6, 3, 14, 0.7);
}

.float-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(93, 58, 140, 0.35);
  border: 1px solid rgba(143, 91, 214, 0.4);
  color: var(--text);
  font-weight: 500;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: min(960px, 100%);
}

.card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 20px 45px var(--card-shadow);
  border: 1px solid rgba(143, 91, 214, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.7;
  filter: saturate(1.1);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.card-vs {
  --card-image: url("../img/new_vs_icon.png");
}

.card-hytale {
  --card-image: url("../img/new_hytale_icon.jpg");
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 6, 26, 0.2), rgba(10, 5, 24, 0.9));
}

.card-content {
  position: relative;
  z-index: 1;
}

.card h2 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 6, 30, 0.85);
}

.card:hover::before {
  transform: scale(1.06);
  opacity: 0.85;
}

.discord-card {
  width: min(840px, 100%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(24, 12, 44, 0.72);
  border: 1px solid rgba(143, 91, 214, 0.35);
  box-shadow: 0 18px 40px rgba(7, 3, 15, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--glow));
}

.discord-title {
  font-family: "Cinzel", serif;
  font-size: 20px;
  text-transform: uppercase;
}

.discord-subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.discord-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(12, 6, 26, 0.8);
}

.fade-in {
  animation: fadeInUp 0.9s ease forwards;
  opacity: 0;
  transform: translateY(16px);
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.2s; }
.fade-delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .card {
    aspect-ratio: 4 / 5;
  }

  .discord-card {
    flex-direction: column;
    text-align: center;
  }

  .float-card {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
}
