/* Layout: the neon sign on the brick wall opens the page; everything below is the dark room it lights. One pink-to-orange gradient, used only where the sign would glow. Single dark look by design. */
:root {
  --bg: #120c0d;
  --surface: #1c1415;
  --raised: #251a1b;
  --fg: #f4ece9;
  --muted: #b3a29e;
  --line: #3a2a2a;
  --pink: #ff2e8a;
  --orange: #ff7a1f;
  --glow: linear-gradient(90deg, var(--pink), var(--orange));
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-y: scroll; } /* always keep the scrollbar space, so the header doesn't shift between short and long pages */
img { max-width: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: #ff8a4c; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; text-wrap: balance; margin: 0; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; max-width: 65ch; }
.label { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.neon { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(18, 12, 13, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand img { width: 2.5rem; height: 2.5rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav ul { align-items: center; }
nav li.nav-btn.first { margin-left: 8px; }
nav li.nav-btn + li.nav-btn { margin-left: -8px; }
nav a.btn { padding: 7px 14px; font-size: 0.92rem; }
nav a.btn.primary { color: #1a0a0c; box-shadow: 0 0 14px rgba(255, 70, 110, 0.3); }
nav a.btn.ghost { color: var(--fg); }
@media (max-width: 640px) { header.top nav { width: 100%; } nav li.nav-btn { order: -2; } nav li.nav-btn.first, nav li.nav-btn + li.nav-btn { margin-left: 0; } nav li.nav-btn + li.nav-btn { margin-left: -8px; } nav ul::before { content: ""; order: -1; flex-basis: 100%; height: 0; } }

/* Hero */
.hero { position: relative; background: var(--bg); }
.hero picture, .hero img.wall { display: block; width: 100%; }
.hero img.wall { max-width: 100%; height: auto; max-height: 70vh; object-fit: cover; object-position: center; }
.hero .intro .wrap { padding-block: 32px 24px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.hero .intro p { color: var(--muted); font-size: 1.15rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-family: var(--body); font-size: 1rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn.primary { background: var(--glow); color: #1a0a0c; box-shadow: 0 0 22px rgba(255, 70, 110, 0.35); }
.btn.primary:hover { box-shadow: 0 0 30px rgba(255, 110, 60, 0.55); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--orange); }

/* Sections */
section.block .wrap { padding-block: clamp(40px, 7vw, 72px); display: grid; gap: 28px; }
.head { display: grid; gap: 8px; }
.head .bar { width: 64px; height: 3px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 12px rgba(255, 70, 110, 0.6); }

/* Connect */
.connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 28px; }
.ipcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.ip { font-family: var(--mono); font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 500; font-variant-numeric: tabular-nums; user-select: all; overflow-wrap: anywhere; }
.ipcard .cta-row { justify-content: flex-start; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 0.95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
ol.steps { margin: 0; padding-left: 1.5rem; display: grid; gap: 12px; }
ol.steps li::marker { color: var(--orange); font-family: var(--mono); }
.toast { font-family: var(--mono); font-size: 0.85rem; color: var(--orange); min-height: 1.2em; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 32px 40px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature p { color: var(--muted); }

/* Menu links land below the sticky top bar instead of under it. */
section[id] { scroll-margin-top: 4.5rem; }
@media (max-width: 640px) { section[id] { scroll-margin-top: 7rem; } }

/* Rules */
ol.rules { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; }
ol.rules li { counter-increment: r; display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; padding-block: 16px; border-bottom: 1px dashed var(--line); }
ol.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--mono); color: var(--pink); font-weight: 500; padding-top: 2px; }
ol.rules strong { display: block; }
ol.rules span { color: var(--muted); }
.note { font-size: 0.9rem; color: var(--muted); }

/* Staff */
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 12px; }
.member { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; background: var(--surface); }
.rank { justify-self: start; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.rank.owner { border-color: var(--pink); color: #ff6aa8; }
.member .name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; line-height: 1.1; }

/* Discord */
.discord { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); }
.discord img { display: block; width: 100%; max-width: 100%; height: auto; }
.discord .inner { padding: clamp(24px, 5vw, 40px); display: grid; gap: 16px; }
.discord .cta-row { justify-content: flex-start; }

footer .wrap { padding-block: 28px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--fg); text-decoration-color: var(--line); }
footer a:hover { text-decoration-color: var(--orange); }
footer .coords { font-family: var(--mono); }

/* Big screens (1440p, 4K): scale the whole page up so text and the content column don't shrink to a strip. */
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2400px) { html { font-size: 137.5%; } }
@media (min-width: 3200px) { html { font-size: 175%; } }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: box-shadow .2s, border-color .2s; }
}

/* ---- Pages rendered by the site app: /rules, /guides, /faq, /events */
nav a[aria-current="page"] { color: var(--fg); box-shadow: 0 2px 0 var(--pink); }
.page-head .wrap { padding-block: clamp(36px, 6vw, 64px) 0; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.25rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; }
.rules-all { counter-reset: r; display: grid; gap: 28px; }
.rules-all ol.rules { counter-reset: none; }
.rule-cat { display: grid; gap: 4px; }
.rule-cat h3 { color: var(--orange); font-size: 1.1rem; letter-spacing: 0.06em; }
.rules-short ol.rules li { padding-block: 10px; }
.more { font-weight: 600; }
.prose { display: grid; gap: 14px; max-width: 70ch; }
.prose h3 { margin-top: 10px; color: var(--fg); }
.prose ul, .prose ol { margin: 0; padding-left: 1.4rem; display: grid; gap: 6px; }
.prose li::marker { color: var(--orange); }
.prose a { color: #ff8a4c; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 16px; }
.gcard { display: grid; gap: 8px; align-content: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; }
.gcard:hover { border-color: var(--orange); }
.gcard p { color: var(--muted); }
.gcard .go { color: #ff8a4c; font-weight: 600; font-size: 0.95rem; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 2.25rem 18px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 1.4rem; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding: 0 0 20px; color: var(--muted); }
.events { display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 5.5rem 1fr; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.event .date { display: grid; justify-items: center; align-content: start; font-family: var(--mono); text-transform: uppercase; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-align: center; }
.event .date b { font-family: var(--display); font-size: 2rem; color: var(--fg); line-height: 1.1; letter-spacing: 0; }
.event .when { font-family: var(--mono); color: var(--orange); font-size: 0.85rem; }
.event .body { display: grid; gap: 6px; min-width: 0; }
.event .prose { color: var(--muted); }
.empty-state { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 24px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.back-link:hover { color: var(--fg); }
@media (max-width: 480px) { .event { grid-template-columns: 1fr; gap: 10px; } .event .date { justify-items: start; grid-auto-flow: column; gap: 8px; align-items: baseline; } .event .date b { font-size: 1.4rem; } }

/* Sections made in the staff site's page editor (Website > Pages) */
.pb-panel { background: var(--surface); border-block: 1px solid var(--line); }
.cta-row.left { justify-content: flex-start; }
.wrap.narrow { max-width: 48rem; }
.prose h2 { margin-top: 10px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.prose p { max-width: none; }
.prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--orange); color: var(--muted); }
.a-center { text-align: center; } .a-right { text-align: right; }
.c-pink { color: #ff2e8a; } .c-orange { color: #ff7a1f; } .c-gold { color: #ffc23d; } .c-green { color: #4ade80; } .c-blue { color: #5ab4ff; } .c-muted { color: var(--muted); } .c-white { color: var(--fg); }
.pb-banner.h-short img.wall, .pb-banner.h-short video.wall { max-height: 40vh; }
.pb-banner.h-tall img.wall, .pb-banner.h-tall video.wall { max-height: 90vh; }
.hero video.wall { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.hero .pb-frame.wall { max-height: 70vh; }
/* Banner Fit: show the whole picture (no crop), or which part stays in view when it's cropped. */
.pb-banner.fit-whole img.wall, .pb-banner.fit-whole video.wall { max-height: none; height: auto; object-fit: contain; }
.pb-banner.fit-whole .pb-frame.wall { max-height: none; }
.pb-banner.at-top img.wall, .pb-banner.at-top video.wall { object-position: center top; }
.pb-banner.at-bottom img.wall, .pb-banner.at-bottom video.wall { object-position: center bottom; }
.pb-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pb-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); }
.pb-split.flip .pb-media { order: 2; }
.pb-split.nomedia { grid-template-columns: 1fr; }
.pb-media img, .pb-media video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 0 40px rgba(255, 70, 110, 0.15); }
.pb-media .pb-frame { border-radius: 10px; border: 1px solid var(--line); }
.pb-text { display: grid; gap: 18px; align-content: center; }
.pb-gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pb-gallery figure { margin: 0; display: grid; gap: 6px; }
.pb-gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.pb-gallery img, .pb-gallery video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.pb-gallery a:hover img { transform: scale(1.04); }
.pb-gallery figcaption { font-size: 0.85rem; color: var(--muted); }
.pb-video video { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.pb-video .pb-frame { border-radius: 10px; border: 1px solid var(--line); }
.pb-btns .wrap { padding-block: clamp(20px, 4vw, 36px); }
.pb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; }
.pb-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.pb-cardimg img, .pb-cardimg video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pb-cardbody { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.pb-cardbody p { color: var(--muted); }
.pb-call .wrap { padding-block: clamp(20px, 4vw, 36px); }
.pb-callout { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: clamp(18px, 3vw, 28px); border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--pink); background: var(--surface); }
.pb-callout > div:first-child { display: grid; gap: 6px; }
.pb-callout p { color: var(--muted); }
.pb-callout.tone-info { border-left-color: #5ab4ff; } .pb-callout.tone-warn { border-left-color: var(--orange); } .pb-callout.tone-good { border-left-color: #4ade80; }
.pb-spacer .wrap { padding-block: 0; }
.pb-spacer.s-small { height: 24px; } .pb-spacer.s-medium { height: 56px; } .pb-spacer.s-large { height: 112px; }
.pb-spacer { display: grid; align-items: center; }
.pb-spacer.line span { display: block; height: 2px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 12px rgba(255, 70, 110, 0.55); opacity: 0.8; }
.pb-previewbar { position: sticky; top: 0; z-index: 6; background: #5a3a00; color: #ffe2a8; text-align: center; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; }
@media (max-width: 800px) {
  .pb-split, .pb-split.flip { grid-template-columns: 1fr; }
  .pb-split.flip .pb-media { order: 0; }
  .pb-gallery, .pb-gallery.cols-3, .pb-gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .pb-gallery.cols-2, .pb-gallery.cols-3, .pb-gallery.cols-4 { grid-template-columns: 1fr; } }

/* Home page rules: drop-down sections */
.rule-drops { display: grid; gap: 10px; }
.rule-drop { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.02); }
.rule-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.rule-drop summary::-webkit-details-marker { display: none; }
.rule-drop summary h3 { color: var(--orange); font-size: 1.1rem; letter-spacing: 0.06em; margin: 0; }
.rule-drop summary small { color: var(--muted); font-family: var(--mono); font-size: 0.8rem; margin-left: auto; }
.rule-drop summary i { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin: -4px 4px 0 6px; flex: none; }
.rule-drop[open] summary i { transform: rotate(225deg); margin-top: 4px; }
.rule-drop summary:hover h3, .rule-drop summary:focus-visible h3 { color: var(--pink); }
.rule-drop summary:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; border-radius: 10px; }
.rule-drop ol.rules { padding: 0 18px 6px; border-top: 1px dashed var(--line); }
.rule-drop ol.rules li:last-child { border-bottom: 0; }
ol.rules-n li { counter-increment: none; }
ol.rules-n li::before { content: none; }
ol.rules-n .rn { font-family: var(--mono); color: var(--pink); font-weight: 500; padding-top: 2px; }
@media (max-width: 560px) { .rule-drop summary { padding: 12px 14px; } .rule-drop ol.rules { padding: 0 14px 4px; } }
