:root {
  color-scheme: dark;
  --ink: #eef6f4;
  --muted: #aab8b5;
  --line: #31423f;
  --surface: #0f1716;
  --wash: #172321;
  --accent: #70d8c8;
  --accent-strong: #9af0e2;
  --header: rgba(15, 23, 22, 0.94);
  --card: #121e1c;
  --hero-wash: #13201e;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--accent-strong);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header);
}

.nav {
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 44px;
}

.brand-logo img {
  width: 124px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-showcase {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(112, 216, 200, 0.18), rgba(18, 30, 28, 0.84)),
    var(--card);
}

.showcase-track {
  height: 300px;
  display: flex;
  width: 300%;
  animation: showcase-slide 12s infinite;
}

.showcase-slide {
  width: 33.333%;
  display: grid;
  place-items: center;
  padding: 28px;
}

.showcase-slide span {
  width: min(280px, 100%);
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 22, 0.72);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.showcase-logo-slide {
  gap: 14px;
}

.showcase-logo-slide img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

@keyframes showcase-slide {
  0%,
  26% {
    transform: translateX(0);
  }

  33%,
  59% {
    transform: translateX(-33.333%);
  }

  66%,
  92% {
    transform: translateX(-66.666%);
  }

  100% {
    transform: translateX(0);
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content {
  padding: 24px 0 72px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.list a:hover {
  border-color: var(--accent);
}

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

.game-card {
  min-height: 238px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

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

.game-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.logo-slot {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(23, 32, 38, 0.04)),
    var(--wash);
  color: var(--accent-strong);
  font-size: 26px;
  font-weight: 800;
}

.logo-slot-image {
  background: transparent;
  border-color: rgba(112, 216, 200, 0.22);
}

.logo-slot-image img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.card-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-links a {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.policy {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.policy h1 {
  font-size: clamp(32px, 6vw, 52px);
}

.policy h2 {
  margin-top: 36px;
  font-size: 22px;
  line-height: 1.25;
}

.notice {
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  width: 86px;
  height: auto;
  display: block;
}

.language-dock {
  width: 180px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}

.language-trigger,
.language-options button {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  padding: 0 10px;
}

.language-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: var(--accent);
  background: rgba(112, 216, 200, 0.16);
}

.language-arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.language-dock.is-open .language-arrow {
  transform: rotate(180deg);
}

.language-options {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 30, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.language-options button {
  display: block;
}

.language-options button:hover,
.language-options button.is-active {
  border-color: var(--accent);
  background: rgba(112, 216, 200, 0.16);
}

.legal-page {
  --ink: #eef6f4;
  --muted: #aab8b5;
  --line: #31423f;
  --wash: #172321;
  --accent: #70d8c8;
  --accent-strong: #9af0e2;
  --header: rgba(15, 23, 22, 0.94);
  --card: #121e1c;
  background:
    linear-gradient(180deg, #13201e 0, #0f1716 340px);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
}

.legal-nav,
.legal-hero-inner,
.legal-document {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-hero-inner {
  padding: 44px 0 38px;
}

.legal-hero h1 {
  font-size: clamp(34px, 8vw, 58px);
}

.legal-document {
  padding: 42px 0 76px;
}

.legal-document article,
.legal-document section {
  max-width: 760px;
}

.legal-document h2 {
  margin: 34px 0 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.legal-document p {
  margin: 0 0 14px;
}

.legal-document [hidden] {
  display: none;
}

.legal-links .list {
  max-width: 520px;
}

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

  .game-card {
    grid-template-columns: 80px 1fr;
    min-height: 218px;
    padding: 22px;
  }

  .logo-slot {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 16px;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .hero {
    padding-top: 48px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-showcase,
  .showcase-track {
    min-height: 240px;
    height: 240px;
  }

  .brand-logo img {
    width: 110px;
  }

  .brand-logo {
    width: 110px;
    height: 38px;
  }

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

  .game-card {
    grid-template-columns: 72px 1fr;
    min-height: 0;
    padding: 18px;
  }

  .game-card h3 {
    font-size: 20px;
  }

  .game-card p {
    font-size: 15px;
  }

  .logo-slot {
    width: 72px;
    height: 72px;
    font-size: 20px;
  }

  .logo-slot-image img {
    width: 68px;
    height: 68px;
  }

  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .language-trigger,
  .language-options button {
    min-height: 38px;
    font-size: 14px;
  }

  .language-dock {
    width: 148px;
    right: 12px;
    bottom: 12px;
  }
}
