:root {
  color-scheme: dark;
  --ink: #f7f4ff;
  --muted: #c8c4df;
  --navy: #080a24;
  --panel: rgba(19, 19, 63, 0.88);
  --purple: #6e2bc4;
  --purple-light: #a64cff;
  --gold: #ffc83d;
  --gold-deep: #ef8f13;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(rgba(7, 9, 34, 0.64), rgba(7, 9, 34, 0.94)),
    url("castle-background.png") center top / cover fixed,
    var(--navy);
}

a {
  color: #ffd66b;
}

a:hover {
  color: #fff1b5;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 82px;
}

.site-header nav {
  display: flex;
  gap: 26px;
}

.site-header nav a,
.brand {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.hero,
.games-section,
.policy-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 70px 0 100px;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.game-logo {
  display: block;
  width: min(100%, 610px);
  height: auto;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.45));
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #21123c;
  background: linear-gradient(145deg, #ffe77a, var(--gold-deep));
  box-shadow: 0 14px 32px rgba(238, 142, 18, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: rgba(78, 39, 145, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(184, 70, 255, 0.34), transparent 66%);
  filter: blur(12px);
}

.hero-art img {
  position: relative;
  width: min(100%, 430px);
  border-radius: 28%;
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.46));
  transform: rotate(2deg);
}

.games-section {
  padding: 90px 0 130px;
}

.section-heading {
  max-width: 700px;
}

.section-heading h1 {
  margin: 0 0 36px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
}

.game-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.game-card img {
  width: 150px;
  border-radius: 28%;
}

.game-card h2 {
  margin: 0 0 8px;
}

.game-card p {
  max-width: 700px;
  color: var(--muted);
}

.policy-page {
  background:
    radial-gradient(circle at 70% 0%, rgba(116, 43, 199, 0.28), transparent 34%),
    linear-gradient(180deg, #11133d, #07081e 55%);
}

.language-toggle {
  padding: 10px 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.policy-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 58px 0 110px;
}

.policy-summary,
.policy-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.policy-summary {
  position: sticky;
  top: 24px;
  padding: 26px;
}

.policy-summary img {
  width: 90px;
  margin-bottom: 20px;
  border-radius: 24px;
}

.policy-summary h1 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1.08;
}

.policy-summary p:not(.eyebrow) {
  color: var(--muted);
}

.policy-summary .button {
  width: 100%;
  margin-top: 12px;
  font-size: 0.9rem;
}

.policy-content {
  padding: clamp(28px, 5vw, 62px);
}

.policy-content section > p:first-child {
  margin-top: 0;
  color: #e3def7;
  font-size: 1.08rem;
}

.policy-content h2 {
  margin: 40px 0 10px;
  color: #ffe28a;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content code {
  color: #f4e9ff;
}

footer {
  gap: 20px;
  min-height: 110px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  font-weight: 750;
}

@media (max-width: 800px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
    text-align: center;
  }

  .game-logo {
    margin: 0 auto;
  }

  .actions {
    justify-content: center;
  }

  .hero-art {
    grid-row: 1;
  }

  .hero-art img {
    width: min(70vw, 300px);
  }

  .policy-shell {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .policy-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header,
  footer,
  .hero,
  .games-section,
  .policy-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    max-width: 52vw;
  }

  .brand-logo {
    width: min(170px, 100%);
  }

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

  .game-card img {
    width: 110px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
