:root {
--bg: #F8F7F4;
--ink: #1A1A1A;
--muted: #666;
--line: rgba(26, 26, 26, 0.16);
--red: #FF4747;
--ease: cubic-bezier(0.22, 1, 0.36, 1);
--accent-color: #FF4747;
--text-color: #1A1A1A;
--bg-color: #F8F7F4;
--coin-size: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: Manrope, sans-serif;
font-size: 16px;
line-height: 24px;
-webkit-font-smoothing: antialiased;
}
body.menu-open, body.game-active { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 16px; }
.shell { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bar {
position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px);
padding: 8px 8px 8px 16px; background: rgba(248, 247, 244, 0.88);
backdrop-filter: blur(24px); border: 1px solid var(--line);
}
body.admin-bar .bar { top: 48px; }
.bar a { text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.bar-links { display: flex; align-items: center; gap: 16px; }
.btn, .btn-restart, #reward-box button {
display: inline-flex; align-items: center; justify-content: center;
background: var(--red); color: #fff; border: 0; text-decoration: none;
padding: 8px 12px; font-size: 16px; line-height: 24px; font-weight: 600; cursor: pointer;
transition: transform 500ms var(--ease), background 300ms var(--ease);
}
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-ink, .btn-restart { background: var(--ink); }
.btn:hover, .btn-restart:hover, #reward-box button:hover { transform: translateY(-2px); }
.btn:active, .btn-restart:active { transform: scale(0.98); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; position: relative; cursor: pointer; }
.burger span {
position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
transition: transform 500ms var(--ease), top 500ms var(--ease), opacity 300ms var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.bar.is-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.bar.is-open .burger span:nth-child(2) { opacity: 0; }
.bar.is-open .burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
.menu {
position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; gap: 16px;
padding: 96px 24px; background: rgba(248, 247, 244, 0.94); backdrop-filter: blur(48px); z-index: 35;
}
.menu.is-open { display: flex; }
.menu a { text-decoration: none; font-size: 36px; line-height: 40px; font-weight: 600; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 24px; }
.kicker { margin: 0 0 12px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
h1 {
margin: 0 0 16px; max-width: 680px; font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em;
text-wrap: balance; background: linear-gradient(90deg, #000, #666); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { margin: 0 0 32px; max-width: 680px; font-size: 32px; line-height: 40px; font-weight: 600; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 28px; font-weight: 600; }
.sub { margin: 0 0 24px; max-width: 580px; font-size: 18px; line-height: 28px; color: #333; text-wrap: pretty; }
.fine { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.fine a { color: var(--ink); font-weight: 600; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jumps a { text-decoration: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.jumps a:hover { background: var(--ink); color: #fff; }
.pixel { width: 100%; max-height: 460px; object-fit: contain; object-position: center bottom; justify-self: end; }
.work { padding-top: 80px; padding-bottom: 48px; }
.shot { display: block; text-decoration: none; color: inherit; }
.shot img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: fill; object-position: center; background: #fff; border: 1px solid var(--line); }
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 20px; }
.cap small { color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps { padding-top: 48px; padding-bottom: 48px; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li span { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--red); }
.steps p, .faq p, .case-body p { margin: 0; color: #333; text-wrap: pretty; }
.games { padding-top: 48px; padding-bottom: 48px; }
.shelf { display: flex; gap: 12px; flex-wrap: wrap; }
.coin-btn {
width: 64px; height: 64px; border: 1px solid var(--line); background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: 40px;
cursor: pointer; transition: transform 500ms var(--ease);
}
.coin-btn:hover { transform: translateY(-2px); }
.coin { background-image: url(https://dawidciesielski.pl/wp-content/uploads/2026/10/iconv2.webp); }
.tenis { background-image: url(https://dawidciesielski.pl/wp-content/uploads/2026/10/iconv2-2.webp); }
.star { background-image: url(https://dawidciesielski.pl/wp-content/uploads/2026/10/iconv2-3.webp); }
.trop { background-image: url(https://dawidciesielski.pl/wp-content/uploads/2026/10/iconv2-1.webp); }
.faq { padding-top: 48px; padding-bottom: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 18px; line-height: 28px; font-weight: 600; }
.faq details p { margin-top: 8px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 96px; }
.portrait { width: auto; max-width: 100%; height: auto; margin-bottom: 24px; }
.contact label { display: block; margin: 16px 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.contact input, .contact textarea, .contact select, #reward-box input {
width: 100%; background: #fff; border: 1px solid var(--line); padding: 8px 12px; font-size: 16px; line-height: 24px; color: var(--ink);
}
.contact textarea { min-height: 120px; resize: vertical; }
.contact .btn { width: 100%; margin-top: 16px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.note { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); }
.note.success { border-color: #2E7D32; background: #E8F5E9; }
.note.error { border-color: var(--red); background: #FFF0F0; }
.page { padding-top: 112px;}
.case-top { align-items: center; }
.case-shot { width: 100%; height: 320px; object-fit: cover; object-position: top center; border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.case-body { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.case-body dl { margin: 24px 0 0; }
.case-body dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.case-body dt { color: var(--muted); }
.case-body dd { margin: 0; font-weight: 600; }
.case-body article { padding: 24px 0; border-top: 1px solid var(--line); }
.next { display: block; text-decoration: none; background: var(--ink); color: #fff; padding: 64px 0; }
.next small { color: #9B9B9B; font-size: 14px; line-height: 20px; }
.next strong { display: block; margin-top: 8px; font-size: 48px; line-height: 1; font-weight: 600; text-wrap: balance; }
.colophon {
max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px;
display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; line-height: 20px;
border-top: 1px solid var(--line);
}
.colophon-links { display: flex; gap: 16px; }
.colophon a, .dc-reopen { color: var(--ink); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
#dc-cookie-widget, #dc-cookie-widget .dc-btn, .dc-btn { border-radius: 0 !important; }
#game-overlay { position: fixed; inset: 0; background: rgba(248, 247, 244, 0.98); z-index: 80; display: none; }
#game-ui { position: absolute; top: 24px; left: 0; right: 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr 1fr; font-weight: 600; pointer-events: none; z-index: 2; }
#score-display { justify-self: start; } #time-display { justify-self: center; }
.game-close { justify-self: end; pointer-events: auto; cursor: pointer; color: var(--red); font-weight: 700; }
#game-area { position: absolute; inset: 0; overflow: hidden; cursor: crosshair; touch-action: none; }
#player-cursor { position: absolute; width: 40px; height: 40px; border: 2px solid var(--red); transform: translate(-50%, -50%); pointer-events: none; display: none; }
.game-target { position: absolute; width: 60px; height: 60px; background: url(https://dawidciesielski.pl/wp-content/uploads/2026/01/coin.png) no-repeat center/contain; }
.paddle { position: absolute; background: var(--ink); height: 12px; width: 100px; bottom: 40px; transform: translateX(-50%); }
.ball-elem { position: absolute; width: 40px; height: 40px; background: url(https://dawidciesielski.pl/wp-content/uploads/2026/01/tenisball.png) no-repeat center/contain; }
.falling-star, .meteor { position: absolute; width: 40px; height: 40px; background: url(https://dawidciesielski.pl/wp-content/uploads/2026/01/star.png) no-repeat center/contain; }
.timing-bar-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; max-width: 400px; height: 24px; background: #e7e5e0; overflow: hidden; }
.timing-target { position: absolute; height: 100%; background: #2E7D32; }
.timing-cursor { position: absolute; top: 0; width: 6px; height: 100%; background: var(--ink); }
.level-container { position: absolute; top: 35%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 12px; }
.level-trophy { width: 40px; height: 40px; background: url(https://dawidciesielski.pl/wp-content/uploads/2026/01/trop.png) no-repeat center/contain; opacity: 0.25; }
.level-trophy.unlocked { opacity: 1; }
#result-screen { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; width: min(420px, calc(100% - 32px)); background: #fff; border: 1px solid var(--line); padding: 32px; z-index: 3; }
#result-screen h2 { font-size: 32px; line-height: 40px; }
.game-reward-box { display: none; margin: 16px 0; padding: 16px; background: var(--bg); border-left: 4px solid var(--red); }
.game-reward-box p { margin: 0 0 12px; }
.btn-restart, #reward-box button { width: 100%; margin-top: 12px; }
@media (max-width: 900px) {
.bar-links { display: none; }
.burger { display: block; }
.hero, .contact, .case-body { grid-template-columns: 1fr; }
.grid {
display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.grid::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 84%; scroll-snap-align: start; }
.cap { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.shell, .menu, .colophon, .next, #dc-cookie-widget { text-align: center; }
h1, h2, h3, .sub, .kicker { margin-left: auto; margin-right: auto; }
.jumps, .shelf, .actions, .colophon, .colophon-links { justify-content: center; }
.menu, .colophon { align-items: center; }
.steps li { grid-template-columns: 1fr; justify-items: center; }
.case-body dl div { flex-direction: column; align-items: center; }
.portrait { margin-left: auto; margin-right: auto; }
.contact input, .contact textarea, .contact select { text-align: left; }
h1, .next strong { font-size: 28px; line-height: 40px; }
h2 { font-size: 30px; line-height: 36px; }
.pixel { max-height: 280px; justify-self: center; }
.case-shot { height: 220px; }
.colophon { flex-direction: column; align-items: center; }
.colophon-links { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
.btn, .coin-btn, .burger span { transition: none; }
}