/* Layout: candy-sunset toy world – each section is its own colored "crate"; cards are stickers with chunky offset shadows in the app's color. */
@font-face { font-family: 'Lilita PL'; src: url(fonts/LilitaOnePL.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Signika'; src: url(fonts/signika-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  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: 'Signika'; src: url(fonts/signika-ext.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Stencil'; src: url(fonts/big-shoulders-stencil-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: 'Stencil'; src: url(fonts/big-shoulders-stencil-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

:root {
  --ink: #2b1140;        /* deep plum, text */
  --ink-soft: #5b3a6e;
  --paper: #fffaf3;      /* sticker paper */
  --magenta: #ff3d8b;
  --tangerine: #ff8a1f;
  --sun: #ffd23f;
  --turq: #18d6c8;
  --violet: #7b4dff;
  --wood: #c8722c;
  --f-display: 'Lilita PL', 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Signika', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-stencil: 'Stencil', 'Impact', 'Arial Narrow', sans-serif;
  --r: 18px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1.05rem/1.6 var(--f-body); color: var(--ink); background: #ffe9d6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.55rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 60ch; margin: 0; color: var(--ink-soft); }
.stencil { font-family: var(--f-stencil); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { display: inline-block; font-size: 1rem; color: var(--magenta); }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 400 1.15rem/1 var(--f-display); text-decoration: none; cursor: pointer; border: 3px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease; }
.btn-main { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

/* nagłówek */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 250, 243, .82); backdrop-filter: blur(12px); border-bottom: 3px solid var(--ink); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font: 400 1.35rem/1 var(--f-display); }
.brand b span { color: var(--magenta); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sun); }
.lang { font: 400 1rem/1 var(--f-display); background: var(--turq); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; min-width: 50px; height: 40px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }

/* hero */
.hero { position: relative; background: #f9a07a url(img/bg-hero.webp) center / cover no-repeat; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: clamp(36px, 6vw, 72px); }
.hero-copy { display: grid; gap: 22px; justify-items: start; position: relative; z-index: 2; }
.hero h1 { color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 0 var(--ink), 3px 4px 0 var(--ink), -3px 4px 0 var(--ink), 0 10px 0 rgba(43, 17, 64, .25); }
.hero h1 em { font-style: normal; display: inline-block; color: var(--sun); transform: rotate(-2deg); }
.hero .lead { color: var(--ink); font-weight: 500; }
.hero .eyebrow { background: var(--ink); color: var(--sun); padding: 6px 12px 5px; border-radius: 8px; transform: rotate(-1.5deg); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { background: rgba(255, 255, 255, .78); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: .95rem; }

.stage { position: relative; height: clamp(360px, 44vw, 560px); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.stage-hint { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); margin: 0; font-size: .85rem; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 4px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .4s; }
.stage.is-3d .stage-hint { opacity: 1; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
.stage.is-3d .stage-fallback { opacity: 0; pointer-events: none; }
.fb-crate { width: min(56%, 280px); filter: drop-shadow(0 18px 24px rgba(43, 17, 64, .35)); }
.fb-i { display: none; }
.stage.no-3d .fb-i, .no-js .fb-i { display: block; }
.fb-i { position: absolute; width: clamp(44px, 6vw, 64px); border-radius: 16px; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(43, 17, 64, .3); }
.i1 { left: 10%; top: 14%; transform: rotate(-12deg); } .i2 { right: 12%; top: 10%; transform: rotate(10deg); }
.i3 { left: 4%; top: 52%; transform: rotate(8deg); } .i4 { right: 4%; top: 48%; transform: rotate(-8deg); }
.i5 { left: 26%; top: 2%; transform: rotate(6deg); } .i6 { right: 26%; bottom: 10%; transform: rotate(-6deg); }
.i7 { left: 20%; bottom: 8%; transform: rotate(14deg); }

.sound-btn { position: absolute; right: 8px; bottom: 6px; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); cursor: pointer; opacity: 0; transition: opacity .4s, transform .15s; }
.stage.is-3d .sound-btn { opacity: 1; }
.sound-btn[aria-pressed="true"] { background: var(--sun); }
.sound-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.sound-btn.nudge { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(255, 61, 139, .7); } 50% { transform: scale(1.12); box-shadow: 0 4px 0 var(--ink), 0 0 0 12px rgba(255, 61, 139, 0); } }
.cube-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; background: var(--ink); color: #fff; font: 400 .95rem/1 var(--f-display); padding: 7px 11px; border-radius: 10px; white-space: nowrap; z-index: 3; }
.card.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 100% { transform: rotate(var(--tilt, 0deg)); } 20% { transform: rotate(0) scale(1.06); box-shadow: 12px 12px 0 var(--c), 12px 12px 0 3px var(--ink); } 45% { transform: rotate(-2deg) scale(1.03); } 70% { transform: rotate(1deg) scale(1.01); } }

/* taśma ostrzegawcza */
.tape { background: repeating-linear-gradient(-45deg, var(--sun) 0 22px, var(--ink) 22px 30px); border-block: 3px solid var(--ink); padding-block: 6px; overflow: hidden; transform: rotate(-1deg); margin: -10px -20px 0; position: relative; z-index: 3; }
.tape-run { display: flex; width: max-content; animation: tape 32s linear infinite; }
.tape-run span { background: var(--sun); font: 800 1.2rem/1 var(--f-stencil); text-transform: uppercase; letter-spacing: .14em; padding: 9px 22px; white-space: nowrap; }
@keyframes tape { to { transform: translateX(-50%); } }

/* strefy z kartami */
.zone { position: relative; padding-block: clamp(56px, 8vw, 96px); background-size: cover; background-position: center; }
.zone-games { background-color: #ffc8b0; background-image: url(img/bg-games.webp); }
.zone-apps { background-color: #8fe0cf; background-image: url(img/bg-apps.webp); border-top: 3px solid var(--ink); }
.head { display: grid; gap: 12px; margin-bottom: 36px; justify-items: start; max-width: 720px; background: rgba(255, 250, 243, .86); border: 3px solid var(--ink); border-radius: var(--r); padding: 22px 26px; box-shadow: 8px 8px 0 var(--ink); }
.zone-apps .eyebrow { color: #078f86; }

.cards { display: grid; gap: 26px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { --c: var(--violet); display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--c), 8px 8px 0 3px var(--ink);
  overflow: hidden; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; transform: rotate(var(--tilt, 0deg)); }
.cards .card:nth-child(odd) { --tilt: -1.2deg; }
.cards .card:nth-child(even) { --tilt: 1deg; }
.card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.card .art { position: relative; aspect-ratio: 4 / 3; background: var(--c); overflow: hidden; border-bottom: 3px solid var(--ink); }
.card .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .cover { transform: scale(1.06); }
.card .icon { position: absolute; left: 14px; bottom: 12px; width: 56px; height: 56px; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card .kind { color: var(--c); font-size: .95rem; filter: saturate(1.2) brightness(.8); }
.card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.status { margin-top: auto; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 6px 12px; border-radius: 12px;
  background: var(--c); color: #fff; font: 400 1rem/1.15 var(--f-display); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); border: 3px solid var(--ink); text-decoration: none; }
.status.live { background: var(--sun); color: var(--ink); text-shadow: none; }

/* studio – etykieta przesyłki */
.studio { background: linear-gradient(160deg, #ffd23f 0%, #ffb347 55%, #ff8a5c 100%); border-top: 3px solid var(--ink); padding-block: clamp(56px, 8vw, 96px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.label { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 22px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-3deg); max-width: 440px; justify-self: center; width: 100%; }
.label::before { content: ''; position: absolute; inset: 8px; border: 2px dashed rgba(43, 17, 64, .35); border-radius: 6px; pointer-events: none; }
.label-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; }
.label-head b { font-size: 2rem; letter-spacing: .06em; }
.label-prio { background: var(--ink); color: #fff; padding: 6px 12px; font-size: 1.1rem; }
.label dl { margin: 0; display: grid; }
.label dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(43, 17, 64, .2); }
.label dt { font: 800 .9rem/1.5 var(--f-stencil); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.label dd { margin: 0; font-weight: 600; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; }
.barcode { height: 54px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px, var(--ink) 14px 17px, transparent 17px 19px); }
.stamp { position: absolute; right: -14px; bottom: 22px; transform: rotate(-14deg); color: var(--magenta); border: 4px solid var(--magenta); padding: 6px 12px; font-size: 1.25rem; border-radius: 8px; background: rgba(255, 255, 255, .7); }
.studio-copy { display: grid; gap: 16px; justify-items: start; }
.studio .eyebrow { color: var(--ink); }
.studio .lead { color: var(--ink); }
.rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.rules li { display: grid; gap: 4px; background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 5px 5px 0 var(--c); }
.rules b { font: 400 1.15rem/1.15 var(--f-display); color: var(--ink); }
.rules span { font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }

/* wkrótce */
.soon { background: linear-gradient(120deg, var(--violet), var(--magenta) 55%, var(--tangerine)); color: #fff; text-align: center; border-top: 3px solid var(--ink); padding-block: clamp(56px, 8vw, 96px); }
.soon .wrap { display: grid; gap: 18px; justify-items: center; }
.soon h2 { text-shadow: 0 4px 0 var(--ink); }
.soon .lead { color: #fff; }
.soon .eyebrow { color: var(--sun); }
.soon-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block: 8px; }
.soon-icons img { width: 64px; height: 64px; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 6px 0 var(--ink); animation: hop 2.4s ease-in-out infinite; }
.soon-icons img:nth-child(2) { animation-delay: .15s; } .soon-icons img:nth-child(3) { animation-delay: .3s; } .soon-icons img:nth-child(4) { animation-delay: .45s; }
.soon-icons img:nth-child(5) { animation-delay: .6s; } .soon-icons img:nth-child(6) { animation-delay: .75s; } .soon-icons img:nth-child(7) { animation-delay: .9s; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-14px) rotate(-6deg); } 90% { transform: translateY(0) rotate(4deg); } }
.socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* rampa ze skrzynkami */
.dock { position: relative; background: #ff9a3c url(img/bg-dock.webp) center bottom / cover no-repeat; border-top: 3px solid var(--ink); padding-top: clamp(40px, 6vw, 72px); }
.dock-head { display: grid; gap: 12px; justify-items: center; text-align: center; position: relative; z-index: 2; }
.dock-head h2 { color: #fff; text-shadow: 0 4px 0 var(--ink); }
.dock-head .lead { color: var(--ink); background: rgba(255, 250, 243, .85); padding: 8px 16px; border-radius: 12px; }
.dock .eyebrow { color: var(--ink); background: var(--sun); padding: 4px 10px; border-radius: 6px; }
.pit { position: relative; height: clamp(340px, 42vw, 480px); }
.pit canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.pit.grabbing canvas { cursor: grabbing; }

/* kontakt i stopka */
.contact { background: var(--paper); border-top: 3px solid var(--ink); padding-block: clamp(48px, 7vw, 80px); }
.contact .wrap { display: grid; gap: 14px; justify-items: start; }
.mail-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mail { font: 400 clamp(1.3rem, 3.4vw, 2.2rem)/1.1 var(--f-display); color: var(--magenta); overflow-wrap: anywhere; }
footer { background: var(--ink); color: #f5e9ff; padding-block: 48px 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .brand b span { color: var(--sun); }
.foot-about { color: #cdb8dd; max-width: 40ch; }
footer h4 { font: 400 1.15rem/1 var(--f-display); margin: 6px 0 12px; color: var(--sun); }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { color: #f5e9ff; text-decoration: none; }
footer a:hover { color: var(--sun); }
.legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: #b9a3cc; }

@media (max-width: 1020px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three .card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 340px; order: -1; margin-block: -20px -10px; }
  .rules { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cards.four, .cards.three { grid-template-columns: 1fr; }
  .cards.three .card:last-child { max-width: none; }
  .head { box-shadow: 5px 5px 0 var(--ink); padding: 18px; }
  .label { transform: rotate(-1.5deg); }
  .stamp { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-run, .soon-icons img { animation: none; }
  .card, .card .cover, .btn { transition: none; }
}
