@font-face { font-family: "Gluten"; src: url("fonts/Gluten-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Grandstander"; src: url("fonts/Grandstander-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #fff8ec; --paper2: #fbefdc; --sky: #dff0f7; --ink: #4a3a44; --ink2: #8a7280;
  --coral: #f27c86; --coral2: #d9606b; --sun: #ffb84d; --sun2: #e89a2c; --mint: #6cc3a6; --mint2: #4ea888;
  --blue: #7cc0e6; --lilac: #a996e3; --lilac2: #8a76cc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 17px/1.6 "Grandstander", system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--coral2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* ---------- vrh ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 3px solid var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Gluten, sans-serif; font-size: 24px; }
.nav .brand img { width: 40px; height: 40px; border-radius: 11px; border: 2.5px solid var(--ink); }
.nav nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav nav a { color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav nav a:hover { background: var(--paper2); }
.lang { display: flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-left: 4px; }
.lang button { font: inherit; font-size: 14px; border: 0; background: var(--paper); color: var(--ink); padding: 4px 11px; cursor: pointer; }
.lang button.on { background: var(--sun); }
@media (max-width: 720px) { .nav nav a.opt { display: none; } }

/* ---------- gumbi ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 19px; text-decoration: none; cursor: pointer;
  padding: 12px 26px; border: 3px solid var(--ink); border-radius: 999px; color: #fff; background: var(--coral);
  box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.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.alt { background: var(--paper); color: var(--ink); }
.btn.mint { background: var(--mint); }
.btn .tri { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* ---------- naslov ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 70px; background: var(--sky); }
.hero .wrap { position: relative; z-index: 2; text-align: center; }
.logo { display: block; width: min(640px, 92vw); height: auto; margin: 0 auto; overflow: visible; }
.tagline { display: inline-block; margin: 10px 0 26px; padding: 6px 20px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; font-size: 18px; transform: rotate(-1.5deg); }
.hero p.lead { max-width: 620px; margin: 0 auto 26px; font-size: 20px; }
.hero .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bub.floaty { position: absolute; z-index: 1; width: var(--s); height: var(--s); animation: bob var(--d) ease-in-out infinite; animation-delay: var(--dl); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 720px) { .bub.floaty { display: none; } .bub.floaty.keep { display: block; width: 58px; height: 58px; top: 10px !important; } .hero { padding-top: 64px; } }

/* ---------- mjehurić lika (kao u igri) ---------- */
.bub { position: relative; display: block; container-type: size; border-radius: 50%; border: 3px solid var(--ink); background: var(--c, #fff); }
.bub img { position: absolute; left: 19%; top: 8%; width: 62%; height: 62%; object-fit: contain; }
.bub i { position: absolute; left: 50%; bottom: 13%; width: 46%; height: 18%; transform: translateX(-50%); }
.bub i::before, .bub i::after { content: ""; position: absolute; top: 0; width: 15%; height: 62%; background: var(--ink); border-radius: 50%; }
.bub i::before { left: 18%; box-shadow: -9cqw 4cqw 0 1.2cqw #f6a6b2; } .bub i::after { right: 18%; box-shadow: 9cqw 4cqw 0 1.2cqw #f6a6b2; }

/* ---------- valovi između odjeljaka ---------- */
.sec { position: relative; padding: 70px 0; }
.sec.paper { background: var(--paper); }
.sec.mint { background: #d7efe5; }
.sec.sun { background: #fff0cf; }
.sec.lilac { background: #ebe5fa; }
.edge { display: block; width: 100%; height: 40px; margin-top: -1px; }
h2 { font-family: Gluten, sans-serif; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 10px; text-align: center; }
h2 .c1 { color: var(--coral); } h2 .c2 { color: var(--mint2); } h2 .c3 { color: var(--lilac2); } h2 .c4 { color: var(--sun2); }
.sub { text-align: center; max-width: 640px; margin: 0 auto 34px; color: var(--ink2); font-size: 19px; }

/* ---------- igračka ---------- */
.toy { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 34px; align-items: center; }
.jarbox { position: relative; background: var(--paper2); border: 3px solid var(--ink); border-radius: 28px; padding: 14px; box-shadow: 0 6px 0 var(--ink); }
#toy { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; background: #fbfdff; touch-action: none; cursor: pointer; }
.toyhud { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; font-size: 16px; }
.chip b { font-family: Gluten, sans-serif; font-size: 20px; color: var(--coral2); }
.small { font-size: 15px; padding: 7px 16px; box-shadow: 0 3px 0 var(--ink); }
.ladder { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.ladder .bub { width: 46px; height: 46px; }
.toy ol { padding-left: 22px; margin: 6px 0 22px; } .toy li { margin: 6px 0; }
@media (max-width: 820px) { .toy { grid-template-columns: 1fr; } .jarbox { max-width: 480px; margin: 0 auto; } }

/* ---------- kartice ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: 22px 22px 16px; box-shadow: 0 6px 0 var(--ink); position: relative; }
.card::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 22px; margin-left: -48px; background: var(--tape, #b9e2d3); border: 2px solid var(--ink); border-radius: 4px; transform: rotate(-3deg); }
.card h3 { font-family: Gluten, sans-serif; font-size: 25px; margin: 6px 0 6px; line-height: 1.15; }
.card p { margin: 0 0 10px; }
.card .bub { width: 72px; height: 72px; margin: 4px 0 10px; }

/* ---------- svjetovi ---------- */
.worlds { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.world { width: 132px; text-align: center; }
.world .bub { width: 104px; height: 104px; margin: 0 auto 8px; transition: transform .2s; }
.world:hover .bub { transform: translateY(-6px) rotate(-6deg); }
.world span { font-family: Gluten, sans-serif; font-size: 19px; }

/* ---------- posude ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.board { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; padding: 12px 14px; }
.board svg { flex: none; width: 46px; height: 46px; }
.board b { font-family: Gluten, sans-serif; font-size: 19px; display: block; line-height: 1.2; }
.board small { color: var(--ink2); font-size: 15px; line-height: 1.35; display: block; }

/* ---------- snimke ---------- */
.shots { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 6px 22px; }
.shots img { flex: none; width: 230px; height: auto; border: 3px solid var(--ink); border-radius: 26px; scroll-snap-align: center; box-shadow: 0 6px 0 var(--ink); background: #fff; }

/* ---------- kraj ---------- */
.final { text-align: center; }
.final .bigicon { width: 120px; height: 120px; border-radius: 28px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); margin-bottom: 16px; }
footer { background: var(--ink); color: var(--paper); padding: 30px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer a { color: #ffd0d4; }
footer .fine { color: #cbb9c3; font-size: 13px; }
