/* Agents of Tech games site. Light and dark follow the device setting. */
:root {
  --bg: #fbf7f2;
  --bg-2: #ffffff;
  --ink: #1e2a3a;
  --ink-2: #566172;
  --line: #e7e0d6;
  --accent: #0f8b8d;
  --accent-ink: #ffffff;
  --warm: #f29e4c;
  --shadow: 0 10px 30px rgba(30, 42, 58, 0.10);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a2b;
    --bg-2: #1c2438;
    --ink: #f3f0ea;
    --ink-2: #b9bfcc;
    --line: #2f3a55;
    --accent: #2db5b2;
    --accent-ink: #0f1a2a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: 0.2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; margin-left: 18px; font-size: 15px; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 36px 0 20px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.hero .icons { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .icons a { display: block; }
.hero .icons img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }

/* Game sections */
.game {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 28px 0;
  scroll-margin-top: 16px;
}
.game-head { display: flex; gap: 20px; align-items: center; }
.game-head img { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; box-shadow: var(--shadow); }
.game-head h2 { margin: 0; font-size: 28px; line-height: 1.2; }
.game-head .tag { margin: 4px 0 0; color: var(--ink-2); font-weight: 700; }
.game .about { margin: 18px 0 8px; font-size: 17px; }
.features { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); }
.features li { margin: 4px 0; }

.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots img {
  width: 210px;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg);
}

.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.store small { display: block; font-weight: 600; font-size: 11px; opacity: 0.8; letter-spacing: 0.3px; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.store:hover { opacity: 0.9; }
.store.soon { background: transparent; color: var(--ink-2); border: 2px dashed var(--line); cursor: default; }

/* Footer */
.foot { padding: 30px 0 48px; color: var(--ink-2); font-size: 14px; text-align: center; }
.foot a { color: var(--ink-2); font-weight: 700; margin: 0 8px; }

/* Privacy policy */
.doc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 12px 0 28px; }
.doc h1 { margin-top: 0; font-size: 32px; line-height: 1.2; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc h3 { font-size: 16px; margin: 18px 0 4px; }
.doc p, .doc li { font-size: 16px; }
.doc .updated { color: var(--ink-2); }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

@media (max-width: 640px) {
  .game { padding: 20px; }
  .game-head img { width: 72px; height: 72px; border-radius: 18px; }
  .game-head h2 { font-size: 23px; }
  .shots img { width: 170px; }
  .top .wrap { flex-wrap: wrap; row-gap: 6px; }
  .brand { font-size: 18px; }
  .nav a { margin: 0 14px 0 0; }
  .doc { padding: 20px; }
}
