:root {
  --bg-gradient: radial-gradient(circle at 20% 20%, rgba(33, 230, 193, 0.15), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #0b1021 0%, #0b2f3a 50%, #1b113a 100%);
  --teal: #21e6c1;
  --purple: #8b5cf6;
  --text: #e3edf7;
  --muted: #94a3b8;
  --panel: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 25px rgba(33, 230, 193, 0.35);
  --radius: 18px;
  --font: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
}

.background-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(33, 230, 193, 0.15), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.18), transparent 40%);
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.75;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-12px);
  }
}

.hero {
  padding: 72px 5vw 36px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.hero__copy {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--glow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin-bottom: 10px;
}

.tagline {
  color: #c4d2e3;
  margin-bottom: 18px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn.primary {
  background: linear-gradient(120deg, rgba(33, 230, 193, 0.15), rgba(139, 92, 246, 0.2));
  border-color: rgba(33, 230, 193, 0.5);
  box-shadow: var(--glow);
}

.btn.ghost:hover,
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(33, 230, 193, 0.22);
  border-color: rgba(33, 230, 193, 0.6);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 230, 193, 0.12);
  color: #dffaf2;
  border: 1px solid rgba(33, 230, 193, 0.35);
  font-size: 13px;
}

.hero__panel {
  position: relative;
  background: linear-gradient(145deg, rgba(33, 230, 193, 0.06), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.panel__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(33, 230, 193, 0.28), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.25), transparent 35%);
  filter: blur(32px);
  opacity: 0.6;
}

.panel__content {
  position: relative;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel__title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.panel__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat__value {
  font-size: 22px;
  font-weight: 700;
  color: #e6fff8;
}

.pulse {
  align-self: flex-end;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(33, 230, 193, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 230, 193, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(33, 230, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 230, 193, 0);
  }
}

.layout {
  padding: 24px 5vw 56px;
}

.section {
  margin-top: 20px;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section__header h2 {
  font-size: 22px;
}

.section__hint {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid--games {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(33, 230, 193, 0.08), transparent 30%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), var(--glow);
  border-color: rgba(33, 230, 193, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status.live {
  color: #0fffe3;
  border-color: rgba(33, 230, 193, 0.6);
}

.status.wip {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.4);
}

.status.proto {
  color: #9ab6ff;
  border-color: rgba(154, 182, 255, 0.4);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quest {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quest:hover {
  border-color: rgba(33, 230, 193, 0.35);
  transform: translateX(2px);
}

.diff {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.diff.easy {
  color: #b8f5ff;
  border-color: rgba(184, 245, 255, 0.35);
}

.diff.normal {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.35);
}

.diff.hard {
  color: #ff8fab;
  border-color: rgba(255, 143, 171, 0.35);
}

.label.status {
  text-transform: none;
}

.games-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.games-card .card__actions {
  display: flex;
  justify-content: flex-end;
}

.badge {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(33, 230, 193, 0.3);
  color: #dffaf2;
  background: rgba(33, 230, 193, 0.12);
  font-weight: 600;
  font-size: 13px;
}

.footer {
  padding: 24px 5vw 36px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer p {
  margin-bottom: 6px;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.social a {
  color: #e3edf7;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.social a:hover {
  color: var(--teal);
  text-shadow: 0 0 12px rgba(33, 230, 193, 0.5);
}

@media (max-width: 640px) {
  .quest {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .panel__stats {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
}
