:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5f6f7d;
  --line: #d9e1e7;
  --paper: #ffffff;
  --page: #f4f7f9;
  --teal: #1f9d8a;
  --coral: #f26f5b;
  --yellow: #f0bd3b;
  --green: #6fbf73;
  --blue: #4a7bd0;
  --shadow: 0 18px 44px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.portal-page,
.legal-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(23, 33, 43, 0.08);
  overflow: hidden;
}

.brand__mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #273541;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #e9f2f5;
  outline: none;
}

.portal-page {
  padding: 30px 0 0;
}

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10212c;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.88;
}

.hero__media figure {
  position: relative;
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

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

.hero__media figure:nth-child(1) img {
  object-position: center 42%;
}

.hero__media figure:nth-child(2) img {
  object-position: center 45%;
}

.hero__media figure:nth-child(3) img {
  object-position: center 36%;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(13, 29, 39, 0.68);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  max-width: 680px;
  padding: clamp(36px, 6vw, 72px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b8fff0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button-link--primary {
  border-color: #ffe38a;
  background: var(--yellow);
  color: #18202a;
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.page-section {
  padding: 58px 0;
}

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

.section-heading h2,
.legal-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

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

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.game-card__media {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
}

.game-card:nth-child(1) .game-card__media {
  background: #f4a6a1;
}

.game-card:nth-child(2) .game-card__media {
  background: #69d799;
}

.game-card:nth-child(3) .game-card__media {
  background: #88d88a;
}

.game-card__media img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 12px;
}

.game-card__body {
  padding: 18px;
}

.game-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef3f6;
  color: #304454;
  font-size: 0.76rem;
  font-weight: 800;
}

.info-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin-bottom: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.07);
}

.info-band > div {
  padding: 28px;
}

.info-band > div:first-child {
  border-right: 1px solid var(--line);
}

.info-band h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.info-band p {
  margin: 0;
  color: var(--muted);
}

.highlight-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b3b47;
  font-weight: 800;
}

.highlight-list li::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--coral);
  content: "";
  flex: 0 0 auto;
}

.highlight-list li:nth-child(2)::before {
  background: var(--teal);
}

.highlight-list li:nth-child(3)::before {
  background: var(--blue);
}

.site-footer {
  margin-top: 36px;
  background: #17212b;
  color: #d9e7ee;
}

.site-footer__inner {
  padding: 32px 0;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__company {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 900;
}

.site-footer__copy {
  margin: 6px 0 0;
  color: #9fb1bf;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-links a {
  color: #d9e7ee;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #b8fff0;
  outline: none;
}

.site-footer__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 231, 238, 0.18);
  color: #9fb1bf;
  font-size: 0.9rem;
}

.legal-main {
  padding: 44px 0 10px;
}

.legal-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(30px, 6vw, 58px);
  box-shadow: 0 12px 30px rgba(23, 33, 43, 0.08);
}

.legal-hero .eyebrow {
  color: var(--teal);
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-updated {
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 26px;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

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

.legal-section p + p {
  margin-top: 12px;
}

@media (max-width: 840px) {
  .site-header__inner,
  .site-footer__top,
  .site-footer__bottom,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  .hero,
  .hero__copy {
    min-height: 390px;
  }

  .hero__media {
    grid-template-columns: 1fr;
  }

  .hero__media figure:nth-child(2),
  .hero__media figure:nth-child(3) {
    display: none;
  }

  .hero__copy {
    padding: 30px;
  }

  .game-grid,
  .info-band {
    grid-template-columns: 1fr;
  }

  .info-band > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .site-footer__inner,
  .portal-page,
  .legal-main {
    width: min(100% - 22px, 1120px);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .site-nav a {
    padding: 8px 10px;
  }

  .hero h1,
  .legal-hero h1 {
    font-size: 2.35rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .button-link {
    width: 100%;
  }

  .game-card__media,
  .game-card__media img {
    height: 190px;
    min-height: 190px;
  }
}
