/* theme.css — Blacklight SMP. Minecraft optic · night sky · aurora · UV accents. */

:root {
  --sky-top:    #0b0b22;
  --sky-mid:    #0a0a1f;
  --sky-bottom: #050510;
  --panel:      #14152f;
  --panel-2:    #0d0e22;
  --panel-3:    #0a0b1c;
  --bevel-lt:   #34376b;
  --bevel-dk:   #03030b;
  --hair:       rgba(124,140,255,.18);
  --ink:        #f3f5ff;
  --ink-dim:    #c2c6ee;
  --ink-soft:   #9498c8;
  --teal:       #2bd9a8;
  --green:      #39ff88;
  --violet:     #9b5cff;
  --cyan:       #5ce1ff;
  --uv:         #7c3aed;
  --uv-2:       #5b21b6;
  --maxw:       1140px;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sky-bottom);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

/* Global vignette + faint scanlines for the CRT/MC feel (above bg, below content) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 75% at 50% 8%, transparent 55%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px);
}

img { max-width: 100%; display: block; }
::selection { background: var(--uv); color: #fff; }

code {
  font-family: var(--pixel); font-size: .72em; color: var(--cyan);
  background: rgba(92,225,255,.1); padding: .25em .55em; border-radius: 4px;
  border: 1px solid rgba(92,225,255,.22); letter-spacing: 0;
}

a { color: var(--cyan); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green); }

.bl-skip { position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--uv); color: #fff; padding: .6em 1em; border-radius: 0 0 6px 0; }
.bl-skip:focus { left: 0; top: 0; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 2; }
.bl-section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 1.4rem; }
.bl-section--narrow { max-width: 780px; }

.bl-kicker {
  display: inline-block; font-family: var(--pixel); font-size: .58rem;
  letter-spacing: .14em; color: var(--violet); text-transform: uppercase;
  margin-bottom: 1rem; padding-left: .1em;
}
.bl-kicker--center { display: block; text-align: center; }

.bl-h2 {
  font-family: var(--pixel); font-size: clamp(1.05rem, 3.2vw, 1.85rem);
  line-height: 1.55; margin: 0 0 1.1rem; color: var(--ink); letter-spacing: .01em;
  text-shadow: 0 0 24px rgba(57,255,136,.22);
}
.bl-h2--center { text-align: center; }
.bl-h2--center::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 1.1rem auto 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--violet));
  border-radius: 3px; box-shadow: 0 0 16px rgba(92,225,255,.6);
}
.bl-h3 { font-family: var(--pixel); font-size: .8rem; line-height: 1.6;
  color: var(--teal); margin: 0 0 .8rem; letter-spacing: .01em; }
.bl-amp { color: var(--violet); }

.bl-lead { font-size: 1.1rem; color: var(--ink-dim); }
.bl-lead--center { text-align: center; max-width: 720px; margin-inline: auto; }

/* ---------- Nav ---------- */
.bl-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.4rem;
  background: linear-gradient(180deg, rgba(7,7,18,.92), rgba(7,7,18,.72));
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.bl-nav__logo { display: flex; gap: .45rem; align-items: baseline; }
.bl-logo-main { font-family: var(--pixel); font-size: .92rem; color: var(--ink);
  text-shadow: 0 0 16px rgba(124,58,237,.5); }
.bl-logo-sub  { font-family: var(--pixel); font-size: .92rem; color: var(--violet); }
.bl-nav__links { display: flex; flex-wrap: wrap; gap: 1.15rem; align-items: center; }
.bl-nav__links a { color: var(--ink-dim); font-weight: 600; font-size: .92rem;
  position: relative; }
.bl-nav__links a:hover { color: #fff; }
.bl-nav__links a:not(.bl-nav__vote):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 2px;
}
.bl-nav__vote { color: #05140d !important; background: var(--green);
  padding: .4em .8em; border-radius: 5px; font-weight: 800;
  box-shadow: 0 0 18px rgba(57,255,136,.5); }
.bl-nav__vote:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */
.bl-hero { position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: clamp(3.5rem, 10vh, 8rem) 1.4rem; }
.bl-hero--teaser { min-height: 100vh; min-height: 100svh; }
.bl-hero__inner { position: relative; max-width: 860px; width: 100%; }

/* glowing aurora burst behind the wordmark */
.bl-hero__inner::before {
  content: ""; position: absolute; left: 50%; top: 18%; transform: translate(-50%,-50%);
  width: min(680px, 92vw); height: 380px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124,58,237,.5), rgba(43,217,168,.18) 55%, transparent 75%);
  filter: blur(20px); opacity: .9;
  animation: bl-breathe 9s ease-in-out infinite;
}

.bl-wordmark { margin: 0 0 .5rem; line-height: 1.06; }
.bl-wordmark__main { display: block; font-family: var(--pixel);
  font-size: clamp(2rem, 8.5vw, 4.6rem); color: #fff;
  text-shadow: 0 0 18px rgba(155,92,255,.9), 0 0 46px rgba(92,225,255,.45),
               4px 4px 0 rgba(0,0,0,.55); }
.bl-wordmark__sub { display: block; font-family: var(--pixel);
  font-size: clamp(1rem, 3.6vw, 1.9rem); color: var(--violet);
  letter-spacing: .42em; margin: .6rem 0 0 .42em;
  text-shadow: 0 0 22px rgba(124,58,237,.7); }

.bl-tagline { font-family: var(--pixel); font-size: .66rem; color: var(--teal);
  letter-spacing: .12em; margin: .4rem 0 1.8rem; text-shadow: 0 0 14px rgba(43,217,168,.5); }
.bl-hero__pitch { font-size: 1.16rem; color: var(--ink-dim);
  max-width: 660px; margin: 0 auto 2.2rem; }
.bl-hero__lead { font-size: .82rem; color: var(--ink-soft); margin: 1.8rem 0 1.1rem;
  letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.bl-hero__lead--live { color: var(--green); font-family: var(--pixel);
  font-size: .8rem; letter-spacing: .06em;
  text-shadow: 0 0 18px rgba(57,255,136,.6); }
.bl-hero__note { color: var(--ink-soft); font-size: .92rem; margin-top: 1.4rem; }
.bl-hero__legacy { margin-top: 3.2rem; font-size: .85rem; color: var(--ink-soft); }

/* scroll hint on the teaser */
.bl-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--hair); border-radius: 14px;
  display: grid; justify-items: center; padding-top: 7px; opacity: .7; }
.bl-scroll::before { content: ""; width: 4px; height: 8px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: bl-scroll 1.8s ease-in-out infinite; }

/* ---------- Buttons (MC GUI cue) ---------- */
.bl-btn {
  display: inline-block; font-family: var(--pixel); font-size: .7rem;
  letter-spacing: .04em; padding: 1em 1.6em; cursor: pointer;
  color: #fff; text-decoration: none; position: relative;
  background: linear-gradient(180deg, #3c2d70, #241546);
  border: 2px solid; border-color: var(--bevel-lt) var(--bevel-dk) var(--bevel-dk) var(--bevel-lt);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -3px 0 rgba(0,0,0,.4),
              0 6px 18px rgba(0,0,0,.4);
  transition: transform .06s ease, filter .15s ease;
}
.bl-btn:hover { filter: brightness(1.18); color: #fff; }
.bl-btn:active { transform: translateY(2px);
  border-color: var(--bevel-dk) var(--bevel-lt) var(--bevel-lt) var(--bevel-dk); }
.bl-btn--epic {
  background: linear-gradient(180deg, #8b46ff, #4c1d95);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.4),
              0 0 30px rgba(124,58,237,.6);
  animation: bl-btnpulse 3s ease-in-out infinite;
}
.bl-btn--ghost { background: rgba(255,255,255,.03); border-color: var(--bevel-lt);
  color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(92,225,255,.15); }
.bl-btn--vote { background: linear-gradient(180deg, #25a37b, #146a4e); }
.bl-btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none;
  filter: grayscale(.5); animation: none; }

/* ---------- Panels & cards (MC bevel + gradient hairline) ---------- */
.bl-panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 2px solid; border-color: var(--bevel-lt) var(--bevel-dk) var(--bevel-dk) var(--bevel-lt);
  border-radius: 6px; padding: 1.8rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.4);
}
.bl-panel--feature { display: flex; gap: 2.2rem; align-items: center; padding: 2.6rem; }
.bl-panel--dark { background: linear-gradient(180deg, #0c0818, #06040f); }
.bl-panel__body { flex: 1; }
.bl-panel__body > p { color: var(--ink-dim); }

.bl-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--panel-3));
  border: 1px solid var(--hair); border-radius: 8px; padding: 1.6rem 1.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bl-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--violet));
  opacity: .65; transform: scaleX(.4); transform-origin: left; transition: transform .25s ease;
}
.bl-card:hover { transform: translateY(-5px); border-color: rgba(124,140,255,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(124,140,255,.25); }
.bl-card:hover::before { transform: scaleX(1); }
.bl-card p { color: var(--ink-dim); font-size: .97rem; margin: 0; }
.bl-card--aurora { box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 0 36px rgba(43,217,168,.12); }
.bl-card--wide { padding: 1.7rem; }

.bl-grid { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
.bl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bl-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .bl-grid--2, .bl-grid--3 { grid-template-columns: 1fr; }
  .bl-panel--feature { flex-direction: column; padding: 1.8rem; }
}

/* IP rows */
.bl-iprow { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.bl-ip { background: rgba(0,0,0,.4); border: 1px solid var(--hair);
  border-radius: 6px; padding: .8rem 1.1rem; }
.bl-ip__label { display: block; font-family: var(--pixel); font-size: .54rem;
  color: var(--violet); margin-bottom: .45rem; letter-spacing: .08em; }

/* Dungeons */
.bl-bosses { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.bl-boss { font-family: var(--pixel); font-size: .56rem; color: var(--ink);
  background: rgba(124,58,237,.16); border: 1px solid var(--uv);
  padding: .55em .75em; border-radius: 4px; box-shadow: 0 0 14px rgba(124,58,237,.25); }
.bl-fineprint { color: var(--ink-soft); font-size: .9rem; margin-top: 1.3rem; font-style: italic; }

/* Live state */
.bl-live { margin-top: 1.8rem; }
.bl-live__flag { font-family: var(--pixel); font-size: clamp(1.4rem, 6vw, 3rem);
  color: var(--green); text-shadow: 0 0 34px rgba(57,255,136,.7);
  margin: 0 0 1.4rem; animation: bl-pulse 2.2s ease-in-out infinite; }
.bl-live__hint { color: var(--ink-dim); margin-top: 1.1rem; font-size: .95rem; }
.bl-live__sep { opacity: .5; margin: 0 .4rem; }

/* Gallery */
.bl-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
@media (max-width: 880px) { .bl-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bl-gallery { grid-template-columns: 1fr; } }
.bl-shot { margin: 0; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #15182f, #0a0b1a); aspect-ratio: 16/9; position: relative;
  box-shadow: 0 10px 24px rgba(0,0,0,.4); transition: transform .18s ease; }
.bl-shot:hover { transform: scale(1.02); }
.bl-shot::after { content: "Screenshot coming soon"; position: absolute; inset: 0;
  display: grid; place-items: center; font-family: var(--pixel); font-size: .5rem;
  color: var(--ink-soft); letter-spacing: .1em; }
.bl-shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* Join */
.bl-join .bl-h3 { margin-bottom: 1.1rem; }
.bl-steps { margin: 0; padding-left: 1.2rem; color: var(--ink-dim); }
.bl-steps li { margin-bottom: .7rem; }
.bl-join__discord { text-align: center; margin-top: 2.2rem; color: var(--ink-dim); }

/* Vote */
.bl-vote__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.bl-vote__soon { color: var(--ink-dim); }

/* FAQ */
.bl-faq { margin-top: 2.2rem; }
.bl-faq__item { border: 1px solid var(--hair); border-radius: 8px;
  background: linear-gradient(180deg, rgba(20,21,47,.7), rgba(10,11,28,.7));
  margin-bottom: .8rem; padding: .2rem 1.2rem; transition: border-color .15s ease; }
.bl-faq__item[open] { border-color: rgba(124,140,255,.4); }
.bl-faq__item summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bl-faq__item summary::-webkit-details-marker { display: none; }
.bl-faq__item summary::after { content: "+"; font-family: var(--pixel); color: var(--cyan);
  font-size: .9rem; transition: transform .2s ease; }
.bl-faq__item[open] summary::after { transform: rotate(45deg); }
.bl-faq__item summary:hover { color: var(--green); }
.bl-faq__item p { color: var(--ink-dim); margin: 0 0 1.1rem; }

/* Trailer facade */
.bl-trailer { margin: 2.2rem auto; max-width: 840px; }
.bl-yt-facade { position: relative; aspect-ratio: 16/9; cursor: pointer;
  background-size: cover; background-position: center;
  background-color: #0a0a1c;
  border: 2px solid; border-color: var(--bevel-lt) var(--bevel-dk) var(--bevel-dk) var(--bevel-lt);
  border-radius: 8px; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.bl-yt-facade::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(0,0,0,.45)); }
.bl-yt-facade iframe { width: 100%; height: 100%; border: 0; }
/* After the facade is replaced by the player, the iframe becomes a direct child
   of .bl-trailer — keep it full-width at 16:9 instead of the default 300x150. */
.bl-trailer > iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto;
  border: 0; border-radius: 8px; background: #000; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.bl-yt-play { position: relative; width: 88px; height: 88px; border-radius: 50%; border: 0;
  background: rgba(124,58,237,.9); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(124,58,237,.18), 0 0 40px rgba(124,58,237,.7);
  transition: transform .15s ease, filter .15s ease; }
.bl-yt-facade:hover .bl-yt-play { transform: scale(1.1); filter: brightness(1.12); }
.bl-yt-triangle { width: 0; height: 0; margin-left: 6px;
  border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  border-left: 26px solid #fff; }

/* Footer */
.bl-footer { position: relative; z-index: 2; border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(7,7,18,.6), rgba(5,5,16,.95));
  padding: 3rem 1.4rem 3.5rem; margin-top: 3rem; }
.bl-footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex;
  justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.bl-footer__logo { font-family: var(--pixel); font-size: .82rem; color: var(--ink);
  display: block; margin-bottom: .5rem; }
.bl-footer__meta { color: var(--ink-soft); font-size: .85rem; }
.bl-footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.bl-footer__links a { color: var(--ink-dim); font-size: .9rem; }
.bl-footer__links a:hover { color: var(--green); }
.bl-footer__copy { max-width: var(--maxw); margin: 1.8rem auto 0; color: #686c92;
  font-size: .8rem; text-align: center; }

/* Legal pages */
.bl-legal { max-width: 780px; margin: 0 auto; padding: 6rem 1.4rem 4rem; position: relative; z-index: 2; }
.bl-legal h1 { font-family: var(--pixel); font-size: 1.3rem; color: var(--ink); margin-bottom: 1.6rem;
  text-shadow: 0 0 20px rgba(124,58,237,.5); }
.bl-legal h2 { font-family: var(--pixel); font-size: .78rem; color: var(--teal); margin: 2.2rem 0 .9rem; }
.bl-legal p, .bl-legal li { color: var(--ink-dim); }

/* ---------- Animations ---------- */
@keyframes bl-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 30px rgba(57,255,136,.6); }
  50%      { opacity: .85; text-shadow: 0 0 50px rgba(57,255,136,.95); }
}
@keyframes bl-btnpulse {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.4), 0 0 26px rgba(124,58,237,.55); }
  50%      { box-shadow: inset 0 2px 0 rgba(255,255,255,.2), inset 0 -3px 0 rgba(0,0,0,.4), 0 0 44px rgba(124,58,237,.85); }
}
@keyframes bl-breathe {
  0%, 100% { opacity: .7; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.08); }
}
@keyframes bl-scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bl-live__flag, .bl-btn--epic, .bl-hero__inner::before, .bl-scroll::before { animation: none; }
}
