.game-page {
  --canvas: #0b1915;
  --surface: #122520;
  --surface-raised: #183029;
  --line: #2a4a40;
  --ink: #eef7f1;
  --muted: #b2cabf;
  --subtle: #a3bdb2;
  --amber: #ffbc70;
  --lavender-light: #b9efcb;
  --game-green: #6fdc8c;
  --game-blue: #5cb8ff;
  --game-gold: #ffbd67;
  --game-violet: #c5abff;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}
.game-page .brand-mark {
  color: #c5ffd7;
  background: #173a2c;
  border-color: #3b7658;
}
.game-page .site-footer { background: #091511; }

.game-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 50%, #28543c 0, transparent 60%),
    linear-gradient(145deg, #10271e, var(--canvas) 71%);
  border-bottom: 1px solid var(--line);
}
.game-hero-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  min-height: 36rem;
  padding-block: clamp(3rem, 5vw, 5.25rem);
}
.game-intro { position: relative; z-index: 1; }
.game-logo {
  width: clamp(4.2rem, 8vw, 6.2rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  border: 1px solid #4c7959;
  box-shadow: 0 .9rem 2rem #0918118f;
  margin-bottom: 1.3rem;
}
.game-intro h1 {
  font-size: clamp(3.1rem, 6.5vw, 6.5rem);
  letter-spacing: -.073em;
  line-height: .94;
}
.game-intro h1 span { display: block; color: var(--game-gold); }
.game-summary {
  max-width: 30rem;
  margin-block: 1.35rem 1.55rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.19rem);
}
.game-page .game-button {
  background: var(--game-green);
  border-color: var(--game-green);
  border-radius: .62rem;
  color: #082015;
}
.game-page .game-button:hover { background: #a8efb8; border-color: #a8efb8; }
.game-status { color: var(--subtle); font-size: .9rem; margin: .9rem 0 0; }
.game-hero-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 32rem);
  aspect-ratio: 1.07;
  justify-self: center;
}
.game-hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 14% 1% 9%;
  border: 1px solid #365b44;
  border-radius: 2rem;
  background: linear-gradient(135deg, #467d5220, #102e2280);
  content: "";
}
.showcase-shot {
  position: absolute;
  width: 45%;
  max-width: 15.4rem;
  border: .33rem solid #0a1712;
  border-radius: 1.2rem;
  outline: 1px solid #597c64;
  box-shadow: 0 1.8rem 2.45rem #050d09b5;
}
.showcase-tablet {
  left: 9%;
  top: 12%;
  transform: rotate(-9deg);
}
.showcase-floor {
  right: 11%;
  top: 5%;
  width: 48%;
  transform: rotate(7deg);
}
.game-section {
  padding-block: clamp(3rem, 6vw, 5.1rem);
  text-align: center;
}
.game-section h2, .game-support h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.03;
}
.game-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 64rem;
  margin: 1.6rem auto 0;
}
.game-feature {
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
  padding: clamp(1.15rem, 2.3vw, 1.65rem);
}
.game-feature h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); margin-block: 1rem .65rem; letter-spacing: -.035em; }
.game-feature p { color: var(--muted); max-width: 34ch; margin: 0 auto; }
.floor-swatches, .game-states, .daily-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2rem;
}
.floor-swatches span { width: 1.75rem; height: 1.75rem; border-radius: .3rem; border: 1px solid #e0cba87a; }
.floor-swatches span:nth-child(1) { background: repeating-linear-gradient(12deg, #a46536 0 4px, #bf8554 4px 9px); }
.floor-swatches span:nth-child(2) { background: #728068 conic-gradient(#73846a 25%, #a0ab87 0 50%, #73846a 0 75%, #a0ab87 0) 0 0 / .85rem .85rem; }
.floor-swatches span:nth-child(3) { background: radial-gradient(#9c836d 22%, transparent 24%) 0 0 / .47rem .49rem, #ddd3ba; }
.game-states span, .daily-example span {
  padding: .15rem .48rem;
  border-radius: .4rem;
  font-weight: 750;
  font-size: .9rem;
}
.game-states span { color: #c8e9ff; background: #1d3f55; border: 1px solid #366483; }
.daily-example { color: #ffd498; font-size: .9rem; }
.daily-example span { color: #171300; background: var(--game-gold); }
.feature-decor h3 { color: #d9c9fc; }
.feature-expansion h3 { color: #b7e2ff; }
.feature-daily h3 { color: #ffd498; }

.game-gallery {
  background: #10231b;
  border-block: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.game-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.65rem);
  max-width: 64rem;
  margin: 1.7rem auto 0;
}
.game-shots figure { margin: 0; min-width: 0; }
.game-shots a {
  display: block;
  border: 1px solid #46725c;
  border-radius: .9rem;
  background: var(--canvas);
}
.game-shots a:hover { border-color: var(--game-green); }
.game-shots img { border-radius: inherit; }
.game-shots figcaption { color: var(--muted); text-align: center; margin-top: .65rem; }
.game-support {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 3.15rem;
}
.game-page .game-button-secondary { color: var(--lavender-light); background: var(--surface-raised); border-color: #41735b; }
.game-page .game-button-secondary:hover { background: #26553e; border-color: #6aa885; }

@media (max-width: 55rem) {
  .game-hero-inner { min-height: unset; }
  .game-intro h1 { font-size: clamp(3rem, 7.6vw, 4.2rem); }
}
@media (max-width: 46rem) {
  .game-hero-inner { grid-template-columns: 1fr; gap: 1.3rem; }
  .game-intro h1 { font-size: clamp(3.3rem, 10.5vw, 5rem); }
  .game-hero-art { width: min(100%, 27rem); }
  .game-features { grid-template-columns: minmax(0, 1fr); max-width: 27rem; }
  .game-support { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 36rem) {
  .showcase-shot { border-width: .22rem; border-radius: .85rem; }
  .game-shots { grid-template-columns: minmax(0, 1fr); max-width: 16.5rem; gap: 1.4rem; }
  .game-shots figcaption { font-size: .9rem; }
}

.screenshot-viewer {
  box-sizing: border-box;
  width: min(100% - 1.5rem, 52rem);
  height: min(100dvh - 1.5rem, 65rem);
  padding: .75rem;
  border: 1px solid #46725c;
  border-radius: .9rem;
  background: var(--canvas);
  color: var(--ink);
}
.screenshot-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .75rem;
}
.screenshot-viewer::backdrop { background: #050d09ed; }
.screenshot-viewer form { justify-self: end; }
.screenshot-viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html:has(.screenshot-viewer[open]) { overflow: hidden; }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.game-preview {
  display: block;
  width: min(100%, 16.5rem);
  height: auto;
  margin: 1.25rem auto 0;
  border: 1px solid #46725c;
  border-radius: .9rem;
  background: var(--canvas);
}
.game-shots-title { margin-top: 2.5rem; }
