/* Phantasia website - matches the iPhone / iPad / Mac app and the web client.
   Rewritten by Kyle Bargman, link@phantasia4.com, 2026-11-18. */

:root {
  /* the classic Phantasia colours (olive, steel blue, mauve, green) on the
     new layout - Kyle Bargman, 2026-11-18 */
  --night: #0d0d0d;
  --panel: #1a1a1a;
  --panel-2: #222222;
  --line: rgba(153, 153, 102, 0.38);
  --line-soft: rgba(153, 153, 102, 0.18);
  --gold: #c2bd78;        /* olive-gold headings (from #999966) */
  --gold-light: #d6d19a;
  --gold-dim: #77774f;
  --parchment: #d9d7c3;   /* body text */
  --faded: #a3a184;
  --link: #8aa5c0;        /* steel blue (from #668099) */
  --link-hover: #b98fa0;  /* mauve (from #7a5261) */
  --green: #99cc66;       /* the old accent green */
  --red: #d9655b;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at top, #1f1f1a 0%, var(--night) 60%) fixed, var(--night);
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body { padding: 1.25rem; }

/* ---------- typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
  line-height: 1.3;
  margin: 1.8rem 0 0.6rem;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
h4, h5, h6 { font-size: 1.05rem; color: var(--gold-light); }

/* the title at the top of every page */
h1.page-title {
  margin: 0.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 2rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--green);
}

p { margin: 0 0 1rem; }

a, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:active { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }

strong, b { color: var(--green); font-weight: 650; }

ul, ol { margin: 0 0 1rem; padding-left: 1.6rem; }
li { margin: 0 0 0.4rem; }
li::marker { color: var(--gold-dim); }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

code, pre, kbd {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--gold-light);
}
pre { padding: 0.8rem 1rem; overflow-x: auto; }

/* old pages: <font> colours, faces and sizes give way to the theme */
font { color: inherit !important; font-family: inherit !important; font-size: inherit !important; }

/* ---------- layout ---------- */
#wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: flex-start;
}

#sidebar-left {
  flex: 0 0 230px;
  position: sticky;
  top: 1.25rem;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.75rem 1.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

#sidebar-left h2 {
  font-family: var(--serif);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 1.1rem 0.5rem 0.35rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line-soft);
}
#sidebar-left h2:first-child { margin-top: 0.2rem; }
#sidebar-left h2 img { display: none; }

#sidebar-left a {
  display: block;
  padding: 0.22rem 0.6rem;
  border-radius: 7px;
  color: var(--link);
  font-size: 0.92rem;
  line-height: 1.35;
}
#sidebar-left a:hover {
  background: rgba(153, 153, 102, 0.12);
  color: var(--link-hover);
  text-decoration: none;
}
#sidebar-left a.active {
  background: rgba(153, 153, 102, 0.18);
  color: var(--green);
}
#sidebar-left a.cta {
  margin: 0.15rem 0 0.25rem;
  text-align: center;
  font-weight: 650;
  color: #15150d;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
#sidebar-left a.cta:hover { color: #15150d; filter: brightness(1.06); }
#sidebar-left br { display: none; }

#main {
  flex: 1;
  min-width: 0;
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 2.25rem 2.25rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.site-logo { display: block; text-align: center; margin: 0.25rem 0 1rem; }
.site-logo img { max-width: 100%; height: auto; }
/* every drop-down in the site's colours, never the browser's white box; pages
   with their own select rules still win (Kyle Bargman, 2026-11-21) */
select { font: inherit; background-color: var(--panel-2); color: var(--parchment);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.55rem; }
option, optgroup { background: var(--panel-2); color: var(--parchment); }
.site-logo:hover { text-decoration: none; }
/* the forum and staff pages on a phone: a small logo, the page first (Kyle Bargman, 2026-11-21) */
@media (max-width: 600px) { .site-logo-compact { margin: 0 0 0.4rem; } .site-logo-compact img { max-height: 70px; width: auto; } }

#footer {
  flex: 0 0 100%;
  margin-top: 0.25rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--faded);
  font-size: 0.85rem;
}
#footer > br:first-child { display: none; }

/* ---------- content ---------- */
center { display: block; margin: 1rem 0; }

img { max-width: 100%; height: auto; }
#main img { border-radius: 6px; }

/* one table style for every page */
#main table {
  border-collapse: collapse;
  max-width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--line) !important;
}
#main th, #main td {
  padding: 0.45rem 0.75rem;
  border: none !important;
  border-bottom: 1px solid var(--line-soft) !important;
  text-align: left;
  vertical-align: top;
  color: var(--parchment) !important;
  background: transparent !important;
}
#main th {
  font-family: var(--serif);
  color: var(--gold) !important;
  font-weight: 600;
  background: rgba(153, 153, 102, 0.08) !important;
}
#main tr:last-child td { border-bottom: none !important; }
#main tbody tr:hover td { background: rgba(153, 153, 102, 0.04) !important; }

/* a boxed note */
.note {
  background: rgba(153, 153, 102, 0.07);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

/* buttons */
.btn, a.btn, a.btn:visited {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 650;
  color: #15150d;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: 1px solid var(--gold);
}
.btn:hover { text-decoration: none; color: #15150d; filter: brightness(1.06); }
.btn.secondary, a.btn.secondary, a.btn.secondary:visited {
  color: var(--gold-light);
  background: transparent;
  border: 1px solid var(--gold-dim);
}

/* screenshots */
figure.shot { margin: 1.25rem 0 1.5rem; text-align: center; }
figure.shot img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
figure.shot figcaption { color: var(--faded); font-size: 0.85rem; margin-top: 0.5rem; }

/* powers lists (Steward, King, Council, Valar) */
dl.powers { margin: 1rem 0 1.5rem; }
dl.powers dt {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.8rem;
}
dl.powers dd { margin: 0.15rem 0 0 1.25rem; }

/* menu button: only on small screens (Kyle Bargman, 2026-11-18) */
#menu-toggle, #menu-backdrop { display: none; }

/* ---------- phones and small screens ---------- */
@media (max-width: 860px) {
  body { padding: 0.6rem; }
  #wrapper { display: block; }
  #main { padding: 1.1rem 1.1rem 1.5rem; }
  h1.page-title { font-size: 1.6rem; }

  #menu-toggle {
    display: inline-block;
    position: sticky;
    top: 0.5rem;
    z-index: 1001;
    margin: 0 0 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 1rem;
    font-family: var(--serif);
    color: var(--gold-light);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  #menu-toggle:hover, #menu-toggle:focus-visible { border-color: var(--gold); }

  #sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1002;
    width: min(82vw, 290px);
    max-height: none;
    border-radius: 0 14px 14px 0;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    visibility: hidden;
  }
  body.menu-open #sidebar-left { transform: translateX(0); visibility: visible; }
  #sidebar-left a { padding: 0.5rem 0.7rem; font-size: 1rem; }

  body.menu-open #menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
  }
  body.menu-open { overflow: hidden; }

  #main table { display: block; overflow-x: auto; }
}

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* client cards on the Play page (Kyle Bargman, 2026-11-18) */
.lead { font-size: 1.1rem; color: var(--parchment); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}
.card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem 0.4rem;
}
.card h3 { margin-top: 0.2rem; }
.card .btn { margin: 0 0.35rem 0.5rem 0; }

/* Realm at a Glance (Kyle Bargman, 2026-11-18) */
.glance-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.95rem;
}
.glance-status .up { color: var(--green); font-weight: 650; }
.glance-status .down { color: var(--red); font-weight: 650; }
.muted { color: var(--faded); }
.small { font-size: 0.82rem; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}
.tile {
  text-align: center;
  padding: 0.9rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.tile b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--green);
  line-height: 1.2;
}
.tile span { color: var(--faded); font-size: 0.85rem; }
.card table { width: 100%; }
ul.chronicle { list-style: none; padding: 0; }
ul.chronicle li {
  padding: 0.45rem 0.75rem;
  border-left: 3px solid var(--gold-dim);
  margin-bottom: 0.4rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 8px 8px 0;
}
ul.chronicle li.deed { border-left-color: var(--green); }
ul.chronicle li.power { border-left-color: var(--link-hover); }
ul.chronicle .when { float: right; color: var(--faded); font-size: 0.82rem; margin-left: 1rem; }
ul.chronicle .times { color: var(--gold); font-size: 0.85rem; }
.glance-cards { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.glance-cards td:last-child, .glance-cards th:last-child { white-space: nowrap; }
@media (max-width: 860px) { .glance-cards { grid-template-columns: 1fr; } }

/* weekly realm goal (Kyle Bargman, 2026-11-18) */
.goal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem 1.1rem;
  margin: 0.75rem 0 1rem;
}
.goal-card.goal-bonus { border-color: rgba(153, 204, 102, 0.6); box-shadow: 0 0 18px rgba(153, 204, 102, 0.15); }
.goal-head, .goal-numbers { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; }
.goal-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 0.7rem 0 0.5rem; }
.goal-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width 0.6s; }
.goal-bonus .goal-bar > div { background: linear-gradient(90deg, #6fa85e, var(--green)); }
.goal-reward { color: var(--green); font-weight: 600; }
.goal-top { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.goal-history summary { cursor: pointer; color: var(--link); margin: 0.25rem 0 0.5rem; }
.home-goal { display: block; max-width: 560px; margin: 1rem auto; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,0.22); color: var(--parchment); }
.home-goal:hover { text-decoration: none; border-color: var(--gold); color: var(--parchment); }
.home-goal .goal-bar { margin: 0.45rem 0 0.1rem; height: 8px; }

/* Hall of the Dead (Kyle Bargman, 2026-11-18) */
.sb-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin: 0.75rem 0; }
.sb-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sb-tabs a { padding: 0.3rem 0.9rem; color: var(--faded); font-size: 0.9rem; }
.sb-tabs a.on { background: rgba(153, 153, 102, 0.2); color: var(--green); }
.sb-tabs a:hover { text-decoration: none; color: var(--parchment); }
.sb-terminal {
  background: #050805;
  border: 1px solid #2c3a26;
  border-radius: 10px;
  box-shadow: inset 0 0 40px rgba(60, 255, 90, 0.05), 0 6px 22px rgba(0, 0, 0, 0.5);
  padding: 1rem 1.1rem;
  overflow-x: auto;
}
.sb-terminal pre {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #7dff8f;
  font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  text-shadow: 0 0 4px rgba(125, 255, 143, 0.45);
  white-space: pre;
}

/* character pages (Kyle Bargman, 2026-11-18) */
.hero-head { text-align: center; margin: 0 0 1rem; }
.hero-name { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1.2; }
.hero-sub { color: var(--faded); font-size: 1.05rem; }
.sb-terminal pre a { color: #b8ffc2; text-decoration: none; }
.sb-terminal pre a:hover { text-decoration: underline; }

/* phones: nothing wider than the screen (Kyle Bargman, 2026-11-19).
   Grid cards may shrink below their contents; a card scrolls its own wide
   table rather than the page; the Hall of Records tabs wrap; long "how
   they fell" lines wrap. */
.cards > *, .tiles > * { min-width: 0; }
.card { overflow-x: auto; }
.sb-tabs { flex-wrap: wrap; max-width: 100%; border-radius: 16px; }
@media (max-width: 600px) {
  .glance-cards td:last-child, .glance-cards th:last-child { white-space: normal; }
}

/* game guide pages: fight buttons, spell cards, fact lists
   (Kyle Bargman, 2026-11-19) */
.gbtn {
  display: inline-block;
  padding: 0.05em 0.55em;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  background: rgba(153, 153, 102, 0.12);
  font-family: var(--serif);
  font-size: 0.95em;
  color: var(--gold-light);
  white-space: nowrap;
}
dl.powers dt .gbtn { font-size: 1rem; }
.spell-cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card .names { color: var(--faded); font-size: 0.85rem; margin: -0.3rem 0 0.6rem; font-style: italic; }
dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.15rem 0.9rem;
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}
dl.facts dt { color: var(--faded); }
dl.facts dd { margin: 0; color: var(--parchment); }
.toc { columns: 2; column-gap: 2rem; margin: 0.5rem 0 1.5rem; }
.toc li { break-inside: avoid; }
@media (max-width: 600px) {
  .toc { columns: 1; }
  .spell-cards { grid-template-columns: 1fr; }
}
.status-up { color: var(--green); font-weight: 650; }
.status-down { color: var(--red); font-weight: 650; }

/* the realms beyond Middle-earth (Built by Kyle Bargman, 2026-11-20) */
.soon-tag {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(194, 189, 120, 0.12);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.soon-note { font-size: 1.05rem; }
.soon-note p { margin: 0; }
.realm-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.realm-cards img { display: block; width: 100%; max-width: 320px; margin: 0.2rem auto 0.4rem; }
figure.realm-map img { width: 100%; max-width: 520px; }

/* markup tidy (Built by Kyle Bargman, 2026-11-20): headings put in order keep
   their old look; text for screen readers only; wide tables scroll in place */
h2.hs3, h3.hs3 { font-size: 1.2rem; color: var(--gold); }
h2.hs4, h3.hs4 { font-size: 1.05rem; color: var(--gold-light); }
.byline { text-align: center; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--gold-light); margin: 1.8rem 0 0.6rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; }
.table-scroll > table { margin: 0 !important; }

/* the forums (Built by Kyle Bargman, 2026-11-20) */
.forums { margin-bottom: 1.5rem; }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; padding: 0.5rem 0.8rem; margin: 0 0 1rem;
  border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0, 0, 0, 0.22); font-size: 0.92rem; }
.fme { color: var(--faded); }
.finline { display: inline; margin: 0; }
.flink { background: none; border: none; padding: 0; margin: 0 0 0 0.5rem; color: var(--link); font: inherit; cursor: pointer; }
.flink:hover { color: var(--link-hover); text-decoration: underline; }
.forums .table-scroll > table.ftable { width: 100%; }
.ftable .fnum { text-align: right !important; white-space: nowrap; width: 5.5rem; }
.ftable td:last-child { width: 13rem; }
.fboard { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.ftag { display: inline-block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0 0.45rem; vertical-align: middle; font-family: var(--sans); }
.ftag.fdel { color: var(--red); border-color: var(--red); }
.fnew { color: var(--green); font-size: 0.75rem; }
.fdeleted { opacity: 0.55; }
.ftopic-tags { margin: 0 0 0.6rem; display: flex; gap: 0.4rem; }
.fpost { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.9rem; margin: 0 0 0.8rem; border: 1px solid var(--line-soft);
  border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.fauthor { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--faded); border-right: 1px solid var(--line-soft); padding-right: 0.8rem; overflow-wrap: anywhere; }
.fname { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); }
.ftitle { color: var(--green); font-weight: 600; }
.fbody { min-width: 0; }
.fmeta { font-size: 0.8rem; color: var(--faded); margin-bottom: 0.4rem; }
.fmeta a { color: var(--faded); }
.fcontent { overflow-wrap: anywhere; }
.fcontent p { margin: 0 0 0.7rem; }
.fcontent blockquote { margin: 0 0 0.7rem; padding: 0.4rem 0.8rem; border-left: 3px solid var(--gold-dim); background: rgba(153, 153, 102, 0.06); border-radius: 0 8px 8px 0; }
.fcontent code { background: rgba(255, 255, 255, 0.07); padding: 0 0.25rem; border-radius: 4px; }
.fcode { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line-soft); border-radius: 8px; padding: 0.6rem; overflow-x: auto; font-size: 0.85rem; }
.fimg { max-height: 480px; }
.factions { display: flex; gap: 0.9rem; font-size: 0.82rem; margin-top: 0.4rem; }
.factions .flink { margin: 0; }
.fmodbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.fmodbar select { padding: 0.35rem; background: var(--panel-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 8px; }
.fpager { margin: 0.6rem 0; font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.fpager a, .fpager b { padding: 0 0.45rem; border: 1px solid var(--line-soft); border-radius: 6px; }
.fpager b { color: var(--gold); border-color: var(--gold-dim); }
.fform { display: flex; flex-direction: column; gap: 0.7rem; max-width: 720px; }
.fform label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; color: var(--gold-light); }
.fform input[type=text], .fform input[type=password], .fform textarea { width: 100%; padding: 0.55rem 0.7rem; font: inherit; font-weight: 400;
  color: var(--parchment); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 8px; }
.fform textarea { min-height: 10rem; resize: vertical; }
.fform .btn { align-self: flex-start; cursor: pointer; font: inherit; font-weight: 650; }
.fform p { margin: 0; }
.ferr { border-left-color: var(--red); }
.flogin { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.flogin h2 { margin-top: 0; }
.fchars { display: flex; flex-direction: column; gap: 0.3rem; }
.fform label.fchar { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; color: var(--parchment); }
.frealm { margin: 0 0 1rem; font-size: 0.92rem; }
.flatest { margin: 0.3rem 0 0.6rem; padding-left: 1.1rem; }
.home-forums { max-width: 640px; margin: 1rem auto 1.5rem; }
@media (max-width: 640px) {
  .fpost { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.7rem; }
  .fauthor { flex-direction: row; flex-wrap: wrap; gap: 0 0.6rem; border-right: none; border-bottom: 1px solid var(--line-soft); padding: 0 0 0.4rem; }
  .ftable td:last-child, .ftable th:last-child { display: none; }
  .ftable .fnum { width: auto; }
}
/* the owner's board manager (Kyle Bargman, 2026-11-20) */
.fadmin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.fadmin-board { padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid var(--line); }
.fadmin input[type=text], .fadmin input[type=number], .fadmin select { padding: 0.4rem 0.55rem; font: inherit; background: var(--panel-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 8px; }
.fadmin input[type=number] { width: 4.5rem; }
.fadmin label { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--parchment); }
.fadmin .btn { cursor: pointer; font: inherit; padding: 0.35rem 0.8rem; }
/* the forums' smiley buttons (Kyle Bargman, 2026-11-20) */
.fsmilies { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.fsmiley { font-size: 1.2rem; line-height: 1; padding: 0.3rem 0.4rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.fsmiley:hover, .fsmiley:focus-visible { border-color: var(--gold-light); }
/* what a poster is in the realm (Kyle Bargman, 2026-11-20) */
.fauthor .frank { color: var(--gold-light); font-weight: 600; }
.fauthor .fseat { color: #ecd08a; font-style: italic; }
.fauthor .fbadges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.2rem; }
.fauthor .fbadge { font-size: 0.78rem; padding: 0.05rem 0.4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); white-space: nowrap; }
.fauthor .fhonour { font-size: 0.82rem; font-style: italic; color: var(--faded); }
/* the Chatroom: Northfire's shared web chat in the realm's colours (Kyle Bargman, 2026-11-20) */
#webchat.chatroom { --bg: #121212; --bg-band: #171717; --surface: var(--panel); --surface-2: var(--panel-2);
  --border: var(--line-soft); --border-strong: var(--line); --text: var(--parchment); --text-strong: #efedd9;
  --muted: var(--faded); --accent: #3f4a25; --accent-2: #5b6b33; --accent-hot: var(--gold); --radius: 10px; }
#webchat.chatroom .wc-login { display: flex; flex-direction: column; gap: 0.7rem; max-width: 420px; }
#webchat.chatroom .wc-login .field { display: flex; flex-direction: column; gap: 0.25rem; }
#webchat.chatroom .wc-login label { font-weight: 600; color: var(--gold-light); }
#webchat.chatroom .wc-login .dark { color: var(--faded); font-weight: 400; }
#webchat.chatroom .wc-login input { padding: 0.55rem 0.7rem; font: inherit; background: var(--panel-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 8px; }
#webchat.chatroom .wc-app { margin-top: 0.5rem; }
/* the owner's private pages in the layout (Kyle Bargman, 2026-11-20) */
.private-page h2 { margin-top: 1.6rem; }
.private-page table { width: 100%; }
/* forum moderation (Kyle Bargman, 2026-11-20) */
.fwarn { border-left-color: #d08a4a; }
.fwarn ul { margin: 0.4rem 0; }
.freport { border: 1px solid var(--line-soft); border-left: 3px solid #d08a4a; border-radius: 10px; padding: 0.7rem 0.9rem; margin: 0.8rem 0; background: var(--panel-2); }
.freport blockquote { margin: 0.4rem 0; max-height: 10rem; overflow: auto; white-space: pre-wrap; }
.fhist { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0.6rem 0; }
.fwarnlist { padding-left: 1.2rem; }
.fwarnlist li { margin: 0.2rem 0; }
/* forum profiles: avatars, what's under them, signatures, the Posting as list (Kyle Bargman, 2026-11-20) */
.favatar { display: block; border-radius: 12px; object-fit: cover; margin: 0 auto 0.4rem; background: var(--panel-2); border: 1px solid var(--line-soft); }
.fauthor .favatar { width: 64px; height: 64px; }
.favatar-none { display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--display-font, Georgia, serif); font-weight: 700;
  background: radial-gradient(circle at 35% 30%, rgba(194,189,120,.18), rgba(0,0,0,.25)); }
.fprofile-avatar { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.fprofile-avatar .favatar { margin: 0; width: 128px; height: 128px; }
.fshown { display: block; font-size: 0.82rem; margin-top: 0.15rem; }
.fshown-earned { color: var(--gold-light); font-weight: 600; }
.fshown-custom { color: var(--faded); font-style: italic; }
.fsig { margin-top: 0.8rem; padding-top: 0.45rem; border-top: 1px solid var(--line-soft); font-size: 0.82rem; color: var(--faded); }
.fsig p { margin: 0; }
.fposting select { max-width: 9.5rem; padding: 0.15rem 0.3rem; font: inherit; font-size: 0.9em; background: var(--panel-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 6px; }
/* the owner's Developer page, in sections (Kyle Bargman, 2026-11-20) */
/* Permissions: each of the staff, their tools by group (Kyle Bargman, 2026-11-21) */
.fperm { margin: 1rem 0; padding: 0.9rem 1rem; }
.fperm-who { font-size: 1.05rem; margin: 0 0 0.6rem; color: var(--gold-light); }
.fperm-group { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.45rem 0.8rem 0.6rem; margin: 0 0 0.6rem; }
.fperm-group legend { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 0 0.35rem; }
.fperm-item { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; padding: 0.1rem 0.3rem; border-radius: 6px; }
.fperm-changed, .fperm-changed-key { background: rgba(194,189,120,0.16); outline: 1px solid rgba(194,189,120,0.45); }
.fperm-changed-key { padding: 0 0.3rem; border-radius: 4px; }
.fperm-2fa { font-size: 0.68rem; padding: 0 0.35rem; border-radius: 999px; border: 1px solid var(--line-soft); opacity: 0.8; }
.fperm-warn { color: #ffb39a; }
.devsec { margin: 1.4rem 0 0.4rem; }
.devsec h2 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-light); border-bottom: 1px solid var(--line-soft); padding-bottom: 0.45rem; margin: 0 0 0.8rem; }
.devsec-icon { font-size: 1.15rem; letter-spacing: 0; }
.devcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.devcard { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line-soft); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.18)); color: var(--parchment); text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s; }
.devcard:hover, .devcard:focus-visible { border-color: var(--gold); transform: translateY(-1px); background: rgba(194,189,120,0.06); }
.devcard-icon { flex: 0 0 2.3rem; height: 2.3rem; display: grid; place-items: center; font-size: 1.25rem; border-radius: 10px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line-soft); }
.devcard-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.devcard-text b { color: var(--gold-light); font-size: 1.02rem; }
.devbadge { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.08rem 0.5rem; border-radius: 999px; }
.devbadge-hot { background: #5b2a1c; color: #ffd2b8; border: 1px solid #8c3f25; }
.devbadge-info { background: #26331a; color: #cfe3a8; border: 1px solid #4b6330; }
/* the trail and quick row on the owner's pages (Kyle Bargman, 2026-11-20) */
.private-crumbs { justify-content: flex-start; }
/* the staff pages' quick links: one row in the Manage page's groups, scrolling
   sideways rather than wrapping; a "Jump to" select on phones (2026-11-21) */
.devquick { margin: -0.4rem 0 1.1rem; font-size: 0.8rem; }
.dq-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.2rem; }
.dq-group { display: inline-flex; gap: 0.25rem; padding: 0 0.6rem; white-space: nowrap; }
.dq-group:first-child { padding-left: 0; }
.dq-group + .dq-group { border-left: 1px solid var(--line); }
.dq-pill { padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-soft); text-decoration: none; white-space: nowrap; }
a.dq-pill { color: var(--faded); } a.dq-pill:hover, a.dq-pill:focus-visible { color: var(--gold-light); border-color: var(--gold); }
.dq-pill[aria-current] { color: #0d0d0d; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.dq-jump { display: none; }
@media (max-width: 700px) {
  .dq-row { display: none; }
  .dq-jump { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--faded); }
  .dq-jump select { flex: 1; min-height: 38px; padding: 0.3rem 0.5rem; font: inherit; background: var(--panel-2); color: var(--parchment);
    border: 1px solid var(--line); border-radius: 8px; }
}
/* the owner acting as a member (Kyle Bargman, 2026-11-20) */
.facting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.9rem;
  margin: 0 0 0.8rem; border-radius: 10px; background: #5b1d14; border: 1px solid #a33a26; color: #ffd9cc; font-weight: 600; }
.facting b { color: #fff; }
.facting .btn { background: #ffd9cc; color: #3a0f08 !important; }
/* phones: the forums, the owner's pages and the new public pages (Kyle Bargman, 2026-11-20) */
.factions { flex-wrap: wrap; align-items: center; }
.factions a, .factions .flink { white-space: nowrap; }
.forums .ftable { width: 100%; }
@media (max-width: 700px) {
  /* a post: the author in a row (picture, then name and the rest), the actions as pills */
  .fauthor { display: grid; grid-template-columns: 48px 1fr; column-gap: 0.7rem; row-gap: 0.1rem; align-items: start; text-align: left; }
  .fauthor > * { grid-column: 2; }
  .fauthor .favatar { grid-column: 1; grid-row: 1 / span 8; width: 48px !important; height: 48px !important; margin: 0; font-size: 20px !important; }
  .fauthor .fname { font-size: 1.1rem; }
  .factions { gap: 0.4rem; margin-top: 0.7rem; }
  .factions a, .factions .flink { display: inline-flex; align-items: center; min-height: 36px; padding: 0.3rem 0.75rem; border: 1px solid var(--line-soft);
    border-radius: 999px; background: rgba(0, 0, 0, 0.22); text-decoration: none; font-size: 0.85rem; }
  .factions .finline { display: inline-flex; }
  .fmodbar .btn, .fmodbar select { min-height: 40px; }
  /* the topic column takes the room the hidden Latest column leaves */
  .ftable th:first-child, .ftable td:first-child { width: 100%; }
  /* forms: full width, finger-sized */
  .fform select, .fform input[type=text], .fform input[type=password], .fform textarea { width: 100%; min-height: 42px; font-size: 1rem; }
  .fform .btn { min-height: 42px; }
  .fadmin input[type=text], .fadmin select { flex: 1 1 100%; min-height: 40px; }
  .fadmin .btn { min-height: 40px; }
  .fposting select { min-height: 32px; }
  /* the owner's pages: real buttons, full-width fields */
  .private-page .btn, .private-page button { min-height: 40px; font-size: 0.95rem; padding: 0.45rem 0.9rem; }
  .private-page input[type=text], .private-page input[type=email], .private-page input[type=password], .private-page select,
  .private-page textarea { max-width: 100%; min-height: 40px; font-size: 1rem; box-sizing: border-box; }
  .private-page form input[type=text], .private-page form select, .private-page form textarea { width: 100%; }
  .bact input[type=number] { min-height: 40px; }
  .private-page select, .fform select, .fadmin select { padding: 0.45rem 0.5rem; -webkit-appearance: menulist; }
  /* wide tables become labelled cards (js/stack-tables.js) */
  table.stack-table, table.stack-table tbody, table.stack-table tr, table.stack-table td, table.stack-table th { display: block; width: auto !important; }
  table.stack-table thead, table.stack-table tr.stack-head { display: none !important; }
  table.stack-table { border: none !important; background: none !important; }
  table.stack-table tr { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.55rem 0.8rem; margin: 0 0 0.6rem; background: rgba(0, 0, 0, 0.22); }
  table.stack-table td, table.stack-table th { border: none !important; padding: 0.2rem 0 !important; text-align: left !important; white-space: normal !important; }
  table.stack-table td[data-label] { display: grid; grid-template-columns: 6.2rem 1fr; column-gap: 0.6rem; align-items: baseline; }
  table.stack-table td[data-label]::before { content: attr(data-label); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--faded); overflow-wrap: break-word; }
  table.stack-table td[data-label] > * { min-width: 0; }
  .table-scroll:has(> table.stack-table) { overflow: visible; max-height: none; }
  /* tables already in a scrolling wrapper stay real tables and use the width
     (the 860px rule made every table a block, so rows stopped short) */
  #main .table-scroll > table:not(.stack-table) { display: table; width: 100%; }
  table.stack-table td[data-label]:empty { display: none; }
  #main table.fit-table { display: table; width: 100%; }
  td { overflow-wrap: break-word; }
  /* the chat's start button reads at a glance */
  #webchat.chatroom #wc-go { min-height: 44px; font-size: 1rem; }
  /* room above Safari's bottom bar */
  #footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.5rem); }
}
/* text for search engines and screen readers only (Kyle Bargman, 2026-11-21) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ravens on the forums (Kyle Bargman, 2026-11-21) */
.fraven-ico { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.fraven-link.fraven-has { color: var(--gold-light); font-weight: 650; }
.fraven-count { display: inline-block; min-width: 1.3em; padding: 0 0.35em; margin-left: 0.15em; border-radius: 999px; background: #8b2a22;
  color: #f3e6d0; font-size: 0.75rem; text-align: center; line-height: 1.4; }
.froost-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0 0 1rem; }
.froost-head p { margin: 0; }
/* search, Inbox | Sent, putting read ravens away (Kyle Bargman, 2026-11-21) */
.fsearch { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0; }
.fsearch input[type=search] { width: 11rem; max-width: 40vw; padding: 0.2rem 0.5rem; font-size: 0.85rem; border-radius: 8px;
  border: 1px solid var(--line-soft); background: rgba(0,0,0,0.3); color: var(--parchment); }
@media (max-width: 640px) {
  .fsearch { order: 3; flex: 1 1 100%; }
  .fsearch input[type=search] { width: 100%; max-width: none; }
}
.fresults { padding-left: 1.4rem; }
.fresult { margin: 0 0 1rem; }
.fresult-title { font-weight: 600; }
.fresult-text { margin: 0.25rem 0 0; color: var(--parchment); }
.fresults mark, .fresult-title mark { background: rgba(194,189,120,0.35); color: inherit; padding: 0 0.1em; border-radius: 3px; }
.ftabs { display: flex; gap: 0.4rem; margin: 0 0 0.8rem; }
.ftabs a, .ftabs span { padding: 0.25rem 0.9rem; border: 1px solid var(--line-soft); border-radius: 999px; text-decoration: none; }
.ftabs span[aria-current] { border-color: var(--gold); color: var(--gold-light); background: rgba(194,189,120,0.08); }
.fclear-read { margin: 0.4rem 0 1rem; text-align: right; }
.fraven { display: flex; gap: 0.8rem; padding: 0.8rem 0.9rem; margin: 0 0 0.7rem; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.fraven-new { background: linear-gradient(135deg, rgba(217, 215, 195, 0.1), rgba(0, 0, 0, 0.2)); border-color: var(--gold-dim); }
.fraven-body { min-width: 0; flex: 1; }
.fraven-meta { margin: 0 0 0.3rem; }
.fraven-text { margin: 0; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.02rem; }
.fseal { display: inline-flex; align-items: center; justify-content: center; width: 2.6em; height: 1.6em; margin-left: 0.3rem; border-radius: 50% 46% 52% 48%;
  background: radial-gradient(circle at 35% 35%, #c2443a, #7a1f19 70%); color: #f3e6d0; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.15); vertical-align: middle; }
.fletter { padding: 1.2rem 1.4rem; border-radius: 6px; background: linear-gradient(180deg, #e9e2c8, #d8cfab); color: #2b2516; border: 1px solid #a8976a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(120, 95, 40, 0.25); }
.fletter label { color: #4a3d1e; }
.fletter .muted { color: #6b5d3a; }
.fletter a { color: #5a3e8a; }
.fletter input[type=text], .fletter textarea { background: rgba(255, 250, 235, 0.6); color: #2b2516; border-color: #a8976a; font-family: var(--serif); }
.fletter-from { font-family: var(--serif); }
.fflown { position: relative; overflow: hidden; padding: 0.7rem 1rem; margin: 0 0 1rem; border-left: 4px solid var(--green); background: rgba(0, 0, 0, 0.25); border-radius: 0 10px 10px 0; }
.fflown-bird { position: absolute; left: 0.5rem; top: 0.4rem; color: var(--gold-light); animation: fravenfly 2.2s ease-in forwards; }
.fflown-bird .fraven-ico { width: 1.6em; height: 1.6em; }
.fflown { padding-left: 2.8rem; }
@keyframes fravenfly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translate(110vw, -4rem) rotate(-12deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fflown-bird { animation: none; } }
.fsend-raven { margin-top: 0.3rem; }
.fblocked { padding-left: 1.1rem; }

/* The forums, round 1: quotes, mentions, reactions, tags and statuses, Solved,
   watching, notices and What's new (Kyle Bargman, 2026-11-21) */
.fcontent blockquote.fquote { border-left-color: var(--gold); }
.fquote-by { font-size: 0.8rem; color: var(--gold); margin-bottom: 0.25rem; }
.fquote-by a { color: var(--gold); }
.fmention { font-weight: 600; }
.freacts { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0 0.2rem; }
.freact { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.05rem 0.5rem; border-radius: 999px; font: inherit; font-size: 0.85rem;
  border: 1px solid var(--line-soft); background: rgba(0,0,0,0.25); color: var(--parchment); cursor: pointer; line-height: 1.6; }
.freact:hover, .freact:focus-visible { border-color: var(--gold); }
.freact-none { opacity: 0.45; }
.freact-none:hover, .freact-none:focus-visible { opacity: 1; }
.freact-mine { border-color: var(--gold); background: rgba(194,189,120,0.16); }
.freact-static { cursor: default; }
.freact-n { font-size: 0.78rem; color: var(--gold-light); }
.freceived { font-size: 0.78rem; color: var(--gold-dim); }
.ftag.ftag-topic { color: #b8c8d8; border-color: #5c7086; }
.ftag.fstatus { color: #d8e8c0; border-color: #6f8a4a; }
.ftag.fstatus-review { color: #e0c890; border-color: #8a7440; }
.ftag.fstatus-planned, .ftag.fstatus-real { color: #f0d080; border-color: #a08a3a; }
.ftag.fstatus-building { color: #b8b0ff; border-color: #6a62b0; }
.ftag.fstatus-done, .ftag.fstatus-fixed { color: #a8e09a; border-color: #4f8a3f; }
.ftag.fstatus-no, .ftag.fstatus-notbug, .ftag.fstatus-duplicate { color: #b0a8a0; border-color: #6a625a; }
.ftag.fsolved { color: #a8e09a; border-color: #4f8a3f; }
.ftag.fheld { color: #e0c890; border-color: #8a7440; }
.fsolved-banner { border-left: 3px solid #4f8a3f; padding: 0.4rem 0.8rem; background: rgba(79,138,63,0.12); border-radius: 0 8px 8px 0; }
.ftopic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0.4rem 0 0.8rem; }
.ftopic-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.ftopic-meta select { margin: 0; min-height: 36px; }
.ftopic-meta .btn { padding: 0.35rem 0.9rem; min-height: 36px; }
/* the author box's own links line up: Send a raven, Ignore (2026-11-21) */
.fignore-form { display: block; margin: 0.2rem 0 0; }
.fignore-form .flink { padding: 0; margin: 0; text-align: left; }
.ftagbar { margin: 0.2rem 0 0.6rem; }
.fnotices { list-style: none; padding: 0; }
.fnotices li { padding: 0.45rem 0.2rem; border-bottom: 1px solid var(--line-soft); }
.fnotices li.funread a { font-weight: 650; }
.fnotice-icon { display: inline-block; width: 1.4em; text-align: center; color: var(--gold); }
.fnew-count { display: inline-block; min-width: 1.3em; padding: 0 0.35em; margin-left: 0.15em; border-radius: 999px; background: #3f6a2f;
  color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 1.45; }
.fcheck { display: flex; align-items: center; gap: 0.45rem; margin: 0.3rem 0; font-weight: normal; }
/* a tick box beside its words in every form, never stacked above them
   (.fform label stacks its contents; owner, 2026-11-21) */
.fform label.fcheck { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; color: var(--parchment); text-align: left; }
.fform label.fcheck input[type=checkbox], .fform label.fcheck input[type=radio] { width: auto; min-height: 0; margin: 0.2rem 0 0; flex-shrink: 0; accent-color: var(--gold, #c2bd78); }
/* settings as a card of rows: what it does, and a line about it */
.fsettings { border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.4rem 1rem; background: rgba(0,0,0,0.18); text-align: left; }
.fsettings .fopt { display: flex; flex-direction: row; font-weight: 400; color: var(--parchment); gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.fsettings .fopt:last-child { border-bottom: 0; }
.fsettings .fopt input { width: auto; margin: 0.25rem 0 0; flex-shrink: 0; accent-color: var(--gold, #c2bd78); }
.fsettings .fopt b { display: block; color: var(--gold-light); font-weight: 600; }
.fsettings .fopt span { display: block; color: var(--faded, #9a9580); font-size: 0.9em; margin-top: 0.1rem; }
.fsettings .fopt.fopt-off { opacity: 0.55; cursor: default; }
.fsettings-head { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin: 0.9rem 0 0.2rem; text-align: left; }

/* The forums' bar, composer and topic titles, tidied (Kyle Bargman, 2026-11-21) */
.fbar { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0.45rem; }
.fbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.fcrumbs { min-width: 0; }
.fcrumbs .fsep { color: var(--gold-dim); margin: 0 0.1rem; }
.fsearch { position: relative; display: inline-flex; margin-left: auto; }
.fsearch input[type=search] { width: 14rem; padding: 0.3rem 2rem 0.3rem 0.65rem; }
.fsearch-go { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 0.15rem 0.3rem;
  cursor: pointer; font-size: 0.9rem; line-height: 1; opacity: 0.75; }
.fsearch-go:hover, .fsearch-go:focus-visible { opacity: 1; }
.fme { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; color: var(--faded); position: relative;
  border-top: 1px solid var(--line-soft); padding-top: 0.4rem; }
.fme-item { display: inline-flex; align-items: center; gap: 0.25rem; white-space: nowrap; }
.fme-item::before { content: "\00B7"; color: var(--gold-dim); margin: 0 0.55rem; }
.fme > .fme-item:first-child::before { content: none; }
.fme-list { display: contents; }
.fme-toggle, .fme-more-btn { display: none; }
.fme .flink { margin: 0; font-size: inherit; }
.fme .fposting label { display: inline-flex; align-items: center; gap: 0.35rem; }
@media (max-width: 700px) {
  .fsearch { flex: 1 1 100%; margin-left: 0; }
  .fsearch input[type=search] { width: 100%; }
  .fme-more-btn { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: auto; padding: 0.25rem 0.7rem; border: 1px solid var(--line);
    border-radius: 999px; cursor: pointer; color: var(--link); background: rgba(0,0,0,0.25); }
  .fme-list { display: none; position: absolute; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch; min-width: 12rem;
    margin-top: 0.3rem; padding: 0.3rem 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
  .fme-toggle:checked ~ .fme-list { display: flex; }
  .fposting-label { display: none; }
  .fme .fposting select { max-width: 8.5rem; }
  .fme-list .fme-item::before { content: none; }
  .fme-list .fme-item { padding: 0.55rem 0.9rem; }
  .fme-list .fme-item + .fme-item { border-top: 1px solid var(--line-soft); }
}
/* the composer: as wide as the posts, the button on the right */
.fform.fcompose { max-width: none; }
.fcompose-box { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.fcompose-box > label { padding: 0.45rem 0.7rem 0; }
.fcompose-box textarea { border: 0 !important; border-radius: 0 !important; min-height: 11rem; background: rgba(0,0,0,0.25); }
.ftoolbar { display: flex; flex-wrap: wrap; gap: 0.2rem; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line-soft); }
.fmd { min-width: 2.1rem; height: 2rem; padding: 0 0.45rem; font: inherit; font-size: 0.9rem; color: var(--parchment); background: transparent;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.fmd:hover, .fmd:focus-visible { border-color: var(--gold-dim); background: rgba(194,189,120,0.08); }
.fcompose-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.6rem 1rem; }
.fcompose-extras { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1rem; flex: 1 1 20rem; min-width: 0; }
.fform.fcompose .btn { align-self: flex-start; margin-left: auto; }
.fpicker > summary, .fhelp > summary { cursor: pointer; list-style: none; color: var(--link); font-size: 0.9rem; padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-soft); border-radius: 999px; display: inline-block; }
.fpicker > summary::-webkit-details-marker, .fhelp > summary::-webkit-details-marker { display: none; }
.fpicker[open] > summary, .fhelp[open] > summary { border-color: var(--gold-dim); }
.fpicker .fsmilies { margin-top: 0.4rem; max-width: 26rem; }
.fhelp { flex: 1 1 100%; }
.fhelp-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 0.3rem; font-size: 0.88rem; }
.fhelp-table th, .fhelp-table td { text-align: left; vertical-align: top; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--line-soft); }
.fhelp-table td:first-child { width: 45%; }
.fhelp-src { margin: 0; padding: 0.25rem 0.45rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; background: rgba(0,0,0,0.3);
  border-radius: 6px; color: var(--gold-light); }
.fhelp-out blockquote { border-left: 3px solid var(--gold-dim); padding: 0.1rem 0.6rem; }
.fhelp-out pre { white-space: pre-wrap; }
@media (max-width: 700px) {
  .fhelp-table thead { display: none; }
  .fhelp-table tr { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--line-soft); }
  .fhelp-table td { display: block; width: auto !important; border: 0; padding: 0.15rem 0; }
  }
.fhelp-out p, .fhelp-out ul, .fhelp-out blockquote, .fhelp-out pre { margin: 0; }
.fhelp-out img { max-height: 48px; }
/* a topic's title: no shouting small capitals for a long one */
h1.page-title.ftopic-title { font-variant: normal; letter-spacing: normal; font-size: clamp(1.35rem, 1rem + 1.1vw, 1.9rem); line-height: 1.25;
  text-wrap: balance; overflow-wrap: anywhere; }
/* the forums' statistics, and a board's counts (Kyle Bargman, 2026-11-21) */
.fstats { margin: 1.4rem 0 0.6rem; padding: 0.9rem 1rem; }
.fstats h2 { margin: 0 0 0.6rem; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); }
.fstats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr)); gap: 0.6rem 0.8rem; margin: 0; }
.fstats-grid div { padding: 0.45rem 0.6rem; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(0,0,0,0.2); }
.fstats-grid dt { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faded); }
.fstats-grid dd { margin: 0.1rem 0 0; font-size: 1.15rem; font-weight: 650; color: var(--parchment); }
.fstats-lines { margin: 0.7rem 0 0; color: var(--faded); }
.fboard-counts { color: var(--gold-dim); white-space: nowrap; }
@media (max-width: 700px) {
  .fstats { padding: 0.7rem; }
  .fstats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .fstats-grid dd { font-size: 1rem; }
}

/* ---------- the forums, round 2 (Kyle Bargman, 2026-11-21) ---------- */
/* [hero=] and [monster=] chips, and their card */
.fchip { display: inline-flex; align-items: center; gap: 0.2em; padding: 0 0.45em; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(194,189,120,0.08); color: var(--gold-light); text-decoration: none; white-space: nowrap; font-size: 0.95em; }
.fchip:hover, .fchip:focus-visible { border-color: var(--gold); color: #fff; }
.fcard-pop { position: absolute; z-index: 60; max-width: min(340px, calc(100vw - 16px)); padding: 0.7rem 0.8rem; border-radius: 12px;
  background: #151515; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.fcard { display: flex; gap: 0.75rem; align-items: flex-start; }
.fcard img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-soft); flex: 0 0 96px; }
.fcard-title { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--gold-light); margin-bottom: 0.2rem; }
.fcard-line { font-size: 0.86rem; color: var(--faded); }
/* deed badges */
.fdeeds { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 0.25rem; }
.fdeed { display: inline-block; font-size: 0.72rem; line-height: 1.3; padding: 0.1rem 0.45rem; border-radius: 6px; color: #f1d98a;
  background: rgba(194,160,60,0.12); border: 1px solid rgba(194,160,60,0.35); }
.fdeed-pick { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.4rem 0 0.8rem; }
/* Online now */
.fonline .fonline-who { display: inline-block; margin: 0 0.35rem 0.1rem 0; white-space: nowrap; }
/* ignored posts, and the staff's notes count */
.fignored { margin: 0.5rem 0; border: 1px dashed var(--line-soft); border-radius: 10px; padding: 0.35rem 0.8rem; }
.fignored > summary { cursor: pointer; color: var(--faded); font-size: 0.9rem; }
.fignored[open] > summary { margin-bottom: 0.5rem; }
.fnotecount { display: inline-block; margin-top: 0.2rem; color: #f0d080; }
.fignore-form .flink { color: var(--faded); }
/* merge, split, deleted */
.fmerge { flex-wrap: wrap; }
.fmerge input[type=text] { width: 12rem; max-width: 100%; padding: 0.4rem 0.55rem; background: var(--panel-2); color: var(--parchment);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.9rem; }
.fmerge a.btn { font-size: 0.84rem; }	/* as the buttons beside it */
.fsplit-list { padding-left: 1.2rem; }
.fsplit-list li { margin: 0.5rem 0; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line-soft); }
.fdeleted-list li { margin: 0.55rem 0; }
.fdeleted-list blockquote { margin: 0.3rem 0; }
/* the staff's notes on a member */
.fnotes-member { margin-top: 1.2rem; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }
.fnotes-list { list-style: none; padding: 0; }
.fnotes-list li { padding: 0.5rem 0.7rem; margin: 0.4rem 0; border-left: 3px solid #f0d080; background: rgba(0,0,0,0.25); border-radius: 6px; }
/* Staff Notes */
.fnb-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.fnb-search input[type=search] { min-width: 14rem; }
.fnb-tags .ftag.on { background: rgba(194,189,120,0.25); }
.fnb-list { list-style: none; padding: 0; }
.fnb-list li { padding: 0.65rem 0.8rem; margin: 0.45rem 0; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,0.02); }
.fnb-title { font-family: var(--serif); font-size: 1.08rem; }
.fnb-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; }
.fnb-page { padding: 0.8rem 1rem; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(0,0,0,0.2); margin: 0.6rem 0; }
.fnb-hist { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1rem; align-items: start; }
.fnb-revs { margin: 0; padding-left: 1.2rem; max-height: 70vh; overflow: auto; }
.fnb-revs li { margin: 0.3rem 0; }
.fnb-revs li.on a { font-weight: 700; color: var(--gold-light); }
.fnb-view { padding: 0.8rem 1rem; border: 1px solid var(--line-soft); border-radius: 12px; }
@media (max-width: 720px) { .fnb-hist { grid-template-columns: 1fr; } .fnb-revs { max-height: 14rem; } }
/* the Whiteboard */
.fwb-wrap { margin: 0.4rem 0 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.4rem 0.8rem 0.7rem; background: rgba(240,208,128,0.04); }
.fwb-wrap > summary { cursor: pointer; font-family: var(--serif); color: var(--gold-light); font-size: 1.05rem; padding: 0.2rem 0; }
.fwb-text, .fwb-theirs { width: 100%; box-sizing: border-box; font: 0.95rem/1.5 var(--sans); background: #111; color: var(--parchment);
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 0.6rem 0.7rem; resize: vertical; }
.fwb-foot { margin-top: 0.3rem; color: var(--faded); }
.fwb-conflict { margin-top: 0.6rem; }
.fwb-old { white-space: pre-wrap; background: #0b0b0b; padding: 0.6rem; border-radius: 6px; }

/* Built by Kyle Bargman, 2026-11-21. Drop-downs: Permissions one person at a
   time, the topic's Staff menu. */
.fperm-pick { margin: 0.6rem 0 0.2rem; }
.fperm-pick select, .fperm-copy select { padding: 0.35rem 0.5rem; background: var(--panel-2); color: var(--parchment); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.fperm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.fperm-hidden { display: none; }
.fstaffmenu { margin: 1rem 0; }
.fstaffmenu > summary { list-style: none; display: inline-block; cursor: pointer; }
.fstaffmenu > summary::-webkit-details-marker { display: none; }
.fstaffmenu-body { margin-top: 0.4rem; padding: 0.2rem 0.8rem; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0,0,0,0.2); }
.fstaffmenu-body .fmodbar { margin: 0.6rem 0; }

/* Built by Kyle Bargman, 2026-11-21. Forums, round 3: polls, pictures in
   posts and their lightbox, YouTube on a click, the composer's Preview and
   picture button, the calendar. */
.fcontent .fimg { max-width: min(100%, 600px); max-height: 480px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); cursor: zoom-in; display: inline-block; vertical-align: top; }
.fimg-gone { font-style: italic; }
.flight { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.88); display: flex; align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.flight[hidden] { display: none; }
.flight img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); cursor: default; }
.flight-close { position: absolute; top: 0.8rem; right: 1rem; font-size: 1.4rem; background: rgba(0,0,0,0.5); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; width: 2.4rem; height: 2.4rem; cursor: pointer; }
body.flight-open { overflow: hidden; }
.fyt { position: relative; max-width: 640px; aspect-ratio: 16 / 9; margin: 0.6rem 0; border-radius: 10px; border: 1px solid var(--line-soft);
  background: radial-gradient(ellipse at center, rgba(194,60,40,0.25), rgba(0,0,0,0.6)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.fyt-play { font: inherit; font-size: 1.05rem; color: var(--parchment); background: rgba(0,0,0,0.55); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem; cursor: pointer; }
.fyt-play:hover, .fyt-play:focus-visible { border-color: var(--gold); }
.fyt-icon { color: #ff4e45; }
.fyt.fyt-on { background: #000; }
.fyt iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.fcompose-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.fcompose-tabs { display: inline-flex; gap: 0.2rem; }
.fcompose-tabs[hidden] { display: none; }
.fctab { font: inherit; font-size: 0.85rem; padding: 0.25rem 0.8rem; border-radius: 999px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted, #aaa); cursor: pointer; }
.fctab-on { background: rgba(194,189,120,0.16); color: var(--gold-light); border-color: var(--gold); }
.fpreview { min-height: 9rem; padding: 0.6rem 0.8rem; border: 1px dashed var(--line); border-radius: 8px; background: rgba(0,0,0,0.18); }
.fupload-btn { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; font-size: 0.85rem; }
.fdraft-note { margin-left: 0.4rem; }
.fpoll { margin: 0.8rem 0 1rem; padding: 0.9rem 1rem; }
.fpoll-q { font-size: 1.1rem; margin: 0 0 0.6rem; color: var(--gold-light); }
.fpoll-opts { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.45rem; }
.fpoll-opt { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(6rem, 2fr) auto; gap: 0.6rem; align-items: center; }
.fpoll-opt label { cursor: pointer; }
.fpoll-bar { height: 0.7rem; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.fpoll-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6f9a3c, #99cc66); border-radius: 999px; }
.fpoll-mine .fpoll-label { color: var(--gold-light); font-weight: 600; }
.fpoll-n { white-space: nowrap; color: var(--muted, #aaa); }
.fpoll-new { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.4rem 0.8rem; margin: 0.6rem 0; }
.fpoll-new > summary { cursor: pointer; color: var(--gold-light); }
.fpoll-new-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; }
.fpoll-new input[type=number] { width: 4.5rem; }
@media (max-width: 600px) { .fpoll-opt { grid-template-columns: 1fr auto; } .fpoll-bar { grid-column: 1 / -1; order: 3; } }
.fuploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.7rem; }
.fupload { margin: 0; border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.4rem; background: rgba(0,0,0,0.18); }
.fupload img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.fupload-ph { height: 120px; display: grid; place-items: center; color: var(--muted, #aaa); font-style: italic; }
.fupload-gone { opacity: 0.6; }
.fcal-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.6rem 0; }
.fcal-nav h2 { margin: 0; }
.fcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin-bottom: 1rem; }
.fcal-wd { text-align: center; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 0.2rem 0; }
.fcal-day { min-height: 5.2rem; border: 1px solid var(--line-soft); border-radius: 6px; padding: 0.2rem 0.3rem; background: rgba(0,0,0,0.16); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcal-empty { background: transparent; border-color: transparent; }
.fcal-today { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(194,189,120,0.4); }
.fcal-n { font-size: 0.75rem; color: var(--muted, #aaa); }
.fcal-ev { font-size: 0.72rem; line-height: 1.25; padding: 1px 4px; border-radius: 4px; background: rgba(153,204,102,0.16); color: var(--parchment); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.fcal-ev.fcal-staff { background: rgba(102,128,153,0.25); }
/* the realm's own days: seasons, holidays, featured beasts, the new week (2026-11-21) */
.fcal-ev.fcal-realm { background: rgba(194,160,80,0.22); }
.fcal-item.fcal-realm { border-left: 3px solid rgba(194,160,80,0.7); }
@media (max-width: 600px) { .fcal-day { min-height: 3rem; } .fcal-ev { font-size: 0; height: 6px; padding: 0; } .fcal-wd { font-size: 0.62rem; letter-spacing: 0; } }
.fcal-item { margin: 0.6rem 0; padding: 0.7rem 0.9rem; }
.fcal-item h3 { margin: 0 0 0.2rem; }
.fcal-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.fcal-up ul { margin: 0.3rem 0 0.4rem; padding-left: 1.1rem; }

/* Built by Kyle Bargman, 2026-11-21. Centred, not left with an empty band
   on the right: a card or form narrower than its column sits in the middle
   (owner). Message boxes, tables and lists still fill the column. */
.fform { margin-inline: auto; width: 100%; }
.fform.fcompose { width: 100%; }
.fletter { max-width: 640px; margin-inline: auto; }
.bugform { max-width: 640px; margin-inline: auto; }
.bugform + p, .bug-ok, .bug-err { max-width: 640px; margin-inline: auto; }
.home-forums, .home-goal { margin-inline: auto; }
#webchat.chatroom .wc-login { margin-inline: auto; }
.private-page { max-width: 1100px; margin-inline: auto; }
.private-page form.act { flex-wrap: wrap; }
.fcal-form { max-width: 720px; }
.fpoll-new { max-width: none; }

/* Built by Kyle Bargman, 2026-11-21. Stat tiles centred: the label on one
   line, the number big and level across the row, any note small under it;
   tiles of one height (owner). */
.fstats h2 { text-align: center; }
.fstats-grid { grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); align-items: stretch; }
.ffeeds { text-align: center; }
.fstats-grid div { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 5.2rem; }
.fstats-grid dt { white-space: nowrap; }
.fstats-grid dd { font-size: 1.45rem; line-height: 1.15; display: flex; flex-direction: column; align-items: center; }
.fstats-sub { display: block; font-size: 0.72rem; font-weight: 400; color: var(--faded); margin-top: 0.15rem; }
.fstats-lines { text-align: center; }
@media (max-width: 600px) {
  .fstats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fstats-grid div { min-height: 4.4rem; padding: 0.35rem 0.25rem; }
  .fstats-grid dt { white-space: normal; font-size: 0.64rem; }
  .fstats-grid dd { font-size: 1.1rem; }
}
@media (max-width: 380px) { .fstats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Built by Kyle Bargman, 2026-11-21. The footer on the same axis as the
   page's content panel (beside the menu on wide screens), not the whole
   width with the menu in it (owner). */
@media (min-width: 861px) {
  #footer { flex: 0 0 auto; width: calc(100% - 230px - 1.5rem); margin-left: calc(230px + 1.5rem); }
}
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.private-page .bstat > div { text-align: center; display: flex; flex-direction: column; justify-content: center; }

/* Character profiles (Kyle Bargman, 2026-11-21): the sheet on /hero/Name and
   its editor on /forums/profile */
.fsheet { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; margin: 0 auto 1.4rem; max-width: 980px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.25)); }
.fsheet-banner { position: relative; height: 170px; background-color: #151a28; }
.fsheet-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(8,8,10,0.85)); }
.fsheet-id { position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; gap: 14px; align-items: flex-end; }
.fsheet-avatar { width: 96px; height: 96px; border-radius: 14px; border: 2px solid rgba(217,176,77,0.7); box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  object-fit: cover; background: #1b1d25; flex-shrink: 0; }
.fsheet-avatar-none { display: grid; place-items: center; font: 600 2.4rem/1 Georgia, serif; color: var(--gold-light); }
.fsheet-name { margin: 0; font-size: 1.7rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.8); letter-spacing: 0.02em; }
.fsheet-line { color: #e8e2cf; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.fsheet-title { color: var(--gold-light); font-size: 0.92rem; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.fsheet-motto { text-align: center; font-style: italic; font-size: 1.12rem; color: var(--gold-light); margin: 0.9rem 1.2rem 0.2rem; }
.fsheet-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1rem 1.4rem; padding: 0.8rem 1.2rem 1.2rem; }
.fsheet-body h3 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0.6rem 0 0.4rem; }
.fsheet-about { grid-column: 1; }
.fsheet-favs { grid-column: 1; }
.fsheet-favrow { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fsheet-fav { display: flex; align-items: center; gap: 0.55rem; border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.4rem 0.7rem; background: rgba(0,0,0,0.25); }
.fsheet-fav img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.fsheet-fav span { display: flex; flex-direction: column; } .fsheet-fav small { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fsheet-side { grid-column: 2; grid-row: 1 / span 3; border-left: 1px solid var(--line-soft); padding-left: 1.2rem; }
.fsheet-side p { margin: 0 0 0.4rem; }
.fsheet-deeds .fdeed { display: block; margin: 0 0 0.35rem; }
.fsheet-off { opacity: 0.35; filter: grayscale(0.6); }
.fsheet-staff { text-align: center; margin: -0.8rem 0 1.2rem; }
@media (max-width: 760px) {
  .fsheet-banner { height: 140px; }
  .fsheet-avatar { width: 72px; height: 72px; }
  .fsheet-name { font-size: 1.35rem; }
  .fsheet-body { grid-template-columns: minmax(0, 1fr); }
  .fsheet-side { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 0.6rem; }
}
/* the editor */
.fsheet-edit { margin: 0 0 1.6rem; }
.fsheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
.fsheet-preview { position: sticky; top: 10px; }
.fsheet-preview .fsheet { margin: 0; }
.fsheet-preview .fsheet-body { grid-template-columns: minmax(0, 1fr); }
.fsheet-preview .fsheet-side { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; }
.fsheet-form fieldset { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.5rem 0.8rem 0.7rem; margin: 0 0 0.8rem; }
.fsheet-form legend { color: var(--gold); padding: 0 0.3rem; }
.fsheet-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.fsheet-swatch { display: flex; flex-direction: column; gap: 0.2rem; cursor: pointer; font-size: 0.72rem; text-align: center; }
.fsheet-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.fsheet-swatch span { display: block; height: 44px; border-radius: 8px; border: 2px solid transparent; background-size: cover !important; }
.fsheet-swatch input:checked + span { border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(217,176,77,0.35); }
.fsheet-swatch input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.fsheet-favpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.fsheet-favpick label { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.fsheet-flags { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.fsheet-pic { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0 0 0.5rem; }
.fsheet-pic label { display: grid; gap: 0.2rem; }
.fprofile-link { display: inline-block; margin-top: 0.2rem; }
@media (max-width: 900px) {
  .fsheet-grid { grid-template-columns: minmax(0, 1fr); }
  .fsheet-preview { position: static; order: -1; }
  .fsheet-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fsheet-favpick { grid-template-columns: minmax(0, 1fr); }
}
.fsheet-form .fcheck { display: inline-flex; flex-direction: row; align-items: center; gap: 0.4rem; margin: 0.15rem 0; text-align: left; }
.fsheet-form .fcheck input { margin: 0; flex-shrink: 0; width: auto; }
.fsheet-form fieldset > .fcheck { display: flex; }
.fsheet-flags .fcheck { display: inline-flex; }

/* The Monsters page: pictures beside the names, the dragons by colour, and a
   picture opened large (Kyle Bargman, 2026-11-21) */
.monster-page th.mp-named { white-space: normal; text-align: left; min-width: 13rem; }
.mp-row { display: flex; align-items: center; gap: 0.6rem; }
.mp-row .mp-thumb { margin: 0; flex-shrink: 0; }
.mp-name { min-width: 0; overflow-wrap: anywhere; }
.mp-thumb { display: inline-block; vertical-align: middle; padding: 0; margin: 0 0.5rem 0 0; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(0,0,0,0.3); cursor: zoom-in; line-height: 0; }
.mp-thumb img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.mp-thumb:hover, .mp-thumb:focus-visible { border-color: var(--gold); }
.mp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0.6rem; margin: 0.6rem 0 1.2rem; }
.mp-card { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.4rem; border: 1px solid var(--line-soft); border-radius: 10px;
  background: rgba(0,0,0,0.2); color: var(--parchment); font: inherit; font-size: 0.9rem; cursor: zoom-in; }
.mp-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.mp-card:hover, .mp-card:focus-visible { border-color: var(--gold); }
.mp-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.82); cursor: zoom-out; padding: 1rem; }
.mp-lightbox.mp-open { display: flex; }
.mp-lightbox figure { margin: 0; text-align: center; }
.mp-lightbox img { max-width: min(92vw, 512px); max-height: 80vh; border-radius: 12px; border: 1px solid var(--line); }
.mp-lightbox figcaption { color: var(--gold-light); margin-top: 0.5rem; font-size: 1.05rem; }
@media (max-width: 600px) { .mp-thumb img { width: 36px; height: 36px; } .monster-page th.mp-named { white-space: normal; } }

/* the headstone on The Obsidian Stone (Kyle Bargman, 2026-11-21) */
blockquote.memorial { max-width: 30rem; margin: 1.5rem auto; padding: 1.2rem 1.5rem; text-align: center;
	background: #121318; color: #d6dae6; border: 1px solid #3a3d48; border-radius: 1.2rem 1.2rem 0.3rem 0.3rem;
	font-style: italic; line-height: 1.7; }
blockquote.memorial p { margin: 0; }

/* the development server's strip (phantasia.dev only; Kyle Bargman, 2026-11-21) */
.dev-strip { position: sticky; top: 0; z-index: 1000; padding: 0.45rem 1rem; text-align: center;
	background: repeating-linear-gradient(135deg, #5a3a00 0 14px, #6b4600 14px 28px); color: #ffe3a3;
	font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; border-bottom: 1px solid #c98a1a; }
.dev-strip a { color: #fff3cf; text-decoration: underline; }

/* the Hall of Orders (Kyle Bargman, 2026-11-21) */
.order-card h3 { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.order-rank { color: var(--gold-dim, #998); font-size: 0.85em; }
.order-tag { color: var(--gold, #d9b04d); font-size: 0.8em; letter-spacing: 0.08em; }
.order-motto { font-style: italic; margin: 0.2rem 0 0.4rem; }
.order-week { display: flex; align-items: center; gap: 0.75rem; margin: 0.4rem 0 0.8rem; flex-wrap: wrap; }
.order-week-bar { flex: 0 1 260px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.order-week-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8a6d2c, #d9b04d); }
.order-fallen td { color: var(--muted, #8a8f99); font-style: italic; }

/* Tol Brandir's memorial (Kyle Bargman, 2026-11-21) */
.brandir-memorial { text-align: center; max-width: 30rem; margin: 1.5rem auto; padding: 1.4rem 1.5rem;
	background: linear-gradient(180deg, #1c2430, #12161d); border: 1px solid #3c4a5c; }
.brandir-memorial p { margin: 0.2rem 0; }
.brandir-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: #9fb3c8; }
.brandir-name { font-size: 1.8rem; font-family: Georgia, serif; }
/* live signatures under a poster's name (Kyle Bargman, 2026-11-22) */
.fauthor .fsig-line { display: block; font-size: 0.82rem; line-height: 1.35; }
.fauthor .fsig-title { color: #ecd08a; font-style: italic; }
.fauthor .fsig-tag { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.fauthor .ffallen { color: var(--red); }
.fauthor .fbadge { font-size: 0.72rem; line-height: 1.3; }
.fauthor .fbadge.frank { color: var(--gold-light); font-weight: 600; }
.fauthor .fbadge.ffirst { color: #cfe3ff; border-color: rgba(143,184,255,0.45); }
.fauthor .fbadge.fdeed { border-radius: 999px; }
.fauthor .fbadge-more { cursor: help; color: var(--faded); }
.fraven-receipt.fraven-read { color: var(--green); }	/* read receipts (Kyle Bargman, 2026-11-22) */
/* spoilers (Kyle Bargman, 2026-11-22) */
.fspoiler { background: rgba(255,255,255,.08); border-radius: 3px; padding: 0 .2em; cursor: pointer; }
.fspoiler[aria-expanded="false"] .fspoiler-in { filter: blur(5px); pointer-events: none; user-select: none; }
.fspoiler:focus-visible, .fspoiler-btn:focus-visible { outline: 2px solid var(--gold, #c2bd78); outline-offset: 1px; }
.fspoiler-block { margin: .5rem 0; }
.fspoiler-btn { background: rgba(255,255,255,.06); color: var(--gold, #c2bd78); border: 1px solid var(--line-soft, #444); border-radius: 4px; padding: .2rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; }
.fspoiler-body { border-left: 3px solid var(--line-soft, #444); padding: .2rem .8rem; margin-top: .3rem; }
