:root {
  --bg: #0e0a0b;
  --bg2: #161012;
  --surface: rgba(32, 18, 22, 0.88);
  --surface2: rgba(42, 24, 28, 0.92);
  --line: rgba(226, 61, 74, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4ecee;
  --muted: #b5a4a8;
  --red: #e23d4a;
  --red2: #ff6b7a;
  --red-deep: #9e1f2c;
  --green: #3fae78;
  --green2: #6fd4a2;
  --green-soft: rgba(63, 174, 120, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1360px;
  --font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(226, 61, 74, 0.22), transparent 58%),
    radial-gradient(700px 380px at 92% 8%, rgba(63, 174, 120, 0.14), transparent 52%),
    radial-gradient(600px 300px at 50% 100%, rgba(226, 61, 74, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, #fff 1px, transparent 1px);
  background-size: 42px 42px, 56px 56px;
  z-index: 0;
}

.float-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.float-ico {
  position: absolute;
  top: -64px;
  opacity: 0.18;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  image-rendering: pixelated;
  animation-name: float-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes float-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(-8deg);
    opacity: 0;
  }
  8% { opacity: 0.22; }
  50% {
    transform: translate3d(var(--drift, 18px), 50vh, 0) rotate(8deg);
    opacity: 0.16;
  }
  92% { opacity: 0.12; }
  100% {
    transform: translate3d(calc(var(--drift, 18px) * -0.4), 110vh, 0) rotate(-4deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-layer { display: none; }
}

a { color: var(--red2); text-decoration: none; }
a:hover { color: var(--green2); }

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--red2), var(--red) 55%, var(--red-deep));
  box-shadow: 0 0 0 4px rgba(226, 61, 74, 0.15), 0 8px 20px rgba(226, 61, 74, 0.25);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-color: rgba(226, 61, 74, 0.45);
  background: rgba(226, 61, 74, 0.12);
}

.hero {
  text-align: center;
  padding: 28px 12px 36px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--red2), #fff 45%, var(--green2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font);
  color: #fff;
  background: linear-gradient(180deg, var(--red2), var(--red));
  box-shadow: 0 10px 24px rgba(226, 61, 74, 0.28);
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn.ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-soft);
  box-shadow: none;
}
.btn.green {
  background: linear-gradient(180deg, var(--green2), var(--green));
  box-shadow: 0 10px 24px rgba(63, 174, 120, 0.25);
}
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.panel {
  background: linear-gradient(180deg, rgba(42, 22, 26, 0.94), rgba(24, 14, 17, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 22px 24px;
  margin: 16px 0;
  backdrop-filter: blur(10px);
}
.panel h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.panel > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.ip-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.ip-row code {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
  color: var(--green2);
  font-size: 1rem;
  overflow: auto;
}
.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}
.meta strong { color: var(--text); }

.grid {
  display: grid;
  gap: 14px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 18px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: rgba(226, 61, 74, 0.45);
  transform: translateY(-2px);
  color: inherit;
}
.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green2);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card .price {
  margin-top: 14px;
  color: var(--red2);
  font-weight: 800;
  font-size: 1.15rem;
}

.donate-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: start;
}
.product-list {
  display: grid;
  gap: 10px;
}
.product {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.product:hover,
.product.is-active {
  border-color: rgba(226, 61, 74, 0.5);
  background: rgba(226, 61, 74, 0.1);
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.product .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.product .ico img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}
.product .ico.g {
  background: linear-gradient(145deg, var(--green2), #1f7a4f);
}
.product .name { display: block; }
.product .desc { display: block; }

.border-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.border-card {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
}
.border-card .k {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.border-card .v {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--red2);
  line-height: 1.1;
}
.border-card .h {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.rank-list { display: grid; gap: 10px; margin: 14px 0; }
.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
}
.rank-item img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  object-fit: contain;
}
.rank-item .name { font-weight: 700; }
.rank-item .meta { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.rank-item .price { color: var(--red2); font-weight: 800; white-space: nowrap; }

.wiki-ico {
  width: 28px;
  height: 28px;
  vertical-align: -6px;
  margin-right: 6px;
  image-rendering: pixelated;
}
.product .name { font-weight: 700; }
.product .desc { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.product .cost { color: var(--red2); font-weight: 800; white-space: nowrap; }

.detail h3 { margin: 0 0 8px; }
.detail p { color: var(--muted); margin: 0 0 12px; }
.detail .warn {
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 12px 12px 0;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 12px 14px;
  font: 16px var(--font);
  outline: none;
}
.field input:focus { border-color: rgba(226, 61, 74, 0.55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips button {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 0.85rem var(--font);
  cursor: pointer;
}
.chips button:hover,
.chips button.is-active {
  color: var(--text);
  border-color: rgba(226, 61, 74, 0.55);
  background: rgba(226, 61, 74, 0.12);
}
.perk-list {
  margin: 0 0 14px;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.perk-list li { margin: 0.25rem 0; }
.product-list { max-height: 70vh; overflow: auto; padding-right: 4px; }
.wiki-panel > p { margin-bottom: 16px; }
.wiki-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}
.wiki-cat {
  --ico: none;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 128px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(226, 61, 74, 0.32);
  background:
    linear-gradient(145deg, rgba(42, 22, 26, 0.55) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.55) 100%),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.wiki-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(226, 61, 74, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.wiki-cat::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 78px;
  height: 78px;
  background-image: var(--ico);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-8deg);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.wiki-cat > * { position: relative; z-index: 1; }
.wiki-cat:hover {
  border-color: rgba(226, 61, 74, 0.7);
  background:
    linear-gradient(145deg, rgba(226, 61, 74, 0.14) 0%, rgba(0, 0, 0, 0.4) 60%),
    rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
  color: inherit;
}
.wiki-cat:hover::after {
  opacity: 0.38;
  transform: rotate(-4deg) scale(1.06);
}
.wiki-cat .n {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green2);
}
.wiki-cat h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
  letter-spacing: -0.01em;
  max-width: calc(100% - 52px);
}
.wiki-cat p {
  margin: 0;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  max-width: calc(100% - 44px);
}
.wiki-cat--accent {
  border-color: rgba(63, 174, 120, 0.55);
  background: linear-gradient(165deg, rgba(63, 174, 120, 0.18), rgba(0, 0, 0, 0.32));
}
.wiki-cat--accent::before {
  background: radial-gradient(120% 90% at 100% 100%, rgba(63, 174, 120, 0.18), transparent 55%);
}
.wiki-cat--accent:hover {
  border-color: rgba(111, 212, 162, 0.75);
  background: linear-gradient(165deg, rgba(63, 174, 120, 0.26), rgba(0, 0, 0, 0.34));
}
.wiki-cat--accent .n { color: var(--green2); }

.home-num {
  display: block;
  margin: 2px 0 2px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.home-borders .wiki-cat p,
.home-stats .wiki-cat p {
  max-width: none;
}
.home-stats .wiki-cat h3 {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: none;
  font-size: 1.15rem;
}

.pay-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  font-size: 0.95rem;
}
.pay-meta strong { color: var(--green2); }
.msg { min-height: 1.2em; font-size: 0.9rem; }
.msg.ok { color: var(--green2); }
.msg.err { color: var(--red2); }

.wiki-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
.article-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: inherit;
}
.article-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-soft);
  color: inherit;
}
.article-item .mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(226, 61, 74, 0.16);
  color: var(--red2);
}
.article-item .mark.g { background: var(--green-soft); color: var(--green2); }
.article-item h3 { margin: 4px 0 2px; font-size: 1.05rem; }
.article-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.article-item .side { color: var(--muted); font-size: 0.8rem; text-align: right; }
.featured {
  position: sticky;
  top: 16px;
  background: linear-gradient(180deg, rgba(63, 174, 120, 0.18), rgba(32, 18, 22, 0.95));
  border: 1px solid rgba(63, 174, 120, 0.35);
  border-radius: 20px;
  padding: 18px;
}
.featured .tag { margin-bottom: 12px; }
.featured h3 { margin: 0 0 8px; }
.featured p { color: var(--muted); margin: 0 0 14px; }

.article {
  max-width: 760px;
  margin: 0 auto;
}
.article .lead {
  color: var(--muted);
  font-size: 1.05rem;
}
.article .box {
  border-left: 3px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 14px 14px 0;
  padding: 12px 14px;
  margin: 18px 0;
}
.article h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}
.article ul { color: var(--muted); padding-left: 1.2em; }
.article li { margin: 6px 0; }
.toc {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
}
.toc h3 { margin: 0 0 8px; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.toc a { display: block; color: var(--text); padding: 4px 0; font-size: 0.92rem; }
.toc a:hover { color: var(--green2); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
}
.stat .k { color: var(--muted); font-size: 0.8rem; }
.stat .v { margin-top: 6px; font-weight: 800; font-size: 1.1rem; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--muted);
}
.dot.on { background: var(--green); box-shadow: 0 0 10px rgba(63, 174, 120, 0.6); }
.dot.off { background: var(--red); }

.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--red2); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(5px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(520px, 100%);
  max-height: min(90dvh, 640px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #1a1013;
  box-shadow: var(--shadow);
  padding: 18px;
}
.modal h3 { margin: 0 0 8px; }
.modal .lead { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.consent { display: grid; gap: 12px; margin-bottom: 16px; }
.consent label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

@media (max-width: 1100px) {
  .wiki-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .donate-layout,
  .wiki-row,
  .grid.cols-3,
  .grid.cols-2,
  .stats,
  .border-grid { grid-template-columns: 1fr; }
  .wiki-cats { grid-template-columns: repeat(2, 1fr); }
  .featured { position: static; }
  .article-item { grid-template-columns: 48px 1fr; }
  .article-item .side { grid-column: 2; text-align: left; }
  .top { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .rank-item { grid-template-columns: 44px 1fr; }
  .rank-item .price { grid-column: 2; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 24px); }
  .ip-row { flex-direction: column; }
  .product { grid-template-columns: 44px 1fr; }
  .product .cost { grid-column: 2; }
  .wiki-cats { grid-template-columns: 1fr; }
}

.wiki-table { width:100%; border-collapse:collapse; font-size:0.92rem; }
.wiki-table th, .wiki-table td { border-bottom:1px solid var(--line-soft); padding:8px 6px; text-align:left; }
.wiki-table th { color:var(--muted); font-weight:600; }

.legal {
  max-width: 820px;
  margin: 0 auto;
}
.legal h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  letter-spacing: -0.02em;
}
.legal .lead {
  color: var(--muted);
  margin: 0 0 10px;
}
.legal h2 {
  margin: 26px 0 10px;
  font-size: 1.08rem;
  color: var(--green2);
}
.legal ol { padding-left: 1.2em; margin: 0; }
.legal ol > li { margin: 7px 0; color: var(--text); }
.legal ul { margin: 6px 0; padding-left: 1.2em; color: var(--muted); }
.legal strong { color: var(--text); }

.close-float {
  position: fixed;
  z-index: 50;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 61, 74, 0.45);
  background: linear-gradient(180deg, rgba(42, 22, 26, 0.96), rgba(18, 10, 12, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.close-float:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 107, 122, 0.85);
  color: inherit;
}
.close-float img {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  display: block;
}
@media (max-width: 560px) {
  .close-float {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 14px;
  }
}

/* —— Home landing —— */
.page-home {
  --font-display: "Onest", var(--font);
}
.page-home .shell,
.page-home .land {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 56px;
  position: relative;
  z-index: 1;
}
.land-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 10, 11, 0.35);
  backdrop-filter: blur(10px);
}
.land-brand-nav {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.land-nav a {
  background: rgba(0, 0, 0, 0.18);
}
.land-hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: end;
  padding: 118px 0 52px;
  overflow: hidden;
}
.land-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.land-hero-img {
  position: absolute;
  right: -4%;
  bottom: -6%;
  height: min(96%, 860px);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
  will-change: opacity, transform;
  animation: land-hero-float 5.5s ease-in-out infinite;
  transform-origin: 70% 100%;
}
.land-hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(38rem, 94%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.land-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 9.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.land-brand span {
  background: linear-gradient(115deg, var(--red2) 10%, #fff 48%, #ffb4bc 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-lead {
  margin: 16px 0 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.land-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 26px;
  max-width: 32rem;
}
.land-connect-ip {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(63, 174, 120, 0.3);
  display: grid;
  gap: 4px;
}
.land-connect-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.land-connect-ip code {
  color: var(--green2);
  font-size: 1.05rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.land-cta-main {
  flex: 0 0 auto;
  min-width: 160px;
  box-shadow: 0 0 0 0 rgba(226, 61, 74, 0.45);
  animation: land-pulse 2.8s ease-in-out infinite;
}
.land-facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 36rem;
}
.land-facts li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 61, 74, 0.22);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 2px;
}
.land-facts strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.land-facts span {
  font-size: 0.75rem;
  color: var(--muted);
}
.land-panel { margin-top: 18px; }
.land-promo {
  background:
    linear-gradient(135deg, rgba(63, 174, 120, 0.18), rgba(32, 18, 22, 0.92) 55%),
    rgba(24, 14, 17, 0.92);
  border-color: rgba(63, 174, 120, 0.4);
}
.land-promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}
.land-promo .n {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green2);
}
.land-promo h2 {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.land-promo h2 em {
  font-style: normal;
  color: var(--green2);
}
.land-promo-box {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(63, 174, 120, 0.28);
}
.land-promo-box code {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green2);
  letter-spacing: 0.06em;
  text-align: center;
}
.land-promo-box .meta {
  margin: 0;
  text-align: center;
}
.land-steps .wiki-cat h3 { max-width: none; }
.land-cast {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 4px;
}
.land-cast-card {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(226, 61, 74, 0.1), rgba(0, 0, 0, 0.35)),
    rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 61, 74, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.land-cast-card:hover {
  border-color: rgba(226, 61, 74, 0.7);
  transform: translateY(-2px);
}
.land-cast-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(1.06);
}
.land-cast-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(8, 5, 6, 0.92));
  pointer-events: none;
}
.land-cast-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  gap: 2px;
}
.land-cast-card figcaption .n {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green2);
}
.land-cast-card figcaption strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.land-cast-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.15) brightness(1.05);
}

@keyframes land-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 61, 74, 0.0); }
  50% { box-shadow: 0 0 0 10px rgba(226, 61, 74, 0.12); }
}

@keyframes land-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 900px) {
  .land-hero {
    min-height: min(100svh, 780px);
    align-items: end;
    padding-bottom: 28px;
  }
  .land-hero-img {
    right: -18%;
    bottom: -2%;
    height: min(78%, 620px);
    opacity: 0.92;
  }
  .land-facts { grid-template-columns: repeat(2, 1fr); }
  .land-promo-grid { grid-template-columns: 1fr; }
  .land-cast { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .page-home .land { width: calc(100% - 24px); }
  .land-top {
    position: relative;
    top: 0;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .land-hero { padding-top: 28px; min-height: auto; }
  .land-brand { font-size: clamp(2.6rem, 14vw, 3.4rem); }
  .land-hero-img { right: -28%; height: 58%; }
  .land-connect { flex-direction: column; }
  .land-cta-main { width: 100%; }
  .land-cast { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .land-hero-img { animation: none; }
  .land-cta-main { animation: none; }
}

.sale-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  color: var(--text);
  background: #171a22;
  border: 1px solid rgba(226, 61, 74, 0.62);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
.sale-widget-mark { display: grid; place-items: center; min-width: 52px; height: 42px; color: #fff; background: var(--red, #e23d4a); border-radius: 12px; font-size: 1rem; font-weight: 800; }
.sale-widget-copy { display: grid; gap: 2px; min-width: 0; }
.sale-widget-copy strong { font-size: 0.83rem; white-space: nowrap; }
.sale-widget-copy small { color: var(--muted); font-size: 0.72rem; }
.sale-widget-link { flex: 0 0 auto; padding: 8px 10px; color: #fff; background: #2f7d63; border-radius: 10px; font-size: 0.75rem; font-weight: 800; text-decoration: none; }
.sale-widget-link:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .sale-widget { left: 14px; right: 14px; bottom: 14px; max-width: none; } .sale-widget-copy small { white-space: normal; } }
