/*
  Základ vzhledu webu (krok 35). Barvy a písma přepisuje Nastavení webu (_ThemeVars.cshtml);
  hodnoty tady jsou jen záloha, kdyby proměnné chyběly. Vzhled podle návrhu: tmavě rudá, zlatá,
  bílá jen pro text; nadpisy Teko velkými písmeny, text Barlow, erb Cinzel.
*/
:root {
    --c-bg: #0f0607;
    --c-panel: #1a0b0d;
    --c-panel-2: #24100f;
    --c-border: #3a1518;
    --c-red: #d42a35;
    --c-red-dark: #a3141f;
    --c-gold: #d4a63a;
    --c-gold-light: #f0cf7a;
    --c-gold-muted: #b08a5a;
    --c-content: #e8e2d6;
    --c-text-2: #b9b3a7;
    --c-btn-text: #f6dc94;
    /* Krok 56: červená pro malý text na tmavém pozadí (kontrast WCAG AA ≥ 4.5:1); velké nadpisy dál var(--c-red). */
    --c-red-text: color-mix(in srgb, var(--c-red) 78%, #fff);
    --c-hazard: #b81d2a;
    --c-footer: #0a0405;
    --c-online: #7fd18b;
    --c-warn: #e0b04a;
    --font-heading: "Teko", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, sans-serif;
    --font-crest: "Cinzel", Georgia, serif;
    --fs-base: 17px;
    --h-scale: 1;
    --h-case: uppercase;

    /* Velikosti nadpisů: plynule mezi mobilem a PC, násobené „Velikostí nadpisů“ z adminu. */
    --h-display: calc(clamp(3.4rem, 9vw, 7rem) * var(--h-scale));
    --h1: calc(clamp(2.6rem, 6vw, 4rem) * var(--h-scale));
    --h2: calc(clamp(2.2rem, 4.6vw, 3.5rem) * var(--h-scale));
    --h3: calc(clamp(1.6rem, 2.6vw, 2.2rem) * var(--h-scale));
    --h4: calc(1.5rem * var(--h-scale));

    /* Obsah 1280 px (20 čtverců mřížky po 64 px) + okraje: hrany obsahu sedí na linkách mřížky. */
    --content: 1280px;
    --container: calc(var(--content) + 2 * var(--gutter));
    --content-narrow: 896px;
    --gutter: clamp(16px, 3vw, 24px);
    --radius: 0;
    --shadow-glow: 0 18px 50px rgba(212, 42, 53, .35);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html {
    font-size: var(--fs-base);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (max-width: 640px) {
    html { font-size: calc(var(--fs-base) - 1px); }
}

body {
    overflow-x: clip;
    margin: 0;
    min-height: 100vh;
    background: var(--c-bg);
    color: var(--c-content);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video, svg {
    max-width: 100%;
}

img, video {
    height: auto;
}

/* ---------- Typografie ---------- */
/* Jen veřejný web: administrace má vlastní, klidnější nadpisy (admin.css). */
:where(body:not(.adm-page)) :is(h1, h2, h3, h4),
.h-display, .h1, .h2, .h3, .h4 {
    margin: 0 0 .4em;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: .95;
    letter-spacing: .01em;
    text-transform: var(--h-case);
    text-wrap: balance;
}

:where(body:not(.adm-page)) h1, .h1 { font-size: var(--h1); }
:where(body:not(.adm-page)) h2, .h2 { font-size: var(--h2); line-height: 1; }
:where(body:not(.adm-page)) h3, .h3 { font-size: var(--h3); font-weight: 600; line-height: 1.05; }
:where(body:not(.adm-page)) h4, .h4 { font-size: var(--h4); font-weight: 600; line-height: 1.1; }
/* Krok 56: první nadpis stránky povýšený na h1 kvůli SEO – vypadá dál jako h2. */
h1:where([data-h2]) { font-size: var(--h2); line-height: 1; }
.h-display { font-size: var(--h-display); line-height: .88; }

p {
    margin: 0 0 1em;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: var(--c-text-2);
    max-width: 38em;
}

/* Malý popisek nad nadpisem / u údaje (Hráči, Herní den, Event · datum). */
.eyebrow,
.label {
    font-family: var(--font-body);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-gold-muted);
}

/* Rámeček s textem (štítek „7 Days to Die · Hardcore PvE / PvP“). */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

a {
    color: var(--c-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s;
}

a:hover {
    color: var(--c-gold-light);
}

/* Odkaz „Všechny servery →“ */
.more-link {
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

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

::selection {
    background: var(--c-red);
    color: var(--c-btn-text);
}

.gold { color: var(--c-gold); }
.accent { color: var(--c-red); }
.muted { color: var(--c-gold-muted); }
.text-2 { color: var(--c-text-2); }

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

/* ---------- Rozvržení ---------- */
.page {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

/* ---------- Povrchy a ozdoby z návrhu ---------- */
.panel {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

/* Jemné zrno (pozadí hero a výzvy). */
.grain {
    background-color: var(--c-panel);
    background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 6px 6px;
}

/* Výstražné pruhy pod hlavičkou a nad patičkou; pohyb zapíná Efekty → „Pohyblivé výstražné pruhy“. */
.hazard {
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--c-hazard) 0 14px, var(--c-gold) 14px 18px, var(--c-bg) 18px 32px);
}

.fx-hazard .hazard {
    animation: hazard-march 2.5s linear infinite;
}

@keyframes hazard-march {
    to { background-position: 45.25px 0; }
}

/* Karta s nadzvednutím a rudou září pod myší (servery, novinky, „Co tě čeká“). */
.card {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-glow);
        border-color: var(--c-gold);
    }
}

/* Rudá záře textu („noc.“ v hero) a blikání (Efekty → Blikání zvýrazněného textu). */
.glow {
    text-shadow: 0 0 24px rgba(212, 42, 53, .75), 0 0 70px rgba(212, 42, 53, .45);
}

.fx-flicker .flicker {
    animation: flicker 5s infinite;
}

@keyframes flicker {
    0%, 18%, 21%, 24%, 58%, 61%, 100% { opacity: 1; }
    19%, 23%, 59% { opacity: .35; }
}

/* Zlatý nadpis s pomalým leskem (Efekty → Lesk zlatých nadpisů). */
.gold-text {
    color: var(--c-gold);
}

.fx-gold-shine .gold-text {
    background: linear-gradient(100deg, #9a7425 0%, #e6c068 30%, #fff1c2 45%, #e6c068 60%, #9a7425 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-shine 7s linear infinite;
}

@keyframes gold-shine {
    from { background-position: 100% 0; }
    to { background-position: -150% 0; }
}

/* Stavová tečka (online = zelená, pulzuje podle Efektů). */
.dot-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}

.st-online { color: var(--c-online); }
.st-dev { color: var(--c-warn); }
.st-planned { color: var(--c-gold-muted); }

.fx-live-pulse .st-online .dot-status,
.fx-live-pulse .dot-status.st-online {
    animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-online) 70%, transparent); }
    100% { box-shadow: 0 0 0 10px transparent; }
}

/* Plynulé objevení obsahu po načtení (Efekty → Plynulé objevování obsahu). */
.fx-reveal .reveal {
    opacity: 0;
    animation: reveal .9s var(--ease-out) forwards;
}

.fx-reveal .reveal.d1 { animation-delay: .1s; }
.fx-reveal .reveal.d2 { animation-delay: .3s; }
.fx-reveal .reveal.d3 { animation-delay: .5s; }
.fx-reveal .reveal.d4 { animation-delay: .7s; }

@keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

/* Kdo má v systému „omezit pohyb“, neuvidí žádnou animaci. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; }
}

.skeleton {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.skeleton h1 {
    margin: 0;
    font-family: var(--font-crest);
    font-size: clamp(2rem, 6vw, 4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.topnav a,
.linkbtn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.inline {
    display: inline;
    margin: 0;
}

.linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--c-gold);
    font: inherit;
    cursor: pointer;
}

/* Karty přihlášení a účtu */
.auth-card {
    max-width: 440px;
    margin: 48px auto;
    padding: 28px 24px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.auth-wide {
    max-width: 720px;
}

.auth-card h1 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: var(--h1);
    text-transform: var(--h-case);
}

.auth-card h2 {
    margin: 24px 0 8px;
    font-size: 1.2rem;
    color: var(--c-gold);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.input {
    min-height: 44px;
    padding: 8px 12px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-content);
    font: inherit;
}

.input:focus {
    outline: 2px solid var(--c-gold);
    outline-offset: 1px;
}

.input-code {
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    text-align: center;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.btn {
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid var(--c-red);
    background: var(--c-red);
    color: #f6dc94;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    border-color: var(--c-gold);
    color: var(--c-gold);
}

/* Tlačítka veřejného webu podle návrhu: písmo nadpisů, velká písmena, nadzvednutí a zlatý obrys pod myší,
   odlesk přejíždějící po tlačítku (Efekty → Odlesk na tlačítkách). Administrace má .btn klidné. */
:where(body:not(.adm-page)) .btn {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    padding: 14px 28px 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: var(--h-case);
    color: var(--c-btn-text);
    transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s, color .2s;
}

:where(body:not(.adm-page)) .btn-ghost {
    color: var(--c-content);
}

/* Nadzvednutí jen u myši; na dotykovém displeji by tlačítko „zůstalo viset“ zvednuté. */
@media (hover: hover) {
    :where(body:not(.adm-page)) .btn:hover {
        filter: none;
        color: var(--c-btn-text);
        transform: translateY(-3px);
        box-shadow: 0 0 0 1px var(--c-gold), 0 12px 40px rgba(212, 42, 53, .6);
    }

    :where(body:not(.adm-page)) .btn-ghost:hover {
        color: var(--c-gold-light);
        background: rgba(212, 166, 58, .08);
    }
}

:where(body:not(.adm-page)) .btn:active {
    transform: translateY(-1px);
}

.fx-button-shine :where(body:not(.adm-page)) .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(246, 220, 148, 0), rgba(246, 220, 148, .45), rgba(246, 220, 148, 0));
    transform: skewX(-20deg);
    animation: btn-shine 4s infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0%, 65% { left: -60%; }
    100% { left: 130%; }
}

/* Menší tlačítko (v kartách, formulářích na webu). */
:where(body:not(.adm-page)) .btn-sm {
    min-height: 44px;
    padding: 10px 18px 8px;
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    :where(body:not(.adm-page)) .btn {
        font-size: 1.35rem;
        padding: 13px 22px 11px;
    }
}

.btn-steam {
    width: 100%;
}

.notice {
    padding: 10px 12px;
    border-left: 3px solid var(--c-gold);
    background: var(--c-panel-2);
}

.notice-error {
    border-left-color: var(--c-red);
}

.field-error {
    color: #ff8a8a;
}

.steps {
    padding-left: 20px;
}

.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.qr {
    width: 240px;
    height: 240px;
    max-width: 100%;
    image-rendering: pixelated;
    border: 6px solid var(--c-content);
}

.codes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    padding: 0;
    list-style: none;
}

.codes code {
    display: block;
    padding: 8px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    text-align: center;
}

.recovery {
    padding: 12px 16px;
    border: 1px solid var(--c-gold);
}

/* Uživatelské menu v liště (hodnost + jméno → rozbalovací panel). */
.usermenu {
    position: relative;
}

.who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--c-content);
    font: inherit;
    cursor: pointer;
}

.who:hover,
.who[aria-expanded="true"] {
    border-color: var(--c-border);
    background: var(--c-panel);
}

.who:focus-visible,
.usermenu-panel a:focus-visible,
.usermenu-logout:focus-visible {
    outline: 2px solid var(--c-gold);
    outline-offset: 1px;
}

.who-name {
    max-width: 16ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--c-gold);
    transition: transform 0.15s;
}

.who[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.usermenu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-red);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.usermenu-panel[hidden] {
    display: none;
}

.usermenu-head {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--c-border);
    line-height: 1.3;
}

.usermenu-head .muted {
    font-size: 0.85rem;
}

.usermenu-panel .usermenu-head .usermenu-name {
    min-height: 0;
    padding: 0;
    display: inline;
}

.usermenu-panel .usermenu-head .usermenu-name:hover { background: none; }

.usermenu-panel a,
.usermenu-panel .soon,
.usermenu-logout {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: var(--c-content);
    text-decoration: none;
}

.usermenu-panel a:hover,
.usermenu-logout:hover {
    background: var(--c-panel-2);
    color: var(--c-gold);
}

.usermenu-admin {
    color: var(--c-gold) !important;
}

.usermenu-panel form {
    margin: 4px 0 0;
    border-top: 1px solid var(--c-border);
    padding-top: 4px;
}

.usermenu-logout {
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.soon {
    color: var(--c-gold-muted);
    opacity: 0.6;
    cursor: default;
}

.soon small {
    margin-left: 8px;
    padding: 0 6px;
    border: 1px solid currentColor;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Na mobilu panel přes celou šířku pod lištou. */
@media (max-width: 600px) {
    .usermenu {
        position: static;
    }

    .hdr-inner {
        position: relative;
    }

    .usermenu-panel {
        left: 8px;
        right: 8px;
        top: calc(100% - 4px);
        min-width: 0;
    }

    .who-name {
        max-width: 10ch;
    }
}

/* Sekce Můj účet: vlevo navigace, vpravo obsah; na mobilu navigace nahoře jako posuvná lišta. */
.acc {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    margin: 32px 0;
}

.acc-nav {
    display: flex;
    flex-direction: column;
    align-self: start;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.acc-nav a,
.acc-nav .soon {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-left: 3px solid transparent;
    color: var(--c-content);
    text-decoration: none;
}

.acc-nav a:hover {
    background: var(--c-panel-2);
    color: var(--c-gold);
}

.acc-nav a.active {
    border-left-color: var(--c-red);
    background: var(--c-panel-2);
    color: var(--c-gold);
}

.acc-nav .soon {
    color: var(--c-gold-muted);
}

.acc-main {
    min-width: 0;
    padding: 24px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.acc-main h1 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: var(--h1);
    text-transform: var(--h-case);
}

.acc-main h2 {
    margin: 24px 0 8px;
    font-size: 1.2rem;
    color: var(--c-gold);
}

.acc-name {
    font-size: 1.4rem;
    font-weight: 600;
}

.acc-ranks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.acc-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.acc-facts > div {
    padding: 12px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
}

.acc-facts dt {
    color: var(--c-gold-muted);
    font-size: 0.85rem;
}

.acc-facts dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.ok {
    color: #7fd18b;
}

@media (max-width: 760px) {
    .acc {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin: 16px 0;
    }

    .acc-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .acc-nav a,
    .acc-nav .soon {
        flex: 0 0 auto;
        border-left: 0;
        border-bottom: 3px solid transparent;
        gap: 6px;
    }

    .acc-nav a.active {
        border-bottom-color: var(--c-red);
    }

    .acc-main {
        padding: 18px 16px;
    }
}

.rank {
    padding: 2px 8px;
    border: 1px solid var(--rank-color, var(--c-gold-muted));
    color: var(--rank-color, var(--c-gold-muted));
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.6;
}

/* Stránky webu (dočasný vzhled do kroku 35+) */
.page-body {
    max-width: var(--content-narrow);
    margin: 48px auto;
}

.page-body h1 {
    font-family: var(--font-heading);
    font-size: var(--h1);
    text-transform: var(--h-case);
}

.page-soon p {
    max-width: 560px;
}

.pill {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid currentColor;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.pill-gold { color: var(--c-gold); }
.status-published { color: #7fd18b; }
.status-comingsoon { color: var(--c-gold); }
.status-hidden { color: var(--c-gold-muted); }
.status-scheduled { color: #7fa8d1; }

.preview-bar {
    margin: 16px 0 0;
    padding: 8px 12px;
    border: 1px dashed var(--c-gold);
    color: var(--c-gold);
    font-size: 0.9rem;
}

.preview-bar a {
    margin-left: 8px;
}

/* ---------- Sekce stránek (základní vzhled; vzhled podle návrhu doladí kroky 38–43) ---------- */
.sections {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 80px);
    padding-bottom: 64px;
}

.sec {
    position: relative;
    scroll-margin-top: var(--anchor-offset, 130px);
}

.sec-inner {
    max-width: var(--content-narrow);
    margin: 0 auto;
}

.w-wide .sec-inner,
.sec-cards .sec-inner,
.sec-servers .sec-inner {
    max-width: 1280px;
}

.w-full,
.sec-hero,
.sec-cta {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.w-full .sec-inner {
    max-width: none;
}

.align-center {
    text-align: center;
}

.sec-title {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: var(--h2);
    line-height: 1.15;
    text-transform: var(--h-case);
}

.accent {
    color: var(--c-red);
}

.prose p {
    margin: 0 0 1em;
}

.prose ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.prose li::marker {
    color: var(--c-gold);
}

.sec-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.align-center .sec-buttons,
.cta .sec-buttons {
    justify-content: center;
}

/* ---------- Úvodní banner (krok 38) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--c-border);
}

.hero-tall { min-height: min(100svh, 980px); }
.hero-medium { min-height: 60svh; }
.hero-short { min-height: 38svh; }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

/* Pomalé přibližování obrázku (Efekty → Pomalé přibližování). */
.fx-kenburns .hero-img {
    animation: kenburns 30s ease-in-out infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08) translateX(-1.5%); }
}

.hero-video { display: none; }
html.fx-video .hero-video { display: block; }

@media (max-width: 760px) {
    html:not(.fxm-video) .hero-video { display: none; }
}

/* Ztmavení: u rozložení vlevo tmavší strana s textem, dole přechod do pozadí stránky. */
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(15, 6, 7, .25), rgba(15, 6, 7, .85) 75%),
        linear-gradient(180deg, rgba(15, 6, 7, .3), var(--c-bg));
}

.hero-split .hero-shade {
    background:
        linear-gradient(90deg, rgba(15, 6, 7, .92) 0%, rgba(15, 6, 7, .75) 35%, rgba(15, 6, 7, .15) 70%, rgba(15, 6, 7, .35) 100%),
        linear-gradient(0deg, var(--c-bg) 0%, rgba(15, 6, 7, 0) 30%);
}

/* Rudá mlha u spodního okraje (Efekty → Rudá mlha). */
.fog {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -40px;
    height: 300px;
    display: none;
    background: radial-gradient(ellipse at 50% 100%, rgba(140, 20, 28, .45), rgba(15, 6, 7, 0) 70%);
    animation: fog-drift 16s ease-in-out infinite alternate;
    pointer-events: none;
}

.fx-fog .fog { display: block; }

@keyframes fog-drift {
    to { transform: translateX(18%); }
}

/* Jiskry stoupající zespodu (Efekty → Jiskry); vytváří je site.js podle počtu z Efektů. */
.embers {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

.fx-embers .embers { display: block; }

.embers span {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f0b04a;
    box-shadow: 0 0 10px 3px rgba(240, 120, 40, .75);
    opacity: 0;
    animation: ember-rise linear infinite;
}

@keyframes ember-rise {
    0% { translate: 0 0; opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: .8; }
    100% { translate: 60px -680px; opacity: 0; }
}

@media (max-width: 640px) {
    html:not(.fxm-fog) .fog,
    html:not(.fxm-embers) .embers { display: none; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px var(--gutter) 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.hero-main {
    flex: 999 1 560px;
    min-width: 0;
}

.hero-center .hero-inner {
    justify-content: center;
    text-align: center;
}

.hero-center .hero-main {
    flex-basis: 100%;
    max-width: 960px;
}

.hero-center .hero-logo-wrap,
.hero-center .hero-sub {
    margin-left: auto;
    margin-right: auto;
}

.hero-center .sec-buttons {
    justify-content: center;
}

.hero-logo-wrap {
    width: min(var(--logo-size, 360px), 90vw);
    margin-bottom: 28px;
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
}

/* Logo s vlajkou: záře (Efekty → Záře loga) a vlnění stuhy (Efekty → Vlající vlajka). */
.hero-flaglogo {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 0 28px rgba(212, 42, 53, .55));
}

.fx-logo-glow .hero-flaglogo {
    animation: logo-glow 5s ease-in-out infinite;
}

@keyframes logo-glow {
    50% { filter: drop-shadow(0 0 46px rgba(230, 60, 40, .8)); }
}

.flag-text-top,
.flag-text-bottom {
    font-family: var(--font-crest);
    text-transform: uppercase;
}

.flag-wave { transform-origin: 210px 330px; }
.flag-tail-l { transform-origin: 60px 338px; }
.flag-tail-r { transform-origin: 360px 338px; }

.fx-flag .flag-wave { animation: flag-wave 5s ease-in-out infinite; }
.fx-flag .flag-tail-l { animation: flag-tail-l 2.8s ease-in-out infinite; }
.fx-flag .flag-tail-r { animation: flag-tail-r 2.8s ease-in-out infinite; animation-delay: -1.4s; }

@keyframes flag-wave {
    0%, 100% { transform: rotate(-1.4deg) translateY(0); }
    50% { transform: rotate(1.4deg) translateY(-3px); }
}

@keyframes flag-tail-l {
    0%, 100% { transform: skewY(0) scaleX(1); }
    50% { transform: skewY(6deg) scaleX(.9); }
}

@keyframes flag-tail-r {
    0%, 100% { transform: skewY(0) scaleX(1); }
    50% { transform: skewY(-6deg) scaleX(.9); }
}

.hero-tag {
    margin: 0;
}

.hero-title {
    margin: 24px 0 0;
    font-family: var(--font-heading);
    font-size: var(--h-display);
    font-weight: 700;
    line-height: .88;
    text-transform: var(--h-case);
    text-wrap: balance;
}

.hero-title .accent {
    text-shadow: 0 0 24px rgba(212, 42, 53, .75), 0 0 70px rgba(212, 42, 53, .45);
}

.fx-flicker .hero-title .accent {
    animation: flicker 5s infinite;
}

.hero-sub {
    margin: 24px 0 0;
    max-width: 560px;
}

.hero-sub p:last-child { margin-bottom: 0; }

.hero .sec-buttons {
    margin-top: 36px;
    gap: 14px;
}

/* Panel serveru vpravo */
.srv-panel {
    flex: 1 1 340px;
    min-width: 0;
    max-width: 440px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    text-align: left;
}

.hero-center .srv-panel {
    margin: 0 auto;
}

.srv-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
}

.srv-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: var(--h-case);
}

.srv-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}

.srv-stats {
    margin: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.srv-stats dd {
    margin: 4px 0 0;
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1;
}

.srv-stats dd small {
    color: var(--c-gold-muted);
    font-size: 1.7rem;
}

.srv-online {
    padding: 0 20px 20px;
}

.srv-players {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.srv-players span {
    padding: 5px 10px;
    background: var(--c-panel-2);
    font-size: .88rem;
}

.srv-note {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--c-gold-muted);
    font-size: .85rem;
}

.srv-addr {
    display: flex;
    border-top: 1px solid var(--c-border);
}

.srv-addr code {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--c-text-2);
    font-size: .92rem;
}

.srv-copy {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-left: 1px solid var(--c-border);
    background: var(--c-panel-2);
    color: var(--c-gold);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.srv-copy:hover { color: var(--c-gold-light); }

.srv-connect {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border-top: 1px solid var(--c-border);
    background: color-mix(in srgb, var(--c-red) 80%, #000); /* krok 56: kontrast zlatého textu */
    color: var(--c-btn-text);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: var(--h-case);
    text-decoration: none;
}

.srv-connect:hover {
    color: var(--c-btn-text);
    filter: brightness(1.1);
}

@media (max-width: 760px) {
    .hero-inner {
        padding-top: 40px;
        padding-bottom: 56px;
        gap: 36px;
    }

    .hero-logo-wrap { width: min(var(--logo-size, 360px), 72vw); margin-bottom: 20px; }
    .srv-panel { max-width: none; }
    .srv-stats dd { font-size: 2.2rem; }
}

/* ---------- Karty serverů (krok 39) ---------- */
.sec-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px 16px;
    margin-bottom: 28px;
}

.sec-head .sec-title {
    margin: 0;
}

.sec-intro {
    max-width: 760px;
    margin: -12px 0 24px;
    color: var(--c-text-2);
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}

.srv-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-top: 4px solid var(--c-red);
    overflow: hidden;
}

.srv-card.is-soon {
    border-top-color: color-mix(in srgb, var(--c-red) 35%, var(--c-panel));
}

.srv-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--c-border);
}

.srv-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
}

.card .srv-card-name {
    color: var(--c-content);
    margin: 8px 0 12px;
    font-size: calc(2.25rem * var(--h-scale));
    line-height: 1;
}

.srv-card-desc {
    margin-bottom: 16px;
}

.srv-card-desc p:last-child { margin-bottom: 0; }

.srv-card-desc.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.srv-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.srv-features li {
    padding: 4px 10px;
    border: 1px solid var(--c-border);
    background: var(--c-panel-2);
    color: var(--c-gold);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.srv-card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    font-weight: 600;
}

.srv-card-actions {
    border-top: 1px solid var(--c-border);
}

.srv-card-actions .srv-addr {
    border-top: 0;
    border-bottom: 1px solid var(--c-border);
}

.srv-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 26px 20px;
}

.srv-card-links:empty {
    display: none;
}

/* Obrázek */
.sec-figure {
    margin: 0;
}

.sec-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.sec-figure.has-frame img {
    border: 1px solid var(--c-border);
}

.sec-figure.fig-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-figure.fig-right { margin-left: auto; text-align: right; }

.sec-figure figcaption {
    margin-top: 8px;
    color: var(--c-gold-muted);
    font-size: 0.9rem;
}

/* Karty */
.sec-intro {
    max-width: 720px;
    margin-bottom: 24px;
}

.cards {
    display: grid;
    gap: 16px;
}

.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1023px) {
    .cards.cols-3,
    .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .cards.cols-2,
    .cards.cols-3,
    .cards.cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-red);
}

.card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-contain .card-img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

.img-icon .card-img {
    width: var(--icon-size, 72px);
    height: var(--icon-size, 72px);
    aspect-ratio: 1;
    margin: 20px 18px 0;
    object-fit: contain;
}

.card-body {
    padding: 16px 18px 6px;
}

.card h3 {
    margin: 0 0 8px;
    color: var(--c-gold);
    font-size: calc(1.75rem * var(--h-scale));
}

.card h3 a {
    text-decoration: none;
}

/* Výzva (krok 41): rámeček v šířce obsahu (návrh „Nehraj sám.“) nebo pruh přes celou šířku. */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .25;
}

.cta-band {
    padding: clamp(48px, 8vw, 96px) 16px;
    background: linear-gradient(135deg, #2a0c10, var(--c-panel));
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    text-align: center;
}

.cta-band .cta-inner {
    max-width: 720px;
}

.cta-band .sec-buttons {
    justify-content: center;
}

/* Rámeček: sekce se neroztahuje přes celé okno. */
.sec-cta:has(.cta-box) {
    margin-left: 0;
    margin-right: 0;
}

.sec-cta:has(.cta-box) > .cta {
    max-width: var(--content);
    margin: 0 auto;
}

.cta-box {
    border: 1px solid var(--c-border);
    padding: clamp(28px, 5vw, 48px);
}

.cta-box .cta-inner {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    align-items: center;
    justify-content: space-between;
}

.cta-box .cta-text {
    flex: 1 1 420px;
    min-width: 0;
}

.cta-box .sec-title {
    margin: 0;
    font-size: calc(clamp(2.4rem, 5vw, 3.75rem) * var(--h-scale));
    line-height: .95;
}

.cta-box .lead {
    margin-top: 12px;
    max-width: 520px;
}

.cta-box .lead p:last-child { margin-bottom: 0; }

.cta-box .sec-buttons {
    margin-top: 0;
    flex: none;
}

.cta-hazard::before,
.cta-hazard::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--c-hazard) 0 14px, var(--c-gold) 14px 18px, var(--c-bg) 18px 32px);
}

.fx-hazard .cta-hazard::before,
.fx-hazard .cta-hazard::after {
    animation: hazard-march 2.5s linear infinite;
}

.cta-hazard::before { top: 0; }
.cta-hazard::after { bottom: 0; }

@media (max-width: 640px) {
    .cta-box .sec-buttons { width: 100%; }
    .cta-box .sec-buttons .btn { flex: 1 1 auto; }
}

/* Karty s čísly (krok 41, „Co tě čeká“): spojená mřížka s tenkými linkami mezi kartami. */
.cards-numbered {
    gap: 1px;
    padding: 1px;
}

/* Linka kolem každé karty; v 1px mezerách se sousední linky slijí v jednu. Prázdná místa v řadě zůstanou bez rámečku. */
.cards-numbered .card {
    border: 0;
    background: var(--c-bg);
    box-shadow: 0 0 0 1px var(--c-border);
}

@media (hover: hover) {
    .cards-numbered .card:hover {
        position: relative;
        z-index: 1;
        background: var(--c-panel);
        box-shadow: var(--shadow-glow), 0 0 0 1px var(--c-gold);
    }
}

.cards-numbered .card-body {
    padding: 28px;
}

.card-num {
    font-family: var(--font-heading);
    font-size: calc(3rem * var(--h-scale));
    line-height: 1;
    color: var(--c-gold);
}

.cards-numbered .card h3 {
    margin: 12px 0 8px;
    color: var(--c-content);
}

.cards-numbered .prose {
    color: var(--c-text-2);
}

.cards-numbered.img-icon .card-img {
    margin: 28px 28px 0;
}

/* Náhled skryté sekce */
.sec-hidden {
    outline: 2px dashed var(--c-gold-muted);
    outline-offset: 6px;
    opacity: 0.55;
}

.sec-hidden-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 5;
    padding: 2px 8px;
    background: var(--c-bg);
    border: 1px solid var(--c-gold-muted);
    color: var(--c-gold-muted);
    font-size: 0.75rem;
}

/* ---------- Hlavní menu (z administrace) ---------- */
.ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list,
.nav-sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--c-content);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link:hover,
.nav-item.active > .nav-link {
    color: var(--c-gold);
}

/* Aktivní položka: jedna souvislá rudá čára pod celou položkou (odkaz i šipka podmenu). */
.nav-item.active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 2px;
    background: var(--c-red);
}

.nav-caret-only {
    padding: 0 8px 0 0;
    margin-left: -6px;
}

.nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.15s;
}

[aria-expanded="true"] > .nav-caret {
    transform: rotate(180deg);
}

.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    min-width: 220px;
    padding: 6px 0;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-red);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
    display: none;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    color: var(--c-content);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-sublink:hover,
.nav-sublink.active {
    background: var(--c-panel-2);
    color: var(--c-gold);
}

.nav-burger {
    display: none;
}

@media (min-width: 1024px) {
    .nav-item.has-sub:hover > .nav-sub,
    .nav-item.has-sub:focus-within > .nav-sub,
    .nav-sub-toggle[aria-expanded="true"] + .nav-sub {
        display: block;
    }
}

@media (max-width: 1023px) {
    .nav-burger {
        order: -1;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 11px;
        background: none;
        border: 1px solid var(--c-border);
        cursor: pointer;
    }

    .nav-burger span {
        display: block;
        height: 2px;
        background: var(--c-gold);
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .site-nav {
        position: fixed;
        top: var(--nav-top, 68px);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: none;
        overflow-y: auto;
        padding: 8px 0 32px;
        background: var(--c-bg);
        border-top: 1px solid var(--c-border);
    }

    .site-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        flex-wrap: wrap;
        border-bottom: 1px solid var(--c-border);
    }

    .nav-item > .nav-link {
        flex: 1;
        min-height: 52px;
        padding: 0 20px;
        border-bottom: 0;
    }

    .nav-caret-only {
        flex: 0 0 56px !important;
        justify-content: center;
        margin: 0;
        padding: 0 !important;
        border-left: 1px solid var(--c-border) !important;
    }

    .nav-sub {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 0;
        border-top: 1px solid var(--c-border);
        background: var(--c-panel);
    }

    .nav-sub-toggle[aria-expanded="true"] + .nav-sub {
        display: block;
    }

    .nav-sublink {
        padding-left: 40px;
        min-height: 48px;
    }

    .nav-lock {
        overflow: hidden;
    }

    /* V panelu je aktivní položka zvýrazněná rudým pruhem vlevo. */
    .nav-item.active::after {
        left: 0;
        right: auto;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
    }
}

/* ---------- Hlavička (krok 36) ---------- */
.site-header {
    position: relative;
    z-index: 60;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

/* Pruh pod lepící hlavičkou se posouvá s ní. */
.site-header.is-sticky + .hdr-hazard {
    position: sticky;
    top: var(--hdr-h, 101px);
    z-index: 59;
}

.hdr-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    gap: 24px;
}

.hdr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
    min-width: 0;
    color: var(--c-content);
    text-decoration: none;
}

.hdr-brand:hover {
    color: var(--c-content);
}

.hdr-brand .seal {
    width: var(--seal-size, 72px);
    height: var(--seal-size, 72px);
    flex: none;
    filter: drop-shadow(0 0 8px rgba(212, 42, 53, .5));
    transition: filter .3s, transform .3s var(--ease-out);
}

@media (hover: hover) {
    .hdr-brand:hover .seal {
        filter: drop-shadow(0 0 14px rgba(230, 60, 40, .75));
        transform: rotate(-4deg);
    }
}

.hdr-logo {
    height: var(--seal-size, 72px);
    width: auto;
}

.hdr-name {
    font-family: var(--font-heading);
    font-size: calc(1.8rem * var(--h-scale));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: var(--h-case);
    white-space: nowrap;
}

.hdr-name .accent {
    color: var(--c-gold);
}

.hdr-inner .site-nav {
    justify-content: flex-start;
}

.hdr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: none;
}

.hdr-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    color: var(--c-gold);
    transition: border-color .15s, color .15s, background-color .15s;
}

.hdr-icon:hover {
    border-color: var(--c-gold);
    background: var(--c-panel);
    color: var(--c-gold-light);
}

/* Účet v hlavičce: tlačítko s iniciálou jako v návrhu. */
.site-header .who {
    height: 44px;
    padding: 0 14px 0 8px;
    background: var(--c-panel-2);
    border-color: var(--c-border);
    font-weight: 600;
}

.site-header .who:hover,
.site-header .who[aria-expanded="true"] {
    border-color: var(--c-gold);
}

.who-avatar {
    width: 28px;
    height: 28px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-border);
    color: var(--c-gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1;
    padding-top: 2px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    background: var(--c-panel-2);
    border: 1px solid var(--c-border);
    color: var(--c-content);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    border-color: var(--c-gold);
    color: var(--c-gold);
}

/* Pečeť (sdílená: hlavička, později patička a 404). */
.seal {
    overflow: visible;
}

.seal-disc { fill: var(--c-panel); stroke: var(--c-gold); stroke-width: 4; }
.seal-ring { fill: none; stroke: var(--c-gold); stroke-width: 3; }
.seal-gem { fill: var(--c-red); stroke: var(--c-gold); stroke-width: 2; }
.seal-text {
    fill: var(--c-gold);
    font-family: var(--font-crest);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 6px;
    text-transform: uppercase;
}
.seal-mono {
    fill: var(--c-gold);
    font-family: var(--font-crest);
    font-weight: 900;
    font-size: 110px;
    letter-spacing: -8px;
}

/* Méně místa: nejdřív zmenšit mezery, na tabletu menu do výsuvného panelu (pravidla u .site-nav). */
@media (max-width: 1279px) {
    .hdr-inner { gap: 16px; }
    .hdr-name { font-size: calc(1.5rem * var(--h-scale)); }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .site-nav .nav-link { padding: 0 8px; letter-spacing: .04em; }
    .site-nav .nav-link > .ico { display: none; }
}

/* Mezi tabletem a velkým PC: název vedle pečeti schovat, ať se menu vejde na jeden řádek. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hdr-name { display: none; }
}

@media (max-width: 1023px) {
    .hdr-inner {
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 12px;
    }

    .hdr-brand .seal,
    .hdr-logo {
        width: var(--seal-size-m, 48px);
        height: var(--seal-size-m, 48px);
    }

    .hdr-logo { width: auto; }
}

@media (max-width: 480px) {
    /* Na telefonu název na dva řádky: YGGDRASIL / VALGARD. */
    .hdr-name {
        font-size: calc(1.25rem * var(--h-scale));
        letter-spacing: .05em;
        white-space: normal;
        line-height: .9;
        min-width: 0;
    }
    .hdr-name .accent { display: block; }
    .hdr-brand { gap: 8px; flex: 0 1 auto; }
    .hdr-actions { gap: 6px; }
    .site-header .who-name,
    .site-header .rank { display: none; }
    .site-header .who { padding: 0 8px; }
}

/* Zlatý lesk musí krýt celé slovo, i když je řádek užší. */
.hdr-name .accent,
.ftr-name .accent { width: max-content; }

@media (max-width: 480px) {
    /* Telefon: Discord je v úvodu i patičce, v hlavičce uvolní místo pro název. */
    .hdr-actions .hdr-discord { display: none; }
}

@media (max-width: 380px) {
    .hdr-name { font-size: calc(1.1rem * var(--h-scale)); letter-spacing: .04em; }
    .hdr-brand { gap: 6px; }
}

@media (max-width: 359px) {
    .hdr-name { display: none; }
}

/* ---------- Patička (krok 37) ---------- */
/* Patička vždy u spodku okna, i na krátké stránce. */
body.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.site > main {
    flex: 1 0 auto;
    width: 100%;
}

.ftr-hazard {
    margin-top: 64px;
}

.site-footer {
    position: relative;
    background: var(--c-footer);
    color: var(--c-content);
}

.ftr-main,
.ftr-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}

.ftr-main.has-columns {
    align-items: flex-start;
}

.ftr-bottom {
    padding-top: 18px;
    padding-bottom: 22px;
    border-top: 1px solid var(--c-border);
}

.ftr-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.ftr-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--c-content);
    text-decoration: none;
}

.ftr-logo:hover {
    color: var(--c-content);
}

.ftr-logo img {
    object-fit: contain;
    opacity: .85;
    transition: opacity .2s;
}

.ftr-logo:hover img {
    opacity: 1;
}

.ftr-name {
    font-family: var(--font-heading);
    font-size: calc(1.6rem * var(--h-scale));
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1;
    text-transform: var(--h-case);
}

.ftr-name .accent {
    color: var(--c-gold);
}

.ftr-about {
    margin: 0;
    color: var(--c-text-2);
    font-size: .92rem;
}

.ftr-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ftr-links a,
.ftr-col a,
.ftr-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: var(--c-content);
    font-size: .95rem;
    text-decoration: none;
}

.ftr-links a:hover,
.ftr-col a:hover {
    color: var(--c-gold);
}

.ftr-nav {
    flex: 0 1 auto;
}

.has-columns .ftr-nav {
    flex: 1 1 480px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px 32px;
}

.ftr-col {
    display: flex;
    flex-direction: column;
}

.ftr-head {
    color: var(--c-gold);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: var(--h-case);
}

.ftr-copy {
    margin: 0;
    color: var(--c-gold-muted);
    font-size: .88rem;
}

/* Strojový překlad (anglický web) */
.ftr-machine {
    margin: 0;
    color: var(--c-gold-muted);
    font-size: .82rem;
}
.ftr-machine a { color: var(--c-gold); }

/* Přepínač CZ/EN v hlavičce */
.lang-switch {
    display: inline-flex;
    height: 44px;
    border: 1px solid var(--c-border);
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: var(--c-gold-muted);
    font-size: .82rem;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .15s, background-color .15s;
}
.lang-switch a:hover { color: var(--c-gold); }
.lang-switch a.is-active { color: var(--c-bg, #120809); background: var(--c-gold); }
@media (max-width: 520px) {
    .lang-switch { height: 36px; }
    .lang-switch a { padding: 0 7px; font-size: .75rem; }
}

.ftr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ftr-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 6px 0 10px;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* Kotvy (#sekce) zastaví pod lepící hlavičkou, ne pod ní schované. */
:where(main [id]) {
    scroll-margin-top: var(--anchor-offset, 130px);
}

@media (max-width: 640px) {
    .ftr-main,
    .ftr-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .ftr-main { padding-top: 32px; padding-bottom: 24px; }
    .ftr-links { flex-direction: column; gap: 0; }
    .ftr-bottom { flex-direction: column-reverse; }
}

/* ---------- Novinky ---------- */
.post {
    max-width: 820px;
    margin: 40px auto 24px;
}

.post-head h1 {
    margin: 4px 0 20px;
    font-family: var(--font-heading);
    font-size: var(--h1);
    line-height: 1.15;
    text-transform: var(--h-case);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--c-gold-muted);
    font-size: 0.85rem;
}

.post-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    margin-bottom: 24px;
    border: 1px solid var(--c-border);
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-more {
    max-width: 1280px;
    margin: 48px auto 0;
}

.post-card {
    position: relative;
}

.post-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-card:hover {
    border-color: var(--c-gold-muted);
}

.post-card:hover h3 {
    color: var(--c-gold);
}

.post-card h3 {
    color: var(--c-content);
    transition: color 0.15s;
}

.news-all {
    margin-top: 16px;
    text-align: right;
}

/* ---------- Světelná mřížka v pozadí (Efekty → Světelná mřížka) ---------- */
/* Mřížka je vystředěná podle okna, takže linky sedí na hranách obsahu (1280 px = 20 čtverců).
   Linky jsou přesně 1 px a k okrajům i ke spodku plynule tmavnou. */
.fx-grid-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: calc(50% + var(--grid-size) / 2) 0;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 30%, #000 25%, rgba(0, 0, 0, .45) 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 80% at 50% 30%, #000 25%, rgba(0, 0, 0, .45) 65%, transparent 100%);
}

/* Na celém webu: pevná vrstva za veškerým obsahem. */
.fx-grid-layer.is-page {
    position: fixed;
    z-index: -1;
}

.cta-inner,
.hero-inner {
    position: relative;
    z-index: 1;
}

/* Světelný bod s ocasem; pohyb řídí site.js (Web Animations, jen transform a opacity). */
.grid-streak {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 90px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--grid-streak) 85%, transparent));
    opacity: 0;
    will-change: transform, opacity;
}

.grid-streak::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--grid-streak);
    box-shadow: 0 0 8px 2px color-mix(in srgb, var(--grid-streak) 75%, transparent), 0 0 18px 4px color-mix(in srgb, var(--grid-streak) 30%, transparent);
}

.grid-streak.is-h {
    width: 90px;
    height: 1px;
    background: linear-gradient(to right, transparent, color-mix(in srgb, var(--grid-streak) 85%, transparent));
}

.grid-streak.is-h::after {
    left: auto;
    right: -2px;
    bottom: auto;
    top: 50%;
    margin: -2.5px 0 0;
}

/* Na telefonu jen když je v Efektech zapnutá „Mřížka na mobilu“. */
@media (max-width: 640px) {
    html:not(.fxm-grid) .fx-grid-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .grid-streak { display: none; }
}

/* ---------- HTML obsah z administrace (např. zkopírovaný z WordPressu) ---------- */
.html-content {
    overflow-wrap: anywhere;
}

.html-content > :first-child { margin-top: 0; }
.html-content > :last-child { margin-bottom: 0; }

.html-content :is(h2, h3, h4, h5, h6) {
    margin: 1.6em 0 .5em;
    scroll-margin-top: var(--anchor-offset, 130px);
}

.html-content h2 { font-size: calc(2.4rem * var(--h-scale)); }
.html-content h3 { font-size: calc(1.9rem * var(--h-scale)); color: var(--c-gold); }
.html-content h4 { font-size: calc(1.5rem * var(--h-scale)); }
.html-content h5 { font-size: calc(1.25rem * var(--h-scale)); color: var(--c-gold-muted); }
.html-content h6 { font-size: calc(1.05rem * var(--h-scale)); color: var(--c-gold-muted); letter-spacing: .1em; }

.html-content :is(ul, ol) {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.html-content li { margin: .25em 0; }
.html-content li::marker { color: var(--c-gold); }
/* Když má seznam nebo bod vlastní barvu (style="color: …" nebo třída z WordPressu), číslo ji převezme. */
.html-content :is(ol, ul)[style*="color"] > li::marker,
.html-content li[style*="color"]::marker,
.html-content [class*="-color"] li::marker { color: inherit; }

.html-content a { text-decoration: underline; }

.html-content strong, .html-content b { color: inherit; font-weight: 700; }

.html-content mark {
    padding: 0 .25em;
    background: color-mix(in srgb, var(--c-gold) 25%, transparent);
    color: var(--c-content);
}

.html-content code,
.html-content kbd {
    padding: .1em .4em;
    background: var(--c-panel-2);
    border: 1px solid var(--c-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .88em;
}

.html-content p > code:only-child {
    display: block;
    padding: .8em 1em;
    white-space: normal;
}

.html-content pre {
    margin: 0 0 1em;
    padding: 1em;
    overflow-x: auto;
    background: var(--c-panel-2);
    border: 1px solid var(--c-border);
}

.html-content pre code { padding: 0; border: 0; background: none; }

.html-content blockquote {
    margin: 1.2em 0;
    padding: .6em 1.2em;
    border-left: 3px solid var(--c-red);
    background: var(--c-panel);
    color: var(--c-text-2);
}

.html-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--c-border);
}

.html-content img {
    max-width: 100%;
    height: auto;
}

.html-content figure { margin: 1.2em 0; }
.html-content figcaption { margin-top: 6px; color: var(--c-gold-muted); font-size: .9rem; }

/* Tabulky: tmavé, s jemným pruhováním a zlatou hlavičkou; široké se posouvají do strany. */
.html-content table {
    width: 100%;
    margin: 0 0 1.2em;
    border-collapse: collapse;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.html-content :is(th, td) {
    padding: .6em .9em;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
}

.html-content th {
    background: var(--c-panel-2);
    color: var(--c-gold);
    font-weight: 600;
    letter-spacing: .04em;
}

.html-content tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.html-content tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
    .html-content table {
        display: block;
        overflow-x: auto;
    }
}

.html-content details {
    margin: 0 0 1em;
    padding: .6em 1em;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.html-content summary { cursor: pointer; color: var(--c-gold); font-weight: 600; }

/* Třídy z WordPressu (bloky), ať zkopírovaný obsah vypadá podobně. */
.html-content .has-text-align-center { text-align: center; }
.html-content .has-text-align-right { text-align: right; }
.html-content .has-text-align-left { text-align: left; }
.html-content .has-vivid-red-color,
.html-content .has-vivid-red-color code { color: var(--c-red-text); }
.html-content .has-luminous-vivid-amber-color,
.html-content .has-luminous-vivid-orange-color { color: var(--c-gold); }
.html-content .has-white-color { color: var(--c-content); }
.html-content .has-cyan-bluish-gray-color { color: var(--c-text-2); }
.html-content .has-small-font-size { font-size: .85rem; }
.html-content .has-large-font-size { font-size: 1.3rem; }
.html-content .has-x-large-font-size { font-size: 1.7rem; }
.html-content .wp-block-separator { margin: 2em 0; border: 0; border-top: 1px solid var(--c-border); }

/* ---------- Novinky a žebříček (krok 40) ---------- */
.news-inner.is-wide,
.sec-leaderboard .sec-inner {
    max-width: var(--content);
}

.sec-leaderboard .sec-inner { max-width: 760px; }

.news-layout.has-board {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.news-main {
    flex: 999 1 560px;
    min-width: 0;
}

.post-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--c-gold);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.post-kicker.muted { color: var(--c-gold-muted); }

/* Hlavní novinka: obrázek vlevo, text vpravo; na mobilu pod sebou. */
.post-featured {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.post-featured-img {
    flex: 1 1 280px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.post-featured-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.post-featured:hover .post-featured-img img {
    transform: scale(1.04);
}

.post-featured-body {
    flex: 1 1 320px;
    padding: 28px;
}

.card .post-featured-body h3 {
    margin: 10px 0;
    color: var(--c-content);
    font-size: calc(2.1rem * var(--h-scale));
    line-height: 1.05;
}

.post-featured-body .text-2 {
    margin: 0 0 16px;
}

.post-minis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 20px;
}

.post-mini {
    padding: 22px 24px;
}

.card .post-mini h3 {
    margin: 8px 0 0;
    color: var(--c-content);
    font-size: calc(1.75rem * var(--h-scale));
    line-height: 1.05;
}

.post-card:hover .post-featured-body h3,
.post-mini:hover h3 { color: var(--c-gold); }

.news-all { text-align: right; }

/* Žebříček */
.board {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    width: 100%;
}

.news-layout .board {
    flex: 1 1 340px;
    width: auto;
}

.board-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 6px;
}

.board-title {
    margin: 0;
    font-size: calc(2.1rem * var(--h-scale));
    line-height: 1;
}

.board-metric {
    padding: 0 24px 12px;
    border-bottom: 1px solid var(--c-border);
}

.board-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.board-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
}

.board-row:nth-child(even) { background: var(--c-panel-2); }

.board-rank {
    width: 28px;
    flex: none;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--c-gold-muted);
}

.rank-1 .board-rank { color: var(--c-gold); }
.rank-2 .board-rank { color: #d8d2c4; }
.rank-3 .board-rank { color: #c08a5a; }

.board-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--c-content);
    text-decoration: none;
}

a.board-name:hover { color: var(--c-gold); }

.board-row.is-empty .board-name { color: var(--c-gold-muted); font-weight: 400; }

.board-value {
    color: var(--c-text-2);
    font-variant-numeric: tabular-nums;
}

/* Všechny údaje hráče (body, zombíci, hráči, smrti, level). Široký žebříček = sloupce,
   malý nebo úzký = údaje v řádku pod jménem a vpravo hodnota, podle které se řadí. */
.board { container-type: inline-size; }

.board-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.board-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    font-size: .78rem;
    color: var(--c-text-2);
}

.board-mini b {
    color: var(--c-content);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.board-stat {
    display: none;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--c-text-2);
}

.board-stat.is-sort,
.board-row:not(.board-cols) .board-value {
    color: var(--c-gold);
    font-weight: 700;
}

.board-cols {
    padding-top: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-gold-muted);
}

.board-cols .board-rank {
    font-family: inherit;
    font-size: inherit;
}

.board-cols .board-name { font-weight: inherit; color: inherit; }
.board-cols .board-value { color: inherit; }

@container (min-width: 620px) {
    .board-full .board-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) repeat(5, minmax(56px, 84px));
        gap: 14px;
    }
    .board-full .board-stat { display: block; }
    .board-full .board-mini,
    .board-full .board-value { display: none; }
    .board-full .board-cols .board-stat.is-sort { color: var(--c-gold); }
}

.board-note {
    margin: 0;
    padding: 0 24px 16px;
    color: var(--c-gold-muted);
    font-size: .85rem;
}

.board-more {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--c-border);
}

/* ---------- Obrazovky stavu: Připravujeme, 404, chyba (krok 42) ---------- */
.status-screen {
    min-height: min(78vh, 760px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 56px 0 72px;
    text-align: center;
}

.status-seal {
    width: clamp(120px, 22vw, 180px);
}

.status-seal .seal {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 28px rgba(212, 42, 53, .55));
}

.fx-logo-glow .status-seal .seal {
    animation: logo-glow 5s ease-in-out infinite;
}

.status-code {
    margin-top: -6px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: calc(clamp(6rem, 18vw, 11rem) * var(--h-scale));
    line-height: .8;
    color: var(--c-red);
    text-shadow: 0 0 24px rgba(212, 42, 53, .75), 0 0 70px rgba(212, 42, 53, .45);
}

.fx-flicker .status-code {
    animation: flicker 5s infinite;
}

.status-title {
    margin: 0;
    font-size: var(--h1);
    line-height: .95;
}

.status-soon .status-title {
    font-size: var(--h-display);
}

.status-text {
    max-width: 560px;
    color: var(--c-text-2);
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.status-text p:last-child { margin-bottom: 0; }

.status-hazard {
    width: min(320px, 70%);
    margin: 6px 0;
}

.status-buttons {
    margin-top: 0;
    justify-content: center;
}

.status-foot {
    font-size: .85rem;
}

/* ---------- Efekty: doladění a výkon (krok 43) ---------- */
/* Lesk zlatého slova v názvu (hlavička, patička) – Efekty → Lesk zlatých nadpisů. */
.fx-gold-shine :is(.hdr-name, .ftr-name) .accent {
    background: linear-gradient(100deg, #9a7425 0%, #e6c068 30%, #fff1c2 45%, #e6c068 60%, #9a7425 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gold-shine 7s linear infinite;
}

/* Co není vidět, nehýbe se (šetří procesor a baterii). Třídu přepíná site.js. */
.fx-offscreen,
.fx-offscreen *,
.fx-offscreen *::before,
.fx-offscreen *::after {
    animation-play-state: paused !important;
}

/* Šetřící režim (zapnuté „Šetřit data“ v telefonu nebo slabé zařízení): bez videa, mlhy a světelných bodů. */
.fx-lite .hero-video,
.fx-lite .fog,
.fx-lite .grid-streak {
    display: none !important;
}

.fx-lite .hero-img {
    animation: none;
}

/* ---------- Profil hráče (krok 45) ---------- */
.prof {
    max-width: var(--content);
    margin: 40px auto 56px;
}

.prof-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    padding: 28px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-top: 2px solid var(--c-red);
}

.prof-avatar {
    width: 112px;
    height: 112px;
    flex: none;
    display: grid;
    place-items: center;
    border: 2px solid var(--c-gold);
    background: var(--c-panel-2);
    box-shadow: 0 0 24px color-mix(in srgb, var(--c-red) 35%, transparent);
    overflow: hidden;
}

.prof-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-avatar span { font-family: var(--font-heading); font-size: 3rem; color: var(--c-gold); }

.prof-id { flex: 1 1 300px; min-width: 0; }

.prof-name {
    margin: 2px 0 8px;
    font-family: var(--font-heading);
    font-size: var(--h2);
    line-height: 1;
    overflow-wrap: anywhere;
}

.prof-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.prof-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0 0 12px;
}

.prof-meta dt { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold-muted); }
.prof-meta dd { margin: 2px 0 0; color: var(--c-content); display: flex; align-items: center; gap: 6px; }

.prof-steam { font-size: .9rem; }

.prof-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 20px 0 16px;
    border-bottom: 1px solid var(--c-border);
}

.prof-tabs > * {
    padding: 12px 16px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.prof-tabs .is-active { color: var(--c-gold); border-bottom-color: var(--c-red); }
.prof-tabs .is-soon { color: var(--c-gold-muted); font-weight: 400; }
.prof-tabs .is-soon small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin-left: 4px; }

.prof-note {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 3px solid var(--c-gold);
    background: var(--c-panel);
    color: var(--c-text-2);
    font-size: .9rem;
}

.prof-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 12px;
}

.prof-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
}

.prof-tile strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
    color: var(--c-content);
    font-variant-numeric: tabular-nums;
}

.prof-tile.is-main { border-color: var(--c-gold); background: color-mix(in srgb, var(--c-gold) 6%, var(--c-panel)); }
.prof-tile.is-main strong { color: var(--c-gold); font-size: 2.6rem; }
.prof-pos { font-size: .85rem; color: var(--c-text-2); }
.prof-pos b { color: var(--c-gold); }

.prof-empty {
    padding: 28px;
    background: var(--c-panel);
    border: 1px dashed var(--c-border);
    color: var(--c-text-2);
}

@media (max-width: 560px) {
    .prof { margin-top: 24px; }
    .prof-head { padding: 20px; }
    .prof-avatar { width: 88px; height: 88px; }
    .prof-tabs { flex-wrap: wrap; }
    .prof-tabs > * { white-space: nowrap; padding: 10px 12px; }
    .prof-tabs .is-soon { display: none; }
    .prof-tile { padding: 14px 16px; }
    .prof-tile strong { font-size: 1.6rem; }
    .prof-tile.is-main strong { font-size: 2rem; }
}

/* ---------- Profil: Účet a měna (krok 46) ---------- */
.prof-panel[hidden] { display: none; }
.prof-acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px; align-items: start; }
.prof-acc-main, .prof-acc-side { display: grid; gap: 16px; min-width: 0; }
.prof-balance strong { font-size: 3rem; }
.prof-box { padding: 20px 22px; background: var(--c-panel); border: 1px solid var(--c-border); }
.prof-h2 { margin: 0 0 12px; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; color: var(--c-gold); }
.prof-small { font-size: .85rem; color: var(--c-text-2); margin: 10px 0 0; display: inline-block; }
a.prof-small { color: var(--c-gold); }
.prof-rates { display: grid; gap: 8px; margin: 0; }
.prof-rates > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.prof-rates dt { color: var(--c-text-2); }
.prof-rates dd { margin: 0; text-align: right; color: var(--c-content); font-variant-numeric: tabular-nums; }
.prof-events { list-style: none; margin: 0; padding: 0; display: grid; }
.prof-events li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.prof-events li:last-child { border-bottom: 0; }
.prof-ev-time { font-size: .82rem; color: var(--c-gold-muted); font-variant-numeric: tabular-nums; }
.prof-ev-what { display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.prof-ev-what strong { color: var(--c-content); font-weight: 600; }
.prof-ev-detail { font-size: .85rem; color: var(--c-text-2); overflow-wrap: anywhere; }
.prof-ev-delta { font-weight: 700; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.prof-ev-delta.is-minus { color: var(--c-red-text); }

@media (max-width: 860px) {
    .prof-acc { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .prof-events li { grid-template-columns: minmax(0, 1fr) auto; }
    .prof-ev-time { grid-column: 1 / -1; }
}

/* ---------- Profil: Statistiky (krok 47) ---------- */
.prof-stats { margin-top: 16px; }
.prof-bars { list-style: none; margin: 0; padding: 0; height: 160px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; }
.prof-bars li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.prof-bar { width: 100%; max-width: 28px; height: var(--h); min-height: 2px; background: linear-gradient(180deg, var(--c-gold), var(--c-red)); }
.prof-bar[style*="--h: 0%"] { background: var(--c-border); }
.prof-bar-day { font-size: .72rem; color: var(--c-gold-muted); font-variant-numeric: tabular-nums; }
.prof-counts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prof-counts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.prof-count-name { color: var(--c-content); overflow-wrap: anywhere; }
.prof-count-num { color: var(--c-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.prof-count-bar { grid-column: 1 / -1; height: 4px; background: var(--c-border); position: relative; }
.prof-count-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c-red); }

/* ---------- Odznaky (krok 48) ---------- */
.badge-icon {
    width: 56px; height: 56px; flex: none;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    border: 2px solid var(--badge-color);
    background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--badge-color) 28%, var(--c-panel-2)), var(--c-panel-2) 70%);
    box-shadow: 0 0 18px color-mix(in srgb, var(--badge-color) 30%, transparent);
    overflow: hidden;
}
.badge-icon svg { width: 60%; height: 60%; fill: none; stroke: var(--badge-color); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge-icon img { width: 100%; height: 100%; object-fit: cover; }
.badge-icon.is-locked { filter: grayscale(1); opacity: .35; box-shadow: none; }
.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.badge-card { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--c-panel); border: 1px solid var(--c-border); }
.badge-card.is-earned { border-color: color-mix(in srgb, var(--c-gold) 45%, var(--c-border)); }
.badge-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.badge-text strong { color: var(--c-content); }
.badge-text > span { font-size: .85rem; color: var(--c-text-2); }
.badge-card.is-locked .badge-text strong { color: var(--c-text-2); }
.badge-state { color: var(--c-gold-muted) !important; font-variant-numeric: tabular-nums; }
.badge-card.is-earned .badge-state { color: var(--c-gold) !important; font-weight: 600; }
.badge-note { font-style: italic; }
.badge-progress { display: block; height: 4px; background: var(--c-border); }
.badge-progress > span { display: block; height: 100%; width: var(--p); background: var(--c-red); }
.prof-badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; text-decoration: none; }
.prof-badge-strip .badge-icon { width: 44px; height: 44px; }
.prof-tab-count { font-size: .72rem; color: var(--c-gold-muted); margin-left: 4px; }

/* ---------- Inflace (graf, účet hráče, sekce) ---------- */
.infl-chart { position: relative; margin: 8px 0 0; }
.infl-chart svg { display: block; width: 100%; height: auto; background: var(--c-panel-2); border: 1px solid var(--c-border); }
.infl-base { stroke: var(--c-gold-muted); stroke-width: 1; stroke-dasharray: 5 5; opacity: .6; }
.infl-line { fill: none; stroke: var(--c-gold); stroke-width: 2.5; stroke-linejoin: round; }
.infl-shock { stroke: var(--c-bg); stroke-width: 1.5; }
.infl-shock.is-up { fill: var(--c-infl-up, var(--c-red)); }
.infl-shock.is-down { fill: var(--c-infl-down, var(--c-gold-light)); }
.infl-scale { position: absolute; top: 4px; right: 6px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--c-gold-muted); pointer-events: none; text-align: right; }
.infl-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .75rem; color: var(--c-gold-muted); }
.infl-empty { margin: 8px 0 0; }
.infl-now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; }
.infl-index { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.infl-state { font-size: .85rem; color: var(--c-gold-muted); }
.infl-state.is-on { color: var(--c-red-text); }
.infl-up { color: var(--c-red-text); }
.infl-down { color: var(--c-gold-light); }
.infl-shock-note { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--c-red); background: var(--c-panel-2); font-size: .9rem; }
.infl-shock-note.is-down { border-left-color: var(--c-gold); }
.infl-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.infl-sec-box { padding: 20px 22px; background: var(--c-panel); border: 1px solid var(--c-border); }
.infl-sec .prof-rates { margin-top: 12px; }
@media (max-width: 760px) { .infl-sec { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Síň slávy ---------- */
.fame-seasons { display: grid; gap: 20px; }
.fame-season { padding: 20px 22px; background: var(--c-panel); border: 1px solid var(--c-border); border-top: 2px solid var(--c-gold); }
.fame-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.fame-head h3 { margin: 0; color: var(--c-gold); font-family: var(--font-heading); }
.fame-note { margin: 0 0 12px; color: var(--c-text-2); }
.fame-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 20px; }
.fame-board h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-muted); }
.fame-board ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.fame-board li { display: flex; justify-content: space-between; gap: 8px; }
.fame-board li:first-child .fame-name { color: var(--c-gold-light); font-weight: 600; }
.fame-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fame-board b { color: var(--c-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Živý stav serveru (krok 51) */
.st-offline { color: var(--c-st-offline, var(--c-red-text)); }
[data-live="bloodmoon"].accent { color: var(--c-bm, var(--c-red)); }
.is-bm-now { animation: bm-glow 1.4s ease-in-out infinite alternate; }
@keyframes bm-glow { from { text-shadow: 0 0 0 transparent; } to { text-shadow: 0 0 12px var(--c-bm, var(--c-red)); } }
@media (prefers-reduced-motion: reduce) { .is-bm-now { animation: none; } }
.srv-live-extra { flex-basis: 100%; font-size: .82rem; }
.srv-live-extra:empty { display: none; }

/* Sekce Počasí (krok 51e) */
.wx-pub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 18px; }
.wx-pub-season { font-family: var(--font-heading); text-transform: var(--h-case); color: var(--c-gold); font-size: 1.15rem; letter-spacing: .04em; }
.wx-pub-bm { color: var(--c-bm, var(--c-red)); font-weight: 700; }
.wx-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.wx-pub-card { background: var(--c-panel); border: 1px solid var(--c-border); border-top: 2px solid var(--c-gold-muted); padding: 16px; display: grid; gap: 4px; }
.wx-pub-card.has-event { border-top-color: var(--c-red); }
.wx-pub-icon { width: 30px; height: 30px; fill: none; stroke: var(--c-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wx-pub-card.has-event .wx-pub-icon { stroke: var(--c-red); }
.wx-pub-biome { margin: 4px 0 0; font-size: 1rem; }
.wx-pub-temp { font-family: var(--font-heading); font-size: 2rem; line-height: 1.1; }
.wx-pub-temp small { font-size: .9rem; color: var(--c-gold-muted); font-family: var(--font-body); }
.wx-pub-event { color: var(--c-red-text); font-weight: 600; font-size: .92rem; }
.wx-pub-event.is-storm { color: var(--c-warn); }
.wx-pub-calm { font-size: .9rem; }
.wx-pub-forecast { margin-top: 22px; }
.wx-pub-list { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 520px) { .wx-pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wx-pub-temp { font-size: 1.6rem; } }

/* Návod: počasí a přežití (51e) */
.wx-guide .eco-h3 { margin-top: 26px; }
.wx-guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wx-guide-card { align-content: start; }
.wx-guide-card p { margin: 4px 0 0; color: var(--c-text); line-height: 1.55; }
.wx-guide-temp { color: var(--c-gold); font-weight: 600; }
.wx-guide-reward { margin-top: 8px; color: var(--c-gold); font-size: .92rem; }
.wx-guide-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.6; }
.wx-guide-list li::marker { color: var(--c-red); }

/* Můj účet → Discord (52) */
.acc-list { margin: 12px 0 20px; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.6; }
.acc-list li::marker { color: var(--c-red); }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.acc-note { margin-top: 16px; font-size: .9rem; }
.prof-discord { color: var(--c-text); }

/* Výhody VIP (52e): zvýrazněný profil a výhody v účtu */
.prof-head.is-vip { position: relative; border: 1px solid var(--vip-color, var(--c-gold)); border-top: 3px solid var(--vip-color, var(--c-gold)); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 24px -8px var(--vip-color, var(--c-gold)); }
.prof-vip { position: absolute; top: -1px; right: 18px; padding: 3px 10px; background: var(--c-panel); color: var(--vip-color, var(--c-gold)); border: 1px solid var(--vip-color, var(--c-gold)); border-top: 0; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.acc-h2 { margin: 24px 0 6px; font-size: 1.1rem; }

/* Ban list (53) */
.ban-srv { margin: 18px 0 8px; font-size: 1.05rem; color: var(--c-gold); }
.ban-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ban-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 6px 16px; align-items: center; padding: 12px 16px; background: var(--c-panel); border: 1px solid var(--c-border); border-left: 3px solid var(--c-red); }
.ban-who { font-weight: 600; overflow-wrap: anywhere; }
.ban-who a { color: inherit; }
.ban-who a:hover { color: var(--c-gold); }
.ban-why { color: var(--c-text-2); overflow-wrap: anywhere; }
.ban-until { white-space: nowrap; font-size: .9rem; color: var(--c-text-2); }
.ban-until.is-perm { color: var(--c-red-text); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 640px) {
  .ban-item { grid-template-columns: 1fr auto; }
  .ban-why { grid-column: 1 / -1; grid-row: 2; }
}

/* Sklad v Můj účet (52g) */
.acc-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 12px 0 24px; }
.acc-kit { padding: 16px 18px; background: var(--c-panel); border: 1px solid var(--c-border); border-top: 2px solid var(--c-border); }
.acc-kit.is-ready { border-top-color: var(--c-gold); }
.acc-kit h3 { margin: 0 0 6px; color: var(--c-gold); font-size: 1.05rem; }
.acc-kit-items { margin: 8px 0 12px; padding-left: 18px; color: var(--c-content); }
.acc-kit-items li { margin: 2px 0; }
.acc-kit-left { font-weight: 600; color: var(--c-gold-light); }

/* Původy (YggRaces) */
.origin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 12px 0 24px; }
.origin-card { padding: 16px 18px; background: var(--c-panel); border: 1px solid var(--c-border); border-top: 3px solid var(--race, var(--c-gold)); }
.origin-card h2, .origin-card h3 { margin: 0 0 6px; color: var(--race, var(--c-gold)); }
.origin-card.is-current { margin: 12px 0 20px; }
.origin-rank { font-weight: 600; color: var(--c-gold-light); margin: 0 0 8px; }
.origin-lore { font-style: italic; color: var(--c-text-2); margin: 0 0 8px; }
.origin-desc { color: var(--c-content); margin: 0 0 12px; line-height: 1.5; }
.prof-origin { margin: 6px 0 0; }
.prof-origin-card { margin: 16px 0; }
.race-chip { display: inline-block; padding: 1px 8px; border: 1px solid var(--race); color: var(--race); font-size: .8rem; font-weight: 600; white-space: nowrap; }

/* Žebříček: původy */
.board-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px auto 12px; max-width: var(--board-max, none); }
.board-filter a { padding: 4px 10px; border: 1px solid var(--race, var(--c-border)); color: var(--race, var(--c-text-2)); font-size: .85rem; text-decoration: none; }
.board-filter a:hover { border-color: var(--c-gold); }
.board-filter a.is-active { background: var(--c-panel); border-color: var(--c-gold); color: var(--c-gold-light); font-weight: 600; }
.board-race { align-self: flex-start; font-size: .72rem; padding: 0 6px; }
.board-compact .board-race { display: none; }
.origin-cmds { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 6px; }
.origin-cmds li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.origin-cmds code { color: var(--c-gold-light); }
.origin-cmds span { color: var(--c-content); }

/* Online mapa (52h) */
.map-page { padding-top: 24px; padding-bottom: 48px; }
.map-intro { margin: 0 0 12px; }
.map-gate { padding: 32px 20px; background: var(--c-panel); border: 1px solid var(--c-border); text-align: center; display: grid; gap: 16px; justify-items: center; }
.map-wrap { position: relative; }
.map-canvas, .map-canvas.leaflet-container { height: min(72vh, 760px); min-height: 360px; background: #0b0706; border: 1px solid var(--c-border); }
.map-canvas .leaflet-tile { image-rendering: pixelated; }
.map-canvas .leaflet-control-zoom a { background: var(--c-panel); color: var(--c-gold-light); border-color: var(--c-border); }
.map-canvas .leaflet-popup-content-wrapper, .map-canvas .leaflet-popup-tip { background: var(--c-panel); color: var(--c-content); border: 1px solid var(--c-border); }
.map-canvas .leaflet-tooltip { background: var(--c-panel); color: var(--c-content); border: 1px solid var(--c-gold-muted); box-shadow: none; }
.map-canvas .leaflet-tooltip.map-label { background: transparent; border: 0; color: var(--c-gold-light); font-weight: 600; text-shadow: 0 0 3px #000; }
.map-status { position: absolute; left: 8px; bottom: 8px; z-index: 500; padding: 3px 8px; background: rgba(15, 8, 7, .85); border: 1px solid var(--c-border); font-size: .8rem; color: var(--c-content); }
.map-bm { position: absolute; right: 8px; top: 8px; z-index: 500; padding: 4px 10px; background: rgba(60, 6, 10, .9); border: 1px solid var(--c-red, #d42a35); color: var(--c-content); font-weight: 600; font-size: .85rem; }
.map-pin span { display: block; width: 12px; height: 12px; margin: 2px; border-radius: 50%; border: 2px solid #0b0706; background: var(--c-gold); box-shadow: 0 0 0 1px var(--c-gold-muted); }
.map-pin.is-me span { width: 14px; height: 14px; margin: 1px; background: var(--c-gold-light); box-shadow: 0 0 0 2px var(--c-gold), 0 0 10px var(--c-gold); }
.map-pin.is-party span { background: #e6c068; }
.map-pin.is-bed span { background: #b08a5a; border-radius: 2px; }
.map-pin.is-horde span { background: #d42a35; box-shadow: 0 0 8px #d42a35; }
.map-pin.is-horde.is-medium span { transform: scale(1.3); }
.map-pin.is-horde.is-large span { transform: scale(1.7); }
.map-pin.is-horde.is-active span { box-shadow: 0 0 0 3px rgba(212, 166, 58, .8), 0 0 10px #d42a35; }
.map-pin.is-other span { background: #8a8a8a; }
.map-arrow span { display: block; width: 22px; height: 22px; background: var(--c-gold); clip-path: polygon(50% 0, 88% 92%, 50% 70%, 12% 92%); filter: drop-shadow(0 0 2px #000); }
.map-arrow.is-me span { background: var(--c-gold-light); filter: drop-shadow(0 0 4px var(--c-gold)); }
.map-arrow.is-party span { background: #e6c068; width: 18px; height: 18px; margin: 2px; }
.map-arrow.is-other span { background: #8a8a8a; width: 18px; height: 18px; margin: 2px; }
.map-pin.is-dead span { display: block; width: 18px; height: 18px; line-height: 18px; text-align: center; font-weight: 700; color: #8a8a8a; text-shadow: 0 0 3px #000; }
.map-pin.is-bandits span { background: #b08a5a; box-shadow: 0 0 8px #d42a35; }
.map-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; padding: 0; font-size: .85rem; color: var(--c-content); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold); }
.map-dot.is-me { background: var(--c-gold-light); box-shadow: 0 0 6px var(--c-gold); }
.map-dot.is-party { background: #e6c068; }
.map-dot.is-bed { background: #b08a5a; border-radius: 2px; }
.map-dot.is-horde { background: #d42a35; }
.map-dot.is-other { background: #8a8a8a; }
.map-sq.is-claim { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--c-gold); background: rgba(212, 166, 58, .15); }
@media (max-width: 560px) { .map-canvas, .map-canvas.leaflet-container { height: 64vh; } }

/* Krok 54: větší dotykové plochy na telefonu a tabletu */
@media (pointer: coarse) {
    .more-link, .prof-steam, .pager a, .pagination a, .news-pager a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* Krok 56: zvýrazněný červený text v obsahu (pravidla apod.) – světlejší odstín kvůli čitelnosti. */
.html-content [style*="212, 42, 53"], .html-content [style*="d42a35" i] { color: var(--c-red-text) !important; }

/* Krok 56: odkaz „Přeskočit na obsah“ – objeví se jen při ovládání klávesnicí. */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-panel); color: var(--c-gold-light); border: 1px solid var(--c-gold); text-decoration: none; }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* Uspořádání: odkazy na další části účtu v záložkách vlastního profilu */
.prof-tabs .prof-tab-ext { color: var(--c-text-2); }
.prof-tabs a:not(.prof-tab-ext) + .prof-tab-ext { margin-left: auto; }
@media (max-width: 760px) { .prof-tabs a:not(.prof-tab-ext) + .prof-tab-ext { margin-left: 0; } }

/* Anglický web: u pravidel a zásad OÚ platí česká verze */
.lang-binding {
    max-width: 1100px;
    margin: 16px auto 0;
    padding: 10px 16px;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    font-size: .9rem;
}
.lang-binding a { color: var(--c-gold); text-decoration: underline; }
