/*
 * Web hry (publeague.eu): společný vzhled české (/) a anglické (/en/) stránky.
 */
:root {
  --ink: #1b2340;
  --soft: #58618a;
  --bg: #eef2fb;
  --card: #ffffff;
  --line: #dfe5f2;
  --mustard: #ffd23f;
  --mustard-dark: #d99a00;
  --mustard-soft: #fff3c2;
  --sky: #3f86d6;
  --sky-light: #8fc0f2;
  --grass: #3d8f3a;
  --good: #1b7f35;
  --pixel: 'Jersey 15', ui-monospace, monospace;
  --ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--pixel);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.01em;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
/* Karta jako ve hře: bílá, tmavý obrys, tvrdý stín. */
.panel {
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 20px;
  font: 900 18px/1.1 var(--ui);
  color: var(--ink);
  text-decoration: none;
  background: var(--mustard);
  border: 3px solid var(--ink);
  box-shadow: inset 0 -6px 0 var(--mustard-dark);
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.04);
}
.btn:active {
  box-shadow: inset 0 -2px 0 var(--mustard-dark);
  transform: translateY(2px);
}
.btn:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.btn[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.6);
  opacity: 0.7;
}
.btn-wood {
  background: var(--card);
  box-shadow: inset 0 -6px 0 var(--line);
}

/* ---------- hlavička a úvod ---------- */
.top {
  background: var(--sky);
  color: #fff;
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 6px;
}
.bar img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}
.brand {
  font-family: var(--pixel);
  font-size: 34px;
  line-height: 1;
}
/* Přepínač jazyka (CZ / EN) vpravo vedle tlačítka. */
.bar a.lang {
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bar a.btn {
  margin-left: 0;
  min-height: 44px;
  font-size: 15px;
  padding: 4px 14px;
}
.hero {
  display: grid;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 0;
  align-items: end;
}
.hero h1 {
  font-size: clamp(54px, 13vw, 96px);
  text-shadow: 0 4px 0 var(--ink);
}
.lead {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 700;
  max-width: 34em;
}
.signup {
  margin-top: 20px;
  padding: 16px;
  color: var(--ink);
  max-width: 520px;
}
.signup label {
  display: block;
  font-weight: 900;
  font-size: 16px;
}
.row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 12px;
  font: 800 18px var(--ui);
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 0;
}
.row .btn {
  flex: 0 0 auto;
}
.small {
  margin-top: 10px;
  font-size: 14px;
  color: var(--soft);
}
.thanks {
  display: none;
  font-weight: 900;
  font-size: 18px;
}
.thanks.on {
  display: block;
}
.phone {
  border: 4px solid var(--ink);
  background: var(--ink);
  box-shadow: 0 6px 0 rgb(27 35 64 / 0.35);
  width: min(100%, 300px);
  margin: 0 auto;
}
.phone img {
  width: 100%;
  height: auto;
}
.hero .phone {
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}
/* Pás vesnice: scéna ze hry, zvětšená ostře po pixelech. */
.strip {
  height: clamp(120px, 26vw, 250px);
  background: var(--grass) url('img/village.png') center 62% / cover no-repeat;
  image-rendering: pixelated;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

/* ---------- pozvánka na přátelák ---------- */
.invite {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--mustard-soft);
}
.invite.on {
  display: block;
}
.invite h2 {
  font-size: 34px;
}
.invite .code {
  display: inline-block;
  padding: 0 8px;
  font: 900 20px var(--ui);
  background: #fff;
  border: 3px solid var(--ink);
}
.invite .row {
  align-items: center;
}

/* ---------- oddíly ---------- */
section.block {
  padding: 56px 0 8px;
}
.block h2 {
  font-size: clamp(40px, 8vw, 60px);
}
.block > .wrap > p.sub {
  margin-top: 8px;
  color: var(--soft);
  font-weight: 700;
  max-width: 40em;
}
.steps,
.tiles,
.shots {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.step,
.tile {
  padding: 16px;
}
.step .when {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--pixel);
  font-size: 26px;
  line-height: 1.1;
  background: var(--mustard);
  border: 3px solid var(--ink);
}
.step h3,
.tile h3 {
  margin-top: 12px;
  font-size: 30px;
}
.step p,
.tile p {
  margin-top: 6px;
  color: var(--soft);
  font-weight: 700;
}
.shots figure {
  margin: 0;
}
.shots figcaption {
  margin-top: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--soft);
}
.faq {
  margin-top: 20px;
}
.faq details {
  padding: 14px 16px;
}
.faq details + details {
  margin-top: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}
.faq p {
  margin-top: 8px;
  color: var(--soft);
  font-weight: 700;
}
.again {
  margin: 56px 0 0;
  padding: 40px 0 48px;
  background: var(--grass);
  color: #fff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.again h2 {
  font-size: clamp(40px, 8vw, 60px);
  text-shadow: 0 4px 0 var(--ink);
}
/* Odkaz na Instagram pod druhým zápisem a v patičce. */
.again .follow {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 800;
}
.again .follow a,
footer a {
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer {
  padding: 22px 0 34px;
  font-size: 14px;
  color: var(--soft);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

/* Na telefonu jsou ukázky vedle sebe a listuje se jimi do strany (stránka sama do strany nejede). */
@media (max-width: 759px) {
  .shots {
    display: flex;
    gap: 16px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .shots figure {
    flex: 0 0 74%;
    max-width: 300px;
    scroll-snap-align: center;
  }
}
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
  }
  .steps,
  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 520px) and (max-width: 759px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
    
