﻿:root {
  --bg-top: #05111b;
  --bg-mid: #0a2030;
  --bg-bottom: #0d2a37;
  --panel: rgba(6, 20, 31, 0.76);
  --line: rgba(118, 206, 255, 0.16);
  --text: #eff8ff;
  --muted: #a8c3d2;
  --accent: #c99b03;
  --accent-2: #67d6ff;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 22%, rgba(103, 214, 255, 0.16), transparent 28%),
    radial-gradient(circle at 34% 78%, rgba(201, 155, 3, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.webgl-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#webgl {
  display: block;
  width: 100%;
  height: 100%;
}

.page {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px clamp(18px, 4vw, 48px);
  z-index: 5;
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.75), transparent);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__eyebrow,
.eyebrow,
.game-card__tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand__title {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 70px) 80px;
}

.hero__content {
  width: min(720px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.38), rgba(6, 20, 31, 0.18));
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(2px);
}

h1 {
  margin: 14px 0 18px;
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero__lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  margin: 0 0 28px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: block;
  min-height: 170px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(118, 206, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.game-card--active {
  background: linear-gradient(135deg, rgba(103, 214, 255, 0.14), rgba(201, 155, 3, 0.12));
}

.game-card h2 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 clamp(18px, 5vw, 70px) 26px;
  color: rgba(239, 248, 255, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    align-items: flex-end;
    padding-top: 110px;
  }

  .hero__content {
    width: 100%;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px;
  }

  .hero {
    padding: 96px 14px 60px;
  }

  .hero__content {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.5rem);
  }

  .game-card {
    min-height: auto;
  }
}

.top-actions {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(118, 206, 255, 0.22);
  background: rgba(6, 20, 31, 0.46);
  color: #eff8ff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
  .top-actions {
    top: 14px;
    right: 14px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}