/* meenzergames.com: the site's one stylesheet. Plain CSS, no build step, no JS.
   Light and dark follow the device (prefers-color-scheme). Headings use Baloo 2 (SIL OFL, /fonts/OFL.txt),
   body text the system font. Phone first: the base rules are for a phone, wider screens add on top.
   Colours live only in the tokens below (both themes contrast-checked to WCAG AA). */

@font-face {
  font-family: "MG Baloo";
  src: url("/fonts/baloo2-latin.v1.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-017F, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #fbf7f1;
  --bg-soft: #f3ede3;
  --surface: #ffffff;
  --border: #e2d9ca;
  --border-strong: #c9bda9;
  --ink: #1b1840;
  --text: #3b3858;
  --muted: #5f5c7a;
  --link: #4b3bc9;
  --gold: #f6c544;
  --gold-top: #ffd96e;
  --gold-edge: #a87a06;
  --on-gold: #2b2000;
  --village-fg: #1c6e44;
  --village-bg: #ddf3e6;
  --wolf-fg: #a3202c;
  --wolf-bg: #fde4e3;
  --shadow: 0 1px 2px rgb(27 24 64 / 0.06), 0 10px 28px -14px rgb(27 24 64 / 0.22);
  /* the "night" art panels look the same in both themes */
  --night: #0e0e3b;
  --night-deep: #050424;
  --night-ink: #eef1ff;
  --night-text: #c4c9e2;
  --night-gold: #f8cb48;
  --font-display: "MG Baloo", "Baloo 2", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --page: 1080px;
  --prose: 720px;
  --gutter: 16px;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f2e;
    --bg-soft: #16173d;
    --surface: #1c1d48;
    --border: #2f3166;
    --border-strong: #4a4d86;
    --ink: #f3f1ff;
    --text: #cfcdea;
    --muted: #a6a4c9;
    --link: #bcb1ff;
    --village-fg: #7fe0ab;
    --village-bg: #173b36;
    --wolf-fg: #ffa8a4;
    --wolf-bg: #43182b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.6);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
li + li { margin-top: 0.35em; }
strong { color: var(--ink); font-weight: 650; }
a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible { outline-color: var(--night-gold); }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -120px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.prose { width: min(100% - 2 * var(--gutter), var(--prose)); margin-inline: auto; }
.narrow { max-width: var(--prose); }
.art-img { display: block; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { font-size: clamp(1.12rem, 1rem + 0.6vw, 1.3rem); color: var(--text); }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 0.6em;
  color: var(--muted);
  font: 700 0.85rem/1.3 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.center { text-align: center; }
.block-gap { margin-top: 48px; }
.center .actions { justify-content: center; }

/* ── Header ───────────────────────────────────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--border); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 1.3rem/1 var(--font-display);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav li { margin: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  font: 600 1.02rem/1 var(--font-display);
  text-decoration: none;
}
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }

/* phones: the links take their own row under the name */
@media (max-width: 559px) {
  .site-header nav { width: 100%; }
  .nav { margin-inline: -12px; }
}

/* ── Buttons, chips, badges ───────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.4em 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: 700 1.08rem/1.1 var(--font-display);
  text-align: center;
  text-decoration: none;
}
.btn-gold {
  background: linear-gradient(var(--gold-top), var(--gold));
  color: var(--on-gold);
  box-shadow: 0 4px 0 var(--gold-edge);
}
.btn-gold:hover { background: var(--gold-top); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-edge); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 2px var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.night .btn-ghost { color: var(--night-ink); box-shadow: inset 0 0 0 2px rgb(238 241 255 / 0.45); }
.night .btn-ghost:hover { background: rgb(238 241 255 / 0.1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
  font: 600 0.92rem/1.5 var(--font-display);
}
.team {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font: 700 0.85rem/1.5 var(--font-display);
}
.team-village { background: var(--village-bg); color: var(--village-fg); }
.team-wolf { background: var(--wolf-bg); color: var(--wolf-fg); }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 1.2em 0 0; }
.stores a { display: inline-block; border-radius: 10px; }
.stores img { display: block; width: auto; height: 48px; }

/* ── Sections and cards ───────────────────────────────────────────────────────────────── */

.section { padding-block: 56px; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: var(--prose); margin-bottom: 28px; }
.section-head p { margin: 0; }
@media (min-width: 860px) {
  .section { padding-block: 80px; }
}

.grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.grid > li { margin: 0; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35em; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--link);
}
/* a feature card: icon on top; on a phone the icon sits beside the text to keep the page short */
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; padding: 18px; }
  .feature .icon { grid-row: span 2; margin-bottom: 0; }
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── The "night" art panels (Werewolf Den's colours, same in both themes) ─────────────── */

.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--night-text);
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 56% 84%, #fff 50%, transparent 51%);
  opacity: 0.7;
}
.night h1, .night h2, .night h3 { color: var(--night-ink); }
.night .eyebrow { color: var(--night-text); }
.night a:not(.btn) { color: var(--night-gold); }

/* ── Home ─────────────────────────────────────────────────────────────────────────────── */

.hero { padding-block: 40px 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
@media (min-width: 860px) {
  .hero { padding-block: 72px 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

.stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  aspect-ratio: 5 / 4;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 6% 7%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.stage .moon {
  position: absolute;
  top: 10%;
  inset-inline-end: 12%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #ffe7a1 0%, var(--night-gold) 55%, #e2a91f 100%);
  box-shadow: 0 0 48px 12px rgb(248 203 72 / 0.32);
}
.stage .ground {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: radial-gradient(120% 100% at 50% 100%, #24275f 0%, #191b4c 60%, transparent 61%);
}
.stage img { position: relative; width: auto; height: 74%; }
.stage .char-werewolf { z-index: 1; height: 86%; margin-inline: -5%; }

/* a game card: art + text; the wide one sits side by side on big screens */
.game-card { overflow: hidden; padding: 0; }
.game-card .art { display: block; aspect-ratio: 40 / 21; background: var(--night); }
.game-card .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 22px; }
.game-card .title { margin: 0 0 0.35em; font-size: 1.6rem; }
.game-card .title a { color: var(--ink); text-decoration: none; }
.game-card .title a:hover { text-decoration: underline; }
.tagline { margin-top: -0.2em; color: var(--muted); font-weight: 600; }
/* side by side, the art keeps its whole picture: the sky above and the ground below it continue its own colours */
@media (min-width: 860px) {
  .game-card-wide { display: grid; grid-template-columns: 1.15fr 1fr; }
  .game-card-wide .art {
    display: flex;
    align-items: center;
    aspect-ratio: auto;
    background: linear-gradient(180deg, #0b0c32 0%, #0b0c32 50%, #191e4c 50%, #191e4c 100%);
  }
  .game-card-wide .art img { height: auto; }
  .game-card-wide .body { padding: 32px; align-self: center; }
}

.contact-box { padding: 28px 22px; }
@media (min-width: 640px) { .contact-box { padding: 40px; } }
.mail-big { font: 700 clamp(1.25rem, 1rem + 1.4vw, 1.75rem)/1.2 var(--font-display); }

/* ── Inner pages ──────────────────────────────────────────────────────────────────────── */

.page-head { padding-block: 40px 8px; }
@media (min-width: 860px) { .page-head { padding-block: 64px 16px; } }
.page-body { padding-block: 24px 64px; }
.page-body h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.page-body h3 { margin-top: 1.4em; }
.page-body > :first-child, .page-body .prose > :first-child { margin-top: 0; }

.crumbs { margin: 0 0 1em; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.95rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; opacity: 0.7; }
.crumbs [aria-current] { opacity: 0.85; }

.toc { padding: 18px 22px; border-radius: 16px; background: var(--bg-soft); }
.toc h2 { margin: 0 0 0.4em; font-size: 1.15rem; }
.toc ol { margin: 0; columns: 2 220px; column-gap: 24px; }
.toc li { break-inside: avoid; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { margin-bottom: 8px; color: var(--muted); font-weight: 600; text-align: start; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
thead th { color: var(--ink); font-family: var(--font-display); font-weight: 700; border-bottom-width: 2px; }

dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
dl.facts dt { color: var(--muted); font-weight: 600; }
dl.facts dd { margin: 0; color: var(--ink); }

/* ── Werewolf Den page ────────────────────────────────────────────────────────────────── */

.game-hero { padding-block: 32px 48px; }
.game-hero .crumbs a { color: var(--night-ink); }
.game-hero-grid { display: grid; gap: 24px; align-items: center; }
.game-hero .logo { width: 136px; height: 136px; }
.game-hero h1 { margin-bottom: 0.2em; color: var(--night-gold); }
.game-hero .lead { color: var(--night-ink); }
@media (min-width: 860px) {
  .game-hero { padding-block: 48px 72px; }
  .game-hero-grid { grid-template-columns: auto 1fr; gap: 40px; }
  .game-hero .logo { width: 220px; height: 220px; }
}

.glance { margin-top: 28px; padding: 16px 20px; border-radius: 16px; background: rgb(238 241 255 / 0.07); }
.glance dl.facts dt { color: var(--night-text); }
.glance dl.facts dd { color: var(--night-ink); }
@media (min-width: 640px) {
  .glance dl.facts { grid-template-columns: repeat(2, auto 1fr); }
}

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(var(--gold-top), var(--gold));
  box-shadow: 0 3px 0 var(--gold-edge);
  color: var(--on-gold);
  font: 800 1.15rem/1 var(--font-display);
}
.steps h3 { margin-bottom: 0.25em; font-size: 1.2rem; }
@media (min-width: 640px) {
  .steps > li { padding: 18px 22px 18px 76px; }
  .steps > li::before { top: 16px; inset-inline-start: 20px; }
}
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
}
.steps p { margin: 0; }
.steps p + p, .steps p + ul { margin-top: 0.6em; }
.steps ul { margin: 0.6em 0 0; }

.role { --accent: #5bbf5a; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.role-werewolf { --accent: #ffb000; }
.role-doctor { --accent: #e5484d; }
.role .pic {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 220px;
  padding-top: 16px;
  background: var(--bg-soft);
  background: radial-gradient(70% 80% at 50% 100%, color-mix(in srgb, var(--accent) 34%, var(--surface)) 0%, var(--bg-soft) 75%);
}
.role .pic img { width: auto; height: 200px; }
.role .body { padding: 20px 22px 22px; }
.role h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.5rem; }
.role dl { margin: 0; }
.role dt { margin-top: 0.8em; color: var(--ink); font: 700 1rem/1.4 var(--font-display); }
.role dd { margin: 0.15em 0 0; }

.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--ink);
  font: 700 1.1rem/1.35 var(--font-display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--link); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; }
.faq details > div > :last-child { margin-bottom: 0; }
.faq > p { margin-top: 1.2em; }

.play-band { padding-block: 56px; text-align: center; }
.play-band .lead { max-width: 560px; margin-inline: auto; color: var(--night-text); }
.play-band .actions, .play-band .stores { justify-content: center; }
.play-band small { display: block; margin-top: 20px; color: var(--night-text); font-size: 0.85rem; }

/* ── Apps: icons, family cards, editions ──────────────────────────────────────────────── */

.app-icon {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 22%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 2px 6px -2px rgb(0 0 0 / 0.2);
}
.app-icon-lg { width: 64px; height: 64px; }
.app-icon-xl { width: 96px; height: 96px; }

.family { display: flex; flex-direction: column; gap: 12px; }
.family-top { display: flex; align-items: center; gap: 14px; }
.family .title { margin: 0; font-size: 1.35rem; }
.family .title a { color: var(--ink); text-decoration: none; }
.family .title a:hover { text-decoration: underline; }
.family p, .family .chips { margin: 0; }
.family .more { margin-top: auto; padding-top: 4px; font-weight: 600; }

.app-head { display: grid; gap: 18px; align-items: center; }
.app-head h1 { margin-bottom: 0.15em; }
.app-head .lead { margin: 0; }
@media (min-width: 640px) {
  .app-head { grid-template-columns: auto 1fr; gap: 28px; }
}

.editions { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .editions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .editions { grid-template-columns: repeat(3, 1fr); } }
.edition {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.edition h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.edition .country { margin: 2px 0 6px; color: var(--muted); font-size: 0.93rem; font-weight: 600; }
.edition .follows { margin: 0 0 6px; font-size: 0.93rem; }
.links-inline { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 0.95rem; }

.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  font: 700 1rem/1.2 var(--font-display);
}
.night .soon { color: var(--night-ink); border-color: rgb(238 241 255 / 0.45); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Footer ───────────────────────────────────────────────────────────────────────────── */

.site-footer { margin-top: auto; padding-block: 40px 28px; border-top: 1px solid var(--border); background: var(--bg-soft); font-size: 0.97rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-grid p { margin: 0.5em 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--ink); }
.legal { margin-top: 24px; color: var(--muted); font-size: 0.88rem; }
.legal p { margin: 0.3em 0 0; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease; }
}

@media print {
  .site-header nav, .site-footer, .skip, .actions, .stores { display: none; }
  .night { background: none; color: #000; }
  .night h1, .night h2, .night .lead { color: #000; }
}
