:root {
  --bg: #030504;
  --bg-soft: #0a0f0b;
  --panel: rgba(10, 16, 11, 0.84);
  --panel-strong: rgba(14, 22, 15, 0.95);
  --line: rgba(116, 255, 134, 0.2);
  --green: #63ff7a;
  --green-strong: #8dff9a;
  --green-deep: #1f5e28;
  --text: #f3fff4;
  --muted: #a5c9aa;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 255, 122, 0.22), transparent 0 28%),
    radial-gradient(circle at 85% 25%, rgba(99, 255, 122, 0.1), transparent 0 20%),
    linear-gradient(140deg, #020302 0%, #071009 40%, #020302 100%);
  color: var(--text);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background: none;
}

body::after {
  background:
    radial-gradient(circle at center, transparent 52%, rgba(0, 0, 0, 0.45) 100%);
}

main {
  min-height: 100vh;
  width: 100%;
  padding: clamp(1rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero,
.games-section {
  position: relative;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(1.4rem, 2.8vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(16, 24, 17, 0.96), rgba(5, 8, 5, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before,
.games-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(99, 255, 122, 0.16), transparent 32%, transparent 68%, rgba(99, 255, 122, 0.07));
  pointer-events: none;
}

.hero {
  min-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.hero-copy,
.games-section > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(141, 255, 154, 0.18);
  border-radius: 999px;
  background: rgba(99, 255, 122, 0.08);
  color: var(--green-strong);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(99, 255, 122, 0.2);
}

.gamertag {
  margin: 0 0 1rem;
  color: var(--green-strong);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  max-width: 54ch;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.6rem;
}

.stat-pill {
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(141, 255, 154, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.platform-button {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 180px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(141, 255, 154, 0.22);
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(99, 255, 122, 0.13), rgba(99, 255, 122, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(99, 255, 122, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.platform-button:hover,
.platform-button:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(141, 255, 154, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(99, 255, 122, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 26px rgba(99, 255, 122, 0.12);
}

.button-label,
.button-meta {
  text-transform: uppercase;
}

.button-label {
  font-size: 1rem;
  letter-spacing: 0.11em;
}

.button-meta {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.youtube {
  background: linear-gradient(180deg, rgba(255, 60, 60, 0.12), rgba(99, 255, 122, 0.04));
}

.twitch {
  background: linear-gradient(180deg, rgba(145, 70, 255, 0.16), rgba(99, 255, 122, 0.04));
}

.xbox {
  background: linear-gradient(180deg, rgba(99, 255, 122, 0.16), rgba(99, 255, 122, 0.05));
}

.playstation {
  background: linear-gradient(180deg, rgba(90, 132, 255, 0.12), rgba(99, 255, 122, 0.04));
}

.profile-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.photo-frame {
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(141, 255, 154, 0.26);
  background:
    radial-gradient(circle at 30% 25%, rgba(141, 255, 154, 0.22), transparent 26%),
    linear-gradient(145deg, rgba(99, 255, 122, 0.1), rgba(255, 255, 255, 0.02)),
    var(--bg-soft);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(99, 255, 122, 0.08),
    0 25px 55px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.photo-frame::before,
.photo-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(99, 255, 122, 0.16);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

.photo-frame::before {
  inset: 16px;
}

.photo-frame::after {
  inset: 34px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-frame span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.profile-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(141, 255, 154, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-label {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-value {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.profile-value:last-child {
  margin-bottom: 0;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-page main {
  min-height: 100vh;
  width: 100%;
  padding: clamp(1rem, 2.2vw, 2rem);
  display: grid;
  place-items: center;
}

.error-card {
  position: relative;
  width: min(100%, 920px);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 24, 17, 0.96), rgba(5, 8, 5, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.error-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(99, 255, 122, 0.16), transparent 32%, transparent 68%, rgba(99, 255, 122, 0.07));
  pointer-events: none;
}

.error-card > * {
  position: relative;
  z-index: 1;
}

.error-code {
  margin: 0 0 0.75rem;
  color: var(--green-strong);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(99, 255, 122, 0.22);
}

.error-title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.error-text {
  max-width: 44ch;
  margin: 0 auto 1.6rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.games-section {
  margin-top: 0;
}

h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.4rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  position: relative;
  z-index: 1;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--green-strong);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.games-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.interests-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  min-height: 0;
  padding: 1.15rem;
  border: 1px solid rgba(141, 255, 154, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(99, 255, 122, 0.03));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.game-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.game-index {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--green-strong);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured {
  background:
    linear-gradient(180deg, rgba(99, 255, 122, 0.11), rgba(99, 255, 122, 0.04));
  border-color: rgba(141, 255, 154, 0.28);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .hero-stats,
  .button-row {
    justify-content: center;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  main {
    padding: 1rem;
  }

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

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

  .platform-button {
    width: 100%;
  }

  .error-actions .platform-button {
    width: 100%;
  }

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