/* The Flux Network: the front page and the site's own pages (SITE_PLAN.md; the owner approved the combined mockup,
   2026-11-12: DocumentsClauderontpage-mockupscombined). Paper and ink: the site owns no fill color; each game owns its
   own card. */
/* ============================================================
   The owner's combined front page (2026-11-12), from the parts they picked
   out of Fable's mockups: the Hall's top lines and greeting (logo larger),
   the Weekly's news and talk, the case-files box, Floors' Carrowmere card
   and the Hall's boards and card tables. Fable's rule stays: the site is
   paper and ink; each game owns its own plate.
   ============================================================ */
:root {
  --paper: #f5f1e8; --card: #fffdf8; --ink: #1b2233; --soft: #656a77; --line: #dcd5c6; --link: #274684;
  --cw-bg: #1c140d; --cw-fg: #eadcc0; --cw-acc: #e0b860; --cw-paper: #f4e9cf; --cw-seal: #b07d1e;
  --g2-bg: #0f3d40; --g2-fg: #e4f3ee; --g2-acc: #ff8f5e; --g2-on: #0f2b2d; --g2-seal: #1b7f84;
  --ct-bg: #1e1b2e; --ct-fg: #e9e6f5; --ct-acc: #f5a623; --ct-seal: #5b4fa0;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--ink); background: #cfc9be; }
h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }

/* wide monitors: the page uses more of the width (was 1180px), keeping a margin either side */

/* ---- shared pieces ---- */
.page a { color: var(--link); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); }
.page a:hover { text-decoration-color: currentColor; }
.mark { width: 30px; height: 30px; flex: none; display: block; }
#tfn .w1 { fill: var(--w-left, currentColor); }
#tfn .w2 { fill: var(--w-mid, currentColor); }
#tfn .w3 { fill: var(--w-right, currentColor); }
/* The logo takes the colors of the part of the site you're on (the owner, 2026-11-12):
   pages about the boards' general content: TFN's own favicon (cobalt and emerald);
   Carrowmere's pages (its fiction): Carrowmere's favicon (walnut and gilt). Same gradients as the two favicons. */
body.page-front   { --w-left: url(#tfn-l); --w-mid: url(#tfn-m); --w-right: url(#tfn-r); }
body.page-cwm { --w-left: url(#cwm-l); --w-mid: url(#cwm-m); --w-right: url(#cwm-r); }
.plate { background: var(--bg); color: var(--fg); }
.p-cw { --bg: var(--cw-bg); --fg: var(--cw-fg); --acc: var(--cw-acc); --on: #1c140d; --face: Georgia, "Palatino Linotype", serif; }
.p-g2 { --bg: var(--g2-bg); --fg: var(--g2-fg); --acc: var(--g2-acc); --on: var(--g2-on); --face: Bahnschrift, "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; }
.p-ct { --bg: var(--ct-bg); --fg: var(--ct-fg); --acc: var(--ct-acc); --on: #1e1b2e; }
/* the site's own pill in the menu: TFN's ink, so it owns no color of its own */
.p-tfn { --bg: var(--ink); --fg: #e9e6dd; --acc: #fffdf8; --on: var(--ink); --face: var(--sans); }
.page .plate a { color: var(--fg); text-decoration-color: var(--acc); }
.plate .btn { display: inline-block; padding: 8px 18px; border-radius: 6px; font-weight: 700; background: var(--acc); color: var(--on) !important; text-decoration: none; }
.plate h3 { font-family: var(--face); color: var(--acc); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; opacity: .9; }
.lamp { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--acc, var(--link)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc, var(--link)) 30%, transparent); }
.seal { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.seal::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--c, var(--ink)); }
.s-tfn::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.s-cw { --c: var(--cw-seal); } .s-cw::before { transform: rotate(45deg) scale(.85); }
.s-g2 { --c: var(--g2-seal); } .s-g2::before { border-radius: 50%; }
.kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-right: 6px; }
h2.label { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.tag-mod { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: #8a2b1d; color: #fff; margin-right: 4px; vertical-align: 1px; }

/* ---- top lines: the logo and name are the fixation point ---- */
.top { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font: 700 27px/1 var(--sans); letter-spacing: -.015em; text-decoration: none; color: var(--ink) !important; }
.brand .mark { width: 46px; height: 46px; }
.nav { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; flex: 1; line-height: 1.4; }
.nav > a { padding: 5px 0; }
/* a thin upright rule between the name and the menu (dropped on phones, where the menu gets its own line) */
.nav { border-left: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); padding-left: 20px; min-height: 40px; }
.page .nav a { color: var(--ink); text-decoration: none; }
.page .nav a:hover { text-decoration: underline; }
/* a game's menu entries sit in a small plate of the game's own colors */
.nav .gamenav { display: inline-flex; align-items: center; border-radius: 99px; padding: 2px 4px; gap: 0; }
.page .nav .gamenav a { color: var(--fg); padding: 3px 9px; border-radius: 99px; line-height: 1.4; }
.page .nav .gamenav a:first-child { color: var(--acc); font-family: var(--face); font-weight: 700; letter-spacing: .01em; }
.page .nav .gamenav a + a { border-left: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 0 99px 99px 0; }
/* Search and Help: the same ink pill, both links alike */
.page .nav .gamenav.util a:first-child { color: var(--fg); font-weight: 400; }
.page .nav .gamenav a:hover { text-decoration: underline; text-decoration-color: var(--acc); }
/* the account links stay on the header row, at the right: "In a menu" (icons with counts and the name opening a
   short menu) or "By the greeting" (a line beside "Good evening") */
.who { margin-left: auto; font-size: 14px; color: var(--soft); }
.acct { display: flex; align-items: center; gap: 4px; }
.page .acct .ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 99px; color: var(--ink); text-decoration: none; }
.page .acct .ico:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.acct .ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.acct .badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--link); color: #fff; font: 700 11px/17px var(--sans); text-align: center; }
.acct .badge.mod { background: #8a2b1d; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; }
.me summary::-webkit-details-marker { display: none; }
.me summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.me[open] summary { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.me .drop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; display: grid; }
.page .me .drop a { padding: 7px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.page .me .drop a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.hello-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; }
.hello .hello-row .acct-line { margin: 0; font-size: 14px; }

.wrap { padding: 22px 20px 26px; display: grid; gap: 26px; }

/* greeting */
.hello h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.hello p { margin-top: 6px; color: var(--soft); }
/* the moderators' line: its own strip under the greeting so the two lines don't run together */
.hello .modline { margin-top: 12px; padding: 8px 12px; border: 1px solid #e2c9c2; border-left: 4px solid #8a2b1d; border-radius: 6px; background: #fbf1ee; color: var(--ink) !important; font-size: 14px; }
.page .modline a { color: #6e2216; text-decoration-color: color-mix(in srgb, #6e2216 35%, transparent); }

/* ---- block 1: news, the boards' talk, the case files ---- */
.front { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 4fr); gap: 0 26px; align-items: start; }
.front > section + section { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-left: 26px; }
.front > section.files { border-left: 0; padding-left: 20px; }
.news h3 { font: 700 clamp(26px, 3.6vw, 38px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 10px; }
.page .news h3 a { color: var(--ink); text-decoration: none; }
.news > p { font: 16.5px/1.55 var(--serif); }
.by { font-size: 13px; color: var(--soft); margin-top: 10px; }
/* older news: one compact line each, so the news column stays about as tall as the talk beside it */
.also { margin-top: 16px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.also li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font: 600 15.5px/1.3 var(--serif); }
.page .also a { color: var(--ink); }
.also time { font: 13px var(--sans); color: var(--soft); white-space: nowrap; }
.talk li { display: grid; grid-template-columns: 24px 1fr; gap: 0 6px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.talk li:last-child { border: 0; }
.talk .n { font: 700 19px/1.2 var(--serif); color: var(--soft); }
.talk .t { font: 600 15.5px/1.3 var(--serif); }
.page .talk .t { color: var(--ink); }
.files { background: var(--cw-paper); color: #2c2013; padding: 16px 18px; border: 1px solid #e3d3ac; border-radius: 4px; }
.files h2.label { color: #7a5a1c; display: flex; gap: 8px; align-items: center; }
.files h4 { font: 700 21px/1.2 Georgia, serif; }
.page .files a { color: #2c2013; text-decoration-color: var(--cw-seal); }
.files blockquote { margin: 8px 0 10px; font: italic 15.5px/1.55 Georgia, serif; }
.files ul { margin-top: 12px; border-top: 1px solid #dcc998; }
.files li { padding: 7px 0; border-bottom: 1px solid #e6d6ae; }
.files li:last-child { border: 0; }

/* ---- block 2: a game's card (Carrowmere now; a second game later) ---- */
.games { display: grid; gap: 18px; }
.game { border-radius: 16px; overflow: hidden; }
.game .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
/* the art is always shown whole (never cropped): the picture keeps its own shape and the plate fills round it */
.game .art { padding: 16px; display: grid; place-items: center; text-align: center; }
/* the parchment art sits inside the dark plate with a margin and a thin gold rule, so it never meets the page */
.game .art img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 6%, transparent); }
.game .art.set { min-height: 240px; background: repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--fg) 5%, transparent) 22px 44px); border-right: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.game .art.set > div { display: grid; gap: 12px; justify-items: center; padding: 20px; }
.game .typeset { font-family: var(--face); font-weight: 700; font-size: clamp(34px, 6vw, 60px); line-height: 1; color: var(--acc); text-transform: uppercase; letter-spacing: .05em; }
.standin { display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; border: 1px dashed currentColor; opacity: .8; }
.game .body { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.game .body h3 { font-size: 30px; line-height: 1.1; }
.game .row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
/* Carrowmere's card, right half: what's going on in the city now (no title or description: the art says Carrowmere) */
.live-city { gap: 14px !important; justify-content: flex-start !important; }
.lc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 22px; }
.live-city h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-bottom: 4px; }
.lc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.lc-list li:last-child { border: 0; }
.lc-list a { font-size: 14.5px; }
.lc-list small { display: block; opacity: .65; font-size: 12.5px; }
.page .plate a.mini { flex: none; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--acc); color: var(--acc); text-decoration: none; }
.page .plate a.mini:hover { background: var(--acc); color: var(--on); }
.lc-list .tag { flex: none; font: 600 11px var(--sans); padding: 2px 7px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); opacity: .85; white-space: nowrap; }
.lc-list .tag.warn { border-color: #c9573e; color: #f0a48f; }
.lc-note { font-size: 13px; opacity: .75; margin-top: 4px; }
.lc-strip { display: grid; gap: 3px; padding: 9px 12px; border-radius: 8px; background: color-mix(in srgb, var(--fg) 7%, transparent); font-size: 13.5px; }
.lc-strip b { color: var(--acc); font-weight: 600; }
/* the poll as the front block's third column */
.front > section.pollcol { border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-left: 26px; }
.poll-past { margin-top: 14px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); display: grid; gap: 4px; font-size: 13.5px; color: var(--soft); }
.poll-past b { color: var(--ink); font-weight: 600; }
/* a quiet day (the "Activity" buttons): no poll, so the case files take its place; no open tables */
.tc-btns { display: flex; gap: 6px; flex: none; }
.tc-empty { display: grid; gap: 6px; font-size: 14px; padding: 4px 0 8px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.tc-empty p:nth-child(2) { opacity: .75; }
.tc-empty .mini { justify-self: start; }
.tc-sub { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-top: 4px; }
.tc-recent li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.tc-recent li:last-child { border: 0; }
/* (each game's icon on the left of its entry: the owner, deploy day) */
.tc-ico { width: 26px; height: 26px; flex: none; display: block; border-radius: 4px; }
.tc-recent li { justify-content: flex-start; align-items: flex-start; }
.tc-recent .tc-what { flex: 1; }
.tc-list li > div { flex: 1; }
.tc-recent small { opacity: .6; white-space: nowrap; font-size: 12.5px; }
/* the card tables' own card (bottom right) */
.tables-card { border-radius: 14px; padding: 14px 18px; display: grid; gap: 8px; }
.tc-head { display: flex; align-items: center; gap: 12px; }
.tc-head img { width: 30px; height: 30px; display: block; }
.tc-head .icons { display: flex; gap: 5px; }
.page .plate a.tc-title { font-weight: 700; font-size: 17px; text-decoration: none; }
.tc-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.tc-list li:last-child { border: 0; }
.tc-list small { display: block; opacity: .65; font-size: 12.5px; }
.tc-last { font-size: 13px; opacity: .75; }
.tc-foot { font-size: 13.5px; }
/* topic labels, as on the boards (lib/labels.php): small outlined chips after the title */
.latest .tl { min-width: 0; }
.tfn-label { display: inline-block; font-size: 11px; line-height: 1.3; padding: 0 6px; margin: 1px 2px; border: 1px solid currentColor; border-radius: 8px; white-space: nowrap; opacity: .85; vertical-align: 1px; }
.page a.tfn-label { color: var(--soft); text-decoration: none; }
.page a.tfn-label:hover { opacity: 1; text-decoration: underline; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; padding: 18px 26px 20px; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.shelf h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.shelf li { padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); font-size: 14.5px; }
.shelf li:last-child { border: 0; }
.shelf small { display: block; opacity: .65; font-size: 12.5px; }

/* ---- block 3: the boards ---- */
.boards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.room { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.page a.room { color: var(--ink); text-decoration: none; }
.room .mark { width: 40px; height: 40px; }
.room b { display: block; font-size: 17px; }
/* who's about lives in the boards' own card (was a box of its own that left an empty space beside it) */
.room { align-items: flex-start; }
.room-body { display: grid; gap: 4px; min-width: 0; }
.room-head { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
.page a.room-title { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.page a.room-title:hover { text-decoration: underline; }
.room .about { font-size: 14px; color: var(--soft); }
.room .lbl { font-weight: 600; color: var(--ink); }
.latest { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px; }
.latest li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.latest li:last-child { border: 0; }
.latest .t { font-weight: 600; }
.latest p { color: var(--soft); font-size: 13.5px; grid-column: 1 / -1; }
.latest time { color: var(--soft); font-size: 13px; white-space: nowrap; }
.side { display: grid; gap: 14px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.box p + p { margin-top: 8px; }
.poll .q { font: 600 16px/1.3 var(--serif); margin-bottom: 8px; }
.poll label { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14.5px; cursor: pointer; }
.poll .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--soft); }
.poll button { font: 700 13px var(--sans); padding: 6px 14px; border-radius: 6px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.poll .bar { position: relative; padding: 3px 8px; margin: 4px 0; font-size: 13.5px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow: hidden; }
.poll .bar span { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--link) 18%, transparent); z-index: 0; }
.poll .bar { isolation: isolate; } .poll .bar span { z-index: -1; }
.tables { border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tables img { width: 34px; height: 34px; display: block; }
.tables .icons { display: flex; gap: 6px; }

/* ---- which page the mockup shows ---- */

/* ---- Carrowmere fiction ---- */
.fic-head { border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0; align-items: center; }
.fic-head img { display: block; width: calc(100% - 28px); margin: 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); }
.fic-head > div { padding: 18px 26px; display: grid; gap: 10px; }
.fic-head h1 { font: 700 32px/1.1 var(--face); color: var(--acc); }
.fic-head .row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.fic-tabs { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.page .fic-tabs > a { font: 600 13px var(--sans); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; }
.page .fic-tabs > a.on { background: var(--cw-bg); border-color: var(--cw-bg); color: var(--cw-acc); }
.fic-tabs span { margin-left: auto; font-size: 13px; color: var(--soft); }
.fic-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fic-list { background: var(--cw-paper); border: 1px solid #e3d3ac; border-radius: 6px; padding: 4px 18px; color: #2c2013; }
.fic-list li { padding: 12px 0; border-bottom: 1px solid #e6d6ae; }
.fic-list li:last-child { border: 0; }
.page .fic-list a { color: #2c2013; text-decoration-color: var(--cw-seal); }
.fic-list .t { font: 700 18px/1.25 Georgia, serif; }
.fic-list p { margin-top: 4px; font-size: 14.5px; }
.fic-list blockquote { margin-top: 4px; font: italic 15px/1.5 Georgia, serif; }
.fic-list small { display: block; margin-top: 4px; font-size: 12.5px; color: #6b5a3e; }

.foot { padding: 16px 20px; color: var(--soft); font-size: 13px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- phone ---- */
@media (max-width: 860px) {
  .front, .boards, .game .head, .shelf, .fic-head, .fic-cols, .lc-cols { grid-template-columns: minmax(0, 1fr); }
  .fic-head > div { padding: 4px 18px 18px; }
  .fic-head h1 { font-size: 26px; }
  .fic-tabs span { margin-left: 0; flex-basis: 100%; }
  .front > section + section { border-left: 0; padding-left: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-top: 18px; margin-top: 20px; }
  .front > section.files { border-top: 1px solid #e3d3ac; padding: 16px; }
  .top { padding: 14px 16px; }
  .nav { order: 3; flex-basis: 100%; border-left: 0; padding-left: 0; min-height: 0; }
  .brand { font-size: 23px; } .brand .mark { width: 40px; height: 40px; }
  .wrap { padding: 18px 16px 22px; }
  .game .art { padding: 12px; }
  .hello h1 { font-size: 22px; }
  .game .art.set { min-height: 0; aspect-ratio: 16 / 7; }
  .game .art.set { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
  .game .body { padding: 18px; }
  .game .body h3 { font-size: 26px; }
  .shelf { padding: 6px 18px 16px; }
  .shelf > div { padding-top: 14px; }
  .foot { padding: 14px 16px; }
}

/* ---- the real page (not the mockup): the paper fills the window; the content is at most 1520 px wide ---- */
body { background: #e7e2d8; }
.site { max-width: 1520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 0 40px rgba(60, 50, 40, .12); }
.site > main { flex: 1; }
.page .nav .gamenav a.on { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--acc); }
.welcome-msg { margin-bottom: 14px; padding: 10px 14px; border-left: 4px solid var(--link); background: var(--card); border-radius: 6px; font-size: 14.5px; }
.empty-note { color: var(--soft); font-size: 14px; }
.poll .voted { font-size: 13px; color: var(--soft); }
form.inline { display: inline; margin: 0; }
.page .plate button.mini { flex: none; font: 700 12px var(--sans); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--acc); color: var(--acc); background: transparent; cursor: pointer; }
.page .plate button.mini:hover { background: var(--acc); color: var(--on); }

/* ---- the older pages inside the new frame (search, help, fiction, hubs) ---- */
.legacy { max-width: 1100px; }
.legacy h1, .legacy h1.intro, .legacy #intro { font: 700 22px/1.25 var(--serif); margin: 18px 0 8px; color: var(--ink); }
.legacy p { margin: 0 0 12px; }
.legacy table { border-collapse: collapse; width: 100%; margin-bottom: 14px; }
.legacy td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legacy input[type=text], .legacy select, .legacy textarea { font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.legacy input[type=button], .legacy input[type=submit] { font: 600 14px var(--sans); padding: 6px 14px; border-radius: 6px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.legacy .author { color: var(--soft); font-size: 13px; }

/* ---- the Library (library.php): the game's library in the site's paper and ink; Carrowmere's own accents ---- */
.lib { display: grid; gap: 14px; }
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.lib-head h1 { font: 700 34px/1.1 Georgia, "Palatino Linotype", serif; margin: 0; }
.lib-kicker { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cw-seal); margin: 0 0 4px; }
.lib-note { color: var(--soft); font-size: 13.5px; }
.lib-head .lib-note { max-width: 46ch; margin: 0; }
.lib-stale { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.lib-shelves { display: flex; flex-wrap: wrap; gap: 6px; }
.page .lib-shelves a { font: 600 13.5px var(--sans); padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.page .lib-shelves a:hover { border-color: var(--cw-seal); }
.page .lib-shelves a.on { background: var(--cw-bg); border-color: var(--cw-bg); color: var(--cw-acc); }
.lib-blurb { margin: 0; color: var(--soft); }
.lib-cols { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); gap: 22px; align-items: start; }
.lib-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.lib-find { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.lib-find input[type=search] { flex: 1 1 140px; font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); min-width: 0; }
.lib-find select { font: inherit; font-size: 13.5px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); max-width: 100%; }
.lib-find button { font: 700 13px var(--sans); padding: 6px 12px; border-radius: 8px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.lib-list ul { list-style: none; margin: 0; padding: 0; }
.page .lib-list li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.page .lib-list li a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.page .lib-list li a.on { background: var(--cw-paper); box-shadow: inset 3px 0 0 var(--cw-seal); }
.lib-list li b { display: block; font-weight: 600; }
.lib-list li small { display: block; color: var(--soft); font-size: 12.5px; }
.lib-list li.lib-note { padding: 8px 10px; }
.lib-entry { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; min-width: 0; display: flow-root; }
.lib-entry h2 { font: 700 28px/1.15 Georgia, "Palatino Linotype", serif; margin: 0; }
.lib-sub { margin: 4px 0 14px; color: var(--soft); font-size: 14px; }
.lib-entry h3 { font: 700 18px/1.3 Georgia, serif; margin: 18px 0 6px; }
.lib-entry h4 { font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cw-seal); margin: 14px 0 4px; }
.lib-entry p { margin: 0 0 10px; }
.lib-lead { font-size: 16px; }
.lib-read { font: 17px/1.65 Georgia, "Palatino Linotype", serif; max-width: 68ch; }
.lib-read p { margin: 0 0 14px; }
.lib-read h3 { font: 700 20px/1.3 Georgia, serif; margin: 24px 0 8px; }
.lib-pic { float: right; width: min(240px, 40%); margin: 0 0 12px 18px; border-radius: 10px; background: var(--paper); }
.lib-epi { margin: 0 0 14px; padding: 4px 0 4px 14px; border-left: 3px solid var(--cw-seal); font: italic 16px/1.5 Georgia, serif; }
.lib-epi cite { display: block; font: 13px var(--sans); color: var(--soft); margin-top: 4px; }
.lib-lines { display: grid; grid-template-columns: fit-content(32%) 1fr; gap: 6px 14px; margin: 6px 0 12px; }
.lib-lines dt { font-weight: 600; } .lib-lines dd { margin: 0; }
.lib-scroll { overflow-x: auto; }
.lib-table { border-collapse: collapse; font-size: 13.5px; width: 100%; }
.lib-table th, .lib-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lib-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.page a.lib-chip { font-size: 13px; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--paper); }
.page a.lib-chip:hover { border-color: var(--cw-seal); }
.sgn { display: inline-block; font: 600 11px/1.5 var(--sans); padding: 0 5px; border-radius: 4px; background: var(--cw-paper); color: #6b4b12; vertical-align: 1px; }
.nw { white-space: nowrap; }
.lib-sb { background: var(--cw-paper); border: 1px solid #e3d3ac; border-radius: 10px; padding: 16px 18px; color: #2c2013; display: flow-root; }
.lib-sb .q { color: var(--soft); font-weight: 700; }
.sb-top { font-size: 15px; } .sb-top b { font-size: 20px; }
.sb-sub { font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #7a5a1c; }
.sb-line { font: italic 15.5px/1.5 Georgia, serif; }
.sb-st { border-collapse: collapse; margin: 6px 0 10px; } .sb-st th, .sb-st td { padding: 3px 10px; text-align: center; border: 1px solid #dcc998; font-size: 13.5px; }
.sb-foot { font-size: 13px; color: #6b5a3e; border-top: 1px solid #dcc998; padding-top: 8px; margin-top: 10px; }
.lib-closed { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px; text-align: center; }
@media (max-width: 860px) {
  .lib-cols { grid-template-columns: minmax(0, 1fr); }
  .lib-entry { order: -1; padding: 18px; }
  .lib-list { position: static; max-height: none; }
  .lib-pic { float: none; display: block; width: 100%; max-width: 320px; margin: 0 auto 12px; }
}

/* ---- the Library's layout, take two (the owner, 2026-11-12: the shelves grouped in a side menu, less height before
   the reading starts): shelves | list | entry; on narrower screens the list goes under the entry; on phones the
   shelves are one drop-down ---- */
.lib { gap: 10px; }
.lib-head { align-items: baseline; justify-content: flex-start; gap: 2px 16px; }
.lib-head h1 { font-size: 26px; }
.lib-head .lib-note { max-width: none; }
.lib-cols { grid-template-columns: 186px minmax(220px, 1fr) minmax(0, 2.7fr); gap: 18px; }
.lib-shelves { display: block; position: sticky; top: 12px; }
.lib-shelves h2 { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 14px 0 3px 10px; }
.lib-shelves h2:first-child { margin-top: 2px; }
.page .lib-shelves a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; font: 14px/1.35 var(--sans); }
.page .lib-shelves a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.page .lib-shelves a.on { background: var(--cw-bg); color: var(--cw-acc); }
.lib-shelves a small { color: var(--soft); font-size: 12px; } .lib-shelves a.on small { color: var(--cw-fg); opacity: .7; }
.lib-pick { display: none; }
.lib-list .lib-blurb { font-size: 13px; padding: 2px 6px 8px; color: var(--soft); }
.lib-list { max-height: calc(100vh - 24px); }
@media (max-width: 1100px) {
  .lib-cols { grid-template-columns: 170px minmax(0, 1fr); }
  .lib-shelves { grid-row: 1 / span 2; }
  .lib-entry { grid-column: 2; order: -1; }
  .lib-list { grid-column: 2; position: static; max-height: none; }
}
@media (max-width: 700px) {
  .lib-cols { grid-template-columns: minmax(0, 1fr); }
  .lib-shelves { position: static; grid-row: auto; order: -2; }
  .lib-shelves h2, .page .lib-shelves > a { display: none; }
  .lib-pick { display: block; }
  .lib-pick label { display: flex; align-items: center; gap: 8px; }
  .lib-pick select { flex: 1; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
  .lib-entry, .lib-list { grid-column: auto; }
  .lib-head .lib-note { display: none; }
}

/* ---- the Library as the books (library.php: case journals and tales, the owner 2026-11-13; the reference shelves are
   the Field Guide, fieldguide.php): the mockup's fiction page, and a reading page for one piece ---- */
.books { display: grid; gap: 20px; }
.fic-head .bk-cross { font-size: 14px; opacity: .9; }
.fic-cols.one { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.bk-soon { background: var(--cw-paper); border: 1px dashed #c9b27c; border-radius: 6px; padding: 26px 20px; text-align: center; color: #5a4632; font: italic 16px/1.5 Georgia, serif; }
.bk-soon b { display: block; font: 700 18px Georgia, serif; color: #2c2013; margin-bottom: 4px; }
.bk-pages { display: flex; gap: 16px; justify-content: space-between; }
.bk-read { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 34px 28px; max-width: 800px; width: 100%; margin: 0 auto; }
.bk-read h1 { font: 700 30px/1.2 Georgia, "Palatino Linotype", serif; margin: 10px 0 4px; }
.bk-by { color: var(--soft); font-size: 14px; margin: 0 0 18px; }
.page a.bk-back { font-size: 14px; }
@media (max-width: 860px) { .bk-read { padding: 18px; } .bk-read h1 { font-size: 24px; } }
