/* Valhalla Networks - community board look (dark MyBB style, lavender accent). */
:root {
  --night: #1b1b1d; --page: #1b1b1d; --box: #262628; --row: #2a2a2c; --row-alt: #262628;
  --line: #333336; --accent: #7b3fd4; --accent-hi: #b78cf7; --accent-dk: #5d2ca8;
  --text: #ececf1; --muted: #a8a6b3; --faint: #77757f; --gold: #e8be50; --head: #0d0517;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); }
body {
  font: 15px/1.55 "Rajdhani", "Segoe UI", system-ui, sans-serif; color: var(--text);
  background: var(--night); min-height: 100vh;
}
a { color: var(--accent-hi); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }

/* Header: deep night with a drifting star field (canvas) behind the winged wordmark and the menu. */
.sky { position: relative; overflow: hidden; text-align: center; background: var(--head); border-bottom: 2px solid var(--accent); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky .logo { position: relative; display: inline-block; padding: 28px 16px 6px; }
.sky .logo img { width: min(520px, 90vw); height: auto; display: block; }
nav.main { position: relative; }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 8px 16px 18px; }
nav.main a { display: block; padding: 6px 14px; font-size: 17px; font-weight: 600; color: #fff; border-radius: 3px; }
nav.main a:hover, nav.main a[aria-current="page"] { background: rgba(123, 63, 212, .55); color: #fff; }
.wrap { max-width: 1180px; margin: 26px auto 60px; padding: 0 16px; display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.wrap.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .wrap { grid-template-columns: 1fr; } }

/* Board box with a purple header bar, like the forum tables. */
.box { background: var(--box); border: 0; border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.box > h2 {
  font-size: 18px; font-weight: 700; padding: 13px 16px; color: #fff; background: var(--accent);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.box > h2 small { font-weight: 500; font-size: 13px; opacity: .85; }
.box > h3 { font-size: 13px; font-weight: 700; padding: 7px 16px; background: var(--accent-dk); color: #fff; }
.box .pad { padding: 16px; }

.forum { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--row); }
.forum:nth-child(even) { background: var(--row-alt); }
.forum:last-child { border-bottom: 0; }
.forum .icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: #d9d6e6; box-shadow: inset 0 0 0 2px #313134; }
.forum .icon svg { width: 24px; height: 24px; }
.forum .icon img { width: 48px; height: 48px; border-radius: 50%; }
.forum b { display: block; font-size: 17px; color: var(--accent-hi); }
.forum p { color: var(--muted); font-size: 14px; }
.forum .go { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 3px; background: #1d1d1f; color: var(--text); white-space: nowrap; }
.forum .go:hover { background: var(--accent); }
@media (max-width: 560px) { .forum { grid-template-columns: 48px 1fr; } .forum .go { grid-column: 2; justify-self: start; } }

/* News */
.news article { padding: 16px; border-bottom: 1px solid var(--line); }
.news article:last-child { border-bottom: 0; }
.news h4 { font-size: 18px; color: #fff; }
.news time { font-size: 12px; color: var(--faint); }
.news p { color: var(--muted); margin-top: 6px; }

/* Sidebar */
.status .big { font-size: 26px; font-weight: 700; color: #fff; }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 14px; font-size: 14px; }
.status dt { color: var(--faint); }
.status dd { color: var(--text); word-break: break-all; }
.btn {
  display: inline-block; font-weight: 700; padding: 10px 18px; color: #fff; background: var(--accent);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: #a06cf0; color: #fff; }
.btn.ghost { background: #1d1d1f; }
.btn.block { display: block; text-align: center; margin-top: 8px; }
.side-list { list-style: none; }
.side-list li { display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list img { width: 30px; height: 30px; border-radius: 6px; }
.side-list span { color: var(--muted); font-size: 13px; display: block; }

/* Rules */
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--row); }
.rule:nth-child(even) { background: var(--row-alt); }
.rule .n { font-weight: 700; color: var(--faint); }
.rule b { color: #fff; font-size: 16px; }
.rule p { color: var(--muted); font-size: 14px; }

/* Factions */
.factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 16px; }
.faction { background: var(--row); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.faction .band { height: 70px; }
.faction img { width: 72px; height: 72px; border-radius: 12px; margin: -40px 0 0 16px; border: 3px solid var(--box); display: block; }
.faction .body { padding: 10px 16px 16px; }
.faction h4 { font-size: 18px; color: #fff; }
.faction p { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }

footer { text-align: center; color: var(--faint); font-size: 13px; padding: 26px 16px 40px; border-top: 1px solid var(--line); }
