/* minikins.gg: the game's colours (cream card, brown ink, leaf green, gold) and its display font, Lilita One. */
:root {
  --cream: #fff9ec;
  --paper: #fffdf7;
  --ink: #3b2412;
  --muted: #7a6450;
  --leaf: #3f9a45;
  --leaf-dark: #2f7a35;
  --gold: #ffcc42;
  --sky: #cfe7ff;
  --line: rgba(92, 56, 24, .14);
  --shadow: 0 10px 30px rgba(59, 36, 18, .16);
  --radius: 22px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1d1610;
    --paper: #251c14;
    --ink: #f6ead8;
    --muted: #c8b39a;
    --leaf: #6cc46f;
    --leaf-dark: #8ad68c;
    --line: rgba(246, 234, 216, .14);
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--leaf-dark); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }

/* Hero: the sanctuary painting, the title and the phone */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(/img/sanctuary.jpg) center 35% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 22, 8, .78) 0%, rgba(40, 22, 8, .45) 55%, rgba(40, 22, 8, .1) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: 64px 0 72px; }
.hero h1 { text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.hero .lead { font-size: 1.2rem; max-width: 34em; color: #fff7ea; }
.hero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 18px; border: 3px solid rgba(255, 255, 255, .8); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.button.play { background: #111; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.button.play small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.button.gold { background: var(--gold); color: #3b2412; }
.button.leaf { background: var(--leaf); color: #fff; }
.phone { justify-self: center; width: min(280px, 70vw); aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 10px; background: #0f0f10; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }

/* Sections */
section { padding: 72px 0; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 40em; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card img { width: 64px; height: 64px; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

.fund { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--leaf) 10%, transparent)); }
.fund .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.fund .panel { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.fund ul { margin: 0 0 1em; padding-left: 1.2em; }
.fine { font-size: .85rem; color: var(--muted); }

.screens { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.screens .phone { width: min(260px, 72vw); }

/* Long pages: privacy, terms, support */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc li { margin-bottom: .4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0 1.5em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.note { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 14px; padding: 14px 18px; margin: 1em 0 1.5em; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .92rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site nav { display: flex; gap: 18px; }
footer.site a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(40, 22, 8, .78) 0%, rgba(40, 22, 8, .55) 60%, rgba(40, 22, 8, .35) 100%); }
  .grid { grid-template-columns: 1fr 1fr; }
  .fund .wrap { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .nav a.hide-small { display: none; }
  section { padding: 56px 0; }
}
