:root {
  --ink: #1B2A4A;
  --sky: #8FD3FF;
  --sky-light: #BFE6FF;
  --grass: #6CC24A;
  --grass-light: #BDE68F;
  --cream: #FFFDF4;
  --sun: #FFD23F;
  --muted: #3D4B6B;
  --soil: #4A3221;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, .display { font-family: 'Baloo 2', sans-serif; font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; font-weight: 700; }
[hidden] { display: none !important; }

@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(8deg) translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 26px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--ink); text-decoration: none;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 16px;
  box-shadow: 0 5px 0 var(--ink); cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn.light { background: var(--cream); }
.btn.small { min-height: 48px; font-size: 18px; padding: 6px 20px; border-radius: 12px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: 0 5px 0 var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Nawigacja */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; position: relative; z-index: 3; }
.logo { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 28px; text-decoration: none; background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 2px 16px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-2deg); }
.nav nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav nav a { font-weight: 800; text-decoration: none; padding: 10px 14px; border-radius: 12px; }
.nav nav a:hover { background: rgba(255, 253, 244, .6); }

/* Hero */
.hero { position: relative; padding-top: 24px; }
.sun { position: absolute; top: 10px; right: 6%; width: 120px; height: 120px; animation: spin 60s linear infinite; }
.cloud { position: absolute; z-index: 0; }
.cloud.c1 { top: 40px; left: 4%; width: 150px; animation: drift 14s ease-in-out infinite alternate; }
.cloud.c2 { top: 210px; right: 30%; width: 110px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.cloud.c3 { top: 330px; left: 44%; width: 90px; animation: drift 17s ease-in-out infinite alternate; }
.hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 40px; position: relative; z-index: 2; }
.hero-text { flex: 1 1 440px; min-width: 0; padding-bottom: 40px; }
.tag { display: inline-block; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.01em; }
.hero .lead { margin: 20px 0 28px; font-size: clamp(18px, 2vw, 21px); font-weight: 700; max-width: 520px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-char { flex: 0 1 300px; margin: 0 auto; display: flex; justify-content: center; animation: bob 2.4s ease-in-out infinite alternate; }
.placeholder { border: 4px dashed var(--ink); background: rgba(255, 253, 244, .8); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; font-family: 'Baloo 2', sans-serif; font-weight: 800; line-height: 1.1; }
.hero-char .placeholder { width: 230px; height: 300px; border-radius: 120px 120px 40px 40px; font-size: 22px; }
.hills { display: block; width: 100%; height: clamp(120px, 16vw, 220px); margin-top: -70px; position: relative; z-index: 1; }

/* Łąka */
.meadow { background: var(--grass); padding: 24px 0 72px; }
.meadow .wrap { display: flex; flex-direction: column; gap: 56px; }
.counters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: -16px; }
.counters h2 { font-size: 22px; line-height: 1; margin-right: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px 4px 10px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.pill img { height: 20px; width: auto; display: block; }
.pill b { font-family: 'Baloo 2', sans-serif; font-size: 20px; line-height: 1; }

.two { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.card { flex: 1 1 420px; min-width: 0; background: var(--cream); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.card h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; }
.poll { display: flex; flex-direction: column; gap: 12px; }
.poll + .poll { border-top: 3px dashed var(--ink); padding-top: 18px; }
.poll h3 { font-weight: 700; font-size: 24px; line-height: 1.15; }
.option { position: relative; overflow: hidden; width: 100%; min-height: 60px; text-align: left; font: inherit; font-weight: 800; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); padding: 12px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.option .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grass-light); transition: width .5s ease; }
.option span { position: relative; }
.option .pct { font-family: 'Baloo 2', sans-serif; font-size: 20px; white-space: nowrap; }
.option:disabled { cursor: default; }
.option.mine { background: #F3FBE8; outline: 3px solid var(--grass); outline-offset: -8px; }
.empty { font-weight: 700; color: var(--muted); }

.idea { display: flex; align-items: center; gap: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px; }
.idea p { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.up { flex: 0 0 auto; width: 56px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; line-height: 1; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.up.mine { background: var(--grass-light); cursor: default; }
.ideas { display: flex; flex-direction: column; gap: 12px; }
.idea-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { font: inherit; font-weight: 700; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 10px 12px; min-height: 48px; width: 100%; }
.msg { font-weight: 800; font-size: 15px; }
.msg:empty { display: none; }
.msg.err { color: #9B1C1C; }

/* Gra */
.game { background: var(--sky); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; display: flex; flex-wrap: wrap; }
.game-text { flex: 1 1 360px; min-width: 0; padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.game-text h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1; }
.game-text p { font-weight: 700; max-width: 440px; }
.badge { font-size: 14px; font-weight: 800; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 2px 12px; }
.scene { flex: 1 1 340px; min-width: 0; min-height: 320px; position: relative; background: var(--sky-light); overflow: hidden; }
.game .scene { box-shadow: -3px -3px 0 var(--ink); min-height: 380px; }
.scene .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--grass); border-top: 3px solid var(--ink); }
.scene .cloud { animation: none; width: 120px; }
.head { position: absolute; right: 16%; bottom: 205px; width: 84px; height: 84px; border-radius: 50%; font-size: 15px; animation: bob .7s ease-in-out infinite alternate; }

/* Partnerzy */
.ad { background: var(--cream); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; display: flex; flex-wrap: wrap; }
.ad.flip { flex-wrap: wrap-reverse; }
.ad-text { flex: 1 1 360px; min-width: 0; padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; }
.ad-text h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1; }
.ad-text p { font-weight: 700; max-width: 460px; }
.ad-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ad-brand img { height: 40px; width: auto; display: block; }
.ad-brand img.ig { height: 48px; mix-blend-mode: multiply; }
.fighter { position: absolute; left: 8%; bottom: 44px; width: 116px; height: 180px; border-radius: 58px 58px 20px 20px; font-size: 16px; }
.boom { position: absolute; left: 44%; top: 34%; width: 64px; margin-left: -32px; }
.lagger { position: absolute; right: 7%; bottom: 52px; width: 44%; max-width: 210px; background: #fff; border: 4px solid var(--ink); border-radius: 14px; overflow: hidden; animation: shake .5s ease-in-out infinite; }
.lagger .bar-top { display: flex; gap: 6px; padding: 8px 10px; background: #C9CFDA; border-bottom: 4px solid var(--ink); }
.lagger .bar-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.lagger .body { padding: 14px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px; line-height: 1; }
.lagger .progress { width: 100%; height: 14px; border: 3px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lagger .progress i { display: block; width: 22%; height: 100%; background: var(--ink); }
.stall-scene { display: flex; align-items: flex-end; justify-content: center; }
.stall { position: relative; width: 78%; max-width: 330px; margin-bottom: 30px; display: flex; flex-direction: column; }
.awning { height: 46px; border: 4px solid var(--ink); border-radius: 16px 16px 6px 6px; background: repeating-linear-gradient(90deg, var(--sun) 0 34px, #fff 34px 68px); }
.posts { height: 150px; margin: 0 10px; border-left: 6px solid var(--ink); border-right: 6px solid var(--ink); position: relative; display: flex; align-items: flex-end; justify-content: center; }
.keytag { position: absolute; top: 0; width: 44px; height: 54px; background: #fff; border: 3px solid var(--ink); border-radius: 6px 6px 12px 12px; display: flex; align-items: center; justify-content: center; }
.keytag.l { left: 10px; transform: rotate(-6deg); }
.keytag.r { right: 10px; transform: rotate(5deg); }
.seller { width: 104px; height: 128px; border-bottom: 0; border-radius: 52px 52px 0 0; font-size: 16px; }
.counter { height: 64px; background: #E0A45E; border: 4px solid var(--ink); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px; }

/* Stopka */
footer { background: var(--soil); color: var(--cream); border-top: 3px solid var(--ink); }
footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer .display { font-size: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer a { color: var(--cream); font-weight: 800; padding: 10px 0; }

/* Panel admina */
.admin { background: var(--grass); min-height: 100vh; padding: 24px 0 72px; }
.admin .wrap { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.admin .card { flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.item { background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.item p { overflow-wrap: anywhere; }
.status { font-size: 13px; font-weight: 800; border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.status.pending { background: var(--sun); }
.status.approved, .status.active { background: var(--grass-light); }
.btn.mini { min-height: 40px; font-size: 16px; padding: 2px 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--ink); }
.btn.danger { background: #FFB4A8; }
