:root {
  color-scheme: dark;
  --bg: #020409;
  --card: rgba(2, 5, 10, 0.9);
  --line: rgba(214, 169, 80, 0.22);
  --ink: #f4ead6;
  --muted: rgba(244, 234, 214, 0.7);
  --accent: #d6a950;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  position: relative;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background-image: url('/assets/tiny-dungeon-wall-tile.png');
  background-repeat: repeat;
  background-size: 54px 56px;
  image-rendering: pixelated;
  opacity: 0.18;
}

body::after {
  box-shadow:
    inset 0 0 120px #000,
    inset 0 0 280px rgba(0, 0, 0, 0.92);
}

a { color: inherit; }
.container { position: relative; width: min(720px, calc(100% - 32px)); margin: 0 auto; }

.nav,
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav { padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(214, 169, 80, 0.2); }
.links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.94rem; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }

.hero,
.page { padding: clamp(44px, 10vw, 92px) 0; }
.hero { text-align: center; }
.icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.62),
    0 0 0 6px rgba(2, 5, 10, 0.78),
    0 0 0 8px rgba(214, 169, 80, 0.16);
}
h1 {
  margin: 0;
  color: #f6c765;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.5rem, 7.4vw, 4.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-shadow:
    0 3px 0 #5a3210,
    3px 0 0 #2a1808,
    -3px 0 0 #2a1808,
    0 -3px 0 #2a1808,
    0 7px 0 rgba(0, 0, 0, 0.52),
    0 0 18px rgba(116, 242, 168, 0.16);
}
.page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lede { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 1.12rem; }
.page > .lede { max-width: none; margin: 10px 0 0; font-size: 0.95rem; }
.actions,
.store-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.store-actions a { display: inline-flex; width: 135px; transition: opacity 140ms ease, transform 140ms ease; }
.store-actions a:first-child { width: 120px; }
.store-actions a:hover { opacity: 0.92; transform: translateY(-1px); }
.store-actions img { display: block; width: 100%; height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 800; text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #1b1002; }
.note { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }

.card { margin-top: 26px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42); }
h2 { margin: 28px 0 8px; font-size: 1.25rem; color: var(--accent); }
h2:first-child { margin-top: 0; }
p,
li { color: var(--muted); }
ul { padding-left: 1.2rem; }
.card a { color: var(--ink); font-weight: 800; }

.footer { padding: 28px 0 38px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 560px) { .nav, .footer-inner { flex-direction: column; text-align: center; } }
