:root {
  color-scheme: dark;
  font-family:
    Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070b14;
  color: #e9f1ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #070b14;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(53, 167, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 167, 255, 0.035) 1px, transparent 1px),
    #070b14;
  background-size: 48px 48px;
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 34px 0 64px;
}

.brand-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  min-height: 300px;
  overflow: hidden;
  border-top: 1px solid rgba(107, 227, 255, 0.38);
  border-bottom: 1px solid #20304a;
  background: #0d1424;
}

.brand-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 48px;
}

.brand-copy::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 92px;
  background: #35a7ff;
  content: "";
  transform: translateY(-50%);
}

.brand-kicker,
.section-index,
.catalog-count,
.game-number,
.game-status {
  margin: 0;
  color: #6be3ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 14px 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 1.02;
}

.brand-intro {
  margin: 0;
  color: #a7bad4;
  font-size: 1rem;
}

.brand-visual {
  min-height: 300px;
  background:
    linear-gradient(90deg, #0d1424 0%, rgba(13, 20, 36, 0.22) 40%),
    url("./public/assets/platform-arena.png") center / cover no-repeat,
    #111d31;
}

.games-section {
  padding-top: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

h2 {
  margin: 8px 0 0;
  font-size: 1.75rem;
}

.catalog-count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: #8ea6c7;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.game-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #20304a;
  border-radius: 8px;
  background: #0d1424;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.game-card:hover {
  border-color: rgba(53, 167, 255, 0.72);
  transform: translateY(-2px);
}

.game-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, #111d31 0 49%, #162743 49% 51%, #0d1424 51%);
  place-items: center;
}

.game-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.84));
  content: "";
}

.game-media[data-failed="true"]::before {
  color: #496789;
  content: "IMAGE OFFLINE";
  font-size: 0.72rem;
  font-weight: 700;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-body {
  display: grid;
  min-height: 250px;
  padding: 22px;
  grid-template-rows: auto auto 1fr auto;
}

.game-media-poster {
  background: #070b14;
}

.game-media-poster::after {
  display: none;
}

.game-media-poster img {
  object-fit: contain;
}

@media (max-width: 760px) {
  .game-media-poster {
    aspect-ratio: 2 / 3;
  }
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ff0c3;
}

.game-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d997;
  box-shadow: 0 0 12px rgba(66, 217, 151, 0.62);
  content: "";
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
}

.game-description {
  margin: 0;
  color: #8ea6c7;
  line-height: 1.7;
}

.game-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  margin-top: 24px;
  padding: 0 15px;
  border: 1px solid #35a7ff;
  border-radius: 5px;
  color: #e9f1ff;
  background: #1266a6;
  font-weight: 700;
  text-decoration: none;
}

.game-link:hover {
  background: #1679bf;
}

.game-link:focus-visible {
  outline: 3px solid #6be3ff;
  outline-offset: 3px;
}

.empty-state {
  margin: 0;
  padding: 36px;
  border: 1px dashed #2b4161;
  border-radius: 6px;
  color: #8ea6c7;
  text-align: center;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 18px;
  }

  .brand-header {
    grid-template-columns: 1fr;
  }

  .brand-copy {
    padding: 36px 26px;
  }

  .brand-copy::before {
    height: 64px;
  }

  .brand-visual {
    min-height: 180px;
  }
}

@media (max-width: 440px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
  }

  .brand-copy {
    padding: 32px 20px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .games-section {
    padding-top: 40px;
  }

  .game-body {
    min-height: 230px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.site-footer {
  margin-top: 48px;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #8ea6c7;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
