/* ==========================================================================
   Web ve stylu obchodu store.mcatlas.cz (29. 10. 2026)
   Načítá se v header.php jako poslední. Světlé nebe, bílé karty, písma
   Fredoka + Nunito, zelená tlačítka „do bloku“ se stínem dole.
   Původní tmavý vzhled je v style.css – tady se jen přebarvuje.
   ========================================================================== */
:root {
    --st-bg: #e8f6ff;
    --st-ink: #1f2a37;
    --st-mut: #5b6b7c;
    --st-line: #d6e6f2;
    --st-acc: #5cb83c;
    --st-acc-sh: #3f8a27;
    --st-acc-h: #52a835;
    --st-blue: #2f7fd1;
    --st-coral: #ff6b57;
    --st-sun: #ffd23f;
    --st-shadow: 0 8px 24px rgba(31, 42, 55, .08);
    --st-shadow2: 0 14px 34px rgba(31, 42, 55, .14);
    --st-card: #fff;
    --st-soft: #f1f7fc;
    --st-act: #fff4c2;
    --st-act-line: #f3d873;
    --st-pata: #1f2a37;
    --st-nebe-bg: radial-gradient(700px 260px at 88% -20%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 70%), linear-gradient(160deg, #2a78cc 0%, #3d97e4 55%, #58b2f2 100%);
    --st-f-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
    --st-f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* původní proměnné tmavého webu → světlé hodnoty obchodu */
    --text: var(--st-ink);
    --text-primary: var(--st-ink);
    --text-secondary: var(--st-mut);
    --text-muted: #7a8a9c;
    --bg-dark: var(--st-soft);
    --bg-darker: #e8f6ff;
    --bg-card: var(--st-card);
    --bg-glass: var(--st-card);
    --glass-bg: var(--st-card);
    --glass-border: var(--st-line);
    --primary: #2f7fd1;
    --primary-light: #3d97e4;
    --primary-dark: #1f63ab;
    --secondary: #5cb83c;
    --accent: #ff6b57;
    --shadow-glow: 0 4px 0 rgba(15, 50, 90, .18);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    color-scheme: light;
}

html body {
    background: var(--st-bg) !important;
    color: var(--st-ink);
    font-family: var(--st-f-body) !important;
    font-size: 16px;
}
html body h1, html body h2, html body h3, html body h4 { font-family: var(--st-f-head); font-weight: 600; letter-spacing: 0; }
html body a { color: var(--st-blue); }

/* žádné tmavé fotky v pozadí – nahoře modré nebe jako v obchodě */
.bg-slider { display: none !important; }
html body::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; width: auto !important;
    height: var(--st-nebe, 330px) !important;
    background: var(--st-nebe-bg) !important;
    border-radius: 0 0 28px 28px;
    z-index: 0 !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none;
}

html body.st-404 { --st-nebe: 0px; }
.container { position: relative; z-index: 1; padding-top: 118px !important; }

/* ---------- horní lišta ---------- */
html body nav#navbar {
    background: var(--st-card) !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(31, 42, 55, .14) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
html body nav#navbar.scrolled { box-shadow: 0 10px 30px rgba(31, 42, 55, .18) !important; }
nav#navbar .logo-text {
    font-family: var(--st-f-head);
    font-weight: 700;
    background: none !important;
    -webkit-text-fill-color: var(--st-ink) !important;
    color: var(--st-ink) !important;
    animation: none !important;
    letter-spacing: 0;
}
html body nav#navbar a, html body nav#navbar .nav-drop-toggle {
    color: var(--st-ink) !important;
    font-family: var(--st-f-body) !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
}
html body nav#navbar .nav-links > div > a::before, html body nav#navbar .nav-drop-toggle::before { display: none !important; }
html body nav#navbar .nav-links > div > a i, html body nav#navbar .nav-drop-toggle i { color: var(--st-mut); }
html body nav#navbar .nav-links > div > a:hover, html body nav#navbar .nav-dropdown > .nav-drop-toggle:hover, html body nav#navbar .nav-dropdown.open > .nav-drop-toggle { background: var(--st-soft) !important; transform: none !important; }
html body nav#navbar .nav-links > div > a.active {
    background: var(--st-act) !important;
    color: var(--st-ink) !important;
    box-shadow: inset 0 0 0 2px var(--st-act-line) !important;
}
html body nav#navbar .nav-links > div > a.active i { color: #c48a00; }
html body nav#navbar a.shop-link {
    background: var(--st-acc) !important;
    color: #fff !important;
    box-shadow: 0 4px 0 var(--st-acc-sh) !important;
    animation: none !important;
    margin-left: 4px;
}
html body nav#navbar a.shop-link i { color: #fff !important; }
html body nav#navbar a.shop-link:hover { background: var(--st-acc-h) !important; transform: translateY(-1px) !important; }
html body nav#navbar a.shop-link:active { transform: translateY(3px) !important; box-shadow: 0 1px 0 var(--st-acc-sh) !important; }
html body .nav-drop-menu { background: var(--st-card) !important; border: 0 !important; box-shadow: var(--st-shadow2) !important; backdrop-filter: none !important; }
html body .nav-drop-menu a:hover { background: var(--st-soft) !important; }
html body .nav-toggle span { background: var(--st-ink) !important; }
@media (max-width: 999.98px) {
    html body .nav-links { background: var(--st-card) !important; border: 0 !important; box-shadow: var(--st-shadow2) !important; backdrop-filter: none !important; }
    html body .nav-drop-menu { background: var(--st-soft) !important; box-shadow: none !important; }
}

/* ---------- nadpisy stránek na modrém nebi ---------- */
html body .container > .section-header:first-child h1,
html body .container > .section-header:first-child h2,
html body .container > .section-header:first-of-type h1 { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; text-shadow: 0 3px 0 rgba(15, 50, 90, .3); }
html body .container > .section-header:first-child h1 i,
html body .container > .section-header:first-child h2 i,
html body .container > .section-header:first-of-type h1 i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html body .container > .section-header:first-child p,
html body .container > .section-header:first-of-type p { color: #e6f3ff !important; font-weight: 600; }
html body .section-header h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; }
html body .section-header p { color: var(--st-mut); }

/* ---------- úvod ---------- */
html body .hero { padding: 40px 0 70px; }
html body .hero h1 {
    font-family: var(--st-f-head);
    font-weight: 700;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: 0 4px 0 rgba(15, 50, 90, .35);
    animation: none !important;
    letter-spacing: 0;
}
html body .hero > p { color: #e6f3ff !important; font-weight: 600; }
html body .hero-badge { background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .35) !important; color: #fff !important; }
html body .hero-badge::before { display: none; }
html body .status-dot { background: #7dff6a !important; box-shadow: none !important; }
html body .ip-box {
    background: var(--st-card) !important;
    border: 0 !important;
    border-radius: 14px !important;
    font-family: var(--st-f-head) !important;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--st-ink) !important;
    box-shadow: 0 5px 0 rgba(15, 50, 90, .25) !important;
    backdrop-filter: none !important;
}
html body .ip-box::before { display: none; }
html body .ip-box i { color: var(--st-mut) !important; }
html body .ip-box:hover { transform: translateY(-2px) !important; }
html body .ip-box.copied { box-shadow: 0 5px 0 var(--st-acc) !important; }

/* ---------- karty ---------- */
html body .glass-card, html body .about-card, html body .stat-card, html body .rule-card, html body .news-card,
html body .legal-card, html body .right-card, html body .wikihub-card, html body .vote-site, html body .punishment-item,
html body .member-card-inner, html body .join-team-card, html body .empty-card, html body .search-box, html body .special-rule,
html body .legal-section, html body .browser-btn {
    background: var(--st-card) !important;
    border: 0 !important;
    box-shadow: var(--st-shadow) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--st-ink);
}
html body .glass-card::before { display: none; }
html body .glass-card:hover, html body .about-card:hover, html body .stat-card:hover, html body .news-card:hover, html body .wikihub-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--st-shadow2) !important;
}
html body .about-card { border-bottom: 6px solid var(--tc, #5cb83c) !important; border-radius: 18px !important; }
html body .about-card::after { display: none; }
html body .about-card:nth-child(1) { --tc: #2f7fd1; }
html body .about-card:nth-child(2) { --tc: #f59e0b; }
html body .about-card:nth-child(3) { --tc: #ff6b57; }
html body .about-card:nth-child(4) { --tc: #5cb83c; }
html body .about-card i { background: var(--tc, #5cb83c) !important; box-shadow: 0 4px 0 rgba(0, 0, 0, .18) !important; border-radius: 14px !important; }
html body .about-card h3 { font-size: 1.3rem; }
html body .feature-tag { background: var(--st-card) !important; border: 2px solid var(--st-line) !important; color: var(--st-ink) !important; font-weight: 800; }
html body .feature-tag i { color: var(--st-acc); }
html body .discord-card { box-shadow: var(--st-shadow2) !important; border-radius: 22px !important; }
html body .discord-overlay h3, html body .discord-overlay p { color: #fff !important; }
html body .page-gallery img { border-radius: 16px !important; box-shadow: var(--st-shadow) !important; border: 0 !important; }

/* ---------- tlačítka a pole ---------- */
html body .btn-primary, html body .apply-btn, html body .tab-btn.active, html body .wikihub-go {
    background: var(--st-acc) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 0 var(--st-acc-sh) !important;
    font-weight: 800;
}
html body .btn-primary::before { display: none; }
html body .btn-primary:hover { background: var(--st-acc-h) !important; transform: translateY(-1px) !important; }
html body .btn-primary:active { transform: translateY(3px) !important; box-shadow: 0 1px 0 var(--st-acc-sh) !important; }
html body .btn-discord, html body .mc-btn--discord { background: #5865f2 !important; color: #fff !important; box-shadow: 0 4px 0 #3c45b8 !important; border: 0 !important; }
html body .btn-outline { background: var(--st-card) !important; color: var(--st-ink) !important; border: 2px solid var(--st-line) !important; box-shadow: 0 4px 0 #c7d7e4 !important; }
html body .tab-btn { background: var(--st-card) !important; color: var(--st-ink) !important; border: 2px solid var(--st-line) !important; font-weight: 800; }
html body .tab-btn.active { border-color: transparent !important; }
html body .nick-input, html body input[type="text"], html body input[type="search"], html body select, html body textarea {
    background: var(--st-card) !important;
    border: 2px solid var(--st-line) !important;
    color: var(--st-ink) !important;
    box-shadow: none !important;
}
html body .nick-input:focus, html body input:focus { border-color: var(--st-blue) !important; }
html body .search-box { border-radius: 16px !important; }
html body .search-box input { border: 0 !important; }

/* ---------- patička ---------- */
html body footer {
    background: var(--st-pata) !important;
    border: 0 !important;
    border-radius: 28px 28px 0 0;
    color: #c9d6e2 !important;
    position: relative;
    z-index: 1;
}
html body footer .footer-logo { font-family: var(--st-f-head); font-weight: 700; background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important; }
html body footer a, html body footer .footer-link { color: #c9d6e2 !important; }
html body footer a:hover { color: #fff !important; }
html body footer .footer-divider { background: rgba(255, 255, 255, .12) !important; }
html body footer .footer-disclaimer, html body footer .footer-copy { color: #9fb0c2 !important; }

/* ---------- oznámení ---------- */
html body .toast { background: var(--st-card) !important; color: var(--st-ink) !important; border: 0 !important; box-shadow: var(--st-shadow2) !important; }

/* vybraný text a posuvník */
::selection { background: #fff4c2; color: var(--st-ink); }

/* jiné <nav> než horní lišta (přepínač pravidel, drobečky wiki) – style.css je dělal plovoucí jako lištu */
html nav:where(:not(#navbar)) {
    position: static; top: auto; left: auto; transform: none; width: auto; max-width: none; z-index: auto;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; border-radius: 0; padding: 0; box-shadow: none;
}
html body.st-pravidla { --st-nebe: 390px; }
html body .pravidla-prepinac a { background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .4) !important; color: #fff !important; font-weight: 800; }
html body .pravidla-prepinac a:hover { background: rgba(255, 255, 255, .26) !important; }
html body .pravidla-prepinac a.active { background: var(--st-card) !important; color: var(--st-ink) !important; border-color: #fff !important; box-shadow: 0 4px 0 rgba(15, 50, 90, .25) !important; }

/* ---------- tým ---------- */
html body.st-nas-tym { --st-nebe: 560px; }
html body .team-hero h1 { color: #fff !important; font-weight: 700; letter-spacing: 0; text-shadow: 0 4px 0 rgba(15, 50, 90, .3); }
html body .team-hero .gradient-text { color: var(--st-sun) !important; -webkit-text-fill-color: var(--st-sun) !important; background: none !important; }
html body .team-hero > p, html body .team-hero-content > p { color: #e6f3ff !important; font-weight: 600; }
html body .team-badge-glow { background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .4) !important; color: #fff !important; box-shadow: none !important; animation: none !important; }
html body .team-stat-number { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; font-family: var(--st-f-head); font-weight: 600; }
html body .team-stat-label { color: #d6ebff !important; }
html body .member-card-inner { border-radius: 22px !important; border-bottom: 6px solid var(--st-line) !important; }
html body .member-card.owner .member-card-inner, html body .member-card[data-rank="owner"] .member-card-inner { border-bottom-color: #f43f5e !important; }
html body .member-name { color: var(--st-ink) !important; font-family: var(--st-f-head); font-weight: 600; }
html body .member-rank-badge { color: #fff !important; box-shadow: none !important; }
html body .skill-tag { background: var(--st-soft) !important; border: 1px solid var(--st-line) !important; color: var(--st-mut) !important; }
html body .social-btn { background: var(--st-soft) !important; border: 0 !important; color: var(--st-ink) !important; }
html body .rank-aura, html body .owner-aura, html body .helper-aura, html body .card-shine { display: none !important; }
html body .team-rank-title h2, html body .team-rank-title .rank-title-text { text-shadow: none !important; }
html body .skin-shadow { opacity: .35; }
html body .empty-content h3, html body .join-team-content h2 { color: var(--st-ink) !important; }

/* ---------- statistiky ---------- */
html body.st-statistiky { --st-nebe: 300px; }
html body .staty-nadpis h1 { color: #fff !important; font-weight: 600; text-shadow: 0 3px 0 rgba(15, 50, 90, .3); }
html body .staty-nadpis h1 i { color: #fff !important; }
html body .staty-nadpis p { color: #e6f3ff !important; font-weight: 600; }
html body .staty-servery { background: var(--st-card) !important; border: 0 !important; box-shadow: 0 6px 18px rgba(15, 50, 90, .18) !important; }
html body .staty-server.active { background: var(--st-acc) !important; color: #fff !important; box-shadow: 0 3px 0 var(--st-acc-sh) !important; }
html body .staty-skupina, html body .staty-top, html body .staty-list > *, html body .stats-grid > * { backdrop-filter: none !important; }
html body .staty-skupina { background: var(--st-card) !important; border: 0 !important; box-shadow: var(--st-shadow) !important; }
html body .staty-chip { background: var(--st-soft) !important; border: 1px solid var(--st-line) !important; color: var(--st-ink) !important; }
html body .staty-chip.active { background: var(--st-acc) !important; border-color: var(--st-acc) !important; color: #fff !important; }

/* ---------- právní stránky (GDPR, cookies, podmínky) ---------- */
html body.st-gdpr, html body.st-cookies, html body.st-obchodni-podminky { --st-nebe: 480px; }
html body .legal-header .legal-title { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; text-shadow: 0 3px 0 rgba(15, 50, 90, .3); }
html body .legal-header .legal-subtitle { color: #e6f3ff !important; font-weight: 600; }
html body .legal-header .legal-meta, html body .legal-header .legal-meta span { color: #d6ebff !important; }
html body .legal-header .legal-meta i { color: #fff !important; }
html body .legal-header .legal-icon { background: var(--st-card) !important; color: var(--st-blue) !important; box-shadow: 0 4px 0 rgba(15, 50, 90, .25) !important; border: 0 !important; }
html body .legal-header .legal-icon i { color: var(--st-blue) !important; }
html body .legal-intro, html body .legal-notice, html body .legal-warning, html body .legal-contact { background: var(--st-card) !important; border-radius: 16px; box-shadow: var(--st-shadow) !important; color: var(--st-ink) !important; }
html body .legal-section { padding: 26px !important; border-radius: 18px !important; margin-bottom: 18px; }
html body .legal-card, html body .right-card { background: var(--st-soft) !important; box-shadow: none !important; border: 1px solid var(--st-line) !important; }
html body .section-num { background: var(--st-acc) !important; color: #fff !important; box-shadow: 0 3px 0 var(--st-acc-sh) !important; }

/* ---------- wiki ---------- */
html body.st-wiki { --st-nebe: 300px; }
html body .wiki-side, html body .wiki-main, html body .wiki-content, html body .wiki-toc { background: var(--st-card) !important; border: 0 !important; box-shadow: var(--st-shadow) !important; backdrop-filter: none !important; }
html body .wnav-sub { border-left-color: var(--st-line) !important; }
html body .wikihub-root { background: var(--st-card) !important; box-shadow: var(--st-shadow2) !important; border: 0 !important; }

/* ---------- tresty ---------- */
html body.st-tresty { --st-nebe: 330px; }

/* ---------- 404 (původně bez stylů) ---------- */
html body .mc-404 { max-width: 640px; margin: 40px auto 0; background: var(--st-card); border-radius: 24px; box-shadow: var(--st-shadow2); padding: 46px 30px; text-align: center; border-bottom: 6px solid var(--st-acc); }
html body .mc-404-bg, html body .mc-404-veil, html body .mc-particles { display: none; }
html body .mc-404-code { font: 700 96px/1 var(--st-f-head); color: var(--st-blue); text-shadow: 0 6px 0 #cfe6fa; margin-bottom: 8px; }
html body .mc-404 h1 { font-size: 2rem; margin: 6px 0 8px; }
html body .mc-404 p { color: var(--st-mut); margin: 0 0 22px; }
html body .mc-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
html body .mc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--st-acc); color: #fff !important; font-weight: 800; box-shadow: 0 4px 0 var(--st-acc-sh); text-decoration: none; }
html body .mc-404-links { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; font-weight: 700; }
html body .mc-404-links a { color: var(--st-blue) !important; }

/* telefony: nebe nižší, ať končí pod nadpisem stránky */
@media (max-width: 700px) {
    html body { --st-nebe: 250px; }
    html body.st-index { --st-nebe: 760px; }
    html body.st-nas-tym { --st-nebe: 440px; }
    html body.st-pravidla { --st-nebe: 360px; }
    html body.st-gdpr, html body.st-cookies, html body.st-obchodni-podminky { --st-nebe: 520px; }
    html body.st-statistiky { --st-nebe: 330px; }
    .container { padding-top: 96px !important; }
}

/* ---------- hlasování (jako hlasovací odkazy v obchodě) ---------- */
html body .vote-site { border-bottom: 6px solid var(--vc, #5cb83c) !important; border-radius: 18px !important; }
html body .vote-site::before { display: none; }
html body .vote-site h4 { color: var(--st-ink) !important; font-family: var(--st-f-head); font-weight: 600; font-size: 1.3rem; }
html body .vote-site p { color: var(--st-mut) !important; opacity: 1; font-weight: 700; }
html body .vote-minecraftlist { --vc: #f7c531; }
html body .vote-minecraftservery { --vc: #2fcf5a; }
html body .vote-czechcraft { --vc: #ff6b57; }
html body .vote-craftlist { --vc: #4fe0d0; }
html body .vote-disabled { opacity: .6; }

/* ---------- drobné opravy čitelnosti ---------- */
html body nav#navbar .logo::before, html body nav#navbar .logo::after { display: none !important; }
html body nav#navbar a.logo, html body nav#navbar a.logo:hover { background: none !important; }
html body .search-box { align-items: center; }
html body .tabs { background: var(--st-card) !important; border: 0 !important; box-shadow: var(--st-shadow) !important; }
html body .tabs .tab-btn { border: 0 !important; background: transparent !important; }
html body .tabs .tab-btn:hover { background: var(--st-soft) !important; }
html body .tabs .tab-btn.active { background: var(--st-acc) !important; }
html body .empty-state i { opacity: 1 !important; color: var(--st-acc) !important; }
html body .empty-state h3 { color: var(--st-ink) !important; }
html body .wikihub-go { padding: 9px 14px; border-radius: 12px !important; font-size: .95rem !important; line-height: 1.2; }
html body .wikihub-go i { color: #fff !important; }
html body .staty-medaile { border: 0 !important; background: var(--misto-barva, var(--st-blue)) !important; color: var(--misto-text, #fff) !important; }
html body .staty-podium-karta.misto-1 { --misto-text: #5a3d00; }
html body .staty-podium-karta.misto-2 { --misto-barva: #a9b8c9; --misto-text: #1f2a37; }
html body .staty-podium-karta.misto-3 { --misto-text: #fff; }
html body .staty-podium-hodnota { color: var(--st-ink) !important; }
html body .staty-podium-jmeno { color: var(--st-ink) !important; }

/* ---------- přepínač den / noc ---------- */
html body nav#navbar .st-rezim {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
    border: 2px solid var(--st-line); background: var(--st-card); color: var(--st-ink);
    font: 800 .82rem/1 var(--st-f-body); cursor: pointer; transition: transform .15s, background .2s;
}
html body nav#navbar .st-rezim:hover { background: var(--st-soft); transform: translateY(-1px); }
html body nav#navbar .st-rezim i { font-size: 1rem; color: #e3a21a; }
html[data-rezim="noc"] body nav#navbar .st-rezim i { color: #ffd23f; }
html body nav#navbar .st-rezim .t { display: none; }
@media (max-width: 999.98px) {
    html body nav#navbar .st-rezim { width: 100%; height: auto; padding: 14px; }
    html body nav#navbar .st-rezim .t { display: inline; }
}

/* ---------- noční režim ---------- */
html[data-rezim="noc"] {
    --st-bg: #0f1724;
    --st-card: #18243a;
    --st-soft: #1f2d47;
    --st-ink: #e8eef6;
    --st-mut: #a3b3c5;
    --st-line: #2b3b57;
    --st-blue: #6cb4ff;
    --st-act: #3a3214;
    --st-act-line: #7a6421;
    --st-pata: #0a111c;
    --st-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    --st-shadow2: 0 14px 34px rgba(0, 0, 0, .45);
    --st-nebe-bg: radial-gradient(600px 240px at 85% -10%, rgba(120, 170, 255, .18), rgba(120, 170, 255, 0) 70%), linear-gradient(160deg, #0d2347 0%, #15335f 55%, #1b4479 100%);
    --text-muted: #8597ab;
    --primary: #6cb4ff;
    --primary-light: #8cc4ff;
    color-scheme: dark;
}
html[data-rezim="noc"] body .ip-box, html[data-rezim="noc"] body .pravidla-prepinac a.active { box-shadow: 0 5px 0 rgba(0, 0, 0, .4) !important; }
html[data-rezim="noc"] body .btn-outline { box-shadow: 0 4px 0 #0a111c !important; }
html[data-rezim="noc"] body .page-gallery img { box-shadow: 0 8px 24px rgba(0, 0, 0, .45) !important; }
html[data-rezim="noc"] ::selection { background: #3a3214; color: #fff; }

/* denní režim: barevné texty tmavší, ať jsou na bílé čitelné */
html:not([data-rezim="noc"]) body .special-rule h2, html:not([data-rezim="noc"]) body .special-rule-header h2,
html:not([data-rezim="noc"]) body .special-rule p:last-child { color: #c43c3c !important; -webkit-text-fill-color: #c43c3c !important; background: none !important; }
html:not([data-rezim="noc"]) body .legal-warning strong, html:not([data-rezim="noc"]) body .legal-notice strong { color: #a15c00 !important; }
html:not([data-rezim="noc"]) body .team-rank-title[data-rank="admin"] .rank-glow { color: #b86e00 !important; }
html:not([data-rezim="noc"]) body .team-rank-title[data-rank="helper"] .rank-glow { color: #0b8a5f !important; }
html:not([data-rezim="noc"]) body .team-rank-title .rank-glow { text-shadow: none !important; }
html body .vote-disabled { opacity: 1; filter: grayscale(.7); }
html body .vote-disabled p { color: #c43c3c !important; }

/* ==========================================================================
   Úvodní stránka (nová, 29. 10.)
   ========================================================================== */
html body.st-index { --st-nebe: 560px; }
.ix { max-width: 1180px; }
.ix-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 34px; align-items: center; padding: 26px 0 40px; }
.ix-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; }
html body .ix-hero h1 { margin: 14px 0 8px; font: 700 clamp(3.2rem, 8vw, 5.6rem)/1 var(--st-f-head); color: #fff; text-shadow: 0 5px 0 rgba(15, 50, 90, .3); }
.ix-hero-t > p { margin: 0; max-width: 46ch; color: #e6f3ff; font-size: 1.15rem; font-weight: 600; line-height: 1.6; }
.ix-akce { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.ix-ip { display: inline-flex; align-items: center; gap: 16px; padding: 10px 18px; border: 0; border-radius: 14px; background: var(--st-card); color: var(--st-ink); cursor: pointer; text-align: left; box-shadow: 0 5px 0 rgba(15, 50, 90, .25); transition: transform .15s; font: 600 1.5rem/1.1 var(--st-f-head); }
.ix-ip small { display: block; margin-bottom: 3px; font: 800 .7rem/1 var(--st-f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--st-mut); }
.ix-ip i { color: var(--st-mut); font-size: 1.05rem; }
.ix-ip:hover { transform: translateY(-2px); }
.ix-on { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 12px; background: var(--st-card); color: var(--st-ink); font-weight: 800; font-size: .95rem; }
.ix-on::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3fbf2a; box-shadow: 0 0 0 4px rgba(63, 191, 42, .18); }
.ix-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
html body .ix-btn.ds { background: #5865f2; color: #fff; box-shadow: 0 4px 0 #3c45b8; }
html body .ix-btn.ds:hover { background: #4d5ae6; }

.ix-kroky { background: var(--st-card); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 16px 40px rgba(15, 50, 90, .22); }
html body .ix-kroky h2 { margin: 0 0 12px; font-size: 1.35rem; color: var(--st-ink); }
.ix-kroky ol { list-style: none; margin: 0; padding: 0; counter-reset: k; }
.ix-kroky li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--st-line); counter-increment: k; }
.ix-kroky li:first-child { border-top: 0; }
.ix-kroky .ik { position: relative; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--st-soft); display: grid; place-items: center; }
.ix-kroky .ik::after { content: counter(k); position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--st-acc); color: #fff; font: 800 .75rem/22px var(--st-f-body); text-align: center; box-shadow: 0 2px 0 var(--st-acc-sh); }
.ix-kroky img, .ix-sv .ik img, .ix-pruh .ik img { width: 36px; height: 36px; image-rendering: pixelated; }
.ix-kroky li b { display: block; font: 600 1.08rem/1.25 var(--st-f-head); color: var(--st-ink); }
.ix-kroky li > span:last-child { color: var(--st-mut); font-size: .92rem; }

.ix-cisla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 54px; }
.ix-cisla > div { background: var(--st-card); border-radius: 18px; padding: 18px 16px; text-align: center; box-shadow: var(--st-shadow); border-bottom: 5px solid var(--c, var(--st-line)); }
.ix-cisla > div:nth-child(1) { --c: #2f7fd1; }
.ix-cisla > div:nth-child(2) { --c: #f59e0b; }
.ix-cisla > div:nth-child(3) { --c: #5cb83c; }
.ix-cisla > div:nth-child(4) { --c: #5865f2; }
.ix-cisla b { display: block; font: 600 1.9rem/1.1 var(--st-f-head); color: var(--st-ink); font-variant-numeric: tabular-nums; }
.ix-cisla span { color: var(--st-mut); font-weight: 700; font-size: .9rem; }

.ix-sek { margin: 0 0 54px; }
.ix-sek-hd { margin-bottom: 18px; }
html body .ix-sek-hd h2 { margin: 0; font-size: 2rem; color: var(--st-ink); position: relative; padding-left: 18px; }
.ix-sek-hd h2::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 6px; border-radius: 3px; background: var(--st-acc); }
.ix-sek-hd p { margin: 4px 0 0 18px; color: var(--st-mut); }

.ix-srv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ix-sv { --sc: #5cb83c; --sc-sv: #eef8ea; --sc-tm: #2a7a22; background: var(--st-card); border-radius: 22px; padding: 24px; box-shadow: var(--st-shadow); border-top: 6px solid var(--sc); display: flex; flex-direction: column; gap: 14px; }
.ix-sv.whitelist { --sc: #d9a21b; --sc-sv: #fdf5e1; --sc-tm: #8a6100; }
html[data-rezim="noc"] .ix-sv { --sc-sv: rgba(92, 184, 60, .14); --sc-tm: #8fd873; }
html[data-rezim="noc"] .ix-sv.whitelist { --sc-sv: rgba(217, 162, 27, .14); --sc-tm: #f0c45a; }
.ix-sv .hd { display: flex; align-items: center; gap: 14px; }
.ix-sv .ik { width: 60px; height: 60px; border-radius: 16px; background: var(--sc-sv); display: grid; place-items: center; flex: 0 0 auto; }
.ix-sv .ik img { width: 42px; height: 42px; }
.ix-sv .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sc-sv); color: var(--sc-tm); font: 800 .72rem/1.4 var(--st-f-body); letter-spacing: .06em; text-transform: uppercase; }
html body .ix-sv h3 { margin: 4px 0 0; font-size: 1.9rem; line-height: 1.1; color: var(--st-ink); }
.ix-sv > p { margin: 0; color: var(--st-mut); }
.ix-sv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ix-sv li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; color: var(--st-ink); }
.ix-sv li i { color: var(--sc); font-size: .85rem; }
.ix-sv .odk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
html body .ix-sv .odk a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; background: var(--st-soft); color: var(--st-ink); font-weight: 800; font-size: .92rem; text-decoration: none; transition: transform .15s; }
html body .ix-sv .odk a i { color: var(--st-mut); }
html body .ix-sv .odk a:hover { transform: translateY(-2px); }
html body .ix-sv .odk a.hl { background: var(--sc); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--sc) 62%, #000); }
html body .ix-sv.whitelist .odk a.hl { color: #3a2600; }
html body .ix-sv .odk a.hl i { color: inherit; }

.ix-pruhy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 54px; }
html body .ix-pruh { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--st-card); color: var(--st-ink); text-decoration: none; box-shadow: var(--st-shadow); border-bottom: 5px solid var(--pc); transition: transform .15s, box-shadow .15s; }
.ix-pruh.vote { --pc: #f7c531; }
.ix-pruh.ds { --pc: #5865f2; }
html body .ix-pruh:hover { transform: translateY(-3px); box-shadow: var(--st-shadow2); }
.ix-pruh .ik { width: 56px; height: 56px; border-radius: 16px; background: var(--st-soft); display: grid; place-items: center; flex: 0 0 auto; }
.ix-pruh.ds .ik { background: #5865f2; color: #fff; font-size: 1.6rem; }
.ix-pruh .t { flex: 1; min-width: 0; color: var(--st-mut); font-size: .95rem; }
.ix-pruh .t b { display: block; font: 600 1.25rem/1.2 var(--st-f-head); color: var(--st-ink); }
.ix-pruh .jdi { font-weight: 800; color: var(--st-blue); white-space: nowrap; }

@media (max-width: 900px) {
    .ix-hero { grid-template-columns: 1fr; gap: 22px; padding-top: 10px; }
    .ix-cisla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ix-srv, .ix-pruhy { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .ix-pruh .jdi { display: none; }
    .ix-cisla b { font-size: 1.5rem; }
    .ix-ip { font-size: 1.3rem; }
}

html body.st-index .page-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
html body.st-index .page-gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
@media (max-width: 900px) {
    html body.st-index { --st-nebe: 640px; }
    html body.st-index .page-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { html body.st-index { --st-nebe: 700px; } }

/* tresty: pátá dlaždice „Ve vězení“ */
@media (min-width: 1000px) { html body.st-tresty .stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 999.98px) { html body.st-tresty .stats-grid .stat-jails { grid-column: 1 / -1; } }
html body .stat-jails i { background: rgba(120, 113, 108, .14); color: #6b5f57; }
html[data-rezim="noc"] body .stat-jails i { background: rgba(214, 200, 190, .14); color: #d6c8be; }
html body .punishment-reason { background: #fdecee !important; color: #8f1d2a !important; border-left-color: #e5484d !important; }
html body .status-badge { font-weight: 800 !important; border: 0 !important; }
html body .status-active { background: #ffe1e1 !important; color: #b42318 !important; }
html body .status-permanent { background: #efe4ff !important; color: #5b21b6 !important; }
html body .status-expired { background: var(--st-soft) !important; color: var(--st-mut) !important; }
html[data-rezim="noc"] body .punishment-reason { background: rgba(229, 72, 77, .14) !important; color: #ffb4b8 !important; }
html[data-rezim="noc"] body .status-active { background: rgba(229, 72, 77, .2) !important; color: #ffb4b8 !important; }
html[data-rezim="noc"] body .status-permanent { background: rgba(139, 92, 246, .22) !important; color: #d6c4ff !important; }
html body .punishment-info h4 { color: var(--st-ink) !important; font-family: var(--st-f-head); font-weight: 600; font-size: 1.15rem; }
@media (max-width: 700px) {
    html body.st-tresty .tabs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; overflow: visible; }
    html body.st-tresty .tabs .tab-btn { padding: 10px 2px !important; font-size: .78rem; min-width: 0; }
}
