:root {
  color-scheme: dark;
  --bg: #111711;
  --panel: #1c241b;
  --line: #394735;
  --text: #f2f5e9;
  --muted: #b9c4b4;
  --accent: #d0fc79;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
p { line-height: 1.7; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.bar, .footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; }
.bar { min-height: 5.25rem; border-bottom: 1px solid var(--line); padding-block: .75rem; }
.bar nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.bar a, .footer a { text-decoration: none; }
.bar a:hover, .footer a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 780; font-size: 1.18rem; }
.mark { width: .9rem; aspect-ratio: 1; background: var(--accent); box-shadow: .28rem .27rem 0 #62803b; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 8rem); }
.eyebrow { color: var(--accent); font: 700 .8rem/1.4 ui-monospace, monospace; letter-spacing: .11em; margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.9vw, 6rem); line-height: 1.08; letter-spacing: -.06em; }
h2 { font-size: clamp(1.6rem, 1rem + 2.1vw, 3rem); line-height: 1.2; }
.intro { max-width: 29rem; font-size: 1.08rem; color: var(--muted); margin: 1.35rem 0 1.65rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; gap: 1rem; padding: .65rem 1.1rem; background: var(--accent); color: #17220a; text-decoration: none; font-weight: 760; }
.button:hover { background: #e0ffa5; }
.stage { border: 1px solid var(--line); background: #1e2b1b; box-shadow: .55rem .55rem 0 #0b110a; }
.stage-head, .stage-foot { display: flex; gap: .35rem; align-items: center; padding: .85rem 1rem; font: .7rem ui-monospace, monospace; color: var(--muted); }
.stage-head i { width: .42rem; aspect-ratio: 1; border-radius: 50%; background: #82916a; }
.stage-head span { margin-inline-start: auto; }
.stage-foot { justify-content: space-between; }
.stage-grid { aspect-ratio: 1.45; position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(#a5c48821 1px, transparent 1px), linear-gradient(90deg, #a5c48821 1px, transparent 1px), #182117; background-size: 1.7rem 1.7rem; }
.platform, .block, .orbit { position: absolute; }
.platform { height: 8%; border-top: 4px solid #a6c765; background: #50613b; }
.p1 { left: 8%; bottom: 17%; width: 36%; }.p2 { left: 48%; bottom: 38%; width: 32%; }.p3 { left: 79%; bottom: 57%; width: 18%; }
.block { top: 26%; left: 42%; width: 12%; aspect-ratio: 1; background: var(--accent); box-shadow: .4rem .4rem 0 #78984e; transform: rotate(-13deg); }
.orbit { inset: 20% 24% 24% 35%; border: 1px dashed #a3be717a; border-radius: 50%; transform: rotate(-32deg); }
.section { padding-block: clamp(2.25rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.muted, .steps p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
ol.steps { padding-left: 0; list-style-position: inside; }
.steps > * { border: 1px solid var(--line); background: var(--panel); padding: 1.25rem; }
.steps li::marker { color: var(--accent); }
.steps li h3 { display: inline; }
.steps p { margin: .55rem 0 0; }
.footer { border-top: 1px solid var(--line); padding-block: 1.45rem; color: var(--muted); }
.arcade { --bg: #19141e; --panel: #261e2d; --accent: #f9c588; --line: #473851; --muted: #cec0d3; min-height: 100vh; background: var(--bg); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
}
.game-card > img, .game-card > .survival-arena {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}
.game-card > :is(h3, p, footer) { margin-inline: 1.1rem; }
.game-card h3 { margin-top: .8rem; font-size: 1.3rem; }
.game-card p { margin-block: .25rem .7rem; color: var(--muted); }
.game-card footer { margin-top: auto; padding-block: .25rem .6rem; border-top: 1px solid var(--line); }
.game-card a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.game-card a:hover { color: var(--accent); }
.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(2rem, 7vw, 5rem);
}
.game-feature .cover { aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.game-feature h1 { font-size: clamp(2rem, 1.25rem + 3vw, 4rem); text-wrap: balance; }
.game-feature p { color: var(--muted); }
.game-feature .controls { margin-bottom: 1.5rem; font-size: .9rem; }
.survival-arena {
  background:
    radial-gradient(circle at 50% 53%, #f5ba72 0 7%, transparent 7.5%),
    radial-gradient(circle at 22% 32%, #bd6767 0 4%, transparent 4.5%),
    radial-gradient(circle at 72% 24%, #bd6767 0 5%, transparent 5.5%),
    radial-gradient(circle at 79% 72%, #bd6767 0 4%, transparent 4.5%),
    radial-gradient(circle at 32% 76%, #bd6767 0 3%, transparent 3.5%),
    repeating-radial-gradient(circle at 50% 53%, transparent 0 1.9rem, #cf98a326 1.9rem 2rem),
    #30243b;
}
@media (max-width: 45rem) {
  .hero, .game-feature { grid-template-columns: 1fr; }
}
