
/* Fonts, served from here rather than from Google: one origin instead of three,
   and no stylesheet in front of the files to delay them. Variable faces, so one
   file covers every weight the site uses. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 700 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mr Dafoe';
  src: url('../assets/fonts/mr-dafoe.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blossom: #e16fd6;          /* accentul lor declarat (--p-color pe site-ul live) */
  --blossom-bright: #f5c0ef;   /* accent text on dark */
  --blossom-deep: #9c2f90;     /* accent text pe paper · 6:1 */
  --night: #120d15;            /* night background */
  --night-soft: #1a1320;
  --night-raised: #231a2b;
  --paper: #fbf4f8;            /* light band */
  --paper-deep: #f3e6ee;
  --ink-paper: #251c28;
  --ink-paper-soft: #5c4a60;
  --text: #efe6f0;
  --text-soft: #ddd0e0;
  --scene-top: #191020;        /* dark body */
  --scene-mid: #160e1c;
  --scene-deep: #140d18;
  --line: rgba(240, 169, 232, 0.14);
  --line-paper: rgba(156, 47, 144, 0.18);
  --petal-coral: #f2948f;      /* logo coral, artwork only */

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 16px;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.42);
  --bevel-paper: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(156, 47, 144, 0.12);

  /* minecraft-style buttons */
  --mc-ink: #1e0a1b;
  --mc-bevel: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 2px 0 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.3), inset -2px 0 0 rgba(0, 0, 0, 0.14);
  --mc-bevel-soft: inset 0 2px 0 rgba(255, 255, 255, 0.1), inset 2px 0 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.32), inset -2px 0 0 rgba(0, 0, 0, 0.16);

  /* sakura mark, used for bullets and kickers */
  --kicker-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='5.6' rx='3.3' ry='4.8'/%3E%3Cellipse cx='12' cy='5.6' rx='3.3' ry='4.8' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='5.6' rx='3.3' ry='4.8' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='5.6' rx='3.3' ry='4.8' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='5.6' rx='3.3' ry='4.8' transform='rotate(288 12 12)'/%3E%3C/svg%3E");

  --container: 1240px;
  --nav-h: 76px;
}

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

/* ---------- Scrollbar ----------
   The thumb wears the same skin as the Minecraft buttons: petal gradient, light
   edge on top, dark edge underneath. Chrome ignores ::-webkit-scrollbar as soon
   as scrollbar-color is set on the element, so the standard properties are kept
   behind a query only engines without the pseudo element answer. */
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track {
  background: var(--scene-deep);
  border-left: 1px solid var(--line);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f490e6, #d958c9);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.34), inset 0 -2px 0 rgba(30, 10, 27, 0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f9a9ec, #e469d4);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #d958c9, #b93fa9);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: var(--scene-deep); }

@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #d958c9 var(--scene-deep); }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--scene-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Background scene ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, var(--scene-top) 0%, var(--scene-mid) 50%, var(--scene-deep) 100%);
}
canvas.sparks {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--blossom); color: var(--night); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blossom); color: var(--night);
  padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blossom-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.section { padding-block: clamp(72px, 10vw, 128px); }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blossom-bright);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

h1.display { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
h2.display { font-size: clamp(28px, 3.6vw, 44px); }
h3.display { font-size: clamp(20px, 2.2vw, 26px); }

.lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--text-soft); max-width: 62ch; }

/* ---------- Command chip ---------- */
.cmd-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  color: var(--blossom-bright);
  background: rgba(18, 13, 21, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 16px;
  box-shadow: var(--bevel);
  white-space: nowrap;
}
.cmd-chip .cmd-prefix { color: var(--text-soft); user-select: none; }
button.cmd-chip { transition: border-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-soft); }
button.cmd-chip:hover { border-color: var(--blossom); transform: translateY(-2px); }
button.cmd-chip:active { transform: scale(0.98); }

/* ---------- Minecraft-style buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 4px;
  border: 2px solid var(--mc-ink);
  font-weight: 800; font-size: 14px; letter-spacing: 0.05em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, transform 0.2s var(--ease-soft),
              box-shadow 0.2s var(--ease-soft), color 0.25s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--mc-bevel), 0 4px 0 var(--mc-ink); }
.btn:active { transform: translateY(2px); box-shadow: var(--mc-bevel), 0 1px 0 var(--mc-ink); }
.btn .btn-ico {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; flex: none;
  transition: transform 0.3s var(--ease-soft);
}
.btn:hover .btn-ico { transform: translateX(3px); }
.btn .btn-ico svg { width: 15px; height: 15px; }

.btn-blossom { background: linear-gradient(180deg, #f490e6, #d958c9); color: #33102d; }

.btn-ghost {
  background: linear-gradient(180deg, #3a2440, #2a1930);
  color: var(--text);
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
}
.btn-ghost:hover { color: #fff; box-shadow: var(--mc-bevel-soft), 0 4px 0 var(--mc-ink); }
.btn-ghost:active { box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
/* a long label wraps instead of widening the whole page on a phone */
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
/* at the very top: only a shadow gradient */
.site-nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 150%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 6, 12, 0.6) 0%, rgba(12, 6, 12, 0.24) 55%, transparent 100%);
  opacity: 1; transition: opacity 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(16, 9, 16, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.site-nav.scrolled::before { opacity: 0; }
.nav-inner {
  width: 100%; max-width: 1380px; margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: none;
  font-weight: 700; font-size: 14.5px;
  color: rgba(239, 230, 240, 0.85);
  transition: color 0.25s ease;
}
.nav-brand:hover { color: #fff; }
.nav-brand[aria-current="page"] { color: var(--blossom-bright); }
.nav-brand img { width: 40px; height: 40px; }
.nav-links {
  display: flex; align-items: center; gap: clamp(2px, 0.8vw, 10px);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  color: rgba(239, 230, 240, 0.68);
  padding: 9px 12px; border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-links a .nav-ico { width: 16px; height: 16px; flex: none; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--blossom-bright); }

.nav-pills { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid var(--mc-ink); border-radius: 4px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 14px;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.nav-pill:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--mc-bevel), 0 4px 0 var(--mc-ink); }
.nav-pill:active { transform: translateY(2px); box-shadow: var(--mc-bevel), 0 1px 0 var(--mc-ink); }
.nav-pill svg { width: 15px; height: 15px; flex: none; }
.pill-ip { background: linear-gradient(180deg, #f490e6, #d958c9); color: #33102d; }
.pill-discord {
  background: linear-gradient(180deg, #3a2440, #2a1930);
  color: var(--text);
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
}
.pill-discord:hover { box-shadow: var(--mc-bevel-soft), 0 4px 0 var(--mc-ink); }
.pill-discord:active { box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.pill-discord svg { color: var(--blossom-bright); width: 18px; height: 18px; }
.count-chip {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px; padding: 2px 8px;
  background: rgba(51, 16, 45, 0.28); color: inherit;
  font-variant-numeric: tabular-nums;
}
.pill-discord .count-chip { background: rgba(240, 169, 232, 0.14); color: var(--blossom-bright); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px;
  width: 46px; height: 46px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px auto; border-radius: 2px;
  transition: transform 0.4s var(--ease-soft), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-pills { display: none; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 100;
    flex-direction: column; justify-content: center; gap: 4px;
    background: rgba(18, 13, 21, 0.97);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-links a {
    font-family: var(--font-display); font-size: 28px; letter-spacing: 0;
    color: var(--text); padding: 12px;
    transform: translateY(18px); opacity: 0;
    transition: transform 0.55s var(--ease-out), opacity 0.4s ease, color 0.25s ease;
  }
  .nav-links a .nav-ico { width: 20px; height: 20px; }
  .nav-links a.active { color: var(--blossom-bright); }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links.open a { transform: translateY(0); opacity: 1; }
  .nav-links.open a:nth-child(1) { transition-delay: 0.06s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.14s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.18s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.22s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.26s; }
  .nav-links.open a:nth-child(7) { transition-delay: 0.3s; }
  .nav-links.open a:nth-child(8) { transition-delay: 0.34s; }
}
/* ---------- Pixel-stair divider ---------- */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 72px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 105% at 50% 40%, transparent 50%, rgba(14, 7, 14, 0.6) 100%),
    linear-gradient(180deg, rgba(20, 10, 20, 0.18) 0%, rgba(20, 10, 20, 0) 24%, rgba(20, 10, 20, 0) 62%, var(--scene-top) 98%);
}
.hero-stage {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(18px, 3vw, 44px);
}
.hero-logo { justify-self: center; }
.hero-logo img {
  width: min(440px, 62vw); height: auto;
  filter: drop-shadow(0 34px 70px rgba(20, 8, 20, 0.55));
  animation: logo-pulse 6s ease-in-out infinite; /* logo pulse */
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* hero side panels: label + value, copyable ips */
.hero-side {
  display: grid; gap: 16px; align-content: start;
  min-width: 248px;
  padding: 20px 22px;
  background: rgba(22, 12, 22, 0.58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--bevel);
  text-align: left;
}
.hs-row { display: grid; gap: 4px; padding: 0; background: none; border: 0; text-align: left; color: inherit; }
.hs-label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft);
}
.hs-value {
  font-family: var(--font-mono); font-weight: 700; font-size: 15.5px;
  color: var(--blossom-bright); line-height: 1.3;
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.hs-value.num { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.hs-value svg { width: 13px; height: 13px; color: var(--text-soft); flex: none; }
.hs-copy { cursor: pointer; font: inherit; transition: filter 0.2s ease; }
.hs-copy:hover { filter: brightness(1.18); }
.hs-copy:hover .hs-value svg { color: var(--blossom-bright); }
.box-left { justify-self: end; }
.box-right { justify-self: start; }

.hero-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--text-soft);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.25s ease;
}
.hero-cue:hover { color: var(--blossom-bright); }
.hero-cue svg { width: 16px; height: 16px; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .hero-logo { order: -1; margin-bottom: 22px; }
  .box-left, .box-right { justify-self: center; width: min(100%, 340px); min-width: 0; }
}

/* ---------- Features ---------- */
.features-head { text-align: center; max-width: 660px; margin-inline: auto; }
.features-head .kicker { justify-content: center; }
.features-head .lead { margin-inline: auto; }
.accent-word { color: var(--blossom); }

.feature-row {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
  margin-top: clamp(64px, 8vw, 110px);
}
.feature-row.rev .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--bevel);
  background: rgba(22, 14, 26, 0.6);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
}
.feature-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.feature-media.full { padding: 0; }
.feature-media.full img { width: 100%; height: 100%; object-fit: cover; }
/* photo slider */
.feature-media.slider {
  padding: 0; display: block; position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
}
.slider .slides { display: flex; height: 100%; transition: transform 0.6s var(--ease-out); }
.slider .slides img { width: 100%; height: 100%; object-fit: contain; flex: none; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 4px;
  background: linear-gradient(180deg, #3a2440, #2a1930);
  border: 2px solid var(--mc-ink);
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, color 0.25s ease;
}
.slide-btn:hover { filter: brightness(1.2); color: var(--blossom-bright); }
.slide-btn:active { transform: translateY(calc(-50% + 2px)); box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.slide-btn.prev { left: 12px; }
.slide-btn.next { right: 12px; }
.slide-btn svg { width: 17px; height: 17px; }
.slide-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.slide-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); transition: background-color 0.25s ease; }
.slide-dots span.on { background: var(--blossom); }
.feature-body h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(24px, 2.8vw, 34px);
  margin-bottom: 20px;
}
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.dot-list li {
  position: relative; padding-left: 24px;
  font-size: 15.5px; color: var(--text-soft); line-height: 1.55;
}
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px;
  background: var(--blossom);
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}
.dot-list li strong { color: var(--text); }
.dot-list .cmd-inline { font-family: var(--font-mono); font-size: 13.5px; color: var(--blossom-bright); }
@media (max-width: 900px) {
  .feature-row, .feature-row.rev { grid-template-columns: 1fr; gap: 22px; margin-top: 64px; }
  .feature-row.rev .feature-media { order: 0; }
}
/* ---------- Light band ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-split { margin-top: clamp(40px, 5vw, 64px); }
.about-p { font-size: 16.5px; color: var(--text-soft); max-width: 56ch; }
.about-p + .about-p { margin-top: 4px; }
.about-split .btn { margin-top: 14px; }
.split-visual { justify-self: center; width: 100%; max-width: 480px; }
.split-visual img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 420px; order: -1; }
}

/* ---------- Store preview (landing) ---------- */
.features-head + .preview-grid { margin-top: clamp(40px, 5vw, 64px); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); margin-bottom: clamp(36px, 5vw, 56px); }
@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.rank-ladder {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 36px;
}
.rank-step {
  font-family: var(--font-body); font-weight: 800; font-size: clamp(13px, 1.4vw, 15.5px);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text);
  background: linear-gradient(180deg, #3a2440, #2a1930);
  border: 2px solid var(--mc-ink); border-radius: 4px;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
  padding: 9px 16px;
}
.rank-step.top {
  background: linear-gradient(180deg, #f490e6, #d958c9);
  color: #33102d;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
}
.rank-arrow { color: var(--blossom); opacity: 0.7; }
.rank-arrow svg { width: 16px; height: 16px; display: block; }
.center-cta { text-align: center; }
/* ---------- Community ---------- */

.community-num {
  font-family: var(--font-display); font-weight: 800; font-size: 30px;
  color: var(--blossom-bright); font-variant-numeric: tabular-nums;
}
.community-num small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-soft); margin-left: 6px; }

/* ---------- Product cards ---------- */

.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--night-raised);
  border: 1px solid var(--line);
  box-shadow: var(--bevel);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--bevel), 0 26px 48px -22px rgba(0, 0, 0, 0.72); }
.product-img {
  aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(75% 75% at 50% 42%, rgba(225, 111, 214, 0.14), rgba(26, 19, 32, 0) 70%);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.product-img img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.8s var(--ease-out);
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-family: var(--font-body); font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price {
  font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price .was {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-soft);
  text-decoration: line-through; opacity: 0.8;
}

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 8px;
  background: var(--blossom); color: var(--night);
  box-shadow: var(--bevel);
}
.badge.badge-line { background: rgba(18, 13, 21, 0.8); color: var(--blossom-bright); border: 1px solid var(--line); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 140;
  transform: translate(-50%, 20px);
  background: var(--night-raised); color: var(--text);
  border: 1px solid rgba(225, 111, 214, 0.45); border-radius: 12px;
  box-shadow: var(--bevel), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 14.5px; font-weight: 600;
  padding: 13px 22px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
  max-width: min(92vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .cmd-inline { font-family: var(--font-mono); color: var(--blossom-bright); }

/* ---------- Footer card ---------- */
.site-footer-card { padding: clamp(24px, 3vw, 44px) 0 clamp(26px, 4vw, 44px); }
.foot-card {
  position: relative;
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel), 0 4px 0 var(--mc-ink);
}
.fc-logo {
  position: absolute; left: 30px; bottom: 16px; z-index: 2;
  /* the ratio is spelled out so the card does not jump when the art lands */
  width: 195px; aspect-ratio: 400 / 430; height: auto;
  filter: drop-shadow(0 10px 22px rgba(20, 8, 20, 0.45));
}
.fc-top {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #f49ae8, #e16fd6);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
  padding: 16px 22px 16px 252px;
}
.fc-spacer { margin-left: auto; }
.fc-block {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #3a2440, #2a1930);
  color: var(--blossom-bright);
  border: 2px solid var(--mc-ink); border-radius: 4px;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 9px 14px; text-decoration: none; cursor: pointer;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
  font-variant-numeric: tabular-nums;
}
.fc-block:hover { filter: brightness(1.2); transform: translateY(-1px); box-shadow: var(--mc-bevel-soft), 0 4px 0 var(--mc-ink); }
.fc-block:active { transform: translateY(2px); box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.fc-block svg { width: 17px; height: 17px; flex: none; }
.fc-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(180deg, #a83399, #8c2481);
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12);
  padding: 18px 26px 20px 252px;
}
.fc-legal { line-height: 1.5; }
.fc-legal strong { display: block; font-size: 14.5px; color: #fff; }
.fc-legal span { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
/* signature */
.fc-sign {
  font-family: "Mr Dafoe", cursive;
  font-size: 38px; line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none; flex: none;
  transform: rotate(-7deg);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: color 0.25s ease, transform 0.3s var(--ease-soft);
}
.fc-sign:hover { color: #fff; transform: rotate(-7deg) scale(1.06); }
@media (max-width: 760px) {
  .fc-logo { position: static; display: block; width: 150px; margin: -64px auto 0; }
  .foot-card { margin-top: 64px; }
  .fc-top { padding: 14px 16px; flex-wrap: wrap; }
  .fc-bottom { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.25fr 0.7fr 1.05fr 0.9fr; gap: clamp(24px, 3.4vw, 56px);
  padding-block: clamp(56px, 7vw, 84px) 36px;
}
.footer-connect { display: inline-flex; align-items: center; gap: 9px; }
.footer-connect svg { width: 16px; height: 16px; color: var(--blossom-bright); flex: none; }
.footer-brand img { width: 200px; margin-bottom: 16px; }
.footer-brand .footer-banner {
  display: block; margin-top: 16px; margin-bottom: 0;
  width: 100%; max-width: 320px; height: auto;
  border: 2px solid var(--mc-ink); border-radius: 4px;
  image-rendering: pixelated;
}
.footer-brand p { font-size: 14.5px; color: var(--text-soft); max-width: 36ch; }
/* footer column titles */
.site-footer h3 {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blossom-bright); margin: 0 0 18px;
}
.site-footer h3::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: currentColor;
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 5px; font-size: 14.5px; color: var(--text-soft); }
.site-footer a { color: var(--text-soft); text-decoration: none; transition: color 0.25s ease; }
.site-footer a:hover { color: var(--blossom-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(196, 179, 201, 0.65);
}
/* footer signature, smaller */
.footer-sign {
  font-size: 30px; line-height: 1;
  color: rgba(240, 169, 232, 0.72);
  margin-block: -6px;
}
.footer-sign:hover { color: var(--blossom-bright); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Wiki admin panel (/admin) ---------- */
.admin-body { min-height: 100dvh; }
.adm-login {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.adm-login-box {
  width: min(400px, 100%);
  background: var(--night-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--bevel), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  padding: clamp(28px, 5vw, 40px);
  text-align: center;
}
.adm-login-box img { margin: 0 auto 14px; }
.adm-login-box h1 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-bottom: 8px; }
.adm-login-box h1 .accent-word { color: var(--blossom); }
.adm-login-box p { font-size: 14px; color: var(--text-soft); }
.adm-login-box .mc-field { display: grid; gap: 7px; text-align: left; margin: 18px 0; }
.adm-login-box .mc-field label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft);
}
.adm-login-box input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(18, 12, 22, 0.7);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 13px;
}
.adm-login-box input:focus { outline: none; border-color: var(--blossom); }
.adm-login-box .btn { width: 100%; justify-content: center; }
.adm-error { color: #ff9db1; font-size: 13.5px; font-weight: 700; margin: 0 0 12px; }
.adm-error.adm-ok { color: var(--blossom-bright); }
.adm-hint { font-size: 12.5px; color: var(--text-soft); margin: -4px 0 14px; }

/* Change password sits over the panel, so the page list stays where it was */
.adm-pw {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10, 6, 13, 0.72);
}
.adm-pw-card { width: min(420px, 100%); text-align: left; }
.adm-pw-card h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }
.adm-pw-card > p { font-size: 14px; color: var(--text-soft); margin: 0 0 18px; }
.adm-pw-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-pw-actions .btn { flex: 1; justify-content: center; }

.adm-app { min-height: 100dvh; display: flex; flex-direction: column; }
.adm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 12, 22, 0.6);
}
.adm-brand { display: flex; align-items: center; gap: 11px; font-size: 15.5px; }
.adm-head-actions { display: flex; align-items: center; gap: 10px; }
/* the quiet button next to a primary one: panel header, editor bar, wiki back */
.more-btn {
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.more-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); border-color: rgba(240, 169, 232, 0.3); }
.more-btn:focus-visible { outline: 2px solid var(--blossom); outline-offset: 2px; }
.adm-danger.more-btn:hover { color: #ffb8c6; border-color: rgba(255, 157, 177, 0.4); }
.adm-head-actions .more-btn { text-decoration: none; }
.adm-banner {
  margin: 0; padding: 10px clamp(16px, 3vw, 32px);
  background: rgba(255, 173, 96, 0.1); color: #ffcf9e;
  border-bottom: 1px solid rgba(255, 173, 96, 0.25);
  font-size: 13.5px; font-weight: 600;
}
.adm-layout {
  flex: 1; display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: 0; align-items: stretch;
}
/* the sidebar keeps its own scroll, so the page list stays reachable however
   long the document in the editor gets */
.adm-side {
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: rgba(18, 12, 22, 0.4);
  position: sticky; top: 0; align-self: start;
  height: 100dvh; overflow: hidden;
}
.adm-side-head {
  padding: 16px 18px 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blossom-bright);
}
.adm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; display: grid; gap: 4px; align-content: start; }
.adm-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left;
  background: none; border: 1px solid transparent; border-radius: 10px;
  color: var(--text-soft); font-weight: 700; font-size: 14px;
  padding: 10px 12px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.adm-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.adm-item.active { color: var(--blossom-bright); background: rgba(225, 111, 214, 0.09); border-color: var(--line); }
.adm-item small {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-soft); opacity: 0.7; flex: none;
}
.adm-new { display: grid; gap: 8px; padding: 0 14px 14px; border-bottom: 1px solid var(--line); flex: none; }
.adm-new input {
  font: inherit; font-size: 14px; color: var(--text);
  background: rgba(18, 12, 22, 0.7);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 9px 12px;
}
.adm-new input:focus { outline: none; border-color: var(--blossom); }
.adm-new .btn { justify-content: center; font-size: 12px; padding: 9px 14px; }

.adm-main { padding: clamp(18px, 3vw, 34px); max-width: 980px; width: 100%; }
.adm-empty p { color: var(--text-soft); font-size: 15px; max-width: 52ch; }
.adm-title {
  width: 100%;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); color: var(--text);
  background: none; border: 0; border-bottom: 1.5px dashed var(--line);
  padding: 6px 2px 10px; margin-bottom: 14px;
}
.adm-title:focus { outline: none; border-bottom-color: var(--blossom); }
.adm-where { font-size: 12.5px; color: var(--text-soft); margin: -6px 0 12px; }
/* both rows in one sticky container, so on narrow screens they wrap without
   overlapping each other */
.adm-tools {
  position: sticky; top: 0; z-index: 5;
  background: var(--scene-deep);
  padding-bottom: 10px; margin-bottom: 6px;
  display: grid; gap: 6px;
}
.adm-toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: var(--night-raised);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--bevel);
  padding: 6px;
}
.adm-toolbar button {
  background: none; border: 1px solid transparent; border-radius: 7px;
  color: var(--text-soft); font-size: 12.5px; font-weight: 700;
  font-family: var(--font-body);
  padding: 7px 11px; cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.adm-toolbar button:hover:not(:disabled) { color: var(--blossom-bright); background: rgba(255, 255, 255, 0.05); }
.adm-toolbar button:disabled { opacity: 0.35; cursor: default; }
.adm-tb-sep { width: 1px; height: 18px; background: var(--line); margin-inline: 4px; }
.adm-tb-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft); padding-inline: 6px 4px;
}
.adm-blocks button { color: var(--blossom-bright); }
/* safety net: a .reveal that lands in the editor or a doc view is always
   visible, the scroll animation only lives on the static pages */
.adm-edit .reveal, .wiki-doc .reveal {
  opacity: 1 !important; transform: none !important;
}
/* accordions stay open in the editor so the owner sees everything;
   they publish folded */
.adm-edit details > div, .adm-edit details > p { display: block !important; }
.adm-edit summary { cursor: text; }
.adm-edit table { width: 100%; }
.adm-edit th, .adm-edit td { min-width: 60px; }
.adm-edit {
  min-height: 46vh;
  background: rgba(18, 12, 22, 0.5);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--bevel);
  padding: clamp(18px, 2.6vw, 30px);
}
.adm-edit:focus { outline: none; border-color: rgba(225, 111, 214, 0.5); }
/* Save rides along at the top of the sticky block: a long page should never
   mean scrolling to the bottom to keep the work. The two risky buttons stay
   down there on purpose. */
.adm-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.adm-bar .btn { font-size: 12px; padding: 10px 16px; }
.adm-bar .more-btn { text-decoration: none; }
.adm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.adm-actions .more-btn { text-decoration: none; }

/* Preview: the document inside the site's own page, in a frame of its own so
   the panel's styling cannot flatter it. */
.adm-preview {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--scene-deep);
}
.adm-preview-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px clamp(14px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 12, 22, 0.9);
}
.adm-preview-head strong {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blossom-bright);
}
.adm-preview-note { font-size: 13px; color: var(--text-soft); margin-right: auto; }
.adm-preview-frame { flex: 1; width: 100%; border: 0; background: var(--scene-deep); }
.adm-danger { color: #ff9db1; }
.adm-status { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.adm-status.ok { color: var(--blossom-bright); }
@media (max-width: 860px) {
  .adm-layout { grid-template-columns: 1fr; }
  /* on phones the sidebar scrolls with the page, sticky would cover the editor */
  .adm-side { border-right: 0; border-bottom: 1px solid var(--line); position: static; height: auto; max-height: 52vh; }
}

/* ---------- 404 ---------- */
.err-page { min-height: 100dvh; display: flex; align-items: center; text-align: center; position: relative; overflow: hidden; }
.err-page .container { max-width: 640px; position: relative; z-index: 2; }

/* ---------- Section pills (Rules, Wiki) ---------- */
.cat-nav {
  position: sticky; top: var(--nav-h); z-index: 60;
  background: rgba(18, 13, 21, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.cat-nav-track {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px clamp(20px, 4vw, 48px);
  max-width: var(--container); margin-inline: auto;
  scrollbar-width: none;
}
.cat-nav-track::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; text-decoration: none;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  color: var(--text-soft); border: 1.5px solid var(--line);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cat-nav a:hover { border-color: var(--blossom); color: var(--text); }
.cat-nav a.active { background: var(--blossom); border-color: var(--blossom); color: var(--night); }

/* ---------- Page header band ---------- */
.page-band {
  position: absolute; top: 0; left: 0; right: 0;
  height: clamp(380px, 52vh, 520px);
  overflow: hidden; z-index: 0; pointer-events: none;
}
.page-band img { width: 100%; height: 100%; object-fit: cover; }
.page-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(140% 120% at 50% 30%, transparent 55%, rgba(14, 7, 14, 0.42) 100%),
    linear-gradient(180deg, rgba(20, 10, 20, 0.3) 0%, rgba(20, 10, 20, 0.05) 30%, rgba(20, 13, 24, 0.35) 66%, var(--scene-deep) 100%);
}
.page-head {
  position: relative; z-index: 1;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(44px, 8vh, 92px)) 0 clamp(26px, 4vw, 44px);
}
.page-head .lead { margin: 18px auto 0; text-shadow: 0 1px 3px rgba(20, 8, 20, 0.7), 0 2px 14px rgba(20, 8, 20, 0.5); }
.page-head .kicker { text-shadow: 0 1px 3px rgba(20, 8, 20, 0.7); }
.page-head .cmd-chip { margin-top: 20px; }
.page-main { position: relative; z-index: 1; padding-bottom: clamp(56px, 7vw, 92px); }
.page-main .container > * + * { margin-top: 24px; }

/* banner plaque */
.banner-plaque {
  display: block; width: min(800px, calc(100% - 8px)); margin-inline: auto;
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel), 0 4px 0 var(--mc-ink), 0 24px 50px -22px rgba(0, 0, 0, 0.75);
}
.features-head + .banner-plaque { margin-top: clamp(30px, 4vw, 46px); }
.page-head .banner-plaque + .lead { margin-top: 24px; }

/* ---------- Content panel ---------- */
.content-panel {
  background: var(--night-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--bevel);
  padding: clamp(22px, 3vw, 34px);
}
.content-panel > h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(21px, 2.4vw, 27px);
  margin-bottom: 12px;
}
.content-panel > h2 .accent-word { color: var(--blossom); }
.panel-note { font-size: 14px; color: var(--text-soft); max-width: 76ch; }
.panel-note .cmd-inline { font-family: var(--font-mono); font-size: 12.5px; color: var(--blossom-bright); }

/* ---------- Rules ---------- */
.rule-group { scroll-margin-top: calc(var(--nav-h) + 72px); }
.rule-group + .rule-group { margin-top: 34px; }
.rule-group-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.rule-group-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.3vw, 26px);
}
.rule-group-head::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--blossom);
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}
.rule {
  background: var(--night-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--bevel);
  padding: clamp(18px, 2.6vw, 28px);
}
.rule + .rule { margin-top: 14px; }
.rule h3 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(17px, 1.9vw, 21px);
  margin-bottom: 14px;
}
.rule-num {
  flex: none;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  color: var(--blossom-bright);
  background: rgba(225, 111, 214, 0.1);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 9px;
  font-variant-numeric: tabular-nums;
}
.rule .dot-list { gap: 10px; }
.rule .dot-list li { font-size: 14.5px; }
.sub-list {
  list-style: none; margin: 8px 0 0; padding: 0 0 0 4px;
  display: grid; gap: 7px;
}
.sub-list li {
  position: relative; padding-left: 18px;
  font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
}
.sub-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 9px; height: 9px; opacity: 0.55;
  background: var(--blossom);
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}

/* limits table */
.table-scroll { overflow-x: auto; margin-top: 18px; }
.limits-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.limits-table th, .limits-table td {
  padding: 11px 14px; text-align: center;
  border: 1px solid rgba(240, 169, 232, 0.12);
}
.limits-table th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blossom-bright);
  background: rgba(225, 111, 214, 0.07);
}
.limits-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.limits-table td:first-child, .limits-table th:first-child { text-align: left; }
.limits-table td:first-child { font-family: var(--font-body); font-weight: 700; }

/* ---------- Accordion (FAQ + comenzi) ---------- */
.acc {
  background: rgba(18, 12, 22, 0.55);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--bevel);
  overflow: hidden;
}
.acc + .acc { margin-top: 10px; }
.acc summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px;
  font-weight: 800; font-size: 15px; color: var(--text);
  transition: color 0.22s ease, background-color 0.22s ease;
}
.acc summary:hover { color: var(--blossom-bright); background: rgba(255, 255, 255, 0.03); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; flex: none;
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  color: var(--blossom-bright);
  transition: transform 0.3s var(--ease-soft);
}
.acc[open] summary::after { content: "–"; }
.acc-body { padding: 2px 18px 16px; font-size: 14.5px; color: var(--text-soft); }
.acc-body p { margin-bottom: 0.7em; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body .cmd-inline { font-family: var(--font-mono); font-size: 13px; color: var(--blossom-bright); }

/* command rows */
.cmd-rows { display: grid; }
.cmd-row {
  display: grid; grid-template-columns: minmax(150px, 250px) 1fr;
  gap: 6px 18px; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(240, 169, 232, 0.08);
  font-size: 14px; color: var(--text-soft);
}
.cmd-row:last-child { border-bottom: 0; }
.cmd-row code { font-family: var(--font-mono); font-size: 13px; color: var(--blossom-bright); word-break: break-word; }
@media (max-width: 620px) { .cmd-row { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- Vote ---------- */
.vote-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px; margin-top: 22px;
}
.vote-card {
  background: var(--night-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--bevel);
  padding: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.vote-card:hover { transform: translateY(-6px); box-shadow: var(--bevel), 0 26px 48px -22px rgba(0, 0, 0, 0.72); }
.vote-card .vc-num {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft);
}
.vote-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.vote-card .vc-host { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-soft); word-break: break-all; }
.vote-card .btn { margin-top: 12px; font-size: 12.5px; padding: 10px 16px; }

/* ---------- Wiki documents ---------- */
/* the sanitizer strips inline styles on save, so links inside the editable
   regions take their accent from CSS instead of attributes */
[data-wiki-doc] a, .acc-body a { color: var(--blossom-bright); }
.wiki-doc { margin-top: 14px; font-size: 15px; color: var(--text-soft); }
.wiki-doc h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(19px, 2.1vw, 24px); color: var(--text);
  margin: 26px 0 10px;
}
.wiki-doc h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.8vw, 19px); color: var(--text);
  margin: 22px 0 8px;
}
.wiki-doc h4 { font-size: 15px; color: var(--text); margin: 18px 0 6px; }
/* contenteditable emits divs on line breaks, treat them as paragraphs */
.wiki-doc p, .wiki-doc > div:not(.cmd-rows):not(.cmd-row):not(.table-scroll):not(.acc-body) { margin: 0 0 0.9em; }
.wiki-doc img { max-width: 100%; height: auto; border-radius: 10px; margin: 4px 0 1em; }
.wiki-doc a { color: var(--blossom-bright); }
.wiki-doc strong, .wiki-doc b { color: var(--text); }
.wiki-doc code { font-family: var(--font-mono); font-size: 13px; color: var(--blossom-bright); }
.wiki-doc ul, .wiki-doc ol { margin: 0 0 1em; padding-left: 4px; list-style: none; display: grid; gap: 9px; }
.wiki-doc ol { counter-reset: wd; }
.wiki-doc li { position: relative; padding-left: 22px; line-height: 1.55; }
.wiki-doc ul > li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--blossom);
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}
.wiki-doc ol > li { counter-increment: wd; }
.wiki-doc ol > li::before {
  content: counter(wd); position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--blossom-bright);
}
.wiki-doc hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.wiki-doc blockquote {
  border-left: 3px solid var(--blossom);
  margin: 0 0 1em; padding: 4px 0 4px 18px;
  color: var(--text);
}

/* ---------- News (Discord bridge) ---------- */
.news-shell { max-width: 780px; margin-inline: auto; }
.news-list { display: grid; gap: 22px; }

/* search over the posts already on the page */
.news-search { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.news-field {
  flex: 1 1 240px; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #3a2440, #2a1930);
  border: 2px solid var(--mc-ink); border-radius: 4px;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
  transition: border-color 0.25s ease;
}
.news-field:focus-within { border-color: var(--blossom); }
.news-field > svg { width: 17px; height: 17px; flex: none; color: var(--blossom-bright); }
.news-search input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 15px; color: var(--text);
  background: none; border: 0; outline: none; padding: 0;
}
.news-search input::placeholder { color: var(--text-soft); opacity: 0.7; }
/* the browser has a clear cross of its own; it would sit next to ours */
.news-search input::-webkit-search-cancel-button { display: none; }
.news-clear {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0;
  color: var(--night); background: var(--blossom);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: filter 0.2s ease;
}
.news-clear:hover { filter: brightness(1.08); }
.news-clear svg { width: 12px; height: 12px; }
.news-count {
  margin: 0; flex: none;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
mark.news-hit { background: var(--blossom); color: var(--night); border-radius: 5px; padding: 0 3px; }
.news-more { display: flex; justify-content: center; margin-top: 26px; }

/* one post · the hard edge the Discord pill and the footer card wear: two
   pixels of ink, the bevel inside it, the block standing on its own shadow */
.news-post {
  background: linear-gradient(180deg, #40294a, #301e39 320px);
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel), 0 0 0 1px rgba(240, 169, 232, 0.16),
    0 5px 0 var(--mc-ink), 0 22px 40px -26px rgba(0, 0, 0, 0.8);
  padding: clamp(20px, 3vw, 28px);
}
.news-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.news-avatar { width: 40px; height: 40px; border-radius: 999px; flex: none; background: rgba(18, 12, 22, 0.6); border: 2px solid var(--mc-ink); }
.news-avatar-blank { display: block; background: linear-gradient(180deg, #f490e6, #d958c9); }
.news-who { min-width: 0; }
.news-who strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 15.5px; color: var(--text); }
.news-who time { font-size: 12.5px; color: var(--text-soft); }
.news-pin {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #33102d; background: linear-gradient(180deg, #f490e6, #d958c9);
  border: 2px solid var(--mc-ink); border-radius: 4px; padding: 3px 10px;
  box-shadow: var(--mc-bevel), 0 2px 0 var(--mc-ink);
}
.news-pin::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}

/* staff paste raw Discord links, which run to 70 characters with nothing to
   break on. Without this the longest one sets the minimum width of the page and
   a phone renders the whole site zoomed out. `anywhere` and not `break-word`,
   because only `anywhere` also shrinks the min-content size. */
.news-body, .news-embed-body, .news-files { overflow-wrap: anywhere; }

.news-body { font-size: 15.5px; color: var(--text-soft); }
.news-body p { margin: 0 0 0.85em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body strong, .news-body b { color: var(--text); }
.news-body a { color: var(--blossom-bright); font-weight: 700; }
.news-body code {
  font-family: var(--font-mono); font-size: 13px; color: var(--blossom-bright);
  background: rgba(18, 13, 21, 0.8); border-radius: 6px; padding: 1px 6px;
}
.news-body pre {
  margin: 0 0 0.85em; padding: 14px 16px; overflow-x: auto;
  background: rgba(18, 12, 22, 0.72);
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel-soft);
}
.news-body pre code { background: none; padding: 0; color: var(--text); }
.news-body blockquote {
  margin: 0 0 0.85em; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--blossom); color: var(--text);
}
/* Discord bullet and numbered lists, on the marker the rest of the site uses */
.news-items { margin: 0 0 0.85em; padding: 0 0 0 2px; list-style: none; display: grid; gap: 8px; }
.news-items li { position: relative; padding-left: 22px; line-height: 1.55; }
ul.news-items li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  background: var(--blossom);
  -webkit-mask: var(--kicker-mark) center / contain no-repeat;
  mask: var(--kicker-mark) center / contain no-repeat;
}
ol.news-items { counter-reset: ni; }
ol.news-items li { counter-increment: ni; }
ol.news-items li::before {
  content: counter(ni); position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--blossom-bright);
}
/* staff write announcements with Discord headings, so a post carries its own
   small hierarchy. It starts at h3 because the page owns h1 and h2. */
.news-body h3, .news-body h4, .news-body h5,
.news-embed-body h3, .news-embed-body h4, .news-embed-body h5 {
  font-family: var(--font-display); font-weight: 800; color: var(--text);
  letter-spacing: -0.012em; line-height: 1.25; margin: 0 0 0.5em;
}
.news-body h3 { font-size: 20px; }
.news-body h4 { font-size: 17.5px; }
.news-body h5 { font-size: 16px; }
.news-body p + h3, .news-body p + h4, .news-body p + h5 { margin-top: 1.1em; }

/* custom server emoji, sized off the line it sits on so it rides with the text */
.news-emoji { display: inline-block; width: 1.32em; height: 1.32em; vertical-align: -0.28em; margin: 0 1px; object-fit: contain; }
.news-mention { color: var(--blossom-bright); background: rgba(225, 111, 214, 0.16); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
/* a Discord timestamp takes the same chip as a mention but in the body ink: a
   date is information and a ping is a shout, and the two should not compete for
   the same eye. Digits are tabular so a ticking countdown does not jitter. */
.news-time { background: rgba(255, 255, 255, 0.07); border-radius: 6px; padding: 1px 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.news-body h3 .news-time, .news-body h4 .news-time, .news-body h5 .news-time { font-weight: inherit; padding: 0 5px; }

.news-shots { margin-top: 14px; display: grid; gap: 10px; }
.news-shots.is-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.news-shots img {
  display: block; width: 100%; height: auto;
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel-soft);
}
.news-files { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.news-files a { color: var(--blossom-bright); font-weight: 700; font-size: 14.5px; }

.news-embed {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(18, 12, 22, 0.6);
  border: 2px solid var(--mc-ink); border-left: 4px solid var(--blossom); border-radius: 6px;
  box-shadow: var(--mc-bevel-soft);
}
.news-embed h3 { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--blossom-bright); margin: 0 0 6px; }
.news-embed h3 a { color: inherit; }
.news-embed-body { font-size: 14.5px; color: var(--text-soft); }
.news-embed img { width: 100%; height: auto; border-radius: 10px; margin-top: 10px; }

/* the waiting state stands as tall as a screenful, so the footer is not drawn
   halfway up the page only to be shoved down when the posts land */
.news-state { text-align: center; padding: clamp(30px, 5vw, 56px) 20px; min-height: 62vh; }
.news-state[hidden] { min-height: 0; }
.news-state h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); color: var(--text); margin-bottom: 10px; }
.news-state p { margin: 0 auto; max-width: 48ch; color: var(--text-soft); }
.news-state a { color: var(--blossom-bright); font-weight: 700; }

/* the three newest posts, on the landing page */
.news-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(18px, 2.5vw, 30px); margin-top: clamp(34px, 4.5vw, 52px); }
.news-teaser {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #40294a, #301e39 200px);
  border: 2px solid var(--mc-ink); border-radius: 6px;
  box-shadow: var(--mc-bevel), 0 0 0 1px rgba(240, 169, 232, 0.16),
    0 5px 0 var(--mc-ink), 0 22px 40px -26px rgba(0, 0, 0, 0.8);
  padding: 22px; text-decoration: none; color: inherit;
  transition: filter 0.2s ease, transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.news-teaser:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--mc-bevel), 0 0 0 1px rgba(240, 169, 232, 0.28), 0 7px 0 var(--mc-ink), 0 26px 44px -26px rgba(0, 0, 0, 0.8); }
.news-teaser:active { transform: translateY(3px); box-shadow: var(--mc-bevel), 0 2px 0 var(--mc-ink); }
.news-teaser-when {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blossom-bright);
}
.news-teaser-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--mc-ink); border-radius: 4px; }
/* a Discord message has no title of its own, so the first few lines are the
   headline and they are cut where the card ends */
.news-teaser-text {
  margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-soft);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.news-teaser-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text); }
.news-teaser-more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-soft); }
.news-teaser:hover .news-teaser-more svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .news-teaser-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 620px) {
  .news-search { gap: 10px; }
  .news-count { width: 100%; text-align: center; }
}
