:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #111722;
  --panel-strong: #172033;
  --text: #f4f7fb;
  --muted: #b6c0d2;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #cf2e3a;
  --accent-2: #2f9fd6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 159, 214, 0.18), transparent 32rem),
    linear-gradient(180deg, #0d111a 0%, var(--bg) 34rem);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 76px;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(8, 10, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: min(278px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  padding: 0.45rem 0;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vw, 9rem) 1rem;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(8, 10, 15, 0.92));
}

.home-hero::before {
  background-image: url("bg.jpg");
}

.compact-hero {
  min-height: 34vh;
}

.compact-hero::before {
  background-image: url("banner4.jpg");
}

.hero-inner {
  width: min(100%, 980px);
  margin-inline: auto;
  text-align: center;
}

.avatar {
  width: min(260px, 58vw);
  margin: 0 auto 1.75rem;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  font-weight: 700;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
}

.hero p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.75rem 1.15rem;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: #e13e4b;
}

.button.secondary {
  background: var(--accent-2);
}

.split-section,
.about-layout,
.library-note {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.split-section,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.copy-block,
.story,
.profile-card,
.library-note {
  background: linear-gradient(180deg, rgba(23, 32, 51, 0.96), rgba(17, 23, 34, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.copy-block,
.story,
.library-note {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-2);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(207, 46, 58, 0.13);
  color: #fff;
  font-weight: 600;
}

.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(207, 46, 58, 0.95);
}

.play-button::after {
  content: "";
  position: absolute;
  inset: 24px 22px 22px 29px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stats article {
  min-height: 150px;
  padding: 1.3rem;
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats img {
  width: 46px;
  margin-bottom: 0.8rem;
}

.stats strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 600;
}

.about-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.profile-card {
  padding: 1.25rem;
  text-align: center;
}

.profile-card img {
  width: 100%;
  border-radius: 6px;
}

.profile-card h2 {
  margin-top: 1rem;
  font-size: 1.4rem;
}

.profile-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.story p {
  color: var(--muted);
}

.story hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.games-section {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 4rem);
  background: #161616;
}

.games-section h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.game-grid img {
  width: 100%;
  min-height: 86px;
  padding: 1rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.library-note {
  margin-block: clamp(3rem, 7vw, 5rem);
}

.library-note p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  background: #05070b;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: min(260px, 70vw);
}

@media (max-width: 820px) {
  .site-header,
  .site-nav {
    justify-content: center;
  }

  .site-header {
    position: static;
    flex-direction: column;
    gap: 0.75rem;
  }

  .split-section,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

  .stats article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 0.15rem 0.75rem;
    font-size: 0.74rem;
  }

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

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats article:last-child {
    border-bottom: 0;
  }
}
