/* =====================================================================
   LotusMC – Tebex šablona "Lotus"  (autor: napsáno na míru pro LotusMC)
   Asset: style.css
   Barvy jsou vytažené přímo z loga: zlatá písmena, oranžový přechod,
   tmavě vínový obrys a růžový lotos.
   ===================================================================== */

:root {
  /* pozadí – teplá tmavě oranžovo-hnědá */
  --bg-0: #120803;
  --bg-1: #1a0f05;
  --bg-2: #2b1608;

  /* panely */
  --panel: rgba(46, 22, 8, 0.66);
  --panel-solid: #2a1407;
  --panel-2: rgba(255, 170, 90, 0.06);
  --line: rgba(255, 170, 90, 0.14);
  --line-hi: rgba(255, 196, 80, 0.55);

  /* barvy z loga */
  --gold: #ffd23f;
  --amber: #ffa51f;
  --ember: #f46b0c;
  --maroon: #5e1a04;      /* obrys písmen v logu */
  --lotus: #f4508a;
  --lotus-soft: #f79bc0;
  --leaf: #4cc25a;
  --danger: #ff4d6d;

  /* text */
  --text: #fff4e8;
  --muted: #dcb896;
  --faint: #a07c5c;

  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;

  --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.85);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1220px;
}

/* ---------------- Základ ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(244, 107, 12, 0.34), transparent 65%),
    radial-gradient(700px 420px at 15% 8%, rgba(244, 80, 138, 0.14), transparent 60%),
    radial-gradient(700px 420px at 88% 10%, rgba(255, 210, 63, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}
/* jemná textura, aby pozadí nebylo ploché */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.72  0 0 0 0 0.45  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.lm-lock { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe68a; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
::selection { background: rgba(244, 107, 12, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.hide, .d-none, .lm-hidden { display: none !important; }

.lm-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.lm-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Tlačítka – "vytlačená" jako písmena v logu ---------------- */
.lm-btn {
  --edge: #8a2e06;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .68rem 1.1rem;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.lm-btn:active { transform: translateY(3px); }

.lm-btn--gold {
  color: #4a1402;
  background: linear-gradient(180deg, #fff27a 0%, var(--gold) 28%, var(--amber) 68%, var(--ember) 100%);
  text-shadow: 0 1px 0 rgba(255, 240, 170, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 0 var(--edge),
    0 10px 20px -6px rgba(244, 107, 12, 0.65),
    0 0 22px -6px rgba(255, 190, 60, 0.7);
}
.lm-btn--gold:hover {
  color: #4a1402;
  filter: brightness(1.07) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 4px 0 var(--edge),
    0 12px 26px -6px rgba(244, 107, 12, 0.85),
    0 0 32px -4px rgba(255, 190, 60, 0.8);
}
.lm-btn--gold:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 0 var(--edge), 0 4px 10px -4px rgba(244,107,12,.6); }

.lm-btn--pink {
  --edge: #8f1a47;
  color: #fff;
  background: linear-gradient(180deg, #ffb3d1 0%, var(--lotus-soft) 18%, var(--lotus) 72%, #d83373 100%);
  text-shadow: 0 1px 0 rgba(120, 10, 50, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 0 var(--edge), 0 10px 20px -8px rgba(244, 80, 138, 0.7);
}
.lm-btn--pink:hover { color: #fff; filter: brightness(1.07); }
.lm-btn--pink:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 0 var(--edge); }

.lm-btn--danger {
  --edge: #6e0f1f;
  color: #fff;
  background: linear-gradient(180deg, #ff8595, var(--danger) 45%, #d42a47);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--edge);
}
.lm-btn--danger:hover { color: #fff; filter: brightness(1.06); }
.lm-btn--danger:active { box-shadow: 0 1px 0 var(--edge); }

.lm-btn--ghost {
  color: var(--text);
  background: rgba(255, 170, 90, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}
.lm-btn--ghost:hover { color: var(--text); background: rgba(255, 170, 90, 0.14); box-shadow: inset 0 0 0 1px var(--line-hi); }
.lm-btn--ghost:active { transform: none; }

.lm-btn--sq { width: 40px; height: 40px; padding: 0; }
.lm-btn--block { width: 100%; }
.lm-btn--lg { padding: .9rem 1.4rem; font-size: 1rem; }
.lm-btn[disabled], .lm-btn.is-disabled {
  color: var(--faint); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  text-shadow: none; filter: none; cursor: not-allowed; transform: none;
}

/* ---------------- Panel (sklo) ---------------- */
.lm-panel {
  position: relative;
  padding: 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--panel-2), rgba(255, 140, 26, 0.01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}
.lm-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.lm-panel__title .lm-aside { margin-left: auto; font-family: var(--font-body); font-size: .9rem; color: var(--gold); font-weight: 800; }

/* ---------------- Horní lišta ---------------- */
.lm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 6px;
}
.lm-topbar__left, .lm-topbar__right { display: flex; align-items: center; gap: 10px; }

.lm-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 14, 5, 0.7);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  text-align: right;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: box-shadow .2s ease;
}
.lm-profile:hover { box-shadow: inset 0 0 0 1px var(--line-hi); }
.lm-profile__name { font-weight: 800; font-size: .92rem; line-height: 1.2; }
.lm-profile__value { color: var(--muted); font-size: .8rem; line-height: 1.2; }
.lm-profile__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--amber), var(--ember));
  box-shadow: 0 3px 0 var(--maroon);
}
.lm-profile__avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.lm-profile__count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--lotus);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--bg-2);
}

/* ---------------- Hlavička: IP | LOGO | Discord ---------------- */
.lm-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 0 34px;
}
.lm-header__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(170px, 20vw, 240px);
}
.lm-header__logo::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 80, 138, 0.45), rgba(244, 107, 12, 0.25) 45%, transparent 70%);
  filter: blur(16px);
}
.lm-header__logo img {
  width: 100%;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  animation: lm-bob 5.5s ease-in-out infinite;
}
@keyframes lm-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }

.lm-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-lg);
  background: rgba(30, 14, 5, 0.66);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: box-shadow .2s ease, transform .2s ease;
}
.lm-stat:hover { color: var(--text); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-hi), var(--shadow), 0 0 26px -8px rgba(255, 170, 60, 0.6); }
.lm-stat--right { justify-self: end; flex-direction: row-reverse; text-align: right; }
.lm-stat--left { justify-self: start; }
.lm-stat__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #4a1402;
  background: linear-gradient(180deg, #fff27a, var(--gold) 30%, var(--amber) 70%, var(--ember));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 0 #8a2e06;
}
.lm-stat__icon--pink { color: #fff; background: linear-gradient(180deg, #ffb3d1, var(--lotus-soft) 20%, var(--lotus) 75%, #d83373); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 0 #8f1a47; }
.lm-stat__icon .lm-icon { width: 22px; height: 22px; }
/* Discord – barva „blurple“ + místo pro oficiální logo (discord_icon v layout.html) */
.lm-stat__icon--discord { color: #fff; background: linear-gradient(180deg, #8c95ff, #5865f2 35%, #4752c4); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #2f37a0; }
.lm-stat__icon img { width: 28px; height: 28px; object-fit: contain; }
.lm-stat__main { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.lm-stat__sub { color: var(--muted); font-size: .82rem; line-height: 1.3; margin-top: 3px; }
.lm-stat__sub b { color: var(--gold); }
.lm-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 10px var(--leaf); vertical-align: 1px; }
.lm-stat.is-copied .lm-stat__sub { color: var(--gold); }

.lm-announce {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -14px auto 26px;
  max-width: 640px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 80, 138, 0.18), rgba(244, 107, 12, 0.18));
  box-shadow: inset 0 0 0 1px rgba(244, 80, 138, 0.35);
  font-size: .9rem;
  font-weight: 700;
  justify-content: center;
  text-align: center;
}

/* ---------------- Hlasování (lišta pod hlavičkou) ---------------- */
.lm-votes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--panel-2), rgba(255, 140, 26, 0.01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}
.lm-votes__intro { display: flex; align-items: center; gap: 14px; }
.lm-votes__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #4a1402;
  background: linear-gradient(180deg, #fff27a, var(--gold) 30%, var(--amber) 70%, var(--ember));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 0 #8a2e06;
}
.lm-votes__icon .lm-icon { width: 22px; height: 22px; }
.lm-votes__title { margin: 0; font-size: 1rem; }
.lm-votes__intro > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.lm-votes__text { margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.lm-votes__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.lm-vote {
  display: flex; align-items: center; gap: 11px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255, 170, 90, 0.06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lm-vote:hover { transform: translateY(-2px); background: rgba(255, 170, 90, 0.1); box-shadow: inset 0 0 0 1px var(--line-hi), 0 10px 22px -14px rgba(255, 140, 20, .7); }
.lm-vote__num {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 170, 90, 0.12);
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: var(--gold);
}
.lm-vote__txt { flex: 1; min-width: 0; line-height: 1.2; }
.lm-vote__txt strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-vote__txt small { display: block; margin-top: 2px; color: var(--faint); font-size: .76rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-vote__go {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: .78rem; font-weight: 800;
  color: #4a1402;
  background: linear-gradient(180deg, #fff27a 0%, var(--gold) 28%, var(--amber) 68%, var(--ember) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 #8a2e06;
}
.lm-vote__go .lm-icon { width: 14px; height: 14px; }
.lm-vote:active .lm-vote__go { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
@media (max-width: 760px) {
  .lm-votes { padding: 14px; }
  .lm-votes__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------- Tělo: sidebar + obsah ---------------- */
.lm-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 50px;
}
.lm-body--full { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.lm-sidebar { min-width: 0; }
.lm-content { min-width: 0; }

/* Navigace kategorií */
.lm-nav { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lm-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.lm-nav a:hover { color: var(--text); background: rgba(255, 170, 90, 0.08); }
.lm-nav a.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(244, 107, 12, 0.25), rgba(244, 107, 12, 0.04));
  box-shadow: inset 3px 0 0 var(--gold);
}
.lm-nav__icon {  /* používá se už jen u dlaždic kategorií na homepage a u mobilního tlačítka menu */
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 170, 90, 0.1);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  overflow: hidden;
}
.lm-nav__icon img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.lm-nav__img { width: 24px; height: 24px; flex: none; object-fit: contain; image-rendering: pixelated; }
.lm-nav__sub { list-style: none; margin: 2px 0 6px 14px; padding: 0; display: grid; gap: 2px; }
.lm-nav__sub a { padding: 6px 10px; font-size: .9rem; }
.lm-nav details summary { list-style: none; cursor: pointer; }
.lm-nav details summary::-webkit-details-marker { display: none; }
.lm-nav details summary .lm-caret { margin-left: auto; transition: transform .2s ease; }
.lm-nav details[open] summary .lm-caret { transform: rotate(180deg); }

/* mobilní tlačítko pro otevření navigace */
.lm-navbtn {
  display: none;
  width: 100%;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-lg);
  background: rgba(30, 14, 5, 0.75);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lm-navbtn strong { display: block; font-family: var(--font-display); font-weight: 600; }
.lm-navbtn small { color: var(--muted); }
.lm-navbtn .lm-icon { margin-left: auto; width: 22px; height: 22px; }

/* ---------------- Uvítání na homepage ---------------- */
.lm-welcome { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.lm-welcome__small { color: var(--lotus-soft); font-weight: 800; font-size: .9rem; margin-bottom: 2px; }
.lm-welcome__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.1; margin: 0; }

.lm-prose { color: var(--muted); }
.lm-prose h1, .lm-prose h2, .lm-prose h3, .lm-prose h4, .lm-prose strong, .lm-prose b { color: var(--text); }
.lm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.lm-prose ul, .lm-prose ol { padding-left: 1.3em; }
.lm-prose li::marker { color: var(--lotus); }
.lm-prose img { border-radius: var(--r); }
.lm-prose table { width: 100%; border-collapse: collapse; }
.lm-prose th, .lm-prose td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.lm-prose > :last-child { margin-bottom: 0; }

.lm-paynote {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px;
  border-radius: var(--r); background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: .88rem;
}
.lm-paynote .lm-icon { color: var(--leaf); }

/* ---------------- Mřížka balíčků ---------------- */
.lm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.lm-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 170, 90, 0.07), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .25s ease;
}
.lm-pkg:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 16px 30px -16px rgba(0, 0, 0, 0.8), 0 0 30px -8px rgba(255, 150, 40, 0.55);
}
.lm-pkg__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 170, 60, 0.28), transparent 62%),
    rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
}
.lm-pkg__media img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); transition: transform .3s ease; }
.lm-pkg:hover .lm-pkg__media img { transform: scale(1.07) rotate(-2deg); }
.lm-pkg__glyph {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(180deg, #fff27a, var(--gold) 35%, var(--ember));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 var(--maroon));
}
.lm-pkg__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: .22rem .5rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff86b4, var(--lotus));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 3px 0 #8f1a47;
}
.lm-pkg__timer {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: .25rem .5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--lotus-soft);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
}
.lm-pkg__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.25; margin: 0 0 4px; }
.lm-price { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--gold); text-shadow: 0 0 16px rgba(255, 170, 50, 0.35); }
.lm-price small { font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 800; text-shadow: none; }
.lm-price s { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--faint); text-shadow: none; }
.lm-price--free { font-size: .88rem; color: var(--lotus-soft); }
/* orientační cena v Kč pod cenou v EUR */
.lm-czk { display: block; margin-top: 2px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--muted); text-shadow: none; letter-spacing: 0; }
.lm-czk:empty { display: none; }
.lm-drawer__foot > .lm-czk { margin-top: -8px; text-align: right; }
.lm-czk-note { margin-top: 4px; font-size: .78rem; color: var(--faint); }
.lm-pkg__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.lm-pkg__actions .lm-btn:not(.lm-btn--sq) { flex: 1; }
.lm-pkg__actions .lm-btn--sq { width: 38px; height: 38px; }
.lm-pkg { container-type: inline-size; }
.lm-pkg__actions .lm-btn:not(.lm-btn--sq) { min-width: 0; }
/* Úzké karty (mřížka od 200px, sidebar): „Přidat do košíku“ se musí vejít vedle ⓘ */
@container (max-width: 250px) {
  .lm-pkg__actions .lm-btn:not(.lm-btn--sq) { padding-inline: .6rem; font-size: .84rem; gap: 6px; }
}
@container (max-width: 215px) {
  .lm-pkg__actions .lm-btn--gold .lm-icon { display: none; }
  .lm-pkg__actions .lm-btn:not(.lm-btn--sq) { white-space: normal; line-height: 1.15; padding-block: .5rem; }
}

/* množství v košíku */
.lm-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line-hi);
  background: rgba(255, 196, 80, 0.08);
  overflow: hidden;
}
.lm-qty button {
  width: 32px; height: 38px; border: 0; background: none; color: var(--gold);
  font: 800 1rem var(--font-body); cursor: pointer;
}
.lm-qty button:hover { background: rgba(255, 196, 80, 0.14); }
.lm-qty button[disabled] { color: var(--faint); cursor: not-allowed; background: none; }
.lm-qty span { min-width: 22px; text-align: center; font-weight: 800; }

/* varianta list */
.lm-grid--list { grid-template-columns: 1fr; gap: 10px; }
.lm-grid--list .lm-pkg { flex-direction: row; align-items: center; gap: 14px; }
.lm-grid--list .lm-pkg__media { width: 72px; flex: none; margin: 0; }
.lm-grid--list .lm-pkg__media img { width: 80%; height: 80%; }
.lm-grid--list .lm-pkg__glyph { font-size: 1.6rem; }
.lm-grid--list .lm-pkg__info { flex: 1; min-width: 0; }
.lm-grid--list .lm-pkg__actions { margin: 0; padding: 0; }
.lm-grid--list .lm-pkg__timer { display: none; }

/* kategorie na homepage */
.lm-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lm-cat {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--r); color: var(--text); font-weight: 800;
  background: rgba(255, 170, 90, 0.06); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.lm-cat:hover { color: var(--text); background: rgba(255, 170, 90, 0.1); box-shadow: inset 0 0 0 1px var(--line-hi); }

.lm-empty { padding: 30px 10px; text-align: center; color: var(--muted); }

/* ---------------- Formuláře ---------------- */
.lm-input, input[type="text"], input[type="email"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: .72rem .9rem;
  font: inherit;
  color: var(--text);
  background: rgba(12, 5, 1, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.18); }
select option { background: var(--panel-solid); color: var(--text); }
.lm-row { display: flex; gap: 10px; }
.lm-row > .lm-input, .lm-row > input { flex: 1; min-width: 0; }
.lm-field { margin-bottom: 14px; }
.lm-field label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--muted); font-size: .9rem; }

/* ---------------- Checkout ---------------- */
.lm-table { width: 100%; border-collapse: collapse; }
.lm-table th { padding: 0 10px 10px; color: var(--faint); font-size: .8rem; font-weight: 800; text-align: left; }
.lm-table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.lm-table td.lm-right, .lm-table th.lm-right { text-align: right; }
.lm-table .lm-opts { color: var(--muted); font-size: .82rem; }
.lm-show-m { display: none; }
.lm-cart-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.lm-pay { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lm-pay__text { flex: 1; min-width: 200px; color: var(--muted); }
.lm-pay__total { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.lm-coupon { display: inline-flex; align-items: center; gap: 8px; margin: 10px 8px 0 0; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(244, 80, 138, 0.14); box-shadow: inset 0 0 0 1px rgba(244, 80, 138, 0.4); font-weight: 800; font-size: .88rem; }
.lm-coupon a { color: var(--lotus-soft); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.lm-coupon a:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------------- Sidebar moduly ---------------- */
.lm-donor { display: flex; align-items: center; gap: 14px; }
.lm-donor img { width: 64px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.lm-donor__name { font-family: var(--font-display); font-weight: 600; color: var(--gold); }
.lm-donor__amount { color: var(--muted); font-size: .86rem; }

.lm-payments { display: flex; flex-wrap: wrap; gap: 6px; }
.lm-payments img { width: 34px; height: 34px; border-radius: 8px; background: rgba(0,0,0,.25); image-rendering: pixelated; }

.lm-progress { height: 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lm-progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--lotus), var(--ember) 55%, var(--gold));
  box-shadow: 0 0 14px rgba(255, 150, 40, 0.6);
}
.lm-goal__meta { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: .85rem; }
.lm-goal__meta b { color: var(--gold); }
.lm-goal__amount { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin-bottom: 10px; }
.lm-goal__amount b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--gold); text-shadow: 0 0 16px rgba(255, 170, 50, 0.35); }
.lm-goal__amount b small { font-family: var(--font-body); font-size: .72rem; font-weight: 800; color: var(--muted); text-shadow: none; }
.lm-goal__amount > span { color: var(--muted); font-size: .82rem; font-weight: 700; }

.lm-featured { text-align: center; }
.lm-featured .lm-pkg__media { max-width: 150px; margin: 0 auto 10px; }

/* ---------------- Toast ---------------- */
.lm-toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 300; transform: translateX(-50%);
  width: min(520px, calc(100% - 28px)); display: flex; gap: 12px; align-items: center;
  padding: 13px 14px 13px 16px; border-radius: var(--r);
  background: rgba(34, 15, 5, 0.95); box-shadow: inset 0 0 0 1px var(--line-hi), 0 20px 40px -12px rgba(0,0,0,.8);
  font-weight: 700; animation: lm-up .3s ease both;
}
.lm-toast--error, .lm-toast--danger { box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.6), 0 20px 40px -12px rgba(0,0,0,.8); }
.lm-toast span { flex: 1; }
.lm-toast button { border: 0; background: rgba(255,255,255,.07); color: var(--muted); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
@keyframes lm-up { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------- Modal + košík (drawer) ---------------- */
.lm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 4, 1, 0.66);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.lm-overlay.is-open { opacity: 1; visibility: visible; }

.lm-modal {
  position: fixed; left: 50%; top: 50%; z-index: 210;
  width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden;
  border-radius: 22px; background: var(--panel-solid);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 30px 60px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(244, 107, 12, .5);
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
}
.lm-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.lm-modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lm-modal__head h3 { margin: 0; font-size: 1.1rem; flex: 1; }
.lm-modal__body { padding: 20px; overflow-y: auto; }
.lm-modal__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lm-modal__foot .lm-price { margin-right: auto; font-size: 1.3rem; }
.lm-close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; }
.lm-close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.lm-gift { width: 100%; display: none; margin-top: 4px; }
.lm-gift.is-open { display: flex; }
.lm-loading { padding: 40px; text-align: center; color: var(--muted); }

.lm-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
  width: min(390px, 100%); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #34180a, var(--panel-solid) 30%, #1c0c04);
  box-shadow: -1px 0 0 var(--line-hi), -30px 0 60px -20px rgba(0,0,0,.8);
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.lm-drawer.is-open { transform: translateX(0); visibility: visible; }
.lm-drawer__head { position: relative; display: flex; align-items: flex-end; gap: 14px; padding: 20px 18px 16px; border-bottom: 1px solid var(--line); }
.lm-drawer__skin { width: 64px; margin-bottom: -16px; image-rendering: pixelated; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.lm-drawer__who { flex: 1; min-width: 0; }
.lm-drawer__who strong { display: block; font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-drawer__who small { color: var(--muted); }
.lm-drawer__head .lm-close { position: absolute; top: 14px; right: 14px; }
.lm-drawer__list { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.lm-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: rgba(255,170,90,.06); box-shadow: inset 0 0 0 1px var(--line); }
.lm-item__info { flex: 1; min-width: 0; }
.lm-item__name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-item__price { color: var(--gold); font-weight: 800; font-size: .9rem; }
.lm-item .lm-qty button { height: 32px; width: 28px; }
.lm-drawer__foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.lm-drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.lm-drawer__total b { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }

.lm-busy { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; background: rgba(10,4,1,.5); }
.lm-busy.is-on { display: grid; }
.lm-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255,210,63,.2); border-top-color: var(--gold); animation: lm-spin .8s linear infinite; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* ---------------- Patička ---------------- */
.lm-footer { border-top: 1px solid var(--line); background: rgba(10, 4, 1, 0.5); padding: 34px 0 22px; color: var(--faint); font-size: .9rem; }
.lm-footer__cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.lm-footer h4 { font-size: .95rem; margin-bottom: 10px; }
.lm-footer a { color: var(--muted); }
.lm-footer a:hover { color: var(--gold); }
.lm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lm-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.lm-footer__brand img { width: 52px; flex: none; }
.lm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------------- Responzivita ---------------- */
@media (max-width: 980px) {
  .lm-body { grid-template-columns: minmax(0, 1fr); }
  .lm-sidebar { order: 2; }
  .lm-sidebar .lm-panel--nav { display: none; }
  .lm-navbtn { display: flex; }
  .lm-sidebar__modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 18px; }
}
@media (max-width: 760px) {
  .lm-header { grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 24px; }
  .lm-header__logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 170px; }
  .lm-stat, .lm-stat--right { justify-self: stretch; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; padding: 12px; }
  .lm-stat__main { font-size: .85rem; word-break: break-all; }
  .lm-profile__text { display: none; }
  .lm-profile { padding: 6px; }
  .lm-topbar__left .lm-btn span { display: none; }
  .lm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lm-pkg { padding: 9px; }
  .lm-pkg__name { font-size: .88rem; }
  .lm-pkg__actions { flex-wrap: wrap; }
  .lm-pkg__actions .lm-btn--sq { display: none; }   /* detail se otevře klepnutím na obrázek */
  .lm-grid--list .lm-pkg { flex-wrap: wrap; }
  .lm-grid--list .lm-pkg__actions { width: 100%; }
  .lm-footer__cols { grid-template-columns: 1fr; gap: 20px; }
  .lm-table .lm-hide-m { display: none; }
  .lm-show-m { display: block; }
  .lm-row { flex-direction: column; }
  .lm-panel { padding: 16px; }
}
@media (max-width: 360px) { .lm-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .lm-panel, .lm-stat, .lm-profile { background: rgba(40, 19, 7, 0.95); }
}

/* =====================================================================
   SCÉNA NA POZADÍ – západ slunce + létající ostrovy
   ===================================================================== */
.lm-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 940px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 96%);
}
body { position: relative; }

/* obloha */
.lm-scene__sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      #140703 0%,
      #2a0d07 16%,
      #5a1c0c 26%,
      #a63d14 36%,
      #e8701f 43%,
      #ffab45 46.5%,
      #d45a1a 52%,
      #7a2a10 64%,
      #3a150a 80%,
      #1a0f05 100%);
}
/* hvězdy v tmavé části nahoře */
.lm-scene__stars {
  position: absolute;
  inset: 0 0 60% 0;
  opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 7% 22%, #ffe9d0, transparent),
    radial-gradient(1px 1px at 16% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 24% 34%, #ffd9e8, transparent),
    radial-gradient(1px 1px at 33% 14%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 41% 5%, #ffe9d0, transparent),
    radial-gradient(1px 1px at 57% 11%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 64% 28%, #ffd9e8, transparent),
    radial-gradient(1px 1px at 72% 6%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 81% 19%, #ffe9d0, transparent),
    radial-gradient(1px 1px at 89% 9%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 95% 31%, #fff, transparent),
    radial-gradient(1px 1px at 12% 41%, #ffd9e8, transparent),
    radial-gradient(1px 1px at 50% 38%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 86% 42%, #fff, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
          mask-image: linear-gradient(180deg, #000 40%, transparent);
  animation: lm-twinkle 6s ease-in-out infinite alternate;
}
@keyframes lm-twinkle { from { opacity: .45; } to { opacity: .85; } }

/* slunce za logem */
.lm-scene__sun {
  position: absolute;
  left: 50%;
  top: 185px;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 244, 196, .95) 0%,
    rgba(255, 214, 110, .85) 9%,
    rgba(255, 160, 60, .55) 20%,
    rgba(244, 107, 12, .28) 36%,
    rgba(244, 80, 138, .10) 52%,
    transparent 68%);
}
/* horizontální opar přes horizont */
.lm-scene__haze {
  position: absolute;
  left: 0; right: 0;
  top: 350px;
  height: 200px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 190, 120, .35), transparent 70%);
  filter: blur(8px);
}

/* mraky */
.lm-cloud { position: absolute; filter: drop-shadow(0 0 18px rgba(255, 170, 120, .35)); opacity: .78; image-rendering: pixelated; animation: lm-drift linear infinite; }
.lm-cloud--1 { top: 118px; left: -260px; width: 240px; animation-duration: 140s; }
.lm-cloud--2 { top: 250px; left: -200px; width: 160px; opacity: .6; animation-duration: 110s; animation-delay: -60s; }
.lm-cloud--3 { top: 64px; left: -260px; width: 180px; opacity: .35; animation-duration: 170s; animation-delay: -120s; }
.lm-cloud--4 { top: 440px; left: -260px; width: 260px; opacity: .55; animation-duration: 150s; animation-delay: -30s; }
@keyframes lm-drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 560px)); } }

/* ostrovy */
.lm-isle { position: absolute; height: auto; filter: drop-shadow(0 30px 40px rgba(20, 5, 0, .45)); animation: lm-float 9s ease-in-out infinite; }
.lm-isle--main  { left: 50%; top: 14px; width: 574px; margin-left: -287px; animation-duration: 10s; }
.lm-isle--left  { left: calc(50% - 720px); top: 150px; width: 250px; animation-duration: 8s; animation-delay: -3s; }
.lm-isle--right { left: calc(50% + 460px); top: 70px; width: 260px; animation-duration: 11s; animation-delay: -6s; }
.lm-isle--far-a { left: calc(50% - 420px); top: 36px; width: 120px; opacity: .8; filter: blur(.4px); animation-duration: 12s; animation-delay: -2s; }
.lm-isle--far-b { left: calc(50% + 250px); top: 300px; width: 110px; opacity: .7; filter: blur(.6px); animation-duration: 13s; animation-delay: -8s; }
@keyframes lm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* padající lístky sakury */
.lm-petal {
  position: absolute;
  top: 60px;
  left: calc(50% + 120px);
  width: 9px;
  height: 6px;
  border-radius: 0 6px 0 6px;
  background: linear-gradient(135deg, #ffd3e5, #f79bc0);
  opacity: 0;
  animation: lm-fall 11s linear infinite;
}
.lm-petal:nth-child(2) { left: calc(50% + 160px); animation-duration: 13s; animation-delay: -2s; }
.lm-petal:nth-child(3) { left: calc(50% + 95px);  animation-duration: 10s; animation-delay: -5s; }
.lm-petal:nth-child(4) { left: calc(50% + 190px); animation-duration: 14s; animation-delay: -8s; }
.lm-petal:nth-child(5) { left: calc(50% + 140px); animation-duration: 12s; animation-delay: -10s; }
.lm-petal:nth-child(6) { left: calc(50% + 210px); animation-duration: 15s; animation-delay: -4s; }
@keyframes lm-fall {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0); }
  10%  { opacity: .95; }
  85%  { opacity: .8; }
  100% { opacity: 0; transform: translate(-160px, 420px) rotate(540deg); }
}
.lm-petals { position: absolute; inset: 0; }

/* logo se "vznáší" nad ostrovem – silnější stín na trávu */
.lm-header__logo img { filter: drop-shadow(0 18px 18px rgba(40, 10, 0, .55)) drop-shadow(0 0 30px rgba(255, 180, 80, .35)); }

@media (max-width: 1180px) {
  .lm-isle--left  { left: -70px; }
  .lm-isle--right { left: auto; right: -80px; }
}
@media (max-width: 760px) {
  .lm-scene { height: 760px; }
  .lm-scene__sun { top: 150px; width: 460px; height: 460px; margin: -230px 0 0 -230px; }
  .lm-scene__haze { top: 240px; }
  .lm-isle--main { top: 70px; width: 330px; margin-left: -165px; }
  .lm-isle--left { top: 40px; left: -120px; width: 170px; opacity: .8; }
  .lm-isle--right { top: 20px; right: -120px; width: 170px; opacity: .8; }
  .lm-isle--far-a, .lm-isle--far-b, .lm-cloud--4 { display: none; }
  .lm-petal { left: calc(50% + 80px); }
}

/* víc místa v hlavičce, aby byl ostrov vidět celý */
.lm-header { padding-bottom: 170px; }
@media (max-width: 760px) {
  .lm-header { padding-bottom: 20px; }
  .lm-header__logo { margin-bottom: 120px; }
}
@media (min-width: 1600px) {
  .lm-isle--left  { left: calc(50% - 900px); top: 170px; width: 280px; }
  .lm-isle--right { left: calc(50% + 630px); top: 90px; width: 290px; }
}

/* =====================================================================
   ZÁŘIVÉ EFEKTY
   ===================================================================== */

/* --- světelný odlesk, který jednou za čas přejede přes prvek --- */
.lm-shine { position: relative; overflow: hidden; isolation: isolate; }
.lm-shine::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -70%;
  width: 45%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 246, 214, .0) 18%, rgba(255, 246, 214, .55) 50%, rgba(255, 246, 214, 0) 82%, transparent 100%);
  transform: skewX(-20deg);
  animation: lm-sweep 6.5s ease-in-out infinite;
}
.lm-shine--fast::after { animation-duration: 3.6s; width: 60%; }
@keyframes lm-sweep {
  0%, 60% { left: -70%; opacity: 0; }
  64%     { opacity: 1; }
  84%     { left: 135%; opacity: .85; }
  86%, 100% { left: 135%; opacity: 0; }
}
/* tlačítka: odlesk přes text, ne pod ním */
.lm-btn.lm-shine::after { mix-blend-mode: soft-light; background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .95) 50%, transparent 85%); }

/* --- TOP DONÁTOR: "legendární" karta --- */
@property --lm-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.lm-donorcard {
  position: relative;
  padding: 2px;                                 /* tloušťka zářícího okraje */
  border-radius: 18px;
  background: conic-gradient(from var(--lm-angle), #ffd23f, #fff27a, #f46b0c, #f4508a, #ffb3d1, #ffd23f);
  animation: lm-rotate 5s linear infinite, lm-aura 3.4s ease-in-out infinite;
}
@keyframes lm-rotate { to { --lm-angle: 360deg; } }
@keyframes lm-aura {
  0%, 100% { box-shadow: 0 0 10px -2px rgba(255, 190, 60, .35), 0 0 0 0 rgba(244, 80, 138, 0); }
  50%      { box-shadow: 0 0 30px 2px rgba(255, 190, 60, .55), 0 0 60px 6px rgba(244, 80, 138, .18); }
}
.lm-donorcard__inner {
  border-radius: 16px;
  padding: 18px 14px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 210, 63, .26), transparent 60%),
    radial-gradient(circle at 50% 110%, rgba(244, 80, 138, .2), transparent 60%),
    #2a1407;
}
.lm-donorcard__hero { position: relative; width: 90px; min-height: 140px; margin: 14px auto 10px; }
.lm-donorcard__hero img {
  width: 70px;
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(255, 200, 80, .45));
}
.lm-donorcard__crown {
  position: absolute;
  left: 50%;
  top: -26px;
  width: 38px;
  margin-left: -19px;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(255, 210, 63, .8));
  animation: lm-crown 2.8s ease-in-out infinite;
}
@keyframes lm-crown { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }

.lm-spark {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(var(--x), var(--y)) scale(0);
  font-size: 14px;
  line-height: 1;
  color: #fff3b0;
  text-shadow: 0 0 6px #ffd23f, 0 0 12px #f4508a;
  animation: lm-twinkle-star 2.8s ease-in-out infinite;
  animation-delay: var(--d);
  pointer-events: none;
}
@keyframes lm-twinkle-star {
  0%, 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2) rotate(0); }
  40%      { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.1) rotate(45deg); }
  70%      { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4) rotate(90deg); }
}
.lm-donorcard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(90deg, #ffd23f 0%, #ffd23f 35%, #fffbe6 50%, #ffd23f 65%, #ffd23f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: lm-text-shimmer 4s linear infinite;
}
@keyframes lm-text-shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.lm-donorcard__sub { color: var(--muted); font-size: .84rem; margin-top: 2px; }

/* --- DOPORUČENÝ balíček (má štítek z nastavení badges) --- */
.lm-pkg--hot {
  box-shadow: inset 0 0 0 1px rgba(255, 196, 80, .5);
  animation: lm-hot-pulse 3.2s ease-in-out infinite;
  overflow: hidden;
}
@keyframes lm-hot-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 196, 80, .45), 0 0 8px -2px rgba(255, 170, 40, .15); }
  50%      { box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .85), 0 0 26px -2px rgba(255, 170, 40, .45); }
}
/* světelná linka, která přejíždí po horní hraně */
.lm-pkg--hot::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, #fff27a, #ffd23f, #f4508a, transparent);
  box-shadow: 0 0 12px 1px rgba(255, 200, 80, .9);
  animation: lm-edge 3.8s ease-in-out infinite;
}
@keyframes lm-edge {
  0%, 15% { left: -40%; opacity: 0; }
  22%     { opacity: 1; }
  65%     { left: 100%; opacity: 1; }
  72%, 100% { left: 100%; opacity: 0; }
}
.lm-pkg--hot .lm-pkg__media {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 196, 71, .42), transparent 62%),
    rgba(0, 0, 0, .2);
}
.lm-pkg--hot:hover { animation-play-state: paused; }

/* štítky se jemně třpytí */
.lm-pkg__badge.lm-shine { position: absolute; overflow: hidden; }

/* --- progress bar u cílů: tekoucí proužky + odlesk --- */
.lm-progress > span {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px),
    linear-gradient(90deg, var(--lotus), var(--ember) 55%, var(--gold));
  background-size: 22.6px 22.6px, 100% 100%;
  animation: lm-stripes 1.2s linear infinite;
}
@keyframes lm-stripes { to { background-position: 22.6px 0, 0 0; } }
.lm-progress > span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: lm-bar-shine 2.6s ease-in-out infinite;
}
@keyframes lm-bar-shine { 0% { left: -40%; } 60%, 100% { left: 110%; } }

/* --- prázdné místo top donátora: karta září taky a láká "zasedni na trůn" --- */
.lm-donorcard--empty .lm-donorcard__hero img { opacity: .55; filter: grayscale(.35) drop-shadow(0 8px 10px rgba(0,0,0,.55)); }
.lm-donorcard__q {
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff3b0;
  text-shadow: 0 3px 0 #5e1a04, 0 0 18px rgba(255, 196, 71, .9);
  animation: lm-q 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lm-q { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.12); } }
.lm-donorcard__cta { margin-top: 12px; }

/* --- prázdný progress bar (cíl na 0 %) nevypadá mrtvě: přes celou dráhu jede jemný odlesk --- */
.lm-progress { position: relative; }
.lm-progress::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 120, .28), transparent);
  animation: lm-track 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lm-track { 0% { left: -30%; } 70%, 100% { left: 100%; } }

/* --- hlasovací tlačítka občas probleskne odlesk, ať lákají ke kliknutí --- */
.lm-vote { position: relative; overflow: hidden; }

/* =====================================================================
   PLYNULÉ PŘECHODY MEZI STRÁNKAMI (View Transitions)
   Místo bliknutí se stránky prolnou a hlavička s ostrovy a logem
   zůstane stát. Prohlížeče, které to neumí, načtou stránku jako dřív.
   ===================================================================== */
@view-transition { navigation: auto; }
.lm-scene  { view-transition-name: lm-scene; }
.lm-header { view-transition-name: lm-header; }
.lm-topbar { view-transition-name: lm-topbar; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }
::view-transition-group(lm-scene),
::view-transition-group(lm-header) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
/* při přechodu v rámci obchodu už položky menu/nákupů znovu "nevyjíždějí" */
.lm-noentry .lm-nav--fx > li,
.lm-noentry .lm-feed__item { animation: none !important; opacity: 1 !important; }

/* bez lístku před nadpisy panelů */
.lm-panel__title::before { display: none !important; }
