/* Foldbrook — strona gry. Bez zaleznosci; fonty z wlasnego serwera (SIL OFL 1.1). */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded Logo";
  src: url("../fonts/unbounded-logo.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #f6f0e4;
  --paper-2: #ece2cf;
  --card: #fffaf1;
  --ink: #2a2521;
  --soft: #6a5f55;
  --line: rgba(42, 37, 33, .14);
  --river: #2f86c0;
  --river-d: #1d6597;
  --meadow: #6f9a4e;
  --clay: #c4643e;
  --sand: #e9cd95;
  --night: #1b1511;
  --night-2: #2a211b;
  --gold: #ffd28a;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px -12px rgba(42, 37, 33, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--river-d); text-underline-offset: 3px; }
a:hover { color: var(--river); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Naglowek ─────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { width: 44px; height: 44px; }
.brand span { font-weight: 900; font-size: 26px; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.nav a.link { color: inherit; text-decoration: none; font-weight: 700; font-size: 16px; opacity: .85; }
.nav a.link:hover { opacity: 1; text-decoration: underline; }
.lang { display: inline-flex; border: 1.5px solid currentColor; border-radius: 999px; overflow: hidden; font-size: 14px; font-weight: 800; opacity: .9; }
.lang a, .lang span { padding: 3px 10px; color: inherit; text-decoration: none; }
.lang [aria-current] { background: currentColor; }
.lang [aria-current] > b { color: var(--night); }
.hero .lang [aria-current] > b { color: var(--night); }
.page-head .lang [aria-current] > b { color: var(--paper); }

/* ── Przyciski ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800;
  border-radius: 14px; padding: 12px 20px; line-height: 1.15; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-store { background: var(--paper); color: var(--ink); box-shadow: 0 6px 0 -2px rgba(0, 0, 0, .28); }
.btn-store:hover { color: var(--ink); background: #fff; }
.btn-store .lines { display: flex; flex-direction: column; }
.btn-store .small { font-size: 12px; font-weight: 700; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.btn-store .big { font-size: 20px; font-weight: 900; }
.btn-store.soon { background: transparent; color: inherit; border: 2px dashed currentColor; box-shadow: none; opacity: .8; cursor: default; }
.btn-store.soon:hover { transform: none; }
.btn-sm { padding: 7px 16px; font-size: 15px; border-radius: 999px; background: var(--gold); color: var(--night); }
.btn-sm:hover { color: var(--night); background: #ffe0aa; }
.light .btn-store { background: var(--ink); color: var(--paper); }
.light .btn-store:hover { background: #000; color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { background: radial-gradient(120% 90% at 85% 40%, #3a2a1f 0%, var(--night) 60%); color: #f7eee2; overflow: hidden; }
.hero a.link { color: #f7eee2; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; padding: 28px 0 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 0 0 18px; font-weight: 900; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--gold); display: block; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #e9dccb; margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { margin: 14px 0 0; font-size: 15px; color: #cbbba8; }
.hero-shot { position: relative; }
.hero-shot img { border-radius: 22px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-shot .tag {
  position: absolute; left: -14px; bottom: 26px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 15px;
  padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow); transform: rotate(-3deg);
}

/* ── Sekcje ───────────────────────────────────────────────────────── */
section { padding: 84px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 14px; font-weight: 800; color: var(--clay); margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 0 0 14px; font-weight: 900; letter-spacing: -.015em; }
.intro { max-width: 40em; color: var(--soft); margin: 0 0 40px; font-size: 19px; }
h3 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; font-weight: 900; }

/* papierowa karta z zagietym rogiem */
.paper {
  position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.paper::after {
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-top-right-radius: var(--radius);
  background: linear-gradient(225deg, var(--paper) 0 50%, var(--paper-2) 50% 100%);
  box-shadow: -3px 3px 6px -3px rgba(42, 37, 33, .35);
}

/* Jak grac */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: step; }
.step { padding: 14px 14px 22px; }
.step img { border-radius: 12px; margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.step h3::before {
  counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px;
  margin-right: 10px; border-radius: 50%; background: var(--river); color: #fff; font-size: 18px; vertical-align: 2px;
}
.step p { margin: 6px 4px 0; color: var(--soft); }
.step h3 { margin-left: 4px; }

/* Swiaty */
.band { background: var(--paper-2); }
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.world { overflow: hidden; }
.world img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.world .body { padding: 16px 20px 22px; }
.world .num { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--meadow); }
.world p { margin: 4px 0 0; color: var(--soft); font-size: 17px; }

/* Cechy + mapa */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.split > img { border-radius: var(--radius); box-shadow: var(--shadow); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.features svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--river-d); }
.features b { display: block; font-size: 19px; }
.features span { color: var(--soft); font-size: 17px; }

/* Uczciwie o reklamach */
.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fair .paper { padding: 26px 24px; }
.fair p { margin: 6px 0 0; color: var(--soft); font-size: 17px; }

/* Wezwanie na dole */
.cta-band { background: var(--night); color: #f7eee2; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .intro { color: #d9cbb8; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }
.cta-band img.icon { width: 112px; height: 112px; margin: 0 auto 22px; }

/* ── Stopka ───────────────────────────────────────────────────────── */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); }
.footer-inner { padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: 15px; color: var(--soft); }
.footer-inner .brand span { font-size: 20px; }
.footer-inner .brand img { width: 32px; height: 32px; }
.by { display: flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; }
.by:hover { color: var(--ink); }
/* Logo Dareia jak na stronach innych gier: litery na kafelkach, IA w kolorze marki */
.dareia { display: flex; gap: 2px; font-family: "Unbounded Logo", sans-serif; font-weight: 800; font-size: 10px; line-height: 1; }
.dareia span {
  width: 18px; height: 18px; border-radius: 4px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.dareia .acc { background: #FF5A36; color: #15131C; }
.by:hover .dareia span:nth-child(odd) { transform: translateY(-3px); }
.by:hover .dareia span:nth-child(even) { transform: translateY(3px); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); }
.footer-links a[aria-current] { text-decoration: none; font-weight: 800; }
.fonts-note { margin-left: auto; }
.legal-note { flex-basis: 100%; font-size: 14px; }

/* ── Strony tekstowe (polityka, regulamin, 404) ───────────────────── */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.doc { max-width: 780px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 6px; font-weight: 900; }
.doc .date { color: var(--soft); margin: 0 0 30px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { padding: 18px 26px; margin: 0 0 10px; }
.doc .summary ul { margin: 0; }
.doc .note { color: var(--soft); font-size: 16px; }
.notfound { text-align: center; padding: 80px 0 100px; }
.notfound .big { font-size: 120px; font-weight: 900; line-height: 1; color: var(--river); }
.notfound img { width: 140px; margin: 22px auto; }

/* ── Telefon / tablet ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 8px; }
  .steps, .worlds, .fair { grid-template-columns: 1fr 1fr; }
  .fonts-note { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 60px 0; }
  .steps, .worlds, .fair { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
  .hero-shot .tag { left: 8px; bottom: 12px; font-size: 13px; }
  .btn-store { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dareia span { transition: none !important; }
  .btn:hover { transform: none; }
}
