/* Literal Nobody: shared styles. The home page is plain and minimal; each game's pages add a theme
   class on <body> (see the bottom of this file). No framework, no build step. */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #fbfbf8;
  --line: #e4e4de;
  --accent: #ed8021;
  --radius: 14px;
  --max: 680px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

/* --- Home -------------------------------------------------------------------------------- */

.site-title { font-size: 2.1rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.site-tagline { color: var(--muted); margin: 0 0 48px; }

h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 48px 0 16px; }

.game {
  display: flex; gap: 18px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.game img { width: 84px; height: 84px; border-radius: 20px; image-rendering: pixelated; flex: none; }
.game h3 { margin: 0; font-size: 1.15rem; }
.game h3 a { text-decoration: none; }
.game p { margin: 2px 0 10px; color: var(--muted); font-size: 0.95rem; }

.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem;
  border: 1px solid var(--ink); text-decoration: none;
}
.store:hover { background: var(--ink); color: #fff; }
.store.soon { border-style: dashed; color: var(--muted); border-color: var(--line); pointer-events: none; }

.contact p { margin: 0 0 8px; }

footer { margin-top: 64px; color: var(--muted); font-size: 0.85rem; }

/* --- Text pages (privacy policy, support) ----------------------------------------------- */

.doc h1 { font-size: 1.9rem; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.doc h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 36px 0 8px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 0.9rem; }

/* --- Tower Crafter Deluxe theme: the game's sky, pixel art kept crisp ------------------- */

.theme-tcd { background: linear-gradient(#111360 0%, #1b3fa8 30%, #2d8be6 62%, #9ad6f5 88%, #d6f0fb 100%) fixed; color: #fff; }
.theme-tcd a:hover { color: #ffd38a; }
.theme-tcd .wrap { max-width: 760px; text-align: center; }
.theme-tcd .logo { width: min(100%, 520px); image-rendering: pixelated; margin: 8px auto 6px; display: block; }
.theme-tcd .pitch { font-size: 1.1rem; margin: 0 auto 28px; max-width: 520px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.theme-tcd .player {
  margin: 0 auto 28px; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  border: 4px solid #fff; background: #0e1a4f; box-shadow: 0 12px 30px rgba(8, 16, 60, .45);
  display: grid; place-items: center; color: #b9c6ff; font-size: 0.95rem;
}
.theme-tcd .player iframe { width: 100%; height: 100%; border: 0; }
.theme-tcd .store { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.theme-tcd .store:hover { background: #fff; color: #1b3fa8; }
.theme-tcd .store.soon { border-color: rgba(255,255,255,.5); color: rgba(255,255,255,.75); }
.theme-tcd .stores { justify-content: center; }
.theme-tcd footer { color: rgba(20, 30, 70, .8); }
.theme-tcd footer a:hover { color: #1b3fa8; }
