/* MadMan DayZ — „Polní mapa přeživšího“
   Koncept: celý web je vojenský mapový list Deer Isle. Papír, vrstevnice, mřížka souřadnic,
   vzkazy přišpendlené páskou, červené razítko karantény, poznámky tužkou, záznam z vysílačky.
   Záměrně jen světlý vzhled (papír) – na CZ/SK DayZ scéně jsou všechny weby tmavé. */
:root {
  --paper: #e9e2cf;      /* mapový papír */
  --paper-2: #ded5bd;    /* střídavé pásy */
  --card: #f4efe2;       /* vzkazy, karty */
  --ink: #23251e;        /* tisk */
  --ink-2: #545749;      /* sekundární text */
  --olive: #4c5a2c;      /* vojenská zelená */
  --olive-dk: #353f1d;
  --red: #b3261e;        /* razítko / akcent (odkaz na červené M v logu) */
  --red-dk: #8d1d17;
  --contour: rgba(132, 98, 52, .32);
  --grid: rgba(35, 37, 30, .09);
  --rule: rgba(35, 37, 30, .28);
  --tape: rgba(214, 200, 140, .75);
  --ok: #3f7d32;
  --warn: #a8701a;

  --f-stencil: "Saira Stencil One", "Arial Black", Impact, sans-serif;
  --f-head: "Archivo", "Arial Narrow", "Segoe UI", sans-serif;
  --f-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1240px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --step: clamp(64px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("../img/topo.svg"), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 900px 900px, 96px 96px, 96px 96px;
}
/* zrnitost papíru */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: .28; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 800; font-stretch: 70%; line-height: .95; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.section { padding-block: var(--step); position: relative; }
.section--alt { background: rgba(222, 213, 189, .72); border-block: 1px solid var(--rule); }

/* ---------- typografie ---------- */
.eyebrow { font: 600 12px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--olive); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: "▲"; font-size: 9px; color: var(--red); }
.h-xl { font-size: clamp(54px, 9vw, 120px); }
.h-l { font-size: clamp(40px, 5.4vw, 72px); }
.h-m { font-size: clamp(26px, 3vw, 36px); }
.h-s { font-size: 24px; font-stretch: 75%; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 60ch; }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--red); line-height: 1; }
.mono { font-family: var(--f-mono); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 780px; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 720px) { .section-head--row { grid-template-columns: 1fr; } }

/* ---------- tlačítka ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border: 2px solid var(--bg); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 15px/1 var(--f-body); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--red); transition: transform .12s, box-shadow .12s; white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--red); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); box-shadow: none; transform: none; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; box-shadow: 3px 3px 0 var(--red); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { font: 600 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.link-arrow:hover { color: var(--red); }

/* ---------- hlavička ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(233, 226, 207, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 3px double var(--ink); }
.hdr__in { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--ink); font: 400 22px/1 var(--f-stencil); color: var(--red); transform: rotate(-4deg); background: var(--card); }
.brand b { font: 400 25px/1 var(--f-stencil); letter-spacing: .03em; }
.brand small { display: block; font: 500 10px/1 var(--f-mono); letter-spacing: .2em; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; font: 700 14px/1 var(--f-body); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(transparent 62%, rgba(179, 38, 30, .28) 62% 88%, transparent 88%); }
.hdr__cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.burger svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 980px) {
  .burger { display: grid; }
  .hdr__cta .btn--ghost { display: none; }
  .nav { position: fixed; inset: calc(70px + env(safe-area-inset-top, 0px)) 0 auto; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 3px double var(--ink);
    padding: 8px var(--gut-r) 20px var(--gut); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 4px; font-size: 18px; border-bottom: 1px dashed var(--rule); }
}
@media (max-width: 440px) { .brand small { display: none; } .hdr__cta .btn { padding: 0 10px; } }

/* ---------- HERO = mapový list ---------- */
.hero { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.sheet { position: relative; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; background: rgba(244, 239, 226, .55); margin: 6px; }
.sheet__ticks { position: absolute; display: flex; justify-content: space-between; font: 500 10px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .05em; pointer-events: none; }
.sheet__ticks--top { left: 0; right: 0; top: -22px; padding-inline: 8%; }
.sheet__ticks--left { top: 0; bottom: 0; left: -26px; flex-direction: column; padding-block: 10%; }
.hero__title { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding: clamp(20px, 3vw, 36px); border-bottom: 2px solid var(--ink); }
.hero__title .eyebrow { margin-bottom: 14px; }
.hero h1 { font-family: var(--f-stencil); font-weight: 400; font-stretch: normal; font-size: clamp(40px, 5.4vw, 84px); line-height: .92; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--red); }
.legend-table { border-collapse: collapse; font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; min-width: 240px; }
.legend-table th, .legend-table td { border: 1px solid var(--ink); padding: 7px 10px; text-align: left; }
.legend-table th { color: var(--ink-2); font-weight: 500; width: 40%; }
.legend-table td { font-weight: 600; }
.hero__map { position: relative; min-height: clamp(460px, 52vw, 640px); overflow: hidden; }
.hero__map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(1) sepia(.55) contrast(1.15) brightness(1.05); mix-blend-mode: multiply; opacity: .72; }
.hero__map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 12.5% 16.66%; }
.pin { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 4px; }
.pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); border: 2px solid var(--card); box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.note { position: relative; background: var(--card); padding: 30px 28px 26px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 30px -12px rgba(35, 37, 30, .45); }
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: var(--tape); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.hero__note { position: absolute; z-index: 4; left: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px); width: min(520px, 46%); transform: rotate(-1.2deg); display: grid; gap: 18px; }
.hero__note .lead { color: var(--ink); }
.stamp { position: absolute; z-index: 5; right: -18px; top: -26px; padding: 8px 14px; border: 3px solid var(--red); color: var(--red); font: 400 18px/1 var(--f-stencil); letter-spacing: .08em; text-transform: uppercase; transform: rotate(8deg); opacity: .88; background: rgba(244, 239, 226, .6);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23r)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='r'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23r)'/%3E%3C/svg%3E"); }

/* vysílačka (stav serveru) */
.radio { position: absolute; z-index: 4; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px); width: min(390px, 42%); background: var(--ink); color: var(--paper); transform: rotate(1deg); box-shadow: 0 16px 30px -12px rgba(0,0,0,.6); }
.radio::before { content: ""; position: absolute; top: -12px; right: 36px; width: 80px; height: 24px; transform: rotate(4deg); background: var(--tape); }
.radio__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px dashed rgba(233,226,207,.3); font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #b8b29f; }
.radio__log { list-style: none; margin: 0; padding: 14px 18px 6px; display: grid; gap: 8px; font: 500 13px/1.35 var(--f-mono); }
.radio__log li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.radio__log li span:first-child { color: #9e9884; }
.radio__log b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.radio .bar { margin: 4px 18px 12px; }
.radio .ip { margin: 0 18px 14px; border-color: rgba(233,226,207,.3); }
.radio .ip code { background: #15160f; color: var(--paper); font-size: 15px; white-space: nowrap; overflow-wrap: normal; }
.radio__foot { padding: 0 18px 16px; font: 500 11px/1.4 var(--f-mono); color: #9e9884; }
@media (max-width: 900px) {
  .hero__title { grid-template-columns: 1fr; }
  .legend-table { min-width: 0; width: 100%; }
  .hero__map { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 280px 14px 24px; }
  .hero__note, .radio { min-width: 0; }
  .radio .ip code { font-size: 14px; }
  .ip button span { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .hero__map > img { height: 300px; bottom: auto; }
  .hero__note, .radio { position: relative; inset: auto; width: auto; transform: none; }
  .stamp { right: 8px; top: -22px; }
  .sheet__ticks--left { display: none; }
}

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid currentColor; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.radio .pill--ok { color: #8fd47c; } .pill--ok { color: var(--ok); } .pill--ok i { animation: blink 1.6s infinite; }
.radio .pill--warn { color: #e9b45a; } .pill--warn { color: var(--warn); }
.radio .pill--off { color: #b8b29f; } .pill--off { color: var(--ink-2); }
@keyframes blink { 50% { opacity: .25; } }
.bar { height: 5px; background: rgba(128, 120, 100, .35); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .6s ease; }
.ip { display: flex; align-items: stretch; border: 2px solid var(--ink); overflow: hidden; }
.ip code { flex: 1; min-width: 0; padding: 11px 14px; font: 600 16px/1.4 var(--f-mono); background: var(--card); overflow-wrap: anywhere; }
.ip button { border: 0; background: var(--red); color: #fff; padding: 0 14px; font: 700 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.ip button:hover { background: var(--red-dk); }
.ip button svg { width: 16px; height: 16px; }

/* ---------- legenda (funkce) ---------- */
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--ink); background: rgba(244, 239, 226, .7); }
.legend__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px; border-bottom: 1px solid var(--rule); align-items: start; }
.legend__item:nth-child(odd) { border-right: 1px solid var(--rule); }
.legend__item:nth-last-child(-n+2) { border-bottom: 0; }
.legend__sym { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--paper); color: var(--olive); position: relative; }
.legend__sym::after { content: attr(data-n); position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--red); color: #fff; font: 600 11px/1 var(--f-mono); border-radius: 50%; }
.legend__sym svg { width: 32px; height: 32px; }
.legend__item h3 { font-size: 26px; margin-bottom: 6px; }
.legend__item p { color: var(--ink-2); }
@media (max-width: 760px) { .legend { grid-template-columns: 1fr; } .legend__item { border-right: 0 !important; border-bottom: 1px solid var(--rule) !important; } .legend__item:last-child { border-bottom: 0 !important; } }

/* ---------- výřez mapy ---------- */
.mapblock { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mapframe { position: relative; display: block; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; background: var(--card); aspect-ratio: 1010 / 718; max-width: 100%; overflow: hidden; margin: 5px; }
.mapframe img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) sepia(.45) contrast(1.1); mix-blend-mode: multiply; transition: filter .4s; }
.mapframe:hover img { filter: grayscale(.2) sepia(.2); }
.mapframe::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 10% 10%; }
.mapframe__tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; background: var(--card); padding: 8px 10px; border: 1px solid var(--ink); text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checks li::before { content: "✕"; font: 600 16px/1.5 var(--f-mono); color: var(--red); }
@media (max-width: 860px) { .mapblock { grid-template-columns: 1fr; } }

/* ---------- trasa (připojení) ---------- */
.route { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: wp; }
.route::before { content: ""; position: absolute; left: 28px; right: calc(25% - 10px); top: 27px; border-top: 3px dashed var(--red); z-index: 0; }
.route li { counter-increment: wp; display: grid; gap: 10px; align-content: start; position: relative; z-index: 1; }
.route li::before { content: counter(wp); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); font: 400 26px/1 var(--f-stencil); color: var(--ink); }
.route li:last-child::before { background: var(--red); border-color: var(--red); color: #fff; }
.route p { color: var(--ink-2); }
.connect-ip { display: grid; grid-template-columns: auto minmax(0, 520px) 1fr; gap: 20px; align-items: center; padding: 22px 24px; border: 2px dashed var(--ink); background: rgba(244, 239, 226, .7); }
.connect-ip .hand { font-size: 26px; transform: rotate(-3deg); }
@media (max-width: 900px) { .route { grid-template-columns: 1fr 1fr; } .route::before { display: none; } }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } .connect-ip { grid-template-columns: 1fr; } }

/* ---------- deník vývoje ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rm { background: var(--card); padding: 30px 24px 24px; display: grid; gap: 14px; align-content: start; position: relative; box-shadow: 0 12px 24px -14px rgba(35,37,30,.5);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(76, 90, 44, .18) 31px 32px); background-position: 0 58px; }
.rm:nth-child(1) { transform: rotate(-1deg); } .rm:nth-child(3) { transform: rotate(.8deg); }
.rm::before { content: ""; position: absolute; top: -11px; left: 24px; width: 70px; height: 22px; background: var(--tape); transform: rotate(-4deg); }
.rm h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rm li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; line-height: 32px; color: var(--ink); }
.rm li::before { content: "○"; font: 600 18px/32px var(--f-mono); color: var(--ink-2); }
.rm--done li { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; color: var(--ink-2); }
.rm--done li::before { content: "✓"; font-family: var(--f-hand); font-size: 26px; color: var(--ok); }
.rm--now li::before { content: "◐"; color: var(--red); }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } .rm { transform: none !important; } }

/* ---------- galerie = polaroidy ---------- */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; align-items: start; }
.gallery figure { margin: 0; background: var(--card); padding: 12px 12px 14px; box-shadow: 0 16px 28px -14px rgba(35,37,30,.55); position: relative; }
.gallery figure:nth-child(1) { transform: rotate(-1.2deg); }
.gallery figure:nth-child(2) { transform: rotate(1.6deg); margin-top: 28px; }
.gallery figure:nth-child(3) { transform: rotate(-.8deg); margin-top: 8px; }
.gallery figure::before { content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%) rotate(3deg); background: var(--tape); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.gallery figcaption { margin-top: 10px; font: 600 24px/1 var(--f-hand); color: var(--ink); }
.video-facade { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #111; cursor: pointer; }
.video-facade { aspect-ratio: 16 / 10; background: var(--ink) url("../img/topo.svg") center / 600px; background-blend-mode: soft-light; color: var(--paper); }
.video-facade__t { position: absolute; left: 18px; top: 16px; font: 400 clamp(34px, 5vw, 60px)/1 var(--f-stencil); letter-spacing: .04em; }
.video-facade__s { position: absolute; left: 18px; bottom: 16px; font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: #b8b29f; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(244,239,226,.5); transition: transform .2s; }
.video-facade:hover .play { transform: scale(1.07); }
.video-facade .play svg { width: 28px; height: 28px; margin-left: 4px; }
.gallery video { width: 100%; aspect-ratio: 16 / 10; background: #000; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } .gallery figure { margin-top: 0 !important; } }

/* ---------- komunita ---------- */
.community { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.discord-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); background: var(--olive-dk); color: var(--paper); display: grid; gap: 18px; align-content: start; text-decoration: none; border: 2px solid var(--ink);
  background-image: url("../img/topo.svg"); background-size: 700px; background-blend-mode: soft-light; }
.discord-card .eyebrow { color: #c9d3a8; }
.discord-card svg.big { position: absolute; right: -24px; bottom: -36px; width: 220px; height: 220px; color: var(--paper); opacity: .12; }
.discord-card p { color: #d9d4c2; max-width: 42ch; }
.discord-card .freq { font: 600 13px/1 var(--f-mono); letter-spacing: .14em; color: #c9d3a8; }
.discord-card .btn { --bg: var(--paper); --fg: var(--ink); justify-self: start; }
.socials { display: grid; gap: 14px; }
.social { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 2px solid var(--ink); background: rgba(244,239,226,.75); text-decoration: none; transition: background .15s; }
.social:hover { background: var(--card); }
.social:hover > svg:last-child { transform: translateX(4px); }
.social svg { width: 26px; height: 26px; flex: none; transition: transform .15s; }
.social div { display: grid; gap: 2px; flex: 1; }
.social b { font: 800 24px/1 var(--f-head); font-stretch: 70%; text-transform: uppercase; }
.social span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .community { grid-template-columns: 1fr; } }

/* ---------- novinky = kartotéka ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post { display: grid; gap: 12px; align-content: start; padding: 22px 24px 26px; text-decoration: none; background: var(--card); border-top: 6px solid var(--olive); box-shadow: 0 10px 22px -14px rgba(35,37,30,.55); transition: transform .15s; position: relative; }
.post:hover { transform: translateY(-3px) rotate(-.4deg); }
.post time, .meta { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.post h3 { font-size: 28px; line-height: 1; }
.post p { color: var(--ink-2); }
.tag { display: inline-block; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 4px 7px; border: 2px solid var(--red); color: var(--red); justify-self: start; transform: rotate(-2deg); }

/* ---------- polní příručka (FAQ) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: 104px; }
.qa { border-top: 2px solid var(--ink); counter-reset: q; }
.qa details { border-bottom: 1px solid var(--rule); counter-increment: q; }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px 1fr 24px; gap: 8px; align-items: baseline; padding: 18px 0; font-weight: 700; font-size: 18px; }
.qa summary::before { content: "Q-0" counter(q); font: 600 12px/1 var(--f-mono); color: var(--red); letter-spacing: .06em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 600 24px/1 var(--f-mono); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.qa details p { padding: 0 0 20px 60px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq .section-head { position: static; } .qa details p { padding-left: 0; } }

/* ---------- výzva ---------- */
.cta { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; border-block: 6px solid var(--red); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: url("../img/topo.svg"); background-size: 800px; opacity: .25; filter: invert(1); }
.cta__in { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; }
.cta h2 { font-family: var(--f-stencil); font-weight: 400; font-stretch: normal; font-size: clamp(40px, 6vw, 76px); }
.cta h2 em { font-style: normal; color: #e0574d; }
.cta .btn { --bg: var(--paper); --fg: var(--ink); }
.cta .btn--ghost { --bg: transparent; --fg: var(--paper); border-color: var(--paper); }
.cta .btn--ghost:hover { --bg: var(--paper); --fg: var(--ink); }

/* ---------- patička = rohové razítko mapového listu ---------- */
.ftr { padding-block: 64px 36px; }
.ftr__block { border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; margin: 5px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); background: rgba(244,239,226,.7); }
.ftr__block > div { padding: 24px; border-right: 1px solid var(--ink); display: grid; gap: 12px; align-content: start; }
.ftr__block > div:last-child { border-right: 0; }
.ftr__block p { color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.ftr h4 { margin: 0; font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr ul a { text-decoration: none; font-size: 15px; font-weight: 600; }
.ftr ul a:hover { color: var(--red); text-decoration: underline; }
.ftr__meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); grid-column: 1 / -1; padding: 0 !important; gap: 0 !important; }
.ftr__meta span { padding: 10px 14px; border-right: 1px solid var(--ink); font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ftr__meta span:last-child { border-right: 0; }
.ftr__legal { margin-top: 20px; font: 500 12px/1.5 var(--f-mono); color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) {
  .ftr__block { grid-template-columns: 1fr 1fr; }
  .ftr__block > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--ink); }
  .ftr__block > div:nth-child(3) { border-right: 0; }
  .ftr__block > div:nth-child(4) { grid-column: 1 / -1; border-top: 1px solid var(--ink); border-right: 0; }
  .ftr__meta { grid-template-columns: 1fr 1fr; }
  .ftr__meta span:nth-child(2) { border-right: 0; }
  .ftr__meta span:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
}

/* ---------- podstránky ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 48px); border-bottom: 3px double var(--ink); }
.page-hero .wrap { display: grid; gap: 16px; }
.page-hero h1.h-xl { font-family: var(--f-stencil); font-weight: 400; font-stretch: normal; }
.crumbs { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { color: var(--red); }
.layout-doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.side { position: sticky; top: 104px; display: grid; gap: 22px; padding: 20px; background: rgba(244,239,226,.75); border: 2px solid var(--ink); }
.side h4 { margin: 0 0 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--rule); text-decoration: none; color: var(--ink-2); font-size: 15px; }
.side a:hover { color: var(--ink); }
.side a[aria-current="page"] { color: var(--ink); font-weight: 700; border-color: var(--red); }
@media (max-width: 860px) { .layout-doc { grid-template-columns: 1fr; } .side { position: static; order: 2; } }

.prose { max-width: 72ch; min-width: 0; background: rgba(244,239,226,.82); padding: clamp(22px, 4vw, 44px); box-shadow: 0 14px 28px -18px rgba(35,37,30,.5); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 1.7em; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 26px; margin-top: 1.4em; }
.prose a { color: var(--ink); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose code { font: 600 .9em var(--f-mono); background: var(--paper); border: 1px solid var(--rule); padding: 2px 6px; overflow-wrap: anywhere; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border: 2px dashed var(--olive); background: rgba(76, 90, 44, .07); }
.prose hr { border: 0; border-top: 2px dashed var(--rule); margin: 2.2em 0; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--ink); }
.prose th { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card { display: grid; gap: 12px; align-content: start; padding: 22px 24px 24px; background: var(--card); text-decoration: none; border-left: 6px solid var(--olive); box-shadow: 0 10px 22px -14px rgba(35,37,30,.55); transition: transform .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--red); }
.card h3 { font-size: 26px; line-height: 1; }
.card p { color: var(--ink-2); font-size: 15px; }
.cat-block + .cat-block { margin-top: 56px; }
.cat-block > h2 { font-size: 36px; margin-bottom: 22px; display: flex; gap: 14px; align-items: baseline; }
.cat-block > h2 small { font: 500 12px/1 var(--f-mono); color: var(--ink-2); letter-spacing: .14em; }

.mapview { position: relative; height: min(78vh, 820px); min-height: 420px; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; margin: 5px; overflow: hidden; background: #c9c1a8; touch-action: none; cursor: grab; }
.mapview.is-drag { cursor: grabbing; }
.mapview__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mapview__layer img { width: 1000px; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; filter: sepia(.25) contrast(1.05); }
.mapview__ui { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; z-index: 3; }
.mapview__ui button { width: 42px; height: 42px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 600 20px/1 var(--f-mono); cursor: pointer; }
.mapview__ui button:hover { background: var(--ink); color: var(--paper); }
.mapview__coords { position: absolute; left: 12px; bottom: 12px; z-index: 3; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; background: var(--card); border: 2px solid var(--ink); padding: 8px 10px; }
.note-text { font-size: 15px; color: var(--ink-2); }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .wrap { display: grid; gap: 20px; justify-items: center; }
.notfound b { font: 400 clamp(110px, 22vw, 240px)/.8 var(--f-stencil); color: var(--red); }

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

/* ---------- přihlášení přes Steam ---------- */
.acct { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; font: 700 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; max-width: 200px; }
.acct:hover { background: var(--ink); color: var(--paper); }
.acct svg { width: 18px; height: 18px; flex: none; }
.acct span { overflow: hidden; text-overflow: ellipsis; }
.acct.is-in { text-transform: none; letter-spacing: 0; font-size: 14px; padding-left: 4px; }
.acct img { width: 28px; height: 28px; border: 1px solid var(--ink); }
@media (max-width: 980px) { .acct span { display: none; } .acct { padding: 0 9px; } .acct.is-in { padding: 0 4px; } }
.btn--steam { --bg: #171a21; --fg: #fff; justify-self: start; }
.dogtag-wrap { max-width: 640px; }
.profile-card { display: grid; gap: 18px; transform: rotate(-.6deg); }
.profile-error { padding: 10px 14px; border: 2px solid var(--red); color: var(--red); font-weight: 600; }
.dogtag { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 28px 28px 24px 40px; color: var(--ink);
  background: linear-gradient(135deg, #d8d6cf, #b9b7af 45%, #d3d1c9 60%, #a9a79f); border-radius: 22px; border: 2px solid #8d8b84; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 18px 30px -16px rgba(0,0,0,.6); }
.dogtag[hidden] { display: none; }
.dogtag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 2px solid #8d8b84; }
.dogtag img { width: 96px; height: 96px; border: 2px solid var(--ink); filter: grayscale(.3); }
.dogtag__lines { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dogtag__k { font: 600 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: #4c4b46; margin-top: 6px; }
.dogtag b { font: 400 30px/1.05 var(--f-stencil); overflow-wrap: anywhere; }
.dogtag .ip code { background: rgba(244,239,226,.8); font-size: 15px; }
.dogtag__out { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
@media (max-width: 520px) { .dogtag { grid-template-columns: 1fr; padding-left: 28px; } .dogtag::before { top: 20px; margin: 0; left: auto; right: 20px; } }

/* ---------- PvP / PvE zóny na mapě ---------- */
.zones { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.zones::before, .zones::after { content: ""; position: absolute; top: 0; bottom: 0; }
.zones::before { left: 0; width: var(--split); background: rgba(179, 38, 30, .16); }
.zones::after { left: var(--split); right: 0; background: rgba(63, 125, 50, .13); }
.zones__line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 4px; margin-left: -2px; z-index: 1;
  background: repeating-linear-gradient(180deg, var(--red) 0 14px, transparent 14px 20px); box-shadow: 0 0 0 1px rgba(244, 239, 226, .35); }
.zone-tag { position: absolute; top: 8%; z-index: 2; padding: 6px 12px; border: 3px solid; background: rgba(244, 239, 226, .85); font: 400 clamp(14px, 1.6vw, 22px)/1 var(--f-stencil); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.zone-tag--pvp { right: calc(100% - var(--split) + 14px); color: var(--red); transform: rotate(-3deg); }
.zone-tag--pve { left: calc(var(--split) + 14px); color: var(--ok); transform: rotate(2deg); }
.zones--hero .zone-tag { top: 7%; }
.zones--hero .zone-tag--pve { top: auto; bottom: 10%; }
.mapview__layer .zone-tag { font-size: 22px; }
.hero__you { position: absolute; z-index: 3; left: calc(50.3% + 6px); top: 56%; display: flex; align-items: flex-end; gap: 4px; font-size: 30px; transform: rotate(-4deg); }
.hero__you svg { width: 70px; height: 48px; }
@media (max-width: 900px) { .zones--hero { display: none; } .hero__you { display: none; } }

.hero h1 { font-size: clamp(34px, 4.6vw, 70px); line-height: 1; }
.hero h1 .h1-line { display: flex; align-items: center; gap: .25em; color: var(--ink); }
.hero h1 .h1-line + .h1-line { margin-top: .12em; }
.hero h1 .h1-line svg { width: .78em; height: .78em; flex: none; padding: .08em; border: 2px solid currentColor; border-radius: 50%; }
.hero h1 .h1-pvp svg { color: var(--red); }
.hero h1 .h1-pve svg { color: var(--ok); }

/* vysílačka v záhlaví mapového listu – ležérně natočená, přesahuje do mapy */
.radio--title { position: relative; inset: auto; right: auto; top: auto; width: 380px; max-width: 100%; transform: rotate(3deg) translateY(34%); z-index: 6; justify-self: end; transition: transform .25s; }
.radio--title:hover { transform: rotate(1deg) translateY(34%); }
.hero__title { position: relative; z-index: 5; }
@media (max-width: 900px) { .radio--title { width: auto; justify-self: stretch; transform: rotate(1.5deg); } .radio--title:hover { transform: rotate(1.5deg); } }

@media (max-width: 520px) { .hdr__cta .btn { display: none; } .hdr__in { gap: 12px; } }

/* vzkaz: menší, ležérně natočený, přesahuje spodní okraj mapy */
.hero__map { overflow: visible; }
.hero__note { left: clamp(24px, 5vw, 64px); bottom: -78px; width: min(400px, 38%); transform: rotate(-3.5deg); padding: 24px 22px 20px; gap: 14px; transition: transform .25s; }
.hero__note:hover { transform: rotate(-1.5deg); }
.hero__note .lead { font-size: 16px; line-height: 1.5; }
.hero__note .btn { min-height: 42px; padding: 0 16px; font-size: 13px; box-shadow: 3px 3px 0 var(--red); }
.hero { padding-bottom: clamp(110px, 10vw, 140px); }
@media (max-width: 900px) { .hero__note { bottom: auto; left: auto; width: auto; transform: rotate(-1.5deg); } .hero__note:hover { transform: rotate(-1.5deg); } .hero { padding-bottom: 56px; } }

.hero__note .stamp { right: -22px; top: -30px; font-size: 15px; }

/* ---------- ke stažení (MadMan Launcher) ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; }
.dl-card { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 28px 24px; background: var(--card); border-top: 6px solid var(--olive); box-shadow: 0 14px 30px -14px rgba(35,37,30,.5); }
.dl-card--main { border-top-color: var(--red); transform: rotate(-.5deg); }
.dl-card h3 { font-size: clamp(28px, 3vw, 36px); }
.dl-card p { color: var(--ink-2); }
.dl-card .btn { justify-self: start; }
.dl-card__tag { position: absolute; right: 18px; top: -16px; padding: 6px 10px; border: 3px solid var(--red); color: var(--red); background: var(--card); font: 400 15px/1 var(--f-stencil); letter-spacing: .08em; text-transform: uppercase; transform: rotate(6deg); }
.dl-card__meta { font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.dl-shot { margin: clamp(40px, 6vw, 72px) 0 0; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px; box-shadow: 0 24px 40px -20px rgba(35,37,30,.6); }
.dl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.dl-cols h2 { margin-bottom: 18px; }
.dl-list { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.dl-list li::marker { color: var(--red); }
.dl-list a { font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.dl-hash { margin-top: 22px; border: 2px dashed var(--rule); padding: 12px 16px; }
.dl-hash summary { cursor: pointer; font: 600 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.dl-hash p { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.dl-hash code { font-size: 11px; }
