/* Strona główna Zlepków (index.html): granatowy motyw gry, kafelki różnej wielkości jak na stronie Crackle Blocks.
   Kolory tylko przez zmienne z theme.css (źródło: theme/palette.json). style.css zostaje dla g.html i privacy.html. */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Quicksand:wght@600;700&display=swap");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--background); color: var(--text);
  font-family: "Nunito", system-ui, sans-serif; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .brand, .nav, .store b, .btn { font-family: "Quicksand", "Nunito", sans-serif; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.muted { color: var(--text-muted); }

/* górny pasek */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; color: var(--text-muted); flex-wrap: wrap; }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-weight: 700; font-size: 12px; }
.lang button { all: unset; cursor: pointer; padding: 6px 9px; color: var(--text-muted); text-transform: uppercase; }
.lang button:hover { color: var(--text); }
.lang button.on { background: var(--accent); color: var(--on-accent); }

/* nagłówek strony */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 32px 0 72px; }
.letters { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }
.letters span {
  display: inline-grid; place-items: center; width: 48px; height: 56px; border-radius: 12px;
  background: var(--tile-on); color: var(--tile-text); font: 700 28px "Quicksand", sans-serif;
}
.letters span.z { background: var(--amber); color: var(--on-accent); }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 18px 0 18px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--text-muted); max-width: 580px; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta [hidden] { display: none; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 14px;
  background: var(--surface2); border: 1px solid var(--line); min-width: 190px;
}
.store:hover { border-color: var(--accent); }
.store svg { width: 26px; height: 26px; fill: var(--text); flex: none; }
.store small { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.2; }
.store b { display: block; font-size: 19px; line-height: 1.15; }
.facts { margin-top: 18px; font-size: 15px; color: var(--text-muted); }

/* telefon z zrzutem */
.phone {
  width: min(330px, 80vw); margin: 0 auto; border-radius: 36px; padding: 10px;
  background: var(--surface2); border: 1px solid var(--line); box-shadow: 0 30px 80px var(--overlay);
}
.phone img { border-radius: 28px; width: 100%; height: auto; }
.phone.small { width: min(250px, 70vw); border-radius: 30px; padding: 8px; }
.phone.small img { border-radius: 23px; }

/* sekcje */
.sec { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 10px 0 14px; }
.sec > .lead { margin-bottom: 28px; }

/* kafelki */
.t { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; position: relative; overflow: hidden; }
.t h3 { margin: 10px 0 6px; font-size: 20px; line-height: 1.25; }
.t p { margin: 0; color: var(--text-muted); font-size: 16px; }
.t .num {
  min-width: 40px; padding: 0 8px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--tile-on); color: var(--tile-text); font: 700 18px "Quicksand", sans-serif;
}
.t .num.amber { background: var(--amber); color: var(--on-accent); }
.t .num.accent { background: var(--accent); color: var(--on-accent); }
.t.glow { background: linear-gradient(160deg, var(--surface3), var(--surface) 70%); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* rangi */
.ranks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.ranks span { padding: 6px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700; }
.ranks span:last-child { background: var(--amber); color: var(--on-accent); border-color: var(--amber); }
.ranks i { color: var(--text-muted); font-style: normal; }

/* tryby (bento) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento .big { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.bento .big .phone.small { width: 200px; margin: 0; }
.bento .wide { grid-column: span 2; }
.mode { border-left: 6px solid var(--tile-on); }
.mode.daily { border-left-color: var(--accent); }
.mode.campaign { border-left-color: var(--bog); }
.mode.timed { border-left-color: var(--amber); }
.mode.training { border-left-color: var(--mode-blue); }

/* kampania */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps { display: grid; gap: 14px; }
.steps .t { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; align-items: start; }
.steps .t h3 { margin-top: 6px; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.act { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.act b { display: block; color: var(--amber); font-family: "Quicksand", sans-serif; margin-bottom: 6px; }
.act span { display: block; color: var(--text-muted); font-size: 15px; }
.guardians { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.guardians span {
  padding: 8px 14px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); font-weight: 700;
}
.guardians span.q { color: var(--tile-used-text); min-width: 44px; text-align: center; }
.shots2 { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.shots2 .phone { margin: 0; }
.shots2 .phone:nth-child(2) { margin-top: 48px; }

/* listy */
ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 30px; position: relative; color: var(--text-muted); font-size: 17px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 5px; background: var(--accent);
}
.code-demo { display: inline-block; margin-top: 22px; padding: 10px 16px; border-radius: 14px; background: var(--surface2); border: 1px dashed var(--line); }
.code-demo b { color: var(--amber); font-family: "Quicksand", sans-serif; letter-spacing: 1px; }

/* osiągnięcia */
.ach { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ach img { width: 50px; height: 50px; border-radius: 12px; }
.boards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.boards div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-weight: 700; }
.boards div small { display: block; font-weight: 400; color: var(--text-muted); font-size: 14px; }

/* galeria */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.gallery img { width: 220px; height: auto; border-radius: 22px; border: 1px solid var(--line); }
.gallery figcaption { margin-top: 10px; color: var(--text-muted); font-size: 15px; text-align: center; }

/* pomoc */
.faq h3 { font-size: 18px; margin-top: 0; }
.btn {
  display: inline-block; margin-top: 16px; padding: 11px 22px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px;
}
.go { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; }
.go:hover, .t a:hover { text-decoration: underline; }
.t p a { color: var(--accent); }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 15px; }
footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .acts, .boards { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding: 16px 0 48px; }
  .letters span { width: 40px; height: 48px; font-size: 24px; }
  .bento, .g3, .g2 { grid-template-columns: 1fr; }
  .bento .big, .bento .wide { grid-column: auto; grid-row: auto; }
  .store { flex: 1 1 100%; }
  .shots2 .phone.small { width: 44vw; }
  .shots2 .phone:nth-child(2) { margin-top: 32px; }
  .ranks i { display: none; }
  .bento .big { grid-template-columns: 1fr; }
  .bento .big .phone.small { width: min(240px, 70vw); margin: 0 auto; }
  .sec { padding: 44px 0; }
}
