/* ═══════════════════════════════════════════════════════════════
   pijsrozumem.cz — styl
   Barvy vychází z menu modpacku: tmavě zelené lahve, oranžová
   etiketa, zlatá víčka, hnědé police.
   Pořadí: tokeny → základ → komponenty → sekce → animace.
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* barvy */
  --bg:        #06140c;
  --bg-2:      #0a1e12;
  --panel:     #0b1b11;
  --line:      #1c3727;
  --line-2:    #2a4d38;
  --text:      #eaf1e7;
  --muted:     #9bb3a2;
  --dim:       #62806c;
  --orange:    #f08a24;
  --orange-hi: #ffb35c;
  --orange-lo: #a85710;
  --gold:      #e6b34a;
  --wood:      #4a2612;
  --wood-dark: #2b150a;
  --mc-yellow: #ffff55;

  /* písmo */
  --font-pixel: "Tiny5", ui-monospace, monospace;
  --font-body:  "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rozměry */
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;

  /* panorama */
  --pano-p: 58vh;   /* „FOV“ — menší číslo = širší úhel */
  --pano-speed: 140s;
}

/* ── základ ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mc-yellow); }
code {
  font-family: var(--font-pixel);
  font-size: .95em;
  background: #000a;
  border: 1px solid var(--line-2);
  padding: 0 .35em;
  border-radius: 2px;
  color: var(--orange-hi);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--mc-yellow); outline-offset: 3px; }
::selection { background: var(--orange); color: #1a0d03; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── komponenty ─────────────────────────────────────────────── */

/* Tlačítko ve stylu Minecraft GUI: tvrdé hrany, vnitřní světlo/stín */
.mc-btn {
  --btn-bg: #1d3a28;
  --btn-hi: #3d6b4f;
  --btn-lo: #0c1d13;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px;
  padding: .55em 1.2em .6em;
  font: 400 18px/1 var(--font-pixel);
  color: #fff;
  text-shadow: 2px 2px 0 #0008;
  text-decoration: none;
  background: var(--btn-bg);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--btn-hi), inset -2px -3px 0 var(--btn-lo);
  cursor: pointer;
  transition: transform .08s, filter .15s;
  image-rendering: pixelated;
}
.mc-btn:hover { outline: 2px solid #fff; outline-offset: 0; color: var(--mc-yellow); }
.mc-btn:active { transform: translateY(2px); box-shadow: inset 2px 3px 0 var(--btn-lo); }
.mc-btn--primary {
  --btn-bg: var(--orange);
  --btn-hi: var(--orange-hi);
  --btn-lo: var(--orange-lo);
  color: #fff;
}
.mc-btn--discord {
  --btn-bg: #5865f2;
  --btn-hi: #8891f7;
  --btn-lo: #3440b8;
}
.mc-btn svg { width: 16px; height: 16px; }
.mc-btn[hidden], .nav__links a[hidden] { display: none; }
.mc-btn[aria-disabled="true"] {
  --btn-bg: #2a2f2c; --btn-hi: #3c423e; --btn-lo: #171a18;
  color: #8f978f; cursor: not-allowed; outline: none;
}

.eyebrow {
  margin: 0 0 .6rem;
  font: 400 14px/1 var(--font-pixel);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}

h2 {
  margin: 0;
  font: 400 clamp(32px, 5vw, 52px)/1.05 var(--font-pixel);
  letter-spacing: -.01em;
  text-shadow: 3px 3px 0 #000;
}

/* Police z panoramy jako oddělovač sekcí */
.shelf {
  position: relative;
  height: 22px;
  background:
    linear-gradient(#0000 0 4px, #0003 4px 5px, #0000 5px),
    linear-gradient(var(--wood) 0 15px, var(--wood-dark) 15px);
  box-shadow: 0 10px 30px #000a;
  z-index: 2;
}

/* ── navigace ───────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 60px;
  padding-inline: var(--gutter);
  background: #06140c;
  border-bottom: 2px solid #000;
  box-shadow: 0 1px 0 var(--line);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav.is-visible { transform: none; }
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 400 18px/1 var(--font-pixel);
  image-rendering: pixelated;
}
.nav__tld { color: var(--orange); }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a {
  color: var(--muted); text-decoration: none;
  font: 400 16px/1 var(--font-pixel);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--mc-yellow); }
.nav__ip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  font: 400 15px/1 var(--font-pixel);
  color: var(--text);
  background: #000;
  border: 1px solid var(--line-2);
  cursor: pointer;
}
.nav__ip svg { width: 14px; height: 14px; color: var(--orange); }
.nav__ip:hover { border-color: var(--orange); }

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__ip { margin-left: auto; }
  .nav__brand span { display: none; }
}

/* ── hero + 3D panorama ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
  background: #04100a;
}

/* Kostka 6 obrázků, kamera uvnitř — stejně jako titulní obrazovka MC */
.pano {
  position: absolute; inset: -2%;
  z-index: -2;
  filter: blur(1.5px) saturate(1.05);
}
.pano__scene {
  position: absolute; inset: 0;
  perspective: var(--pano-p);
  overflow: hidden;
}
.pano__cube {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--pano-p)) rotateX(var(--pano-pitch, 8deg)) rotateY(0deg);
  animation: pano-spin var(--pano-speed) linear infinite;
}
.pano__face {
  --s: calc(var(--pano-p) * 2 + 2px); /* +2px zakryje švy mezi stěnami */
  position: absolute;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background-size: cover;
  backface-visibility: hidden;
}
.pano__face--front  { transform: rotateY(0deg)   translateZ(calc(var(--pano-p) * -1)); }
.pano__face--right  { transform: rotateY(-90deg) translateZ(calc(var(--pano-p) * -1)); }
.pano__face--back   { transform: rotateY(180deg) translateZ(calc(var(--pano-p) * -1)); }
.pano__face--left   { transform: rotateY(90deg)  translateZ(calc(var(--pano-p) * -1)); }
.pano__face--top    { transform: rotateX(-90deg) translateZ(calc(var(--pano-p) * -1)); }
.pano__face--bottom { transform: rotateX(90deg)  translateZ(calc(var(--pano-p) * -1)); }

@keyframes pano-spin {
  to { transform: translateZ(var(--pano-p)) rotateX(var(--pano-pitch, 8deg)) rotateY(-360deg); }
}
.hero.is-offscreen .pano__cube { animation-play-state: paused; }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #0000 0%, #04100a99 70%, #04100a 100%),
    linear-gradient(#04100a66, #0000 30%, #0000 70%, #04100a);
}

.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  max-width: 900px;
  padding: 96px var(--gutter) 120px;
  text-align: center;
}

.hero__logo {
  position: relative;
  margin: 0;
  width: min(100%, 860px);
  animation: logo-in 1.1s cubic-bezier(.2,.9,.2,1) both;
}
.hero__logo img {
  width: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 30px #000c);
}

/* Žlutá hláška jako v MC menu */
.splash {
  position: absolute;
  right: -2%; bottom: -8%;
  max-width: 17ch;
  padding: 0;
  font: 400 clamp(15px, 2.6vw, 26px)/1.1 var(--font-pixel);
  color: var(--mc-yellow);
  text-shadow: 2px 2px 0 #3f3f15;
  background: none; border: 0;
  cursor: pointer;
  transform-origin: center;
  transform: rotate(-17deg);
  animation: splash-pulse .55s ease-in-out infinite alternate;
  white-space: nowrap;
}
.splash:focus-visible { outline-offset: 6px; }
@keyframes splash-pulse {
  from { transform: rotate(-17deg) scale(1); }
  to   { transform: rotate(-17deg) scale(1.09); }
}

.hero__edition {
  width: min(62%, 300px);
  margin-top: clamp(4px, 1.5vw, 14px);
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 10px #000);
  animation: rise .9s .25s cubic-bezier(.2,.9,.2,1) both;
}

.ip-card {
  width: min(100%, 520px);
  margin-top: clamp(36px, 6vh, 64px);
  padding: 16px 16px 18px;
  text-align: left;
  background: #020904d9;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px #000c;
  animation: rise .9s .45s cubic-bezier(.2,.9,.2,1) both;
}
.ip-card__label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
  font: 400 13px/1 var(--font-pixel);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim);
}
.ip-card__row { display: flex; gap: 10px; align-items: stretch; }
.ip-card__ip {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  padding: 0 14px;
  font: 400 clamp(17px, 3.2vw, 22px)/1 var(--font-pixel);
  color: #fff;
  background: #000;
  border: 1px solid #a0a0a0;
  border-radius: 0;
  overflow: hidden; text-overflow: ellipsis;
}

.status {
  display: inline-flex; align-items: center; gap: 7px;
  letter-spacing: .04em; text-transform: none;
  font-size: 14px;
  color: var(--muted);
}
.status::before {
  content: ""; width: 8px; height: 8px;
  background: var(--dim);
  box-shadow: 0 0 0 2px #0006;
}
.status[hidden] { display: none; }

/* hráči online pod IP */
.players {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 0; padding: 0;
  list-style: none;
}
.players[hidden] { display: none; }
.players li {
  display: flex; align-items: center; gap: 7px;
  padding: 3px 9px 3px 3px;
  font: 400 14px/1 var(--font-pixel);
  background: #000;
  border: 1px solid var(--line-2);
}
.players img { image-rendering: pixelated; }
.status.is-online { color: #8fe39f; }
.status.is-online::before { background: #55ff55; animation: blink 1.6s steps(2) infinite; }

.hero__discord {
  margin-top: 14px;
  animation: rise .9s .55s cubic-bezier(.2,.9,.2,1) both;
}

.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0;
  margin: 22px 0 0; padding: 0;
  list-style: none;
  font: 400 15px/1 var(--font-pixel);
  color: var(--muted);
  animation: rise .9s .6s cubic-bezier(.2,.9,.2,1) both;
}
.hero__meta li + li::before { content: ""; display: inline-block; vertical-align: middle; width: 4px; height: 4px; margin: -2px 14px 0; background: var(--orange); }
.hero__meta b { color: var(--text); font-weight: 500; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%;
  width: 26px; height: 40px;
  margin-left: -13px;
  border: 2px solid #ffffff55;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px;
  background: var(--orange);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

/* ── sekce ─────────────────────────────────────────────────── */

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 132px);
  /* dlaždice z panoramy (tmavá mřížka) */
  background:
    linear-gradient(var(--bg) , #06140cf2 12%, #06140cf2 88%, var(--bg)),
    url(../img/panorama/panorama_4.png) 0 0 / 128px 128px;
  scroll-margin-top: 40px;
}
.section + .section { border-top: 1px solid var(--line); }

.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__lead { margin: 14px 0 0; color: var(--muted); font-size: 17px; }

/* ── kroky připojení ───────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0; padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  counter-increment: step;
  transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
/* číslo jako slot inventáře */
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  font: 400 20px/1 var(--font-pixel);
  color: #fff; text-shadow: 2px 2px 0 #3f2a10;
  background: #2b2b2b;
  box-shadow: inset 2px 2px 0 #151515, inset -2px -2px 0 #4a4a4a;
}
.step:first-child::before { background: var(--orange); box-shadow: inset 2px 2px 0 var(--orange-lo), inset -2px -2px 0 var(--orange-hi); }
.step h3 { margin: 0 0 8px; font: 400 20px/1.2 var(--font-pixel); }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.step p b { color: var(--text); font-weight: 600; }
.step .mc-btn { margin-top: auto; align-self: flex-start; }
.step p + .mc-btn { margin-top: 18px; }

/* přepínač návodů (origo / warez) */
.guide-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 28px;
}
.guide-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px;
  font: inherit; color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 2px 2px 0 var(--line-2), inset -2px -3px 0 #040d08;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.guide-tab:hover { border-color: var(--line-2); color: var(--text); }
.guide-tab[aria-selected="true"] {
  color: var(--text);
  border-color: var(--orange);
  box-shadow: inset 2px 2px 0 var(--orange-lo), inset -2px -3px 0 #040d08, 0 0 24px -8px var(--orange);
}
.guide-tab__label { font: 400 clamp(15px, 2.4vw, 20px)/1.15 var(--font-pixel); text-align: center; }
.guide-tab__sub { font-size: 13px; color: var(--dim); }
.guide-tab[aria-selected="true"] .guide-tab__sub { color: var(--orange-hi); }
.steps[hidden] { display: none; }
.steps[role=tabpanel]:not([hidden]) .step { animation: step-in .35s ease both; animation-delay: calc(var(--i) * 50ms); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }

/* ── co tě čeká ─────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.feature {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 14px;
  font-size: 26px;
  background: #000;
  box-shadow: inset 2px 2px 0 #151515, inset -2px -2px 0 #3a3a3a;
}
.feature h3 { margin: 0 0 6px; font: 400 21px/1.2 var(--font-pixel); color: var(--gold); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature p b { color: var(--text); font-weight: 600; }
.section__lead b { color: var(--text); font-weight: 600; }
.features__note {
  margin: 28px 0 0;
  text-align: center;
  font: 400 clamp(20px, 3vw, 26px)/1.3 var(--font-pixel);
  color: var(--mc-yellow);
  text-shadow: 2px 2px 0 #3f3f15;
}

/* ikona Discordu v tlačítkách a navigaci */
.ico-discord { width: 18px; height: 18px; flex: none; }
.nav__discord { display: inline-flex; align-items: center; gap: 6px; }
.nav__discord .ico-discord { width: 15px; height: 15px; color: #8891f7; }

/* ── pravidla + FAQ ────────────────────────────────────── */

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.info__title {
  margin: 0 0 16px;
  font: 400 22px/1 var(--font-pixel);
  color: var(--orange);
}
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li {
  position: relative;
  padding: 14px 0 14px 48px;
  border-top: 1px solid var(--line);
  counter-increment: rule;
}
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before {
  content: counter(rule);
  position: absolute; left: 0; top: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font: 400 16px/1 var(--font-pixel);
  color: var(--orange);
  background: #000;
  border: 1px solid var(--line-2);
}
.rules b { display: block; font-weight: 600; color: var(--text); }
.rules span { color: var(--muted); font-size: 15px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font: 400 22px/1 var(--font-pixel);
  color: var(--orange);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--mc-yellow); }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 15px; }
.faq b { color: var(--text); }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  font: 400 .9em/1.3 var(--font-pixel);
  text-align: center;
  color: #fff;
  background: #2b2b2b;
  box-shadow: inset -2px -2px 0 #151515, inset 2px 2px 0 #4a4a4a;
}

/* ── statistiky ─────────────────────────────────────────── */

.stats-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin-bottom: 20px;
}
.stats-tools[hidden], .seg[hidden] { display: none; }
.seg { display: inline-flex; border: 2px solid #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button {
  min-height: 40px; padding: 0 16px;
  font: 400 16px/1 var(--font-pixel);
  color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
}
.seg button[aria-selected="true"] { color: #fff; background: var(--orange); text-shadow: 2px 2px 0 #0006; }
.seg button:not([aria-selected="true"]):hover { color: var(--mc-yellow); }
.stats-killer { margin: 0; color: var(--muted); }
.stats-killer b { color: #ff6f61; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}
.stat {
  padding: 18px 18px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.stat h3 { margin: 0 0 12px; font: 400 20px/1.2 var(--font-pixel); }
.stat ol { margin: 0; padding: 0; list-style: none; }
.stat li {
  position: relative;
  display: grid; grid-template-columns: 22px 20px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 8px;
  font-size: 15px;
  isolation: isolate;
}
/* pruh = poměr k prvnímu místu */
.stat li::before {
  content: ""; position: absolute; inset: 2px auto 2px 0; z-index: -1;
  width: var(--w, 0);
  background: linear-gradient(90deg, #f08a2424, #f08a2408);
  border-left: 2px solid #f08a2466;
}
.stat li:first-child::before { background: linear-gradient(90deg, #e6b34a40, #e6b34a0a); border-left-color: var(--gold); }
.stat .rank { font: 400 15px/1 var(--font-pixel); color: var(--dim); text-align: center; }
.stat li:first-child .rank { color: var(--gold); }
.stat img { image-rendering: pixelated; }
.stat .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .val { font: 400 16px/1 var(--font-pixel); color: var(--text); }
.stat .val small { font-size: 12px; color: var(--dim); }
.stat li.none { display: block; color: var(--dim); font-style: italic; }
.stat li.none::before { display: none; }
.stats-empty {
  grid-column: 1 / -1;
  margin: 0; padding: 36px 20px;
  text-align: center;
  font: 400 18px/1.4 var(--font-pixel);
  color: var(--dim);
  border: 1px dashed var(--line-2);
}

/* ── mody: karty jako MC tooltip ───────────────────────────── */

.mods {
  columns: 3 300px;
  column-gap: 16px;
}
.mod-cat {
  --accent: var(--orange);
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 18px 18px 20px;
  background: #0d0512f0;
  background: color-mix(in srgb, #0a0a0a 92%, var(--accent));
  border: 2px solid #000;
  /* dvojitý rámeček jako u tooltipu itemu */
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--accent) 45%, #000),
    0 14px 30px #0008;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.mod-cat:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 18px 44px color-mix(in srgb, var(--accent) 22%, #0000);
}
.mod-cat h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0;
  font: 400 22px/1.2 var(--font-pixel);
  color: var(--accent);
  text-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 25%, #000);
}
.mod-cat h3 small {
  font: 400 13px/1 var(--font-pixel);
  color: var(--dim);
  text-shadow: none;
}
.mod-cat p {
  margin: 6px 0 14px;
  color: #a7a7a7;
  font-size: 14px; font-style: italic;
}
.mod-cat ul { margin: 0; padding: 0; list-style: none; }
.mod-cat li {
  display: flex; align-items: center; gap: 10px;
  padding: 3px 0;
  font-size: 15px;
  color: #e6e6e6;
}
.mod-cat li::before {
  content: ""; flex: none;
  width: 6px; height: 6px;
  background: var(--accent);
  opacity: .8;
}

/* ── rasy ─────────────────────────────────────────────────── */

.races-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  margin-bottom: 26px;
}
.search {
  position: relative;
  flex: 1 1 320px; max-width: 460px;
}
.search svg {
  position: absolute; left: 14px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  color: var(--dim);
  pointer-events: none;
}
.search input {
  width: 100%; height: 48px;
  padding: 0 14px 0 42px;
  font: 400 17px/1 var(--font-pixel);
  color: #fff;
  background: #000;
  border: 2px solid #a0a0a0;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #6f6f6f; }
.search input:focus { border-color: #fff; }
.races-count { margin: 0; font: 400 15px/1 var(--font-pixel); color: var(--dim); }

.races {
  columns: 3 290px;
  column-gap: 14px;
}
.race {
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.race:hover { border-color: var(--line-2); background: #0d2016; }
.race[hidden] { display: none; }
.race__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 14px;
}
.race__head h3 { margin: 0; font: 400 21px/1.15 var(--font-pixel); }
.race__head small {
  flex: none;
  font: 400 13px/1 var(--font-pixel);
  color: var(--dim);
}

/* linie evoluce: svislá „advancement“ cesta */
.chain { margin: 0; padding: 0; list-style: none; }
.chain li {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  min-height: 30px;
  padding: 3px 0 3px 26px;
  font-size: 15px;
  color: #d7e2d9;
}
/* spojnice */
.chain li::after {
  content: "";
  position: absolute; left: 5px; top: 18px; bottom: -12px;
  width: 2px;
  background: var(--line-2);
}
.chain li:last-child::after { display: none; }
/* uzel */
.chain li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 12px; height: 12px;
  background: #0b1b11;
  border: 2px solid var(--line-2);
  z-index: 1;
}
.chain li:first-child::before { border-color: var(--muted); }
.chain li:last-child { color: var(--gold); font-weight: 600; }
.chain li:last-child::before {
  background: var(--gold);
  border-color: #fff3;
  box-shadow: 0 0 10px var(--gold), 0 0 22px #e6b34a66;
}
.chain .or {
  font: 400 12px/1 var(--font-pixel);
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.chain mark {
  background: color-mix(in srgb, var(--orange) 35%, #0000);
  color: inherit;
  padding: 0 1px;
}

.race__note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}
.race--empty .race__note { border: 0; padding: 0; margin: 0; font-style: italic; color: var(--dim); }

.races-empty {
  padding: 40px 0;
  text-align: center;
  font: 400 18px/1.4 var(--font-pixel);
  color: var(--dim);
}

/* rozbalovací guide */
.guide > summary { list-style: none; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary small { font-size: 14px; opacity: .8; }
.guide__close, .guide[open] .guide__open { display: none; }
.guide[open] .guide__close { display: inline; }
.guide__body { margin-top: 28px; }
.guide[open] .guide__body { animation: rise .45s cubic-bezier(.2,.9,.2,1) both; }

/* ── patička ──────────────────────────────────────────────── */

.footer { background: #030a06; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 36px 44px;
  color: var(--dim);
  font: 400 15px/1.4 var(--font-pixel);
}
.footer__inner img { image-rendering: pixelated; opacity: .85; }
.footer p { margin: 0; }

/* ── toast (MC achievement) ───────────────────────────────── */

.toast {
  position: fixed; top: 76px; right: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  width: 280px; max-width: calc(100vw - 32px);
  padding: 10px 14px;
  background: #212121;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px #5a5a5a, 0 10px 30px #000a;
  transform: translateX(calc(100% + 40px));
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}
.toast.is-visible { transform: none; }
.toast img { image-rendering: pixelated; }
.toast strong { display: block; font: 400 15px/1.3 var(--font-pixel); color: var(--mc-yellow); }
.toast span { font: 400 15px/1.3 var(--font-pixel); color: #fff; }

/* ── reveal při scrollu ───────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── animace ──────────────────────────────────────────────── */

@keyframes logo-in {
  from { opacity: 0; transform: translateY(-14px) scale(.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 560px) {
  .ip-card__row { flex-direction: column; }
  .ip-card__ip { min-height: 48px; justify-content: center; }
  .splash { right: 50%; bottom: auto; top: -46px; translate: 50% 0; }
  .hero__discord { width: min(100%, 520px); }
  .ip-card { padding: 14px 14px 16px; }

  /* sekce: méně vzduchu na výšku */
  .section { padding-block: 56px 64px; }
  .section__head { margin-bottom: 28px; }
  .section__lead { font-size: 16px; }

  /* kroky: číslo vedle nadpisu místo nad ním */
  .steps { gap: 10px; }
  .step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    padding: 16px;
  }
  .step::before { width: 36px; height: 36px; margin: 0; font-size: 18px; grid-row: span 3; }
  .step h3 { align-self: center; margin: 0 0 6px; font-size: 19px; }
  .step p, .step .mc-btn { grid-column: 2; }
  .step p + .mc-btn { margin-top: 14px; }
  .step:hover { transform: none; }

  /* mody: seznam jako kompaktní štítky, karta je pak třetinová */
  .feature { padding: 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .feature__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; font-size: 22px; }
  .feature h3 { align-self: center; font-size: 19px; }
  .feature p { grid-column: 2; }
  .feature:hover { transform: none; }
  .mod-cat { padding: 16px; margin-bottom: 12px; }
  .mod-cat p { margin-bottom: 12px; }
  .mod-cat ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .mod-cat li {
    padding: 4px 8px;
    font-size: 14px;
    background: #0006;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, #0000);
  }
  .mod-cat li::before { display: none; }
  .mod-cat:hover { transform: none; }

  /* pravidla, FAQ, rasy */
  .rules li { padding: 12px 0 12px 44px; }
  .rules li::before { top: 12px; }
  .faq summary { padding: 14px; min-height: 52px; }
  .faq p { padding: 0 14px 14px; }
  .guide > summary { width: 100%; }
  .race { padding: 16px; }

  /* dlouhé příkazy se smí zalomit */
  code { white-space: normal; overflow-wrap: anywhere; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* dotykové displeje: bez hover efektů, které „zůstanou viset“ */
@media (hover: none) {
  .mod-cat:hover, .step:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pano__cube { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
