* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7fb;
  background-color: #000;
  --accent: rgb(55 96 118 / 1);
  --accent-soft: rgba(55, 96, 118, 0.18);
  --surface: rgba(255, 255, 255, 0.06);
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top left, rgba(55, 96, 118, 0.18), transparent 24%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 22%),
              #000;
}

img, a {
  color: inherit;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 64px) 20px 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: auto;
}

.logo-mark {
  display: none;
}

.logo-text {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: #d7e0f0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 40px;
  align-items: center;
  min-height: 62vh;
  padding: 40px 0;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(3rem, 4.5vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero p {
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d8dfe8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2b5f7c);
  color: #fff;
  box-shadow: 0 18px 45px rgba(55, 96, 118, 0.18);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.04);
}

.hero-aside {
  display: grid;
  gap: 20px;
}

.stat-card {
  padding: 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
  font-size: 3.5rem !important;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #b2bccd;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 20px;
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 240px;
}

.feature-card h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  color: #fff;
}

.feature-card p {
  color: #c4d0e1;
  line-height: 1.75;
}

.site-footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #7e8ea0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .page-shell {
    padding-left: clamp(40px, 5vw, 80px);
    padding-right: clamp(40px, 5vw, 80px);
  }

  .hero {
    gap: 56px;
  }

  .hero-copy {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 20px 16px 32px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.game-library {
  margin-top: 42px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.library-header h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.library-copy {
  color: #c4d0e1;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

#game-search {
  min-width: 260px;
  width: 100%;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#game-search::placeholder {
  color: rgba(245, 247, 251, 0.7);
}

.game-count {
  color: #9db1c9;
  font-size: 0.95rem;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.game-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(55, 96, 118, 0.4);
  box-shadow: 0 18px 40px rgba(55, 96, 118, 0.12);
}

.game-card a {
  display: block;
  color: #f5f7fb;
  text-decoration: none;
}

.game-card p {
  color: #a9bbd2;
  margin-top: 10px;
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .game-list {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .library-header {
    flex-direction: column;
    align-items: stretch;
  }

  .game-list {
    grid-template-columns: 1fr;
  }
}

.game-player {
  display: none;
  margin-top: 42px;
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.player-actions {
  display: flex;
  gap: 12px;
}

.player-header h2 {
  font-size: 2rem;
}

.player-frame {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

#game-iframe {
  width: 100%;
  height: 600px;
  border: none;
}

#game-iframe.fullScreen {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
}

.game-card {
  cursor: pointer;
}
