/* Build Secure Protect: one stylesheet for the whole site.
   Colours and fonts match BSP-Core's CurseForge pictures; red comes from the logo. */

:root {
  --bg: #0f1115;
  --bg-2: #14171d;
  --panel: #1a1d24;
  --line: #2a2f3a;
  --text: #e8eaf0;
  --soft: #cfd4de;
  --muted: #9aa3b5;
  --dim: #6b7180;
  --teal: #19d3b0;
  --teal-d: #0c8f78;
  --red: #ff3b3b;
  --gold: #ffd23a;
  --violet: #b58cff;
  --coral: #ff6b5c;
  --blue: #7fb2ff;
  --display: 'Silkscreen', ui-monospace, monospace;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 66px;
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
.pix { image-rendering: pixelated; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--teal); color: #06231d; padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ------------------------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.solid, .nav.scrolled { background: rgba(15, 17, 21, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav.wide .wrap { width: calc(100% - 48px); }
.brand { font: 700 20px var(--display); letter-spacing: 2px; display: flex; align-items: center; gap: 10px; flex: none; }
.brand i { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.brand small { font: 400 11px var(--display); letter-spacing: 2px; color: var(--teal); }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { font: 500 14.5px var(--body); color: var(--muted); padding: 8px 13px; position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:hover, .links a[aria-current] { color: var(--text); }
.links a:hover::after, .links a[aria-current]::after { transform: scaleX(1); }
.ip-mini { font: 500 13px var(--mono); color: var(--teal); border: 1px solid var(--teal-d); padding: 7px 12px; cursor: pointer; background: none; transition: background .2s; white-space: nowrap; }
.ip-mini:hover { background: rgba(25, 211, 176, .1); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); width: 42px; height: 42px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn i { width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: rgba(15, 17, 21, .97); backdrop-filter: blur(8px); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease); }
.drawer a { font: 700 24px var(--display); padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.drawer a[aria-current] { color: var(--teal); }
.drawer .ip-mini { margin-top: 20px; padding: 14px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.menu-open .drawer { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 900px) { .links, .nav .ip-mini { display: none; } .menu-btn { display: flex; } }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 600 15px var(--body); padding: 14px 22px; border: 1px solid var(--line); background: rgba(23, 26, 33, .75); backdrop-filter: blur(6px); transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 30px -8px rgba(255, 59, 59, .6); }
.btn.primary:hover { background: #ff5252; box-shadow: 0 12px 36px -8px rgba(255, 59, 59, .8); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #06231d; }
.btn.soon { opacity: .6; cursor: default; }
.btn.soon:hover { transform: none; border-color: var(--line); }
.btn small { font: 400 11px var(--display); letter-spacing: 1px; color: var(--gold); }
.btn img { width: 22px; height: 22px; }
.ip { display: inline-flex; align-items: stretch; border: 1px solid var(--teal-d); background: rgba(12, 143, 120, .14); backdrop-filter: blur(6px); cursor: pointer; transition: box-shadow .25s, transform .2s var(--ease); max-width: 100%; }
.ip:hover { box-shadow: 0 0 0 1px var(--teal), 0 10px 34px -10px rgba(25, 211, 176, .6); transform: translateY(-2px); }
.ip code { font: 500 15px var(--mono); padding: 14px 18px; color: var(--text); overflow-wrap: anywhere; }
.ip span { font: 700 12px var(--display); letter-spacing: 1px; background: var(--teal); color: #06231d; padding: 0 16px; display: grid; place-items: center; min-width: 96px; transition: background .2s; }
.ip.copied span { background: var(--gold); }
@media (max-width: 560px) { .ip { flex-direction: column; width: 100%; } .ip code { font-size: 13.5px; padding: 12px; text-align: center; } .ip span { padding: 10px; } }

/* ------------------------------------------------------------------ type */
section { padding: 110px 0; }
.eyebrow { font: 400 12px var(--display); letter-spacing: 3px; color: var(--teal); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
h2.big { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.lede { color: var(--muted); max-width: 660px; font-size: 17px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* page header used by rules, about, contact, guide and wiki index */
.page-head { position: relative; padding: calc(var(--nav-h) + 90px) 0 70px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-head .bg { position: absolute; inset: 0; z-index: -2; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 30s ease-in-out infinite alternate; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 17, 21, .35), rgba(15, 17, 21, .7) 60%, var(--bg)); }
.page-head h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 14px; }
.page-head .lede { color: var(--soft); font-size: 18px; }

/* ------------------------------------------------------------------ reveal */
.r { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.r.in { opacity: 1; transform: none; }
.no-js .r { opacity: 1; transform: none; }
.s1 { transition-delay: .08s; } .s2 { transition-delay: .16s; } .s3 { transition-delay: .24s; } .s4 { transition-delay: .32s; } .s5 { transition-delay: .4s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* ------------------------------------------------------------------ home */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; isolation: isolate; overflow: hidden; }
.hero .bg { position: absolute; inset: -4%; z-index: -2; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 30s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 17, 21, .55) 0%, rgba(15, 17, 21, .35) 40%, var(--bg) 96%), radial-gradient(ellipse at center, transparent 30%, rgba(15, 17, 21, .7) 100%); }
.hero-inner { padding: 110px 0 80px; min-width: 0; max-width: 100%; }
.logo-img img { width: min(460px, 80vw); margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .7)); animation: land 1.1s var(--ease) .1s both; }
@keyframes land { 0% { opacity: 0; transform: translateY(-24px) scale(1.04); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.pitch { max-width: 620px; margin: 18px auto 0; color: var(--soft); font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.reveal-up { animation: up .9s var(--ease) both; }
.d1 { animation-delay: .55s; } .d2 { animation-delay: .7s; } .d3 { animation-delay: .85s; } .d4 { animation-delay: 1s; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; font: 400 11px var(--display); letter-spacing: 3px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--teal), transparent); animation: pulse 2s infinite; transform-origin: top; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 560px) { .cta .btn { width: 100%; } .pitch { font-size: 16px; } .scroll-hint { display: none; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.pillar { background: var(--bg); padding: 38px 32px 40px; position: relative; overflow: hidden; transition: background .3s; }
.pillar:hover { background: var(--bg-2); }
.pillar .n { font: 700 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--line); position: absolute; right: 22px; top: 18px; transition: -webkit-text-stroke-color .3s; }
.pillar:hover .n { -webkit-text-stroke-color: var(--accent); }
.pillar h3 { font-size: 22px; color: var(--accent); margin: 8px 0 12px; letter-spacing: .05em; }
.pillar p { color: var(--muted); }
.pillar::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 12px; margin-top: 48px; }
.gallery figure { position: relative; overflow: hidden; background: var(--panel); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font: 400 11px var(--display); letter-spacing: 2px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transform: translateY(8px); opacity: 0; transition: .35s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .gallery figure { aspect-ratio: 16 / 10; } .gallery figure:first-child { grid-column: span 2; grid-row: auto; } .gallery figcaption { opacity: 1; transform: none; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.frame { position: relative; border: 1px solid var(--line); background: var(--panel); }
.frame img { width: 100%; }
.frame::before { content: ""; position: absolute; inset: -1px; border: 1px solid var(--teal); clip-path: polygon(0 0, 40px 0, 40px 1px, 1px 1px, 1px 40px, 0 40px, 0 100%, 40px 100%, 40px calc(100% - 1px), 1px calc(100% - 1px), 1px calc(100% - 40px), 0 calc(100% - 40px)); pointer-events: none; z-index: 1; }
.facts { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.facts li b { color: var(--text); font-weight: 600; }
.facts li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; background: var(--c, var(--teal)); box-shadow: 0 0 10px var(--c, var(--teal)); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; font: 700 13px var(--display); letter-spacing: 1px; color: var(--teal); }
.link-arrow i { transition: transform .25s var(--ease); font-style: normal; }
.link-arrow:hover i { transform: translateX(6px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.mod { border: 1px solid var(--line); background: var(--bg); padding: 24px; transition: transform .3s var(--ease), border-color .3s; position: relative; display: block; }
.mod:hover { transform: translateY(-4px); border-color: var(--c); }
.mod .ver { font: 500 12px var(--mono); color: var(--dim); }
.mod h3 { font-size: 17px; margin: 14px 0 8px; color: var(--c); }
.mod p { font-size: 14.5px; color: var(--muted); }
.mod .go { font: 700 11px var(--display); letter-spacing: 1px; margin-top: 18px; display: inline-block; opacity: .6; transition: opacity .2s; }
.mod:hover .go { opacity: 1; }
.mod .dot { position: absolute; top: 24px; right: 24px; width: 8px; height: 8px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.c-teal { --c: var(--teal); } .c-violet { --c: var(--violet); } .c-gold { --c: var(--gold); } .c-coral { --c: var(--coral); } .c-blue { --c: var(--blue); } .c-red { --c: var(--red); }

.socials { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.socials a { min-width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--line); transition: .25s var(--ease); }
.socials a:hover { border-color: var(--teal); transform: translateY(-3px); background: rgba(25, 211, 176, .08); }
.socials img { width: 24px; height: 24px; filter: invert(1); }
.socials a.discord { padding: 0 24px; background: #5865f2; border-color: #5865f2; font-weight: 600; }

/* ------------------------------------------------------------------ prose (rules, about, guide, wiki) */
.prose { color: var(--soft); font-size: 16.5px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 21px; color: var(--text); margin-top: 46px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; letter-spacing: .04em; }
.prose h2::before { content: ""; width: 8px; height: 8px; background: var(--teal); flex: none; }
.prose h3 { font: 600 18px var(--body); color: var(--text); margin-top: 28px; letter-spacing: 0; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.item):not(.slot) { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(25, 211, 176, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:not(.item):not(.slot):hover { text-decoration-color: var(--teal); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--teal); }
.prose code { font: 500 .9em var(--mono); background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 400 11px var(--display); letter-spacing: 1.5px; color: var(--dim); background: var(--bg-2); white-space: nowrap; }
.prose tbody tr { transition: background .15s; }
.prose tbody tr:hover { background: var(--panel); }
.prose .pic { margin: 22px 0; border: 1px solid var(--line); background: var(--panel); }
.prose .pic figcaption { font-size: 13.5px; color: var(--dim); padding: 10px 14px; border-top: 1px solid var(--line); }
.prose .callout, .callout { border: 1px solid var(--line); border-left: 3px solid var(--c, var(--gold)); background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--gold)) 7%, transparent), transparent 60%); padding: 14px 18px; margin: 20px 0; font-size: 15.5px; }
.callout > b:first-child, .callout > p:first-child > b:first-child { color: var(--c, var(--gold)); font: 700 12px var(--display); letter-spacing: 1px; display: block; margin-bottom: 4px; }
.note { font-size: 13.5px; color: var(--dim); }
.item { color: var(--gold); font-weight: 500; }
.item img { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; }
a.item:hover { text-decoration: underline; text-underline-offset: 3px; }
.uses { display: flex; flex-wrap: wrap; gap: 8px; }
.uses .item { display: inline-flex; align-items: center; border: 1px solid var(--line); padding: 6px 12px; background: var(--bg-2); transition: border-color .2s; }
.uses .item:hover { border-color: var(--gold); text-decoration: none; }

/* recipes */
.recipe { display: flex; align-items: center; gap: 22px; padding: 20px 22px; border: 1px solid var(--line); background: var(--bg-2); margin: 14px 0; flex-wrap: wrap; }
.recipe .kind { font: 400 11px var(--display); letter-spacing: 1.5px; color: var(--dim); width: 100%; }
.grid3 { display: grid; grid-template-columns: repeat(3, 48px); gap: 4px; }
.furnace { display: grid; gap: 6px; justify-items: center; }
.flame { width: 14px; height: 18px; background: linear-gradient(var(--gold), var(--coral)); clip-path: polygon(50% 0, 100% 60%, 80% 100%, 20% 100%, 0 60%); animation: flicker 1.4s infinite alternate; }
@keyframes flicker { to { opacity: .55; transform: scaleY(.85); } }
.slot { width: 48px; height: 48px; background: #0b0d11; border: 1px solid #2f3440; box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .5); display: grid; place-items: center; position: relative; }
.slot img { width: 32px; height: 32px; }
.slot[data-n] { cursor: help; }
a.slot { cursor: pointer; }
.slot[data-n]:hover { border-color: var(--teal); z-index: 3; }
.slot[data-n]:hover::after { content: attr(data-n); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: nowrap; background: #1d0f2e; border: 1px solid #4b1fa0; color: var(--text); font: 13px var(--body); padding: 4px 9px; pointer-events: none; }
.slot .count { position: absolute; right: 3px; bottom: 0; font: 600 13px var(--mono); font-style: normal; color: #fff; text-shadow: 1px 1px 0 #000; }
.noicon { font: 700 11px var(--display); font-style: normal; color: var(--dim); }
.tag-slot b { color: var(--violet); font: 700 16px var(--display); }
.slot.out { width: 64px; height: 64px; border-color: var(--teal-d); }
.slot.out img { width: 44px; height: 44px; }
.arrow { width: 40px; height: 4px; background: var(--dim); position: relative; }
.arrow::after { content: ""; position: absolute; right: -2px; top: 50%; translate: 0 -50%; border: 9px solid transparent; border-left-color: var(--dim); border-right: 0; }

/* rules */
.rules { display: grid; gap: 36px; }
.rule-group h2 { font-size: 20px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--c); letter-spacing: .04em; }
.rule-group h2::before { content: ""; width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.rule-list { list-style: none; counter-reset: rule var(--start, 0); display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rule-list li { counter-increment: rule; background: var(--bg); padding: 18px 22px 18px 74px; position: relative; transition: background .2s; color: var(--muted); }
.rule-list li:hover { background: var(--bg-2); }
.rule-list li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font: 700 18px var(--display); color: var(--c); opacity: .8; }
.rule-list li b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.contact-side .card { border: 1px solid var(--line); background: var(--bg-2); padding: 22px; margin-top: 16px; display: flex; gap: 16px; align-items: center; transition: border-color .2s, transform .2s var(--ease); }
.contact-side .card:hover { border-color: var(--teal); transform: translateY(-2px); }
.contact-side .card img { width: 28px; height: 28px; filter: invert(1); }
.contact-side .card b { display: block; }
.contact-side .card span { color: var(--muted); font-size: 14.5px; }
form.contact { border: 1px solid var(--line); background: var(--bg-2); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font: 400 11px var(--display); letter-spacing: 1.5px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 16px var(--body); padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 211, 176, .15); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trap { position: absolute; left: -9999px; }
.status { padding: 12px 16px; border: 1px solid; font-size: 15px; display: none; }
.status.ok { display: block; border-color: var(--teal); background: rgba(25, 211, 176, .1); }
.status.err { display: block; border-color: var(--coral); background: rgba(255, 107, 92, .1); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } form.contact { padding: 20px; } }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
.spec { border: 1px solid var(--line); background: var(--bg-2); }
.spec h3 { font-size: 13px; letter-spacing: 1.5px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec dl { display: grid; grid-template-columns: auto 1fr; font-size: 14.5px; }
.spec dt, .spec dd { padding: 9px 18px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--dim); font: 400 10.5px var(--display); letter-spacing: 1px; padding-top: 12px; }
.spec dd:last-of-type, .spec dt:last-of-type { border-bottom: 0; }
.voltz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.voltz img { aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.placeholder { border: 1px dashed var(--gold); color: var(--gold); padding: 16px 18px; font-size: 15px; background: rgba(255, 210, 58, .05); }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* ------------------------------------------------------------------ docs layout (guide + wiki) */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); padding-top: var(--nav-h); min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--bg-2); position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: auto; padding: 18px 14px 48px; scrollbar-width: thin; }
.side h4 { font: 400 11px var(--display); letter-spacing: 2px; color: var(--dim); margin: 22px 10px 8px; }
.side h4:first-child { margin-top: 4px; }
.side details { margin-bottom: 2px; }
.side summary { list-style: none; cursor: pointer; padding: 6px 10px; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.side summary::-webkit-details-marker { display: none; }
.side summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); rotate: -45deg; transition: rotate .2s; flex: none; }
.side details[open] > summary::before { rotate: 45deg; }
.side summary:hover { background: var(--panel); }
.side ul { list-style: none; margin: 2px 0 8px 18px; border-left: 1px solid var(--line); }
.side li a { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 14px; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .15s, border-color .15s; }
.side li a:hover { color: var(--text); }
.side li a[aria-current] { color: var(--teal); border-color: var(--teal); background: linear-gradient(90deg, rgba(25, 211, 176, .08), transparent); }
.side li img { width: 16px; height: 16px; }
.side .dot { width: 7px; height: 7px; flex: none; background: var(--c); }
.side .flat a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; font-size: 14.5px; color: var(--muted); border-left: 2px solid transparent; }
.side .flat a span { font: 400 11px var(--display); color: var(--dim); }
.side .flat a:hover { color: var(--text); }
.side .flat a[aria-current] { color: var(--teal); border-color: var(--teal); background: linear-gradient(90deg, rgba(25, 211, 176, .08), transparent); }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 34px 48px 90px; max-width: 1260px; animation: up .5s var(--ease) both; }
.doc.noinfo { grid-template-columns: minmax(0, 760px) 220px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { font: 500 12px var(--mono); padding: 3px 10px; border: 1px solid var(--line); color: var(--muted); }
.tag.mod { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); }
.doc .lead { font-size: 18px; color: var(--soft); margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; margin-top: 60px; gap: 12px; }
.pager a { flex: 1; border: 1px solid var(--line); padding: 14px 18px; transition: border-color .2s, transform .2s var(--ease); }
.pager a:hover { border-color: var(--teal); transform: translateY(-2px); }
.pager small { display: block; font: 400 10px var(--display); letter-spacing: 1.5px; color: var(--dim); }
.pager .next { text-align: right; }
.ver { margin-top: 36px; font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 14px; }

.infobox { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; border: 1px solid var(--line); background: var(--bg-2); }
.infobox .title { font: 700 14px var(--display); letter-spacing: 1px; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.infobox .title img { width: 24px; height: 24px; }
.infobox .pic { background: radial-gradient(circle at 50% 60%, #1d2a2a, #0d0f13); border-bottom: 1px solid var(--line); overflow: hidden; }
.infobox .pic img { width: 100%; transition: transform 1.4s var(--ease); }
.infobox:hover .pic img { transform: scale(1.05); }
.infobox dl { display: grid; grid-template-columns: auto 1fr; font-size: 14px; }
.infobox dt, .infobox dd { padding: 9px 16px; border-bottom: 1px solid var(--line); }
.infobox dt { color: var(--dim); font: 400 10.5px var(--display); letter-spacing: 1px; padding-top: 12px; text-transform: uppercase; }
.infobox dd code { font: 500 12px var(--mono); color: var(--muted); word-break: break-all; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
.toc h4 { font: 400 11px var(--display); letter-spacing: 2px; color: var(--dim); margin-bottom: 10px; }
.toc a { display: block; color: var(--muted); padding: 4px 0 4px 12px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.on { color: var(--teal); border-color: var(--teal); }
.infobox + .toc { display: none; }

.side-toggle { display: none; }
.infobox.narrow { display: none; }
@media (max-width: 1180px) { .doc, .doc.noinfo { grid-template-columns: minmax(0, 1fr); padding: 28px 28px 70px; } .infobox.wide { display: none; } .infobox.narrow { display: block; position: static; max-width: 440px; margin: 20px 0 8px; } .toc { display: none; } }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: var(--nav-h) auto 0 0; width: min(320px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: 20px 0 40px rgba(0, 0, 0, .5); }
  .side-open .side { transform: none; }
  .side-toggle { display: flex; align-items: center; gap: 10px; position: sticky; top: var(--nav-h); z-index: 30; width: 100%; background: rgba(20, 23, 29, .95); backdrop-filter: blur(8px); border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; font: 400 12px var(--display); letter-spacing: 1.5px; color: var(--muted); cursor: pointer; }
  .side-toggle i { width: 14px; height: 10px; border-block: 2px solid currentColor; position: relative; }
  .side-toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; }
  .doc, .doc.noinfo { padding: 22px 16px 60px; }
}

/* section and index cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.card-link { border: 1px solid var(--line); background: var(--bg-2); padding: 20px 22px; display: block; position: relative; transition: border-color .25s, transform .25s var(--ease), background .25s; }
.card-link:hover { border-color: var(--c, var(--teal)); transform: translateY(-3px); background: var(--panel); }
.card-link h3 { font-size: 15px; letter-spacing: .04em; margin-bottom: 8px; padding-right: 30px; color: var(--c, var(--text)); display: flex; align-items: center; gap: 10px; }
.card-link h3 img { width: 22px; height: 22px; }
.card-link p { color: var(--muted); font-size: 14.5px; }
.card-link .num { position: absolute; top: 16px; right: 18px; font: 700 13px var(--display); color: var(--dim); }
.wiki-group { margin-top: 54px; }
.wiki-group > h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.wiki-group > h2::before { content: ""; width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* ------------------------------------------------------------------ search */
.search { position: relative; flex: 1; max-width: 460px; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: 15px var(--body); padding: 9px 40px 9px 36px; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(25, 211, 176, .15); }
.search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 10px; height: 10px; border: 2px solid var(--dim); border-radius: 50%; translate: 0 -62%; }
.search::after { content: ""; position: absolute; left: 23px; top: 50%; width: 6px; height: 2px; background: var(--dim); rotate: 45deg; translate: 0 4px; }
.search kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line); padding: 0 6px; }
.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-height: 70vh; overflow: auto; display: none; z-index: 60; }
.results.open { display: block; animation: up .2s var(--ease); }
.results a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.sel { background: var(--bg-2); }
.results b { display: block; font-weight: 600; }
.results b mark { background: none; color: var(--teal); }
.results small { color: var(--dim); font: 400 10px var(--display); letter-spacing: 1px; }
.results p { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .none { padding: 14px; color: var(--muted); font-size: 14px; }
.search.mobile { display: none; }
@media (max-width: 900px) { .nav .search { display: none; } .search.mobile { display: block; max-width: none; margin: 0 0 20px; } }

/* ------------------------------------------------------------------ footer + toast */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
.docs + footer { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; opacity: 0; background: var(--panel); border: 1px solid var(--teal); padding: 12px 18px; font: 500 14px var(--body); transition: .35s var(--ease); z-index: 100; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .r { opacity: 1; transform: none; }
}
.about-aside .ip { flex-direction: column; }
.about-aside .ip code { text-align: center; font-size: 13.5px; }
.about-aside .ip span { padding: 10px; }

/* ------------------------------------------------------------------ one-page play guide */
.steps-wrap { padding-top: 40px; }
.steps { display: grid; gap: 0; max-width: 980px; position: relative; }
.steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--teal), var(--red) 45%, var(--gold) 65%, var(--teal)); opacity: .35; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; padding: 34px 0; position: relative; }
.step + .step { border-top: 1px solid var(--line); }
.step-n { width: 64px; height: 64px; display: grid; place-items: center; font: 700 22px var(--display); color: var(--c, var(--teal)); background: var(--bg); border: 1px solid color-mix(in srgb, var(--c, var(--teal)) 60%, transparent); box-shadow: 0 0 24px -6px var(--c, var(--teal)); position: relative; z-index: 1; }
.step h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; color: var(--text); }
.step p { color: var(--soft); max-width: 680px; font-size: 16.5px; }
.step p + p { margin-top: 12px; }
.step b { color: var(--text); font-weight: 600; }
.step .facts { margin-top: 20px; }
.step-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.servers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.server { position: relative; overflow: hidden; border: 1px solid var(--line); padding: 54px 16px 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--b) 85%, transparent), var(--bg-2) 75%); transition: transform .3s var(--ease), border-color .3s; }
.server::before { content: ""; position: absolute; top: 16px; left: 16px; width: 22px; height: 22px; background: var(--a); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 18px var(--a); }
.server:hover { transform: translateY(-4px); border-color: var(--a); }
.server h3 { font-size: 15px; letter-spacing: .06em; color: var(--a); overflow-wrap: anywhere; }
.server p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.server p:empty { display: none; }
@media (max-width: 860px) { .servers { grid-template-columns: 1fr 1fr; } .step-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .server h3 { font-size: 11px; letter-spacing: 0; overflow-wrap: normal; } .server { padding: 48px 12px 14px; } .server::before { left: 12px; } .step { grid-template-columns: 1fr; gap: 14px; } .steps::before { display: none; } .step-n { width: 48px; height: 48px; font-size: 18px; } }
