/* Uličky – the page is built from the game's cartoon UI: slate plates with a
   thick dark rim and a drop shadow, chunky orange / green buttons with a
   thicker bottom edge, team pills and outlined bold lettering. */
:root {
  --night: #141925;
  --slate: #212838;
  --slate-hi: #2b3448;
  --rim: #07080d;
  --ink: #f3f1ea;
  --ink-soft: #b9bfcc;
  --orange: #f99a26;
  --green: #4cb74c;
  --red: #cf3b33;
  --blue: #3b6fd6;
  --zombie: #6f9a3e;
  --gold: #ffd166;
  /* Baloo 2 has the whole Czech alphabet (Lilita One lacks č, ř, ů…). */
  --display: "Baloo 2", "Arial Rounded MT Bold", sans-serif;
  --body: "Nunito", "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, #2a3754 0%, transparent 60%),
    var(--night);
  color: var(--ink);
  font: 500 1.05rem/1.6 var(--body);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: .01em; }

/* The game's outlined HUD lettering. */
h1, h2 {
  -webkit-text-stroke: 6px var(--rim);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--rim);
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; margin-bottom: .45rem; }

code, kbd {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: .9em;
}

code {
  background: rgba(0, 0, 0, .35);
  padding: .1em .4em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.note { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
}

.title {
  font-size: clamp(4.2rem, 11vw, 8.2rem);
  -webkit-text-stroke-width: 12px;
  text-shadow: 0 9px 0 var(--rim);
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left bottom;
}

.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.2rem;
}

/* A team pill of the in-game score. */
.pill {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: .25em .9em .3em;
  border: 3px solid var(--rim);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--rim);
  -webkit-text-stroke: 3px var(--rim);
  paint-order: stroke fill;
}
.pill.red { background: var(--red); }
.pill.blue { background: var(--blue); }
.pill.green { background: var(--zombie); }

.lead { font-size: 1.18rem; max-width: 34ch; margin: 0 0 1.6rem; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: .9rem; }

/* Menu buttons: dark rim, a thicker bottom edge that squashes when pressed. */
.btn {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  padding: .45em 1.1em .5em;
  border: 3px solid var(--rim);
  border-bottom-width: 8px;
  border-radius: var(--radius);
  -webkit-text-stroke: 4px var(--rim);
  paint-order: stroke fill;
  transition: transform .08s, border-bottom-width .08s, filter .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(4px); border-bottom-width: 4px; }
.btn.orange { background: var(--orange); }
.btn.green { background: var(--green); }
.btn.slate { background: var(--slate-hi); font-size: 1.2rem; }
.btn .size {
  font-family: var(--body);
  font-weight: 800;
  font-size: .8rem;
  -webkit-text-stroke: 0;
  color: rgba(255, 255, 255, .85);
}

/* The screenshot in a rimmed frame, tilted the other way than the title. */
.hero-shot {
  margin: 0;
  border: 5px solid var(--rim);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 0 var(--rim), 0 30px 60px rgba(0, 0, 0, .45);
  transform: rotate(1.5deg);
}

/* ---- Panels -------------------------------------------------------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.panel {
  background: var(--slate);
  border: 4px solid var(--rim);
  border-radius: 24px;
  box-shadow: 0 10px 0 var(--rim);
  padding: clamp(22px, 4vw, 40px);
  margin-bottom: clamp(36px, 6vw, 60px);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.mode {
  background: var(--slate-hi);
  border: 3px solid var(--rim);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.mode p { margin: 0; color: var(--ink-soft); }
.mode.zombie { background: #2e3a28; }

.tag {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: .75rem;
  vertical-align: .3em;
  background: var(--gold);
  color: var(--rim);
  border-radius: 999px;
  padding: .15em .6em;
  margin-right: .3em;
}

/* ---- Gallery ------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: clamp(36px, 6vw, 60px);
}
.shot { margin: 0; }
.shot.wide { grid-column: 1 / -1; }
.shot img {
  border: 4px solid var(--rim);
  border-radius: 20px;
  box-shadow: 0 8px 0 var(--rim);
}
.shot figcaption { color: var(--ink-soft); font-size: .95rem; margin-top: .8rem; }

/* ---- Controls ------------------------------------------------------ */
.control-cols, .get-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
  align-items: center;
}
.keys dt { display: flex; gap: 5px; flex-wrap: wrap; }
.keys dd { margin: 0; color: var(--ink-soft); }

kbd {
  display: inline-block;
  min-width: 2em;
  text-align: center;
  background: #3d4a66;
  color: var(--ink);
  border: 2px solid var(--rim);
  border-bottom-width: 4px;
  border-radius: 8px;
  padding: .05em .45em;
  font-weight: 700;
}

.touch-shot { margin: 0 0 .8rem; }
.touch-shot img { border: 3px solid var(--rim); border-radius: 14px; }
.controls p { margin: 0; color: var(--ink-soft); }

/* ---- Downloads ----------------------------------------------------- */
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  align-items: center;
}
.get-cols p { color: var(--ink-soft); margin: 0; }
.howto {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 3px dashed #3a4459;
  color: var(--ink-soft);
}

footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 48px;
  color: var(--ink-soft);
  font-size: .9rem;
}

/* ---- Small screens ------------------------------------------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { transform: none; order: -1; }
  .title { transform: rotate(-2deg); }
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
