:root {
  --sky: #2bb7c6;       /* the Dune Bash icon's sky */
  --sky-deep: #13808f;
  --sand: #f6c46a;
  --dune: #e98a2e;
  --ember: #c85a1c;
  --cream: #fff7e8;
  --ink: #3a2416;
  --muted: rgba(58, 36, 22, 0.72);
  --card: #ffffff;
  --line: rgba(58, 36, 22, 0.12);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a { color: var(--sky-deep); }
img { max-width: 100%; height: auto; display: block; } /* height auto: keep the aspect when CSS sets the width */

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 247, 232, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: 0.06em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; margin-inline-start: 18px; font-weight: 700; font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }

/* The studio wordmark: SAND + an orange X, "games" small */
.logo { font-weight: 900; letter-spacing: 0.04em; gap: 0; }
.logo .x { color: var(--dune); }
.logo small { font-size: 0.62em; letter-spacing: 0.18em; font-weight: 800; color: var(--muted); margin-inline-start: 0.35em; }

/* Studio hero: sky fading into sand, with a dune silhouette */
.studio-hero {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, var(--sky) 0%, #8fd6d0 45%, var(--sand) 100%);
  color: #fff; padding: 88px 0 120px;
}
.studio-hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 90px;
  background: var(--cream);
  clip-path: polygon(0 60%, 18% 30%, 34% 55%, 52% 18%, 70% 50%, 86% 28%, 100% 48%, 100% 100%, 0 100%);
}
.studio-hero h1 {
  margin: 0; font-size: clamp(2.8rem, 9vw, 5.2rem); line-height: 1; font-weight: 900; letter-spacing: 0.05em;
  text-shadow: 0 4px 0 rgba(19, 128, 143, 0.55);
}
.studio-hero h1 .x { color: #ffb347; }
.studio-hero p { font-size: 1.2rem; max-width: 36ch; margin: 18px auto 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }

/* Game cards on the studio page */
.section { padding: 24px 0 64px; }
.section h2 { font-size: 1.6rem; margin: 0 0 18px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.game-card {
  display: block; background: var(--card); border-radius: var(--radius); overflow: hidden;
  color: var(--ink); text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(120, 70, 20, 0.12); transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(120, 70, 20, 0.18); }
.game-card img.shot { width: 100%; aspect-ratio: 2556 / 1179; object-fit: cover; }
.game-card .body { display: flex; gap: 14px; align-items: center; padding: 16px 18px 20px; }
.game-card .body img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.game-card h3 { margin: 0; font-size: 1.25rem; }
.game-card p { margin: 2px 0 0; color: var(--muted); }
.badge { display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 800; color: var(--ember); letter-spacing: 0.04em; text-transform: uppercase; }

/* Game page hero */
.game-hero { background: linear-gradient(180deg, var(--sky) 0%, #8fd6d0 40%, var(--sand) 100%); overflow: hidden; }
.game-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 56px 0; }
.game-hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.game-hero h1 {
  margin: 18px 0 8px; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; font-weight: 900; letter-spacing: 0.04em;
  color: #fff; text-shadow: 0 4px 0 var(--ember);
}
.game-hero p.lead { font-size: 1.2rem; max-width: 34ch; margin: 0 0 24px; color: var(--ink); }
.game-hero .shot { border-radius: 22px; box-shadow: 0 18px 50px rgba(90, 40, 0, 0.3); }

.button {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 800;
}
.button.soon { background: rgba(58, 36, 22, 0.75); cursor: default; }
.button.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }

/* Screenshot strip: scrolls sideways inside itself, never the page */
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.shots picture { flex: none; width: min(560px, 85%); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 16px; box-shadow: 0 8px 24px rgba(90, 40, 0, 0.15); }

/* Text pages (privacy, terms, support) */
.page { padding: 40px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 6px; }
.page h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.page p, .page li { color: var(--ink); }
.updated { color: var(--muted); margin-top: 0; }
.mail {
  display: inline-block; margin: 6px 0 14px; padding: 12px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 1.1rem; text-decoration: none;
}
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* 404 */
.lost { text-align: center; padding: 80px 0 100px; }
.lost .code { font-size: 5rem; font-weight: 900; color: var(--dune); line-height: 1; }
.lost h1 { margin: 10px 0; }
.lost .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav a { color: var(--muted); margin-inline-end: 18px; text-decoration: none; font-weight: 700; }
footer nav a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .game-hero .wrap { grid-template-columns: 1fr; padding: 40px 0; }
  .top nav a { margin-inline-start: 12px; font-size: 0.9rem; }
  .studio-hero { padding: 64px 0 100px; }
}
