/* Relic Archive: an old-internet look. A pixel-art desktop scene behind a silver, bevelled page;
   every box is a little window with a title bar; Verdana, blue underlined links, grid tables, a ticker,
   a hit counter and 88×31 buttons. Title-bar and banner colours come from the theme (Admin → Settings). */

/* Pixel font, served from this site (no third-party requests). Silkscreen © The Silkscreen Project Authors, SIL Open Font License (assets/fonts/Silkscreen-OFL.txt). */
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen.woff") format("woff"); font-weight: 400 700; font-display: swap; }

/* 1. Tokens */
:root {
  --desk: #1f5ad6;
  --bn-hi: #8fb1ef; --bn-top: #4775de; --bn-mid: #1f5ad6; --bn-low: #1c53c5; --bn-edge: #163f96; --bn-border: #0e2860;
  --silver: #c0c0c0;
  --silver-2: #d4d0c8;
  --light: #ffffff; --shade: #808080; --dark: #404040; --black: #000000;
  --paper: #ffffff;
  --row: #eef0ff;
  --text: #000000; --muted: #333333; --faint: #444444;   /* #444 keeps 4.5:1 on every theme's silver */
  --link: #0000ee; --visited: #551a8b; --hover: #ee0000;
  --accent: #000080; --accent-rgb: 0, 0, 128;
  --accent-2: #1084d0;          /* the light end of the title-bar gradient */
  --new: #ff0000; --ok: #008000;
  --ui: Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --led: "Silkscreen", "Courier New", monospace;
  --mono: "Courier New", Courier, monospace;
  --site-w: 1080px; --side-w: 220px;
  /* Bevels: raised (buttons, windows) and sunken (fields, wells) */
  --raised: inset -1px -1px 0 var(--black), inset 1px 1px 0 var(--light), inset -2px -2px 0 var(--shade), inset 2px 2px 0 var(--silver-2);
  --sunken: inset 1px 1px 0 var(--shade), inset -1px -1px 0 var(--light), inset 2px 2px 0 var(--dark), inset -2px -2px 0 var(--silver-2);
  --pressed: inset 1px 1px 0 var(--black), inset -1px -1px 0 var(--light), inset 2px 2px 0 var(--shade);
}

/* 2. Base: the tiled desktop */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { min-height: 100vh; overflow-x: hidden; padding: 18px 0 30px; color: var(--text); font: 13px/1.5 var(--ui);
  background-color: var(--desk); }
/* The desktop scene (Admin → Settings → Theme): two stacked layers, so a new scene can crossfade in */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--desk); }
.scene i { position: absolute; inset: 0; background: center bottom / 1920px 1080px no-repeat; image-rendering: pixelated; }
/* The art is 640x360: shown at a whole 3x (pixels match the banner's), stepping up to 4x, 5x, 6x on bigger screens */
@media (min-width: 1921px), (min-height: 1081px) { .scene i { background-size: 2560px 1440px; } }
@media (min-width: 2561px), (min-height: 1441px) { .scene i { background-size: 3200px 1800px; } }
@media (min-width: 3201px), (min-height: 1801px) { .scene i { background-size: 3840px 2160px; } }
@media (min-width: 3841px), (min-height: 2161px) { .scene i { background-size: cover; } }
.scene i + i { opacity: 0; transition: opacity 2.4s ease; }
.scene i.on { opacity: 1; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: var(--hover); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px dotted currentColor; outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Anything you can click shows the hand; disabled controls say so */
button, summary, select, label[for], input[type=checkbox], input[type=radio], input[type=range], input[type=color], [role=button], [role=slider] { cursor: pointer; }
:disabled, [aria-disabled="true"] { cursor: not-allowed; }
[hidden] { display: none !important; }   /* the hidden attribute wins over any display rule */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 3000; padding: 6px 10px; background: var(--silver); color: #000; box-shadow: var(--raised); transition: top 0.2s; }
.skip-link:focus { top: 1rem; }
hr { height: 2px; margin: 10px 0; border: 0; border-top: 1px solid var(--shade); border-bottom: 1px solid var(--light); }

/* 3. Type */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: bold; line-height: 1.15; color: var(--black); }
h1 { font-size: 30px; }
.h3, h3 { font-size: 17px; }
.h4 { margin-bottom: 8px; font-size: 15px; }
.mono { font-family: var(--mono); font-size: 1em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 11px; }
code { padding: 0 3px; background: #ffffe0; border: 1px solid #cccc99; font: 12px var(--mono); word-break: break-all; }
.link { color: var(--link); }
.lede { max-width: 70ch; color: var(--muted); }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 10px; }
.rich ul { padding-left: 22px; list-style: square; }
.eyebrow { color: var(--muted); font: 12px var(--ui); }
.eyebrow .accession { font-size: 12px; color: inherit; }
.accession { color: var(--faint); font: 12px var(--mono); }
/* Blinking NEW! for entries added in the last week */
.new { display: inline-block; margin-left: 4px; padding: 0 3px; background: var(--new); color: #ff0; font: bold 9px var(--ui); vertical-align: 1px; animation: blink 1.2s steps(1) 4; }   /* blinks for about five seconds, then stays lit */
@keyframes blink { 50% { visibility: hidden; } }

/* 4. The page: a silver frame on the desktop */
.banner, .shell, .foot { width: min(var(--site-w), 100% - 16px); margin-left: auto; margin-right: auto; }
.banner { position: relative; padding: 3px; background: var(--silver); box-shadow: var(--raised); }
.banner-in { display: flex; align-items: center; gap: 16px; padding: 12px 14px;
  /* Glossy bar in hard pixel steps; its colours come from the theme */
  background: linear-gradient(180deg, var(--bn-hi) 0 3px, var(--bn-top) 3px 6px, var(--bn-mid) 6px 50%, var(--bn-low) 50% calc(100% - 6px), var(--bn-edge) calc(100% - 6px) calc(100% - 3px), var(--bn-border) calc(100% - 3px));
  border: 1px solid var(--bn-border); transition: background 1.2s; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff; text-decoration: none; }
.brand:visited, .brand:hover { color: #fff; }
.brand-mark { width: 48px; height: 48px; image-rendering: pixelated; transition: transform 0.2s steps(2);
  transform: translateY(4px); }          /* the gem's pixels sit in the top of its box: nudge it level with the text */
.brand:hover .brand-mark { transform: translateY(2px); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font: 700 26px/1 var(--pixel); letter-spacing: 1px; color: #fff;
  /* hard pixel outline and a chunky drop shadow, no blur */
  text-shadow: 1px 0 0 var(--bn-border), -1px 0 0 var(--bn-border), 0 1px 0 var(--bn-border), 0 -1px 0 var(--bn-border), 3px 3px 0 var(--bn-border); }
.brand-name b { font-weight: inherit; color: #ffc93c;
  text-shadow: 1px 0 0 #5a2c00, -1px 0 0 #5a2c00, 0 1px 0 #5a2c00, 0 -1px 0 #5a2c00, 3px 3px 0 var(--bn-border); }
.brand-tag { max-width: 62ch; font: 11px/1.3 var(--ui); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 60, 0.5); }
.top-search { position: relative; display: flex; align-items: center; gap: 4px; width: min(380px, 100%); margin-left: auto; }
.top-search svg { display: none; }
.top-search input { width: 100%; padding: 4px 6px; border: 0; background: #fff; color: #000; box-shadow: var(--sunken); font-size: 13px; }
.top-search kbd { display: none; }
.top-search .btn { flex-shrink: 0; }
/* Menu bar: a row of push-buttons */
.topbar { margin-top: 3px; padding: 3px; background: var(--silver); }
.topbar ul { display: flex; flex-wrap: wrap; gap: 3px; list-style: none; }
.topbar:has(.topbar-who) { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.topbar-who { padding: 0 6px; }
.topbar a { display: block; padding: 3px 12px; background: var(--silver); color: #000; text-decoration: none; box-shadow: var(--raised); font-size: 12px; }
.topbar a:visited { color: #000; }
.topbar a:hover { color: #000; background: var(--silver-2); }
.topbar a:active, .topbar a.active { box-shadow: var(--pressed); background: #b0b0b0 repeating-conic-gradient(#c0c0c0 0 25%, #b8b8b8 0 50%) 0 0 / 2px 2px; font-weight: bold; }
.menu-btn { display: none; }
/* News ticker */
.ticker { display: flex; align-items: stretch; margin-top: 3px; background: #000; border: 1px solid var(--black); box-shadow: var(--sunken); overflow: hidden; font-size: 12px; }
.ticker-label { flex-shrink: 0; padding: 3px 8px; background: var(--new); color: #ff0; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.ticker-track { flex: 1; overflow: hidden; padding: 3px 0; mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-run { display: inline-flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-run, .ticker:focus-within .ticker-run, .ticker.stopped .ticker-run { animation-play-state: paused; }
.ticker-pause { flex-shrink: 0; padding: 0 8px; border: 0; background: var(--silver); color: #000; box-shadow: var(--raised); font: bold 11px var(--ui); }
.ticker-pause:active, .ticker-pause[aria-pressed="true"] { box-shadow: var(--pressed); }
.ticker-set { padding-right: 24px; color: #0f0; font-family: var(--mono); }
.ticker a { color: #ffff66; }
.ticker a:visited { color: #ffcc66; }
.ticker a:hover { color: #fff; }
.ticker .faint { color: #66cc66; }
.ticker-sep { color: #ff66cc; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 5. Layout: navigation on the left, content on the right */
/* (The sidebar comes after the content in the HTML, so each page's heading comes first.) */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-areas: "side content"; gap: 8px; align-items: start; margin-top: 8px; padding: 8px;
  background: var(--silver); box-shadow: var(--raised); }
.content { grid-area: content; min-width: 0; }
.side { grid-area: side; display: flex; flex-direction: column; gap: 8px; }
.wrap { width: min(var(--site-w), 100% - 16px); margin: 0 auto; padding-bottom: 6px; }
.wrap.narrow { width: min(760px, 100% - 16px); }
.content > .wrap, .content > .wrap.narrow { width: 100%; margin: 0; }

/* 6. Windows */
/* Every box is a little window: silver frame, blue title bar, white body */
.panel, .card, .table-wrap, .head, .toolbar, .stats, .welcome, .files { position: relative; padding: 3px; border: 0; border-radius: 0; background: var(--silver); box-shadow: var(--raised); }
.panel { overflow: visible; }
.panel-h, .label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 20px; padding: 2px 58px 2px 6px; margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font: bold 12px/16px var(--ui); letter-spacing: 0; text-transform: none; }
/* The three little window buttons (drawn with CSS) */
.panel-h::after, .label::after, .head::after, .welcome::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 48px; height: 14px; transform: translateY(-50%);
  background:
    linear-gradient(#000, #000) 4px 9px / 6px 2px no-repeat,
    linear-gradient(#000, #000) 20px 3px / 8px 1px no-repeat, linear-gradient(#000, #000) 20px 3px / 1px 7px no-repeat, linear-gradient(#000, #000) 27px 3px / 1px 7px no-repeat, linear-gradient(#000, #000) 20px 9px / 8px 1px no-repeat, linear-gradient(#000, #000) 20px 4px / 8px 1px no-repeat,
    linear-gradient(45deg, transparent 44%, #000 44% 56%, transparent 56%) 36px 3px / 8px 8px no-repeat, linear-gradient(-45deg, transparent 44%, #000 44% 56%, transparent 56%) 36px 3px / 8px 8px no-repeat,
    linear-gradient(var(--silver), var(--silver)) 0 0 / 15px 14px no-repeat, linear-gradient(var(--silver), var(--silver)) 16px 0 / 15px 14px no-repeat, linear-gradient(var(--silver), var(--silver)) 33px 0 / 15px 14px no-repeat;
  filter: drop-shadow(1px 1px 0 #000); pointer-events: none; }
.label { margin-top: 8px; box-shadow: var(--raised); padding-left: 9px; border: 3px solid var(--silver); border-bottom: 0; }
.label + .table-wrap, .label + .card, .label + .files, .label + .empty { margin-top: 0; }
.label-link { margin-left: auto; color: #fff !important; font-weight: normal; font-size: 11px; position: relative; z-index: 1; }
.label-link:hover { color: #ff0 !important; }
.panel-h::before, .label::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: radial-gradient(circle at 35% 35%, #fff, #ffd23f 40%, #b07800); border: 1px solid #000; }
/* Window bodies */
.card { padding: 10px 12px; background: var(--paper); box-shadow: var(--raised), inset 0 0 0 3px var(--silver), inset 0 0 0 4px var(--shade); }
.empty { padding: 18px; text-align: center; color: var(--muted); }

/* Page title window: a blank title bar on top, white body */
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0 0 8px; padding: 36px 18px 18px;
  /* a white page inside the window, with a sunken edge */
  background: linear-gradient(#fff, #fff) 6px 27px / calc(100% - 11px) calc(100% - 32px) no-repeat, linear-gradient(var(--shade), var(--shade)) 5px 26px / calc(100% - 11px) calc(100% - 32px) no-repeat, var(--silver); }
.head::before, .welcome::before { content: attr(data-win); position: absolute; top: 3px; left: 3px; right: 3px; height: 20px; padding: 0 60px 0 25px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #fff; font: bold 12px/20px var(--ui);
  background: radial-gradient(circle at 35% 35%, #fff, #ffd23f 40%, #b07800) 7px 4px / 12px 12px no-repeat, linear-gradient(90deg, var(--accent), var(--accent-2)); }
.head::after, .welcome::after { top: 13px; }
.head.center { text-align: left; }
.head > * { position: relative; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* 7. Sidebar */
.side-list { list-style: none; padding: 6px 8px; margin: 3px 0 0; background: var(--paper); box-shadow: var(--sunken); }
.side-list li { padding: 1px 0; }
.side-list a { display: flex; justify-content: flex-start; gap: 6px; padding: 1px 2px; font-size: 12px; text-decoration: none; }
.side-list a span:first-child, .side-list a:not(:has(span)) { text-decoration: underline; }
.side-list a:hover span:first-child, .side-list a:not(:has(span)):hover { text-decoration-thickness: 2px; }
.side-list .n { margin-left: auto; }
.side-list a::before { content: "»"; margin-right: 4px; color: var(--faint); text-decoration: none; display: inline-block; }
.side-list a span:first-child { flex: 1; }
.side-list a.on { background: var(--accent); color: #fff; text-decoration: none; }
.side-list a.on::before, .side-list a.on .n { color: #fff; }
.side-list .n { color: var(--faint); font-size: 11px; text-decoration: none; display: inline-block; }
.side-list .n::before { content: "("; } .side-list .n::after { content: ")"; }
.side-more { display: block; margin-top: 3px; padding: 2px 6px; font-size: 11px; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 3px; }
.side-stats > div { padding: 3px 6px; background: #000; box-shadow: var(--sunken); }
.side-stats dt { color: #66cc66; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; }
.side-stats dd { color: #0f0; font: 20px/1 var(--led); }
.side-mobile-only { display: none; }

/* 8. Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 14px; min-height: 24px; border: 0; border-radius: 0; background: var(--silver);
  color: #000 !important; text-decoration: none; box-shadow: var(--raised); cursor: pointer; white-space: nowrap; font: 12px var(--ui); }
.btn:hover { background: var(--silver-2); }
.btn:active { box-shadow: var(--pressed); padding: 5px 13px 3px 15px; }
.btn:focus-visible { outline: 2px dotted #000; outline-offset: -5px; }
.btn-primary { font-weight: bold; }
.btn-small { padding: 2px 8px; min-height: 20px; font-size: 11px; }
.btn-small:active { padding: 3px 7px 1px 9px; }
.btn.btn-small:disabled, .btn.btn-small[aria-disabled="true"] { padding: 2px 8px; }   /* a disabled small button keeps its size (so the buttons beside it don't shift when it turns on) */   /* pressed look without changing the button's size (a size change mid-click can move the button out from under the pointer) */
.btn-danger { color: #a00000 !important; }
.btn.full { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { color: var(--shade) !important; text-shadow: 1px 1px 0 #fff; cursor: not-allowed; box-shadow: var(--raised); background: var(--silver); padding: 4px 14px; }
.chip { display: inline-block; padding: 0 4px; border: 1px solid #999; background: #ffffcc; color: #000; font: 11px var(--ui); text-decoration: none; white-space: nowrap; }
a.chip-link:hover { background: #ffff66; color: #000; }
.badge { display: inline-block; margin-left: 3px; padding: 0 3px; background: #ddd; border: 1px solid #999; color: #333; font: 10px var(--ui); vertical-align: 1px; }
.col-short { display: inline-block; min-width: 44px; padding: 0 3px; background: #000; color: #0f0; text-align: center; font: 15px/1.2 var(--led); }

/* 9. Home */
.welcome { display: grid; gap: 10px; padding: 28px 14px 14px; margin-bottom: 0; background: var(--silver); }
.welcome > * { position: relative; }
.welcome-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; background: #fff; box-shadow: var(--sunken); }
.hero-h { max-width: 26ch; font: bold 32px/1.1 var(--serif); }
.hero-h em { color: #cc0000; font-style: italic; }
.big-search { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--shade); background: var(--silver-2); }
.big-search > svg { display: none; }
.big-search input { flex: 1; min-width: 160px; padding: 4px 6px; border: 0; background: #fff; box-shadow: var(--sunken); font-size: 13px; }

/* 10. Breadcrumbs, A–Z, filters, pager */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; font-size: 11px; }
.crumbs li + li::before { content: ">"; margin-right: 4px; color: var(--faint); }
.crumbs [aria-current] { color: #000; font-weight: bold; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0 0 8px; padding: 6px; }
.letters { display: flex; flex-wrap: wrap; gap: 2px; }
.letters a, .letters span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 3px; background: var(--silver); box-shadow: var(--raised); color: #000; font: bold 11px var(--ui); text-decoration: none; }
.letters a:visited { color: #000; }
.letters a:hover { background: var(--silver-2); color: #000; }
.letters a.on { box-shadow: var(--pressed); background: #fff; color: var(--accent); }
.letters span { color: var(--shade); text-shadow: 1px 1px 0 #fff; font-weight: normal; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.select { position: relative; display: inline-block; }
.select::after { content: ""; position: absolute; right: 2px; top: 2px; bottom: 2px; width: 16px; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, #000 50%) 4px 8px / 4px 4px no-repeat, linear-gradient(225deg, transparent 50%, #000 50%) 8px 8px / 4px 4px no-repeat, var(--silver); box-shadow: var(--raised); }
.select select { appearance: none; padding: 3px 24px 3px 5px; border: 0; background: #fff; color: #000; box-shadow: var(--sunken); font: 12px var(--ui); cursor: pointer; }
.select option { background: #fff; color: #000; }
.result-count { display: inline-block; margin: 0 0 6px; padding: 1px 8px; background: var(--silver); box-shadow: var(--sunken); color: #000 !important; font-size: 11px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.pager a { justify-self: start; } .pager a[rel=next] { justify-self: end; }

/* 11. Tables: grid lines, grey header, alternating rows */
.table-wrap { overflow: hidden; }
.entries { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; box-shadow: var(--sunken); }
.entries th { padding: 3px 6px; background: var(--silver); color: #000; box-shadow: var(--raised); text-align: left; font: bold 11px var(--ui); }
.entries td { padding: 3px 6px; border: 1px solid #dcdcdc; color: #000; vertical-align: middle; }
.entries tbody tr:nth-child(even) { background: var(--row); }
.entries tbody tr:hover { background: #ffffcc; }
.entries td.t { font-weight: bold; }
.entries .num { text-align: right; white-space: nowrap; }
.col-table td.t { display: flex; align-items: center; gap: 6px; }

/* 12. Entry page */
.entry-title { max-width: 30ch; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; align-items: start; }
.shot { display: block; width: 100%; padding: 3px; border: 0; background: var(--silver); box-shadow: var(--raised); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; background: #000; box-shadow: var(--sunken); }
.shot-main { aspect-ratio: 4 / 3; }
.shot-main img { object-fit: contain; }
.shot-empty { display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 4 / 3; cursor: default; background: #000; color: #0f0; box-shadow: var(--sunken); font-family: var(--led); }
.shot-empty svg { width: 64px; height: 64px; color: #0f0; }
.shot-empty span { font-size: 22px; letter-spacing: 2px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 4px; margin-top: 4px; }
.shots .shot { aspect-ratio: 4 / 3; }
/* Details: a two-column property sheet */
.facts { padding: 3px; background: var(--silver); box-shadow: var(--raised); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; background: #fff; border-bottom: 1px solid #dcdcdc; }
.facts > div:nth-child(even) { background: var(--row); }
.facts dt { padding: 3px 6px; background: var(--silver-2); border-right: 1px solid #b0b0b0; color: #000; font-weight: bold; font-size: 11px; }
.facts dd { padding: 3px 6px; color: #000; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 8px; padding: 4px 6px; list-style: none; background: var(--silver); box-shadow: var(--raised); }
.tags::before { content: "Tags:"; margin-right: 4px; font: bold 11px var(--ui); }
.prose { padding: 10px 12px; line-height: 1.6; }
.prose > * + * { margin-top: 8px; }
.prose ul { padding-left: 22px; list-style: square; }
.files { display: flex; flex-direction: column; gap: 3px; }
.file { padding: 8px 10px; background: #fff; box-shadow: var(--sunken); }
.file-main { display: flex; align-items: center; gap: 10px; }
.file-main::before { content: ""; flex-shrink: 0; width: 16px; height: 20px; image-rendering: pixelated;
  background: linear-gradient(135deg, transparent 4px, #000 4px 5px, transparent 5px) 0 0 / 6px 6px no-repeat, linear-gradient(#000, #000) 6px 0 / 10px 1px no-repeat, linear-gradient(#000, #000) 15px 0 / 1px 20px no-repeat, linear-gradient(#000, #000) 0 19px / 16px 1px no-repeat, linear-gradient(#000, #000) 0 5px / 1px 15px no-repeat, linear-gradient(#fff, #fff) 1px 1px / 14px 18px no-repeat, linear-gradient(#000080, #000080) 3px 9px / 10px 2px no-repeat, linear-gradient(#000080, #000080) 3px 13px / 8px 2px no-repeat; }
.file-name { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.file-size { white-space: nowrap; }
.hashes { margin-top: 6px; }
.hashes summary { color: var(--link); cursor: pointer; font-size: 11px; text-decoration: underline; }
.hashes dl { display: grid; gap: 2px; margin-top: 6px; }
.hashes dl > div { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 6px; }
.hashes dt { font-weight: bold; font-size: 11px; }
.hashes dd { display: flex; align-items: center; gap: 4px; min-width: 0; }
.hashes code { flex: 1; min-width: 0; }
.copy { flex-shrink: 0; padding: 1px 6px; border: 0; background: var(--silver); box-shadow: var(--raised); color: #000; cursor: pointer; font: 10px var(--ui); }
.copy:active { box-shadow: var(--pressed); }
.copy.done { color: var(--ok); font-weight: bold; }
/* Previous / next, like a webring bar */
.shelf { display: flex; justify-content: space-between; gap: 6px; margin-top: 10px; padding: 6px 10px; background: var(--silver-2); box-shadow: var(--sunken); font-size: 12px; }
.shelf-link { display: flex; flex-direction: column; padding: 0; background: none; box-shadow: none; }
.shelf-link .mono { color: var(--faint); font: 10px var(--ui); text-transform: uppercase; }
.shelf-next { text-align: right; margin-left: auto; }

/* 13. Image viewer */
.viewer { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 50px 70px; background: rgba(0, 0, 32, 0.92); opacity: 0; transition: opacity 0.2s; }
.viewer.open { opacity: 1; }
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; padding: 3px; background: var(--silver); box-shadow: var(--raised); }
.viewer-close, .viewer-nav { position: absolute; display: grid; place-items: center; width: 34px; height: 30px; border: 0; background: var(--silver); box-shadow: var(--raised); color: #000; font: bold 20px/1 var(--ui); cursor: pointer; }
.viewer-close:active, .viewer-nav:active { box-shadow: var(--pressed); }
.viewer-close { top: 14px; right: 14px; }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #0f0; font: 20px var(--led); }
body.viewer-open { overflow: hidden; }

/* 14. Footer: counter, badges */
.foot { margin-top: 8px; padding: 3px; background: var(--silver); box-shadow: var(--raised); }
.foot-box { padding: 12px; text-align: center; background: var(--silver-2); box-shadow: var(--sunken); font-size: 12px; }
.counter { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.counter-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.counter-digits { display: inline-flex; gap: 2px; padding: 3px; background: #000; box-shadow: var(--sunken); }
.counter-digits span { display: inline-block; width: 18px; padding: 1px 0; background: linear-gradient(#222 0 49%, #000 50%); color: #ff3b3b; font: 24px/1 var(--led); text-shadow: 0 0 6px #f00; }
.foot-updated { margin-top: 6px; color: var(--muted); }
.foot-links { margin: 4px 0; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 760px; margin: 10px auto; list-style: none; }
.badges img { display: block; width: 88px; height: 31px; image-rendering: pixelated; }
.badges a { display: block; }
.badges a:hover img { filter: brightness(1.12); }
.badges a:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 12px; }
.btn-grid img { image-rendering: pixelated; flex-shrink: 0; }
.link-us { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link-us img { image-rendering: pixelated; }
.link-us textarea { flex: 1; min-width: 240px; height: 54px; padding: 4px 6px; border: 0; background: #fff; box-shadow: var(--sunken); font: 11px var(--mono); resize: none; }
.foot-copy { color: var(--muted); font-size: 11px; }

/* 15. Forms & admin */
.form { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.form + .form { margin-top: 8px; }
.narrow-form { width: 100%; max-width: 440px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field > span { font-size: 12px; font-weight: bold; }
.field small { color: var(--faint); font-size: 10px; font-weight: normal; }
.field input, .field textarea, .af-label input, .field .select select { width: 100%; padding: 4px 6px; border: 0; background: #fff; color: #000; box-shadow: var(--sunken); font: 12px var(--ui); }
.field textarea { min-height: 70px; resize: vertical; font-family: var(--mono); }
.field input[type=color] { height: 28px; padding: 2px; cursor: pointer; }
.field .select { display: block; }
.check { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.check input { width: 13px; height: 13px; accent-color: var(--accent); }
.check-pad { padding-top: 18px; }
.msg { margin-bottom: 8px; padding: 6px 10px; border: 1px solid; font-size: 12px; }
.msg-ok { border-color: #008000; background: #e6ffe6; color: #004000; }
.msg-error { border-color: #c00000; background: #ffe6e6; color: #800000; animation: nudge 0.4s ease; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.flash { margin-top: 8px; transition: opacity 0.6s; }
.flash.gone { opacity: 0; pointer-events: none; }
.danger-zone { margin-top: 12px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0 0 8px; }
.stats > div { padding: 6px; background: #000; box-shadow: var(--sunken); text-align: center; }
.stats dt { color: #66cc66; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.stats dd { color: #0f0; font: 26px/1 var(--led); }
.admin-files { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; list-style: none; }
.admin-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 8px; background: #fff; box-shadow: var(--sunken); }
.admin-files img { width: 60px; height: 45px; object-fit: cover; }
.af-name { display: flex; flex: 1; flex-direction: column; min-width: 200px; overflow-wrap: anywhere; }
.af-label { display: flex; gap: 4px; } .af-label input { width: 200px; }
.af-tools { display: flex; gap: 3px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px; border: 2px dashed var(--shade); background: #fff; text-align: center; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: #eef0ff; }
.drop:focus-within { outline: 1px dotted #000; }
.up-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; list-style: none; }
.up { padding: 5px 8px; background: #fff; box-shadow: var(--sunken); }
.up-top { display: flex; align-items: center; gap: 8px; }
.up-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
/* Progress bar made of blocks, like an old installer */
.bar { height: 16px; margin-top: 4px; padding: 2px; background: #fff; box-shadow: var(--sunken); }
.bar span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px); transition: width 0.3s steps(8); }
.up.is-done .bar span { background: repeating-linear-gradient(90deg, var(--ok) 0 8px, transparent 8px 10px); }
.up.is-error .bar span { background: repeating-linear-gradient(90deg, #c00000 0 8px, transparent 8px 10px); }
.incoming { display: grid; gap: 2px; max-height: 300px; overflow: auto; padding: 6px; background: #fff; box-shadow: var(--sunken); list-style: none; }
body.admin .wrap { margin-top: 8px; padding: 8px; background: var(--silver); box-shadow: var(--raised); }
body.admin .banner .btn { margin-left: auto; }

/* 16. Motion */
/* Old pages didn't glide, so things just appear; images fade in as they load */
@keyframes fade-in { from { opacity: 0; } }
img.img-in { animation: fade-in 0.4s steps(4) both; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.15s; }
/* soft page changes (music on): a quiet hint while the next page arrives */
html.ra-busy { cursor: progress; }
html.ra-busy .content { opacity: 0.6; transition: opacity 0.2s 0.2s; }
#main:focus { outline: none; }
::view-transition-old(ra-side) { display: none; }
::view-transition-new(ra-side) { animation: none; }

/* 16b. Community: member bar, message boards, FFA links */
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--hover); }
.userbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; padding: 4px 8px; background: #ffffe1; border: 1px solid #000; font-size: 11px; }
.userbar span:first-child { margin-right: auto; }
.userbar form { display: inline; }
.mod-on { padding: 0 4px; background: #c00000; color: #fff; font-weight: bold; }
.crumbs + .head, .userbar + .crumbs, .flash + .crumbs { margin-top: 0; }
.wrap > .crumbs { margin: 0 0 6px; }
.side-sub { margin: 6px 0 0; padding: 2px 6px; background: var(--silver-2); box-shadow: var(--raised); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #000; }
.side-threads li { display: flex; flex-direction: column; padding: 2px 0; }
.side-threads li + li { border-top: 1px dotted #bbb; }
.side-threads a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-threads small { padding-left: 18px; font-size: 10px; }
/* Board and thread lists */
.boards td.t, .threads td.t { font-weight: normal; }
.boards .bname > a, .threads td.t > a { font-weight: bold; }
.boards td.t { display: grid; grid-template-columns: 22px 1fr; align-items: center; column-gap: 6px; padding: 6px; }
.bdesc { grid-column: 2; color: var(--muted); font-size: 11px; }
.bicon { grid-row: span 2; width: 18px; height: 14px; background: linear-gradient(#fff, #ccc); border: 1px solid #000; box-shadow: 2px 2px 0 var(--shade); position: relative; }
.bicon::after { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 1px; background: #888; box-shadow: 0 3px 0 #888, 0 6px 0 #888; }
.bicon.fresh { background: linear-gradient(#fffbcc, #ffd23f); }
.lastpost { font-size: 11px; line-height: 1.35; white-space: nowrap; }
.threads tr.sticky { background: #fffbe0 !important; }
.tag { display: inline-block; padding: 0 3px; border: 1px solid #000; font: bold 9px var(--ui); text-transform: uppercase; vertical-align: 2px; }
h1 .tag { font-size: 11px; vertical-align: 5px; }
.tag-sticky { background: #ffd23f; color: #000; }
.tag-locked { background: #606060; color: #fff; }
.tpages { font-size: 10px; font-weight: normal; white-space: nowrap; }
.modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; background: #ffe6e6; font-size: 12px; }
.modbar form, .post-tools form, .row-tools form, .ffa-own form { display: inline-flex; align-items: center; gap: 4px; }
/* Posts: author column on the left, message on the right */
.posts { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--silver); padding: 3px; box-shadow: var(--raised); scroll-margin-top: 10px; }
.post:target { outline: 2px dashed var(--accent); outline-offset: 2px; }
.post-who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; background: linear-gradient(var(--accent), var(--accent-2)); color: #fff; font-size: 11px; overflow-wrap: anywhere; }
.post-who .who { font-size: 13px; }
.post-who .faint { color: #fff; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; margin: 4px 0; background: hsl(var(--h) 55% 45%); color: #fff; border: 2px solid #fff; box-shadow: 2px 2px 0 #000; font: 26px/1 var(--pixel); }
.avatar-pic { display: contents; }
.avatar-img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
img.avatar { width: 64px; height: 64px; background: #fff; padding: 0; }
.avatar-big { width: 96px; height: 96px; margin: 0 auto 8px; border: 2px solid #fff; box-shadow: 3px 3px 0 #000; background: #fff; }
.avatar-tiny { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; border: 1px solid #000; background: #fff; }

/* Delaware's dressing room: a wardrobe mirror on the left, drawers of things to wear on the right */
.av-room { display: grid; grid-template-columns: 234px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; background: #d4cfc4; border: 2px solid; border-color: #fff #6a6458 #6a6458 #fff; box-shadow: 1px 1px 0 #000; color: #1a1028; }
.av-stage { position: sticky; top: 10px; display: grid; grid-template-columns: 234px; width: 234px; gap: 10px; justify-items: center; }
.av-mirror { padding: 10px; background: linear-gradient(135deg, #b07a4a, #7a4a26 55%, #5a3418); border: 2px solid #2a1608; box-shadow: inset 2px 2px 0 #d8a070, inset -2px -2px 0 #3a200c, 3px 3px 0 rgba(0, 0, 0, 0.45); }
.av-preview { display: block; width: 192px; height: 192px; background: #fff; border: 2px solid #2a1608; image-rendering: pixelated; image-rendering: crisp-edges; }
canvas.av-preview.trying { outline: 2px dashed #ffd23f; outline-offset: -4px; }
.av-nametag { margin: -4px 0 0; }
.av-nametag span { display: inline-block; padding: 3px 12px; background: #fff8dc; border: 1px solid #8a7a50; box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); font: 12px/1.2 var(--pixel); transform: rotate(-1.5deg); }
/* fixed sizes in the mirror column, so the buttons never move however much Delaware is wearing */
.av-wearing { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 4px; box-sizing: border-box; width: 232px; height: 92px; margin: 0; padding: 4px; list-style: none; overflow-y: auto; background: rgba(255, 255, 255, 0.35); border: 1px solid #b8b0a0; }
.av-wearing button { padding: 2px 7px; background: #fff; border: 1px solid #6a6458; border-radius: 9px; font-size: 11px; line-height: 1.3; color: inherit; cursor: pointer; }
.av-wearing button:hover { background: #ffe8e8; border-color: #a01420; }
.av-wearing .faint { font-size: 11px; }
.av-tools { display: flex; flex-wrap: nowrap; justify-content: space-between; box-sizing: border-box; width: 232px; }
.av-tools .btn { flex: none; white-space: nowrap; }
.av-save { display: grid; grid-template-columns: 100%; gap: 6px; justify-items: center; box-sizing: border-box; width: 234px; padding-top: 8px; border-top: 1px dashed #8a8270; }
.av-save .btn-primary { width: 100%; }
.av-status { box-sizing: border-box; width: 100%; height: 2.6em; margin: 0; overflow: hidden; text-align: center; display: flex; align-items: center; justify-content: center; }
.av-room.dirty .av-status { color: #a01420; font-weight: bold; }
.av-room.dirty .av-save .btn-primary { animation: av-nudge 1.6s steps(2) infinite; }
@keyframes av-nudge { 50% { box-shadow: 0 0 0 2px #ffd23f; } }
@media (prefers-reduced-motion: reduce) { .av-room.dirty .av-save .btn-primary { animation: none; box-shadow: 0 0 0 2px #ffd23f; } }

.av-panels { min-width: 0; }
.av-tabs { display: flex; flex-wrap: wrap; gap: 2px 0; padding-left: 4px; margin-bottom: -2px; position: relative; z-index: 1; }
.av-tabs [role=tab] { padding: 5px 5px 4px; margin-right: -1px; background: #c8c2b4; border: 2px solid; border-color: #fff #6a6458 transparent #fff; border-bottom: 0; font: 10px/1.2 var(--pixel); letter-spacing: 0; color: #1a1028; cursor: pointer; }
.av-tabs [role=tab] small { font: inherit; color: #6a4a00; }
.av-tabs [role=tab][aria-selected=true] { position: relative; padding-bottom: 6px; margin-top: -2px; background: #f4f1ea; }
.av-tabs [role=tab]:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.av-panel { padding: 12px; background: #f4f1ea; border: 2px solid; border-color: #fff #6a6458 #6a6458 #fff; }
.av-panel + .av-panel { margin-top: 12px; }
.av-js .av-panel + .av-panel { margin-top: 0; }
.av-js .av-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.av-h { margin: 0 0 8px; font: 12px/1 var(--pixel); text-transform: uppercase; letter-spacing: 0.05em; }
.av-note { margin: 0 0 10px; }
.av-span { grid-column: 1 / -1; margin: 6px 0 0; }
.av-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed #b8b0a0; }
.av-preset { display: inline-flex; align-items: center; gap: 1px; padding: 3px 6px; background: #fff; border: 2px solid; border-color: #fff #808080 #808080 #fff; font-size: 11px; color: inherit; cursor: pointer; }
.av-preset i { width: 9px; height: 14px; border: 1px solid #000; }
.av-preset span { margin-left: 4px; }
.av-preset:active { border-color: #808080 #fff #fff #808080; }
.av-colour { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dotted #c8c0b0; }
.av-colour > label { font-weight: bold; font-size: 13px; }
.av-swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.av-sw { width: 22px; height: 22px; padding: 0; background: var(--c); border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55), inset -1px -1px 0 rgba(0, 0, 0, 0.3); cursor: pointer; }
.av-sw:hover { transform: translateY(-1px); }
.av-sw[aria-pressed="true"] { outline: 2px solid #000; outline-offset: 1px; box-shadow: inset 0 0 0 2px #fff; }
.av-custom input[type=color] { width: 40px; height: 28px; padding: 1px; border: 2px inset #c0c0c0; background: #fff; cursor: pointer; }
.av-cheeks { margin-top: 10px; }
.av-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.av-group { grid-column: 1 / -1; margin: 4px 0 0; font: 10px/1 var(--pixel); text-transform: uppercase; letter-spacing: 0.05em; color: #6a6458; }
.av-group:first-child { margin-top: 0; }
.av-slot-head { margin-top: 10px; padding: 3px 6px; background: #e4ddd0; border-left: 3px solid #8a7a50; color: #1a1028; font-size: 11px; }
.av-slot-head:first-child { margin-top: 0; }
.av-tile { position: relative; display: grid; justify-items: center; gap: 3px; padding: 5px 3px 4px; background: #fff; border: 2px solid; border-color: #fff #808080 #808080 #fff; font-size: 11px; line-height: 1.15; text-align: center; color: #1a1028; cursor: pointer; }
.av-tile .av-pic { display: block; width: 64px; height: 64px; image-rendering: pixelated; image-rendering: crisp-edges; }
.av-tile input { position: absolute; opacity: 0; pointer-events: none; }
.av-tile:hover { background: #fffbe0; }
.av-tile:has(input:checked) { border-color: #808080 #fff #fff #808080; background: #fff1a8; box-shadow: inset 0 0 0 2px #1a1028; }
.av-tile:has(input:checked)::after { content: ''; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; background: #36c45a; border: 1px solid #1a1028; }
.av-tile:has(input:focus-visible) { outline: 2px dashed #1a1028; outline-offset: 2px; }
.av-tile.locked { cursor: not-allowed; background: #e4e0d6; color: #6a6458; }
.av-lock { background: #3a3448 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h4v1H3zM2 1h1v4H2zM7 1h1v4H7zM0 5h10v7H0z' fill='%231a1028'/%3E%3Cpath d='M1 6h8v5H1z' fill='%23c89a10'/%3E%3Cpath d='M1 6h8v1H1z' fill='%23ffd23f'/%3E%3Cpath d='M4 7h2v3H4z' fill='%231a1028'/%3E%3C/svg%3E") center / 30px 36px no-repeat; image-rendering: pixelated; }
.av-season-tiles { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.av-season { display: grid; gap: 4px; align-content: start; padding: 6px; background: #ebe6da; border: 1px solid #b8b0a0; }
.av-season .av-tile { width: 100%; box-sizing: border-box; }
.av-season.got { background: #fff8d8; border-color: #c89a10; }
.av-season.on { border: 2px solid #e02a34; }
.av-when { margin: 0; text-align: center; line-height: 1.3; }
.av-live { color: #a01420; }
.av-got { color: #1a7a3a; }
.av-admin { display: block; margin-top: 4px; color: #6a4a00; font-weight: bold; }
.av-look { width: 100%; }
@media (max-width: 760px) {
  .av-room { grid-template-columns: 1fr; padding: 10px; }
  .av-stage { position: static; justify-self: center; }
  .av-preview { width: 192px; height: 192px; }
  .av-colour { grid-template-columns: 1fr auto; }
  .av-colour > label { grid-column: 1 / -1; }
  .av-tabs [role=tab] { padding: 6px 8px 5px; }
}
.mrank { display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px; border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .45), inset -1px -1px 0 rgba(0, 0, 0, .35); font: bold 10px/1.2 var(--ui); white-space: nowrap; vertical-align: 1px; }
.mrank .px-ico { width: 7px; height: 7px; fill: currentColor; }
h1 .mrank { font-size: 12px; vertical-align: 6px; }
.inline-row.ir-rank { display: grid; grid-template-columns: minmax(0, 1fr) 64px 120px 60px 190px 50px 64px; }
.inline-row.ir-rank .field { flex: none; }
.rank-prev { align-self: center; }
.rank { padding: 0 4px; background: #ffd23f; color: #000; font-weight: bold; font-size: 10px; }
.post-main { display: flex; flex-direction: column; min-width: 0; background: var(--paper); box-shadow: var(--sunken); }
.post-head { padding: 3px 8px; border-bottom: 1px solid #dcdcdc; background: #f4f4f4; font-size: 11px; }
.post-body { flex: 1; padding: 10px 12px; overflow-wrap: anywhere; }
.post-edited { padding: 0 12px 4px; font-size: 10px; font-style: italic; }
.post-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 8px; border-top: 1px solid #dcdcdc; background: #f9f9f9; }
.post-tools:empty { display: none; }
.rich blockquote { margin: 6px 0; padding: 4px 10px 6px; background: #f2f2ff; border: 1px inset #aab; font-size: 12px; }
.rich blockquote::before { content: "Quote:"; display: block; margin-bottom: 2px; color: var(--muted); font: bold 10px var(--ui); }
.rich blockquote + p, .rich p + blockquote { margin-top: 8px; }
/* FFA links */
.ffa-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ffa-list { display: flex; flex-direction: column; list-style: none; }
.ffa-list li { padding: 4px 2px 4px 16px; position: relative; border-bottom: 1px dotted #ccc; }
.ffa-list li:last-child { border-bottom: 0; }
.ffa-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: radial-gradient(circle at 35% 35%, #fff, #4a8cff 45%, #002080); border-radius: 50%; }
.ffa-list li.mine { background: #ffffe1; }
.ffa-title { font-weight: bold; }
.ffa-desc { color: var(--muted); }
.ffa-own { margin-left: 6px; white-space: nowrap; }
.ffa-list li:target { background: #ffffcc; outline: 1px dashed var(--accent); }
/* Admin: one-line edit rows */
.inline-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; padding: 6px 0; border-bottom: 1px dotted #ccc; }
.inline-row:last-of-type { border-bottom: 0; }
.inline-row .field { flex: 0 1 160px; } .inline-row .field.grow, .filters .grow { flex: 1 1 220px; } .inline-row .field.tiny { flex: 0 0 64px; }
.inline-row .check { padding-bottom: 4px; }
.inline-row.ir-board { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) 60px 150px 50px 130px; }
.inline-row.ir-cat { display: grid; grid-template-columns: minmax(0, 1fr) 60px 60px 50px 70px; }
.inline-row.ir-board .field, .inline-row.ir-cat .field { flex: none; }
.inline-row .btn { align-self: end; margin-bottom: 1px; }
.row-tools { display: flex; flex-wrap: wrap; gap: 3px; }
form.inline { display: inline-flex; align-items: center; gap: 4px; }

/* 16c. Themes: footer picker and the admin theme gallery */
.theme-pick { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0; font-size: 11px; }
.theme-group { margin: 10px 0 4px; font: bold 11px var(--ui); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.theme-card { position: relative; display: flex; flex-direction: column; padding: 3px; background: var(--silver); box-shadow: var(--raised); cursor: pointer; }
.theme-card input[type=radio] { position: absolute; opacity: 0; }
.theme-card:has(input[type=radio]:checked) { box-shadow: var(--raised), 0 0 0 2px #000, 0 0 0 4px #ffd23f; }
.theme-card:has(input[type=radio]:focus-visible) { outline: 1px dotted #000; outline-offset: 3px; }
.tc-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 6px; color: #fff; font: bold 11px var(--ui); }
.tc-bar small { padding: 0 3px; background: #ffd23f; color: #000; font: bold 9px var(--ui); text-transform: uppercase; }
.tc-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; box-shadow: var(--sunken); background: #000; }
.tc-desc { padding: 4px 4px 2px; font-size: 11px; color: var(--muted); }
.tc-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; margin-top: 3px; }
.tc-strip button { padding: 0; border: 0; background: none; cursor: pointer; }
.tc-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.tc-strip button.now { outline: 2px solid #ffd23f; outline-offset: -2px; }
.tc-strip button[aria-pressed="true"] { outline: 2px solid #000; outline-offset: -2px; }
fieldset.field { min-width: 0; border: 0; }
details.field summary { cursor: pointer; font-size: 12px; }
.hol-card { cursor: default; }
.hol-card:has(input:not(:checked)) .tc-img { filter: grayscale(1) brightness(.8); }
.hol-tools { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 4px; }
.tc-phase { padding: 0 4px 2px; font-size: 10px; color: var(--faint); }

/* 16e. Holiday decorations (Admin → Settings): logo hat, a scene along the banner, garland, effects canvas */
/* Each holiday paints a little pixel-art scene (400x40, shown at 3x) along the bottom of the banner */
/* The scene fills the banner at its everyday height; the garland hangs inside its top edge, so holiday banners
   are exactly as tall as everyday ones */
.hol .banner-in { position: relative; image-rendering: pixelated; }
/* Every banner is 80px tall on wider screens, so a holiday scene (358x26 art at exactly 3x = 1074x78) sits flush along
   its bottom, the banner's full width, never scaled. Everyday banners are the same height, so nothing moves between days. */
@media (min-width: 621px) { .banner-in { height: 80px; padding-top: 0; padding-bottom: 0; } }
.hol .banner-in > * { position: relative; z-index: 1; }
.hol .banner .garland { position: absolute; top: 4px; left: 4px; right: 4px; z-index: 0; margin: 0; pointer-events: none; }
.art .banner-in { position: relative; background: var(--banner-art) 50% 100% / 1074px 78px no-repeat border-box, var(--bn-mid); image-rendering: pixelated; }
.art .banner-in > * { position: relative; z-index: 1; }
/* On phones the header is taller than the art, so the boards repeat upward and the round window (the middle of the art) sits out of the way */
@media (max-width: 620px) { .art .banner-in { background: var(--banner-art) 0 100% / 1074px 78px repeat-y border-box, var(--bn-mid); } }
.hol-christmas .banner-in { background: url("themes/banner-christmas.png") 50% 100% / 1074px 78px no-repeat border-box, #06102e; }
.hol-halloween .banner-in { background: url("themes/banner-halloween.png") 50% 100% / 1074px 78px no-repeat border-box, #0e0418; }
.hol-new-year .banner-in { background: url("themes/banner-new-year.png") 50% 100% / 1074px 78px no-repeat border-box, #020414; }
.hol-valentines .banner-in { background: url("themes/banner-valentines.png") 50% 100% / 1074px 78px no-repeat border-box, #5a0626; }
.hol-st-patricks .banner-in { background: url("themes/banner-st-patricks.png") 50% 100% / 1074px 78px no-repeat border-box, #0a3a8a; }
.hol-easter .banner-in { background: url("themes/banner-easter.png") 50% 100% / 1074px 78px no-repeat border-box, #24186a; }
.hol-canada-day .banner-in { background: url("themes/banner-canada-day.png") 50% 100% / 1074px 78px no-repeat border-box, #0a2a7a; }
.hol-thanksgiving .banner-in { background: url("themes/banner-thanksgiving.png") 50% 100% / 1074px 78px no-repeat border-box, #3a1030; }
.hol-remembrance .banner-in { background: url("themes/banner-remembrance.png") 50% 100% / 1074px 78px no-repeat border-box, #3a4668; }
.hol-april-fools .banner-in { background: url("themes/banner-april-fools.png") 50% 100% / 1074px 78px no-repeat border-box, #1450d0; }
.hol-july-4 .banner-in { background: url("themes/banner-july-4.png") 50% 100% / 1074px 78px no-repeat border-box, #070a26; }
.hol-clock-day .banner-in { background: url("themes/banner-clock-day.png") 50% 100% / 1074px 78px no-repeat border-box, #2a1e5a; }
.hol-pixel-day .banner-in { background: url("themes/banner-pixel-day.png") 50% 100% / 1074px 78px no-repeat border-box, #2a1a5a; }
.hol-opposite-day .banner-in { background: url("themes/banner-opposite-day.png") 50% 100% / 1074px 78px no-repeat border-box, #a85a1a; }
.hol-pi-day .banner-in { background: url("themes/banner-pi-day.png") 50% 100% / 1074px 78px no-repeat border-box, #1e3a2e; }
.hol-pico-day .banner-in { background: url("themes/banner-pico-day.png") 50% 100% / 1074px 78px no-repeat border-box, #3a9af8; }
.hol-may-4 .banner-in { background: url("themes/banner-may-4.png") 50% 100% / 1074px 78px no-repeat border-box, #06041a; }
.hol-towel-day .banner-in { background: url("themes/banner-towel-day.png") 50% 100% / 1074px 78px no-repeat border-box, #3a1e60; }
.hol-sysadmin-day .banner-in { background: url("themes/banner-sysadmin-day.png") 50% 100% / 1074px 78px no-repeat border-box, #232a3a; }
.hol-programmers-day .banner-in { background: url("themes/banner-programmers-day.png") 50% 100% / 1074px 78px no-repeat border-box, #141a30; }
.hol-pirate-day .banner-in { background: url("themes/banner-pirate-day.png") 50% 100% / 1074px 78px no-repeat border-box, #2a7a9a; }
.hol-internet-day .banner-in { background: url("themes/banner-internet-day.png") 50% 100% / 1074px 78px no-repeat border-box, #060a2a; }
.hol-site-birthday .banner-in { background: url("themes/banner-site-birthday.png") 50% 100% / 1074px 78px no-repeat border-box, #2a1438; }
.hol-robot-day .banner-in { background: url("themes/banner-robot-day.png") 50% 100% / 1074px 78px no-repeat border-box, #141a3a; }
.hol-madness-day .banner-in { background: url("themes/banner-madness-day.png") 50% 100% / 1074px 78px no-repeat border-box, #08020a; }
/* On a busy holiday scene the logo and name sit on a dark glass plate with stepped pixel corners, with crisp outlines */
.hol .brand { position: relative; isolation: isolate; margin: -6px -4px -6px -8px; padding: 6px 14px 6px 8px; }
.hol .brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 6, 28, .58); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  clip-path: polygon(0 4px, 2px 4px, 2px 2px, 4px 2px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px,
                     100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%,
                     4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px)); }
.hol .brand-mark { filter: drop-shadow(1px 0 0 #0a061c) drop-shadow(-1px 0 0 #0a061c) drop-shadow(0 1px 0 #0a061c) drop-shadow(0 -1px 0 #0a061c); }
.hol .banner .brand-tag { color: #fff; text-shadow: 1px 0 0 #0a061c, -1px 0 0 #0a061c, 0 1px 0 #0a061c, 0 -1px 0 #0a061c, 1px 1px 0 #0a061c; }
.brand-mark.dressed { overflow: visible; }
.garland { height: 14px; margin: 0 -3px -3px; background-repeat: repeat-x; background-position: 0 0; image-rendering: pixelated; }
.hol-christmas .garland { animation: chase 2.4s steps(4) infinite; }   /* the bulbs swap colours, like chasing lights */
@keyframes chase { to { background-position: 64px 0; } }
.hol-halloween .banner::after { content: ""; position: absolute; right: 18%; top: 100%; z-index: 5; width: 18px; height: 44px; pointer-events: none;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5IDIyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxyZWN0IHg9IjQiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNkOGQ4ZTgiLz48cmVjdCB4PSI0IiB5PSIxIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZDhkOGU4Ii8+PHJlY3QgeD0iNCIgeT0iMiIgd2lkdGg9IjEiIGhlaW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WdodD0iMSIgZmlsbD0iIzE0MDgxOCIvPjxyZWN0IHg9IjAiIHk9IjIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMTQwODE4Ii8+PHJlY3QgeD0iMyIgeT0iMjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxNDA4MTgiLz48cmVjdCB4PSI1IiB5PSIyMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzE0MDgxOCIvPjxyZWN0IHg9IjgiIHk9IjIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMTQwODE4Ii8+PHJlY3QgeD0iMyIgeT0iMjEiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxNDA4MTgiLz48cmVjdCB4PSI1IiB5PSIyMSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzE0MDgxOCIvPjwvc3ZnPg==") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated; transform-origin: 50% 0; animation: dangle 3s ease-in-out infinite; }
@keyframes dangle { 0%, 100% { transform: translateY(-14px); } 50% { transform: translateY(0); } }
.fx-canvas { position: fixed; inset: 0; z-index: 2000; pointer-events: none; image-rendering: pixelated; }
.fx-pick { margin: 4px 0; }
.fx-off .garland, .fx-off .banner::after { animation: none !important; }

/* Christmas icicles under the banner; Halloween cobwebs in the corners */
.hol-christmas .banner::after { content: ""; position: absolute; left: 3px; right: 3px; top: 100%; z-index: 5; height: 18px; pointer-events: none;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCA2IiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmZmZmYiLz48cmVjdCB4PSIxIiB5PSIwIiB3aWR0a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VpZ2h0PSIxIiBmaWxsPSIjYmZlNGZmIi8+PHJlY3QgeD0iMiIgeT0iNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2JmZTRmZiIvPjxyZWN0IHg9IjEwIiB5PSI0IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjYmZlNGZmIi8+PHJlY3QgeD0iMiIgeT0iNSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2JmZTRmZiIvPjwvc3ZnPg==") 0 0 / 60px 18px repeat-x; image-rendering: pixelated; }
.hol-halloween .shell { position: relative; }
.hol-halloween .shell::before, .hol-halloween .shell::after { content: ""; position: absolute; z-index: 4; width: 64px; height: 64px; pointer-events: none;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgc2hhcGUtcmVuZGVyaW5nPSJjcmlzcEVkZ2VzIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZThlMGYwIi8+PHJlY3QgeD0iMSIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2U4ZTBmMCIvPjxyZWN0IHg9IjIiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOGUwZjAiLz48cmVjdCB4PSIzIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZThlMGYwIi8+PHJlY3QgeD0iNCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2U4ZTBmMCIvPjxyZWN0IHg9IjUiIHk9IjAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOGUwZjAiLz48cmVjdCB4PSI2IiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZThlMGYwI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ZWlnaHQ9IjEiIGZpbGw9IiNlOGUwZjAiLz48cmVjdCB4PSIzIiB5PSIxMiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2U4ZTBmMCIvPjxyZWN0IHg9IjAiIHk9IjEzIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZThlMGYwIi8+PHJlY3QgeD0iMiIgeT0iMTMiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOGUwZjAiLz48cmVjdCB4PSIwIiB5PSIxNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2U4ZTBmMCIvPjxyZWN0IHg9IjEiIHk9IjE0IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZThlMGYwIi8+PHJlY3QgeD0iMCIgeT0iMTUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOGUwZjAiLz48L3N2Zz4=") 0 0 / 100% 100% no-repeat; image-rendering: pixelated; opacity: .75; }
.hol-halloween .shell::before { top: 0; left: 0; }
.hol-halloween .shell::after { top: 0; right: 0; transform: scaleX(-1); }
/* Easter egg hunt */
.egg { position: absolute; bottom: 2px; z-index: 6; width: 18px; height: 18px; padding: 0; border: 0; background: center / 18px 18px no-repeat; image-rendering: pixelated; cursor: pointer; animation: wobble 2.6s ease-in-out infinite; }
.egg:focus-visible { outline: 2px dotted #000; outline-offset: 2px; }
@keyframes wobble { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.fx-off .egg { animation: none; }
.fx-toast { position: fixed; right: 16px; bottom: 16px; z-index: 3000; width: 260px; padding: 3px; background: var(--silver); box-shadow: var(--raised); transform: translateY(140%); transition: transform .25s steps(5); }
.fx-toast.show { transform: none; }
.fx-toast-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 3px 2px 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font: bold 12px var(--ui); }
.fx-toast p { margin: 0; padding: 10px 8px; background: #fff; box-shadow: var(--sunken); font-size: 12px; }
/* Seasonal secrets */
.egg.peek { animation-name: peek; }
@keyframes peek { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(0); } }
.fx-toast-x { width: 16px; height: 14px; padding: 0; border: 0; background: var(--silver); box-shadow: var(--raised); font: bold 11px/1 var(--ui); color: #000; cursor: pointer; }
.fx-toast-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: bold; }
.fx-toast-badge img { image-rendering: pixelated; }
.fx-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ticklish { cursor: help; user-select: none; }
.giggle { animation: giggle .5s steps(6); }
@keyframes giggle { 0%, 100% { transform: none; } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
.fx-dark { position: fixed; inset: 0; z-index: 2500; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), transparent 0 70px, rgba(4, 0, 10, .55) 100px, rgba(4, 0, 10, .94) 150px); transition: opacity .8s; }
.fx-dark.out { opacity: 0; }
.egg.hang { animation: sway 3s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.fx-ghost { position: fixed; z-index: 2400; width: 36px; height: 36px; padding: 0; border: 0; background: center / 36px 36px no-repeat; image-rendering: pixelated; cursor: pointer; opacity: .85; animation: wobble 2.6s ease-in-out infinite; }
.fx-pot { position: fixed; z-index: 2600; padding: 0; border: 0; background: center / 100% 100% no-repeat; image-rendering: pixelated; cursor: pointer; filter: drop-shadow(0 0 6px #ffd23f); animation: wobble 1.6s ease-in-out infinite; }
.fx-peek { position: fixed; bottom: 0; z-index: 2600; padding: 0; border: 0; background: center / 100% 100% no-repeat; image-rendering: pixelated; cursor: pointer; transform: translateY(110%); transition: transform .35s steps(4); }
.fx-peek.up { transform: translateY(0); }
.fx-trick body { animation: shiver .6s steps(6); }
@keyframes shiver { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 2px); } 80% { transform: translate(2px, 0); } }
.fx-knock .egg { animation: none; }
.holding { animation: beat .5s ease-in-out infinite; color: #ffc8dc !important; }
.beat { animation: beat 1s ease-in-out 3; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
/* A holiday guest (assets/themes/guest-<holiday>.png) stands in front of the wallpaper, in the margin beside the content */
.hol-guest { position: fixed; left: calc((100vw - var(--site-w)) / 2 - 12px); bottom: 0; z-index: -1; width: 200px; height: auto; pointer-events: none; transform: translateX(-100%); }
@media (max-width: 1530px) { .hol-guest { width: 160px; } }
@media (max-width: 1450px) { .hol-guest { display: none; } }
/* April Fools: the whole page turns upside down for a moment */
.fx-flip .shell { animation: flip 3.2s ease-in-out; }
@keyframes flip { 0%, 100% { transform: none; } 15%, 85% { transform: rotate(180deg); } }
/* Remembrance Day: a candle beside the greeting, and two minutes of quiet */
.fx-candle { position: absolute; right: 4px; bottom: 4px; z-index: 2; width: 9px; height: 18px; pointer-events: none; background: center / 9px 18px no-repeat; image-rendering: pixelated; }
.fx-quiet { position: fixed; inset: 0; z-index: 2400; pointer-events: none; background: rgba(10, 8, 20, .35); transition: opacity 2s; }
.fx-quiet.out { opacity: 0; }
/* Opposite Day: everything the other way round */
.fx-invert { filter: invert(1) hue-rotate(180deg); }
/* Madness Day: the page leans, and lightning flashes */
.fx-tilt .shell { transform: rotate(-2.5deg); transition: transform .4s steps(4); }
.fx-flash { position: fixed; inset: 0; z-index: 2450; pointer-events: none; background: #fff4f6; animation: flash .9s steps(6) forwards; }
@keyframes flash { 0% { opacity: .85; } 20% { opacity: 0; } 35% { opacity: .6; } 100% { opacity: 0; } }
/* Clock Day: the page jumps when the alarm rings */
.fx-ring .shell { animation: shiver .5s steps(6) 2; }
@media (prefers-reduced-motion: reduce) { .fx-flash { display: none; } .fx-tilt .shell { transition: none; } .fx-flip .shell, .fx-ring .shell, .egg, .egg.hang, .fx-ghost, .fx-pot, .holding, .beat, .fx-trick body { animation: none; } .fx-peek { transition: none; } .fx-toast { transition: none; } .giggle { animation: none; } }

/* 16d. Music player (Admin → Music): a tiny pixel jukebox in the banner */
.player { display: none; }
.js .player { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lcd lcd" "btns seek"; gap: 3px 6px; align-items: center;
  width: 290px; flex-shrink: 0; margin-left: auto; padding: 4px; background: var(--silver); box-shadow: var(--raised); color: #000; }
.js .player + .top-search { margin-left: 0; width: min(300px, 100%); }
.pl-lcd { grid-area: lcd; display: flex; align-items: center; gap: 6px; height: 22px; padding: 2px 6px; background: #000; box-shadow: var(--sunken); overflow: hidden; }
.pl-eq { display: flex; align-items: flex-end; gap: 1px; height: 14px; flex-shrink: 0; }
.pl-eq i { display: block; width: 3px; height: calc(var(--h, 1) * 2px); background: linear-gradient(0deg, #2aff5a 0 8px, #ffe43a 8px 11px, #ff4a3a 11px); background-size: 3px 14px; background-position: bottom; transition: height .12s steps(2); }
.pl-info { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pl-marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.pl-title { display: inline-block; color: #2aff5a; font: 17px/1 var(--led); letter-spacing: .5px; text-shadow: 0 0 4px rgba(42, 255, 90, .55); }
.pl-marquee.scroll .pl-title { animation: pl-scroll var(--dur, 10s) steps(60) infinite; animation-play-state: paused; }
.player.playing .pl-marquee.scroll .pl-title { animation-play-state: running; }
@keyframes pl-scroll { to { transform: translateX(-50%); } }
.pl-time { flex-shrink: 0; color: #ffe43a; font: 17px/1 var(--led); }
.pl-btns { grid-area: btns; display: flex; align-items: center; gap: 2px; }
.pl-b { display: grid; place-items: center; width: 22px; height: 20px; padding: 0; border: 0; background: var(--silver); box-shadow: var(--raised); color: #000; cursor: pointer; }
.pl-b:hover { background: var(--silver-2); }
.pl-b:active { box-shadow: var(--pressed); }
.pl-b:focus-visible, .pl-seek:focus-visible, .pl-vol:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
.px-ico { width: 9px; height: 9px; fill: currentColor; }
.pl-play [data-ico=pause], .player.playing .pl-play [data-ico=play], .pl-mute [data-ico=mute], .player.muted .pl-mute [data-ico=vol] { display: none; }
.player.playing .pl-play [data-ico=pause], .player.muted .pl-mute [data-ico=mute] { display: block; }
.player.resume .pl-play { animation: blink 1s steps(1) 5; background: #ffe43a; }
.pl-vol { width: 54px; height: 14px; margin: 0 2px; accent-color: var(--accent); cursor: pointer; }
.pl-seek { grid-area: seek; height: 12px; padding: 2px; background: #fff; box-shadow: var(--sunken); cursor: pointer; }
.pl-seek span { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 5px); }
.player.remote .pl-lcd::after { content: "POP-OUT"; flex-shrink: 0; padding: 0 3px; background: #2aff5a; color: #000; font: 9px var(--pixel); }
/* the pop-out window */
body.popout { min-height: 0; padding: 10px; display: grid; place-items: center; }
.popout-main { width: 100%; }
.js .player.player-pop { width: 100%; margin: 0; }

/* 17. Smaller screens */
@media (max-width: 860px) {
  body { padding-top: 8px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content"; }
  .entry-grid { grid-template-columns: 1fr; }
  /* The sidebar becomes a pop-out menu */
  .side { position: fixed; z-index: 1100; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding: 8px; overflow: auto; background: var(--silver); box-shadow: var(--raised), 8px 0 0 rgba(0, 0, 0, 0.5);
    transform: translateX(-105%); visibility: hidden; transition: transform 0.25s steps(5), visibility 0.25s; }
  .side.open { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 32, 0.6); }
  .side-mobile-only { display: block; }
  body:not(.admin) .topbar { display: none; }
  .menu-btn { position: relative; z-index: 1200; display: grid; place-content: center; gap: 4px; flex-shrink: 0; width: 34px; height: 30px; margin-left: auto; border: 0; background: var(--silver); box-shadow: var(--raised); cursor: pointer; }
  .menu-btn:active { box-shadow: var(--pressed); }
  .menu-btn span { display: block; width: 16px; height: 2px; background: #000; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .row-3 { grid-template-columns: 1fr 1fr; }
  .banner-in { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .banner, .shell, .foot, .wrap { width: calc(100% - 8px); }
  .banner-in { flex-wrap: wrap; gap: 10px; padding: 10px; }
  .brand-tag { display: none; }
  .hol .brand-tag { display: block; max-width: 30ch; }   /* the holiday greeting stays: it hides a secret */
  .brand-name { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .top-search { order: 3; flex-basis: 100%; width: 100%; }
  .js .player { order: 2; width: 100%; margin-left: 0; }
  .shell { padding: 4px; }
  body.admin .topbar ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  h1 { font-size: 24px; }
  .hero-h { font-size: 26px; }
  .big-search input, .big-search .select, .big-search .btn { flex-basis: 100%; }
  .big-search .select select { width: 100%; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .letters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .letters a, .letters span { flex-shrink: 0; }
  /* Tables become stacked rows */
  .entries thead { display: none; }
  .entries, .entries tbody, .entries td { display: block; box-shadow: none; }
  .entries tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 5px 7px; border-bottom: 1px solid #dcdcdc; }
  .entries td { padding: 0; border: 0; font-size: 11px; }
  .entries td.t { flex-basis: 100%; font-size: 13px; }
  .entries .num { text-align: left; }
  .entries td.nil { display: none; }
  .entries td.num[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-family: var(--ui); }
  .entries td:not(.t):not(.nil) ~ td:not(.nil) { padding-left: 6px; border-left: 1px solid #767676; }
  .col-table td.t { flex-basis: 100%; }
  .facts > div { grid-template-columns: 90px 1fr; }
  .file-main { flex-wrap: wrap; }
  .file-main .btn { flex-basis: 100%; }
  .row, .row-3 { grid-template-columns: 1fr; }
  .check-pad { padding-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .shelf { flex-direction: column; } .shelf-next { margin-left: 0; text-align: left; }
  .viewer { padding: 50px 6px; }
  .viewer-nav { top: auto; bottom: 14px; }
  .pager { grid-template-columns: 1fr 1fr; } .pager > .mono { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .af-label { flex: 1; min-width: 180px; } .af-label input { width: 100%; }
  .inline-row.ir-board, .inline-row.ir-cat, .inline-row.ir-rank { grid-template-columns: 1fr 1fr; }
  .inline-row.ir-board .grow, .inline-row.ir-cat .grow { grid-column: 1 / -1; }
  .post { grid-template-columns: 1fr; }
  .post-who { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 8px; }
  .avatar { width: 26px; height: 26px; margin: 0; font-size: 14px; order: -1; }
  img.avatar { width: 32px; height: 32px; }
  .boards td.t { display: grid; }
  .lastpost { white-space: normal; }
  .lastpost br { display: none; }
  .userbar span:first-child { flex-basis: 100%; }
}

@media (pointer: coarse) {
  .btn, .menu-btn, .viewer-close, .viewer-nav, .ticker-pause { min-height: 44px; min-width: 44px; }
  .btn-small { min-height: 40px; }
  .pl-b { width: 44px; height: 40px; }
  .pl-vol { height: 40px; }
  .pl-seek { height: 24px; }
  .letters a, .letters span { min-width: 40px; height: 40px; }
  .side-list a { padding: 10px 4px; }
  .copy { min-height: 36px; padding: 4px 12px; }
  .select select, .field input, .top-search input, .big-search input { min-height: 44px; }
  .js .player { width: auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "lcd" "btns" "seek"; }
  .pl-btns { flex-wrap: wrap; }
  .topbar a { padding: 10px 14px; }
}

/* 18. Reduce motion: no blinking, no scrolling ticker */
@media (prefers-reduced-motion: reduce) {
  .player.resume .pl-play { animation: none; }
  .scene i + i, .banner-in { transition: none; }
  @view-transition { navigation: none; }
  .new { animation: none; }
  .ticker-run { animation: none; }
  .ticker-set[aria-hidden] { display: none; }
  .ticker-track { overflow-x: auto; }
  .ticker-pause { display: none; }
  .garland, .hol-halloween .banner::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* 19. Print */
@media print {
  body { background: #fff; padding: 0; }
  .banner, .side, .foot, .shelf, .big-search, .toolbar, .pager, .btn, .copy, .ticker { display: none !important; }
  .shell { display: block; width: auto; margin: 0; padding: 0; box-shadow: none; background: none; }
}

/* Metadata: verified dumps, the lookup box on an entry */
.upd-list { max-height: 260px; overflow: auto; margin: 4px 0 10px; padding: 6px 6px 6px 22px; background: #fff; box-shadow: var(--sunken); }
.upd-apply { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 12px 0 8px; }
.upd-apply .field { margin: 0; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.inline-form input[type=password] { width: 140px; }
.verified { display: block; width: fit-content; margin-top: 2px; padding: 0 4px; background: #e6ffe6; border: 1px solid #008000; color: #004000; font-weight: bold; }
.meta-box summary { cursor: pointer; }
.meta-box[open] summary { margin-bottom: 8px; }
.meta-list { list-style: none; display: grid; gap: 4px; margin: 8px 0; }
.meta-list form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 8px; background: #fff; box-shadow: var(--sunken); }
.meta-c { flex: 1 1 320px; min-width: 0; }
.meta-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.up .up-meta { display: block; margin-top: 2px; }

.ffa-list li.pick .pick-badge { background: #ffd23f; color: #3a2a00; }

/* ============================================================================================================
   30. Polish pass (v1.9.1): depth, crisper window chrome, the mascot in the title bars, folder bullets,
   classic scrollbars, friendlier empty states and the hero picture. All additive: nothing above changes meaning.
   ============================================================================================================ */
/* windows sit above the wallpaper on hard pixel shadows */
.banner, .shell, .foot, main.wrap > .card, .wrap.narrow > .card { box-shadow: var(--raised), 4px 4px 0 rgba(0, 0, 0, 0.42); }
.shell .head, .shell .welcome, .shell .side > *, .shell .label { filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.22)); }
/* title bars: the site's own mascot as the window icon, a highlight along the top and faint scan lines */
.head::before, .welcome::before {
  background: url("/assets/favicon.svg") 4px 1px / 18px 18px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 2px),
    linear-gradient(90deg, var(--accent), var(--accent-2));
  image-rendering: pixelated; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45); }
.panel-h::before, .label::before { width: 16px; height: 14px; border: 0; background: url("/assets/favicon.svg") center 0 / 18px 18px no-repeat; image-rendering: pixelated; }
.panel-h, .label { text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45); }
/* sidebar: little folders instead of chevrons; the open one lights up */
.side-list a::before { content: ""; width: 11px; height: 9px; margin: 4px 5px 0 0; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 1h4v1h7v7H0z' fill='%232a1608'/%3E%3Cpath d='M1 2h3v1h6v5H1z' fill='%23e8b84a'/%3E%3Cpath d='M1 4h9v1H1z' fill='%23ffe08a'/%3E%3Cpath d='M1 7h9v1H1z' fill='%23b8862a'/%3E%3C/svg%3E") center / 11px 9px no-repeat; image-rendering: pixelated; }
.side-list a.on::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9' shape-rendering='crispEdges'%3E%3Cpath d='M0 1h4v1h7v7H0z' fill='%232a1608'/%3E%3Cpath d='M1 2h3v1h6v5H1z' fill='%23ffe08a'/%3E%3Cpath d='M1 4h9v1H1z' fill='%23ffffff'/%3E%3Cpath d='M1 7h9v1H1z' fill='%23b8862a'/%3E%3C/svg%3E"); }
.side-list a { border: 1px solid transparent; }
.side-list a:hover { background: var(--row); border-color: #c8ccea; }
.side-list a.on, .side-list a.on:hover { background: var(--accent); border: 1px dotted #fff; }
/* tables: clearer headers, a marker on the row under the pointer */
.entries th { padding: 4px 6px; }
.entries tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.entries td a:focus-visible, .side-list a:focus-visible, .topbar a:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }
/* buttons and fields respond to the pointer and keyboard */
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
input[type=search]:focus, input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
/* classic scrollbars */
html { scrollbar-color: #c0c0c0 #e8e8e8; }
::-webkit-scrollbar { width: 16px; height: 16px; background: #e8e8e8 repeating-conic-gradient(#fff 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px; }
::-webkit-scrollbar-thumb { background: var(--silver); box-shadow: var(--raised); }
::-webkit-scrollbar-button { width: 16px; height: 16px; background: var(--silver); box-shadow: var(--raised); }
::-webkit-scrollbar-corner { background: var(--silver); }
/* empty states get a little open box */
.empty { padding: 20px 18px 18px; }
.empty::before { content: ""; display: block; width: 32px; height: 28px; margin: 0 auto 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14' shape-rendering='crispEdges'%3E%3Cpath d='M0 3h16v11H0z' fill='%232a1608'/%3E%3Cpath d='M1 4h14v9H1z' fill='%23c8945a'/%3E%3Cpath d='M11 4h4v9h-4z' fill='%239a6c3c'/%3E%3Cpath d='M1 4h14v1H1z' fill='%23e0b47c'/%3E%3Cpath d='M6 4h3v4H6z' fill='%23e8d8a0'/%3E%3Cpath d='M1 0h5l1 3H0zM10 0h5l1 3H9z' fill='%23a87a48' stroke='%232a1608' stroke-width='.5'/%3E%3C/svg%3E") center / 32px 28px no-repeat; image-rendering: pixelated; opacity: 0.9; }
/* the hero: Delaware on a stack of boxes beside the heading */
.welcome-text { position: relative; min-height: 168px; padding-right: 232px; justify-content: center; }
.hero-art { position: absolute; right: 14px; bottom: 10px; width: 208px; height: 144px; image-rendering: pixelated; pointer-events: none; }
.hero-h { text-wrap: balance; }
@media (max-width: 860px) {
  .welcome-text { min-height: 0; padding-right: 14px; padding-bottom: 96px; }
  .hero-art { right: 50%; transform: translateX(50%); bottom: 6px; width: 130px; height: 90px; }
  .banner, .shell, .foot, main.wrap > .card, .wrap.narrow > .card { box-shadow: var(--raised), 2px 2px 0 rgba(0, 0, 0, 0.42); }
}
@media (prefers-reduced-motion: no-preference) { .btn, .side-list a, .av-tile { transition: background-color 0.08s steps(2); } }

/* ============================================================================================================
   31. UI overhaul (v2.0.0): roomier tables, icon tabs, the collection shelf, clearer hierarchy, better phone layout.
   ============================================================================================================ */
/* --- navigation: bigger tabs with pixel icons; the current page is a pressed, lit tab */
.topbar { padding: 4px 4px 3px; }
.topbar ul { gap: 4px; }
.topbar a { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; font-size: 12.5px; }
.topbar a::before { content: ""; width: 12px; height: 12px; flex-shrink: 0; background: center / 12px 12px no-repeat; image-rendering: pixelated; }
.topbar a[href="/"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M5 1h2v1h1v1h1v1h1v1h1v1h-1v5H2V6H1V5h1V4h1V3h1V2h1z' fill='%231a1028'/%3E%3Cpath d='M5 2h2v1h1v1h1v1h1v1H2V5h1V4h1V3h1z' fill='%23e8503a'/%3E%3Cpath d='M3 6h6v4H3z' fill='%23f4e4c0'/%3E%3Cpath d='M5 7h2v3H5z' fill='%238a5a2a'/%3E%3C/svg%3E"); }
.topbar a[href="/collections"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M0 2h5v1h7v8H0z' fill='%231a1028'/%3E%3Cpath d='M1 3h3v1h7v6H1z' fill='%23e8b84a'/%3E%3Cpath d='M1 5h10v1H1z' fill='%23ffe08a'/%3E%3C/svg%3E"); }
.topbar a[href="/recent"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M5 0h2v3h3l-2 2 1 4-3-2-3 2 1-4-2-2h3z' fill='%231a1028'/%3E%3Cpath d='M5 2h2v2h2l-2 1 1 2-2-1-2 1 1-2-2-1h2z' fill='%23ffd23f'/%3E%3C/svg%3E"); }
.topbar a[href="/popular"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h4v5h3l-5 5-5-5h3z' fill='%231a1028'/%3E%3Cpath d='M5 1h2v5h2l-3 3-3-3h2z' fill='%235ac85a'/%3E%3Cpath d='M0 10h12v2H0z' fill='%231a1028'/%3E%3C/svg%3E"); }
.topbar a[href="/bbs"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M0 1h12v8H5l-3 3V9H0z' fill='%231a1028'/%3E%3Cpath d='M1 2h10v6H1z' fill='%23ffffff'/%3E%3Cpath d='M3 4h6v1H3zM3 6h4v1H3z' fill='%233a6ad8'/%3E%3C/svg%3E"); }
.topbar a[href="/links"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M1 4h5v1h1v2H6v1H1V7H0V5h1zM6 4h5v1h1v2h-1v1H6V7H5V5h1z' fill='%231a1028'/%3E%3Cpath d='M1 5h4v2H1zM7 5h4v2H7z' fill='%237ad8ff'/%3E%3Cpath d='M4 5h4v2H4z' fill='%233a8ad8'/%3E%3C/svg%3E"); }
.topbar a[href="/about"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h6v1h2v2h1v6h-1v2H9v1H3v-1H1V9H0V3h1V1h2z' fill='%231a1028'/%3E%3Cpath d='M3 1h6v1h2v7H9v2H3V9H1V2h2z' fill='%233a8ad8'/%3E%3Cpath d='M5 2h2v2H5zM5 5h2v5H5z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.topbar a:not([href="/"]):not([href="/collections"]):not([href="/recent"]):not([href="/popular"]):not([href="/bbs"]):not([href="/links"]):not([href="/about"])::before { display: none; }
.topbar a:hover { transform: translateY(-1px); }
.topbar a.active { transform: none; box-shadow: var(--pressed), inset 0 -3px 0 var(--accent); }
/* --- the collection shelf: every collection is a labelled cardboard box */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; padding: 12px;
  background: #6a4428 repeating-linear-gradient(0deg, transparent 0 78px, #3a2212 78px 82px, #8a5c38 82px 84px), repeating-linear-gradient(90deg, #6e472a 0 2px, #68422a 2px 9px, #724a2c 9px 11px, #6a4428 11px 23px);
  box-shadow: var(--sunken); }
.box-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 5px; min-height: 86px; padding: 7px 8px 6px; color: #1a1028; text-decoration: none;
  background: #c8945a repeating-linear-gradient(90deg, rgba(42, 22, 8, 0.07) 0 1px, transparent 1px 3px); border: 2px solid #2a1608;
  box-shadow: inset 2px 2px 0 #e0b47c, inset -3px -3px 0 #9a6c3c, 3px 3px 0 rgba(0, 0, 0, 0.4); }
.box-card::before { content: ""; position: absolute; top: 0; left: 50%; width: 16px; height: 22px; margin-left: -8px; background: linear-gradient(90deg, #fff4c8 0 4px, #e8d8a0 4px); opacity: 0.9; }
.box-card .col-short { justify-self: start; position: relative; min-width: 40px; font-size: 13px; border: 1px solid #2a1608; }
.box-label { position: relative; display: grid; align-content: center; gap: 1px; padding: 4px 6px; background: #f4ecd8; border-bottom: 2px solid #d8ccb4; box-shadow: 1px 1px 0 rgba(42, 22, 8, 0.35); }
.box-label b { font: bold 12px/1.25 var(--ui); text-decoration: underline; text-decoration-color: rgba(26, 16, 40, 0.35); overflow-wrap: anywhere; }
.box-label small { font: 10px/1.2 var(--mono); color: #4a3a2a; }
.box-n { position: relative; justify-self: end; padding: 0 5px; background: #2a1608; color: #ffe08a; font: 10px/1.5 var(--pixel); }
.box-card:hover, .box-card:focus-visible { transform: translate(-1px, -2px); box-shadow: inset 2px 2px 0 #f0c890, inset -3px -3px 0 #9a6c3c, 5px 6px 0 rgba(0, 0, 0, 0.45); outline: 0; }
.box-card:hover .box-label b { text-decoration-color: currentColor; }
.box-card:focus-visible { border-style: dashed; }
.box-card.empty { filter: saturate(0.55) brightness(0.92); }
.box-card.empty .box-n { background: transparent; color: #4a3a2a; }
.box-card:visited { color: #1a1028; }
@media (prefers-reduced-motion: reduce) { .box-card:hover, .topbar a:hover { transform: none; } }
/* --- tables: more air, a quieter grid, headers that read as headers */
.entries { font-size: 12.5px; }
.entries th { padding: 5px 8px; font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; background: linear-gradient(#d8d4cc, var(--silver)); }
.entries td { padding: 5px 8px; border: 0; border-bottom: 1px solid #e2e2ea; }
.entries td + td { border-left: 1px dotted #d0d0dc; }
.entries tbody tr:last-child td { border-bottom: 0; }
.entries td.t a { font-size: 13px; }
.entries .num { font-variant-numeric: tabular-nums; }
/* --- chips and tags: small labels with a punched hole, like luggage tags */
.chip { padding: 1px 6px 1px 5px; border-color: #a89868; border-radius: 0 6px 6px 0; background: #fff8d4; }
.tags { gap: 5px; padding: 6px 8px; }
/* --- headings inside windows: a firmer hierarchy */
.head h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.label { font-size: 12.5px; letter-spacing: 0.02em; }
/* --- sidebar: counts as little counters; empty collections step back */
.side-list { padding: 6px 6px; }
.side-list a { padding: 2px 4px; align-items: baseline; }
.side-list .n { min-width: 20px; padding: 0 4px; text-align: center; background: #e8e8f4; border: 1px solid #c8c8dc; color: #1a1028; font: 10px/1.5 var(--mono); }
.side-list .n::before, .side-list .n::after { content: none; }
.side-list a:has(.n:empty) .n { display: none; }
.side-list a.on .n { background: #fff; color: var(--accent); border-color: #fff; }
/* --- buttons: the main action in each form stands out (small buttons keep their fixed size) */
.btn:not(.btn-small) { padding: 5px 14px; }
.btn:not(.btn-small):disabled, .btn:not(.btn-small)[aria-disabled="true"] { padding: 5px 14px; }
.btn.btn-primary, .btn.btn-primary:visited { background: var(--accent); color: #fff !important; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: inset -1px -1px 0 #000, inset 1px 1px 0 rgba(255, 255, 255, 0.55), inset -2px -2px 0 rgba(0, 0, 0, 0.35), inset 2px 2px 0 rgba(255, 255, 255, 0.2); }
.btn.btn-primary:hover { background: var(--accent-2); }
.btn-primary:active { box-shadow: inset 1px 1px 0 #000, inset 2px 2px 0 rgba(0, 0, 0, 0.4); }
.btn.btn-primary:disabled { background: var(--silver); color: var(--shade) !important; text-shadow: 1px 1px 0 #fff; }
/* --- the hero: bigger picture, calmer text block */
.welcome-text { min-height: 190px; padding: 16px 250px 16px 18px; }
.hero-art { width: 228px; height: 158px; right: 12px; bottom: 12px; }
.lede { max-width: 56ch; font-size: 13.5px; }
.big-search { padding: 10px; gap: 8px; }
.big-search input { padding: 6px 8px; font-size: 14px; }
/* --- footer: the link row becomes a tidy set of tabs */
.foot-box { padding: 16px 12px 14px; }
/* --- phones */
@media (max-width: 860px) {
  .topbar ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
  .topbar ul::-webkit-scrollbar { display: none; }
  .topbar a { white-space: nowrap; padding: 7px 12px 7px 9px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; }
  .welcome-text { min-height: 0; padding: 14px 14px 104px; }
  .hero-art { width: 143px; height: 99px; right: 50%; bottom: 4px; }
  .entries td { border-left: 0 !important; }
}

/* ============================================================================================================
   32. Member profiles (v2.1.0)
   ============================================================================================================ */
a.who { color: inherit; text-decoration: none; }
a.who:hover strong { text-decoration: underline; }
.pf { --pf: var(--accent); margin-bottom: 8px; background: var(--silver); box-shadow: var(--raised), 3px 3px 0 rgba(0, 0, 0, 0.3); padding: 4px; }
.pf-hero { display: flex; align-items: flex-end; gap: 16px; min-height: 172px; padding: 18px 18px 16px; background: var(--pf) 0 0 / 128px 128px repeat; image-rendering: pixelated; box-shadow: var(--sunken); position: relative; }
.pf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.55)); pointer-events: none; }
.pf-hero > * { position: relative; z-index: 1; }
.pf-portrait { flex-shrink: 0; padding: 8px; background: linear-gradient(135deg, #b07a4a, #7a4a26 55%, #5a3418); border: 2px solid #2a1608; box-shadow: inset 2px 2px 0 #d8a070, inset -2px -2px 0 #3a200c, 4px 4px 0 rgba(0, 0, 0, 0.45); }
.pf-avatar { display: block; width: 128px; height: 128px; background: #fff; border: 2px solid #2a1608; }
.pf-frame-gold .pf-portrait { background: linear-gradient(135deg, #fff0a0, #e8b830 45%, #a87a10); border-color: #5a3a00; box-shadow: inset 2px 2px 0 #fffad0, inset -2px -2px 0 #7a5200, 4px 4px 0 rgba(0, 0, 0, 0.45); }
.pf-frame-plain .pf-portrait { padding: 0; background: none; border: 0; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); }
.pf-frame-polaroid .pf-portrait { padding: 8px 8px 26px; background: #f8f4ea; border: 1px solid #b8b0a0; box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.4); transform: rotate(-2.5deg); }
.pf-frame-polaroid .pf-avatar { border-width: 1px; }
.pf-frame-window .pf-portrait { padding: 22px 4px 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)) 3px 3px / calc(100% - 6px) 17px no-repeat, var(--silver); border: 0; box-shadow: var(--raised), 4px 4px 0 rgba(0, 0, 0, 0.45); }
.pf-frame-window .pf-avatar { border: 0; box-shadow: var(--sunken); }
.pf-id { min-width: 0; color: #fff; text-shadow: 1px 1px 0 #000, 2px 2px 0 rgba(0, 0, 0, 0.6); }
.pf-name { margin: 0; font: bold clamp(22px, 3.4vw, 34px)/1.1 var(--pixel); letter-spacing: 0.02em; overflow-wrap: anywhere; color: #fff; }
.pf-name small { font: 12px var(--ui); opacity: 0.9; }
.pf-rank { margin: 6px 0 0; text-shadow: none; }
.pf-rank .rank { padding: 1px 6px; background: var(--pf); color: #fff; font: 11px/1.5 var(--pixel); text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.6); }
.pf-tagline { margin: 8px 0 0; font: italic 15px/1.3 var(--serif); }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 4px; margin: 4px 0 0; }
.pf-stats > div { padding: 5px 8px 6px; background: #000; box-shadow: var(--sunken); border-top: 3px solid var(--pf); }
.pf-stats dt { color: #9a9ab0; font: 9px/1.4 var(--pixel); text-transform: uppercase; letter-spacing: 0.06em; }
.pf-stats dd { color: #5aff5a; font: 18px/1.2 var(--led); }
.pf-stats dd span { color: #2a8a2a; font-size: 12px; }
.pf-own { margin: 0 0 8px; }
.pf-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 8px; align-items: start; }
.pf-cols .label:first-child { margin-top: 0; }
.pf-bio { min-height: 80px; overflow-wrap: anywhere; }
.pf-posts { list-style: none; display: grid; gap: 8px; }
.pf-posts li { padding-bottom: 8px; border-bottom: 1px dotted #c8c8d8; }
.pf-posts li:last-child { padding-bottom: 0; border: 0; }
.pf-posts p { margin: 2px 0 0; color: var(--muted); }
.pf-details { display: grid; gap: 6px; }
.pf-details dt { font: bold 11px var(--ui); color: var(--muted); }
.pf-details dd { overflow-wrap: anywhere; }
.pf-looks { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-looks img { width: 48px; height: 48px; image-rendering: pixelated; background: #f4f1ea; border: 1px solid #c8c0b0; }
.pf-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pf-card { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; background: #f4f1ea; border: 2px solid; border-color: #fff #808080 #808080 #fff; border-top: 4px solid var(--pf); color: #1a1028; text-decoration: none; text-align: center; }
.pf-card img { width: 64px; height: 64px; }
.pf-card b { font-size: 12px; overflow-wrap: anywhere; }
.pf-card small { font: 10px var(--mono); color: #4a4a5a; }
.pf-card:hover { background: #fffbe0; transform: translateY(-2px); box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.3); }
/* the editor on the account page */
.pf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.pf-fields label { display: grid; gap: 3px; font-weight: bold; font-size: 12px; }
.pf-fields .wide { grid-column: 1 / -1; }
.pf-fields input[type=text], .pf-fields input[type=url], .pf-fields textarea, .pf-fields select { width: 100%; font-weight: normal; }
.pf-fields input[type=color] { width: 56px; height: 28px; padding: 1px; }
.pf-edit fieldset { margin: 12px 0 0; padding: 8px 10px 10px; border: 2px groove #c0c0c0; min-width: 0; }
.pf-edit legend { padding: 0 6px; font: 12px/1 var(--pixel); text-transform: uppercase; }
.pf-preview { margin: 10px 0 0; }
.pf-preview .pf-hero { min-height: 0; }
.pf-preview .pf-avatar { width: 96px; height: 96px; }
.pf-show { display: grid; gap: 4px; }
.pf-edit .actions { margin-top: 12px; }
@media (max-width: 860px) {
  .pf-cols { grid-template-columns: 1fr; }
  .pf-hero { flex-direction: column; align-items: center; text-align: center; min-height: 0; padding: 16px 10px 14px; }
  .pf-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pf-card:hover { transform: none; } }
