@font-face { font-family: "Patrick Hand"; src: url("fonts/PatrickHand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #2a2a2a;
  --pencil: #b2b7bb;
  --paper: #f6f1e6;
  --grid: rgba(120, 150, 170, .13);
  --white: #fff;
  --red: #fc5c65;
  --yellow: #ffb600;
  --green: #37d98c;
  --purple: #9179ff;
  --blue: #3d8bff;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --text: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 18px/1.55 var(--text);
  background-color: var(--paper);
  /* papier w kratkę */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .kicker, nav, .btn, .lang, figcaption, .num, .foes span, .bosses span, .weapons span, .dish-names, .rules, .logo {
  font-family: var(--hand); font-weight: 400;
}
h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 .3em; }
h3 { font-size: 1.7rem; line-height: 1.1; margin: .2em 0 .25em; }
.sub { max-width: 40rem; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---- drżąca kreska ---- */
.box { position: relative; }
.box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 5px solid var(--ink);
  border-radius: 18px 12px 20px 10px / 12px 20px 10px 18px;
  filter: url(#w1);
  animation: boil .45s steps(1) infinite;
}
@keyframes boil { 0% { filter: url(#w1); } 33% { filter: url(#w2); } 66% { filter: url(#w3); } }
.spr { display: block; user-select: none; -webkit-user-drag: none; }

/* ---- nagłówek ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .6rem clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--pencil);
}
.logo { display: flex; align-items: center; gap: .4rem; text-decoration: none; font-size: 1.9rem; }
.logo .spr { width: 34px; height: 34px; }
nav { display: flex; gap: 1.2rem; margin-left: auto; font-size: 1.35rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline wavy var(--red); text-underline-offset: 5px; }
.lang { text-decoration: none; font-size: 1.3rem; padding: .05rem .8rem; background: var(--white); border-radius: 12px; }
@media (max-width: 720px) { nav { display: none; } .lang { margin-left: auto; } }

/* ---- hero ---- */
.hero { text-align: center; padding: clamp(2rem, 6vw, 4.5rem) 16px 0; }
.kicker { font-size: 1.4rem; margin: 0; color: #5d6266; }
h1 {
  font-size: clamp(5.5rem, 20vw, 12rem); line-height: .9; margin: .05em 0 .15em; letter-spacing: .02em;
  /* kontur jak w grze: tusz + białe wypełnienie z cieniem przesunięcia */
  color: var(--white);
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 7px 0 var(--red);
  filter: url(#w1);
  animation: boil .6s steps(1) infinite;
}
.lead { max-width: 36rem; margin: 0 auto 1.6rem; font-size: 1.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn {
  display: inline-block; font-size: 1.45rem; padding: .45rem 1.4rem; text-decoration: none;
  background: var(--white); border-radius: 16px; transition: transform .12s;
}
a.btn:hover { transform: rotate(-2deg) scale(1.04); }
.btn.yellow { background: var(--yellow); }

/* scena z bohaterami */
.stage {
  position: relative; height: clamp(260px, 38vw, 380px); max-width: 1100px; margin: 2.5rem auto 0;
  touch-action: pan-y; cursor: crosshair;
}
.prop, .foe { position: absolute; }
.t1 { width: 120px; left: 2%; top: 10%; }
.t2 { width: 90px; right: 4%; top: 52%; }
.b1 { width: 70px; left: 18%; bottom: 2%; }
.b2 { width: 56px; right: 22%; top: 4%; }
.r1 { width: 54px; left: 38%; top: 2%; }
.s1 { width: 58px; right: 34%; bottom: 0; }
.cave { width: 150px; left: 50%; top: 18%; transform: translateX(-50%); }
.foe { width: 58px; animation: wobble 1.6s ease-in-out infinite; }
.f1 { right: 10%; top: 18%; }
.f2 { left: 12%; top: 64%; width: 62px; animation-delay: -.5s; }
.f3 { right: 16%; top: 68%; width: 34px; animation-delay: -1s; }
@keyframes wobble { 50% { transform: translateY(-6px) rotate(6deg) scale(1.04, .96); } }

.hero-p { position: absolute; width: 60px; height: 60px; left: 0; top: 0; will-change: transform; }
.hero-p .body { position: absolute; inset: 0; width: 60px; z-index: 2; }
.hero-p .hand { position: absolute; width: 20px; z-index: 3; }
.hero-p .hl { left: 38px; top: -2px; }
.hero-p .hr { left: 38px; top: 42px; }
.hero-p .weap { position: absolute; width: 48px; left: 40px; top: 30px; z-index: 1; transform-origin: 10% 40%; transform: rotate(10deg); }
.hero-p.swing .weap { animation: swing .28s ease-out; }
@keyframes swing { 40% { transform: rotate(-80deg); } }
.emote { position: absolute; width: 40px; left: 10px; top: -46px; z-index: 5; animation: pop 1.4s ease-out forwards; }
@keyframes pop { 0% { transform: scale(0); } 15% { transform: scale(1.15); } 25%, 80% { transform: scale(1); opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

/* ---- sekcje ---- */
main section { padding: clamp(3rem, 8vw, 6rem) clamp(16px, 4vw, 40px) 0; text-align: center; }
main section > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
main section > .sub { max-width: 40rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; text-align: left; }
.card { background: var(--white); padding: 1.4rem 1.4rem 1.2rem; border-radius: 16px; }
.card:nth-child(odd) { transform: rotate(-.6deg); }
.card:nth-child(even) { transform: rotate(.7deg); }
.card p { margin: 0; }
.ico { display: flex; gap: .3rem; align-items: center; height: 64px; }
.ico .spr { height: 60px; width: auto; }
.ico.four .spr { height: 44px; margin-right: -12px; }

.shot { margin-top: 3rem; padding: 12px; background: var(--white); border-radius: 14px; max-width: 920px; }
.shot img { display: block; border-radius: 6px; width: 100%; height: auto; }
.shot figcaption { font-size: 1.3rem; padding-top: .5rem; }
.tilt-l { transform: rotate(-1.2deg); }

/* lochy */
.dlist { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.dlist > li { flex: 0 1 330px; }
.dcard {
  display: flex; flex-direction: column; text-align: left; background: var(--white);
  border-radius: 16px; padding: 10px 10px 1rem; overflow: visible;
}
.dcard img:not(.dfoe) { width: 100%; height: auto; border-radius: 8px; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.dcard > div { padding: .4rem .6rem 0; }
.dcard p { margin: 0; }
.num {
  float: left; width: 2.2rem; height: 2.2rem; margin: .25rem .6rem 0 0; border-radius: 50%;
  border: 4px solid var(--ink); display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
}
.dcard .dfoe { position: absolute; height: auto; width: 64px; right: -14px; top: -18px; animation: wobble 2s ease-in-out infinite; }
.d-1 .num { background: #f2c48d; } .d-2 .num { background: #ff9e6b; } .d-3 .num { background: #9fc2e8; }
.d-4 .num { background: #e1b3f0; } .d-5 .num { background: #8f8ca6; color: var(--white); }
.dcard:nth-child(2) { transform: rotate(.8deg); } .dcard:nth-child(4) { transform: rotate(-.7deg); }
.note { display: flex; gap: .6rem; align-items: center; justify-content: center; font-size: 1.1rem; margin-top: 2rem; }
.mini { width: 30px; display: inline-block; vertical-align: middle; }

/* bestiariusz */
.foes, .bosses, .weapons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; }
.foes li, .bosses li, .weapons li { display: flex; flex-direction: column; align-items: center; outline: none; }
.foes .spr { width: 92px; height: 92px; transition: transform .2s; }
.foes span, .weapons span { font-size: 1.35rem; opacity: 0; transform: translateY(-6px); transition: .2s; }
.foes li:hover .spr, .foes li:focus .spr { transform: scale(1.18) rotate(-8deg); }
.foes li:hover span, .foes li:focus span { opacity: 1; transform: none; }
@media (hover: none) { .foes span { opacity: 1; transform: none; } }
.bosses-h { font-size: 2.4rem; margin-top: 2.5rem; }
.bosses { gap: 1rem 2.5rem; }
.bosses .spr { width: clamp(130px, 18vw, 190px); height: auto; animation: wobble 3s ease-in-out infinite; }
.bosses li:nth-child(2) .spr { animation-delay: -.8s; } .bosses li:nth-child(3) .spr { animation-delay: -1.6s; } .bosses li:nth-child(4) .spr { animation-delay: -2.2s; }
.bosses span { font-size: 1.6rem; }

/* arsenał */
.weapons { gap: 1rem 1.6rem; }
.weapons .spr { width: 80px; height: 80px; transition: transform .25s; }
.weapons span { opacity: 1; transform: none; font-size: 1.3rem; }
.weapons li:hover .spr { transform: rotate(-35deg) scale(1.1); }

/* kuchnia */
.kitchen-in {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem 2.5rem; align-items: center;
  background: #fff8e8; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.6rem); text-align: left;
}
.kitchen-in h2 { text-align: left; }
.rules { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 1.35rem; }
.rules li { display: flex; align-items: center; gap: .6rem; }
.rules .spr { width: 30px; height: 30px; }
.recipe { display: grid; justify-items: center; gap: .4rem; }
.ingr, .dishes { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; }
.ingr .spr { width: 50px; animation: wobble 2.2s ease-in-out infinite; }
.ingr .spr:nth-child(2n) { animation-delay: -1s; }
.dishes .spr { width: 64px; }
.pot-wrap { position: relative; }
.potbig { width: 120px; }
.steam { position: absolute; left: 44%; top: -16px; font: 2.2rem var(--hand); color: var(--pencil); animation: steam 2s linear infinite; }
.steam.s2 { left: 60%; animation-delay: -1s; }
@keyframes steam { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
.dish-names { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: 1.2rem; }
.dish-names li { display: flex; align-items: center; gap: .3rem; }
.dish-names .spr { width: 28px; height: 28px; }
.dish-names .dish { color: #b0491f; }
@media (max-width: 760px) { .kitchen-in { grid-template-columns: 1fr; } }

/* drużyna */
.ring { position: relative; width: 260px; height: 260px; margin: 1rem auto; animation: spin 28s linear infinite; }
.ring .spr { position: absolute; width: 62px; left: calc(50% - 31px); top: calc(50% - 31px); }
@keyframes spin { to { transform: rotate(360deg); } }
.emotes { display: flex; gap: 1rem; justify-content: center; }
.emotes .spr { width: 52px; animation: wobble 1.8s ease-in-out infinite; }
.emotes .spr:nth-child(2) { animation-delay: -.4s; } .emotes .spr:nth-child(3) { animation-delay: -.9s; } .emotes .spr:nth-child(4) { animation-delay: -1.3s; }

/* wkrótce */
.soon { padding-bottom: 3rem !important; }
.soon-in { background: var(--yellow); border-radius: 20px; padding: 2rem 1.5rem; max-width: 640px !important; transform: rotate(-1deg); }
.soon-in p { font-size: 1.15rem; margin: 0; }
.soon-stairs { width: 84px; margin: 0 auto .2rem; }

footer { text-align: center; padding: 2rem 16px 2.5rem; border-top: 2px dashed var(--pencil); margin-top: 3rem; }
footer p { margin: .2rem 0; display: flex; gap: .5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
footer .credits { font-size: .85rem; color: #6c7175; }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 600px) {
  .t1 { width: 80px; } .t2 { width: 62px; } .cave { width: 110px; } .b1 { width: 52px; }
}

/* dokumenty: polityka, regulamin, licencje */
.doc { padding: clamp(1.5rem, 5vw, 3rem) 16px 0; }
.doc-in { max-width: 780px; margin: 0 auto; background: var(--white); border-radius: 18px; padding: clamp(1.3rem, 4vw, 2.6rem); }
.doc-h { font-size: clamp(2.6rem, 8vw, 3.8rem); color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; filter: none; animation: none; margin: 0 0 .3rem; letter-spacing: 0; line-height: 1.1; margin-bottom: .6rem; }
.doc h2 { font-size: 1.9rem; margin: 1.6rem 0 .3rem; }
.doc h3 { font-size: 1.45rem; margin: 1.1rem 0 .2rem; }
.doc p, .doc li { font-size: 1rem; }
.doc li { margin: .3rem 0; }
.doc .upd { color: #6c7175; font-size: .9rem; margin-top: 0; }
.doc pre { white-space: pre-wrap; font-size: .8rem; background: var(--paper); padding: 1rem; border-radius: 8px; }
footer .links a { white-space: nowrap; }
@media (max-width: 720px) { .doc-page nav { display: none; } }
