:root {
  color-scheme: light;
  --ink: #252334;
  --paper: #fff8ed;
  --muted: rgba(37, 35, 52, 0.72);
  --line: rgba(100, 70, 38, 0.18);
  --accent: #b85616;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: #f5dfc1;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.game-site-header,
.game-site-footer,
.game-copy {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.game-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 6px;
}

.game-site-logo,
.game-site-nav,
.game-site-footer {
  display: flex;
  align-items: center;
}

.game-site-logo {
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.game-site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.game-site-nav {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-site-nav a,
.game-site-footer a,
.game-copy a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.shell {
  width: 100vw;
  min-height: min(820px, calc(100svh - 64px));
  padding: 14px 8px 22px;
  display: grid;
  place-items: center;
}

canvas {
  display: block;
  width: min(100%, calc((100vh - 16px) * 4 / 3), 960px);
  width: min(100%, calc((100svh - 16px) * 4 / 3), 960px);
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(76, 48, 25, 0.22);
  background: var(--paper);
  touch-action: none;
}

.game-copy {
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.78);
  box-shadow: 0 18px 46px rgba(76, 48, 25, 0.12);
}

.hero-copy h1,
.game-copy h2,
.game-copy h3,
.game-copy p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-copy p,
.game-copy li {
  color: var(--muted);
  line-height: 1.76;
}

.two-column,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.faq-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.44);
}

.game-site-footer {
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 26px;
  color: rgba(37, 35, 52, 0.62);
  font-size: 14px;
}

@media (max-width: 700px), (orientation: portrait) {
  .game-site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-site-nav {
    justify-content: flex-start;
  }

  .shell {
    padding: 6px;
    min-height: auto;
  }

  canvas {
    width: min(100%, calc((100svh - 12px) * 43 / 76), 430px);
    max-height: calc(100svh - 12px);
    aspect-ratio: 43 / 76;
    border-radius: 10px;
    box-shadow: 0 16px 50px rgba(76, 48, 25, 0.2);
  }

  .two-column,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .game-site-header,
  .game-site-footer,
  .game-copy {
    width: min(100%, calc(100vw - 16px));
  }

  .game-site-logo {
    font-size: 18px;
  }

  .game-site-nav {
    gap: 10px;
  }

  .game-site-nav a,
  .game-site-footer a {
    font-size: 13px;
  }
}
