/* Ambiguous Games: one stylesheet for every page. */

:root {
  --bg: #f6f4ef;
  --ink: #1c1b22;
  --muted: #5f5c66;
  --line: #dedad2;
  --card: #ffffff;
  --accent: #4b3fb8;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111016;
    --ink: #ecebf2;
    --muted: #a19eab;
    --line: #2a2833;
    --card: #19181f;
    --accent: #b5adff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Instrument Sans", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand img { height: 60px; width: auto; display: block; }
.top nav { display: flex; gap: 22px; font-size: 15px; margin-left: auto; }
.brand.home-hide { display: none; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Home */
.hero { padding: 88px 0 64px; text-align: center; }
.hero h1 { margin: 0 0 36px; }
.hero-logo img { width: min(100%, 760px); height: auto; margin: 0 auto; }
.hero .tagline { color: var(--ink); font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 19px; max-width: 40em; margin: 0 auto; }

.games { display: grid; gap: 22px; padding-bottom: 80px; }
.game {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  border-radius: 28px; overflow: hidden; padding: 44px 48px 0; color: var(--g-ink);
  background: var(--g-bg); text-decoration: none; position: relative;
}
.game .text { padding-bottom: 44px; }
.game .icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 20px; box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
.game h2 { margin: 0; font-weight: 400; line-height: 1.1; }
.game .sub { margin: 6px 0 14px; opacity: 0.75; font-size: 15px; letter-spacing: 0.02em; }
.game p { margin: 0 0 22px; max-width: 30em; }
.pill { display: inline-block; font-size: 14px; padding: 7px 16px; border-radius: 99px; border: 1px solid currentColor; opacity: 0.85; }
.game .shots { display: flex; gap: 16px; justify-content: center; align-self: end; }
.game .shots img { width: 46%; max-width: 230px; border-radius: 26px 26px 0 0; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.game:hover .pill { opacity: 1; }

.herdwise { --g-bg: linear-gradient(160deg, #f8ecd2, #f1dcb2); --g-ink: #3d2a17; }
.herdwise h2 { font: 900 44px/1.05 "Nunito", sans-serif; color: #7a4a1e; }
.deepwell { --g-bg: radial-gradient(120% 100% at 70% 0%, #2a0f4a, #07060d 70%); --g-ink: #e6e2ff; }
.deepwell h2 { font: 400 40px/1.1 "Monoton", sans-serif; color: #d9b8ff; text-shadow: 0 0 18px rgba(186, 120, 255, 0.7); letter-spacing: 0.04em; }
.zenolith { --g-bg: radial-gradient(120% 100% at 30% 0%, #26204a, #0b0a14 70%); --g-ink: #e6e4ef; }
.zenolith h2 { font: 400 48px/1.05 "IM Fell English", serif; }

/* Game pages */
.page { padding: 64px 0 80px; }
.page-head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.page-head .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 4px 18px rgba(0,0,0,0.18); }
.page-head h1 { margin: 0; font-size: 44px; line-height: 1.1; font-weight: 400; }
.page-head .sub { margin: 4px 0 0; color: var(--muted); }
.page .lede { font-size: 20px; max-width: 34em; margin: 0 0 14px; }
.page .body { max-width: 36em; }
.page .body p { margin: 0 0 14px; }
.gallery { display: flex; gap: 20px; margin: 40px 0; overflow-x: auto; padding-bottom: 8px; }
.gallery img { width: 260px; flex: none; border-radius: 30px; border: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { color: var(--ink); font-weight: 600; }

/* Text pages (support, privacy) */
.doc { max-width: 42em; padding: 64px 0 80px; }
.doc h1 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 36px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.mail { display: inline-block; font-size: 20px; font-weight: 600; margin: 4px 0 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 40px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .top nav { gap: 16px; }
  .brand img { height: 46px; }
  .top .wrap { height: 80px; }
  .top nav .wide { display: none; }
  .hero { padding: 56px 0 36px; }
  .game { grid-template-columns: 1fr; padding: 32px 24px 0; border-radius: 22px; gap: 8px; }
  .game .text { padding-bottom: 20px; }
  .game .shots img { border-radius: 18px 18px 0 0; }
  .page-head .icon { width: 72px; height: 72px; border-radius: 17px; }
  .page-head h1 { font-size: 34px; }
  .gallery img { width: 200px; border-radius: 24px; }
}

.herdwise-title { font: 900 48px/1.05 "Nunito", sans-serif !important; color: #b06a2c; }
.deepwell-title { font: 400 42px/1.1 "Monoton", sans-serif !important; color: #8f4fe0; letter-spacing: 0.04em; }
.zenolith-title { font: 400 52px/1.05 "IM Fell English", serif !important; }
