/* SneG s.r.o. — road-signage identity: all four games are about traffic
   (a moped, a gridlocked city, a golf cart, tanker convoys). */

:root {
  --asphalt: #1c2126;
  --asphalt-2: #2a3138;
  --verge: #f3f4f0;
  --paper: #ffffff;
  --ink: #171b1f;
  --muted: #59626c;
  --line: #d9dcd5;
  --sign-yellow: #ffd200;
  --sign-blue: #0a4d9e;
  --sign-red: #c8261c;
  --works: #f08a00;
  --lane: #e9ebe6;
  --radius: 10px;
  --measure: 66ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--verge); color: var(--ink);
  font-family: "Overpass", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sign-blue); text-underline-offset: 0.18em; }
a:hover { color: #063a79; }
:focus-visible { outline: 3px solid var(--sign-blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { margin: 0; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* language switch: English is the default (also without JavaScript); Czech shows when <html lang="cs"> */
html:not([lang="cs"]) [data-cs] { display: none !important; }
html[lang="cs"] [data-en] { display: none !important; }

/* ---------- header ---------- */
.top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
/* studio mascot: a snail whose shell is the Czech "priority road" sign (logo since 31. 10. 2026) */
.snek { width: 48px; height: 48px; flex: none; display: block; }
/* the Czech "priority road" sign: a yellow diamond with a white edge */
.diamond { width: 22px; height: 22px; background: var(--sign-yellow); border: 3px solid #fff; outline: 2px solid var(--ink); transform: rotate(45deg); margin: 0 5px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 6px; }
.menu a:hover { background: var(--verge); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sign-yellow); border-radius: 0; }
.lang { font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; margin-left: 8px; padding: 6px 12px; border-radius: 6px; background: var(--ink); color: #fff; border: 0; }
.lang:hover { background: var(--sign-blue); }

/* ---------- hero ---------- */
.hero { background: var(--asphalt); color: #fff; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 76px; }
.hero h1 { color: #fff; }
.hero p { color: #c9d0d6; font-size: 1.2rem; margin-top: 20px; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
/* centre-line of the road, the one decorative motif of the site */
.hero::after, .lane { content: ""; display: block; height: 8px; background: repeating-linear-gradient(90deg, var(--lane) 0 56px, transparent 56px 96px); }
.hero::after { position: absolute; left: 0; right: 0; bottom: 26px; opacity: 0.9; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 8px 0 18px; }
.phone { width: 31%; max-width: 190px; border-radius: 18px; border: 5px solid #0d1013; background: #0d1013; box-shadow: 0 18px 40px rgba(0,0,0,0.45); overflow: hidden; }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.phones .phone:nth-child(1) { transform: rotate(-6deg) translate(14px, 10px); }
.phones .phone:nth-child(2) { transform: translateY(-14px); z-index: 2; max-width: 210px; width: 34%; }
.phones .phone:nth-child(3) { transform: rotate(6deg) translate(-14px, 10px); }

.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: 12px 20px; border-radius: 8px; border: 2px solid transparent; line-height: 1.2; }
.btn-yellow { background: var(--sign-yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffe04a; color: var(--ink); }
.btn-ghost { border-color: #6b7680; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--sign-blue); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- sections ---------- */
.band { padding: 64px 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.band-head p { margin: 10px 0 0; color: var(--muted); }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.page-head p { color: var(--muted); font-size: 1.15rem; margin: 16px 0 0; }

/* status plates: blue information sign = released, orange roadworks sign = in development */
.plate { display: inline-block; font-weight: 800; font-size: 0.86rem; line-height: 1; padding: 7px 11px; border-radius: 5px; white-space: nowrap; }
.plate-out { background: var(--sign-blue); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--sign-blue); }
.plate-dev { background: var(--works); color: #1a1205; box-shadow: inset 0 0 0 2px #1a1205; }

/* feature rows on the home page */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 34px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
/* a Czech-only row is hidden in English, so it draws the dividing line under itself and takes it along */
.feature[data-cs] + .feature { border-top: 0; }
.feature[data-cs]:not(:last-child) { border-bottom: 1px solid var(--line); }
/* every other row is mirrored; flip-cs and flip-en mirror a row in one language only (a Czech-only row shifts the count) */
.feature.flip .feature-media, html[lang="cs"] .feature.flip-cs .feature-media, html:not([lang="cs"]) .feature.flip-en .feature-media { order: -1; }
.feature-title { display: flex; align-items: center; gap: 16px; margin: 14px 0 14px; }
.feature-title img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.feature p { color: #343b42; }
.feature-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.strip img, .shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 1px solid #0d1013; background: #0d1013; }

/* game cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--ink); color: inherit; }
.card-shot { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; width: 100%; background: var(--asphalt); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-top img { width: 48px; height: 48px; border-radius: 11px; flex: none; }

/* game detail */
.game-head { background: var(--asphalt); color: #fff; padding: 48px 0 0; }
.game-head .wrap { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 28px; align-items: start; }
.game-head img.icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.game-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 12px; color: #fff; }
.game-head p { color: #c9d0d6; font-size: 1.15rem; margin: 12px 0 0; }
.game-head .feature-actions { margin: 22px 0 0; }
.game-head .lane { margin-top: 40px; opacity: 0.9; }
.crumbs { font-size: 0.95rem; margin-bottom: 4px; }
.crumbs a { color: #c9d0d6; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 14px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ticks { list-style: none; display: grid; gap: 10px; max-width: var(--measure); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 11px; height: 11px; background: var(--sign-yellow); outline: 2px solid var(--ink); transform: rotate(45deg); }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.banner { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 36px; }

/* studio / support */
.prose h2 { margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: 6px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; list-style: none; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sign-blue); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.98rem; }
dl.legal { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; max-width: 70ch; }
dl.legal dt { color: var(--muted); }
dl.legal dd { margin: 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; max-width: 76ch; }
details + details { margin-top: 10px; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; }
.contact-card { background: var(--asphalt); color: #fff; border-radius: var(--radius); padding: 28px; }
.contact-card a { color: var(--sign-yellow); }
.contact-card h2, .contact-card h3 { color: #fff; }
address { font-style: normal; }

/* ---------- footer ---------- */
footer { background: var(--asphalt); color: #c9d0d6; margin-top: 0; }
footer .lane { opacity: 0.55; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
footer h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
footer a { color: #fff; }
footer ul { list-style: none; display: grid; gap: 6px; }
footer p { margin: 0 0 6px; font-size: 0.96rem; }
.legal-line { border-top: 1px solid var(--asphalt-2); font-size: 0.9rem; }
.legal-line .wrap { display: block; padding-top: 16px; padding-bottom: 22px; }

@media (max-width: 860px) {
  .hero .wrap, .feature, .two, footer .wrap { grid-template-columns: 1fr; }
  .feature.flip .feature-media, html[lang="cs"] .feature.flip-cs .feature-media, html:not([lang="cs"]) .feature.flip-en .feature-media { order: 0; }
  .hero .wrap { padding-top: 44px; }
  .game-head .wrap { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
  .game-head img.icon { width: 88px; height: 88px; border-radius: 20px; }
  .band { padding: 48px 0; }
  dl.legal { grid-template-columns: 1fr; gap: 2px; }
  dl.legal dd { margin-bottom: 10px; }
}
@media (max-width: 560px) {
  .top .wrap { padding-top: 10px; padding-bottom: 8px; }
  .menu { width: 100%; justify-content: space-between; }
  .menu a { padding: 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* spacing refinements */
.two > div > h2 + p, .two > div > h2 + span + p { margin-top: 14px; }
.band .two h2 { margin-bottom: 14px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p:last-child { margin-bottom: 0; }
.game-head .plate { margin-top: 10px; }
.banner { max-width: 900px; }
