/* Madlit Games — světlý editorial. Písma lokálně (OFL): Archivo (nadpisy), Inter (text). */
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); 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: 'Inter'; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); 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; }

:root {
  --bg: #f5efe6;
  --white: #fffdf9;
  --ink: #14110e;
  --muted: #6b6158;
  --line: rgba(20, 17, 14, .14);
  --accent: #ff6a1f;
  --cream-on-dark: #f5efe6;
  --muted-on-dark: #a99d91;
  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
  --f-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; margin-bottom: 28px; }
.kicker::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 42ch; }

/* tlačítka */
.btn { --bg: var(--ink); --fg: #f5efe6; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 2px solid var(--bg); border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 16px/1 var(--f-text); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-2px); --bg: var(--accent); --fg: var(--ink); }
.btn:active { transform: translateY(0) scale(.97); }
.btn__arr { transition: transform .2s var(--ease); }
.btn:hover .btn__arr { transform: translateX(4px); }
.btn--line { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #f5efe6; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--xl { min-height: 64px; padding: 0 34px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* navigace */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(245, 239, 230, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--f-display); font-stretch: 118%; letter-spacing: -.04em; }
.logo__mark { width: 34px; height: 34px; transition: transform .25s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-10deg) scale(1.06); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease); padding: 4px 0; }
.nav__links a:not(.btn):hover { background-size: 100% 2px; }
.nav__lang { font-weight: 700; letter-spacing: .04em; font-size: 13px; }
.nav__toggle { display: none; }

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 112px); font-weight: 900; font-stretch: 118%; line-height: .92; letter-spacing: -.045em; }
.hero h1 mark { background: var(--accent); color: var(--ink); padding: 0 .14em .04em; border-radius: .14em; display: inline-block; transform: rotate(-2.5deg); line-height: 1; }
.hero__sub { margin: 34px 0 36px; font-size: clamp(18px, 1.45vw, 21px); color: var(--muted); max-width: 44ch; }

/* arkáda */
.arcade { background: var(--ink); color: var(--cream-on-dark); border-radius: 30px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(20, 17, 14, .55); transform: rotate(1.5deg); transition: transform .4s var(--ease); }
.arcade:hover, .arcade:focus-within { transform: rotate(0); }
.arcade__top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 12px; font-size: 13px; font-weight: 600; color: var(--muted-on-dark); }
.arcade__top > span:first-child { font-family: var(--f-display); font-weight: 900; font-stretch: 118%; letter-spacing: -.02em; color: var(--cream-on-dark); font-size: 15px; }
.arcade__hud span { color: var(--accent); font-weight: 700; font-size: 15px; }
.arcade__screen { position: relative; aspect-ratio: 4 / 4.6; max-height: calc(100svh - 260px); min-height: 360px; width: 100%; border-radius: 20px; overflow: hidden; background: #0c0a08; touch-action: none; user-select: none; -webkit-user-select: none; }
.arcade__screen canvas { width: 100%; height: 100%; cursor: none; }
.arcade__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: radial-gradient(ellipse at center, rgba(12, 10, 8, .5), rgba(12, 10, 8, .88)); }
.arcade__overlay[hidden] { display: none; }
.arcade .btn { --bg: var(--accent); --fg: var(--ink); }
.arcade .btn:hover { --bg: var(--cream-on-dark); }
.arcade .btn--ghost { --bg: transparent; --fg: var(--cream-on-dark); border-color: rgba(245, 239, 230, .3); }
.arcade .btn--ghost:hover { --bg: var(--cream-on-dark); --fg: var(--ink); }
.arcade__title { font: 900 clamp(22px, 2.2vw, 30px)/1.05 var(--f-display); font-stretch: 115%; max-width: 13ch; letter-spacing: -.035em; }
.arcade__help { font-size: 13px; color: var(--muted-on-dark); }
.arcade__label { font-size: 13px; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.arcade__score { font: 900 clamp(64px, 7vw, 96px)/1 var(--f-display); font-stretch: 120%; color: var(--accent); letter-spacing: -.05em; margin-top: -10px; }
.arcade__best { font-size: 14px; color: var(--muted-on-dark); margin-top: -8px; }
.arcade__line { max-width: 26ch; font-size: 17px; line-height: 1.45; margin-bottom: 4px; }
.arcade__note { padding: 12px 10px 4px; font-size: 13px; color: var(--muted-on-dark); }

/* běžící pás */
.marquee { background: var(--ink); color: var(--cream-on-dark); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font: 900 clamp(28px, 3.4vw, 48px)/1 var(--f-display); font-stretch: 118%; letter-spacing: -.035em; white-space: nowrap; display: inline-flex; align-items: center; }
.marquee__track span::after { content: '✱'; color: var(--accent); margin: 0 .7em; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sekce */
.sec { padding: clamp(96px, 11vw, 150px) 0; }
.sec--white { background: var(--white); }
.sec--dark { background: var(--ink); color: var(--cream-on-dark); }
.sec--dark .lead { color: var(--muted-on-dark); }
.sec--dark .btn { --bg: var(--accent); --fg: var(--ink); }
.sec--dark .btn:hover { --bg: var(--cream-on-dark); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.sec__head:has(> :only-child) { grid-template-columns: 1fr; }
.sec h2 { font-size: clamp(40px, 5.6vw, 88px); font-weight: 900; font-stretch: 118%; line-height: .94; letter-spacing: -.045em; max-width: 14ch; }
h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.15; }

/* vějíř konceptů */
.fan-sec { padding-bottom: clamp(110px, 12vw, 170px); overflow: hidden; }
.fan { list-style: none; margin: 0 auto; padding: 0 var(--pad); display: flex; justify-content: center; max-width: 1500px; }
.fan__card { --r: 0deg; --y: 0px; position: relative; flex: 0 0 clamp(140px, 13.2vw, 210px); margin-left: clamp(-56px, -3.4vw, -24px); aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 5px solid var(--white); background: var(--white); box-shadow: 0 30px 60px -30px rgba(20, 17, 14, .5); transform: translateY(var(--y)) rotate(var(--r)); transition: transform .35s var(--ease), box-shadow .35s; }
.fan__card:first-child { margin-left: 0; }
.fan__card:nth-child(1) { --r: -14deg; --y: 64px; z-index: 1; }
.fan__card:nth-child(2) { --r: -10deg; --y: 30px; z-index: 2; }
.fan__card:nth-child(3) { --r: -6deg; --y: 10px; z-index: 3; }
.fan__card:nth-child(4) { --r: -2deg; --y: 0px; z-index: 4; }
.fan__card:nth-child(5) { --r: 2deg; --y: 0px; z-index: 4; }
.fan__card:nth-child(6) { --r: 6deg; --y: 10px; z-index: 3; }
.fan__card:nth-child(7) { --r: 10deg; --y: 30px; z-index: 2; }
.fan__card:nth-child(8) { --r: 14deg; --y: 64px; z-index: 1; }
.fan__card:hover { z-index: 10; transform: translateY(calc(var(--y) - 24px)) rotate(0deg) scale(1.06); box-shadow: 0 40px 70px -30px rgba(20, 17, 14, .6); }
.fan__card:nth-child(n+5) .tag { left: auto; right: 10px; }
.fan__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.tag { position: absolute; left: 10px; bottom: 10px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* proč */
.sec .h-small { font: 600 15px/1.4 var(--f-text); letter-spacing: 0; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; max-width: none; }
.h-small::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.statement { font: 800 clamp(34px, 4.6vw, 72px)/1.02 var(--f-display); font-stretch: 112%; letter-spacing: -.04em; max-width: 20ch; text-wrap: balance; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: clamp(64px, 8vw, 110px); }
.point { border-top: 2px solid var(--ink); padding-top: 22px; }
.point__n { display: block; font: 900 56px/1 var(--f-display); font-stretch: 120%; color: var(--accent); letter-spacing: -.05em; margin-bottom: 26px; }
.point h3 { margin-bottom: 12px; }
.point p { color: var(--muted); font-size: 16px; }

/* co stavíme */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr); gap: 24px 40px; align-items: baseline; padding: 30px 0; border-top: 2px solid var(--ink); transition: padding .3s var(--ease); }
.row__n { font: 700 15px/1 var(--f-text); color: var(--muted); }
.row h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 900; font-stretch: 116%; letter-spacing: -.04em; transition: color .2s; }
.row p { color: var(--muted); font-size: 17px; max-width: 40ch; }
.row:hover { padding-left: 16px; }
.row:hover h3 { color: var(--accent); }

/* ukázka */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.case h2 { margin-bottom: 26px; }
.ticks { list-style: none; padding: 0; margin: 34px 0 40px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); transform: translateY(-1px) rotate(45deg); }
.phone { justify-self: center; width: min(100%, 340px); padding: 10px; border-radius: 46px; background: #2a241f; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 239, 230, .12); overflow: hidden; transform: rotate(-3deg); transition: transform .4s var(--ease); }
.phone img { width: 100%; height: auto; aspect-ratio: 780 / 1560; object-fit: cover; object-position: top; border-radius: 36px; transition: transform .5s var(--ease); }
.phone:hover { transform: rotate(0); }
.phone:hover img { transform: scale(1.025); }

/* jak */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step__n { display: block; font: 900 clamp(64px, 6vw, 96px)/.9 var(--f-display); font-stretch: 120%; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: 26px; transition: color .25s, -webkit-text-stroke-color .25s; }
.step:hover .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.chips { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.chips li:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px) rotate(-2deg); }

/* kontakt */
.close { background: var(--accent); padding: clamp(96px, 11vw, 150px) 0; }
.close__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px 72px; align-items: end; }
.close h2 { font-size: clamp(48px, 7.4vw, 124px); font-weight: 900; font-stretch: 120%; line-height: .9; letter-spacing: -.05em; }
.close__side { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.close .lead { color: var(--ink); }
.close .btn:hover { --bg: var(--white); --fg: var(--ink); }
.close__mail { font-weight: 600; text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat; transition: background-size .25s var(--ease); }
.close__mail:hover { background-size: 0 2px; }

.foot { background: var(--ink); color: var(--muted-on-dark); padding: 40px 0 28px; font-size: 14px; overflow: hidden; }
.foot__word { font: 900 clamp(40px, 11vw, 154px)/.8 var(--f-display); font-stretch: 125%; letter-spacing: -.06em; color: var(--cream-on-dark); white-space: nowrap; margin: 0 0 32px -.04em; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(245, 239, 230, .14); padding-top: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream-on-dark); text-decoration: underline; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--pad); }
.nf h1 { font-size: clamp(34px, 5vw, 64px); margin: 18px 0 16px; }
.nf p { color: var(--muted); margin-bottom: 32px; }
.nf__code { font: 900 clamp(110px, 18vw, 240px)/1 var(--f-display); font-stretch: 125%; color: var(--accent); letter-spacing: -.06em; }

/* tablet */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .arcade { max-width: 560px; width: 100%; transform: none; }
  .arcade__screen { max-height: none; }
  .sec__head, .close__in { grid-template-columns: 1fr; align-items: start; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .row { grid-template-columns: 60px minmax(0, 1fr); }
  .row p { grid-column: 2; }
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--pad) 50px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan__card { flex-basis: 220px; margin-left: 16px; scroll-snap-align: center; }
  .fan__card:nth-child(n) { --y: 0px; --r: 0deg; }
  .fan__card:nth-child(n+5) .tag { left: 10px; right: auto; }
  .fan__card:nth-child(odd) { --r: -2deg; }
  .fan__card:nth-child(even) { --r: 2deg; }
  .fan-sec { padding-bottom: 80px; }
}

/* mobil */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .nav__toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; cursor: pointer; }
  .nav__toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav__toggle[aria-expanded='true'] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded='true'] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav__links { position: absolute; top: var(--nav-h); left: 0; right: 0; height: calc(100svh - var(--nav-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--pad); background: var(--bg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 2px solid var(--ink); font: 900 30px/1.1 var(--f-display); font-stretch: 115%; letter-spacing: -.035em; background: none; }
  .nav__links .btn { margin-top: 28px; min-height: 58px; font-size: 17px; }
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .hero { padding: calc(var(--nav-h) + 28px) 0 44px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 58px); }
  .hero__sub { margin: 24px 0 28px; }
  .actions .btn { width: 100%; }
  .arcade { padding: 8px; border-radius: 24px; }
  .arcade__screen { aspect-ratio: 4 / 5; min-height: 0; border-radius: 18px; }
  .sec h2 { font-size: clamp(36px, 10.6vw, 52px); }
  .fan__card { flex-basis: 64vw; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .row p { grid-column: auto; }
  .case { grid-template-columns: 1fr; }
  .case .btn { width: 100%; }
  .phone { width: min(76%, 300px); }
  .btn--xl { width: 100%; }
  .close__side { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
