/* Mikek Development site. Colours follow the games' art: cream paper, plum ink, mint, gold, rose. */
:root {
  --paper: #fff6ea;
  --paper-2: #fdebd3;
  --card: #fffdf8;
  --ink: #4a3b52;
  --ink-soft: #6a5a70;
  --line: #e3d3c0;
  --accent: #6a4fb3;
  --mint: #a8e6cf;
  --gold: #ffc857;
  --rose: #ffaaa5;
  --radius: 18px;
  --wide: 1040px;
  --narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  line-height: 1.25;
}
h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; }
h2 { font-size: 24px; margin: 40px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }

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

/* Header */
.site-header { border-bottom: 2px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

/* Home hero */
.hero { padding-top: 56px; padding-bottom: 24px; }
.hero p { font-size: 19px; max-width: 620px; color: var(--ink-soft); margin: 0; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin: 18px 0; }
.game-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { a.game-card, a.game-card:hover { transition: none; transform: none; } }
.game-card .cover { aspect-ratio: 1024 / 500; object-fit: cover; width: 100%; border-bottom: 3px solid var(--ink); }
.game-card .body { padding: 14px 18px 18px; }
.game-card h3 { margin: 6px 0 4px; }
.game-card p { margin: 0; color: var(--ink-soft); }
.game-card.soon {
  border-style: dashed; box-shadow: none; background: transparent;
  justify-content: center; align-items: center; text-align: center; min-height: 240px;
}
.game-card.soon .body { padding: 24px; }

.badge {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--gold);
  font-size: 14px; font-weight: 700;
}
.badge.mint { background: var(--mint); }
.badge.rose { background: var(--rose); }

/* Sections */
.section { padding-top: 8px; padding-bottom: 24px; }
/* Text sections share the grid's left edge; only their lines are kept short. */
.narrow > * { max-width: var(--narrow); }
.lead { font-size: 19px; }
.muted { color: var(--ink-soft); }

/* Game page */
.game-hero { padding-top: 36px; padding-bottom: 8px; }
.game-hero .title { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.game-hero .title img {
  width: 96px; height: 96px; border-radius: 22px; border: 3px solid var(--ink); flex: none;
}
.game-hero .title p { margin: 0; color: var(--ink-soft); font-size: 18px; }
.feature {
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 5px 0 var(--ink); width: 100%;
}
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 6px; }
.button {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--mint); color: var(--ink);
  font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--ink);
}
.button:hover { background: #c4f0df; }
.button.disabled { background: var(--paper-2); color: var(--ink-soft); box-shadow: none; cursor: default; }

.shots {
  display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 18px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory;
}
.shots:focus-visible { outline-offset: 6px; }
.shots img {
  border: 3px solid var(--ink); border-radius: 16px; aspect-ratio: 1080 / 1920; object-fit: cover;
  scroll-snap-align: start;
}
@media (max-width: 640px) { .shots { grid-template-columns: repeat(3, 70%); } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features ul { margin: 0; padding-left: 20px; }

details {
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 10px 16px; margin: 10px 0;
}
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 4px; }

/* Documents (privacy policies, terms) */
main.doc { max-width: var(--narrow); margin: 0 auto; padding: 32px 20px 24px; }
.updated { color: var(--ink-soft); margin: 0 0 24px; }
.card {
  background: #fff1c9; border: 3px solid #e0a526; border-radius: 16px;
  padding: 14px 18px; margin: 20px 0;
}
.card.plain { background: var(--card); border-color: var(--line); }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #f3e5d3; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer {
  margin-top: 56px; border-top: 2px solid var(--line); background: var(--paper-2);
  color: var(--ink-soft); font-size: 15px;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 22px; padding-bottom: 28px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); }
.site-footer .tm { flex-basis: 100%; font-size: 13px; }
