/* Acolytes of Fire - site styles. Palette follows the crest and the base44 demo: ember orange on near-black. */
:root {
  --bg: #0d0d0f;
  --surface: #141418;
  --surface-2: #1c1c22;
  --line: #2a2a35;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #e8500a;
  --accent-2: #ff6b35;
  --crimson: #c0272d;
  --discord: #5865f2;
  --parch: #ecdcc0;
  --parch-2: #f6ecd8;
  --ink: #3a1d12;
  --online: #3ddc84;
  --busy: #f5b942;
  --radius: 14px;
  --wrap: 1160px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font: 600 .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(232, 80, 10, .14); color: #ffd2bd; padding: .1em .45em; border-radius: 6px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 15, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-text { font: 700 1.05rem/1.1 var(--font-display); letter-spacing: .04em; white-space: nowrap; }
.brand-text small { display: block; font: 500 .68rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2a1612, #131316 70%); box-shadow: 0 0 0 2px rgba(232, 80, 10, .65); flex: none; }
.badge img { width: 90%; height: 90%; object-fit: contain; }
.badge-sm { width: 44px; height: 44px; }
.badge-md { width: 72px; height: 72px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn), .nav .soon { padding: .5rem .7rem; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.nav .btn { white-space: nowrap; }
.nav a:not(.btn):hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--accent-2); }
.nav .soon { color: #6b7280; cursor: default; }
.nav .soon::after { content: 'soon'; margin-left: .4rem; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid #3a3a46; border-radius: 99px; padding: 0 .4rem; vertical-align: middle; }
.nav .btn { margin-left: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); content: ''; margin: auto; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 6px 24px rgba(232, 80, 10, .35); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta.center { justify-content: center; margin-top: 1.5rem; }
.copy { font: 600 .78rem/1 ui-monospace, Menlo, Consolas, monospace; color: #ffd2bd; background: rgba(232, 80, 10, .12); border: 1px dashed rgba(232, 80, 10, .5); padding: .45rem .65rem; border-radius: 8px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy:hover { background: rgba(232, 80, 10, .22); }
.copy.done { border-style: solid; color: var(--online); border-color: var(--online); }

/* ---- hero ---- */
.hero { position: relative; isolation: isolate; min-height: clamp(560px, 84vh, 880px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; filter: brightness(1.45) saturate(1.15) contrast(1.05); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 13, 15, .86) 0%, rgba(13, 13, 15, .5) 48%, rgba(13, 13, 15, .08) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 26%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: 2.5rem; align-items: center; padding-block: 3rem; }
.medallion { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; margin-bottom: 1.2rem; background: radial-gradient(circle at 50% 40%, #2a1612, #131316 72%); box-shadow: 0 0 0 3px rgba(232, 80, 10, .7), 0 0 70px rgba(232, 80, 10, .45); }
.medallion img { width: 92%; height: 92%; object-fit: contain; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .7); margin-bottom: .3em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; color: #f0f0f4; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.find { margin-top: 1.3rem; color: var(--muted); font-size: .92rem; }
.hero-card { background: rgba(20, 20, 24, .74); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
.big-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .6rem; }
.big-numbers strong { display: block; font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-display); color: #fff; }
.big-numbers strong small { font-size: .5em; color: var(--muted); }
.big-numbers span { color: var(--muted); font-size: .85rem; }
.daynight { margin: 1rem 0 .3rem; padding: .7rem .9rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; }
.daynight .phase { font-weight: 700; margin-right: .35rem; }
.daynight.is-day { border-color: rgba(245, 185, 66, .45); }
.daynight.is-night { border-color: rgba(88, 101, 242, .5); }

/* ---- status dots ---- */
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; display: inline-block; flex: none; }
.dot.online { background: var(--online); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.4s infinite; }
.dot.busy { background: var(--busy); }
.dot.off { background: #ef4444; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---- sections ---- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .3em; }
.section-head h2::after { content: ''; display: block; width: 56px; height: 3px; margin-top: .6rem; border-radius: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.notice { padding: .9rem 1.1rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); }
.notice.demo { color: var(--busy); border-color: rgba(245, 185, 66, .5); }

/* ---- map grid ---- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.map-grid.stale { opacity: .55; }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.05rem; display: grid; gap: .55rem; transition: border-color .15s, transform .15s; }
.map-card:hover { border-color: rgba(232, 80, 10, .6); transform: translateY(-2px); }
.map-card header { display: flex; align-items: center; gap: .55rem; }
.map-card h3 { margin: 0; font-size: 1rem; }
.map-state { margin: 0; color: var(--muted); font-size: .88rem; }
.map-card .copy { justify-self: start; white-space: normal; overflow-wrap: anywhere; text-align: left; font-size: .72rem; line-height: 1.3; }

/* ---- cards ---- */
.cards { display: grid; gap: 1.1rem; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.section.alt .card { background: var(--surface-2); }
.card h3 { color: #fff; }
.card p:last-child { margin-bottom: 0; }
.pill { display: inline-block; padding: .05rem .55rem; border-radius: 99px; background: var(--crimson); color: #fff; font-size: .68rem; letter-spacing: .08em; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: .7rem; }
.shot { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface); }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.shot:hover img { transform: scale(1.05); filter: brightness(1.1); }
.shot::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); border-radius: inherit; pointer-events: none; }
#lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; }
#lightbox::backdrop { background: rgba(0, 0, 0, .88); }
#lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 10px; margin-inline: auto; }
.lb-cap { text-align: center; margin: .7rem 0 0; color: #d1d5db; }
.lb-close { position: absolute; top: -.2rem; right: .2rem; z-index: 2; font-size: 2rem; line-height: 1; background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; }

/* ---- totems (the four creatures) ---- */
.lore { background: radial-gradient(ellipse at 50% 0%, rgba(232, 80, 10, .12), transparent 60%), var(--bg); }
.totems { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.totem { background: radial-gradient(circle at 50% 36%, #2a1612, #141418 74%); color: var(--text); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.4rem; text-align: center; border: 1px solid rgba(232, 80, 10, .4); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .25s, box-shadow .25s; }
.totem:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 28px rgba(232, 80, 10, .18); }
.totem-art { height: 230px; display: grid; place-items: center; margin-bottom: .6rem; }
.totem-art img { max-height: 230px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(232, 80, 10, .25)); }
.totem h3 { color: var(--accent-2); margin-bottom: .2em; }
.totem .muted { color: var(--muted); margin: 0; }

/* ---- steps ---- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.3rem 4.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; font: 700 1.1rem var(--font-display); background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; }
.steps strong { display: block; color: #fff; margin-bottom: .2rem; }
.steps span { color: var(--muted); }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 1.7rem; margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--muted); font-size: .92rem; padding: .25rem 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.footer-nav a:hover { color: var(--text); border-bottom-color: var(--accent); text-decoration: none; }
.footer-nav a.footer-discord { color: var(--accent-2); margin-left: auto; }
.footer-nav a.footer-discord:hover { color: #fff; }
.footer-asa img { width: 190px; opacity: .92; }
.legal { margin-top: 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); color: #7b7f8a; font-size: .78rem; }
.legal p { margin: 0 0 .3rem; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(13, 13, 15, .72) 45%, rgba(13, 13, 15, .55) 100%); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav a.footer-discord { margin-left: 0; }
}
@media (max-width: 1060px) {  /* six links + the Discord button need ~1060px; below that the menu collapses */
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav .btn { margin: .4rem 0 0; }
}
@media (max-width: 480px) {
  .medallion { width: 118px; height: 118px; }
  .big-numbers { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- inner pages ---- */
.page-hero { position: relative; isolation: isolate; min-height: clamp(300px, 42vh, 420px); display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .hero-bg { object-position: 50% 45%; }
.page-hero .hero-shade { background: linear-gradient(90deg, rgba(13, 13, 15, .88) 0%, rgba(13, 13, 15, .55) 60%, rgba(13, 13, 15, .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.page-hero-inner { padding-block: 3.2rem 2.4rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 4px 26px rgba(0, 0, 0, .7); margin-bottom: .25em; }
.page-hero .lead { max-width: 52ch; margin-bottom: 1.2rem; }
.narrow { width: min(100% - 2rem, 860px); }

/* ---- rules page ---- */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(13, 13, 15, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .55rem; flex-wrap: wrap; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs a { padding: .4rem .9rem; border-radius: 99px; color: var(--text); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.tabs a:hover { text-decoration: none; background: var(--surface-2); border-color: rgba(232, 80, 10, .6); }
.filter input { width: min(100%, 260px); background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: .5rem .85rem; border-radius: 99px; font: inherit; font-size: .9rem; }
.filter input:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.rules-page { padding-top: 2.2rem; }
.rules-cat { scroll-margin-top: 130px; margin-bottom: 3rem; }
.rules-cat > h2, .cat-details summary h2 { margin-bottom: .15em; }
.cat-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .6rem; }
.cat-details summary::-webkit-details-marker { display: none; }
.cat-details summary::after { content: '▾'; color: var(--accent-2); font-size: 1.2rem; transition: transform .2s; }
.cat-details[open] summary::after { transform: rotate(180deg); }
.cat-details summary h2 { margin: 0; }
.cat-intro { margin-bottom: 1.2rem; }
.rule-group { margin: 1.6rem 0 .8rem; color: var(--accent-2); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rule { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; scroll-margin-top: 140px; transition: border-color .15s; }
.rule:target { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(232, 80, 10, .35); }
.rule[hidden], .rule-section[hidden], .rules-cat[hidden] { display: none; }
.rule-num { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; font: 700 1rem var(--font-display); background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; }
.rule-body h4 { margin: 0 0 .25rem; font: 600 1.02rem/1.35 var(--font-body); color: #fff; }
.rule-body p { margin: 0; color: #cfd2da; }
.anchor { margin-left: .3rem; color: #4b5060; font-weight: 400; opacity: 0; transition: opacity .15s; }
.rule:hover .anchor, .anchor:focus { opacity: 1; }
.rule-note { margin: 1.2rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--crimson); background: rgba(192, 39, 45, .1); border-radius: 8px; color: #f1c9cb; font-style: italic; }
mark.hl { background: rgba(232, 80, 10, .35); color: #fff; border-radius: 3px; padding: 0 .1em; }
@media (max-width: 600px) { .rule { grid-template-columns: 2.2rem 1fr; gap: .7rem; padding: .9rem; } .rule-num { width: 2.1rem; height: 2.1rem; } .subnav { top: 68px; } }
@media print { .site-header, .subnav, .site-footer, .page-hero .cta, .anchor, .filter { display: none !important; } body { background: #fff; color: #000; } .rule { border: 1px solid #ccc; break-inside: avoid; background: #fff; } .rule-body h4, .rule-body p { color: #000; } details { display: block; } }

/* ---- servers, rates & mods ---- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.tile strong { display: block; font: 700 clamp(1.7rem, 3.5vw, 2.3rem)/1.1 var(--font-display); color: #fff; }
.tile span { color: var(--muted); font-size: .88rem; }
.maps-detail { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.map-card { align-content: start; }
.tags { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: .35rem; margin: 0; }
.tag { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .12rem .55rem; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.tag-warn { color: var(--busy); border-color: rgba(245, 185, 66, .5); }
.restrict { color: var(--busy); margin: 0; }
.map-card p { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-2); cursor: pointer; font: inherit; }
.linklike:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rates-table { width: 100%; border-collapse: collapse; background: var(--bg); min-width: 560px; }
.rates-table th, .rates-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates-table thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.rates-table tbody tr:last-child th, .rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-table tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.rate-val { font: 700 1.1rem var(--font-display); color: var(--accent-2); white-space: nowrap; }
.callout { padding: .9rem 1.1rem; border-left: 3px solid var(--busy); background: rgba(245, 185, 66, .08); border-radius: 8px; margin: 0 0 1.2rem; }
.mod-toolbar { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.mod-toolbar .filter input { width: min(100%, 320px); }
.select select { background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: .5rem .85rem; border-radius: 99px; font: inherit; font-size: .9rem; min-width: 190px; }
.mod-group { margin-bottom: 2rem; }
.mod-group h3 { color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin-bottom: .1rem; }
.mod-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.mod { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.mod[hidden], .mod-group[hidden] { display: none; }
.mod-main { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.mod-name { font-weight: 600; color: #fff; }
.mod-count { color: var(--muted); font-size: .82rem; }
.mod p { margin: .3rem 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { font-size: .72rem; padding: .08rem .55rem; border-radius: 99px; background: rgba(232, 80, 10, .1); border: 1px solid rgba(232, 80, 10, .3); color: #ffd2bd; }
.loadorder { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.loadorder h3 { margin-bottom: .6rem; }
.loadorder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; counter-reset: lo; }
.loadorder li { counter-increment: lo; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .8rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.loadorder li::before { content: counter(lo); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font: 700 .85rem var(--font-display); }
.loadorder li[hidden] { display: none; }
.loadorder .cat { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.chip-no { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }

/* ---- news & events ---- */
.tabs a.on { background: var(--surface-2); border-color: rgba(232, 80, 10, .7); color: #fff; }
.mini { font: 600 .8rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.event { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(232, 80, 10, .14), var(--surface)); border: 1px solid rgba(232, 80, 10, .4); color: var(--text); }
.event:hover { text-decoration: none; border-color: var(--accent-2); }
.event .when { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.post-list { display: grid; gap: 1rem; }
.post-card { display: grid; grid-template-columns: 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.post-card:has(.post-thumb) { grid-template-columns: 200px 1fr; }
.post-card h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.post-card h3 a { color: #fff; }
.post-card p { margin: 0 0 .4rem; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.event-when { color: var(--accent-2); }
.pager { display: flex; gap: .6rem; justify-content: center; margin-top: 1.8rem; }
.post-view h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.post-image { border-radius: var(--radius); margin: 1rem 0 1.4rem; width: 100%; }
.post-body { font-size: 1.05rem; line-height: 1.75; }
.post-body h3, .post-body h4, .post-body h5 { margin: 1.6em 0 .4em; color: #fff; }
.post-body blockquote { margin: 1em 0; padding: .5em 1em; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; color: #cfd2da; }
.post-body pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; color: #e5e7eb; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.post-body a { text-decoration: underline; }
@media (max-width: 600px) { .post-card:has(.post-thumb) { grid-template-columns: 1fr; } }

/* ---- About Us ---- */
.callout { margin: 2rem 0 0; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); }
.callout h3 { margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.team-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; display: grid; justify-items: center; align-content: start; gap: .3rem; }
.team-card h3 { margin: .5rem 0 0; }
.team-card .role { margin: 0; }
.team-card p { margin-bottom: .4rem; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(232, 80, 10, .55); }
.avatar-fallback { display: grid; place-items: center; background: var(--surface); color: var(--accent-2); font: 700 2rem var(--font-display); }

/* ---- Support / contact forms ---- */
.form-tabs { margin: 0 0 1.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.form-tabs a { padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-size: .92rem; }
.form-tabs a.on { border-color: var(--accent); color: var(--accent-2); }
.form-tabs a:hover { text-decoration: none; background: var(--surface-2); }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: .7rem .85rem; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.contact-form textarea { resize: vertical; line-height: 1.5; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: .8rem 1rem; border: 1px solid rgba(255, 123, 123, .6); border-radius: 10px; color: #ff9b9b; background: var(--surface); margin-bottom: 1.2rem; }

/* ---- About: our story ---- */
.story .eyebrow { margin-bottom: .4rem; }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0 0 0 1.6rem; border-left: 2px solid rgba(232, 80, 10, .45); display: grid; gap: 1.6rem; }
.timeline > li { position: relative; }
.timeline > li::before { content: ''; position: absolute; left: calc(-1.6rem - 7px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 80, 10, .2); }
.timeline .when { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.timeline h3 { margin: .15rem 0 .2rem; }
.timeline p { margin: 0; }

/* ---- visitor ticket page ---- */
.status-chip { display: inline-block; padding: .15rem .7rem; border-radius: 99px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); margin-right: .4rem; }
.status-open { color: var(--busy); border-color: rgba(245, 185, 66, .5); }
.status-claimed { color: #7aa7ff; border-color: rgba(122, 167, 255, .5); }
.status-discord { color: var(--discord); border-color: rgba(88, 101, 242, .6); }
.status-resolved { color: var(--online); border-color: rgba(61, 220, 132, .5); }
.flash-ok { padding: .7rem 1rem; border: 1px solid rgba(61, 220, 132, .5); border-radius: 10px; color: var(--online); background: var(--surface); }
.thread { display: grid; gap: .9rem; margin: 1.5rem 0; }
.bubble { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 92%; }
.bubble header { display: flex; gap: .7rem; align-items: baseline; font-size: .85rem; margin-bottom: .3rem; }
.bubble header time { color: var(--muted); font-size: .75rem; }
.bubble p { margin: 0; overflow-wrap: anywhere; }
.bubble.you { justify-self: end; border-color: rgba(232, 80, 10, .45); }
.bubble.staff { justify-self: start; background: var(--surface-2); }
.bubble.resolved { border-color: rgba(61, 220, 132, .5); }
.linkbox { padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: 10px; overflow-wrap: anywhere; font-size: .9rem; }

/* ---- About: the seal beside the story ---- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.story-text { max-width: 640px; }
.seal { margin: 0; }
.seal-btn { display: block; width: 100%; aspect-ratio: 1; border-radius: 22px; box-shadow: 0 0 0 1px rgba(232, 80, 10, .45), 0 24px 60px rgba(0, 0, 0, .55), 0 0 70px rgba(232, 80, 10, .16); }
.seal-btn img { border-radius: 22px; }
.seal figcaption { margin-top: .8rem; text-align: center; font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .seal { max-width: 440px; margin-inline: auto; } }

/* ---- story chapters written in the admin editor (same look as the built-in placeholder) ---- */
.story-body > .post-body { margin-bottom: 1.2rem; }
.story-body .lead { margin-bottom: 0; }
.timeline .chapter-body > :first-child { margin-top: 0; }
.timeline .chapter-body p { margin: 0 0 .7rem; color: var(--muted); }
.timeline .chapter-body ul, .timeline .chapter-body ol { color: var(--muted); margin: 0 0 .7rem; }
.timeline .chapter-body blockquote { margin: .4rem 0 .8rem; }
.timeline .chapter-body :last-child { margin-bottom: 0; }
.story-body .lead { margin-bottom: 1.1rem; }
.timeline .chapter-body ul { padding-left: 1.2rem; }
