:root {
  --bg: #070b18;
  --bg-2: #0d1430;
  --ink: #e9eef6;
  --muted: #9aa7bf;
  --silver: #dfe6ef;
  --ice: #8ec5ff;
  --ice-deep: #3d6fd8;
  --blush: #f4a7b9;
  --line: rgba(223, 230, 239, 0.12);
  --card: rgba(18, 26, 56, 0.55);
  --radius: 18px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(61, 111, 216, 0.22), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(244, 167, 185, 0.10), transparent 70%);
}
main, header, footer { position: relative; z-index: 1; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 64px);
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, 0.55);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--silver) 30%, var(--ice) 70%, var(--ice-deep));
  box-shadow: 0 0 18px rgba(142, 197, 255, 0.6);
}
.nav-links { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--sans);
}
.btn-primary {
  background: linear-gradient(135deg, var(--silver), var(--ice));
  color: #0a1024;
  box-shadow: 0 8px 30px rgba(142, 197, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(142, 197, 255, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--ice); }
.nav .btn { padding: 9px 18px; color: #0a1024; }

/* hidden Russian: hover reveals translation */
.ru {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  color: var(--blush);
  cursor: help;
  border-bottom: 1px dashed rgba(244, 167, 185, 0.5);
}
.ru::after {
  content: attr(data-en);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink);
  background: rgba(13, 20, 48, 0.95);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.ru:hover::after, .ru:focus::after { opacity: 1; transform: translate(-50%, 0); }

/* hero */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-content: center;
  padding: 80px clamp(16px, 6vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ice); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); max-width: 14ch; }
.hero h1 em { font-style: italic; background: linear-gradient(120deg, var(--silver), var(--ice) 60%, var(--blush)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 26px; max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.scroll-cue { margin-top: 70px; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* sections */
section.block { padding: clamp(70px, 10vw, 130px) clamp(16px, 6vw, 96px); max-width: 1280px; margin: 0 auto; }
.block h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 18ch; }
.block .sub { color: var(--muted); max-width: 60ch; margin-top: 18px; font-size: 1.05rem; }
.grid { display: grid; gap: 20px; margin-top: 50px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(142, 197, 255, 0.4); }
.card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--ice); letter-spacing: 0.1em; }
.card h3 { font-size: 1.7rem; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.quote {
  text-align: center;
  padding: clamp(80px, 12vw, 150px) clamp(16px, 6vw, 96px);
  max-width: 980px; margin: 0 auto;
}
.quote blockquote { font-family: var(--serif); font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.2; font-style: italic; }
.quote cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 0.95rem; }

.cta {
  margin: 0 clamp(16px, 6vw, 96px) 100px;
  max-width: 1088px;
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(142, 197, 255, 0.25), transparent 60%),
    linear-gradient(160deg, rgba(23, 33, 72, 0.9), rgba(10, 15, 34, 0.9));
  border: 1px solid var(--line);
  display: grid; gap: 22px;
}
@media (min-width: 1200px) { .cta { margin-left: auto; margin-right: auto; } }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta p { color: var(--muted); max-width: 54ch; }

footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 6vw, 96px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: var(--muted); font-size: 0.88rem;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* donate page */
.donate-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(50px, 8vw, 100px) clamp(16px, 6vw, 96px) 100px;
  display: grid; gap: clamp(30px, 6vw, 70px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .donate-wrap { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.story h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.story p { color: var(--muted); margin-top: 20px; max-width: 50ch; }
.story ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.story li { display: flex; gap: 12px; color: var(--ink); }
.story li::before { content: "✦"; color: var(--ice); }

.panel {
  background: rgba(14, 21, 48, 0.75);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 38px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.panel h2 { font-size: 1.9rem; }
.panel .muted { color: var(--muted); font-size: 0.92rem; }
.label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 1 1 auto;
  min-width: 80px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: 600 1rem var(--sans);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.chip:hover { border-color: rgba(142, 197, 255, 0.5); }
.chip[aria-pressed="true"] { border-color: var(--ice); background: rgba(142, 197, 255, 0.14); box-shadow: inset 0 0 0 1px var(--ice); }
.chip small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 1rem var(--sans);
}
.input:focus { outline: none; border-color: var(--ice); }
textarea.input { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ice); }
.err { color: #ff9fb0; font-size: 0.85rem; margin-top: 8px; min-height: 1em; }
.panel .btn-primary { width: 100%; margin-top: 26px; padding: 16px; font-size: 1.05rem; }
.panel .btn-primary[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.secure { text-align: center; font-size: 0.8rem; color: var(--muted); margin-top: 14px; }
.skeleton { height: 260px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hidden { display: none !important; }

.center-page {
  min-height: calc(100vh - 140px);
  display: grid; place-items: center; text-align: center;
  padding: 60px clamp(16px, 6vw, 96px);
}
.center-page h1 { font-size: clamp(3rem, 9vw, 6rem); }
.center-page p { color: var(--muted); margin: 18px auto 32px; max-width: 46ch; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* polish */
.err:empty { margin: 0; min-height: 0; }
#presets { display: grid; grid-template-columns: repeat(3, 1fr); }
#presets .chip { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#presets .chip:last-child:nth-child(3n+2) { grid-column: span 2; }

/* characters */
.hero { position: relative; }
.hero-copy { position: relative; z-index: 1; }
.hero-art {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 640px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-art.reveal { transform: translateY(-46%); }
.hero-art.reveal.in { transform: translateY(-50%); }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 899px) {
  .hero { padding-top: 24px; }
  .hero-art { position: relative; right: auto; top: auto; transform: none; width: min(78vw, 360px); margin: 0 auto -30px; }
  .hero-art.reveal, .hero-art.reveal.in { transform: none; }
}

.cast { display: grid; gap: 22px; margin-top: 50px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.char {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.char:hover { transform: translateY(-6px); border-color: rgba(142, 197, 255, 0.45); box-shadow: 0 20px 60px rgba(61, 111, 216, 0.25); }
.char img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.char-body { padding: 0 24px 26px; margin-top: -30px; position: relative; }
.char h3 { font-size: 2rem; }
.char .role { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.char .line { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

.story-art {
  width: min(240px, 60vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 26px;
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
.thanks-art {
  width: min(260px, 62vw);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 10px;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-art img, .story-art { animation: none; } }

/* about, links */
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 15ch; }
#about .sub + .sub { margin-top: 14px; }
a.card { display: block; color: inherit; }
.card-link { display: inline-block; margin-top: 18px; color: var(--ice); font-weight: 600; font-size: 0.92rem; }
.card .num { text-transform: uppercase; }
.links { display: grid; gap: 12px; margin-top: 40px; max-width: 720px; }
.link-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s;
}
.link-row:hover { border-color: rgba(142, 197, 255, 0.5); transform: translateX(4px); }
.link-row strong { display: block; font-weight: 600; }
.link-row small { display: block; color: var(--muted); font-size: 0.85rem; word-break: break-all; }
.link-ico { font-size: 1.4rem; width: 32px; text-align: center; }
.link-row .arrow { margin-left: auto; color: var(--ice); }

/* websites */
.tiers { display: grid; gap: 20px; margin-top: 50px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  backdrop-filter: blur(10px);
}
.tier.featured {
  border-color: rgba(142, 197, 255, 0.55);
  background: radial-gradient(120% 80% at 50% 0%, rgba(142, 197, 255, 0.16), transparent 60%), var(--card);
  box-shadow: 0 20px 60px rgba(61, 111, 216, 0.25);
}
.badge {
  position: absolute; top: -12px; left: 26px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--silver), var(--ice));
  color: #0a1024; padding: 5px 12px; border-radius: 999px;
}
.tier-name { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); }
.price { font-family: var(--serif); font-size: 3.2rem; line-height: 1; margin-top: 12px; }
.tier-sub { color: var(--muted); margin-top: 6px; }
.tier ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 0.95rem; }
.tier li::before { content: "✦"; color: var(--ice); }
.tier .btn { width: 100%; }
.howto {
  margin-top: 30px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(14, 21, 48, 0.6);
}
.howto h3 { font-size: 1.8rem; }
.howto ol { margin: 18px 0 24px 20px; display: grid; gap: 10px; color: var(--muted); }
.howto strong { color: var(--ink); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.howto strong { color: var(--ink); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.deposit {
  margin-top: 36px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid rgba(244, 167, 185, 0.4);
  background: rgba(244, 167, 185, 0.08);
  color: var(--muted);
}
.deposit strong { color: var(--blush); font-size: 1.1rem; }
.tier .price { font-size: 2.4rem; }
