html {
  color-scheme: light;
}

body.site-page {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #8ea2a3;
  color: #273033;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    linear-gradient(to bottom, #96aaac 0 66%, #758570 66% 84%, #5d6f60 84% 100%);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(217, 210, 187, 0.88);
  border-bottom: 2px solid #415144;
}

.site-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.site-brand strong {
  font-size: 22px;
  line-height: 1;
}

.site-brand span {
  font-size: 13px;
  color: #415144;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-links a {
  color: #273033;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border: 2px solid transparent;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
  background: #f1eee3;
  border-color: #415144;
  box-shadow: 4px 4px 0 #415144;
}

.site-links [data-lang-toggle] {
  min-width: 34px;
  text-align: center;
}

.page-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: 46px;
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #273033;
  background: #f1eee3;
  color: #273033;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 5px 5px 0 #415144;
}

.pixel-button.secondary {
  background: #d9d2bb;
}

.pixel-board {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 2px solid #273033;
  box-shadow: 8px 8px 0 #415144;
  background:
    linear-gradient(to bottom, #a3b7b9 0 64%, #8a9b80 64% 82%, #637261 82% 100%);
}

.pixel-board::before,
.pixel-board::after {
  content: "";
  position: absolute;
  inset: auto auto 18% 0;
  width: 100%;
  height: 26%;
  background:
    linear-gradient(90deg, transparent 0 4%, #819476 4% 13%, transparent 13% 15%, #6f8368 15% 24%, transparent 24% 28%, #819476 28% 39%, transparent 39% 43%, #6f8368 43% 54%, transparent 54% 59%, #819476 59% 72%, transparent 72% 76%, #6f8368 76% 88%, transparent 88% 100%);
  opacity: 0.95;
}

.pixel-board::after {
  inset: auto 0 0;
  height: 18%;
  background:
    linear-gradient(to bottom, #596c5b 0 20%, #415144 20% 28%, #596c5b 28% 100%),
    repeating-linear-gradient(90deg, #7a694f 0 12px, transparent 12px 34px);
}

.pixel-sprite {
  position: absolute;
  inset: auto auto 16% 18%;
  width: 48px;
  height: 60px;
  background:
    linear-gradient(#9d7b49 0 0) 12px 8px / 10px 10px no-repeat,
    linear-gradient(#9d7b49 0 0) 28px 6px / 10px 10px no-repeat,
    linear-gradient(#d8b46a 0 0) 10px 13px / 28px 30px no-repeat,
    linear-gradient(#f0d890 0 0) 18px 26px / 12px 10px no-repeat,
    linear-gradient(#9d7b49 0 0) 16px 42px / 8px 12px no-repeat,
    linear-gradient(#9d7b49 0 0) 28px 42px / 8px 12px no-repeat,
    linear-gradient(#7a694f 0 0) 14px 54px / 12px 4px no-repeat,
    linear-gradient(#7a694f 0 0) 26px 54px / 12px 4px no-repeat;
}

.pixel-coin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #8f6d3c;
  background: #ddb85f;
  box-shadow: inset 0 0 0 3px #f3df8a;
}

.pixel-coin.c1 { inset: 28% 34% auto auto; }
.pixel-coin.c2 { inset: 40% 18% auto auto; }
.pixel-coin.c3 { inset: 24% 16% auto auto; }

.feature-grid,
.card-grid,
.timeline {
  display: grid;
  gap: 18px;
}

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

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

.feature-box,
.info-box,
.timeline-item {
  border: 2px solid #273033;
  background: rgba(241, 238, 227, 0.92);
  box-shadow: 6px 6px 0 #415144;
  padding: 18px;
}

.feature-box h2,
.info-box h2,
.timeline-item h2,
.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.feature-box p,
.info-box p,
.timeline-item p,
.timeline-item li {
  font-size: 15px;
  line-height: 1.7;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}

.metric {
  border: 2px solid #273033;
  background: rgba(217, 210, 187, 0.92);
  box-shadow: 5px 5px 0 #415144;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 28px;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li + li {
  margin-top: 8px;
}

.page-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid rgba(39, 48, 51, 0.25);
  color: #415144;
  font-size: 14px;
}

.game-page-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none;
}

.game-page-nav a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 2px solid #273033;
  background: rgba(241, 238, 227, 0.92);
  color: #273033;
  text-decoration: none;
  font: 700 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 4px 4px 0 #415144;
}

.game-page-nav a:hover {
  background: #ffffff;
}

@media (max-width: 860px) {
  .hero-band,
  .feature-grid,
  .card-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .site-nav-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 34px;
  }
}
