@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin-400-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: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/press-start-2p-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
  --yellow: #FFC93C;
  --yellow-light: #FFDB72;
  --yellow-dark: #F2B42A;
  --cream: #FFF4D6;
  --navy: #1D2B53;
  --navy-soft: #3A4670;
  --coral: #FF6B57;
  --red-dark: #9C2F22;
  --white: #FFFFFF;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--red-dark); }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.brand span { font-family: var(--pixel); font-size: 14px; letter-spacing: 1px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { font-family: var(--pixel); font-size: 11px; color: var(--navy); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero::after {
  /* pikselowe pagórki na dole */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background:
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 0 100% / 100% 8px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 6% 100% / 18% 16px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 9% 100% / 10% 24px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 48% 100% / 22% 16px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 51% 100% / 12% 24px no-repeat,
    linear-gradient(var(--yellow-dark), var(--yellow-dark)) 88% 100% / 16% 16px no-repeat;
}
.hero .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center; position: relative; z-index: 1; }
.hero-kid { width: 200px; height: 200px; image-rendering: pixelated; flex-shrink: 0; }
.hero-text { flex: 1 1 360px; min-width: 0; }
.hero h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: 2px;
}
.hero h1 .games { display: block; font-size: 0.38em; letter-spacing: 0.9em; margin-right: -0.9em; color: var(--red-dark); margin-top: 14px; }
.hero .tagline { font-size: 20px; margin: 22px 0 0; max-width: 34ch; }

.sparkle { position: absolute; width: 24px; height: 24px; opacity: 0.9; }
.sparkle::before, .sparkle::after { content: ""; position: absolute; background: var(--yellow-light); }
.sparkle::before { left: 8px; top: 0; width: 8px; height: 24px; }
.sparkle::after { left: 0; top: 8px; width: 24px; height: 8px; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 4px solid var(--navy); }
h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 1px;
  margin: 0 0 24px;
}
.lead { font-size: 19px; max-width: 60ch; margin: 0 0 12px; }
.muted { color: var(--navy-soft); }

.card {
  background: var(--white);
  border: 4px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy);
  padding: 24px;
  max-width: 560px;
}
.card p { margin: 0; }
.card .badge {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 10px;
  background: var(--coral);
  color: var(--navy);
  padding: 6px 10px;
  margin-bottom: 14px;
}

/* Social buttons */
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.socials a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--white);
  border: 3px solid var(--navy);
  box-shadow: 4px 4px 0 var(--navy);
  color: var(--navy);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 11px;
  transition: transform 0.08s, box-shadow 0.08s;
}
.socials a:hover { background: var(--yellow); }
.socials a:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }

.mail-link {
  display: inline-block;
  font-family: var(--pixel);
  font-size: clamp(14px, 3.4vw, 22px);
  color: var(--navy);
  background: var(--yellow);
  border: 4px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy);
  padding: 16px 20px;
  text-decoration: none;
  word-break: break-all;
}
.mail-link:hover { background: var(--coral); color: var(--navy); }

/* Fun fact */
.fact { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; }
.fact img { width: 48px; height: 48px; image-rendering: pixelated; flex-shrink: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: var(--white); }

/* Policy page */
.doc { padding: 48px 0 72px; }
.doc h1 { font-family: var(--pixel); font-weight: 400; font-size: clamp(20px, 4vw, 28px); line-height: 1.4; margin: 0 0 8px; }
.doc h2 { margin-top: 40px; font-size: 14px; }
.doc p, .doc li { max-width: 70ch; }
.doc .updated { color: var(--navy-soft); margin: 0 0 32px; }

/* 404 */
.notfound { text-align: center; padding: 96px 0; }
.notfound img { width: 120px; height: 120px; image-rendering: pixelated; }
.notfound h1 { font-family: var(--pixel); font-weight: 400; font-size: 28px; margin: 24px 0 12px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 80px; }
  .hero-kid { width: 140px; height: 140px; }
  .sparkle-wide { display: none; }
  .hero .wrap { gap: 28px; text-align: center; }
  .hero .tagline { margin-left: auto; margin-right: auto; }
  .nav { gap: 14px; }
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .socials a { transition: none; }
}
