/* ==========================================================================
   The Sierra Archive — the AGI look (html.agi)
   16 EGA colours · 8×8 pixel font · white message windows with the thin red
   line · status line on top · text parser at the bottom · Esc menu bar.
   Everything here only applies while the visitor has picked the AGI look.
   ========================================================================== */

/* "Sierra AGI Font" by Goatmeal (2010), CC BY-NC-SA 3.0 — the real AGI letters.
   "AGI 8x8" (drawn for this site) fills in the few signs it doesn't have: arrows, ■, ✓, …, — */
@font-face { font-family: "Sierra AGI"; src: url("../fonts/sierra-agi.woff") format("woff"), url("../fonts/sierra-agi.otf") format("opentype"); font-display: block; }
@font-face { font-family: "AGI 8x8"; src: url("../fonts/agi8.woff") format("woff"), url("../fonts/agi8.ttf") format("truetype"); font-display: block; }

/* ---------- the palette (CGA and Hercules re-map the same 16 slots) ---------- */
html.agi {
  --e0: #000000; --e1: #0000aa; --e2: #00aa00; --e3: #00aaaa; --e4: #aa0000; --e5: #aa00aa; --e6: #aa5500; --e7: #aaaaaa;
  --e8: #555555; --e9: #5555ff; --e10: #55ff55; --e11: #55ffff; --e12: #ff5555; --e13: #ff55ff; --e14: #ffff55; --e15: #ffffff;
  --agi-font: "Sierra AGI", "AGI 8x8", "Courier New", monospace;
  --top: 32px !important;
  --mini: 48px !important;
  --pbar: 54px;
  color-scheme: dark;
}
html.agi.agi-cga {
  --e1: #55ffff; --e2: #55ffff; --e3: #55ffff; --e4: #ff55ff; --e5: #ff55ff; --e6: #ff55ff; --e7: #ffffff;
  --e8: #ff55ff; --e9: #55ffff; --e10: #55ffff; --e11: #55ffff; --e12: #ff55ff; --e13: #ff55ff; --e14: #ffffff;
}
html.agi.agi-herc {
  --e0: #000000; --e1: #7a4f00; --e2: #7a4f00; --e3: #7a4f00; --e4: #7a4f00; --e5: #7a4f00; --e6: #7a4f00; --e7: #ffb000;
  --e8: #7a4f00; --e9: #ffb000; --e10: #ffb000; --e11: #ffb000; --e12: #ffb000; --e13: #ffb000; --e14: #ffb000; --e15: #ffb000;
}

/* stage colours: black screen, white text, yellow highlights */
html.agi, html.agi[data-era] {
  --bg: var(--e0) !important; --bg2: var(--e1) !important; --ink: var(--e15) !important; --acc: var(--e14) !important; --acc2: var(--e11) !important;
  --muted: var(--e7); --faint: var(--e8); --line: var(--e8); --panel: var(--e0); --panel-2: var(--e0); --card: var(--e8);
  --scan: 0;
}

/* ---------- everything: pixel font, square corners, no blur or glow ---------- */
html.agi body, html.agi body *, html.agi body *::before, html.agi body *::after {
  font-family: var(--agi-font) !important; font-size: 16px !important; font-weight: 400 !important; font-style: normal !important;
  letter-spacing: 0 !important; line-height: 1.25 !important; text-shadow: none !important;
  border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  -webkit-font-smoothing: none; font-smooth: never; font-variant-numeric: normal;
}
html.agi body { background: var(--e0); color: var(--e15); }
html.agi ::selection { background: var(--e15); color: var(--e0); }
html.agi * { scrollbar-color: var(--e8) var(--e0); scrollbar-width: auto; }
html.agi :focus-visible { outline: 2px dotted var(--acc); outline-offset: 2px; }
html.agi a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
html.agi img.agi-px { image-rendering: pixelated; }
html.agi kbd { border: 2px solid currentColor; border-bottom-width: 2px; background: none; padding: 0 4px; }
html.agi code { background: none; }

/* the modern decorations step aside */
html.agi .backdrop, html.agi .tb-logo, html.agi .px-grid, html.agi .fx-scan,
html.agi .lb-ambient, html.agi .tl-card .tint, html.agi .brand-mark, html.agi .topnav .ico, html.agi .parser-caret { display: none !important; }

html.agi.agi-herc body { text-shadow: none; }

/* ==========================================================================
   MESSAGE WINDOWS — white, black text, the thin red line inside the edge
   ========================================================================== */
html.agi :is(.hero-main, .story-card, .otd, .news, .lb-frame, .tip, .era-card, .parser-results, .wl-dialog, .end-card, .agi-msg-box) {
  --ink: var(--e0); --muted: var(--e8); --acc: var(--e4); --acc2: var(--e1); --line: var(--e0); --faint: var(--e7);
  --panel: var(--e15); --panel-2: var(--e15); --card: var(--e7); --bg2: var(--e15);
  background: var(--e15) !important; color: var(--e0); border: 0 !important;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55) !important;
}
html.agi :is(.hero-main, .story-card, .otd, .news, .lb-frame, .tip, .era-card, .parser-results, .wl-dialog, .end-card, .agi-msg-box)::after {
  content: ""; position: absolute; inset: 5px; z-index: 30; pointer-events: none; border: 3px solid var(--wb, var(--e4));
}
html.agi :is(.story-card, .otd, .news) { --wb: var(--e1); }
html.agi.agi-herc :is(.hero-main, .story-card, .otd, .news, .lb-frame, .tip, .era-card, .parser-results, .wl-dialog, .end-card, .agi-msg-box) { --wb: var(--e0); }
html.agi :is(.hero-main, .story-card, .otd, .news) { position: relative; }
html.agi.agi-herc :is(.hero-main, .story-card, .otd, .news, .lb-frame, .tip, .era-card, .parser-results, .wl-dialog, .end-card, .agi-msg-box) {
  --ink: var(--e0); --muted: var(--e0); --acc: var(--e0); --acc2: var(--e0); --faint: var(--e1); --card: var(--e1);
}

/* buttons, pills, chips, tags */
html.agi .btn { background: var(--ink); color: var(--panel); border: 2px solid var(--ink); padding: 4px 14px; box-shadow: none; transform: none !important; }
html.agi .btn:hover, html.agi .btn:focus-visible { background: var(--acc); border-color: var(--acc); color: var(--panel); box-shadow: none; }
html.agi .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
html.agi .btn-ghost:hover { background: var(--ink); color: var(--panel); border-color: var(--ink); }
html.agi .btn-big { padding: 6px 16px; }
html.agi .iconbtn { width: 32px; height: 32px; background: var(--panel); border: 2px solid var(--ink); color: var(--ink); }
html.agi .iconbtn:hover { background: var(--ink); color: var(--panel); border-color: var(--ink); }
html.agi :is(.pill, .fchip, .chip-link, .tag) { border: 2px solid var(--ink); background: transparent; color: var(--ink); padding: 1px 8px; text-transform: none; }
html.agi :is(.pill, .fchip)[aria-pressed="true"], html.agi .chip-link:hover, html.agi .tag-series:hover { background: var(--ink); color: var(--panel); border-color: var(--ink); }
html.agi .chip { background: transparent; border: 2px solid var(--faint); padding: 0 6px; }
html.agi .tag-series { background: transparent; }
html.agi .tag-ph { background: var(--e14); border-color: var(--e0); color: var(--e0); }
html.agi .fchip .dot { width: 8px; height: 8px; }
html.agi .badge { background: var(--e4); color: var(--e15); top: -2px; right: -6px; min-width: 18px; height: 18px; line-height: 18px !important; }
html.agi .meter { height: 10px; border: 2px solid var(--ink); background: var(--panel); }
html.agi .meter::after { background: var(--acc); }
html.agi .noimg { background: var(--e1); color: var(--e15); text-transform: none; }
html.agi input, html.agi select, html.agi textarea { background: var(--panel); color: var(--ink); border: 2px solid var(--ink) !important; }

/* ==========================================================================
   STATUS LINE (top) & PARSER (bottom)
   ========================================================================== */
html.agi .topbar { height: var(--top); padding: 0 8px 0 12px; gap: 14px; background: var(--e15); color: var(--e0); border: 0; }
html.agi .topbar a, html.agi .topbar button { color: var(--e0); }
html.agi .brand { gap: 6px; }
html.agi .brand-pixel { height: 14px; color: var(--e0); filter: none; }
html.agi .brand-the, html.agi .brand-word { display: none; }
html.agi .brand-pixel { height: 16px; }
html.agi .agi-score { white-space: nowrap; }
html.agi .agi-menu-btn { border: 2px solid var(--e0); background: var(--e15); color: var(--e0); padding: 0 6px; cursor: pointer; height: 24px; }
html.agi .agi-menu-btn:hover { background: var(--e0); color: var(--e15); }
.agi-menu-btn, .agi-score { display: none; }
html.agi .agi-menu-btn, html.agi .agi-score { display: inline-block; }
html.agi .topnav { margin-left: auto; gap: 0; }
html.agi .tb-btn { height: 24px; padding: 0 8px; border: 0; background: none; color: var(--e0); }
html.agi .tb-btn:hover, html.agi .tb-btn[aria-expanded="true"] { background: var(--e0); color: var(--e15); }
html.agi .tb-btn[aria-pressed="true"]:not(.look-btn) { background: none; color: var(--e0); }
html.agi .tb-btn[aria-pressed="true"]:not(.look-btn):hover { background: var(--e0); color: var(--e15); }
html.agi #btn-sound .tb-label::after { content: ":off"; }
html.agi #btn-sound[aria-pressed="true"] .tb-label::after { content: ":on"; }
/* the switch */
.look-btn .look-to-modern { display: none; }
.look-btn .look-to-agi { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--mono); letter-spacing: .08em; }
.look-btn .look-to-agi .ico { width: 16px; height: 16px; }
html.agi .look-btn .look-to-agi { display: none; }
html.agi .look-btn .look-to-modern { display: inline-flex; gap: 0; align-items: center; }
html.agi .look-btn .look-to-modern { font-size: 0 !important; }
html.agi .look-btn b { background: var(--e0); color: var(--e15); padding: 0 6px; margin-left: 0; }
html.agi .look-btn i { border: 2px solid var(--e0); padding: 0 6px; margin-left: 4px; line-height: 16px !important; }
html.agi .look-btn:hover { background: none !important; color: var(--e0) !important; }
html.agi .look-btn:hover i { background: var(--e0); color: var(--e15); }

/* the parser lives on the bottom line, like in the games */
html.agi .parser {
  position: fixed; left: 50%; right: auto; bottom: 10px; z-index: 55; width: min(760px, calc(100vw - 24px)); height: 34px; max-width: none; margin: 0;
  transform: translateX(-50%); padding: 0 10px; background: var(--e0); border: 2px solid var(--e7); box-shadow: 6px 6px 0 rgba(85, 85, 85, .5);
}
html.agi .parser:focus-within { border-color: var(--e15); box-shadow: 6px 6px 0 rgba(85, 85, 85, .5); }
html.agi .stage::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: var(--pbar); background: var(--e0); border-top: 2px solid var(--e8); z-index: 1; pointer-events: none; }
html.agi .parser-prompt { color: var(--e15); margin-right: 0; }
html.agi .parser input { color: var(--e15); caret-color: var(--e15); border: 0 !important; background: transparent; padding-left: 4px; }
html.agi .parser input::placeholder { color: var(--e8); }
html.agi .parser-results {
  position: absolute; top: auto; bottom: calc(100% + 12px); left: -2px; right: auto; width: min(760px, calc(100vw - 24px));
  max-height: min(64vh, 560px); padding: 16px 14px;
}
html.agi .pr-msg { color: var(--e0); padding: 6px 10px; }
html.agi .pr-item { padding: 6px 8px; }
html.agi .pr-item[aria-selected="true"], html.agi .pr-item:hover { background: var(--e0); color: var(--e15); }
html.agi .pr-item[aria-selected="true"] .pr-meta, html.agi .pr-item:hover .pr-meta,
html.agi .pr-item[aria-selected="true"] .pr-snip, html.agi .pr-item:hover .pr-snip { color: var(--e7); }
html.agi .pr-thumb { width: 32px; height: 40px; background: var(--e7); border: 2px solid var(--e0); }
html.agi .pr-cmd .pr-thumb { background: none; border: 0; color: inherit; }
html.agi .pr-meta { color: var(--e1); }
html.agi .pr-head { border-top: 2px dotted var(--e0); color: var(--e4); text-transform: none; }
html.agi .pr-snip mark { background: var(--e14); color: var(--e0); }
html.agi .pr-pending { color: var(--e8); }
html.agi .parser-results.egg .pr-msg { color: var(--e4); animation: none; }

/* filters drop down like a menu */
html.agi .filters { background: var(--e15); color: var(--e0); border-bottom: 2px solid var(--e0); box-shadow: 0 8px 0 rgba(0, 0, 0, .55);
  --ink: var(--e0); --muted: var(--e8); --acc: var(--e4); --line: var(--e0); --faint: var(--e7); --panel: var(--e15); }
html.agi .fgroup h3 { color: var(--e4); text-transform: none; }
html.agi .fchip .n { color: inherit; opacity: .7; margin-left: 2px; }
html.agi .fchip .n::before { content: "("; } html.agi .fchip .n::after { content: ")"; }

/* ==========================================================================
   STAGE, TIMELINE & MINIMAP
   ========================================================================== */
html.agi .stage { bottom: var(--pbar); }
html.agi .minimap { background: var(--e0); border-top: 2px solid var(--e8); }
html.agi .minimap canvas { image-rendering: pixelated; }
html.agi .zoombar { background: var(--e15); border: 2px solid var(--e0); box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); }
html.agi .zbtn { color: var(--e0); height: 30px; width: 34px; }
html.agi .zbtn.zfit { width: 48px; border-color: var(--e0); border-width: 0 2px; }
html.agi .zbtn:hover { background: var(--e0); color: var(--e15); }

/* the opening "room": a painted Sierra valley behind the welcome text */
/* the painted Sierra valley is a backdrop behind the whole timeline. It slides
   much slower than the covers (parallax): --agi-px is set while the timeline scrolls */
html.agi .stage > .scene {
  display: block; will-change: background-position; position: absolute; left: 0; right: 0; top: 0; bottom: var(--mini); pointer-events: none;
  /* over the timeline itself the picture is dimmed by a black layer; the opening
     "room" before the timeline starts stays clear (--agi-dark-x follows the scroll) */
  background:
    var(--agi-scene-ega, var(--agi-scene, none)) repeat-x;
  background-size: auto 100%; background-position: var(--agi-px, 0px) 100%;
  image-rendering: pixelated;
}
/* the shared picture is recoloured; a picture uploaded for CGA or Hercules only is shown as it is */
html.agi.agi-cga .stage > .scene { filter: var(--agi-cga-filter, grayscale(1) contrast(1.4) sepia(1) hue-rotate(250deg) saturate(3)); }
html.agi.agi-herc .stage > .scene { filter: var(--agi-herc-filter, grayscale(1) sepia(1) saturate(2.4) brightness(.9)); }
html.agi .hero-card { padding-top: 28px; }
html.agi .hero-main { padding: 26px 30px 24px; }
html.agi .hero-title { font-size: 32px !important; background: none; -webkit-text-fill-color: currentColor; color: var(--e0); margin-bottom: 14px; text-transform: uppercase; }
html.agi .hero-tagline { color: var(--e4); text-transform: none; }
html.agi .hero-intro { color: var(--e0); }
html.agi .hero-stats { color: var(--e8); }
html.agi .hero-stats strong { color: var(--e0); }
html.agi .hero-hint { color: var(--e8); }
html.agi .hero-side { gap: 26px; padding-top: 0; }
html.agi .story-card { padding: 22px 24px 20px; transform: none !important; }
html.agi .story-card:hover { box-shadow: 8px 8px 0 rgba(0, 0, 0, .55) !important; }
html.agi .story-kicker { color: var(--e1); }
html.agi .story-title { color: var(--e0); }
html.agi .story-excerpt { color: var(--e0); -webkit-mask-image: none; mask-image: none; -webkit-line-clamp: 4; }
html.agi .story-more { color: var(--e4); }
html.agi .otd { padding: 20px 24px; }
html.agi .otd h2 { color: var(--e1); text-transform: uppercase; }
html.agi .otd a { color: var(--e0); }
html.agi .otd a:hover { background: var(--e0); color: var(--e15); }
html.agi .otd-year { color: var(--e4); }
html.agi .end-card { padding: 26px 30px; color: var(--e0); }
html.agi .end-pixel { color: var(--e4); }

/* big year in the background, in giant pixels */
html.agi .bigyear { color: var(--e15); opacity: .38; }
html.agi .bigyear .yr { font-family: "Sierra AGI", "AGI 8x8", monospace !important; font-size: 256px !important; line-height: 1 !important; }
/* Hercules: the year in the SCI font — 576 px = exactly 36 screen pixels per font pixel, so every pixel is the same size */
html.agi.agi-herc .bigyear .yr { font-family: GloryQuest, "Sierra AGI", monospace !important; font-size: 576px !important; line-height: .62 !important; }
@media (max-height: 760px) { html.agi.agi-herc .bigyear .yr { font-size: 288px !important; } }
@media (max-height: 760px) { html.agi .bigyear .yr { font-size: 128px !important; } }
html.agi.agi-cga .bigyear, html.agi.agi-herc .bigyear { color: var(--e8); opacity: .35; }
html.agi.agi-herc .bigyear { color: var(--e7); opacity: .3; }   /* amber — the dark brown vanished under the overlay */

/* era band: solid EGA colour bars */
html.agi .era-seg { top: 8px; height: 24px; background: var(--ec); border: 0; color: var(--e15); }
html.agi .era-seg:hover { outline: 2px solid var(--e15); outline-offset: -2px; }
html.agi .era-label { line-height: 24px !important; text-transform: uppercase; padding: 0 8px; }
html.agi.agi-cga .era-seg, html.agi.agi-herc .era-seg { color: var(--e0); }
/* tracks and ruler */
html.agi .tl-trackline { height: 2px; background: repeating-linear-gradient(90deg, var(--e8) 0 4px, transparent 4px 8px); }
html.agi .tl-tracklabel { color: var(--e7); text-transform: uppercase; }
html.agi .tk { width: 2px; background: var(--e8); }
html.agi .tk.major { background: var(--e7); }
html.agi .tk-label { color: var(--e7); }
html.agi .tk-label.major { color: var(--e15); }

/* covers on the timeline */
html.agi .tl-card { background: var(--e8); box-shadow: 4px 4px 0 rgba(0, 0, 0, .7); }
html.agi .tl-card img { background: var(--e8); }
html.agi .tl-card:hover, html.agi .tl-card:focus-visible, html.agi .tl-card.hl { box-shadow: 0 0 0 3px var(--e14), 6px 6px 0 3px rgba(0, 0, 0, .7); outline: none; }
html.agi .tl-card.hl { animation: agi-blink .5s steps(1) 6; }
@keyframes agi-blink { 50% { box-shadow: 0 0 0 3px var(--e12); } }
html.agi .tl-card.mini { box-shadow: none; }
html.agi .tl-card.dim { opacity: .25; filter: grayscale(1); }
html.agi .tl-card.ph::before { width: 8px; height: 8px; background: var(--e14); box-shadow: 0 0 0 2px var(--e0); }
html.agi .own { width: 18px; height: 18px; background: var(--e2); color: var(--e15); box-shadow: 0 0 0 2px var(--e0); }
html.agi.agi-herc .own { background: var(--e15); color: var(--e0); }
html.agi .tip-own { color: var(--e2); }
html.agi .tl-more { border: 2px dashed var(--e7); background: var(--e0); color: var(--e15); }
html.agi .tl-more:hover { border-color: var(--e14); color: var(--e14); }
html.agi .tl-pin { width: 6px; height: 6px; box-shadow: none; }

/* hover card */
html.agi .tip { padding: 18px 18px 16px; grid-template-columns: 72px 1fr; transition: none; translate: none; }
html.agi .tip-img { width: 72px; height: 92px; border: 2px solid var(--e0); background: var(--e7); }
html.agi .tip h3 { color: var(--e0); }
html.agi .tip .tip-sub, html.agi .tip .tip-meta, html.agi .tip .tip-mf { color: var(--e8); }
html.agi .tip .tip-date { color: var(--e4); }
html.agi .tip .tip-sum { color: var(--e0); }
html.agi .tip .tip-kind { color: var(--e1); text-transform: uppercase; }

/* era notes */
html.agi .era-card { padding: 16px 40px 16px 18px; bottom: calc(var(--mini) + 50px); }
html.agi .era-years { color: var(--e4); }
html.agi .era-name { color: var(--e0); }
html.agi .era-text { color: var(--e0); }
html.agi .era-hide { color: var(--e0); top: 10px; right: 10px; }

/* ==========================================================================
   LIST VIEW (feed)
   ========================================================================== */
html.agi .feed { background: var(--e0); }
html.agi .feed .hero-card { padding-top: 28px; }
html.agi .feed-era { border-top: 2px dotted var(--e8); }
html.agi .feed-era h2 { font-size: 32px !important; color: var(--e15); }
html.agi .feed-era p { color: var(--e7); }
html.agi .feed-era .era-years { color: var(--e14); }
html.agi .feed-year::before { width: 2px; background: var(--e8); }
html.agi .feed-yh { background: var(--e0); }
html.agi .feed-yh svg { color: var(--e14); }
html.agi .feed-yh small { color: var(--e7); }
html.agi .feed-card { color: var(--e15); }
html.agi .feed-card .fc-img { background: var(--e8); box-shadow: 4px 4px 0 rgba(0, 0, 0, .7); transform: none !important; }
html.agi .feed-card:hover .fc-img { box-shadow: 0 0 0 3px var(--e14), 6px 6px 0 3px rgba(0, 0, 0, .7); }
html.agi .feed-card .fc-meta { color: var(--e7); }
html.agi .feed-card.rerelease .fc-img { outline: 2px dashed var(--e7); opacity: .8; }
html.agi .list-title { font-size: 32px !important; }

/* ==========================================================================
   LIGHTBOX — one big message window
   ========================================================================== */
html.agi .lb-backdrop { background: repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 4px 4px, rgba(0, 0, 0, .62); animation: none; }
html.agi .lb-frame { animation: none; }
html.agi .lb-dialog, html.agi .lb-dialog.tinted { background: var(--e15) !important; clip-path: none; scrollbar-color: var(--e0) var(--e7); }
html.agi .lb-loading { background: rgba(255, 255, 255, .6); }
html.agi .lb-loading span { border: 4px solid var(--e7); border-top-color: var(--e4); animation: spin .8s steps(4) infinite; }
html.agi .lb-content.swap { animation: none; }
html.agi .lb-top, html.agi .lb-dialog.tinted .lb-top { background: var(--e15) !important; padding: 16px 20px 8px; }
html.agi .lb-sections, html.agi .lb-dialog.tinted .lb-sections { top: 56px; background: var(--e0) !important; border: 0; margin: 0 8px 8px; padding: 2px 10px; gap: 2px; }
html.agi .lb-sections a { color: var(--e15); padding: 2px 10px; }
html.agi .lb-sections a:hover { color: var(--e14); }
html.agi .lb-sections a.on { background: var(--e15); color: var(--e0); }
html.agi .lb-hero { padding: 10px 32px 26px; }
html.agi .lb-cover { border: 2px solid var(--e0); background: var(--e7); box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); transform: none !important; }
html.agi .kicker, html.agi .ed-current, html.agi .ed-notes-title, html.agi .sec-title { color: var(--e4); text-transform: uppercase; }
html.agi .lb-title { font-size: 32px !important; color: var(--e0); text-transform: uppercase; }
html.agi .lb-subtitle { color: var(--e4); }
html.agi .facts { border-top: 2px dotted var(--e0); }
html.agi .facts dt { color: var(--e8); text-transform: none; }
html.agi .facts dd, html.agi .facts dd a { color: var(--e0); }
html.agi .facts dd a:hover { background: var(--e0); color: var(--e15); }
html.agi .ed-notes-box { border-top: 2px dotted var(--e0); }
html.agi .ed-notes.prose, html.agi .lb-summary { color: var(--e0); }
html.agi .inside-box { border: 2px solid var(--e4); background: none; }
html.agi .inside-label { color: var(--e4); }
html.agi .completeness, html.agi .completeness strong { color: var(--e0); }
html.agi .ed-strip { padding: 0 20px 12px; }
html.agi .ed-tab { border: 2px solid var(--e0); background: var(--e15); color: var(--e0); }
html.agi .ed-tab[aria-selected="true"] { background: var(--e0); color: var(--e15); border-color: var(--e0); }
html.agi .ed-tab[aria-selected="true"] .ed-meta { color: var(--e7); }
html.agi .ed-meta { color: var(--e8); }
html.agi .ed-thumb { border: 2px solid currentColor; background: var(--e7); }
html.agi .lb-body { padding: 4px 32px 30px; }
html.agi .lb-sec + .lb-sec { border-top: 2px dotted var(--e0); }
html.agi .sec-title::after { height: 2px; background: repeating-linear-gradient(90deg, var(--e0) 0 4px, transparent 4px 8px); }
html.agi h3.sub { color: var(--e8); }
html.agi .prose { color: var(--e0); line-height: 1.5 !important; max-width: 72ch; }
html.agi .prose * { line-height: 1.5 !important; }
html.agi .prose h2, html.agi .prose h3, html.agi .prose h4 { color: var(--e4); text-transform: uppercase; }
html.agi .prose blockquote { border-left: 4px solid var(--e4); color: var(--e0); }
html.agi .prose hr { height: 2px; background: repeating-linear-gradient(90deg, var(--e0) 0 4px, transparent 4px 8px); }
html.agi .prose img, html.agi .prose .md-figure img { box-shadow: 6px 6px 0 rgba(0, 0, 0, .35); border: 2px solid var(--e0); }
html.agi .prose figcaption { color: var(--e8); }
/* the drop cap, in big pixel letters */
html.agi .story > p:first-of-type:not(:has(> em:only-child))::first-letter {
  float: left; font-family: var(--agi-font) !important; font-size: 64px !important; font-weight: 400 !important; font-style: normal !important;
  line-height: 64px !important; margin: 6px 12px 0 0; padding: 0; color: var(--e4);
}
html.agi .prose a, html.agi .lb-dialog a:not(.btn):not(.chip-link):not(.tag):not(.card):not(.lb-step) { color: var(--e1); }
html.agi .yt { background: var(--e0); border: 2px solid var(--e0); }
html.agi .yt-icon { background: var(--e4); box-shadow: none; }
html.agi .yt-icon::after { border-left-color: var(--e15); }
html.agi .yt-empty { background: var(--e1); color: var(--e15); }
html.agi .video figcaption, html.agi .video figcaption strong { color: var(--e0); }
html.agi :is(.shot, .photo) { border: 2px solid var(--e0); background: var(--e7); box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); transform: none !important; }
html.agi :is(.shot, .photo):hover { outline: 3px solid var(--e4); outline-offset: 0; }
html.agi .photo-cap { color: var(--e8); }
html.agi .item { border: 2px solid var(--e0); background: var(--e15); box-shadow: none; }
html.agi .item-head h3 { color: var(--e0); }
html.agi .item-meta, html.agi .item-details dt { color: var(--e8); }
html.agi .item-details dd { color: var(--e0); }
html.agi .col-bar, html.agi .col-showing, html.agi .col-empty { color: var(--e0); }
html.agi .credits a { color: var(--e0); }
html.agi .credits a:hover { background: var(--e0); color: var(--e15); }
html.agi .credits small { color: var(--e8); }
html.agi .avatar { border: 2px solid var(--e0); background: var(--e7); }
html.agi .card { color: var(--e0); }
html.agi .card-img { border: 2px solid var(--e0); background: var(--e7); box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); transform: none !important; }
html.agi .card:hover .card-img { outline: 3px solid var(--e4); }
html.agi .card-meta, html.agi .card-plat { color: var(--e8); }
html.agi .lb-foot { border-top: 2px dotted var(--e0); }
html.agi .lb-step { border: 2px solid var(--e0); background: var(--e15); color: var(--e0); }
html.agi .lb-step:hover { background: var(--e0); color: var(--e15); }
html.agi .lb-step small { color: inherit; opacity: .7; }
html.agi .var-group, html.agi .var-none { color: var(--e0); }
html.agi .read-btn { border: 2px solid var(--e0); }
html.agi .stats strong { color: var(--e4); }

/* collector's checklist = the AGI inventory screen */
html.agi .checklist .lb-title { font-size: 0 !important; text-transform: none; text-align: center; }
html.agi .checklist .lb-title::before { content: "You are carrying:"; font-size: 32px !important; }
html.agi .ck-intro { color: var(--e8); text-align: center; max-width: none; }
html.agi .ck-stats li { background: none; border: 2px solid var(--e0); }
html.agi .ck-stat-n { font-size: 32px !important; color: var(--e0); }
html.agi .ck-stat-n small, html.agi .ck-stat-l { color: var(--e8); }
html.agi .ck-tools { background: var(--e15); border-bottom: 2px dotted var(--e0); }
html.agi .ck-year-h { color: var(--e4); }
html.agi .ck-title { border-bottom: 0; padding: 2px 0; }
html.agi .ck-row[data-own="0"] .ck-name, html.agi .ck-row[data-own="0"] .ck-ed { color: var(--e8); }
html.agi .ck-name, html.agi .ck-ed { color: var(--e0); }
html.agi .ck-name:hover, html.agi .ck-ed:hover { background: var(--e0); color: var(--e15) !important; }
html.agi .ck-sub, html.agi .ck-meta { color: var(--e8); }
html.agi .ck-mark { width: 14px; height: 14px; border: 2px solid var(--e8); background: none; }
html.agi .ck-mark.on { background: var(--e0); border-color: var(--e0); }
html.agi .ck-mark svg { display: none; }

/* the quiz keeps its own AGI screen; inside the white window it gets a black border */
html.agi .qz-screen { border: 2px solid var(--e0); }
html.agi .agi-title { font-size: 16px !important; }

/* welcome window */
html.agi .wl-backdrop { background: repeating-conic-gradient(#000 0 25%, transparent 0 50%) 0 0 / 4px 4px, rgba(0, 0, 0, .8); animation: none; }
html.agi .wl-dialog { padding: 0 40px 34px; animation: none; }
html.agi .wl-dialog .prose { color: var(--e0); }
html.agi .wl-x { top: 14px; right: 14px; }

/* reader and viewer bars */
html.agi :is(.rd-bar, .v-bar) { background: var(--e15); color: var(--e0); border: 0; --ink: var(--e0); --panel: var(--e15); --acc: var(--e4); --muted: var(--e8); }
html.agi .rd-title, html.agi .v-caption { color: var(--e0); }
html.agi .rd-count, html.agi .v-count { color: var(--e4); }
html.agi .reader, html.agi .viewer { background: var(--e0); }
html.agi .v-nav { background: var(--e15); color: var(--e0); width: 40px; height: 56px; }
html.agi .v-nav:hover { background: var(--e0); color: var(--e14); outline: 2px solid var(--e15); }
html.agi .rd-pages > .rd-page { box-shadow: 8px 8px 0 rgba(255, 255, 255, .15); }

/* 404 / "you died" page */
html.agi .death { color: var(--e15); }
html.agi .death-btns a, html.agi .death-btns button { border: 2px solid var(--e15); background: var(--e0); color: var(--e15); }
html.agi .death-btns a:hover, html.agi .death-btns button:hover { background: var(--e15); color: var(--e0); }

/* ==========================================================================
   MENU BAR (Esc) & MESSAGE BOX
   ========================================================================== */
.agi-menubar { position: fixed; left: 0; right: 0; top: 0; z-index: 300; height: var(--top); background: var(--e15); color: var(--e0); }
.agi-menubar[hidden] { display: none; }
.agi-mts { display: flex; height: 100%; align-items: center; padding: 0 8px; }
.agi-mt { height: 24px; padding: 0 10px; border: 0; background: none; color: var(--e0); cursor: pointer; }
.agi-mt.on { background: var(--e0); color: var(--e15); }
.agi-mi:hover:not(.sel) { background: none; color: var(--e0); }
.agi-drop { position: absolute; top: calc(var(--top) - 2px); min-width: 280px; padding: 6px 4px; background: var(--e15); border: 2px solid var(--e0);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .55) !important; }
.agi-mi { display: flex; width: 100%; align-items: center; gap: 4px; padding: 2px 8px; border: 0; background: none; color: var(--e0); cursor: pointer; text-align: left; white-space: nowrap; }
.agi-mi.sel, .agi-mi:focus { background: var(--e0); color: var(--e15); outline: none; }
.agi-ck { width: 16px; flex: none; }
.agi-ml { flex: 1; }
.agi-mk { margin-left: 24px; }
.agi-sep { height: 2px; margin: 6px 8px; background: repeating-linear-gradient(90deg, var(--e8) 0 4px, transparent 4px 8px); }
.agi-msg { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 20px; }
.agi-msg-box { position: relative; max-width: min(560px, 100%); padding: 26px 30px; outline: none; white-space: normal; }
html:not(.agi) .agi-menubar, html:not(.agi) .agi-msg { display: none !important; }

/* ==========================================================================
   PHONES
   ========================================================================== */
@media (max-width: 1280px) {
  html.agi .agi-score { display: none; }
}
@media (max-width: 860px) {
  html.agi .agi-score, html.agi .brand-the, html.agi .brand-word { display: none; }
  html.agi .topbar { gap: 8px; }
  html.agi .tb-btn { padding: 0 5px; }
  html.agi .tb-btn .tb-label { display: none; }
  html.agi #btn-look b { margin: 0; }
  html.agi #btn-look i { display: none; }
  html.agi .hero-title, html.agi .lb-title, html.agi .feed-era h2 { font-size: 24px !important; }
  html.agi .lb-hero { padding: 10px 18px 20px; }
  html.agi .lb-body { padding: 4px 18px 24px; }
}
@media (max-width: 860px) {
  html.agi .tb-btn .ico { display: block !important; }
  html.agi .topnav .ico { display: block !important; }
}

/* ---------- fine-tuning ---------- */
html.agi .tip { width: 480px; }
html.agi .tip > * { min-width: 0; overflow-wrap: anywhere; }
html.agi .tk-label:not(.major) { font-size: 8px !important; }
html.agi .lb-sections a { color: var(--e15) !important; text-decoration: none; }
html.agi .lb-sections a.on { color: var(--e0) !important; }
html.agi .lb-sections a:hover:not(.on) { color: var(--e14) !important; }
html.agi .photo-cap { background: var(--e0); color: var(--e15); padding: 2px 6px; }
html.agi .ed-tab { max-width: 360px; }
html.agi .parser input:focus-visible { outline: none; }
html.agi .feed .end-card { position: relative !important; margin: 40px auto; max-width: 560px; padding: 26px 30px !important; }
html.agi .feed-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 560px) { html.agi .feed-grid { grid-template-columns: repeat(2, 1fr); } }
html.agi .lb-dialog a.ck-name, html.agi .lb-dialog a.ck-ed { color: var(--e0); text-decoration: none; }
html.agi .lb-dialog .ck-row[data-own="0"] a.ck-name, html.agi .lb-dialog .ck-row[data-own="0"] a.ck-ed { color: var(--e8); }
html.agi .lb-dialog a.ck-name:hover, html.agi .lb-dialog a.ck-ed:hover { background: var(--e0); color: var(--e15); }
html.agi .lb-dialog a.iconbtn { color: var(--e0); }
html.agi .lb-dialog a.iconbtn:hover { color: var(--e15); }
html.agi.agi-herc :is(.hero-main, .story-card, .otd, .news, .lb-frame, .tip, .era-card, .parser-results, .wl-dialog, .end-card, .agi-msg-box, .filters, .agi-menubar, .topbar) {
  --e1: #000000; --e2: #000000; --e3: #000000; --e4: #000000; --e5: #000000; --e6: #000000; --e8: #000000; --e7: #7a4f00; }

/* ---------- pixel icons (replace the smooth line icons in the AGI look) ---------- */
html.agi svg.ico, html.agi .own svg, html.sci svg.ico, html.sci .own svg { background: currentColor; -webkit-mask: var(--px-ico) center / contain no-repeat; mask: var(--px-ico) center / contain no-repeat; }
html.agi svg.ico > *, html.agi .own svg > *, html.sci svg.ico > *, html.sci .own svg > * { display: none; }
html.agi svg.ico:not([class*="ico-"]), html.sci svg.ico:not([class*="ico-"]) { background: none; -webkit-mask: none; mask: none; }
html.agi svg.ico:not([class*="ico-"]) > *, html.sci svg.ico:not([class*="ico-"]) > * { display: inline; }
html.agi .iconbtn svg.ico, html.agi .tag svg.ico { width: 16px; height: 16px; }
html.agi svg.ico-close, html.sci svg.ico-close { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-prev, html.sci svg.ico-prev { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-next, html.sci svg.ico-next { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-plus, html.sci svg.ico-plus { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-minus, html.sci svg.ico-minus { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-fit, html.sci svg.ico-fit { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3Crect x='0' y='7' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3Crect x='5' y='7' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-zoom, html.sci svg.ico-zoom { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='6' y='7' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-play, html.sci svg.ico-play { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-link, html.sci svg.ico-link { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='1' y='7' width='1' height='1'/%3E%3Crect x='2' y='7' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-box, html.sci svg.ico-box { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-book, html.sci svg.ico-book { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-t-game, html.sci svg.ico-t-game { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-t-application, html.sci svg.ico-t-application { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='7' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='7' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='7' y='4' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-t-newsletter, html.sci svg.ico-t-newsletter { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-t-catalog, html.sci svg.ico-t-catalog { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-t-memorabilia, html.sci svg.ico-t-memorabilia { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi .own svg, html.sci .own svg { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-filter, html.sci svg.ico-filter { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='3' y='7' width='1' height='1'/%3E%3Crect x='4' y='7' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-list, html.sci svg.ico-list { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='4' y='1' width='1' height='1'/%3E%3Crect x='5' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='7' y='1' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='7' y='3' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='1' y='5' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='4' y='5' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='7' y='5' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-sound, html.sci svg.ico-sound { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='3' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='1' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='1' y='3' width='1' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='5' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='1' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='3' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='2' y='5' width='1' height='1'/%3E%3Crect x='3' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi svg.ico-checklist, html.sci svg.ico-checklist { --px-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='0' width='1' height='1'/%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='3' y='0' width='1' height='1'/%3E%3Crect x='4' y='0' width='1' height='1'/%3E%3Crect x='5' y='0' width='1' height='1'/%3E%3Crect x='6' y='0' width='1' height='1'/%3E%3Crect x='0' y='1' width='1' height='1'/%3E%3Crect x='6' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='4' y='2' width='1' height='1'/%3E%3Crect x='5' y='2' width='1' height='1'/%3E%3Crect x='6' y='2' width='1' height='1'/%3E%3Crect x='0' y='3' width='1' height='1'/%3E%3Crect x='6' y='3' width='1' height='1'/%3E%3Crect x='0' y='4' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='4' width='1' height='1'/%3E%3Crect x='6' y='4' width='1' height='1'/%3E%3Crect x='0' y='5' width='1' height='1'/%3E%3Crect x='6' y='5' width='1' height='1'/%3E%3Crect x='0' y='6' width='1' height='1'/%3E%3Crect x='1' y='6' width='1' height='1'/%3E%3Crect x='2' y='6' width='1' height='1'/%3E%3Crect x='3' y='6' width='1' height='1'/%3E%3Crect x='4' y='6' width='1' height='1'/%3E%3Crect x='5' y='6' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3C/svg%3E"); }
html.agi .own { width: 20px; height: 20px; }
html.agi .own svg { width: 16px !important; height: 16px !important; }
html.agi .tl-card.mini .own, html.agi .tl-card.ghost .own { width: 12px; height: 12px; }
html.agi .tl-card.mini .own svg, html.agi .tl-card.ghost .own svg { width: 8px !important; height: 8px !important; }
html.agi .feed-card .own { width: 28px; height: 28px; }
html.agi .feed-card .own svg { width: 24px !important; height: 24px !important; }
html.agi .logomark img, html.agi .era-logo { image-rendering: pixelated; }

/* ---------- status line: just the menu, the switch and the score ---------- */
html.agi .topbar .brand, html.agi .topnav { display: none !important; }
html.agi .agi-score { margin-left: auto !important; }
html.agi .topbar { gap: 0; padding: 0 12px 0 4px; }
html.agi .agi-menu-btn { border: 0; height: 24px; padding: 0 8px; }
html.agi .topnav { margin-left: auto; }
html.agi .agi-score { order: 10; margin-left: 18px; display: inline-block !important; }
@media (max-width: 560px) { html.agi .agi-score { margin-left: 8px; } }
html.agi .wl-looks-label { color: var(--e8); text-transform: none; }
html.agi.agi-cga .stage > .scene, html.agi.agi-herc .stage > .scene {
  background:
    var(--agi-scene, none) repeat-x;
  background-size: auto 100%; background-position: var(--agi-px, 0px) 100%;
}
html.agi.agi-cga .stage > .scene { background-image: var(--agi-scene-cga, var(--agi-scene, none)); }
html.agi.agi-herc .stage > .scene { background-image: var(--agi-scene-herc, var(--agi-scene, none)); }
/* year and month labels: a little higher, so the bottom of the letters is never cut off */
html.agi .tk-label { line-height: 16px !important; margin-top: -6px; }
html.agi .tl-tracklabel { margin-left: 48px; }   /* three characters in from the edge */
/* zoom buttons: room for "All" */
html.agi .zbtn.zfit { width: auto; min-width: 64px; padding: 0 10px; }
/* credits: wider boxes for the 16px pixel letters, and long roles wrap inside the frame */
/* each box is exactly as wide as its name and role, which always stay on one line each */
html.agi .credits { display: flex; flex-wrap: wrap; gap: 10px; }
html.agi .credits li { flex: 0 0 auto; max-width: 100%; }
html.agi .credits a { border: 2px solid var(--e7); padding: 8px 14px 8px 8px; }
html.agi .credits strong, html.agi .credits small { white-space: nowrap; }
html.agi .lb-dialog .credits a { color: var(--e0) !important; text-decoration: none; }
html.agi .lb-dialog .credits a:hover { background: var(--e0); color: var(--e15) !important; border-color: var(--e0); }
html.agi .lb-dialog .credits a:hover small { color: var(--e7); }
html.agi .bigyear.away { opacity: 0; }
html.agi.agi-cga .bigyear.away, html.agi.agi-herc .bigyear.away { opacity: 0; }

/* the dark layer over the timeline part of the backdrop (its own layer, so the CGA and
   Hercules recolouring of the picture doesn't darken it further). Logo and year sit above it. */
html.agi .bgfx, html.sci .bgfx {
  display: block !important; position: absolute; left: 0; right: 0; top: 0; bottom: var(--mini); pointer-events: none; filter: none !important;
  background: linear-gradient(to right, transparent calc(var(--agi-dark-x, 100vw) - 96px), rgba(var(--ov-rgb), var(--ov-a)) var(--agi-dark-x, 100vw)) no-repeat;
}
/* colour and amount per look: Admin → Site settings → Retro look (VGA visitors can adjust theirs in the control panel) */
html.agi .bgfx { --ov-rgb: var(--ov-ega-rgb, 0, 0, 0); --ov-a: var(--ov-ega-a, .78); }
html.agi.agi-cga .bgfx { --ov-rgb: var(--ov-cga-rgb, 0, 0, 0); --ov-a: var(--ov-cga-a, .78); }
html.agi.agi-herc .bgfx { --ov-rgb: var(--ov-herc-rgb, 0, 0, 0); --ov-a: var(--ov-herc-a, .78); }
html.sci .bgfx { --ov-rgb: var(--ov-vga-rgb, 0, 0, 0); --ov-a: var(--retro-dim, var(--ov-vga-a, .78)); }
html.agi .bgfx > *, html.sci .bgfx > * { display: none !important; }

/* ---------- Hercules: hierarchy without colour ----------
   The Hercules/MDA screen had one colour but four text styles: normal, bright, underlined and
   reverse video. Inside the amber windows they now do the work the colours do in CGA and EGA:
   titles in reverse video, labels dimmed, subtitles and dates underlined, running text normal. */
html.agi.agi-herc { --herc-dim: #7a4f00; }
/* titles: black bar, amber letters */
html.agi.agi-herc .tip h3,
html.agi.agi-herc .lb-frame .lb-title,
html.agi.agi-herc .lb-frame .sec-title {
  display: inline; background: #000; color: #ffb000 !important; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
html.agi.agi-herc .lb-frame .lb-title { line-height: 1.7 !important; padding: 6px 12px; }
html.agi.agi-herc .lb-frame .sec-title { display: inline-block; }
html.agi.agi-herc .lb-frame .sec-title::after { display: none; }
/* labels: dimmed */
html.agi.agi-herc .tip .tip-kind,
html.agi.agi-herc .tip .tip-meta,
html.agi.agi-herc .tip .tip-mf,
html.agi.agi-herc .lb-frame .facts dt,
html.agi.agi-herc .lb-frame dl dt,
html.agi.agi-herc .lb-frame .kicker,
html.agi.agi-herc .lb-frame .lb-crumbs .tag,
html.agi.agi-herc .lb-frame .card-meta,
html.agi.agi-herc .lb-frame .credits small { color: var(--herc-dim) !important; }
html.agi.agi-herc .lb-frame .lb-crumbs .tag { border-color: var(--herc-dim); }
/* subtitles, dates, edition name and sub-headings: underlined */
html.agi.agi-herc .tip .tip-sub,
html.agi.agi-herc .tip .tip-date,
html.agi.agi-herc .lb-frame .lb-subtitle,
html.agi.agi-herc .lb-frame .ed-current,
html.agi.agi-herc .lb-frame .ed-notes-title,
html.agi.agi-herc .lb-frame h3.sub,
html.agi.agi-herc .lb-frame .item-head h3 {
  color: #000 !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
/* in the collection: bright bar */
html.agi.agi-herc .tip .tip-own { color: #000 !important; }

/* Hercules: finer text in the hover card and the information card — the SCI letters (thin, proportional),
   like the sharper text of the Hercules screen, instead of the chunky AGI letters */
html.agi.agi-herc :is(.tip, .lb-frame) :is(*, *::before, *::after) {
  font-family: "GloryQuest", "SCI fill", "Courier New", monospace !important; font-size: 32px !important; line-height: 24px !important; letter-spacing: 0 !important;
}
html.agi.agi-herc .lb-frame .lb-title { font-size: 64px !important; line-height: 56px !important; padding: 2px 12px 6px; }
/* title on missing-cover artwork: the AGI letters at their sharp small size */
html.agi .tl-card .miss-t { font-size: 8px !important; line-height: 10px !important; text-transform: uppercase; color: var(--e15); text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; }
html.agi .tl-card .noimg, html.agi .tl-card .noimg * { font-size: 8px !important; line-height: 10px !important; text-transform: uppercase; overflow-wrap: anywhere; }

/* landing page News block: a window like "This month in Sierra history" */
html.agi .news { padding: 20px 24px; }
html.agi .news h2 { color: var(--e1); text-transform: uppercase; }
html.agi .news a, html.agi .news .news-t, html.agi .news .news-x { color: var(--e0); }
html.agi .news a:hover .news-t, html.agi .news a.news-all:hover { background: var(--e0); color: var(--e15); }
html.agi .news-date, html.agi .news a.news-all { color: var(--e4); }
