@import url("fonts/fonts.css");
/* The games page: the same Martian twilight palette and type as the TV and phone pages, laid out for any screen. */
:root {
  --bg: #12131B; --panel: #1C1E2A; --line: #2E3142; --fg: #E9E6F0; --muted: #9A97AC; --accent: #E2714F;
  --display: "Big Shoulders Display", "DIN Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next", -apple-system, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box }
html { background: var(--bg) }
body { margin: 0; background: radial-gradient(ellipse at 40% 10%, #1B1D29 0%, var(--bg) 60%); color: var(--fg); font: 17px/1.5 var(--body); -webkit-tap-highlight-color: transparent }
a { color: var(--accent) }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line) }
.horizon { display: block; width: 100%; height: clamp(160px, 28vw, 300px) }
.hero-text { position: absolute; inset: 0; display: grid; align-content: end; padding: 0 max(16px, env(safe-area-inset-left)) 18px; max-width: 980px; margin: 0 auto; text-shadow: 0 2px 12px rgba(0,0,0,.6) }
h1 { margin: 0; font: 700 clamp(44px, 9vw, 92px)/0.9 var(--display); text-transform: uppercase; color: var(--accent); letter-spacing: .02em }
h1 small { display: block; font-size: clamp(14px, 2.2vw, 22px); color: var(--fg); letter-spacing: .14em; opacity: .9 }
.hero-text p { margin: 10px 0 0; max-width: 560px; color: var(--fg); font-size: 16px }

.games { max-width: 980px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left)) 8px; display: grid; gap: 18px }
.game { --c: var(--accent); display: grid; grid-template-columns: 96px 1fr; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 12px; padding: 20px 22px 20px 18px }
.game.board { --c: #E2714F } .game.rogue { --c: #F0A52A } .game.racing { --c: #8CC3E6 } .game.farm { --c: #7DB36A }
.art { color: var(--c); display: grid; place-items: start center; padding-top: 4px }
.art svg { width: 84px; height: 84px }
.text { min-width: 0; display: grid; gap: 10px }
h2 { margin: 0; font: 700 34px/1 var(--display); text-transform: uppercase; color: var(--fg) }
h2 small { display: block; font: 600 12px var(--body); color: var(--c); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px }
.text > p { margin: 0 }
.needs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--muted) }
.needs li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px }
.links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 10px }
.play { display: inline-block; font: 600 17px var(--body); color: #12131B; background: var(--c); border: 1px solid var(--c); border-radius: 10px; padding: 12px 18px; text-decoration: none }
.play:hover { filter: brightness(1.08) }
.alt { display: inline-block; font: 600 17px var(--body); color: var(--fg); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; text-decoration: none }
.alt:hover { border-color: var(--c) }
.play.disabled { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--line); cursor: default }
.soon .text > p, .soon .needs { opacity: .85 }

.foot { max-width: 980px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px }
.foot p { margin: 0 }

@media (max-width: 600px) {
  /* phones: the horizon is a banner and the title sits under it instead of over the dunes */
  .horizon { height: 120px }
  .hero-text { position: static; padding: 14px 16px 18px; text-shadow: none }
  .hero-text p { font-size: 15px; color: var(--muted) }
  .game { grid-template-columns: 1fr; gap: 12px; padding: 18px 16px 18px 14px }
  .art { place-items: start } .art svg { width: 48px; height: 48px }
  h2 { font-size: 30px }
  .play, .alt { flex: 1; text-align: center }
}
