/*
Theme Name: MCStoryWorld Original
Theme URI: https://mcstoryworld.cz/
Author: MCStoryWorld
Description: WordPress adaptace původního vzhledu MCStoryWorld (2026). Vlastní sekce, mod katalog, mapa a Minecraft status.
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 8.1
Text Domain: mcstoryworld-wp
*/
:root {
  --bg: #0b0d10;
  --text: #e5e5e5;

  --gold: #f0c674;
  --teal: #00B3A4;

  --panel-bg: rgba(20, 20, 20, 0.5);
  --panel-border: rgba(255, 255, 255, 0.08);

  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.45);

  --header-h: 70px;
  --container: 1200px;

  --pad-x: 2rem;

  --pad-section: 6rem;

}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 2rem;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0.2rem 0 0.6rem;
}

h1.insructions {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.4rem;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: left;
  margin: 0 0 1rem;
}


h2,
h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.4rem;
  text-transform: uppercase;
  opacity: 0.9;
  text-align: left;
  margin: 0 0 1rem;
}

h2.gradient-title {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 45%,
      var(--teal) 55%,
      var(--teal) 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2.error404,
h2.maintenance {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
}

h3.gradient-title {
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 16%,
      var(--teal) 16%,
      var(--teal) 48%,
      var(--gold) 48%,
      var(--gold) 84%,
      var(--teal) 84%,
      var(--teal) 100%);

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.position-adress {
  margin-top: 3rem;
  display: block;
  text-align: left;
}

.title-muted {
  color: var(--gold);
  opacity: 0.85;
}

.title-brand {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.panel[id] {
  scroll-margin-top: 110px;
}

a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.nav {
  max-width: var(--container);
  margin: auto;
  padding: .8rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: var(--gold);
  letter-spacing: .12em;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(90deg,
      var(--gold) 0%,
      var(--gold) 18%,
      var(--teal) 18%,
      var(--teal) 56%,
      var(--gold) 56%,
      var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: .3s;
}

/* Kontejner pro položku s menu */
.nav-links li {
  position: relative;
}


a.links {
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.guide-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  margin-top: 1rem;
}

.command-list {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  color: var(--teal);
  margin: 10px 0;
}

.admin-note {
  border-left: 4px solid #ff4444;
  padding-left: 15px;
  margin-top: 20px;
}

/* GUIDE BLOCK */
.guide-block {
  margin-bottom: 20px;
  transition: 0.3s;
}

.guide-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* SIDEBAR (optional future) */
.guide-sidebar {
  position: sticky;
  top: 100px;
}


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad-x);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
}

.hero-inner {
  max-width: 590px;
  padding: 0 var(--pad-x);
  width: 100%;
  margin-right: auto;
  margin-left: 8vw;
}

.hero-subtitle {
  color: rgba(230, 230, 230, .8);
  margin: 0 0 2rem;
}

.hero h1 {
  letter-spacing: .25em;
}

.hero-title {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.25em;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.section {
  padding: var(--pad-section) var(--pad-x);
  scroll-margin-top: var(--header-h);
}

.section-stone {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}

.section-eroded {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}

.section-download {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;
}


.eroded-content {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  background: transparent;
}

.eroded-content,
.eroded-content p,
.eroded-content li {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.eroded-rules {
  padding-left: 1.2rem;
}

.eroded-rules li {
  line-height: 1.6;
  word-break: break-word;
}


.contact-content {
  position: relative;
  max-width: var(--container);
  background: transparent;
}


.guide-full-width {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}


.guide-full-width .panel {
  max-width: 100%;
  /* Přepíše původních 900px na plnou šířku */
  margin-bottom: 2rem;
}


.guide-full-width .guide-image {
  max-width: 800px;
  display: block;
  margin: 1rem 0;
}

.panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: transparent;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.panel {
    text-align: center;
}

.panel p{
    text-align: left;
}
.guide-full-width .panel,
.page-404-grid .panel,
.about-status-grid .panel,
.mods-status-grid .panel,
.maintenance-grid .panel,
.download-grid .panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  width: 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.icon img {
  width: 48px;
  height: 48px;
  display: block;
}

.icon-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.icon-link {
  display: flex;
  align-items: center;

  gap: 12px;
}

.icon-link a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.icon-link a:hover {
  text-decoration: underline;
}

.icon img {
  display: block;
}



.about-status-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: flex-start;
}

.recipe-status-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: flex-start;
}

.page-404-grid,
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--container);
  margin: 0 auto;
  align-items: flex-start;
}


.about-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.status-text {
  padding: 2.5rem;
  text-align: left;
}

.about-panel img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}



.about-box.about-panel .divider {
  margin-left: -20px;
  margin-right: -20px;
}

#server-status {
  text-align: center;
  padding: 0 1rem;
}

.about-box.about-panel .status {
  display: block;
  width: 100%;
  padding: 1rem 0;
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(to right,
      transparent 0%,
      var(--status-color) 20%,
      var(--status-color) 80%,
      transparent 100%);
}

.status.online {
  --status-color: green;
  color: #fff;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.status.offline {
  --status-color: red;
  color: #fff;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}


.mods-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;

  max-width: var(--container);
  margin: 0 auto;

}


.mods-status-grid>h2 {
  grid-column: 1 / -1;
  text-align: left;
  margin: 16px 0 16px;
}

.mods-status-grid .panel {
  padding: 40px 20px;
  text-align: center;
  margin: 0;
  /* important for grids */
  max-width: 100%;
  /* important for grids */
}

.mods-status-grid .panel strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #e6e6e6;
}

.mods-status-grid .panel span {
  font-size: 0.95rem;
  color: #bdbdbd;
}

.mod-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.mod-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  padding: 6px 14px;

  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--gold);
  border: 1px solid rgba(240, 198, 116, 0.35);
  border-radius: 999px;

  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(2px);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.img-overlay {
  position: relative;
  display: inline-block;
}

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

.img-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 10, .0),
      rgba(10, 10, 10, .9));
  pointer-events: none;
}

.mod-link:active {
  transform: translateY(0);
}

.mod-link.modrinth {
  color: #00e676;
  border-color: rgba(0, 230, 118, 0.4);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  max-width: none;

  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(240, 200, 120, .6);
  background: transparent;
  color: var(--gold);

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.divider {
  height: 10px;
  margin: 0 auto;
  background: url("assets/ui/oddelovac.webp") center / 100% 100% no-repeat,
    linear-gradient(to right,
      transparent,
      rgba(240, 200, 120, .4),
      transparent);
  display: block;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  inset: 0;

}



.divider-footer {
  height: 10px;
  margin: 0 auto;
  background: url("assets/ui/footer.webp") center / 100% 100% no-repeat,
    linear-gradient(to right,
      transparent,
      rgba(240, 200, 120, .4),
      transparent);
  position: relative;
}

/* =====================
   FOOTER
   ===================== */

footer {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9));
  background-size: cover;
  background-position: center;

  min-height: 56px;
  padding: 1rem var(--pad-x);

  color: rgba(240, 240, 240, .6);
  font-size: .85rem;

  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 24px;
  opacity: .6;
  pointer-events: none;
}

footer > * {
  position: relative;
  z-index: 1;
}

footer .privacy {
  grid-column: 1;
  justify-self: start;

  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .65rem;
  line-height: 1.4;
  letter-spacing: .08em;
}

footer .privacy:hover {
  text-decoration: underline;
}

footer .footer-copy {
  grid-column: 2;
  justify-self: center;

  text-align: center;
  white-space: nowrap;
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}


#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}



.download-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;

  max-width: var(--container);
  margin: 0 auto;
  align-items: stretch;
}

.download-left {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2rem;
  text-align: center;
}

.download-left .panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  max-width: none;

  padding: 0.7rem 1.6rem;
  border: 1px solid rgba(240, 200, 120, .6);
  background: transparent;
  color: var(--gold);

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.download-left ul li,
.download-left p {
  text-align: left;
}

.download-left>h2 {
  grid-column: 1 / -1;
  grid-row: 1;
}

.download-left>.panel:nth-of-type(1) {
  grid-column: 1;
  grid-row: 2 / span 2;
}

.download-left>.panel:nth-of-type(2) {
  grid-column: 2;
  grid-row: 2;
}

.download-left>.panel:nth-of-type(3) {
  grid-column: 2;
  grid-row: 3;
}

.download-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  gap: 1.5rem;
  text-align: center;
}

.download-right ul li {
  text-align: left;
}

h3 {
  text-align: left;
  font-size: 20px;
  color: var(--teal);
}

.download-right h3 {
  font-size: clamp(2rem, 9vw, 2rem);
  text-align: center;

}

.download-right .text-info {
  text-align: center;
}


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

a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 198, 116, 0.25);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;

  padding: 10px 14px;
  background: rgba(15, 15, 15, .95);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--gold);
  border-radius: 12px;
  text-decoration: none;

  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 2000;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.hint {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1 0 auto;
}

.page-404 footer {
  margin-top: auto;
}

.page-404 .divider-footer {
  margin: unset;
}

@media (min-width: 1400px) {
  :root {
    --pad-x: 2.5rem;
    --pad-section: 6.5rem;
  }

  .hero-inner {
    margin-left: 10vw;
  }
}

@media (max-width: 900px) {

  .section,
  .page-404-grid,
  .about-status-grid,
  .mods-status-grid,
  .download-grid,
  .eroded-content,
  .contact-content,
  .maintenance-grid,
  .panel,
  .btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }


  .panel {
    padding: 22px 18px;
  }


  .hero-inner {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    max-width: 560px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.45s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 1.5rem 0;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .eroded-content {
    text-align: left;
  }

  .eroded-content h2 {
    text-align: center;
  }

  .eroded-quote {
    text-align: center;
    font-style: italic;
    opacity: 0.85;
  }


  .page-404-grid,
  .about-status-grid,
  .mods-status-grid,
  .download-grid,
  .maintenance-grid,
  .download-left {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .download-right {
    order: -1;
  }

  .download-right h3 {
    margin-top: 0;
    font-size: 1.25rem;
    text-align: center;
    line-height: 1.3;
  }

  .download-left h3 {
    font-size: 1.25rem;
    text-align: left;
    line-height: 1.3;
  }

  .download-left>h2,
  .download-left>.panel {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .btn {
    text-align: center;
    padding: 1rem 0;
  }

  #contact .about-status-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  #contact .contact-content {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
  }

  #contact .about-box.about-panel {
    order: 2;
    align-items: center;
  }

  #contact .about-box img {
    max-width: 280px;
    margin: 0 auto;
  }

  #contact .icon-links {
    align-items: flex-start;
  }

  #contact .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

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

@media (max-width: 768px) {
  :root {
    --pad-section: 4.5rem;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .about-box.about-panel .divider {
    margin-left: -20px;
    margin-right: -20px;
  }

  .mod-links {
    justify-content: center;
    gap: 10px;
  }



  #contact .about-status-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  #contact .contact-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  #contact h2.gradient-title {
    text-align: center;
  }

  #contact .icon-links {
    align-items: flex-start;
  }

  #contact .icon-link {
    align-items: center;
  }

  #contact .about-box.about-panel {
    margin: 0 auto;
    align-items: center;
  }

  #contact .about-box img {
    max-width: 240px;
    height: auto;
  }

  #contact .btn {
    width: 100%;
    text-align: center;
  }

  #contact .hint {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-title {
    letter-spacing: 0.18em;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  #scrollTopBtn {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  #contact .icon-link a {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
  }
}


@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(240, 200, 120, 0.3);
  }

  .mods-status-grid .panel:hover,
  .about-status-grid .panel:hover,
  .download-grid .panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6);
  }

  .mod-link:hover {
    background: rgba(240, 198, 116, 0.12);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 0px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_768.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_768.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_768.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_768.webp");
  }

  .hero-title {
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_768.webp");
  }
}


@media (min-width: 769px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_1280.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1280.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_1280.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_1280.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_1280.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1280.webp");
  }
}

@media (min-width: 1281px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_1920.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1920.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_1920.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_1920.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_1920.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_1920.webp");
  }
}

@media (min-width: 1921px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/hero_3840.webp");
  }

  .section-stone {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_3840.webp");
  }

  .section-eroded {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/eroded_3840.webp");
  }

  .section-download {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/diggers_3840.webp");
  }

  .hero-title {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
      url("assets/images/hero-title_3840.webp");
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  footer {
    background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
      url("assets/images/stone_bg_3840.webp");
  }
}


.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.page-404 main {
  flex: 1 0 auto;
  display: flex;
}


.page-404 .error-section {
  flex: 1;
  display: flex;
  align-items: center;

  justify-content: center;

  padding-top: var(--header-h);
  padding-bottom: 3rem;
}

.page-404 .about-status-grid {
  align-items: center;
}


.page-404 footer {
  margin-top: auto;
}


.page-world {
  min-height: 100vh;
  flex-direction: column;
}

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

.world-controls {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 85vh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-loader {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: .1em;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.map-wrapper,
.section-stone,
.eroded-content {
  transform: none !important;

  perspective: none !important;
}

#worldMap {
  visibility: visible !important;
  opacity: 1 !important;
  background: #000;

}


.status.online {
  --status-color: green;

  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: 'Oswald', sans-serif;
  position: relative;
  overflow: hidden;
}


.status.online::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: scan 2s infinite linear;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


.status-text {
  padding: 1.5rem 2rem;

}

#server-players b {
  color: var(--gold);
}

.motd-style {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.9;
  text-align: center;
  margin: 15px 0;
  padding: 10px;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.1);
}

#server-reload {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}

ul.eroded-rules li {
  list-style-type: none;
  margin-bottom: 20px;
  margin-left: 30px;

}

.fontsize {
  font-size: 20px;
  font-weight: 700;
  margin-left: -30px;
  color: var(--teal);
}

.section-logos {
  padding: 40px 20px;
  text-align: center;
}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logos-container img {
  width: 200px;
  height: auto;


  filter: grayscale(100%) brightness(0.7);

  transition: all 0.3s ease;
  opacity: 0.8;
}

.logos-container img:hover {

  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

.section-logos {
  background-image: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .9)),
    url("assets/images/stone_bg_3840.webp");
}


/* Kontejner pro galerii */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  /* Umožní zalamování na menších displejích */
  gap: 15px;
  /* Mezera mezi obrázky */
  margin-top: 20px;
  width: 100%;
}

/* Styl pro samotné značky picture v galerii */
.image-gallery picture {
  flex: 1;
  /* Každý obrázek zabere stejný díl šířky */
  min-width: 250px;
  /* Minimální šířka, než se obrázek zalomí pod sebe */
}

/* Styl pro obrázky uvnitř galerie */
.image-gallery .guide-image-size {
  width: 100%;
  /* Obrázek vyplní svůj kontejner */
  height: auto;
  /* Zachová poměr stran */
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  display: block;
  transition: transform 0.3s ease;
}

/* Volitelný efekt při najetí myší */
.image-gallery .guide-image-size:hover {
  transform: scale(1.02);
}

/* Responzivita pro velmi malé mobily */
@media (max-width: 600px) {
  .image-gallery picture {
    min-width: 100%;
    /* Na mobilech bude každý obrázek na celou šířku */
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    justify-items: center;
    text-align: center;
    padding: 1rem var(--pad-x) 1.15rem;
  }

  footer .privacy {
    grid-column: 1;
    justify-self: center;
    order: 1;
  }

  footer .footer-copy {
    grid-column: 1;
    justify-self: center;
    order: 2;
    white-space: normal;
  }
}

/* Základní styly pro obrázky v návodu */
.image-gallery img {
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid var(--panel-border);
}

.image-gallery img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

/* Kontejner prohlížeče (Pozadí) */
#image-viewer {
  display: none;
  position: fixed;
  z-index: 2000;
  /* Musí být vyšší než header (1000) */
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  /* Tmavší, aby vynikl obsah */
  backdrop-filter: blur(8px);
  /* Efekt rozmazání pozadí webu */
}

/* Samotný obrázek v modálu */
.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  /* Zvýšeno pro lepší detaily na PC */
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);

  /* Animace zoomu */
  animation: zoomAni 0.4s ease-out;
}

@keyframes zoomAni {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Tlačítko pro zavření */
#image-viewer .close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--gold);
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

#image-viewer .close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

/* Popisek pod obrázkem (caption) */
#viewer-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--gold);
  padding: 20px 0;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responzivita pro mobily */
@media only screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin-top: 50px;
  }

  #image-viewer .close {
    top: 20px;
    right: 25px;
    font-size: 40px;
  }
}
        :root {
            --header-offset: 120px;
            --guide-offset: 15px;
        }
		main.eroded-guide-main [id] {
		scroll-margin-top: calc(142px - var(--guide-offset, 15px));
		}

        html {
            scroll-behavior: smooth;
            scroll-padding-top: var(--guide-offset);
        }

        body {
            background: var(--bg);
        }

        .eroded-guide-main {
            min-height: 100vh;
            color: var(--text);
            overflow-x: clip;
        }

        .guide-wrap {
            width: min(var(--container), 100%);
            margin: 0 auto;
        }

        .guide-hero {
            position: relative;
            padding: clamp(1.25rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.5rem);
            background: transparent;
        }

        .guide-hero-head {
            display: flex;
            align-items: center;
            gap: clamp(1rem, 3vw, 2rem);
            flex-wrap: wrap;
        }

        .guide-logo {
            flex: 0 0 auto;
            width: clamp(86px, 12vw, 150px);
            line-height: 0;
            filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .55));
        }

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

        .guide-title-group {
            flex: 1 1 320px;
            min-width: 0;
        }

        .guide-hero h1 {
            display: flex;
            flex-wrap: wrap;
            gap: .25em;
            align-items: baseline;
            margin: 0 0 .75rem;
            font-family: "Oswald", "Inter", sans-serif;
            line-height: .95;
            letter-spacing: .08em;
            text-transform: uppercase;
            text-shadow: 0 10px 30px rgba(0, 0, 0, .6);
        }

        .guide-hero p {
            max-width: 820px;
            margin: .55rem 0 0;
            color: rgba(230, 230, 230, .82);
            font-size: clamp(1rem, 2vw, 1.15rem);
        }

        .guide-wrap>.divider {
            width: 100vw;
            max-width: none;
            margin-left: calc(50% - 50vw);
            margin-right: calc(50% - 50vw);
        }

        .guide-layout {
            display: grid;
            grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
            gap: clamp(1rem, 2vw, 1.5rem);
            align-items: start;
            margin-top: 2rem;
        }

        .guide-toc {
            position: sticky;
            top: var(--header-offset);
            max-height: calc(100vh - var(--header-offset) - 0rem);
            overflow-y: auto;
            border: 1px solid var(--panel-border);
            border-radius: var(--radius);
            padding: 1rem;
            background: var(--panel-bg);
            box-shadow: var(--shadow);
            backdrop-filter: blur(4px);
        }

        .guide-toc h2 {
            margin: 0 0 .75rem;
            color: var(--gold);
            font-size: 1.25rem;
        }

        .guide-toc ul {
            display: grid;
            gap: .35rem;
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .guide-toc a {
            display: block;
            padding: .55rem .65rem;
            border-radius: 10px;
            color: var(--gold);
            text-decoration: none;
            text-transform: uppercase;
            font-size: .78rem;
            letter-spacing: .06em;
            background: transparent;
            transition: background .18s ease, transform .18s ease, color .18s ease;
        }

        .guide-toc a:hover,
        .guide-toc a:focus-visible {
            background: rgba(240, 198, 116, .12);
            color: var(--teal);
            transform: translateX(2px);
            outline: none;
        }

        .guide-content {
            display: grid;
            gap: 2rem;
        }

        .guide-panel {
            position: relative;
            width: 100%;
            border: 1px solid var(--panel-border);
            border-radius: var(--radius);
            padding: clamp(1.1rem, 2vw, 1.6rem);
            background: var(--panel-bg);
            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, .02),
                var(--shadow);
           
        }

        .guide-panel h2 {
            display: flex;
            align-items: center;
            gap: .75rem;
            margin: 0 0 1rem;
            padding-bottom: .85rem;
            border-bottom: 1px solid rgba(240, 198, 116, .22);
            color: var(--gold);
            font-size: clamp(1.45rem, 3vw, 2rem);
            line-height: 1.15;
        }

        .guide-panel h3 {
            margin: 1.25rem 0 .65rem;
            color: var(--teal);
            font-size: 1.25rem;
        }

        .guide-panel p {
            margin: .75rem 0;
            color: var(--text);
            line-height: 1.75;
        }

        .guide-panel ul {
            display: grid;
            gap: .55rem;
            margin: .75rem 0 1rem;
            padding-left: 1.15rem;
        }

        .guide-panel li {
            line-height: 1.65;
            color: var(--text);
        }

        .guide-panel strong {
            color: #fff3c1;
        }

        .guide-panel blockquote {
            margin: 1rem 0;
            padding: .85rem 1rem;
            border-left: 4px solid var(--gold);
            border-radius: var(--radius);
            background: rgba(240, 198, 116, .08);
            color: var(--text);
        }

        .guide-panel blockquote p {
            margin: 0;
        }

        .guide-panel table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            overflow: hidden;
            margin: 1rem 0;
            border: 1px solid var(--panel-border);
            border-radius: var(--radius);
            background: rgba(0, 0, 0, .22);
        }

        .guide-panel th,
        .guide-panel td {
            padding: .85rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
            text-align: left;
            vertical-align: top;
        }

        .guide-panel th {
            color: var(--gold);
            background: rgba(240, 198, 116, .10);
            font-family: "Oswald", "Inter", sans-serif;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .guide-panel tr:last-child td {
            border-bottom: 0;
        }

        .command-line {
            display: block;
            margin: .55rem 0;
            padding: .85rem 1rem;
            border: 1px solid rgba(255, 255, 255, .12);
            border-radius: var(--radius);
            background: rgba(0, 0, 0, .30);
            font-family: Consolas, Monaco, "Courier New", monospace;
            color: var(--teal);
            line-height: 1.55;
            overflow-wrap: anywhere;
        }

        .guide-panel code {
            padding: .12rem .35rem;
            border-radius: 7px;
            background: rgba(0, 0, 0, 0);
            color: #ffe6a5;
        }

        .guide-panel a {
            color: var(--gold);
        }

        span.guide-gradient-title {
            display: inline-block;
            background: linear-gradient(90deg,
                    var(--gold) 0%,
                    var(--gold) 45%,
                    var(--teal) 55%,
                    var(--teal) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            -webkit-text-fill-color: transparent;
            text-decoration: underline;
        }

        span.guide-item-title {
            display: inline-block;
            margin-top: 1.35rem;
            margin-bottom: .55rem;
            padding-bottom: .18rem;
            border-bottom: 2px solid rgba(240, 198, 116, .62);
            text-decoration: none;
            color: var(--teal);
        }

        span.guide-item-title::after {
            content: "";
            display: block;
            width: 42%;
            min-width: 44px;
            height: 2px;
            margin-top: .18rem;
            background: var(--teal);
            opacity: .85;
        }

        .formating {
            padding-left: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(240, 198, 116, .22);
        }

        .formating_command {
            background: black;
            padding: 20px;
        }

        .formating_text {
            padding-left: 20px;
        }

        @media (hover: hover) and (pointer: fine) {

            .guide-panel:hover,
            .guide-toc:hover {
                transform: translateY(-2px);
                box-shadow: 0 16px 35px rgba(0, 0, 0, .6);
            }
        }

        @media (max-width: 920px) {
            .guide-layout {
                grid-template-columns: 1fr;
            }

            .guide-toc {
                position: static;
                max-height: none;
            }
        }

        @media (max-width: 620px) {
            .eroded-guide-main.section {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .guide-hero-head {
                align-items: flex-start;
            }

            .guide-hero h1 {
                font-size: clamp(2rem, 13vw, 3.2rem);
                letter-spacing: .05em;
            }

            .guide-panel th,
            .guide-panel td {
                display: block;
                width: 100%;
            }

            .guide-panel th+th {
                display: none;
            }
        }

        code {
            background: black;
        }
/* WordPress compatibility additions */
.admin-bar .site-header {top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.entry-content img{max-width:100%;height:auto}
.msw-widgets{max-width:1200px;margin:0 auto;padding:1.5rem}
.msw-widgets .widget{margin-bottom:1.5rem}
.msw-empty{opacity:.65}
.msw-postlist{max-width:1050px;margin:auto}
.msw-postlist article{margin-bottom:1.5rem}
.msw-postlist a{color:var(--gold)}
.msw-not-configured{opacity:.7;border:1px dashed var(--panel-border);border-radius:var(--radius);padding:.65rem;display:inline-block}
.wp-block-image img{height:auto}
.nav-links .current-menu-item>a{color:var(--gold)}

/* v0.2 – editor shortcuts are visible only to logged-in managers. */
body.admin-bar .msw-front-edit, .msw-front-edit {
  position: absolute; top: 12px; right: 12px; z-index: 30;
  padding: 6px 11px; border-radius: 6px;
  background: #1d2327; color: #fff !important;
  border: 1px solid #9ea3a9; font: 600 12px/1.5 system-ui, sans-serif;
  text-decoration: none !important; box-shadow: 0 3px 10px #0008;
}
.msw-front-edit:hover, .msw-front-edit:focus-visible { background: #385a6b; color: white; }
#main > section { position: relative; }

/* v0.3: native Gutenberg blocks inside the preserved MCStoryWorld layout */
.eroded-rules strong.fontsize { display:block; }
.icon-links .wp-block-group.icon-link { display:flex; align-items:center; gap:12px; }
.icon-links .wp-block-image { margin:0; flex:0 0 48px; }
.icon-links .wp-block-image img { width:48px; height:48px; object-fit:contain; }
.icon-links .icon-link p {margin:0;}
.logos-container > .wp-block-image {margin:0;}
.download-left .wp-block-group.panel { display:block; }
.msw-visual-preview-note {background:#24343d;color:#f2f2f2;text-align:center;padding:10px 20px;font:600 13px system-ui,sans-serif;}
.msw-visual-preview-note a {color:#8de4d8;}

/* === MCStoryWorld 0.5: independent Gutenberg panels and download buttons === */
.msw-download-button { margin: .35rem auto; }
.msw-download-disabled { opacity: .5; cursor: not-allowed; border-style: dashed; }
.msw-download-help { display: block; margin: .4rem 0 .65rem; opacity: .75; font-size: .73rem; }
.download-left .wp-block-shortcode { text-align: center; }
.msw-visual-panel { width: 100%; min-width: 0; }
.msw-movable-side .panel { width: 100%; max-width: 100%; }
.msw-visual-panel.msw-side-left { order: -1; }
.msw-visual-panel.msw-side-full { grid-column: 1 / -1; max-width: var(--container); margin: 0 auto; }
.about-status-grid.msw-grid-side-left { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.download-grid.msw-grid-side-left { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
.about-status-grid.msw-grid-no-panel,.download-grid.msw-grid-no-panel { grid-template-columns: minmax(0,1fr); }
.about-status-grid .msw-visual-panel,.download-grid .msw-visual-panel { margin: 0; }
.msw-visual-panel .msw-status-widget { width: 100%; }
.msw-visual-panel .msw-connect-steps { text-align: left; }
/* A panel moved to the page root keeps its familiar appearance. */
main > .msw-visual-panel { max-width: min(var(--container), calc(100% - 2rem)); margin: 2rem auto; }
main > .msw-visual-panel .panel { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius); }
@media (max-width:900px) {
  .about-status-grid.msw-grid-side-left, .download-grid.msw-grid-side-left { grid-template-columns: minmax(0,1fr); }
  .msw-visual-panel.msw-side-full { grid-column: auto; }
}

.msw-status-widget [data-msw-status-field="status"] {text-align:center;padding:0 1rem;}
.msw-status-widget [data-msw-status-field="status"] .status {display:block;width:100%;padding:1rem 0;box-sizing:border-box;text-align:center;font-weight:bold;background:linear-gradient(to right,transparent 0%,var(--status-color) 20%,var(--status-color) 80%,transparent 100%);}

/* 0.6 - real WordPress sidebars can be located alongside or below any home section. */
.msw-widget-area { min-width:0; width:100%; box-sizing:border-box; }
.msw-widget-area .msw-panel-widget { min-width:0; width:100%; margin:0 0 18px; }
.msw-widget-area .msw-visual-panel { max-width:100%; width:100%; box-sizing:border-box; }
.msw-widget-area .msw-visual-panel .panel { max-width:100%; box-sizing:border-box; }
.msw-widget-area .msw-visual-panel .status-text { padding:1.5rem; }
.msw-widget-bottom { max-width:var(--container); margin:2rem auto 0; }
.msw-widget-bottom .msw-panel-widget { max-width:var(--container); }
.msw-widget-side { display:flex; flex-direction:column; align-self:start; }
.msw-layout-with-side { display:grid; grid-template-columns:minmax(0,2fr) minmax(280px,1fr); gap:2.5rem; max-width:var(--container); margin:0 auto; align-items:start; }
.msw-layout-with-side > .msw-layout-primary { min-width:0; }
.msw-layout-with-side .msw-layout-primary .mods-status-grid, .msw-layout-with-side .msw-layout-primary .logos-container { min-width:0; width:100%; }
.msw-hero-with-side { align-items:center; }
.msw-hero-with-side .hero-inner { margin-left:0; width:100%; }
.about-status-grid > .msw-widget-side, .download-grid > .msw-widget-side { min-width:0; }
.about-status-grid .msw-widget-side .msw-visual-panel, .download-grid .msw-widget-side .msw-visual-panel { margin:0; }
@media(max-width:900px) {
  .msw-layout-with-side { grid-template-columns:minmax(0,1fr); }
  .msw-widget-bottom, .msw-layout-with-side { max-width:calc(100% - 1rem); }
}

/* 0.7: controls for image logo and title background without changing existing theme layout. */
.hero .msw-hero-heading-wrap { max-width:100%; }
.hero .msw-hero-main-logo { display:inline-block; object-fit:contain; }


/* ========================================================================
   MCStoryWorld 0.9: dropdown navigation (desktop) + accordion (mobile)
   Uses WordPress wp_nav_menu() / .sub-menu, preserves original site colors.
   ======================================================================== */
.nav-links > li { display: flex; align-items: center; position: relative; min-width: 0; }
.nav-links > li > a { display: inline-flex; align-items: center; min-height: 40px; }
.nav-links li.menu-item-has-children { position: relative; }
.nav-links li.menu-item-has-children > a { padding-right: 1.65rem; }
.nav-links .msw-submenu-toggle {
  position: absolute;
  top: 50%; right: .05rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; height: 1.75rem;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  z-index: 2;
}
.nav-links .msw-submenu-toggle::before {
  content: "";
  display: block;
  width: .45rem; height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.nav-links li.submenu-open > .msw-submenu-toggle::before {
  transform: translateY(2px) rotate(225deg);
}
.nav-links .sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: .45rem;
  background: rgba(13, 16, 19, .98);
  border: 1px solid rgba(240, 198, 116, .28);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.65);
  z-index: 1005;
}
.nav-links .sub-menu li { list-style: none; position: relative; margin: 0; padding: 0; }
.nav-links .sub-menu a {
  display: block;
  padding: .75rem 1.7rem .75rem .85rem;
  text-transform: none;
  letter-spacing: .025em;
  font-size: .85rem;
  line-height: 1.35;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus-visible,
.nav-links .sub-menu .current-menu-item > a {
  color: var(--teal);
  background: rgba(240, 198, 116, .1);
}
.nav-links .msw-submenu-toggle:hover { color: var(--teal); }

@media (min-width: 901px) {
  .nav-links .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 210px;
    max-width: min(300px, 85vw);
  }
  .nav-links .sub-menu .sub-menu { top: -.45rem; left: 100%; }
  .nav-links li.submenu-open > .sub-menu,
  .nav-links li:focus-within > .sub-menu { display: block; }
  .nav-links .sub-menu li.menu-item-has-children > .msw-submenu-toggle::before {
    transform: translate(-2px,0) rotate(-45deg);
  }
  .nav-links .sub-menu li.submenu-open > .msw-submenu-toggle::before {
    transform: translate(2px,0) rotate(135deg);
  }
  @media (hover: hover) and (pointer: fine) {
    .nav-links li:hover > .sub-menu { display: block; }
  }
}
@media (max-width: 900px) {
  .nav-links {
    gap: .15rem;
    align-items: stretch;
    width: 100%;
  }
  .nav-links.open {
    max-height: min(80vh, calc(100dvh - 85px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .8rem 1rem 1.25rem;
  }
  .nav-links > li { display: block; width: 100%; max-width: 540px; margin: 0 auto; }
  .nav-links > li > a { min-height: 44px; display: flex; padding: .7rem .5rem; }
  .nav-links li.menu-item-has-children > a { padding-right: 3.25rem; }
  .nav-links .msw-submenu-toggle {
    top: .25rem;
    right: .4rem;
    transform: none;
    width: 2.5rem; height: 2.5rem;
    background: rgba(240, 198, 116, .08);
    border: 1px solid rgba(240, 198, 116, .2);
  }
  .nav-links .sub-menu {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: .35rem .4rem .4rem .7rem;
    margin: .15rem 0 .4rem;
    border-left: 2px solid var(--teal);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0 0 0 7px;
    box-shadow: none;
    background: rgba(0, 0, 0, .24);
  }
  .nav-links li.submenu-open > .sub-menu { display: block; }
  .nav-links .sub-menu a { padding: .65rem .65rem; }
  .nav-links .sub-menu li.menu-item-has-children > a { padding-right: 3rem; }
  .nav-links .sub-menu .msw-submenu-toggle { right: .2rem; }
}

/* v1.0 – any published custom section renders as a full-width MCStoryWorld section. */
.msw-custom-container { max-width:var(--container); margin:0 auto; }
.msw-custom-container .msw-layout-primary { min-width:0; }
.msw-custom-section h2.gradient-title { margin-bottom:1.5rem; }
.msw-custom-section .msw-custom-panel {
  max-width:100%; width:100%; margin:0; padding:clamp(1.25rem,3vw,2.5rem);
  background:var(--panel-bg); border:1px solid var(--panel-border);
  border-radius:var(--radius); box-shadow:var(--shadow); text-align:left;
}
.msw-custom-section .msw-custom-body :where(img,video,iframe) { max-width:100%; }
.msw-custom-section .msw-custom-body img { height:auto; }
.msw-custom-section .msw-custom-body > :first-child { margin-top:0; }
.msw-custom-section .msw-custom-body > :last-child { margin-bottom:0; }
.msw-custom-section .msw-custom-body .wp-block-buttons { display:flex; flex-wrap:wrap; gap:.75rem; }
.msw-custom-section .msw-custom-body .wp-block-button__link { color:var(--gold); border:1px solid rgba(240,200,120,.6); background:rgba(20,20,20,.65); text-decoration:none; }
.msw-custom-section .msw-widget-bottom { margin-top:2rem; }
@media (max-width:900px) { .msw-custom-section .msw-layout-with-side { grid-template-columns:minmax(0,1fr); } }

/* 1.1 — independently configurable background and anchor for custom home sections. */
.msw-custom-section.msw-has-background {
  background-image:var(--msw-custom-bg) !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
.msw-custom-section { scroll-margin-top: var(--header-h); }
.msw-anchor-alias { position:absolute; width:0; height:0; top:0; left:0; scroll-margin-top:var(--header-h); }


/* v1.2 — selectable plain content: the outer full-width section keeps its background
   and the existing widget positions. Only the content card is switched off. */
.msw-custom-section .msw-custom-clean {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}


/* Kontakty – overena oprava pro vnoreny Gutenberg HTML (v2). */
/* MCStoryWorld – kontakty: oprava Gutenberg inner-container (v2)
   Plati pouze pro sekci #contact. Ostatni casti webu nemeni. */

/* WordPress mezi .icon-links a radky vklada obal __inner-container. */
#contact .icon-links,
#contact .icon-links > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* Podporuje puvodni HTML i Gutenberg: dva sloupce (ikona | odkaz). */
#contact .icon-links .icon-link,
#contact .icon-links .icon-link > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 14px !important;
  row-gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Vnitrni grid musi zabirat oba sloupce nadrazeneho radku. */
#contact .icon-links .icon-link > .wp-block-group__inner-container {
  grid-column: 1 / -1;
}

/* WordPress alignleft standardne nastavuje float a odsazeni. */
#contact .icon-links .icon-link .wp-block-image,
#contact .icon-links .icon-link figure,
#contact .icon-links .icon-link .wp-block-image figure {
  grid-column: 1;
  display: block !important;
  float: none !important;
  clear: none !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

#contact .icon-links .icon-link img {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  object-fit: contain;
  margin: 0 !important;
}

/* Gutenberg odstavce s alignwide nesmeji vytvorit vlastni radek. */
#contact .icon-links .icon-link > p,
#contact .icon-links .icon-link > .wp-block-group__inner-container > p {
  grid-column: 2;
  align-self: center;
  justify-self: start;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

#contact .icon-links .icon-link a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

#contact .icon-links .icon-link a:hover { text-decoration: underline; }

/* Na malych telefonech muze byt potreba zalomit pouze dlouhy e-mail. */
@media (max-width: 480px) {
  #contact .icon-links .icon-link a[href^="mailto:"] {
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
}


/* ==============================================================
   MCStoryWorld 1.4 – prehledne seznamy s ikonami.
   Aktivace je automaticka pouze u seznamu, jejichz polozky
   zacinaji emoji; ostatni WP seznamy zustavaji beze zmeny.
   Pouziva existujici ikony z Gutenberg obsahu.
   ============================================================== */
ul.msw-feature-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.35rem 0 1.8rem !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  max-width: 100%;
  padding-left: 2rem !important;
}
ul.msw-feature-list > li {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  position: relative;
  min-width: 0;
  /* padding: 13px 15px 13px 12px !important; */
  margin: 0 !important;
  list-style: none !important;
  /* border: 1px solid rgba(240, 198, 116, .12);
  border-left: 3px solid var(--teal, #00b3a4); */
  border-radius: 11px;
  /* background: linear-gradient(105deg, rgba(8, 16, 20, .75), rgba(13, 14, 17, .63));
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); */
  text-align: left;
  line-height: 1.55;
  color: var(--text, #e5e5e5);
}
ul.msw-feature-list > li::marker { content: none; }
ul.msw-feature-list > li > .msw-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  /* height: 42px; */
  line-height: 1;
  font-size: 25px;
  /* border: 1px solid rgba(0, 179, 164, .33);
  border-radius: 10px;
  background: rgba(0, 179, 164, .11); */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
ul.msw-feature-list > li > .msw-feature-icon img.emoji {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
}
ul.msw-feature-list > li > .msw-feature-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: .96rem;
  line-height: 1.55;
}
ul.msw-feature-list > li .msw-feature-text strong {
  color: var(--gold, #f0c674);
  font-weight: 700;
}
ul.msw-feature-list > li .msw-feature-text p:first-child { margin-top: 0; }
ul.msw-feature-list > li .msw-feature-text p:last-child { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  ul.msw-feature-list > li {
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }
  ul.msw-feature-list > li:hover {
    transform: translateX(3px);
    border-color: rgba(0, 179, 164, .38);
    background: linear-gradient(105deg, rgba(10, 28, 30, .89), rgba(13, 14, 17, .71));
  }
}
@media (max-width: 600px) {
  ul.msw-feature-list { gap: .6rem; }
  ul.msw-feature-list > li {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
    padding: 11px !important;
  }
  ul.msw-feature-list > li > .msw-feature-icon {
    width: 35px;
    height: 35px;
    font-size: 21px;
    border-radius: 9px;
  }
  ul.msw-feature-list > li > .msw-feature-icon img.emoji {
    width: 23px !important;
    height: 23px !important;
  }
  ul.msw-feature-list > li > .msw-feature-text { font-size: .92rem; }
}
