/* The website's look: the game's, after the strategy games players know
   (Total War, Civilization). Parchment in dark frames with a bronze line and
   riveted corners; icons from game-icons.net in bronze medallions; engraved
   capitals (Cinzel) for titles, a scribe's hand (Fondamento) for headings,
   IM Fell English for chronicle text, Alegreya Sans for reading. The
   ornaments below (grain, corners, flourish, medallion) are the game's own. */
:root {
  --bg: #efe4c6;
  --bg-deep: #e5d5ae;
  --card: #f6eedb;
  --fg: #2b2116;
  --soft: #6b5a41;
  --line: rgba(80, 56, 28, 0.24);
  --gilt: #8a6418;
  --gilt-soft: rgba(176, 128, 44, 0.16);
  --bronze: #c9a052;
  --realm: #2f5aa8;
  --rival: #9e2e22;
  --rubric: #8e2f1f;
  --accent: #2f5aa8;
  --accent-fg: #f7efd9;
  --frame: #33261a; --frame-hi: #523d29; --frame-fg: #f0e4c5; --frame-soft: #c8b590;
  --trim: rgba(196, 147, 47, 0.7);
  --stain: rgba(150, 105, 40, 0.12);
  --vignette: rgba(120, 82, 30, 0.14);
  --btn-hi: #f8f1df; --btn-lo: #e2d2ab;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 10px 24px rgba(40, 26, 8, 0.22);
  --t-plains: #c9cf9b; --t-forest: #98ae76; --t-hills: #c9bb8b; --t-mountains: #aaa398; --t-water: #6b9db2;
  --font-title: "Cinzel", "Trajan Pro", "IM Fell English SC", Georgia, serif;
  --font-display: "Fondamento", "IM Fell English", "Iowan Old Style", Georgia, serif;
  --font-chronicle: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --font-ui: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1080px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.22 0 0 0 0 0.08 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform=''%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%231b120a' stroke-width='5.5'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23c9a052' stroke-width='3'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23f1d58c' stroke-width='1' transform='translate%28-.6 -.6%29'/%3E%3Cpath d='M9 14q0-5 5-5' fill='none' stroke='%238a6424' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='9' r='3.6' fill='%23e8c674' stroke='%231b120a' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23fff6d6'/%3E%3C/g%3E%3C/svg%3E");
  --corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='translate%2834 0%29 scale%28-1 1%29'%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%231b120a' stroke-width='5.5'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23c9a052' stroke-width='3'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23f1d58c' stroke-width='1' transform='translate%28-.6 -.6%29'/%3E%3Cpath d='M9 14q0-5 5-5' fill='none' stroke='%238a6424' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='9' r='3.6' fill='%23e8c674' stroke='%231b120a' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23fff6d6'/%3E%3C/g%3E%3C/svg%3E");
  --corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='translate%280 34%29 scale%281 -1%29'%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%231b120a' stroke-width='5.5'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23c9a052' stroke-width='3'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23f1d58c' stroke-width='1' transform='translate%28-.6 -.6%29'/%3E%3Cpath d='M9 14q0-5 5-5' fill='none' stroke='%238a6424' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='9' r='3.6' fill='%23e8c674' stroke='%231b120a' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23fff6d6'/%3E%3C/g%3E%3C/svg%3E");
  --corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cg transform='translate%2834 34%29 scale%28-1 -1%29'%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%231b120a' stroke-width='5.5'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23c9a052' stroke-width='3'/%3E%3Cpath d='M3 31V9q0-6 6-6h22' fill='none' stroke='%23f1d58c' stroke-width='1' transform='translate%28-.6 -.6%29'/%3E%3Cpath d='M9 14q0-5 5-5' fill='none' stroke='%238a6424' stroke-width='1.6'/%3E%3Ccircle cx='9' cy='9' r='3.6' fill='%23e8c674' stroke='%231b120a' stroke-width='1.4'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23fff6d6'/%3E%3C/g%3E%3C/svg%3E");
  --divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14' viewBox='0 0 240 14'%3E%3Cpath d='M8 7H104M136 7H232' stroke='%23a07a2c' stroke-width='1.2'/%3E%3Cpath d='M104 7q8-6 16 0q8 6 16 0' fill='none' stroke='%23a07a2c' stroke-width='1.2'/%3E%3Cpath d='M120 1l5 6-5 6-5-6z' fill='%238e2f1f'/%3E%3Ccircle cx='6' cy='7' r='2' fill='%23a07a2c'/%3E%3Ccircle cx='234' cy='7' r='2' fill='%23a07a2c'/%3E%3C/svg%3E");
  --medal: radial-gradient(circle closest-side, #4a3826 0, #2c2015 72%, #f0cf7c 76%, #c29440 82%, #7a5520 90%, #1b120a 97%, transparent 100%);
  --wood: var(--grain), linear-gradient(180deg, var(--frame-hi), var(--frame));
  --parchment: radial-gradient(ellipse 45% 35% at 18% 12%, var(--stain), transparent 70%), radial-gradient(ellipse 40% 30% at 88% 78%, var(--stain), transparent 70%), var(--grain);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1812; --bg-deep: #16120d; --card: #251e16; --fg: #ebdfc4; --soft: #a69676;
    --line: rgba(232, 200, 140, 0.16); --gilt: #d8ad5a; --gilt-soft: rgba(224, 180, 94, 0.12);
    --realm: #8aa9e6; --rival: #e58670; --rubric: #e08d6c; --accent: #3d63ad; --accent-fg: #f7efd9;
    --frame: #0b0806; --frame-hi: #2b2118; --frame-soft: #9c8a69;
    --trim: rgba(210, 165, 79, 0.5); --stain: rgba(0, 0, 0, 0.18); --vignette: rgba(0, 0, 0, 0.35);
    --btn-hi: #31271c; --btn-lo: #221a12;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 10px 24px rgba(0, 0, 0, 0.5);
    --t-plains: #4b5535; --t-forest: #34482d; --t-hills: #5a5139; --t-mountains: #4e4b46; --t-water: #1f3946;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1812; --bg-deep: #16120d; --card: #251e16; --fg: #ebdfc4; --soft: #a69676;
  --line: rgba(232, 200, 140, 0.16); --gilt: #d8ad5a; --gilt-soft: rgba(224, 180, 94, 0.12);
  --realm: #8aa9e6; --rival: #e58670; --rubric: #e08d6c; --accent: #3d63ad; --accent-fg: #f7efd9;
  --frame: #0b0806; --frame-hi: #2b2118; --frame-soft: #9c8a69;
  --trim: rgba(210, 165, 79, 0.5); --stain: rgba(0, 0, 0, 0.18); --vignette: rgba(0, 0, 0, 0.35);
  --btn-hi: #31271c; --btn-lo: #221a12;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 10px 24px rgba(0, 0, 0, 0.5);
  --t-plains: #4b5535; --t-forest: #34482d; --t-hills: #5a5139; --t-mountains: #4e4b46; --t-water: #1f3946;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden means hidden, whatever a class says */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--grain), var(--bg); color: var(--fg); font: 18px/1.6 var(--font-ui); }
img, svg { display: block; max-width: 100%; }
/* Every text link is underlined, so it reads as one; buttons, the brand and
   the forum's filter pills are not. */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); }
a:hover { text-decoration-color: currentColor; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

/* An icon in a round bronze medallion, as in the game. */
.medal { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--medal); color: #ecd79c; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45); }
.medal svg { width: 52%; height: 52%; fill: currentColor; }
.medal.sm { width: 40px; height: 40px; }

/* A framed piece: parchment in a dark frame, a bronze line, riveted corners. */
.framed { position: relative; background: var(--parchment), var(--card); border: 3px solid var(--frame); border-radius: 4px; box-shadow: 0 0 0 1px var(--bronze), 0 0 0 3px #1b120a, inset 0 0 0 1px var(--trim), inset 0 0 36px var(--vignette), var(--shadow); }
.framed::before { content: ""; position: absolute; inset: -7px; pointer-events: none; z-index: 2; background: var(--corner-tl) top left / 46px no-repeat, var(--corner-tr) top right / 46px no-repeat, var(--corner-bl) bottom left / 46px no-repeat, var(--corner-br) bottom right / 46px no-repeat; }
/* A plainer card: the frame without the corners. */
.card-plain { background: var(--parchment), var(--card); border: 1px solid color-mix(in srgb, var(--frame) 35%, transparent); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 1px 3px rgba(60, 40, 15, 0.18); }

/* Header: a dark wooden bar, like the game's dock. */
.top { position: sticky; top: 0; z-index: 10; background: var(--wood); color: var(--frame-fg); border-bottom: 2px solid #1b120a; box-shadow: inset 0 -1px 0 var(--trim), 0 2px 8px rgba(0, 0, 0, 0.3); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { font: 700 20px/1 var(--font-title); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; margin-right: auto; color: #e8c674; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.top nav { display: flex; gap: 22px; font: 18px/1 var(--font-display); }
.top nav a { color: var(--frame-soft); text-decoration: none; }
.top nav a:hover { color: #f3dc9b; }
#account { min-width: 32px; display: flex; justify-content: flex-end; font: 17px/1 var(--font-display); }
.top .link { color: var(--frame-soft); text-decoration: none; }
.top .link:hover { color: #f3dc9b; }
.link { color: var(--soft); }
.link:hover { color: var(--fg); }
@media (max-width: 640px) { .top nav { display: none; } .brand { font-size: 16px; } }

/* Buttons: raised plaques. Filled (the realm's blue with a gilt rule) for the
   one main action; plain parchment for others; red for destroying. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 3px; font: 600 17px/1 var(--font-ui); text-decoration: none; cursor: pointer; color: var(--fg); background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo)); border: 1px solid color-mix(in srgb, var(--frame) 55%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 rgba(0, 0, 0, 0.18); }
.btn:hover { border-color: var(--frame); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25); }
.btn-main { color: #f7efd9; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white), color-mix(in srgb, var(--accent) 78%, black)); border-color: color-mix(in srgb, var(--accent) 45%, black); box-shadow: inset 0 0 0 1px rgba(232, 190, 104, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 rgba(0, 0, 0, 0.3); }
.btn-main:hover { filter: brightness(1.08); border-color: color-mix(in srgb, var(--accent) 45%, black); }
.btn-other { background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo)); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 15px; }
.top .btn-main { box-shadow: inset 0 0 0 1px rgba(232, 190, 104, 0.7), 0 0 0 1px #1b120a; }

/* Headings: engraved capitals for page titles, the scribe's hand for the rest;
   eyebrows are rubrics in red between fleurons, with a flourish beneath h2s. */
h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font: 700 clamp(34px, 5.4vw, 58px)/1.08 var(--font-title); letter-spacing: 0.02em; }
h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--font-title); letter-spacing: 0.03em; margin-bottom: 6px; }
h2::after { content: ""; display: block; width: 240px; max-width: 70%; height: 14px; margin: 10px 0 14px; background: var(--divider) left center / contain no-repeat; }
h3 { font: 26px/1.15 var(--font-display); margin-bottom: 6px; }
.eyebrow { font: 19px/1.3 var(--font-display); color: var(--rubric); margin: 0 0 10px; }
.eyebrow::before { content: "☙ "; color: var(--gilt); font-family: var(--font-chronicle); }
.eyebrow::after { content: " ❧"; color: var(--gilt); font-family: var(--font-chronicle); }

/* Hero */
.hero { padding: 64px 0 56px; background: radial-gradient(ellipse at 70% 40%, var(--gilt-soft), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lede { font-size: 20px; color: var(--soft); margin: 20px 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font: 17px/1.4 var(--font-display); color: var(--soft); margin: 14px 0 0; }
.map { background: var(--t-water); min-width: 0; }
.map.framed { overflow: visible; }
.map > a { display: block; }
/* The map's own proportions, held whatever the browser does with the image's size. */
.map img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4000 / 3237; object-fit: contain; background: #232a27; }
.map a:focus-visible { outline: 2px solid var(--realm); outline-offset: -2px; }
.map figcaption { font: 16px/1.4 var(--font-display); color: var(--soft); background: var(--parchment), var(--card); padding: 9px 16px; border-top: 2px solid var(--frame); }
@media (max-width: 820px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--grain), var(--bg-deep); border-block: 1px solid var(--line); box-shadow: inset 0 8px 16px -12px rgba(60, 40, 15, 0.35), inset 0 -8px 16px -12px rgba(60, 40, 15, 0.35); }
.intro { color: var(--soft); max-width: 40em; margin: 0 0 32px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { padding: 26px 24px 24px; counter-increment: step; text-align: center; display: grid; justify-items: center; align-content: start; gap: 4px; }
.steps li::after { content: counter(step, upper-roman); position: absolute; top: 12px; left: 16px; font: 700 18px/1 var(--font-title); color: var(--rubric); }
.steps .medal { margin-bottom: 8px; }
.steps p, .features p { margin: 0; color: var(--soft); font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 18px; }
.features .medal { grid-row: span 2; }
.features h3 { font-size: 23px; margin: 6px 0 2px; }
@media (max-width: 820px) { .steps, .features { grid-template-columns: 1fr; } }

/* A page from a chronicle */
.chronicle { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.page { padding: 38px 42px; font: 20px/1.65 var(--font-chronicle); }
.page h3 { font: 700 18px/1.2 var(--font-title); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rubric); text-align: center; margin-bottom: 4px; }
.page h3::after { content: ""; display: block; width: 200px; max-width: 70%; height: 14px; margin: 8px auto 14px; background: var(--divider) center / contain no-repeat; }
.page p { margin: 0 0 14px; }
.page p:last-child { margin: 0; }
.page .drop::first-letter { font: 60px/0.8 var(--font-display); float: left; margin: 6px 8px 0 0; color: var(--rubric); }
@media (max-width: 820px) { .chronicle { grid-template-columns: 1fr; gap: 28px; } .page { padding: 30px 24px; font-size: 18px; } }

/* Coming */
.coming { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coming > div { padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; align-items: start; }
.coming .medal { grid-row: span 3; }
.coming p { margin: 0; color: var(--soft); font-size: 17px; }
.tag { display: inline-block; font: 700 12px/1.6 var(--font-title); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rubric); margin-bottom: 2px; }
@media (max-width: 820px) { .coming { grid-template-columns: 1fr; } }

.closing { text-align: center; }
.closing h2::after { margin-inline: auto; background-position: center; }
.closing .actions { justify-content: center; }
.closing p { color: var(--soft); margin: 0 0 24px; font: 20px/1.4 var(--font-display); }

footer { padding: 28px 0 44px; background: var(--wood); color: var(--frame-soft); border-top: 2px solid #1b120a; box-shadow: inset 0 1px 0 var(--trim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer .link { color: var(--frame-soft); }
footer .link:hover { color: #f3dc9b; }
footer .credits { flex-basis: 100%; font-size: 13px; opacity: 0.85; }

/* Sign-in page */
.sign-in { min-height: calc(100vh - 64px); display: grid; place-items: start center; padding: 48px 16px; }
.sign-in .card { width: 100%; max-width: 460px; text-align: center; padding: 30px 24px; }
.sign-in h1 { font-size: 32px; margin-bottom: 8px; }
.sign-in .note { color: var(--soft); font-size: 16px; }
#sign-in-box { margin-top: 24px; display: flex; justify-content: center; min-height: 120px; }

/* The map page: the known world at full width */
.map-page { padding: 40px 0 64px; }
.map-page h1 { margin: 0 0 8px; }
.map-page .lede { margin: 0 0 24px; }
.map-page .map { margin: 0; }
.map-page .actions { margin-top: 24px; }

/* The forum */
.btn-danger { color: var(--rival); border-color: var(--rival); }
.btn-danger:hover { background: color-mix(in srgb, var(--rival) 10%, var(--btn-hi)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.forum { padding: 32px 0 64px; }
.forum h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 8px; }
.forum .lede { margin: 0 0 24px; font-size: 18px; }
.crumbs { font: 17px/1.4 var(--font-display); color: var(--soft); margin-bottom: 16px; }
.threads { list-style: none; margin: 0; padding: 0; }
/* The forum's sections: parchment cards with a medallion, each a link to the threads beneath it. */
.sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.section-row { position: relative; display: grid; grid-template-columns: auto 1fr 240px auto; gap: 12px 22px; align-items: center; padding: 18px 22px 18px 18px; }
.section-row:hover { border-color: var(--gilt); }
.section-row h2 { font: 28px/1.15 var(--font-display); letter-spacing: 0; margin-bottom: 2px; }
.section-row h2::after { content: none; }
.section-row h2 a { text-decoration: none; }
.section-row h2 a::after { content: ""; position: absolute; inset: 0; } /* the whole card opens it */
.section-row p { margin: 0; color: var(--soft); font-size: 16px; }
.section-meta { display: grid; gap: 2px; align-content: start; font-size: 15px; color: var(--soft); }
.section-meta b { color: var(--fg); }
.section-meta a { position: relative; z-index: 1; } /* the latest thread is its own link */
.section-go { font-size: 30px; line-height: 1; color: var(--gilt); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.section-head .lede { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.filters a { font: 16px/1.4 var(--font-display); text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--soft); background: var(--card); }
.filters a.on { border-color: var(--gilt); color: var(--fg); background: var(--gilt-soft); box-shadow: inset 0 0 0 1px var(--gilt); }
.threads .thread-row { margin-bottom: 8px; }
.thread-row { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--parchment), var(--card); border: 1px solid color-mix(in srgb, var(--frame) 30%, transparent); border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 1px 2px rgba(60, 40, 15, 0.15); }
.thread-row.pinned { border-color: var(--gilt); box-shadow: inset 0 0 0 1px var(--gilt), 0 1px 2px rgba(60, 40, 15, 0.15); }
.thread-main { min-width: 0; }
.thread-title { font: 21px/1.3 var(--font-display); text-decoration: none; }
.thread-title:hover { color: var(--rubric); }
.pin { font: 700 11px/1 var(--font-title); letter-spacing: 0.1em; text-transform: uppercase; color: var(--rubric); }
.thread-meta { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.thread-head .thread-meta { margin-top: 4px; }
.empty { padding: 24px 16px; color: var(--soft); font-family: var(--font-display); font-size: 19px; }
.status { display: inline-block; font: 700 11px/1.7 var(--font-title); letter-spacing: 0.08em; text-transform: uppercase; padding: 0 8px; border-radius: 2px; border: 1px solid var(--line); color: var(--soft); }
.status-planned { color: var(--realm); border-color: var(--realm); }
.status-building { color: var(--gilt); border-color: var(--gilt); }
.status-shipped { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.status-declined { text-decoration: line-through; }
.vote { flex: none; display: grid; justify-items: center; width: 54px; padding: 6px 0; border: 1px solid color-mix(in srgb, var(--frame) 45%, transparent); border-radius: 3px; background: linear-gradient(180deg, var(--btn-hi), var(--btn-lo)); color: var(--soft); font: inherit; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.vote b { color: var(--fg); font-size: 17px; line-height: 1.1; }
.vote-arrow { font-size: 12px; line-height: 1; }
.vote.on { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vote:disabled { opacity: 0.6; }
.thread-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.thread-head h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.post { background: var(--parchment), var(--card); border: 1px solid color-mix(in srgb, var(--frame) 30%, transparent); border-radius: 3px; padding: 16px 20px; margin-bottom: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25), 0 1px 2px rgba(60, 40, 15, 0.15); }
.post.first { border: 2px solid var(--frame); box-shadow: 0 0 0 1px var(--bronze), inset 0 0 0 1px var(--trim), var(--shadow); }
.post header { font-size: 15px; color: var(--soft); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post header b { color: var(--fg); }
.post header .link { margin-left: auto; background: none; border: 0; font: inherit; cursor: pointer; }
.post-body { overflow-wrap: anywhere; }
.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin: 0; }
.post-body a { color: var(--realm); }
.post .edited { font-style: italic; }
.deleted-note { font-style: italic; color: var(--soft); }
.own-tools { display: flex; gap: 8px; margin-top: 14px; }
.own-tools[hidden] { display: none; }
.edit-form { margin-top: 4px; }
.form-actions .link { background: none; border: 0; font: inherit; color: var(--soft); text-decoration: underline; cursor: pointer; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 16px; border: 1px dashed var(--rival); border-radius: 3px; font-size: 15px; }
.admin-tools select { font: inherit; padding: 4px 6px; }
.forum-form { display: grid; gap: 14px; max-width: 760px; margin-top: 24px; }
.forum-form h2 { font-size: 26px; margin: 0; }
.field { display: grid; gap: 4px; }
.field label { font: 19px/1.3 var(--font-display); color: var(--rubric); }
.field small { color: var(--soft); font-size: 14px; }
.field input, .field textarea { font: 16px/1.5 var(--font-ui); color: var(--fg); background: var(--card); border: 1px solid color-mix(in srgb, var(--frame) 35%, transparent); border-radius: 3px; padding: 10px 12px; width: 100%; box-shadow: inset 0 1px 3px rgba(60, 40, 15, 0.18); }
.field textarea { resize: vertical; font-family: var(--font-chronicle); font-size: 18px; }
.form-error { margin: 0; color: var(--rival); font-size: 15px; }
.form-actions { display: flex; align-items: center; gap: 16px; }
.forum-gate { margin-top: 24px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--parchment), var(--card); border: 1px solid color-mix(in srgb, var(--frame) 35%, transparent); border-radius: 3px; }
.forum-gate p { margin: 0; color: var(--soft); }
.locked-note { color: var(--soft); margin-top: 24px; }
@media (max-width: 640px) {
  .section-row { grid-template-columns: auto 1fr auto; }
  .section-meta { grid-column: 2; }
  .section-go { grid-column: 3; grid-row: 1 / span 2; }
  .section-row .medal { grid-row: 1 / span 2; width: 44px; height: 44px; }
  .thread-row { align-items: flex-start; }
  .post { padding: 14px 16px; }
}

/* Who wrote it: a realm's shield (or a plain one) and the name. */
.who { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.who b { color: var(--fg); font-weight: 600; }
.who .shield { width: 18px; height: 21px; flex: none; filter: drop-shadow(0 0.5px 0.5px rgba(0, 0, 0, 0.35)); }
.who.big .shield { width: 32px; height: 38px; }
.who.big b { font: 20px/1.2 var(--font-display); }
.shield.blank path { fill: var(--bg-deep); stroke: color-mix(in srgb, var(--soft) 60%, transparent); stroke-width: 5; }
.posting-as { margin: 0; font-size: 15px; color: var(--soft); }
