/* style.css with WebP pictures (owner 2026-11-16: a lighter site). Replaces style.css at the next deploy. */
/* Ashen Crowns: gold and bronze on ash, after design/reference.png */
@font-face { font-family: "Cinzel"; src: url("/fonts/Cinzel-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0a09;
  --bg2: #110e0c;
  --panel: rgba(22, 18, 15, .92);
  --panel-solid: #16120f;
  --line: #2f2721;
  --line-hi: #4a3b2c;
  --text: #e7dfd2;
  --muted: #998f80;
  --gold: #c9a25b;
  --gold-hi: #ecd29a;
  --gold-dark: #8a6a35;
  --bronze-a: #b88a49;
  --bronze-b: #7a5629;
  --online: #59a86a;
  --soon: #c08a3e;
  --danger: #a33a3a;
  --serif: "Cinzel", "Trajan Pro", "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 15.5px/1.6 var(--sans);
  background:
    radial-gradient(ellipse at 70% -20%, rgba(120, 86, 40, .18), transparent 55%),
    linear-gradient(180deg, #0e0c0a, var(--bg) 40%);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: .06em; color: #f1e8d8; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.3rem; }
h1 small, h2 small { color: var(--muted); font-size: .6em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--serif); font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: #cfc3ae; }
.section-title { font-family: var(--serif); font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: #ddd2bf; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.section-title::after { content: ""; flex: 0 0 26px; height: 1px; background: var(--gold-dark); }
.section-title a { margin-left: auto; font-family: var(--sans); font-size: .82rem; letter-spacing: .02em; text-transform: none; color: var(--muted); }

/* ---- header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: stretch; justify-content: space-between;
  height: 64px; padding: 0 22px; background: rgba(11, 10, 9, .92);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand:hover { filter: brightness(1.15); }
.tabs { display: flex; align-items: stretch; margin-left: 26px; }
.tabs a {
  display: flex; align-items: center; padding: 0 20px; color: #d9cfbf;
  font-family: var(--serif); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  border-left: 1px solid transparent; border-right: 1px solid transparent; position: relative;
}
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.active {
  color: #fff; background: linear-gradient(180deg, rgba(201, 162, 91, .14), rgba(201, 162, 91, .03));
  border-color: var(--line-hi);
}
.tabs a.active::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  box-shadow: 0 0 12px rgba(236, 210, 154, .7);
}
.top-left { display: flex; align-items: stretch; }
.account-box {
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  border-left: 1px solid var(--line); color: var(--text);
}
.account-box:hover { text-decoration: none; background: rgba(255, 255, 255, .02); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #3a2f24, #15110e); border: 1px solid var(--gold-dark);
  font-family: var(--serif); color: var(--gold-hi); font-size: 1rem;
}
.account-box .who { display: flex; flex-direction: column; line-height: 1.25; }
.account-box .who b { font-weight: 500; font-size: .92rem; }
.account-box .who span { font-size: .78rem; color: var(--online); }
.account-box .who span.off { color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 4px; padding-left: 8px; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 6px 10px; }
button.link:hover { color: var(--gold-hi); }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 24px 60px; flex: 1; }
main.wide { max-width: 1280px; }
main.home { max-width: none; padding: 0 0 60px; }

/* ---- the Ashen Crowns banner over the home page (design/brand, owner 2026-11-16) */
.home-banner { border-bottom: 1px solid var(--line); background: var(--bg); line-height: 0; }
.home-banner img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: 0 50%; }
/* Under the banner the hero is a slim dark strip (one picture, not two), everything centred under the crest. */
.home-banner + .hero { min-height: 0; background: linear-gradient(180deg, #14110e, var(--bg)); }
.home-banner + .hero .hero-bg, .home-banner + .hero::before { display: none; }
.home-banner + .hero .hero-inner { text-align: center; padding-top: 34px; padding-bottom: 38px; }
.home-banner + .hero .tagline { margin-bottom: 14px; }
.home-banner + .hero .lead { max-width: 680px; margin: 0 auto 24px; }
.home-banner + .hero .actions { justify-content: center; }
.home-banner + .hero .realm-status { margin-top: 20px; }
.brand picture { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- hero */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: var(--bg) url("/img/hero.webp") 70% 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 9, .92) 0%, rgba(11, 10, 9, .7) 30%, rgba(11, 10, 9, .15) 55%, transparent 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 40px 24px; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 4px;
  background: linear-gradient(180deg, #fff6e3 0%, #e9cf98 45%, #b98d4a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .7));
}
.hero .tagline { font-family: var(--serif); letter-spacing: .28em; text-transform: uppercase; font-size: .95rem; color: #dcd1bd; margin-bottom: 26px; }
.hero .lead { max-width: 470px; font-size: 1.05rem; color: #e9e1d2; margin-bottom: 26px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 28px; border-radius: 2px; border: 1px solid #d3a964;
  background: linear-gradient(180deg, var(--bronze-a), var(--bronze-b));
  color: #fff7e8; font: 400 .95rem var(--serif); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 236, 196, .35), 0 6px 18px rgba(0, 0, 0, .45);
}
.btn:hover { filter: brightness(1.12); color: #fff; text-decoration: none; }
.btn.bright { background: linear-gradient(180deg, #e9c47a, #b8883e); color: #1c140b; border-color: #f1d494; font-weight: 700; }
.btn.small { padding: 7px 16px; font-size: .78rem; }
.btn.ghost { background: rgba(255, 255, 255, .02); border-color: var(--line-hi); color: var(--text); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn.danger { background: linear-gradient(180deg, #8b2f2f, #5c1d1d); border-color: #b04848; }
.btn .arrow { font-family: var(--sans); }

/* ---- home grid */
.home-grid { display: grid; grid-template-columns: 1fr 330px; gap: 26px; max-width: 1180px; margin: 30px auto 0; padding: 0 24px; }
.featured {
  position: relative; display: grid; grid-template-columns: 270px 1fr; min-height: 200px;
  border: 1px solid var(--line-hi); border-radius: 3px; overflow: hidden;
  background: linear-gradient(90deg, rgba(14, 11, 9, .2), var(--panel-solid) 30%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); margin-bottom: 30px;
}
.featured .art { background: url("/img/realm.webp") center / cover; position: relative; }
.featured .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--panel-solid)); }
.featured .art .count { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 1rem; color: #f3ead9; text-shadow: 0 1px 6px #000; }
.featured .body { padding: 20px 24px; display: flex; flex-direction: column; }
.featured h3 { font-size: 1.7rem; letter-spacing: .08em; text-transform: uppercase; margin: 8px 0 2px; }
.featured .sub { font-family: var(--serif); font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.featured .desc { color: #d7cebf; font-size: .95rem; max-width: 460px; }
.featured .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .75rem; padding: 3px 9px; border: 1px solid var(--line-hi); border-radius: 2px; color: #d8cfc0; background: rgba(0, 0, 0, .3); }

.server-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.server-card {
  position: relative; min-height: 138px; padding: 14px 18px; border: 1px solid var(--line-hi); border-radius: 3px; overflow: hidden;
  background: var(--panel-solid) center / cover; display: flex; flex-direction: column; justify-content: flex-end;
}
.server-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 7, .95) 25%, rgba(10, 8, 7, .45)); }
.server-card > * { position: relative; }
.server-card .badge { position: absolute; top: 12px; left: 16px; }
.server-card h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.server-card .meta { color: var(--muted); font-size: .86rem; }
.server-card .players { margin-top: 6px; font-size: .9rem; }

.side-panel { border: 1px solid var(--line); background: var(--panel); border-radius: 3px; padding: 16px 18px; margin-bottom: 18px; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 8px 0; }
.news-item img { width: 96px; height: 52px; object-fit: cover; border: 1px solid var(--line); }
.news-item b { display: block; font-weight: 500; font-size: .9rem; line-height: 1.3; color: #ece4d6; }
.news-item span { font-size: .78rem; color: var(--muted); }
.quick a { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #ddd4c5; font-size: .9rem; }
.quick a::after { content: "↗"; margin-left: auto; color: var(--muted); }
.quick a:hover { color: var(--gold-hi); text-decoration: none; }
.quick .ico { width: 18px; text-align: center; color: var(--gold); }

/* ---- generic panels (account, forms, staff) */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-top: 1px solid var(--line-hi);
  border-radius: 3px; padding: 26px 30px; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.panel.narrow { max-width: 470px; margin-left: auto; margin-right: auto; }
.panel.narrow-left form { max-width: 420px; }
.prose h2 { font-size: 1.05rem; color: var(--gold); margin-top: 1.3em; }
.steps { padding-left: 1.2em; }
.steps li { margin: .3em 0; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .93rem; }
label small { color: var(--muted); font-size: .8rem; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea {
  background: #0d0b0a; color: var(--text); border: 1px solid #3a3029; border-radius: 2px; padding: 10px 12px; font: inherit;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 91, .2); }
.row input { flex: 1; min-width: 200px; }
fieldset { border: 1px solid var(--line); border-radius: 2px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
legend { padding: 0 6px; color: var(--gold); font-family: var(--serif); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--gold); }

.notice { padding: 11px 15px; border-radius: 2px; margin-bottom: 16px; border: 1px solid; }
.notice.error { background: #261111; border-color: #6d2a2a; color: #f0c9c9; }
.notice.ok { background: #13200f; border-color: #3b5a2a; color: #cfe5c1; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 3px; border: 1px solid;
  font-family: var(--serif); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.badge.on { color: #b9e6c1; border-color: #3f7a4b; background: rgba(40, 90, 52, .55); }
.badge.soon { color: #f1cf96; border-color: #8a6430; background: rgba(110, 72, 24, .55); }
.badge.off { color: #c9c0b2; border-color: #4a423b; background: rgba(40, 36, 32, .7); }
.tag { font-size: .72rem; padding: 1px 7px; border-radius: 2px; border: 1px solid var(--gold-dark); color: var(--gold); }
.tag.bad { border-color: #8a2a32; color: #e58a90; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
tr:hover td { background: rgba(255, 255, 255, .02); }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats div { background: #0d0b0a; border: 1px solid var(--line); padding: 14px; text-align: center; }
.stats b { display: block; font: 1.8rem var(--serif); color: var(--gold-hi); }
.stats span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.character h3 { font-size: 1.6rem; letter-spacing: .06em; }
.character h4 { color: var(--gold); margin: 1em 0 .3em; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; }
.backstory { white-space: pre-wrap; background: #0d0b0a; border-left: 2px solid var(--gold-dark); padding: 12px 16px; color: #d5ccbd; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* ---- footer */
footer { border-top: 1px solid var(--line); padding: 26px 22px; text-align: center; font-size: .85rem; background: #090807; }
footer p { margin: .25em 0; }
footer .motto { font-family: var(--serif); letter-spacing: .3em; text-transform: uppercase; color: #bcae97; font-size: .8rem; margin-bottom: 8px; }

/* ---- phone menu (the header tabs don't fit below 960px) */
.menu-mobile { display: none; position: static; }
.menu-mobile summary {
  list-style: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 56px; height: 100%; padding: 0 16px; border-left: 1px solid var(--line);
}
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-mobile summary span { display: block; height: 2px; background: var(--gold); border-radius: 1px; transition: transform .2s, opacity .2s; }
.menu-mobile[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-mobile[open] summary span:nth-child(2) { opacity: 0; }
.menu-mobile[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-mobile nav {
  position: absolute; left: 0; right: 0; top: 64px; display: flex; flex-direction: column;
  background: rgba(11, 10, 9, .98); border-bottom: 1px solid var(--line-hi); box-shadow: 0 14px 30px rgba(0, 0, 0, .6);
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.menu-mobile nav a {
  padding: 15px 24px; border-top: 1px solid var(--line); color: #d9cfbf;
  font-family: var(--serif); font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
}
.menu-mobile nav a.active { color: var(--gold-hi); background: linear-gradient(90deg, rgba(201, 162, 91, .14), transparent); border-left: 2px solid var(--gold-hi); }
.menu-mobile nav a:hover { color: #fff; text-decoration: none; }

@media (max-width: 960px) {
  .home-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 160px; }
  .tabs { display: none; }
  .menu-mobile { display: flex; }
}
@media (max-width: 640px) {
  .server-row, .stats, .row2 { grid-template-columns: 1fr; }
  .hero { background-size: cover; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 10, 9, .55), rgba(11, 10, 9, .85) 60%, var(--bg)); }
  .hero-inner { padding: 32px 18px; }
  .account-box { padding: 0 12px; }
  .account-box .who { display: none; }
  .top { padding: 0 0 0 14px; }
  .brand img { height: 48px; width: auto; }
  .home-banner img { height: 190px; }
  main { padding: 18px 12px 40px; }
  .panel { padding: 20px 18px; }
  h1 { font-size: 1.6rem; }
  .home-grid { padding: 0 12px; }
  .facts { grid-template-columns: 105px 1fr; gap: 6px 12px; }
  /* Wide tables scroll sideways inside their box instead of stretching the page. */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn { padding: 12px 20px; }
  .row input { min-width: 0; }
  pre, code { white-space: pre-wrap; word-break: break-word; }
}

.server-card.art-night { background-image: url("/img/night.webp"); }
.server-card.art-realm { background-image: url("/img/realm.webp"); }

/* Roleplay staff pages: ledger amounts */
td.neg { color: #e06060; }
td.pos { color: #8fbf7a; }

/* Housing: property definition form, alerts in property logs */
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; }
.grid-form label.wide { grid-column: 1 / -1; }
tr.alert td { background: #1c0f0f; }
/* Staff live map (ops) */
.live-map { width: 100%; max-width: 900px; margin: 0 auto 1rem; border: 1px solid rgba(201, 162, 39, 0.35); }
.live-map-svg { display: block; width: 100%; height: auto; background: #14110d; }
.map-bg { fill: #14110d; }
.map-grid { stroke: rgba(201, 162, 39, 0.18); stroke-width: 1; }
.map-grid-label { fill: rgba(232, 220, 196, 0.5); font-size: 12px; }
.map-player { fill: #e0b84a; stroke: #1a1510; stroke-width: 2; }
.map-player.stale { fill: #8a7a5a; }
.map-heading { stroke: #e0b84a; stroke-width: 2; }
.map-label { fill: #f3ead6; font-size: 14px; paint-order: stroke; stroke: #14110d; stroke-width: 3px; }
ul.notifications { list-style: none; padding: 0; }
ul.notifications li { padding: 0.35rem 0; border-bottom: 1px solid rgba(201, 162, 39, 0.15); }

/* docs/RACES.md: the race cards on "Create your character" */
.race-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.race-card { display: block; border: 1px solid var(--gold-dark); border-radius: 6px; padding: 10px 12px; cursor: pointer; background: rgba(0, 0, 0, .25); }
.race-card:hover { border-color: var(--gold); }
.race-card input { margin-right: 6px; }
.race-card:has(input:checked) { border-color: var(--gold-hi); background: rgba(201, 162, 91, .12); }
.race-card .race-name { color: var(--gold-hi); font-weight: 600; }
.race-card .race-lore { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
/* Gallery (/gallery, /admin/gallery) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 18px 0; }
.gallery .shot { margin: 0; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(201, 162, 91, 0.25); border-radius: 6px; overflow: hidden; }
.gallery .shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery .shot figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.gallery .hidden-shot img { opacity: 0.35; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; gap: 8px; } }
.gallery a.shot-open { display: block; cursor: zoom-in; }
.viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.93); display: flex; align-items: center; justify-content: center; }
.viewer[hidden] { display: none; }
.viewer-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border: 1px solid var(--line-hi); border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.viewer-btn { position: absolute; background: rgba(22, 18, 15, 0.8); color: var(--gold-hi); border: 1px solid var(--gold-dark); border-radius: 50%; width: 52px; height: 52px; font-size: 32px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.viewer-btn:hover, .viewer-btn:focus-visible { background: var(--bronze-b); color: #fff; outline: none; }
.viewer-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 18px; top: 50%; transform: translateY(-50%); }
.viewer-close { top: 16px; right: 18px; width: 44px; height: 44px; font-size: 28px; }
.viewer-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; text-align: center; color: var(--text); background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.viewer-meta, .viewer-count { color: var(--muted); margin-left: 10px; }
body.viewer-on { overflow: hidden; }
@media (max-width: 640px) { .viewer-btn { width: 42px; height: 42px; font-size: 26px; } .viewer-prev { left: 6px; } .viewer-next { right: 6px; } }

/* ---------------------------------------------------------------- forum (src/forum-views.js) */
.forum .forum-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.forum-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.forum-crumbs a { color: var(--gold); }
.forum-search { display: flex; gap: 6px; }
.forum-search input { min-width: 220px; }
.forum-boards { display: grid; gap: 8px; margin-bottom: 18px; }
.forum-board { display: grid; grid-template-columns: 1.3fr 1.6fr .7fr 1.2fr; gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--text); text-decoration: none; }
.forum-board:hover { border-color: var(--line-hi); }
.forum-board-name { font-family: var(--serif); color: var(--gold-hi); font-size: 16px; }
.forum-board-stats, .forum-board-last { font-size: 13px; }
.forum-recent, .forum-results { list-style: none; padding: 0; }
.forum-recent li, .forum-results li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.forum-results p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.forum-threads { width: 100%; border-collapse: collapse; }
.forum-threads th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line-hi); padding: 6px 8px; }
.forum-threads td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.forum-threads tr.pinned td { background: rgba(201, 162, 91, .05); }
.forum-pager { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.forum-pager a, .forum-pager b { padding: 2px 9px; border: 1px solid var(--line); border-radius: 6px; }
.forum-pager b { border-color: var(--gold-dark); color: var(--gold-hi); }
.forum-post { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.forum-post.deleted { opacity: .55; }
.forum-author { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.forum-author a { display: flex; align-items: center; gap: 8px; color: var(--gold-hi); }
.forum-author .avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--panel-solid); border: 1px solid var(--gold-dark); font-family: var(--serif); }
.forum-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.forum-meta a { color: var(--muted); }
.forum-text { overflow-wrap: anywhere; }
.forum-text blockquote, .forum-quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--gold-dark); background: rgba(255, 255, 255, .03); }
.forum-quote .quote-by { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.forum-spoiler { margin: 8px 0; border: 1px dashed var(--line-hi); border-radius: 6px; padding: 6px 10px; }
.forum-ic { margin: 10px 0; padding: 14px 18px; border: 1px solid var(--gold-dark); border-radius: 4px;
  background: linear-gradient(180deg, rgba(201, 162, 91, .08), rgba(201, 162, 91, .02)); font-family: Georgia, serif; font-style: italic; }
.forum-ic .ic-sign { text-align: right; margin: 6px 0 0; color: var(--gold-hi); font-style: normal; font-family: var(--serif); }
.forum-code { overflow-x: auto; padding: 10px; background: #000; border: 1px solid var(--line); border-radius: 6px; }
.forum-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.forum-actions .chip.on { border-color: var(--gold); color: var(--gold-hi); }
.forum-actions input { font-size: 12px; padding: 2px 6px; }
.forum-report form { display: flex; gap: 6px; margin-top: 6px; }
.forum-mod { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 8px; border: 1px dashed var(--gold-dark); border-radius: 6px; }
.forum-reply { margin-top: 18px; }
.forum-help summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.mention { color: var(--gold-hi); }
@media (max-width: 760px) {
  .forum-board { grid-template-columns: 1fr; }
  .forum-post { grid-template-columns: 1fr; }
  .forum-author { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .forum-threads th:nth-child(2), .forum-threads td:nth-child(2), .forum-threads th:nth-child(3), .forum-threads td:nth-child(3) { display: none; }
}

/* ---------------------------------------------------------------- leaderboard (src/leaderboard-views.js) */
.board-nav { margin: 6px 0 14px; }
.board-table { width: 100%; border-collapse: collapse; }
.board-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line-hi); padding: 6px 8px; }
.board-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.board-table td.rank { width: 36px; color: var(--muted); font-family: var(--serif); }
.board-table tr.top1 td { color: var(--gold-hi); }
.board-table tr.top1 td.rank { color: var(--gold-hi); font-weight: 700; }
.board-table tr.top2 td.rank, .board-table tr.top3 td.rank { color: var(--gold); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.board-grid.two { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.board-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg2); }
.board-card h3 { margin: 0 0 6px; font-family: var(--serif); color: var(--gold-hi); font-size: 16px; }

.notice.requirements { border-color: var(--gold-dark); background: rgba(201, 162, 91, .07); color: var(--text); }

/* ---- 2026-11 refresh: livelier home, gates and launcher page */
body {
  background:
    linear-gradient(180deg, rgba(11, 10, 9, .78), var(--bg) 560px),
    url("/img/art-realm.webp") top center / 100% auto no-repeat,
    var(--bg);
}
.ico-svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; color: var(--gold); }
.btn.big { padding: 15px 34px; font-size: .95rem; }
.btn { transition: filter .18s, transform .18s, box-shadow .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); }
.btn.bright:hover { box-shadow: 0 0 26px rgba(233, 196, 122, .35); }
.small-print { font-size: .82rem; }

/* header: every tab on one line, the burger takes over before they would wrap */
.top { background: rgba(11, 10, 9, .88); }
.tabs { margin-left: 14px; }
.tabs a { padding: 0 13px; font-size: .8rem; letter-spacing: .09em; white-space: nowrap; transition: color .15s; }
.account-box .who { white-space: nowrap; }
@media (max-width: 1240px) {
  .tabs { display: none; }
  .menu-mobile { display: flex; }
}

/* hero */
.hero { min-height: clamp(560px, 86vh, 800px); background: var(--bg); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: url("/img/hero.webp") 70% 40% / cover no-repeat; animation: drift 38s ease-in-out infinite alternate; }
.hero::before { z-index: 1; }
.hero-inner { z-index: 3; padding-top: 60px; padding-bottom: 60px; }
.hero h1 {
  background: linear-gradient(180deg, #fff6e3 12%, #e9cf98 52%, #b98d4a 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .75));
}
.realm-status { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding: 9px 18px; font-size: .88rem; color: #d9cfbf; background: rgba(11, 10, 9, .62); border: 1px solid var(--line-hi); backdrop-filter: blur(4px); }
.realm-status b { font-weight: 500; color: #f1e8d8; }
.realm-status .sep { width: 1px; height: 14px; background: var(--line-hi); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--online); box-shadow: 0 0 0 0 rgba(89, 168, 106, .6); animation: pulse 2.4s infinite; }
@keyframes drift { from { transform: scale(1) translateX(0); } to { transform: scale(1.07) translateX(-1.2%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(89, 168, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(89, 168, 106, 0); } }

/* drifting embers */
.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%; background: #ffc36b; box-shadow: 0 0 8px 2px rgba(255, 150, 60, .75); opacity: 0; animation: ember 11s linear infinite; }
.embers i:nth-child(1) { left: 44%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 52%; animation-delay: 2.2s; animation-duration: 13s; }
.embers i:nth-child(3) { left: 58%; animation-delay: 5.1s; animation-duration: 9s; }
.embers i:nth-child(4) { left: 63%; animation-delay: 1.3s; animation-duration: 14s; }
.embers i:nth-child(5) { left: 67%; animation-delay: 7.4s; }
.embers i:nth-child(6) { left: 71%; animation-delay: 3.3s; animation-duration: 10s; }
.embers i:nth-child(7) { left: 75%; animation-delay: 8.8s; animation-duration: 12s; }
.embers i:nth-child(8) { left: 79%; animation-delay: .7s; animation-duration: 9.5s; }
.embers i:nth-child(9) { left: 83%; animation-delay: 4.6s; animation-duration: 13.5s; }
.embers i:nth-child(10) { left: 87%; animation-delay: 6.2s; }
.embers i:nth-child(11) { left: 91%; animation-delay: 2.9s; animation-duration: 8.5s; }
.embers i:nth-child(12) { left: 95%; animation-delay: 9.6s; animation-duration: 12.5s; }
.embers i:nth-child(13) { left: 36%; animation-delay: 6.9s; animation-duration: 15s; }
.embers i:nth-child(14) { left: 27%; animation-delay: 10.4s; animation-duration: 14s; }
.embers i:nth-child(15) { left: 69%; animation-delay: 11.7s; animation-duration: 10.5s; width: 2px; height: 2px; }
.embers i:nth-child(16) { left: 81%; animation-delay: 12.5s; animation-duration: 11.5s; width: 2px; height: 2px; }
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate(38px, -46vh); opacity: .75; }
  100% { transform: translate(-22px, -92vh); opacity: 0; }
}

/* panels and cards */
.featured, .server-card, .side-panel { transition: border-color .2s, transform .2s; }
.featured:hover, .server-card:hover { border-color: var(--gold-dark); }
.server-card:hover { transform: translateY(-2px); }
a.news-item { color: inherit; }
a.news-item:hover { text-decoration: none; }
a.news-item:hover b { color: var(--gold-hi); }

.section-title:has(a)::after { display: none; }

/* life in the realm */
.band-head { text-align: center; max-width: 660px; margin: 0 auto 38px; }
.band-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: .08em; margin: 8px 0 10px; }
.band-head p { color: #cfc5b5; margin: 0; }
.stories { max-width: 1180px; margin: 76px auto 0; padding: 0 24px; }
.story { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; margin-bottom: 26px; background: var(--panel-solid); border: 1px solid var(--line); overflow: hidden; }
.story.flip .story-art { order: 2; }
.story-art { min-height: 330px; overflow: hidden; position: relative; }
.story-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.story:hover .story-art img { transform: scale(1.05); }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 62%, var(--panel-solid)); }
.story.flip .story-art::after { background: linear-gradient(270deg, transparent 62%, var(--panel-solid)); }
.story-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.story-body .eyebrow { color: var(--gold); font-size: .74rem; }
.story-body h3 { font-size: 1.65rem; margin: 8px 0 12px; }
.story-body p { color: #d7cebf; }
.story-link { margin-top: 18px; font-family: var(--serif); font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; }
.story-link:hover { text-decoration: none; }
.story-link .arrow { font-family: var(--sans); display: inline-block; transition: transform .18s; }
.story-link:hover .arrow { transform: translateX(4px); }

/* three steps */
.steps { max-width: 1180px; margin: 76px auto 0; padding: 0 24px; }
.steps ol { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px 24px 22px; background: var(--panel-solid); border: 1px solid var(--line); border-top: 2px solid var(--gold-dark); }
.steps .num { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--gold); }
.steps h4 { font-size: 1.08rem; text-transform: uppercase; margin: 12px 0 6px; }
.steps p { margin: 0; color: #cfc5b5; font-size: .94rem; }

/* closing banner */
.cta { margin: 76px 0 0; background: linear-gradient(0deg, rgba(11, 10, 9, .9), rgba(11, 10, 9, .55) 60%, rgba(11, 10, 9, .9)), url("/img/art-forge.webp") center 62% / cover no-repeat; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-inner { max-width: 700px; margin: 0 auto; padding: 84px 24px; text-align: center; }
.cta .ico-svg { font-size: 2.6rem; color: var(--gold-hi); }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: .08em; margin: 12px 0 8px; }
.cta p { font-size: 1.08rem; color: #e0d7c8; margin-bottom: 24px; }
main.home { padding-bottom: 0; }

/* fade-in as you scroll (site.js only hides what is still below the fold) */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.waiting { opacity: 0; transform: translateY(26px); }

/* log in and join stand over the art */
main.gate { max-width: none; display: flex; align-items: center; justify-content: center; padding: 56px 18px; background: linear-gradient(180deg, rgba(11, 10, 9, .35), rgba(11, 10, 9, .8)), url("/img/art-travellers.webp") center 30% / cover no-repeat; }
main.gate .panel { width: 100%; background: rgba(16, 13, 11, .93); border-top: 2px solid var(--gold-dark); box-shadow: 0 24px 70px rgba(0, 0, 0, .65); backdrop-filter: blur(5px); }

/* launcher page */
main.launcher-page { max-width: 1180px; }
.dl-hero { display: grid; grid-template-columns: 1fr 1.25fr; gap: 42px; align-items: center; padding: 26px 24px 34px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(11, 10, 9, .94) 30%, rgba(11, 10, 9, .55) 75%), linear-gradient(0deg, var(--bg), transparent 40%), url("/img/art-launcher.webp") center 45% / cover no-repeat; }
.dl-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 10px; }
.dl-hero .lead { font-size: 1.08rem; color: #e0d7c8; }
.dl-hero .actions { margin: 22px 0 10px; }
.dl-shot img { display: block; width: 100%; border: 1px solid var(--line-hi); box-shadow: 0 26px 70px rgba(0, 0, 0, .7), 0 0 60px rgba(201, 162, 91, .1); }
.dl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.dl-features article { padding: 24px; background: var(--panel-solid); border: 1px solid var(--line); }
.dl-features .ico { font-size: 1.5rem; }
.dl-features h4 { text-transform: uppercase; font-size: 1rem; margin: 8px 0 6px; }
.dl-features p { margin: 0; color: #cfc5b5; font-size: .94rem; }
.dl-discord { text-align: center; margin-top: 18px; }

/* footer */
.foot-inner { max-width: 900px; margin: 0 auto; }
.foot-brand img { height: 96px; width: auto; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 4px 0 14px; font-family: var(--serif); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* art banner on the public pages */
html { overflow-x: clip; }
.page-head { margin: -30px calc(50% - 50vw) 24px; border-bottom: 1px solid var(--line); background-size: cover; background-repeat: no-repeat; }
.page-head-inner { width: min(100% - 48px, 1132px); margin: 0 auto; padding: 58px 0 46px; }
main.wide .page-head-inner { width: min(100% - 48px, 1232px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: .1em; text-transform: uppercase; margin: 8px 0 8px; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .8)); }
.page-head .lead { max-width: 620px; margin: 0; color: #e0d7c8; font-size: 1.04rem; text-shadow: 0 1px 8px #000; }
.head-forge { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .35) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-forge.webp"); background-position: center 58%; }
.head-night { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-night.webp"); background-position: center 42%; }
.head-realm { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-realm.webp"); background-position: center 40%; }
.head-travellers { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .25) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-travellers.webp"); background-position: center 26%; }
/* Page headers made 2026-11-13 (design/ART-PROMPTS.md) */
.head-guilds { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-guilds.webp"); background-position: center 40%; }
.head-market { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-market.webp"); background-position: center 45%; }
.head-realestate { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-realestate.webp"); background-position: center 50%; }
.head-wanted { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-wanted.webp"); background-position: center 45%; }
.head-gallery { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-gallery.webp"); background-position: center 45%; }
.head-forum { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-forum.webp"); background-position: center 45%; }
.head-leaderboard { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-leaderboard.webp"); background-position: center 40%; }
.head-rules { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-rules.webp"); background-position: center 40%; }
.head-news { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-news.webp"); background-position: center 40%; }
.head-launcher { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-launcher.webp"); background-position: center 45%; }
.head-join { background-image: linear-gradient(90deg, rgba(11, 10, 9, .93) 22%, rgba(11, 10, 9, .3) 70%), linear-gradient(0deg, var(--bg), transparent 45%), url("/img/art-join.webp"); background-position: center 35%; }
.page-head .forum-search { margin-top: 18px; max-width: 460px; }

/* tables, stats and small parts everywhere */
th { font-family: var(--serif); color: var(--gold); font-weight: 400; letter-spacing: .12em; border-bottom-color: var(--line-hi); }
tr:hover td { background: rgba(201, 162, 91, .05); }
.panel { border-top-color: var(--line-hi); }
.panel > h2:first-child { color: #f1e8d8; }
.stats div { background: linear-gradient(180deg, #16120f, #0d0b0a); border-color: var(--line-hi); }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subnav a { padding: 6px 14px; font-family: var(--serif); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #d9cfbf; border: 1px solid var(--line-hi); }
.subnav a:hover { color: var(--gold-hi); border-color: var(--gold); text-decoration: none; }
.more-link { text-align: center; margin-top: 22px; }
.error-page { text-align: center; }
.error-page img { height: 110px; width: auto; }
.error-page h1 { font-size: 3rem; margin: 6px 0; }

/* gallery tiles: a clean wall of pictures, the caption rises on hover */
main .gallery:not(.admin) { margin-top: 0; }
.gallery:not(.admin) .shot { position: relative; border-radius: 0; border-color: var(--line-hi); background: #000; }
.gallery .shot img { transition: transform .5s ease, filter .3s ease; }
.gallery:not(.admin) .shot:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gallery:not(.admin) .shot { overflow: hidden; }
.gallery:not(.admin) .shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(0deg, rgba(8, 7, 6, .92), transparent); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.gallery:not(.admin) .shot:hover figcaption, .gallery:not(.admin) .shot:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery:not(.admin) .shot figcaption { opacity: 1; transform: none; } }

/* real estate */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 18px; }
.prop-grid .panel { margin: 0; }
/* Guilds and factions (/guilds) */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 24px; }
.guild-grid .panel { margin: 0; }
.guild-card { display: block; color: inherit; text-decoration: none; transition: border-color .2s; }
.guild-card:hover { border-color: var(--gold-dark); }
.guild-card h3 { margin: 0 0 6px; }
.guild-swatch { display: inline-block; width: .8em; height: .8em; border-radius: 2px; vertical-align: baseline; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.property { transition: border-color .2s; }
.property:hover { border-color: var(--gold-dark); }

/* wanted posters */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 8px; }
.poster { padding: 18px 14px 14px; text-align: center; color: #2b1d0e; background: linear-gradient(160deg, #e6d3a8, #cdb37f 70%, #b89a63); border: 1px solid #6d5430; box-shadow: 0 8px 22px rgba(0, 0, 0, .55), inset 0 0 34px rgba(90, 58, 20, .4); transition: transform .2s; }
.poster:nth-child(even) { transform: rotate(.8deg); }
.poster:nth-child(odd) { transform: rotate(-.7deg); }
.poster:hover { transform: rotate(0) scale(1.03); }
.poster-top { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .24em; text-transform: uppercase; border-bottom: 2px solid #5b4324; padding-bottom: 6px; margin-bottom: 10px; }
.poster h3 { color: #1f1408; font-size: 1.15rem; letter-spacing: .04em; margin: 0 0 8px; overflow-wrap: anywhere; }
.poster-reward { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #7a1f16; }
.poster-reward.stars { letter-spacing: .12em; }
.poster-terms { margin: 4px 0 8px; font-size: .9rem; }
.poster small { color: #57421f; }

/* leaderboard podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.podium-card { position: relative; padding: 20px 16px; text-align: center; background: linear-gradient(180deg, #1d1712, #0f0c0a); border: 1px solid var(--line-hi); }
.podium-card.p1 { border-color: var(--gold); box-shadow: 0 0 34px rgba(201, 162, 91, .18); }
.podium-rank { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--gold); }
.podium-card.p1 .podium-rank { color: var(--gold-hi); }
.podium-card h3 { margin: 8px 0 2px; font-size: 1.14rem; overflow-wrap: anywhere; }
.podium-title { color: var(--gold); font-family: var(--serif); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.podium-card small { color: var(--muted); }
.board-card { border-radius: 0; border-color: var(--line-hi); }

/* forum */
.forum-board { transition: border-color .18s, background .18s; }
.forum-board:hover { border-color: var(--gold-dark); background: rgba(201, 162, 91, .04); text-decoration: none; }

/* forum posts, characters and news entries */
.forum-post { grid-template-columns: 180px 1fr; padding: 0; margin-bottom: 14px; background: var(--panel-solid); border: 1px solid var(--line); }
.forum-post:target { border-color: var(--gold); }
.forum-author { padding: 16px; background: linear-gradient(180deg, #1b1612, #120f0c); border-right: 1px solid var(--line); }
.forum-body { padding: 14px 18px; min-width: 0; }
.forum-reply { margin-top: 18px; }
.character { padding: 20px 22px; background: linear-gradient(180deg, #1a1511, #110e0b); border: 1px solid var(--line-hi); border-top: 2px solid var(--gold-dark); }
.prose .post { padding: 4px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.prose .post:last-child { border-bottom: 0; margin-bottom: 0; }
.prose .post h2 { margin-top: .4em; font-size: 1.3rem; color: #f1e8d8; }

@media (max-width: 640px) {
  .page-head { margin-top: -18px; }
  .page-head-inner { padding: 36px 0 30px; }
  .prop-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .story, .story.flip { grid-template-columns: 1fr; }
  .story.flip .story-art { order: 0; }
  .story-art { min-height: 220px; }
  .story-art::after, .story.flip .story-art::after { background: linear-gradient(0deg, var(--panel-solid), transparent 40%); }
  .story-body { padding: 22px 24px 28px; }
  .steps ol, .dl-features, .dl-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .btn.big { padding: 13px 24px; }
  .stories, .steps { margin-top: 48px; padding: 0 12px; }
  .cta { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .embers i, .dot.on { animation: none; }
  .embers { display: none; }
  .reveal { transition: none; }
  .reveal.waiting { opacity: 1; transform: none; }
}

.leaderboard .section-title:not(:first-of-type) { margin-top: 30px; }
.stats { margin-bottom: 14px; }

@media (max-width: 640px) {
  .forum-post { grid-template-columns: 1fr; }
  .forum-author { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* The wiki (/wiki) */
.wiki-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.wiki-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.wiki-nav h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #a99c87); }
.wiki-nav a { display: block; padding: 4px 8px; color: inherit; text-decoration: none; border-left: 2px solid transparent; }
.wiki-nav a:hover { color: var(--gold, #d4af63); }
.wiki-nav a.active { border-left-color: var(--gold, #d4af63); color: var(--gold, #d4af63); }
@media (max-width: 760px) { .wiki-layout { grid-template-columns: 1fr; } .wiki-nav { position: static; } }

/* The header's "More" menu (the pages that don't fit as tabs) */
.tab-more { position: relative; display: flex; align-items: stretch; }
.tab-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; padding: 0 13px; font-size: .8rem;
  font-family: var(--serif); letter-spacing: .09em; text-transform: uppercase; color: #d9cfbf; white-space: nowrap; }
.tab-more summary::-webkit-details-marker { display: none; }
.tab-more summary::after { content: "\25BE"; margin-left: 6px; font-size: .7rem; opacity: .8; }
.tab-more.active summary, .tab-more summary:hover { color: #fff; }
.tab-more-list { position: absolute; top: 100%; left: 0; min-width: 180px; display: flex; flex-direction: column;
  background: rgba(11, 10, 9, .97); border: 1px solid var(--line); padding: 6px 0; z-index: 20; }
.tabs .tab-more-list a { padding: 9px 16px; height: auto; }
.tabs .tab-more-list a.active::after { display: none; }

/* Today's work (/work) */
.work-list { list-style: none; padding: 0; margin: 0; }
.work-list li { padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.work-list li:first-child { border-top: 0; }

/* /launcher/safety (2026-11-15) */
.dl-safe { margin-top: 6px; }
.dl-safe a { color: var(--gold); }
.safety h2 { margin-top: 0; }
.safety ul, .safety ol { padding-left: 22px; }
.safety li { margin: 4px 0; }
.safety code.hash { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; padding: 6px 9px; background: rgba(0, 0, 0, .35); border: 1px solid #3a3128; border-radius: 3px; font-size: .9rem; }
.smartscreen-mock { max-width: 460px; margin: 12px 0 16px; padding: 18px 20px; background: #0f5a9e; color: #fff; border-radius: 2px; font-family: "Segoe UI", system-ui, sans-serif; }
.smartscreen-mock strong { font-size: 1.35rem; font-weight: 400; display: block; margin-bottom: 8px; }
.smartscreen-mock p { margin: 6px 0; font-size: .92rem; }
.smartscreen-mock .ss-more { color: #fff; }
