.site-nav {
  background: #000;
  border-bottom: 1px solid rgb(38 38 38);
}

.site-nav-inner {
  width: 100%;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-brand img {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav-link {
  border: 1px solid rgb(64 64 64);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.site-nav-link:hover {
  background: rgb(23 23 23);
  border-color: rgb(82 82 82);
}

.site-user-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(64 64 64);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgb(212 212 212);
  background: rgba(23, 23, 23, 0.9);
}

.site-demo-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(30 64 175);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(147 197 253);
  background: rgba(23, 37, 84, 0.42);
  white-space: nowrap;
}

.surface-card {
  border: 1px solid rgb(38 38 38);
  background: rgba(23, 23, 23, 0.88);
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.surface-card-soft {
  border: 1px solid rgb(64 64 64);
  background: rgba(38, 38, 38, 0.9);
  border-radius: 0.625rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 24rem;
}

.game-card-header {
  min-height: 2rem;
}

.game-card-link,
.game-card-body {
  display: block;
  flex: 1;
}

.game-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(38 38 38);
  border-radius: 0.375rem;
  background: rgb(10 10 10);
  object-fit: cover;
}

.wishlist-button {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(64 64 64);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.65);
  color: rgb(245 245 245);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.wishlist-button:hover,
.wishlist-button[aria-pressed="true"] {
  border-color: rgb(244 63 94);
  background: rgba(127, 29, 29, 0.35);
  color: rgb(251 113 133);
}

.game-card-title {
  min-height: 4.25rem;
}

.game-card-tags {
  min-height: 4.25rem;
  align-content: flex-start;
}

.surface-panel {
  border: 1px solid rgb(38 38 38);
  background: rgba(10, 10, 10, 0.55);
  border-radius: 0.75rem;
}

.engine-aside {
  border: 1px solid rgb(38 38 38);
  background: rgba(15, 15, 15, 0.76);
  border-radius: 0.75rem;
}

.tile-list > li {
  border: 1px solid rgb(64 64 64);
  background: rgba(38, 38, 38, 0.9);
  border-radius: 0.625rem;
}

.toast-success {
  border-color: rgb(6 95 70);
  color: rgb(167 243 208);
  background: rgba(6, 78, 59, 0.78);
}

.toast-error {
  border-color: rgb(153 27 27);
  color: rgb(254 202 202);
  background: rgba(127, 29, 29, 0.8);
}

.site-onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(0.2rem);
}

.site-onboarding-modal[hidden] {
  display: none;
}

.site-onboarding-card {
  position: relative;
  width: min(42rem, calc(100vw - 2rem));
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: 0.5rem;
  background: rgba(8, 8, 8, 0.97);
  padding: 2.35rem;
  color: #f5f5f5;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7), 0 0 44px rgba(212, 175, 55, 0.2);
}

.site-onboarding-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: grid;
  height: 1.8rem;
  width: 1.8rem;
  place-items: center;
  border: 1px solid rgb(82 82 82);
  border-radius: 0.4rem;
  color: rgb(212 212 212);
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease;
}

.site-onboarding-close:hover,
.site-onboarding-close:focus-visible {
  border-color: rgba(212, 175, 55, 0.85);
  color: rgb(254 240 138);
  outline: none;
}

.site-onboarding-eyebrow {
  margin: 0 0 0.65rem;
  color: rgb(250 204 21);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-onboarding-card h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
}

.site-onboarding-copy {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
  color: rgb(229 229 229);
  font-size: 1rem;
  line-height: 1.65;
}

.site-onboarding-copy p {
  margin: 0;
}

.site-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.site-onboarding-primary,
.site-onboarding-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-onboarding-primary {
  background: white;
  color: #050505;
}

.site-onboarding-primary:hover,
.site-onboarding-primary:focus-visible {
  background: rgb(254 240 138);
  outline: none;
}

.site-onboarding-secondary {
  border: 1px solid rgb(82 82 82);
  color: rgb(212 212 212);
}

.site-onboarding-secondary:not(:disabled):hover,
.site-onboarding-secondary:not(:disabled):focus-visible {
  border-color: rgba(212, 175, 55, 0.85);
  color: rgb(254 240 138);
  outline: none;
}

.site-onboarding-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.84);
  border-bottom-color: rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(1rem);
}

.site-brand {
  color: #f8fafc;
}

.site-brand span {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.22);
}

.site-nav-link {
  border-color: rgba(212, 175, 55, 0.26);
  background: rgba(10, 10, 10, 0.45);
  color: #e5e7eb;
}

.site-nav-link:hover {
  border-color: rgba(212, 175, 55, 0.48);
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}

.site-home {
  min-height: calc(100vh - 4rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #050505 48rem),
    #050505;
}

.home-hero {
  position: relative;
  min-height: min(42rem, calc(100vh - 8rem));
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.08);
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 38%, rgba(0, 0, 0, 0.18) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.home-hero-inner {
  position: relative;
  display: flex;
  min-height: min(42rem, calc(100vh - 8rem));
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 7rem;
}

.home-kicker {
  margin: 0;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-hero-title {
  max-width: 48rem;
  margin: 0.65rem 0 0;
  color: #f8fafc;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
}

.home-hero-copy {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: #c7d0dc;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-primary-action,
.home-secondary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  padding: 0.82rem 1.05rem;
  font-size: 0.95rem;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-primary-action {
  background: #f8fafc;
  color: #050505;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42), 0 0 34px rgba(212, 175, 55, 0.18);
}

.home-primary-action:hover,
.home-primary-action:focus-visible {
  background: #fff4b8;
  transform: translateY(-1px);
  outline: none;
}

.home-secondary-action {
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(0, 0, 0, 0.38);
  color: #f3f4f6;
}

.home-secondary-action:hover,
.home-secondary-action:focus-visible {
  border-color: rgba(212, 175, 55, 0.8);
  color: #fff4b8;
  transform: translateY(-1px);
  outline: none;
}

.home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-hero-meta span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.44);
  padding: 0.45rem 0.7rem;
}

.home-library {
  width: min(76rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.home-section-heading {
  display: grid;
  max-width: 44rem;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.home-section-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.home-section-heading p:last-child {
  margin: 0;
  color: #a7b0bd;
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.surface-card {
  border-color: rgba(148, 163, 184, 0.17);
  background: rgba(14, 16, 19, 0.86);
  border-radius: 0.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.game-card {
  min-height: 28rem;
  overflow: hidden;
}

.game-card-media {
  border-color: rgba(148, 163, 184, 0.16);
  background: #050505;
  transition: transform 220ms ease, border-color 160ms ease, filter 160ms ease;
}

.game-card:hover .game-card-media {
  border-color: rgba(212, 175, 55, 0.34);
  filter: saturate(1.08);
  transform: translateY(-1px);
}

.featured-game-card {
  border-color: rgba(212, 175, 55, 0.28);
}

.is-coming-soon,
.placeholder-game-card {
  opacity: 0.82;
}

.home-status-pill,
.home-info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-status-pill {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.42);
  color: #c7d0dc;
}

.home-status-live {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(6, 78, 59, 0.22);
  color: #a7f3d0;
}

.home-info-chip {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(212, 175, 55, 0.11);
  color: #fde68a;
  cursor: pointer;
  text-transform: none;
}

.home-info-chip:hover,
.home-info-chip:focus-visible {
  border-color: rgba(253, 230, 138, 0.7);
  background: rgba(212, 175, 55, 0.18);
  color: #fff7cc;
}

.about-page {
  min-height: calc(100vh - 4rem);
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.11), transparent 28rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), transparent 26rem),
    #050505;
}

.about-hero {
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.about-hero-inner,
.about-section {
  width: min(72rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.about-hero-inner {
  padding: 6.5rem 0 5.5rem;
}

.about-hero h1 {
  max-width: 54rem;
  margin: 0.8rem 0 0;
  color: #f8fafc;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: 0;
}

.about-hero p:last-of-type {
  max-width: 46rem;
  margin: 1.35rem 0 0;
  color: #c7d0dc;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.about-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.about-section-heading {
  display: grid;
  max-width: 42rem;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.about-section-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.about-card-grid,
.about-available-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.about-card,
.about-feature {
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 0.5rem;
  background: rgba(14, 16, 19, 0.78);
  padding: 1.25rem;
}

.about-card h3,
.about-feature h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.about-card p,
.about-feature p,
.about-prose p,
.about-future p,
.about-faq-list p {
  margin: 0;
  color: #a7b0bd;
  font-size: 0.96rem;
  line-height: 1.7;
}

.about-card p,
.about-feature p {
  margin-top: 0.8rem;
}

.about-inline-link {
  color: #fb923c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

.about-inline-link:hover,
.about-inline-link:focus-visible {
  color: #fdba74;
  outline: none;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.about-split .about-section-heading {
  margin-bottom: 0;
}

.about-prose {
  display: grid;
  gap: 1rem;
}

.about-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flow;
}

.about-flow li {
  position: relative;
  min-height: 7rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  padding: 1.25rem;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.about-flow li::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: block;
  margin-bottom: 1.2rem;
  color: #d4af37;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.about-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 2px solid rgba(212, 175, 55, 0.72);
  border-right: 2px solid rgba(212, 175, 55, 0.72);
  transform: translateY(-50%) rotate(45deg);
}

.about-available-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-underhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-feature {
  display: block;
  min-height: 13rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a.about-feature:hover,
a.about-feature:focus-visible {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.about-feature span {
  display: block;
  margin-bottom: 1.15rem;
  color: #d4af37;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-future p {
  max-width: 50rem;
  font-size: 1.08rem;
  color: #c7d0dc;
}

.about-faq-list {
  display: grid;
  gap: 0.75rem;
}

.about-faq-list details {
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 0.5rem;
  background: rgba(14, 16, 19, 0.78);
  padding: 1rem 1.15rem;
}

.about-faq-list summary {
  cursor: pointer;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
}

.about-faq-list p {
  margin-top: 0.85rem;
}

.game-card-copy {
  margin: 0.35rem 0 0;
  min-height: 4.8rem;
  color: #a7b0bd;
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-placeholder-media {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(56, 189, 248, 0.06) 36%, rgba(10, 10, 10, 0.95)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
    #080808;
}

.wishlist-button {
  border-color: rgba(148, 163, 184, 0.24);
  font-size: 0;
}

.wishlist-button::before {
  content: "\2665";
  font-size: 1rem;
}

.wishlist-button:hover,
.wishlist-button[aria-pressed="true"] {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.12);
  color: #fde68a;
}

@media (max-width: 980px) {
  .home-game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-card-grid,
  .about-flow,
  .about-underhood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-flow li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .site-brand span {
    font-size: 0.9375rem;
  }

  .site-demo-badge {
    font-size: 0.6875rem;
    padding: 0.35rem 0.5rem;
  }

  .site-demo-badge-nav {
    display: none;
  }

  .site-onboarding-card {
    padding: 2rem 1.25rem 1.35rem;
  }

  .site-onboarding-actions {
    display: grid;
  }

  .home-hero,
  .home-hero-inner {
    min-height: calc(100vh - 9.5rem);
  }

  .home-hero-bg {
    object-position: 58% center;
  }

  .home-hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.92) 100%);
  }

  .home-hero-inner,
  .home-library {
    width: min(100% - 2rem, 76rem);
  }

  .home-hero-inner {
    padding: 3.5rem 0 5rem;
  }

  .home-hero-title {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
  }

  .home-hero-actions {
    display: grid;
  }

  .home-primary-action,
  .home-secondary-action {
    width: 100%;
  }

  .home-library {
    padding-top: 2.5rem;
  }

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

  .game-card {
    min-height: auto;
  }

  .about-hero-inner,
  .about-section {
    width: min(100% - 2rem, 72rem);
  }

  .about-hero-inner {
    padding: 4.5rem 0 4rem;
  }

  .about-actions {
    display: grid;
  }

  .about-section {
    padding: 3rem 0;
  }

  .about-card-grid,
  .about-flow,
  .about-underhood-grid {
    grid-template-columns: 1fr;
  }
}
