:root {
  /* Backgrounds */
  --bg: #050608;
  --bg-elevated: #0b0d11;
  --bg-panel: #101218;
  --bg-soft: #151821;

  /* Accent + text */
  --accent: #4fd1c5;           /* Soft teal accent */
  --accent-soft: rgba(79, 209, 197, 0.14);
  --accent-strong: #38b2ac;

  --text: #f9fafb;
  --muted: #a0aec0;

  /* Borders / lines */
  --border-subtle: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(148, 163, 184, 0.4);

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top, #1a202c 0, #050608 50%, #020308 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid backdrop */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      rgba(148, 163, 184, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0.08) 1px,
      transparent 1px
    );
  background-size: 80px 100%, 100% 80px;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  z-index: -1;
}

.container {
  width: min(1150px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 3.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 10, 0.96),
    rgba(5, 7, 10, 0.86),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  padding-block: 0.25rem;
  transition: color 0.16s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.7);
  transition: width 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  padding-block: 3.2rem 2.4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.hero-text {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #131621, #151821);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75);
}

.hero-text h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero-text span {
  color: var(--accent);
}

.hero-studio-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #0b0d11;
  border: 1px solid var(--border-subtle);
}

.hero-studio-card h2 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero-studio-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta {
  font-size: 0.8rem;
}

/* Hub layout */

.hub {
  padding-block: 0 3.5rem;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: stretch;
}

/* Library */

.hub-library {
  background: #0b0d11;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.2rem 1.3rem;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 540px;
  overflow-y: auto;
}

/* Scrollbar */

.game-list::-webkit-scrollbar {
  width: 6px;
}

.game-list::-webkit-scrollbar-track {
  background: transparent;
}

.game-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.game-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.game-item:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

.game-item.selected {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
}

.game-item-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.game-item-info h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.game-item-tags {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Detail panel */

.hub-detail {
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-soft));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.detail-header {
  margin-bottom: 1.4rem;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 209, 197, 0.35);
  color: var(--accent-strong);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.6rem;
}

.detail-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.detail-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.8fr);
  gap: 1.4rem;
}

.detail-cover {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.detail-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.detail-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
}

/* Buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.5);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Detail info */

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.detail-meta div {
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.detail-meta dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.detail-meta dd {
  margin: 0;
  font-size: 0.85rem;
}

.detail-description h3,
.detail-features h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.detail-description p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.detail-features ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Studio strip */

.studio-strip {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.studio-name strong {
  color: var(--accent);
}

/* Links */

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link:hover {
  border-color: rgba(79, 209, 197, 0.7);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  padding-block: 2rem 2.6rem;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hub-library {
    order: 2;
  }

  .hub-detail {
    order: 1;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-block: 0.7rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .section {
    padding-block: 3rem;
  }
}
