/* ==========================================================================
   Forums: the Coven's hangout. Warm plum and ember, soft rounded cards, big faces (MySpell pictures), levels,
   reactions. One column on phones. (Nov 4: replaced the 2006 vBulletin table look; Revy: "casual, inviting, social".)
   ========================================================================== */

:root {
  --page: #150e13;
  --page-2: #1d121a;
  --card: #241720;
  --card-2: #2c1c27;
  --card-hi: #352230;
  --line: rgba(255, 220, 200, .09);
  --line-2: rgba(255, 220, 200, .16);
  --text: #f3e6dc;
  --muted: #b9a39c;
  --quiet: #8f7a76;
  --gold: #f2c46d;
  --gold-2: #ffdb8f;
  --link: #ffb37a;
  --ember: #ff7a3d;
  --ember-2: #e2542a;
  --rose: #f29bb8;
  --violet: #b18cff;
  --mod: #9fd3ff;
  --admin: #f2c46d;
  --red: #ff6b6b;
  --radius: 16px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(255, 122, 61, .16), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(177, 140, 255, .12), transparent 60%),
    linear-gradient(var(--page-2), var(--page) 600px);
  background-color: var(--page);
  color: var(--text);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold-2); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiet { color: var(--quiet); font-size: 13px; }

.board { max-width: 1100px; margin: 16px auto 32px; padding: 0 16px; }

/* ---------- Banner ---------- */
.banner {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 18px 26px;
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(21, 14, 19, .92) 0%, rgba(21, 14, 19, .5) 50%, rgba(21, 14, 19, .15) 100%),
    url(art/alma-verde.webp) center 40% / cover,
    var(--card);
}
.banner-logo { display: flex; align-items: center; gap: 14px; color: var(--gold); }
.banner-logo:hover { color: var(--gold-2); }
.banner-logo svg { width: 50px; height: 50px; filter: drop-shadow(0 0 10px rgba(255, 176, 0, .45)); }
.banner-text { display: flex; flex-direction: column; line-height: 1; }
.banner-title { font: 400 46px/1 var(--serif); color: var(--gold-2); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.banner-sub { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--text); opacity: .85; }
.banner-sub::after { content: " · come hang out"; font-weight: 400; letter-spacing: 0; color: var(--rose); }

.banner-launch { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 300px; }
.launch-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 26px; cursor: pointer;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--ember), var(--ember-2));
  box-shadow: 0 4px 18px rgba(255, 106, 31, .45), inset 0 1px 0 rgba(255, 230, 190, .5); color: #fff;
}
.launch-btn:hover { filter: brightness(1.08); box-shadow: 0 6px 26px rgba(255, 106, 31, .6); }
.launch-btn:active { transform: translateY(1px); }
.launch-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.launch-word { font: 400 28px/1 var(--serif); }
.launch-sub { white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.launch-note { font-size: 12px; text-align: right; background: rgba(21, 14, 19, .85); padding: 6px 10px; border-radius: 10px; }

/* ---------- Top bar & breadcrumbs ---------- */
.topbar {
  position: sticky; top: 8px; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 10px; padding: 8px 14px; border-radius: 18px;
  background: rgba(44, 28, 39, .88); backdrop-filter: blur(8px); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.topbar-links { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.topbar-links a { padding: 4px 10px; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 14px; }
.topbar-links a:hover { background: var(--card-hi); color: var(--gold-2); }
.topbar-user { color: var(--muted); font-size: 14px; }
.topbar-user .coin-link { color: var(--gold); font-weight: 700; }

.crumbs { margin: 14px 4px 0; color: var(--quiet); font-size: 14px; }
.crumbs:empty { display: none; }
.crumbs a { font-weight: 700; }
.crumbs .sep { margin: 0 8px; }

.view { margin-top: 14px; }

/* ---------- Cards ---------- */
.card, .panel {
  margin-bottom: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card h2, .panel-head, .cat-head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--gold-2);
}
.card h2 .quiet { margin-left: auto; font-weight: 400; }
.panel { padding: 0; overflow: hidden; }
.panel-head, .cat-head { margin: 0; padding: 12px 18px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.panel-body { padding: 14px 18px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Front page ---------- */
.hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 122, 61, .22), rgba(177, 140, 255, .16)), var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.hero-text { flex: 1 1 360px; }
.hero h1 { margin: 0 0 4px; font: 400 40px/1.1 var(--serif); color: var(--text); }
.hero p { margin: 0 0 12px; color: var(--muted); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-coin {
  display: grid; justify-items: center; padding: 14px 22px; border-radius: 18px; color: var(--gold-2);
  background: radial-gradient(circle at 50% 0%, rgba(242, 196, 109, .25), transparent 70%), var(--card-2); border: 1px solid rgba(242, 196, 109, .3);
}
.hero-coin b { font-size: 30px; line-height: 1; }
.hero-coin span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hero-coin em { margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.hero-coin:hover { border-color: var(--gold); }

.index-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "hot around" "hot spells"; gap: 0 16px; }
.index-grid > :nth-child(1) { grid-area: hot; }
.index-grid > :nth-child(2) { grid-area: around; }
.index-grid > :nth-child(3) { grid-area: spells; }
.people { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.person { display: grid; justify-items: center; gap: 2px; width: 62px; font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.person .avatar { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #4ade80; }
.hot { list-style: none; margin: 0; padding: 0; counter-reset: hot; }
.hot li { display: grid; gap: 4px; padding: 10px 0 10px 34px; position: relative; border-top: 1px solid var(--line); counter-increment: hot; }
.hot li:first-child { border-top: 0; padding-top: 2px; }
.hot li::before { content: counter(hot); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--card-hi); color: var(--ember); }
.hot li:first-child::before { top: 0; }
.hot-title { font-weight: 800; color: var(--text); }
.hot-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.faces { display: inline-flex; align-items: center; }
.faces .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.faces .avatar:first-child { margin-left: 0; }
.faces-more { margin-left: 4px; font-size: 12px; color: var(--quiet); }
.spells { display: grid; gap: 8px; }
.spell { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; color: var(--text); }
.spell img { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #0c0a0b; }
.spell b { font-size: 14px; }
.spell:hover b { color: var(--gold-2); }
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.shot { position: relative; flex: none; width: 220px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: #0c0a0b; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 8px; bottom: 6px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px #000; }

.cat { margin: 22px 0 8px; }
.cat-title { margin: 0 4px 10px; font: 400 26px/1.1 var(--serif); color: var(--text); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.board-card {
  display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius); color: var(--text);
  background: var(--card); border: 1px solid var(--line); transition: transform .15s, border-color .15s, background .15s;
}
.board-card:hover { transform: translateY(-2px); border-color: rgba(255, 179, 122, .4); background: var(--card-2); color: var(--text); }
.board-card.is-new { border-color: rgba(255, 122, 61, .45); }
.board-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 122, 61, .25), rgba(177, 140, 255, .2)); color: var(--gold-2); }
.board-ico .ico { width: 24px; height: 24px; }
.board-ico.big { width: 60px; height: 60px; border-radius: 18px; }
.board-ico.big .ico { width: 32px; height: 32px; }
.board-main { display: grid; gap: 2px; min-width: 0; }
.board-name { font-weight: 800; font-size: 16px; }
.board-desc { color: var(--muted); font-size: 13px; }
.board-stats { margin-top: 2px; }
.foot-stats p { margin: 0 0 4px; }

/* ---------- Tags, names, dots ---------- */
.tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; vertical-align: 2px; }
.tag-sticky { background: rgba(242, 196, 109, .18); color: var(--gold); }
.tag-locked { background: rgba(255, 107, 107, .16); color: var(--red); }
.tag-staff { background: rgba(177, 140, 255, .2); color: var(--violet); }
.tag-new { background: rgba(255, 122, 61, .2); color: var(--ember); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--quiet); vertical-align: 1px; }
.dot-new { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.dot-locked { background: var(--red); }
.uname { font-weight: 800; color: var(--text); }
.rank-admin { color: var(--admin); }
.rank-mod { color: var(--mod); }
.crown { width: 14px; height: 12px; margin-right: 3px; vertical-align: -1px; }
.crown path { fill: currentColor; }
.lv { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #1d121a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); vertical-align: 1px; }

/* ---------- Avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 80px; height: 80px; border-radius: 22px; object-fit: cover;
  background: #0c0a0b; color: #fff; font: 400 40px/1 var(--serif); }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; font-size: 15px; }
.avatar-md { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }
.avatar-lg { width: 96px; height: 96px; border-radius: 26px; font-size: 46px; }

/* ---------- A board: its threads as cards ---------- */
.board-head, .thread-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.board-head h1, .thread-head h1 { margin: 0; font: 400 34px/1.1 var(--serif); }
.board-head p { margin: 2px 0 0; color: var(--muted); }
.thread-head p { margin: 4px 0 0; }
.threads { display: grid; gap: 8px; margin-bottom: 14px; }
.thread-card {
  display: grid; grid-template-columns: 44px 1fr auto 150px; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); transition: background .15s, border-color .15s;
}
.thread-card:hover { background: var(--card-2); border-color: rgba(255, 179, 122, .35); color: var(--text); }
.thread-card.is-new { border-left: 3px solid var(--ember); }
.thread-main { display: grid; gap: 2px; min-width: 0; }
.thread-title { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.thread-by { color: var(--quiet); font-size: 13px; }
.thread-count { display: grid; justify-items: center; min-width: 56px; padding: 4px 10px; border-radius: 12px; background: var(--card-hi); }
.thread-count b { font-size: 17px; line-height: 1.1; }
.thread-count span { font-size: 11px; color: var(--quiet); }
.thread-last { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; text-align: center; border-radius: var(--radius);
  border: 2px dashed var(--line-2); color: var(--muted); }
.empty-state .ico { width: 44px; height: 44px; color: var(--rose); }

/* ---------- Buttons, pager, forms ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card-hi); color: var(--text); font-weight: 700; font-size: 14px;
}
.btn:hover { color: var(--gold-2); border-color: rgba(255, 179, 122, .45); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ember { border: 0; color: #fff; background: linear-gradient(135deg, var(--ember), var(--ember-2)); box-shadow: 0 3px 12px rgba(255, 106, 31, .35); }
.btn-ember:hover { color: #fff; filter: brightness(1.08); }
.btn-small { padding: 4px 12px; font-size: 13px; }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-danger:hover { color: var(--red); border-color: var(--red); }
.toolbar-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; }
.pager a, .pager span.cur { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.pager span.cur { background: var(--ember); border-color: var(--ember); color: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-weight: 800; }
.field small { font-weight: 400; color: var(--quiet); }
input[type="text"], textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #120b10; color: var(--text);
}
input[type="text"]:focus, textarea:focus { outline: 2px solid rgba(255, 122, 61, .5); border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.bb-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.bb-tools button { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; font-size: 13px; }
.bb-tools button:hover { border-color: var(--ember); }
.form-err { min-height: 1em; margin: 6px 0; color: var(--red); font-weight: 700; }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Posts ---------- */
.posts { display: grid; gap: 14px; margin-bottom: 14px; }
.post { display: grid; grid-template-columns: 170px 1fr; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.post-first { border-color: rgba(242, 196, 109, .3); }
.post-user { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 18px 12px; text-align: center; background: var(--card-2); }
.post-who { display: grid; justify-items: center; gap: 3px; }
.post-who .uname { font-size: 16px; }
.utitle { font-size: 12px; color: var(--rose); font-weight: 700; }
.ustats { font-size: 12px; color: var(--quiet); }
.spell-link { font-size: 12px; font-weight: 700; }
.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-head { display: flex; justify-content: space-between; padding: 10px 18px 0; color: var(--quiet); font-size: 13px; }
.post-head a { color: var(--quiet); }
.post-body { flex: 1; padding: 8px 18px 14px; overflow-wrap: anywhere; }
.post-body blockquote { margin: 8px 0; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border-left: 3px solid var(--violet); color: var(--muted); }
.post-body blockquote cite { display: block; font-style: normal; font-weight: 800; color: var(--violet); margin-bottom: 2px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-sig { margin: 0 18px 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); line-height: 0; }
.post-sig img { max-width: 100%; height: auto; }
.post-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 14px 12px; border-top: 1px solid var(--line); }
.post-acts { display: flex; gap: 4px; margin-left: auto; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; }
.react { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card-2); font-size: 15px; line-height: 1.3; transition: transform .1s, background .15s; }
.react b { font-size: 13px; }
.react.zero { opacity: .45; }
.react:hover:not(:disabled) { opacity: 1; transform: scale(1.08); }
.react.on { opacity: 1; background: rgba(255, 122, 61, .2); border-color: var(--ember); }
.react:disabled { cursor: default; }
.staff-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reply-card h2 { margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #3b2a12, #2c1c27); border: 1px solid var(--gold); color: var(--gold-2); font-weight: 800; box-shadow: var(--shadow); }

/* ---------- The old table (staff pages: painted pictures) ---------- */
table.grid { width: 100%; border-collapse: collapse; }
.grid th { padding: 8px 12px; text-align: left; font-size: 12px; color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; }
.grid td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.grid .empty { text-align: center; color: var(--quiet); padding: 20px; }
.thread-by { color: var(--quiet); }

/* ---------- Footer ---------- */
.board-foot { margin-top: 20px; text-align: center; color: var(--quiet); font-size: 13px; }
.board-foot p { margin: 4px 0; }

/* ---------- The image maker (Make my avatar / signature) ---------- */
.gen-current { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: 14px; background: var(--card-2); }
.gen-current .avatar { margin: 0; }
.gen-current img[width="468"] { display: block; max-width: 100%; height: auto; }
.gen-check { display: flex; align-items: center; gap: 6px; }
.gen-form textarea { width: 100%; min-height: 3.2em; }
.gen-meta, .gen-note { color: var(--quiet); font-size: 12px; }
.gen-status { color: var(--gold-2); font-weight: 800; }
.gen-grid { display: grid; gap: 10px; margin-top: 6px; }
.gen-avatar { grid-template-columns: repeat(4, minmax(0, 160px)); }
.gen-sig { grid-template-columns: minmax(0, 468px); }
.gen-opt { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; line-height: 0; }
.gen-opt:hover, .gen-opt.picked { border-color: var(--gold); }
.gen-opt img { width: 100%; height: auto; }
.gen-thumb img.t-av { width: 64px; height: 64px; border-radius: 10px; }
.gen-thumb img.t-sig { width: 234px; height: 30px; }
.gen-prompt { max-width: 320px; overflow-wrap: anywhere; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .index-grid { grid-template-columns: 1fr; grid-template-areas: "around" "hot" "spells"; }
  .thread-card { grid-template-columns: 44px 1fr auto; }
  .thread-last { display: none; }
}
@media (max-width: 640px) {
  .board { padding: 0 10px; margin-top: 10px; }
  .banner { flex-wrap: wrap; padding: 16px; }
  .banner-title { font-size: 36px; }
  .banner-sub::after { content: ""; }
  .banner-launch { margin-left: 0; align-items: stretch; max-width: none; width: 100%; }
  .topbar { position: static; border-radius: 18px; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-coin { width: 100%; grid-template-columns: auto auto auto; gap: 8px; align-items: baseline; justify-content: center; }
  .boards { grid-template-columns: 1fr; }
  .thread-card { gap: 10px; padding: 10px 12px; }
  .post { grid-template-columns: 1fr; }
  .post-user { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 12px; }
  .post-user .avatar-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }
  .post-who { justify-items: start; }
  .post-head, .post-body { padding-left: 14px; padding-right: 14px; }
  .gen-avatar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- My spots (sized places for my own pictures; spots.js) ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 0 16px; }
.spot-card h2 .quiet { margin-left: 6px; }
.spot-img { display: block; max-width: none; image-rendering: auto; }
.spot-now, .spot-mine, .spot-opts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 10px 0; overflow-x: auto; }
.spot-cell { display: grid; gap: 4px; justify-items: start; }
.spot-cell > span { display: flex; gap: 4px; }
.spot-empty { display: grid; place-items: center; border: 2px dashed var(--line-2); border-radius: 8px; color: var(--quiet); font-size: 12px; }
.spot-form { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.spot-form .field { margin-bottom: 6px; }
.spot-form input[type="file"] { font-size: 13px; }
.spot-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.spot-row label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.spot-row select, .spot-row input { padding: 6px 8px; border-radius: 10px; }
.gen-thumb img.t-spot { max-width: 160px; max-height: 80px; width: auto; height: auto; }

/* ---------- Rich text art in posts and signatures (textart.js / textart.css) ---------- */
.compose-mode { display: inline-flex; gap: 4px; margin-bottom: 8px; }
.compose-mode .btn.on { background: linear-gradient(135deg, var(--ember), var(--ember-2)); border-color: transparent; color: #fff; }
#richHost { margin-bottom: 8px; }
.post-body .ta-doc { font-size: 15px; }
.post-sig-text { line-height: 1.3; }
.post-sig-text .ta-doc { max-height: 120px; overflow: hidden; }
#sigHost .ta-surface { min-height: 80px; }
.affil-chip { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--muted); vertical-align: 1px; }

/* (Nov 4) dark dropdown menus, readable rows */
select { color-scheme: dark; }
select option { background-color: #1d1420; color: #f3e3c8; }
select option:disabled { color: #8a7f8c; }

/* ---- Ashen Crown market (forums-market.js): the For Sale board's order books. Adverts only. ---- */
.mk-banner p { color: var(--muted); }
.mk-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.mk-tabs .btn.on { outline: 2px solid var(--gold); }
.mk-search { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mk-search input { flex: 1 1 200px; }
.mk-search input, .mk-search select, .mk-form input, .mk-form select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font: inherit; }
.mk-list { display: grid; gap: 6px; }
.mk-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mk-row:hover { background: var(--card-hi); }
.mk-name { font-weight: 800; }
.mk-cell { color: var(--muted); font-size: 14px; }
.mk-icon { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 6px; background: var(--card-2); }
.mk-icon-none { display: inline-grid; place-items: center; font-weight: 800; color: var(--gold); }
.mk-item-head .mk-icon { width: 56px; height: 56px; }
.mk-books { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mk-book { width: 100%; border-collapse: collapse; font-size: 14px; }
.mk-book th { text-align: left; color: var(--quiet); font-weight: 700; padding: 4px 6px; border-bottom: 1px solid var(--line-2); }
.mk-book td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mk-acts { white-space: nowrap; }
.mk-acts .btn { margin: 0 2px 4px 0; }
.mk-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; background: var(--quiet); }
.mk-on-game { background: #6bdc7a; box-shadow: 0 0 6px #6bdc7a; }
.mk-on-site { background: var(--gold); }
.mk-store { background: rgba(177, 140, 255, .18); color: var(--violet); }
.mk-rep { color: var(--gold); font-weight: 700; font-size: 13px; }
.mk-how { margin: 0 0 14px; }
.mk-chart { width: 100%; max-width: 640px; height: auto; }
.mk-bar { fill: rgba(242, 155, 184, .35); }
.mk-line { fill: none; stroke: var(--gold); stroke-width: 2; }
.mk-pt { fill: var(--gold); }
.mk-axis { fill: var(--quiet); font-size: 10px; }
.mk-form label { display: block; margin: 0 0 10px; color: var(--muted); }
.mk-form label input, .mk-form label select { display: block; width: 100%; max-width: 420px; margin-top: 4px; }
.mk-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.mk-opt, .mk-picked { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); font: inherit; cursor: pointer; }
.mk-picked { border-color: var(--gold); cursor: default; }
@media (max-width: 760px) {
  .mk-books { grid-template-columns: 1fr; }
  .mk-row { grid-template-columns: 36px 1fr; }
  .mk-row .mk-cell { grid-column: 2; }
  .mk-book { font-size: 13px; }
  .mk-acts { white-space: normal; }
}

/* ---------- (v5560) Editing: the in-place form, the "edited" mark, a post's earlier versions ---------- */
.edit-form { display: grid; gap: 10px; }
.edit-form textarea { width: 100%; min-height: 220px; }
.edited { margin-left: 8px; color: var(--quiet); font-size: 12px; font-style: italic; }
.post-history { margin: 0 18px 12px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.post-history h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-history details { margin: 4px 0; }
.post-history summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.post-history .post-body { padding: 8px 0 4px; opacity: .85; }

/* ---------- (v5560) The guide tags: [h1] [banner] [box] [callout] [badge] [bar] [table] [icon] [hr=ornament]... ---------- */
.post-body .bb-center { text-align: center; }
.post-body .bb-right { text-align: right; }
.post-body .bb-h1, .post-body .bb-h2, .post-body .bb-h3 { --bb: var(--gold); font-family: var(--serif); color: var(--bb); line-height: 1.15; }
.post-body .bb-h1 { font-size: 38px; margin: 14px 0 8px; text-shadow: 0 0 18px color-mix(in srgb, var(--bb) 45%, transparent); }
.post-body .bb-h2 { font-size: 28px; margin: 18px 0 10px; padding: 8px 14px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bb) 26%, transparent), transparent 85%);
  border-left: 4px solid var(--bb); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.post-body .bb-h3 { font-size: 20px; margin: 14px 0 6px; border-bottom: 1px solid color-mix(in srgb, var(--bb) 40%, transparent); padding-bottom: 3px; }
.post-body .bb-banner { --bb: var(--ember); position: relative; margin: 4px 0 16px; padding: 26px 20px 22px; border-radius: 20px; text-align: center; overflow: hidden;
  background:
    radial-gradient(120% 140% at 50% -20%, color-mix(in srgb, var(--bb) 55%, transparent), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, color-mix(in srgb, var(--bb) 22%, #1a1016), #120b10);
  border: 2px solid color-mix(in srgb, var(--bb) 70%, transparent);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 36px color-mix(in srgb, var(--bb) 35%, transparent), inset 0 0 40px rgba(0, 0, 0, .45); }
.post-body .bb-banner::before, .post-body .bb-banner::after { content: "❦"; position: absolute; top: 10px; font-size: 22px; color: color-mix(in srgb, var(--bb) 80%, #fff); opacity: .7; }
.post-body .bb-banner::before { left: 16px; }
.post-body .bb-banner::after { right: 16px; transform: scaleX(-1); }
.post-body .bb-banner .bb-h1 { margin: 6px 0 4px; color: #fff4e6; text-shadow: 0 0 14px var(--bb), 0 2px 0 rgba(0, 0, 0, .6); }
.post-body .bb-banner .bb-icon { filter: drop-shadow(0 0 12px var(--bb)); }
.post-body .bb-box { --bb: var(--violet); margin: 10px 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--bb) 9%, rgba(0, 0, 0, .25));
  border: 1px solid color-mix(in srgb, var(--bb) 38%, transparent); }
.post-body .bb-callout { --bb: var(--gold); position: relative; margin: 12px 0; padding: 12px 16px 12px 46px; border-radius: 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--bb) 22%, transparent), color-mix(in srgb, var(--bb) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--bb) 60%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--bb) 18%, transparent); }
.post-body .bb-callout::before { content: "★"; position: absolute; left: 14px; top: 10px; font-size: 22px; color: var(--bb); text-shadow: 0 0 10px var(--bb); }
.post-body .bb-badge { --bb: var(--gold); display: inline-block; min-width: 2.6em; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center;
  color: #160e12; background: var(--bb); box-shadow: 0 0 8px color-mix(in srgb, var(--bb) 50%, transparent); vertical-align: 1px; white-space: nowrap; }
.post-body .bb-bar { --bb: var(--ember); position: relative; display: inline-block; width: min(240px, 100%); height: 18px; border-radius: 999px; overflow: hidden;
  background: rgba(0, 0, 0, .4); border: 1px solid color-mix(in srgb, var(--bb) 45%, transparent); vertical-align: middle; }
.post-body .bb-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bb) 55%, transparent), var(--bb)); box-shadow: 0 0 10px var(--bb); }
.post-body .bb-label { position: relative; display: block; padding: 0 8px; font-size: 11px; line-height: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.post-body .bb-glow { --bb: var(--gold); color: color-mix(in srgb, var(--bb) 70%, #fff); text-shadow: 0 0 8px var(--bb), 0 0 18px var(--bb); }
.post-body .bb-grad { background: linear-gradient(90deg, var(--bb), var(--bb2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-body .bb-icon { width: 24px; height: 24px; vertical-align: -6px; margin: 0 3px; border-radius: 4px; }
.post-body .bb-hr { border: 0; height: 1px; margin: 16px 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.post-body .bb-orn { display: flex; align-items: center; gap: 12px; height: auto; background: none; color: var(--gold); font-size: 14px; letter-spacing: .4em; }
.post-body .bb-orn::before, .post-body .bb-orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold) 60%, transparent)); }
.post-body .bb-orn::after { transform: scaleX(-1); }
.post-body .bb-tablewrap { overflow-x: auto; margin: 10px 0; border-radius: 12px; border: 1px solid var(--line-2); }
.post-body .bb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-body .bb-table th { padding: 8px 10px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold);
  background: linear-gradient(rgba(242, 196, 109, .16), rgba(242, 196, 109, .06)); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.post-body .bb-table td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.post-body .bb-table tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.post-body .bb-table tr:hover td { background: rgba(255, 179, 122, .06); }
.post-body .bb-table td.bb-right { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-body .bb-table td.bb-center { text-align: center; }
.post-body .bb-goto { font-weight: 700; }
.post-body .bb-anchor { display: block; scroll-margin-top: 80px; }

/* Crimson theme (Revy, Nov 12: try the entertainment palette d11d04 / 6f0f04 / 79624e / fdfcf7 / 190d05).
   Opt-in: the topbar's Theme button sets data-forum-theme on <html> (kept in localStorage). */
:root[data-forum-theme="crimson"] {
  --page: #190d05;
  --page-2: #211108;
  --card: #29150b;
  --card-2: #321a0e;
  --card-hi: #3c2012;
  --line: rgba(253, 252, 247, .08);
  --line-2: rgba(253, 252, 247, .15);
  --text: #fdfcf7;
  --muted: #cdbcab;
  --quiet: #9c8571;
  --gold: #e0b98a;
  --gold-2: #f2d3a8;
  --link: #ff5a3c;
  --ember: #d11d04;
  --ember-2: #6f0f04;
  --rose: #e88a74;
  --violet: #b49a83;
  --admin: #e0b98a;
  --red: #ff4a2e;
}
:root[data-forum-theme="crimson"] .banner { background-color: #6f0f04; }
.theme-toggle { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px;
  padding: 2px 10px; font: inherit; font-size: .85em; cursor: pointer; margin-left: 8px; }
.theme-toggle:hover { color: var(--text); border-color: var(--ember); }

/* ---------- Pixel witches (forums-avatar.js; nexus/forums/avatar.js draws them) ---------- */
img.pix { image-rendering: pixelated; image-rendering: crisp-edges; }
.avatar.pix { object-fit: contain; background: #2a1d33; }
/* the post's sidebar: her whole doll on a little stage (her head instead on a phone) */
.post-user .doll { display: block; width: 120px; height: 220px; margin: -6px auto 0; padding-bottom: 4px;
  background: radial-gradient(ellipse 46% 7% at 50% 96%, rgba(0, 0, 0, .38), transparent 70%); }
.post-user .doll + .avatar-lg { display: none; }
.dress .dr-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.dr-stage { position: sticky; top: 12px; display: grid; gap: 12px; justify-items: center; }
.dr-doll { width: 264px; height: 452px; display: grid; place-items: end center; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(ellipse 40% 5% at 50% 95%, rgba(0, 0, 0, .45), transparent 70%), radial-gradient(circle at 50% 30%, #3b2747, #1d121a 75%); }
.dr-doll img { display: block; margin-bottom: 4px; }
.dr-headrow { display: flex; gap: 12px; align-items: center; width: 100%; }
.dr-head { border-radius: 22px; background: #2a1d33; flex: none; }
.dr-bgs { flex-wrap: wrap; }
.dr-on { font-size: 14px; line-height: 1.35; width: 100%; }
.dr-on input { transform: scale(1.2); margin-right: 6px; accent-color: var(--ember); }
.dr-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.dr-controls details { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 4px 14px 12px; margin-bottom: 12px; }
.dr-controls summary { cursor: pointer; font-weight: 800; padding: 8px 0; color: var(--gold); }
.dr-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.dr-lab { width: 100%; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); }
.dr-chip { font: inherit; font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); cursor: pointer; }
.dr-chip:hover { color: var(--text); border-color: var(--ember); }
.dr-chip.on { color: #fff; border-color: var(--ember); background: linear-gradient(135deg, rgba(255, 122, 61, .35), rgba(226, 84, 42, .25)); }
.dr-sw { width: 28px; height: 28px; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; }
.dr-sw span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  background-image: linear-gradient(45deg, #3a2a36 25%, transparent 25%, transparent 75%, #3a2a36 75%); background-size: 8px 8px; }
.dr-sw.on { border-color: var(--gold); }
.dr-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.dr-tab { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.dr-tab.on { color: var(--text); background: var(--card-hi); border-color: var(--line-2); }
.dr-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.dr-item { display: grid; justify-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font: inherit; font-size: 11px; line-height: 1.2; cursor: pointer; min-height: 92px; }
.dr-item img { width: 64px; height: 64px; object-fit: contain; }
.dr-item.on { border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 1px var(--gold) inset; }
.dr-none { display: grid; place-items: center; height: 64px; font-size: 13px; font-weight: 800; }
@media (max-width: 760px) {
  .post-user .doll { display: none; }
  .post-user .doll + .avatar-lg { display: inline-grid; }
  .dress .dr-wrap { grid-template-columns: 1fr; }
  .dr-stage { position: static; }
  .dr-doll { width: 100%; max-width: 264px; }
}
.dr-try { margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: rgba(242, 196, 109, .1); border: 1px solid rgba(242, 196, 109, .3); font-size: 13px; }

/* ---------- My game stats (#/me/stats) and profiles (#/u/<uid>): forums-stats.js ----------
   Outcome colours: won (blue), lost (ember), gave up (gold), drawn (grey: a neutral, on purpose). Checked for colour-blind
   separation on the card colour; every bar has its counts written under it and every square its letter. */
:root { --st-win: #3d9fd0; --st-loss: #d9532c; --st-gaveup: #d4a640; --st-draw: #7d6d75; }
a.uname:hover { color: var(--gold-2); }
.st-top, .st-card, .st-prof { margin-bottom: 14px; }
.st-switch { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; font-weight: 700; cursor: pointer; }
.st-switch input { width: 20px; height: 20px; accent-color: var(--ember); }
.st-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-head h2 { margin: 0; flex: 1; }
.st-acts { display: flex; gap: 6px; }
.st-bar { display: flex; gap: 2px; height: 14px; margin: 12px 0 6px; }
.st-seg { min-width: 4px; border-radius: 0; }
.st-seg:first-child { border-radius: 4px 0 0 4px; }
.st-seg:last-child { border-radius: 0 4px 4px 0; }
.st-seg:only-child { border-radius: 4px; }
.st-win { background: var(--st-win); } .st-loss { background: var(--st-loss); }
.st-draw { background: var(--st-draw); } .st-gaveup { background: var(--st-gaveup); }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.st-legend b { color: var(--text); }
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.st-sub { margin: 14px 0 6px; font-size: 12px; color: var(--quiet); text-transform: uppercase; letter-spacing: .05em; }
.st-strip { display: flex; flex-wrap: wrap; gap: 3px; }
.st-sq { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #170f14; cursor: default; }
.st-rating { display: flex; align-items: center; gap: 16px; margin: 12px 0 4px; flex-wrap: wrap; }
.st-tile { display: flex; flex-direction: column; min-width: 130px; }
.st-big { font: 40px/1 var(--serif); color: var(--gold-2); }
.st-line { flex: 1; min-width: 180px; height: 64px; }
.st-axis { stroke: var(--line-2); stroke-width: 1; }
.st-path { fill: none; stroke: var(--st-win); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-end { fill: var(--st-win); stroke: var(--card); stroke-width: 2; }
.st-hit { fill: transparent; }
.st-hit:hover { fill: rgba(61, 159, 208, .25); }
.st-modes { margin-top: 10px; }
.st-mode { padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 10px; }
.st-mode .st-bar { height: 8px; margin: 6px 0 4px; }
.st-nums { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.st-prof { display: flex; align-items: center; gap: 14px; }
.st-prof h2 { margin: 0; }
.st-av { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; image-rendering: pixelated; }
.st-h3 { margin: 18px 4px 10px; font: 26px/1.1 var(--serif); }
@media (max-width: 640px) { .st-rating { gap: 10px; } .st-line { min-width: 100%; } .st-big { font-size: 34px; } }
