:root {
  --bg: #080d12;
  --panel: rgba(16, 22, 29, 0.94);
  --panel-strong: #111a24;
  --card: rgba(17, 23, 31, 0.9);
  --card-border: rgba(1, 164, 254, 0.22);
  --text: #ebf7ff;
  --muted: #adc2d1;
  --accent: #01a4fe;
  --accent-strong: #01a4fe;
  --accent-soft: rgba(1, 164, 254, 0.18);
  --warning: #f8d36a;
  --success: #7ef7bf;
  --shadow: rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.site-header {
  position: relative;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem 1rem;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  background: #000000;
  text-align: center;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: min(100%, 1200px);
  filter: drop-shadow(0 0 18px rgba(1, 164, 254, 0.25));
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.intro {
  background: rgba(15, 21, 28, 0.78);
  border: 1px solid rgba(1, 164, 254, 0.15);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.intro-copy {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-top: 0.9rem;
}

.stats {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.stat {
  min-width: 160px;
  background: rgba(1, 164, 254, 0.05);
  border: 1px solid rgba(1, 164, 254, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  text-align: center;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.catalog-section {
  margin-top: 2.25rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 0.8rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(1, 164, 254, 0.16);
  border-radius: 999px;
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 27, 35, 0.96), rgba(13, 17, 22, 0.96));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(1, 164, 254, 0.42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.27);
}

.game-card .card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c1014;
  overflow: hidden;
}

.game-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 1rem 1.2rem;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  width: 100%;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  line-height: 1.45;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
}

.tag {
  background: rgba(1, 164, 254, 0.06);
  border: 1px solid rgba(1, 164, 254, 0.16);
  color: var(--accent);
  font-size: 0.72rem;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 0.5rem;
}

.primary-button,
.secondary-link {
  border: 1px solid rgba(1, 164, 254, 0.22);
  background: linear-gradient(135deg, rgba(1, 164, 254, 0.18), rgba(1, 164, 254, 0.12));
  color: var(--text);
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
  font-weight: 600;
}

.primary-button:hover,
.secondary-link:hover {
  transform: translateY(-1px);
  border-color: rgba(1, 164, 254, 0.38);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1.25rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop,
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 15, 0.8);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 18, 0.96);
  border: 1px solid rgba(1, 164, 254, 0.18);
  border-radius: 20px;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  background: #070b0f;
}

.lightbox-close,
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 22, 0.8);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 0.2;
  padding-bottom: 8px;
  z-index: 2;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(17, 22, 28, 0.98), rgba(10, 15, 20, 0.98));
  border: 1px solid rgba(1, 164, 254, 0.18);
  border-radius: 22px;
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.4);
}

.modal-content {
  padding: 2rem;
}

.modal-header {
  display: grid;
  grid-template-columns: minmax(250px, 420px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.modal-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(1, 164, 254, 0.12);
  background: #0d1318;
}

.modal-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.modal-description {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.modal-section {
  margin-top: 1.75rem;
}

.modal-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery-grid,
.video-grid,
.link-list {
  display: grid;
  gap: 1rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item img,
.video-frame {
  width: 100%;
  border-radius: 14px;
  background: #0d151d;
  border: 1px solid rgba(1, 164, 254, 0.12);
}

.gallery-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-frame {
  aspect-ratio: 16 / 9;
  border: 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.link-list a span:first-child {
  color: var(--muted);
}

@media (max-width: 700px) {
  .header-content {
    min-height: 180px;
  }

  .site-header {
    padding-top: 1rem;
  }

  .header-tagline {
    letter-spacing: 0.2em;
  }

  .modal-content {
    padding: 1.2rem;
  }

  .modal-header {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
