/* Sekcja Mixmeleona na wumiko.games — jeden arkusz dla wszystkich podstron gry.
   Kolory farb jak w lib/ui/palette.dart. Kroje lokalnie (OFL), bez Google Fonts. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farby gry */
  --red: #E5402F;
  --orange: #F28A1E;
  --yellow: #F6C431;
  --green: #3BA55C;
  --blue: #2F6FD8;
  --purple: #8E4CC0;

  /* Powierzchnie i tekst */
  --paper: #FBF6EE;
  --paper-2: #F3EADC;
  --card: #FFFFFF;
  --ink: #2A2320;
  --ink-2: #5C524C;
  --line: #E4D9C8;
  --link: #1F5BBF;
  --focus: #2F6FD8;
  --accent-ink: #FFFFFF;

  --radius: 18px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1C1815;
    --paper-2: #26201C;
    --card: #2D2622;
    --ink: #F6EFE6;
    --ink-2: #C9BDB2;
    --line: #40362F;
    --link: #8DB5FF;
    --focus: #8DB5FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Pasek farb — znak rozpoznawczy pod nagłówkiem */
.paint-strip {
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 16.66%, var(--orange) 0 33.33%, var(--yellow) 0 50%,
    var(--green) 0 66.66%, var(--blue) 0 83.33%, var(--purple) 0);
}

/* Nagłówek */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.35rem/1 var(--display); color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 2px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch {
  font-weight: 700; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.lang-switch:hover { border-color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 4px 16px; }
  .lang-switch { margin-left: auto; }
}

/* Przyciski sklepów */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 14px;
  background: #111; color: #fff; text-decoration: none;
  border: 1.5px solid #111;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 0.72rem; opacity: 0.85; }
.store-btn strong { font: 700 1.05rem/1.1 var(--text); }
.store-btn[aria-disabled="true"] { cursor: default; opacity: 0.88; }
@media (prefers-color-scheme: dark) {
  .store-btn { background: #000; border-color: #6b5f57; }
}
.store-note { font-size: 0.95rem; color: var(--ink-2); }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 48px; }
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px;
}
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.hero-art img { border-radius: 24px; box-shadow: 0 18px 50px rgb(60 40 20 / 0.18); width: 100%; }

/* Sekcje */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-2); }
.section-intro { max-width: 60ch; color: var(--ink-2); margin-bottom: 32px; }

/* Jak grać — trzy kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font: 800 1.1rem/1 var(--display); color: #fff; margin-bottom: 12px;
  background: var(--step-color, var(--red));
}
.steps li:nth-child(2) { --step-color: var(--blue); }
.steps li:nth-child(3) { --step-color: var(--green); }
.steps p { margin: 0; color: var(--ink-2); }

/* Mieszanie kolorów: R + Y = O itd. */
.mixes { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.mixes li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.drop {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); display: inline-block; flex: none;
  box-shadow: inset -3px -3px 0 rgb(0 0 0 / 0.12);
}

/* Zrzuty ekranu */
.shots { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 270px)); justify-content: center; }
.shots figure { margin: 0; }
.shots img {
  border-radius: 22px; border: 1px solid var(--line); background: var(--card);
  width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover;
}
.shots figcaption { font-size: 0.95rem; color: var(--ink-2); margin-top: 8px; text-align: center; }

/* Galeria obrazów: ilustracja i jej wersja z pikseli */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); list-style: none; padding: 0; margin: 0; }
.gallery li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .pixel { image-rendering: pixelated; }
.gallery p { margin: 0; padding: 8px 12px 12px; font-weight: 600; font-size: 0.95rem; }

/* Cechy */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.features p { margin: 0; color: var(--ink-2); }

/* Maskotka */
.mascot { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mascot { grid-template-columns: 220px 1fr; } }
.mascot img { width: 220px; border-radius: 28px; }

/* Strony z tekstem (prywatność, pomoc) */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.55rem; margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.5em; }
.doc .meta { color: var(--ink-2); }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: 0.97rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }

.notice {
  border-left: 6px solid var(--yellow); background: var(--card);
  border-radius: 12px; padding: 14px 18px; margin: 0 0 24px;
}
.notice strong { display: block; margin-bottom: 4px; }
.todo { background: #FFF1B8; color: #3a2e00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 24px 0;
}
.contact-card a.mail { font-weight: 700; font-size: 1.15rem; }
.doc .contact-card h2 { margin-top: 0; }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 0.95rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-2); }
.site-footer p { margin: 0; }

.drop-red { --c: var(--red); }
.drop-orange { --c: var(--orange); }
.drop-yellow { --c: var(--yellow); }
.drop-green { --c: var(--green); }
.drop-blue { --c: var(--blue); }
.drop-purple { --c: var(--purple); }

/* Telefon: mieszanki w kolumnie, zrzuty w poziomym pasku z przewijaniem */
.mixes li { white-space: nowrap; }
@media (max-width: 640px) {
  .mixes { flex-direction: column; }
  .drop { width: 22px; height: 22px; }
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
  }
  .shots figure { scroll-snap-align: start; }
}

/* Tabela trybów wieku: na telefonie każdy tryb jako karta */
@media (max-width: 640px) {
  .doc table.modes, .doc table.modes tbody, .doc table.modes tr, .doc table.modes th, .doc table.modes td { display: block; width: 100%; }
  .doc table.modes thead { display: none; }
  .doc table.modes tr { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
  .doc table.modes th, .doc table.modes td { border: 0; border-top: 1px solid var(--line); }
  .doc table.modes th { border-top: 0; }
  .doc table.modes td::before { content: attr(data-label); display: block; font-weight: 700; margin-bottom: 2px; }
}
