:root {
  --ink: #0d0909;
  --ink2: #161011;
  --ink3: #221819;
  --paper: #efe3cc;
  --muted: #b5a389;
  --dim: #7d6e5c;
  --gold: #d4a95a;
  --gold2: #f1d9a2;
  --red: #c42b36;
  --red-d: #5e1018;
  --line: rgba(212, 169, 90, .22);
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 500 18px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
b { color: var(--gold2); font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }

/* tło: kurz w świetle świec + winieta */
#dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(196, 43, 54, .07), transparent 70%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .7) 100%);
}

/* UI */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold)); z-index: 50; }
#dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 40; }
#dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; padding: 0; position: relative; transition: background .3s, transform .3s; }
#dots button.on { background: var(--gold); transform: scale(1.35); }
#dots button span { position: absolute; right: 20px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; font-size: 13px; color: var(--paper); background: rgba(13, 9, 9, .85); padding: 3px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#dots button:hover span { opacity: 1; transform: translate(0, -50%); }
#hint { position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--dim); z-index: 40; letter-spacing: .04em; transition: opacity .6s; }
#hint.off { opacity: 0; }
#badge { position: fixed; left: 16px; bottom: 16px; width: 92px; height: 92px; z-index: 40; color: var(--gold); opacity: .85; }
#badge text { font: 700 14.5px var(--sans); letter-spacing: .14em; fill: currentColor; }
#badge .badge-rot { transform-origin: 100px 100px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* slajdy */
.slide { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 7vw; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }
.wrap.two { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 64px; align-items: center; }
.wrap.two.wide { grid-template-columns: 6fr 5fr; }
.kicker { font: 700 13px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin: 0 0 12px; }
.h2 { font: 600 clamp(40px, 5.6vw, 82px)/1.02 var(--serif); margin: 0 0 22px; letter-spacing: -.01em; }
.h2 .w { display: inline-block; }
.sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 760px; margin: 0 0 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink);
  padding: 13px 24px; border-radius: 999px; font-weight: 700; letter-spacing: .02em;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--gold2); transform: translateY(-2px); }
.btn.big { font-size: 19px; padding: 16px 30px; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(212, 169, 90, .12); }
.btn.ghost.on { background: var(--gold); color: var(--ink); }

/* HERO */
.hero { padding-top: 0; padding-bottom: 0; overflow: hidden; }
.hero-img { position: absolute; right: 0; top: 0; bottom: 0; width: 52%; z-index: -1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: sepia(.25) contrast(1.05) brightness(.8);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%), linear-gradient(0deg, transparent 0, #000 35%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.hero { justify-content: flex-start; }
.hero-inner { max-width: 1180px; width: 100%; margin: 0 auto; padding-top: 9vh; }
.hero-title { font: 400 clamp(56px, min(10.5vw, 16vh), 168px)/.88 var(--serif); margin: 0 0 3vh; letter-spacing: -.02em; }
.hero-title .ln { display: block; overflow: hidden; font-weight: 700; font-optical-sizing: none; font-variation-settings: 'opsz' 18; }
.hero-title .ln > span { display: inline-block; }
.hero-title .it { font-style: italic; font-weight: 600; color: var(--gold); padding-left: .6em; }
.lead { font-size: clamp(18px, 1.7vw, 23px); color: var(--muted); max-width: 520px; margin: 0 0 3.2vh; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.author { margin-top: 2.6vh; font-size: 15px; color: var(--paper); }
.author span { color: var(--dim); margin-right: 6px; }
.hero-strings { position: relative; width: 100%; max-width: 1180px; margin: auto auto 5vh; height: 24vh; min-height: 140px; }

.strings-wrap { position: relative; }
.strings { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.strings-tip { position: absolute; right: 24px; bottom: -6px; margin: 0; font-size: 13px; color: var(--dim); letter-spacing: .04em; }
.strings-tip.ok { color: var(--gold); }

/* KIM BYŁ */
.portrait, .violin, .statue, .grave { margin: 0; }
.portrait img { border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); filter: sepia(.15); max-height: 72vh; margin: 0 auto; }
figcaption { font-size: 13px; color: var(--dim); margin-top: 10px; text-align: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: rgba(34, 24, 25, .55); display: flex; flex-direction: column; gap: 2px; }
.fact-card .fk { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.fact-card b { font: 600 22px/1.25 var(--serif); color: var(--paper); }
.fact-card span:last-child { color: var(--muted); font-size: 15px; }

/* INTERLUDIA */
.interlude { min-height: 120vh; align-items: center; text-align: center; }
.big-quote { font: 400 clamp(38px, 6.4vw, 104px)/1.05 var(--serif); margin: 0; max-width: 1200px; }
.big-quote span { display: inline-block; }
.big-quote .red { color: var(--red); font-style: italic; }
.quote-note { max-width: 640px; color: var(--muted); margin: 36px auto 0; font-size: clamp(17px, 1.4vw, 20px); }
.interlude.dark { background: radial-gradient(ellipse at center, rgba(94, 16, 24, .35), transparent 70%); }

/* OŚ CZASU */
#czas { padding: 0; justify-content: flex-start; overflow: hidden; height: 100vh; }
.tl-head { padding: 12vh 7vw 0; max-width: calc(1180px + 14vw); margin: 0 auto; width: 100%; }
.tl-viewport { position: relative; flex: 1; display: flex; align-items: center; }
.tl-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--line); }
.tl-fill { height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold)); }
.tl-track { list-style: none; margin: 0; padding: 0 7vw; display: flex; align-items: center; gap: 28px; will-change: transform; }
.tl-item { flex: 0 0 300px; position: relative; height: min(560px, 64vh); }
.tl-card { position: absolute; left: 0; right: 0; opacity: 1; border: 1px solid rgba(212, 169, 90, .45); border-radius: 14px; padding: 16px 18px 18px; background: #1d1415; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.tl-item:nth-child(odd) .tl-card { bottom: calc(50% + 30px); }
.tl-item:nth-child(even) .tl-card { top: calc(50% + 30px); }
.tl-item::before { content: ''; position: absolute; left: 28px; width: 2px; height: 30px; background: rgba(212, 169, 90, .55); }
.tl-item:nth-child(odd)::before { bottom: 50%; }
.tl-item:nth-child(even)::before { top: 50%; }
.tl-year { font: 600 40px/1 var(--serif); color: var(--gold); }
.tl-card h3 { margin: 6px 0 6px; font-size: 18px; color: var(--paper); }
.tl-card p { margin: 0; font-size: 15px; color: #d3c3a8; line-height: 1.5; }
.tl-dot { position: absolute; left: 22px; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--gold2); box-shadow: 0 0 12px rgba(212, 169, 90, .7); z-index: 1; }

/* MAPA */
#mapa { height: 100vh; padding-top: 60px; padding-bottom: 40px; }
.map-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; max-width: 1280px; margin: 0 auto; width: 100%; height: 100%; }
.map-box { height: 100%; min-height: 0; display: flex; align-items: center; }
#map { width: 100%; height: auto; max-height: calc(100vh - 110px); }
#map .land { fill: #2a1f1f; stroke: #4a3a35; stroke-width: .6; }
#map .land.it { fill: #3a2a26; }
#map .route { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(212, 169, 90, .6)); }
#map .route-bg { fill: none; stroke: rgba(212, 169, 90, .16); stroke-width: 1.4; stroke-dasharray: 3 6; }
#map .city circle { fill: var(--ink); stroke: var(--gold); stroke-width: 2; transition: r .3s, fill .3s; cursor: pointer; }
#map .city.on circle { fill: var(--red); stroke: var(--gold2); }
#map .city.seen circle { fill: var(--gold); }
#map .city text { font: 600 15px var(--sans); fill: var(--paper); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; pointer-events: none; }
#map .city.pl text { fill: var(--gold2); }
#map .pulse { fill: none; stroke: var(--red); stroke-width: 2; }
.city-card { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 18px 22px; background: rgba(22, 16, 17, .8); min-height: 190px; }
.cc-year { font: 700 13px var(--sans); letter-spacing: .2em; color: var(--red); }
.cc-name { font: 600 34px/1.1 var(--serif); margin: 6px 0 10px; }
.cc-text { margin: 0; color: var(--muted); font-size: 16.5px; }
.map-tip { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* DIABEŁ */
.devil { overflow: hidden; }
.devil-bg { position: absolute; inset: 0; z-index: -1; opacity: .12; -webkit-mask-image: radial-gradient(ellipse 55% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(ellipse 55% 70% at 70% 40%, #000, transparent); }
.devil-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.4); }
.flip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flip { border: 0; background: none; padding: 0; perspective: 1200px; height: 340px; text-align: left; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip.open .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
.front { background: linear-gradient(160deg, #2b1a1c, #140d0e 70%); justify-content: flex-end; overflow: hidden; }
.front::before { content: ''; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 43, 54, .35), transparent 70%); }
.front h3 { font: 600 30px/1.05 var(--serif); margin: 8px 0 14px; }
.tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.tap { font-size: 13px; color: var(--dim); }
.back { transform: rotateY(180deg); background: #1b1314; overflow: auto; }
.back h3 { font: 600 22px var(--serif); margin: 0 0 8px; color: var(--gold); }
.back p { font-size: 15px; margin: 0 0 10px; color: var(--paper); line-height: 1.5; }
.verdict { margin-top: auto !important; padding: 10px 12px; border-radius: 10px; font-size: 14px !important; }
.verdict.no { background: rgba(196, 43, 54, .16); border-left: 3px solid var(--red); }
.verdict.yes { background: rgba(110, 170, 100, .14); border-left: 3px solid #7fb070; }
.verdict.half { background: rgba(212, 169, 90, .14); border-left: 3px solid var(--gold); }

/* STRUNY */
.panel { height: 300px; border: 1px solid var(--line); border-radius: 18px; background:
  linear-gradient(90deg, rgba(0,0,0,.35), transparent 12%, transparent 88%, rgba(0,0,0,.35)),
  linear-gradient(180deg, #1d1312, #120c0c); overflow: hidden; }
.break-msg { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 30px 40px 30px 90px;
  background: linear-gradient(90deg, rgba(13, 9, 9, .2), rgba(13, 9, 9, .92) 40%); opacity: 0; pointer-events: none; transition: opacity .6s; }
.break-msg.show { opacity: 1; pointer-events: auto; padding-left: 45%; }
.break-msg h3 { font: 600 32px var(--serif); margin: 0 0 8px; color: var(--gold); }
.break-msg p { margin: 0 0 18px; color: var(--paper); font-size: 16px; max-width: 520px; }
.modes { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 18px; font-size: 15px; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; }
.mode-desc { color: var(--muted); font-size: 15.5px; margin: 12px 0 0; min-height: 50px; max-width: 760px; }

/* TECHNIKA */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(22, 16, 17, .7); position: relative; overflow: hidden; }
.tech .tn { font: 400 54px/1 var(--serif); color: rgba(212, 169, 90, .22); position: absolute; right: 16px; top: 10px; }
.tech h3 { font: 600 23px var(--serif); margin: 0 0 8px; }
.tech p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ODTWARZACZ */
.tracks { display: flex; flex-direction: column; gap: 10px; }
.track { text-align: left; border: 1px solid var(--line); border-radius: 14px; background: rgba(22, 16, 17, .6); padding: 14px 18px; display: flex; flex-direction: column; transition: border-color .25s, background .25s; }
.track b { color: var(--paper); font-size: 17px; }
.track span { color: var(--dim); font-size: 14px; }
.track.on { border-color: var(--gold); background: rgba(212, 169, 90, .1); }
.track.on b { color: var(--gold2); }
.player { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: radial-gradient(ellipse at 50% 30%, #2a1a1b, #120c0c 75%); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
#viz { width: 100%; aspect-ratio: 1.25; display: block; }
.pl-info h3 { font: 600 26px var(--serif); margin: 6px 0 2px; }
.pl-info p { margin: 0; color: var(--dim); font-size: 13px; min-height: 2.6em; }
.pl-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--gold); display: grid; place-items: center; flex: none; transition: transform .2s, background .2s; }
.play:hover { transform: scale(1.06); background: var(--gold2); }
.play svg { width: 24px; height: 24px; fill: var(--ink); }
.pl-bar { flex: 1; height: 6px; border-radius: 4px; background: rgba(239, 227, 204, .12); cursor: pointer; position: relative; }
.pl-fill { height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.pl-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 40px; }

/* ARMATA */
.violin { display: flex; justify-content: center; }
.violin img { max-height: 76vh; border-radius: 10px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); mix-blend-mode: normal; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--paper); font-size: 17px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .62em; width: 16px; height: 2px; background: var(--red); }

/* GWIAZDA */
.statue img { max-height: 74vh; margin: 0 auto; border-radius: 10px; filter: sepia(.2) brightness(.95); }

/* POLSKA */
#polska { overflow: hidden; }
.pl-hero { position: absolute; inset: 0; z-index: -1; opacity: .16; }
.pl-hero img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.6); -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%); mask-image: linear-gradient(180deg, #000 20%, transparent 90%); }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(22, 16, 17, .82); display: flex; flex-direction: column; gap: 14px; }
.person img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 15%; border-radius: 10px; }
.person .mono { height: 190px; border-radius: 10px; display: grid; place-items: center; font: italic 600 74px var(--serif); color: var(--gold); background: radial-gradient(circle at 50% 40%, #3a2224, #1a1112); }
.person h3 { font: 600 22px var(--serif); margin: 0 0 6px; }
.person p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* WPŁYW */
.wave-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.wv { border: 1px solid var(--line); background: transparent; border-radius: 12px; padding: 10px 18px; font-weight: 700; color: var(--paper); display: flex; flex-direction: column; align-items: flex-start; transition: background .25s, border-color .25s; }
.wv span { font: 600 13px var(--sans); color: var(--red); letter-spacing: .1em; }
.wv.on { background: rgba(212, 169, 90, .12); border-color: var(--gold); }
.infl { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(22, 16, 17, .75); min-height: 250px; }
.infl img { width: 200px; height: 220px; object-fit: cover; object-position: 50% 15%; border-radius: 12px; filter: sepia(.2); }
.infl h3 { font: 600 30px var(--serif); margin: 0 0 8px; }
.infl p { margin: 0; color: var(--muted); }
.staff-play { margin-top: 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.staff-note { font-size: 13px; color: var(--dim); }

/* ŚMIERĆ */
.grave img { border-radius: 12px; filter: sepia(.35) brightness(.8); }

/* CIEKAWOSTKI */
.trivia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tv { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: rgba(22, 16, 17, .7); }
.tv b { font: 600 26px var(--serif); color: var(--gold); }
.tv p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

/* QUIZ */
.quiz { max-width: 780px; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: rgba(22, 16, 17, .82); }
.q-top { display: flex; justify-content: space-between; color: var(--dim); font-size: 14px; margin-bottom: 8px; }
.q-bar { height: 4px; background: rgba(239, 227, 204, .1); border-radius: 4px; margin-bottom: 20px; }
.q-bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; transition: width .4s; }
.q-text { font: 600 clamp(22px, 2.3vw, 30px)/1.25 var(--serif); margin: 0 0 18px; }
.q-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-ans button { text-align: left; border: 1px solid var(--line); background: rgba(239, 227, 204, .03); border-radius: 12px; padding: 14px 16px; color: var(--paper); font-size: 16px;
  transition: background-color .25s, border-color .25s; }
.q-ans button:hover:not(:disabled) { border-color: var(--gold); }
.q-ans button.good { background: rgba(110, 170, 100, .22); border-color: #7fb070; }
.q-ans button.bad { background: rgba(196, 43, 54, .22); border-color: var(--red); }
.q-ans button:disabled { cursor: default; }
.q-why { min-height: 52px; color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.q-next { margin-top: 8px; }
.q-end { text-align: center; }
.q-end .score { font: 600 92px/1 var(--serif); color: var(--gold); }

/* KONIEC */
.sum { padding-left: 1.2em; margin: 0 0 40px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.sum li { font-size: 18px; }
.sum li::marker { color: var(--red); font-family: var(--serif); font-weight: 600; }
.made { text-align: center; margin: 30px 0 10px; }
.made-k { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); }
.made-name { font: italic 600 clamp(48px, 7vw, 100px)/1.05 var(--serif); margin: 8px 0; color: var(--gold); }
.made-name .ch { display: inline-block; }
.made-c { color: var(--muted); }
.thanks { text-align: center; font: 400 28px var(--serif); margin: 26px 0; }
.credits { max-width: 900px; margin: 30px auto 0; color: var(--dim); font-size: 13px; }
.credits summary { cursor: pointer; color: var(--muted); }
.credits li { margin: 4px 0; }
.credits a { color: var(--muted); }

/* animacje wejścia */
.reveal { opacity: 0; transform: translateY(26px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .wrap.two, .wrap.two.wide, .map-grid { grid-template-columns: 1fr; gap: 30px; }
  .flip-row { grid-template-columns: 1fr 1fr; }
  .tech-grid, .trivia, .pl-grid { grid-template-columns: 1fr 1fr; }
  #mapa { height: auto; }
  .hero-img { width: 100%; opacity: .35; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .slide { padding: 70px 16px; }
  #dots, #badge, #hint { display: none; }
  .flip-row, .tech-grid, .trivia, .pl-grid, .facts, .q-ans { grid-template-columns: 1fr; }
  .flip { height: 300px; }
  .infl { grid-template-columns: 1fr; }
  .infl img { width: 100%; height: 200px; }
  #czas { height: auto; padding: 70px 16px; }
  .tl-head { padding: 0; }
  .tl-track { flex-direction: column; padding: 0; gap: 14px; }
  .tl-item { flex: none; height: auto; }
  .tl-card, .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { position: static; }
  .tl-dot, .tl-line, .tl-item::before { display: none; }
  .break-msg.show { padding: 24px; }
  .hero-strings { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  #badge .badge-rot { animation: none; }
}
