@font-face { font-family: "Perfectly Nineties"; src: url("fonts/PerfectlyNineties-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "FK Raster"; src: url("fonts/FK-Raster-Grotesk-Compact-Blended.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("fonts/SuisseIntl-Regular-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Suisse Intl"; font-weight: 600; src: url("fonts/SuisseIntl-Medium-latin.woff2") format("woff2"); font-display: swap; }

/* Same paper-and-ink palette as holyarrs.com */
:root {
  --paper: #f4f1ea; --panel: #fbfaf6; --ink: #15181c; --muted: #48515a; --line: #8b8c87; --shadow: #cbc7bf; --accent: #ac261c;
  --green: #2f7d3a; --amber: #b8730a; --blue: #2a5ea8; --purple: #6a3fa0; --teal: #1f7f86; --grey: #6b7177; --red: #ac261c;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #202326; --panel: #282d31; --ink: #f4f1ea; --muted: #c1c8ce; --line: #687178; --shadow: #111518; --accent: #ff9384;
    --green: #6cc77a; --amber: #f0aa46; --blue: #7fa8e8; --purple: #b896f0; --teal: #5fc4cc; --grey: #9aa1a7; --red: #ff9384; }
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--paper); color: var(--ink); font: 15px/1.45 "Suisse Intl", system-ui, sans-serif; }
body { padding: 18px 16px 24px; }

.head { display: flex; gap: 12px; align-items: center; }
.head img { width: 46px; height: 46px; }
h1 { font: 400 30px/1 "Perfectly Nineties", Georgia, serif; letter-spacing: -.5px; }
.note { color: var(--muted); font-size: 12px; margin-top: 4px; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 16px 0 12px; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow); background: var(--panel); }
.tabs button { background: none; border: 0; border-left: 1.5px solid var(--ink); color: var(--ink); padding: 8px 4px; cursor: pointer; text-align: center; }
.tabs button:first-child { border-left: 0; }
.tabs .stage { display: block; font: 13px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; }
.tabs .rel { display: block; font-size: 11px; color: var(--muted); }
.tabs button.on { background: var(--ink); color: var(--paper); }
.tabs button.on .rel { color: var(--paper); opacity: .75; }

.intro { margin-bottom: 14px; }
.intro p { color: var(--muted); font-size: 13px; }
.counts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }

.area { margin-top: 16px; }
.area h2 { display: flex; gap: 8px; align-items: baseline; font: 14px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; }
.area h2 .num { color: var(--muted); }
.item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.item .id { font: 12px "FK Raster", monospace; color: var(--muted); }
.item .title { font-size: 14px; }
.status, .counts span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.dot { width: 9px; height: 9px; display: inline-block; border: 1.5px solid var(--ink); }
.c-green { background: var(--green); } .c-amber { background: var(--amber); } .c-blue { background: var(--blue); }
.c-grey { background: var(--grey); } .c-purple { background: var(--purple); } .c-red { background: var(--red); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 20px; padding-top: 10px; border-top: 1.5px solid var(--ink); color: var(--muted); }
.legend span { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 420px) {
  .item { grid-template-columns: 44px 1fr; }
  .item .tail { grid-column: 2; }
  h1 { font-size: 26px; }
}

.landed { margin-top: 14px; border: 1.5px solid var(--ink); background: var(--panel); box-shadow: 3px 3px 0 var(--shadow); padding: 8px 10px; }
.landed:empty { display: none; }
.landed .label { font: 12px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; color: var(--green); }
.landed-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: baseline; padding-top: 4px; font-size: 13px; }
.landed-row .id { font: 12px "FK Raster", monospace; color: var(--muted); }
.landed-row .when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.item .body { display: flex; flex-direction: column; }
.item .sub { color: var(--muted); font-size: 12px; }
.archive { opacity: .8; }
.archive .title { text-decoration: line-through; text-decoration-color: var(--line); }
.legend { flex-direction: column; }

button.item { width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.item:hover .arrow, button.item:focus-visible .arrow { background: var(--ink); color: var(--paper); }
.item .tail { display: inline-flex; align-items: center; gap: 10px; }
.arrow { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow); font: 13px/1 "FK Raster", monospace; transition: transform .15s; }
.item.open .arrow { transform: rotate(90deg); box-shadow: -2px 2px 0 var(--shadow); }
.item .more { display: none; margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--ink); background: var(--panel); font-size: 13px; }
.item.open .more { display: block; }
.item .more p + p { margin-top: 4px; }
.item .more .stands { color: var(--muted); }

/* Collapsible areas: closed by default, header shows area progress */
.area-head { width: 100%; display: grid; grid-template-columns: 1fr 90px 44px 22px; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1.5px solid var(--ink); padding: 6px 0; color: inherit; cursor: pointer; text-align: left; }
.area-name { display: flex; gap: 8px; align-items: baseline; font: 14px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; }
.area-name .num { color: var(--muted); }
.area-bar { height: 10px; border: 1.5px solid var(--ink); background: var(--panel); box-shadow: 2px 2px 0 var(--shadow); display: block; }
.area-bar i { display: block; height: 100%; background: var(--green); }
.area-count { font: 12px "FK Raster", monospace; color: var(--muted); text-align: right; white-space: nowrap; }
.area-head .arrow { justify-self: end; }
.area-head:hover .arrow { background: var(--ink); color: var(--paper); }
.area.open > .area-head .arrow { transform: rotate(90deg); box-shadow: -2px 2px 0 var(--shadow); }
.area-body { display: none; }
.area.open > .area-body { display: block; }
.area { margin-top: 8px; }
@media (max-width: 420px) { .area-head { grid-template-columns: 1fr 56px 40px 22px; } }

/* ---- Compact layout: fits a tall Reddit post with every section closed ---- */
body { padding: 10px 12px 12px; }
.head { gap: 8px; }
.head img { width: 30px; height: 30px; }
h1 { font-size: 22px; }
.note { font-size: 11px; margin-top: 1px; }
.landed { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; padding: 4px 8px; font-size: 12px; overflow: hidden; white-space: nowrap; }
.landed .label { flex: none; font-size: 11px; }
.landed-text { overflow: hidden; text-overflow: ellipsis; }
.landed-text .id, .landed-text .when { color: var(--muted); font: 11px "FK Raster", monospace; }
.landed-text.in { animation: slide-in .35s ease-out; }
@keyframes slide-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.tabs { margin: 8px 0 6px; }
.tabs button { padding: 5px 2px; }
.tabs .stage { font-size: 12px; }
.tabs .rel { font-size: 10px; line-height: 1.25; }
.intro { margin-bottom: 2px; }
.counts { margin-top: 0; font-size: 11px; }
.area { margin-top: 0; }
.area-head { padding: 3px 0; border-bottom-width: 1px; grid-template-columns: 1fr 70px 34px 18px; gap: 8px; }
.area-name { font-size: 12px; }
.area-bar { height: 8px; }
.area-count { font-size: 11px; }
.area-head .arrow, .item .arrow { width: 16px; height: 16px; font-size: 11px; }
/* Slide open: animate the row height from 0 to its natural size */
.area-body { display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.area.open > .area-body { grid-template-rows: 1fr; }
.area-inner { overflow: hidden; }
.item { padding: 6px 0; }
.item .title { font-size: 13px; }
@media (max-width: 420px) { .area-head { grid-template-columns: 1fr 48px 34px 18px; } .tabs .rel { display: none; } }

/* ---- No-scroll screens: the page is exactly one screen; the list area slides between views ---- */
html, body { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; min-height: 0; }
#list { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; }
.view-body { flex: 1; min-height: 0; overflow: hidden; }
.slide-fwd { animation: from-right .28s ease-out; }
.slide-back { animation: from-left .28s ease-out; }
@keyframes from-right { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes from-left { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.view-bar { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--ink); padding: 3px 0 4px; }
.view-title { font: 12px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; }
.back, .page-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.back:hover .arrow, .page-btn:hover:not(:disabled) .arrow { background: var(--ink); color: var(--paper); }
.page-btn:disabled { opacity: .3; cursor: default; }
.area-bar.empty { border-color: transparent; background: none; box-shadow: none; }
/* Compact item rows inside a section: one line, title trimmed, status as its colored square */
.mini { width: 100%; display: grid; grid-template-columns: 34px 1fr 12px; gap: 8px; align-items: center; background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 5px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mini .id { font: 11px "FK Raster", monospace; color: var(--muted); }
.mini .title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini:hover .title { text-decoration: underline; }
/* One item */
.card { padding: 8px 2px; display: flex; flex-direction: column; gap: 6px; }
.card .id { font: 12px "FK Raster", monospace; color: var(--muted); }
.card h3 { font: 600 16px/1.3 "Suisse Intl", system-ui, sans-serif; }
.card p { font-size: 13px; }
.card .muted { color: var(--muted); }
.card .small { font-size: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 4px; }
.page-count { font: 11px "FK Raster", monospace; color: var(--muted); }

#intro { display: none; }

/* Sections stretch to use all the height the post gives them */
.view-body.fill { display: flex; flex-direction: column; }
.view-body.fill .area-head { flex: 1 1 0; max-height: 44px; min-height: 22px; }

/* Item card: structured, same parts in the same place every time */
.view-body:has(.card) { display: flex; flex-direction: column; }
.card { flex: 1; min-height: 0; padding: 8px 0 0; gap: 8px; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-id { font: 14px "FK Raster", monospace; color: var(--muted); }
.badge { font: 11px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow); color: #fff; }
.badge.c-amber, .badge.c-green { color: #15181c; }
.card-title { font: 400 22px/1.15 "Perfectly Nineties", Georgia, serif; letter-spacing: -.3px; }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.card-facts b { font: 10px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; margin-right: 5px; color: var(--ink); }
.card-block { border: 1.5px solid var(--ink); background: var(--panel); box-shadow: 3px 3px 0 var(--shadow); padding: 7px 10px; }
.card-block .block-label { display: block; font: 10px "FK Raster", monospace; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.card-block p { font-size: 13px; }
.card-block[class*="c-line-"] { border-left-width: 5px; }
.c-line-amber { border-left-color: var(--amber) !important; } .c-line-purple { border-left-color: var(--purple) !important; }
.c-line-blue { border-left-color: var(--blue) !important; } .c-line-grey { border-left-color: var(--grey) !important; }
.card-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px dashed var(--line); }

/* Inset the section rows a touch from the left edge and line every name up */
.area-head, .mini, .view-bar { padding-left: .4rem; padding-right: .15rem; }
.area-name .num { display: inline-block; min-width: 2.1em; font-variant-numeric: tabular-nums; }

/* Wide retro progress bar: fills the space between the name and the count, drawn as chunky blocks */
.area-head { grid-template-columns: max-content minmax(60px, 1fr) 36px 18px !important; gap: 12px; }
.area-bar { height: 14px; padding: 2px; border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--shadow); }
.area-bar i {
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 9px);
}
.area-bar.empty { padding: 0; }
/* Same name column on every row so all bars start and end at the same place */
.area-head { grid-template-columns: min(15.5em, 52%) 1fr 36px 18px !important; }
.area-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---- Critique fixes ---- */
/* Just landed: the text must shrink inside the box, never drop below it */
.landed { flex-wrap: nowrap; }
.landed-text { flex: 1; min-width: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Narrow posts: the name gets the whole row; the bar becomes a chunky strip along the row's bottom edge */
@media all {
  .narrow .area-head { position: relative; grid-template-columns: 1fr 36px 18px !important; border-bottom: 0; padding-bottom: 7px; }
  .narrow .area-name { overflow: visible; text-overflow: clip; }
  .narrow .area-head .area-bar { position: absolute; left: .4rem; right: .15rem; bottom: 0; height: 6px; padding: 1px; box-shadow: none; border-width: 1px; }
  .narrow .area-head .area-bar.empty { border: 0; border-bottom: 1px solid var(--ink); }
  .narrow .area-head .area-bar i { background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 7px); }
  .tabs .stage { font-size: 11px; letter-spacing: .5px; }
}
/* Status on the card is a label, not a button: flat, no frame or shadow, colored square + word */
.badge { border: 0; box-shadow: none; padding: 0; background: none !important; color: var(--ink) !important; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--ink); background: var(--badge, var(--grey)); }
.badge.c-green { --badge: var(--green); } .badge.c-amber { --badge: var(--amber); } .badge.c-blue { --badge: var(--blue); }
.badge.c-purple { --badge: var(--purple); } .badge.c-grey { --badge: var(--grey); } .badge.c-red { --badge: var(--red); }

/* Pixel font: wide letter spacing (.16em) everywhere it is used */
:root { --pixel-tracking: .16em; }
.chip, .latest-pos, .rel-field b, .rel-field small, .vote-btn, .page-count, .area-count, .card-id, .mini .id, .item .id, .landed-text .id, .landed-text .when,
.card-facts b, .block-label, .view-title, .tabs .stage, .area-name, .landed .label, .badge, .arrow {
  letter-spacing: var(--pixel-tracking) !important;
}

/* Wide layout: name column exactly as wide as the longest name, measured by the page */
.view-body.fill:not(.narrow) .area-head { grid-template-columns: var(--name-w, max-content) 1fr 36px 18px !important; }
.view-body.fill .area-name { overflow: visible; text-overflow: clip; }
@media (max-width: 560px) { .tabs .stage { font-size: 11px; } }

/* Auto-fit: rows split the height evenly (capped so short lists do not balloon); text follows the row size */
.view-body.fit { display: flex; flex-direction: column; }
.view-body.fit > .area-head, .view-body.fit > .mini { flex: 0 0 min(var(--row-h), 44px); min-height: 0; max-height: none; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.view-body.fit.narrow > .area-head { padding-bottom: 5px; }
.view-body.fit .area-name, .view-body.fit .mini .title { font-size: var(--fs); }
.view-body.fit .area-count, .view-body.fit .mini .id { font-size: calc(var(--fs) - 1px); }

/* Credit: tiny terminal-style tag in the top right with a blinking block cursor */
.head { position: relative; }
.credit {
  position: absolute; top: 0; right: 0;
  font: 9px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking);
  color: var(--muted); border: 1px solid var(--line); padding: 2px 4px 2px 5px;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.credit .cursor { width: 5px; height: 9px; background: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .credit .cursor { animation: none; } }
.credit { top: auto; bottom: 0; }
/* Credit sits in the header row (never on top of the title); short form on tiny posts */
.credit { position: static; margin-left: auto; align-self: flex-end; flex: none; }
.head > div { min-width: 0; }
@media (max-width: 380px) { .credit .long { display: none; } }
/* Credit: more air between letters and around the text (9px pixel font needs more than the base tracking) */
.credit { letter-spacing: .18em !important; padding: 3px 6px 3px 8px; gap: 5px; word-spacing: .25em; }
.credit .long { margin-right: .3em; }
.credit .cursor { margin-left: 2px; }

/* ---- Header: centered logo + title, with a slow drifting band of symbols behind it ---- */
.head { position: relative; display: block; text-align: center; padding: 10px 0 4px; overflow: hidden; }
.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--paper); box-shadow: 0 0 14px 10px var(--paper); }
.brand img { width: 28px; height: 28px; }
.head .note { position: relative; z-index: 1; margin-top: 2px; }
.head > div:not(.brand):not(.drift) { min-width: 0; }
.credit { position: absolute !important; top: 0; right: 0; z-index: 2; margin: 0; background: var(--paper); }
.drift { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; }
.drift-row { display: flex; width: max-content; gap: 26px; font: 13px "FK Raster", monospace; color: var(--muted); opacity: .28; animation: drift-right 140s linear infinite; }
.drift-row.r2 { gap: 34px; font-size: 10px; opacity: .2; animation-duration: 190s; margin-left: -40px; }
@keyframes drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .drift-row { animation: none; } }
@media (max-width: 380px) { .head { padding-top: 18px; } }

/* Header loop: rendered motion band (12 s seamless, transparent) stretched behind the centered title */
.drift-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; pointer-events: none; }
@media (prefers-color-scheme: light) { .drift-loop { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .drift-loop { display: none; } }

/* Make the header loop actually visible: no glow box hiding it, boosted icons */
.brand { background: none; box-shadow: none; }
.drift-loop { opacity: 1 !important; filter: brightness(2.1) contrast(1.15) saturate(1.4); }
@media (prefers-color-scheme: light) { .drift-loop { filter: brightness(.55) contrast(1.3) saturate(1.3); } }
.brand h1 { text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); }

/* ---- Header drift (CSS): pixel icons in three depth layers sliding left to right behind the title ---- */
.hd-band {
  position: absolute; left: 0; top: 0; height: 120px; transform-origin: 0 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* fade in at the left edge, out at the right, and keep the middle (behind the title) quieter */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), radial-gradient(ellipse 24% 60% at 50% 50%, rgba(0,0,0,.35) 0, rgba(0,0,0,.35) 60%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), radial-gradient(ellipse 24% 60% at 50% 50%, rgba(0,0,0,.35) 0, rgba(0,0,0,.35) 60%, #000 100%);
  mask-composite: intersect;
}
.hd-layer { position: absolute; inset: 0; }
.hd-far { opacity: .45; } .hd-mid { opacity: .65; } .hd-near { opacity: .9; }
.hd-track { position: absolute; left: 0; top: 0; height: 120px; will-change: transform; animation: hd-drift linear infinite; }
@keyframes hd-drift { from { transform: translateX(calc(var(--dist) * -1)); } to { transform: translateX(0); } }
.hd-item { position: absolute; fill: var(--muted); animation: hd-bob ease-in-out infinite alternate; }
.hd-item svg { display: block; }
@keyframes hd-bob { from { transform: translateY(0); } to { transform: translateY(var(--amp)); } }
.hd-red { fill: var(--accent); } .hd-amber { fill: var(--amber); } .hd-green { fill: var(--green); }
@media (prefers-reduced-motion: reduce) { .hd-track, .hd-item { animation: none; } }
.head > :not(.hd-band) { position: relative; z-index: 1; }
.credit { z-index: 2; }
.head .note { text-shadow: 0 0 5px var(--paper), 0 0 2px var(--paper), 0 0 1px var(--paper); }

/* Sections list framed like the Just landed box and the tabs: same border, panel and hard shadow */
#list { border: 1.5px solid var(--ink); background: var(--panel); box-shadow: 3px 3px 0 var(--shadow); margin: 0 3px 3px 0; }
.view { padding: 0 6px; }
.view-body.fit > .area-head:last-child, .view-body.fit > .mini:last-child { border-bottom: 0; }
/* Tabs a touch shorter, with the same gap below them as above (shadow included) */
.tabs button { padding: 3px 2px 4px; }
.tabs .rel { line-height: 1.15; }
.tabs { margin: 8px 3px 11px 0; }
/* Release tabs: done/total plus a slim segmented bar tight to the tab's bottom edge, full width */
.tabs button { position: relative; padding-bottom: 7px; }
.tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(127,127,127,.18); }
.tab-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 7px); }
.tabs button.on .tab-bar { background: rgba(0,0,0,.12); }
.tabs button.on .tab-bar i { background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 7px); filter: brightness(.8); }
.tabs .rel { font-variant-numeric: tabular-nums; }

/* Status bars: one block per item, same colors as the status words */
.segs { display: flex !important; gap: 2px; }
.segs .seg { flex: 1 1 0; height: 100%; display: block; }
.seg-done { background: var(--green); } .seg-testing { background: var(--purple); }
.seg-building { background: var(--amber); } .seg-planned { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.area-bar.segs { padding: 2px; }
.narrow .area-head .area-bar.segs { padding: 1px; gap: 1px; }
.tab-bar.segs { gap: 1px; background: none; }
.tabs button.on .tab-bar.segs .seg { filter: none; }
/* Only the tab being viewed shows its bar */
.tabs button:not(.on) .tab-bar { display: none; }
/* Status blocks must win over the older single-fill bar styles */
.segs > i.seg { width: auto !important; height: 100%; filter: none !important; }
.segs > i.seg-done { background: var(--green) !important; }
.segs > i.seg-testing { background: var(--purple) !important; }
.segs > i.seg-building { background: var(--amber) !important; }
.segs > i.seg-planned { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button:not(.on) .tab-bar.segs { display: none !important; }
/* Keep the chunky retro texture inside each status block */
.area-bar.segs > i.seg-done { background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 9px) !important; }
.area-bar.segs > i.seg-testing { background: repeating-linear-gradient(90deg, var(--purple) 0 7px, transparent 7px 9px) !important; }
.area-bar.segs > i.seg-building { background: repeating-linear-gradient(90deg, var(--amber) 0 7px, transparent 7px 9px) !important; }
.area-bar.segs { gap: 4px; }
.area-bar.segs > i.seg-planned { box-shadow: inset 0 0 0 1px var(--line); }
/* Item rows: readable size, slightly bigger number and status square */
.view-body.fit > .mini { gap: 10px; }
.mini .id { font-size: 12px !important; min-width: 2.6em; }
.mini .dot { width: 11px; height: 11px; }
.pager { padding: 4px 0 2px; }

/* Phones: smaller credit in the top-right corner; logo, title and note move left so nothing overlaps */
@media (max-width: 480px) {
  .head { text-align: left; padding-top: 6px; }
  .brand { padding: 0; }
  .credit { top: 2px; bottom: auto; font-size: 7px; letter-spacing: .12em !important; padding: 2px 4px; gap: 3px; }
  .credit .cursor { width: 4px; height: 7px; }
}

/* Only Done blocks are filled. Everything else is an empty outline in its status color. */
.segs > i.seg-testing, .area-bar.segs > i.seg-testing { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--purple); }
.segs > i.seg-building, .area-bar.segs > i.seg-building { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--amber); }
.segs > i.seg-planned, .area-bar.segs > i.seg-planned { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line); }
.mini .dot:not(.c-green) { background: transparent !important; }
.mini .dot.c-purple { border-color: var(--purple); } .mini .dot.c-amber { border-color: var(--amber); } .mini .dot.c-blue { border-color: var(--blue); }
/* Asked-by tags on ideas */
.tag { font: 10px "FK Raster", monospace; letter-spacing: var(--pixel-tracking); color: var(--ink); border: 1px solid var(--line); padding: 1px 5px; white-space: nowrap; }
.mini.has-tag { grid-template-columns: 34px 1fr auto 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card-tags b { font: 10px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking); color: var(--muted); margin-right: 2px; }

/* Progress bars: identical everywhere. Same chunk size and gap; green chunks = Done share; the rest is empty. */
.area-bar.prog { padding: 2px; display: block; }
.area-bar.prog > i, .tab-bar.prog > i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--green) 0 7px, transparent 7px 9px) !important; }
.tab-bar.prog { background: none; }
.tabs button:not(.on) .tab-bar.prog { display: none; }
.narrow .area-head .area-bar.prog > i { background: repeating-linear-gradient(90deg, var(--green) 0 5px, transparent 5px 7px) !important; }

/* Pixel font spacing for both posts: small sizes need more air than the site's .08em */
:root { --pixel-tracking: .14em; }
.page-count, .area-count, .card-id, .mini .id, .item .id, .landed-text .id, .landed-text .when,
.card-facts b, .block-label, .view-title, .tabs .stage, .area-name, .landed .label, .badge, .arrow,
.tag, .card-tags b, .up-kind, .up-thumb, .credit {
  letter-spacing: var(--pixel-tracking) !important;
}
.badge { padding-right: .14em; }
.tag { padding: 2px 7px 2px 8px; }
.up-kind { padding: 3px 7px 3px 8px; }
.up-thumb { padding: 3px 10px 3px 11px; }
.area-name .num { min-width: 2.4em; }
.mini .id { min-width: 3em; }
.mini { grid-template-columns: 3.2em 1fr 12px; }
.mini.has-tag { grid-template-columns: 3.2em 1fr auto 12px; }

/* ONE rule for the pixel font, every post and every widget: wide tracking. Add new pixel-font classes here. */
:root { --pixel-tracking: .16em; }
.page-count, .area-count, .card-id, .mini .id, .item .id, .landed-text .id, .landed-text .when,
.card-facts b, .block-label, .view-title, .tabs .stage, .area-name, .landed .label, .badge, .arrow,
.tag, .card-tags b, .up-kind, .up-thumb, .credit,
.vote-row .rank, .vote-btn, .vote-btn .n, .num {
  letter-spacing: var(--pixel-tracking) !important;
}
.vote-btn { padding: 4px 10px 4px 11px; gap: 8px; }
.vote-row .rank { min-width: 2.6em; }
.landed .label { margin-right: .3em; }

/* Current release card at the right end of the "Just landed" line */
.landed { align-items: center; }
.rel-card { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 10px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking) !important; color: var(--ink); border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--shadow); padding: 2px 8px 2px 9px; white-space: nowrap; }
.rel-card b { color: var(--green); font-weight: 400; }
.rel-card .rel-stage { color: var(--purple); }
.rel-card .rel-sep { color: var(--muted); }
@media (max-width: 480px) { .rel-card .rel-stage, .rel-card .rel-sep:nth-of-type(2) { display: none; } .rel-card { padding: 2px 6px; gap: 4px; } }
@media (max-width: 480px) { .rel-card .rel-sep:nth-of-type(2) { display: inline; } .rel-card .rel-stage, .rel-card .rel-stage-sep { display: none; } }
.rel-card b { text-transform: none; }

/* Latest line: tappable text with < > arrows */
.latest-open { flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-open:hover { text-decoration: underline; }
.latest-open .dot { display: inline-block; vertical-align: -1px; }
.latest-open .to, .latest-open .to-word { color: var(--muted); }
.latest-nav { flex: none; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.latest-nav .arrow { width: 16px; height: 16px; font-size: 10px; box-shadow: 1px 1px 0 var(--shadow); }
.latest-nav:hover .arrow { background: var(--ink); color: var(--paper); }
.landed { gap: 6px; }

/* Release card: two stacked fields, value over a tiny label */
.rel-card { padding: 1px 8px; gap: 8px; align-items: stretch; }
.rel-field { display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.rel-field b { font: 10px "FK Raster", monospace; letter-spacing: var(--pixel-tracking) !important; color: var(--ink); text-transform: none; }
.rel-field small { font: 8px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking) !important; color: var(--muted); }
.rel-div { width: 1px; background: var(--line); }
.landed { padding-top: 3px; padding-bottom: 3px; }
.rel-field b { text-transform: uppercase; }
/* Phones: release card gets its own row under the Latest line, so the text keeps its room */
@media (max-width: 560px) {
  .landed { flex-wrap: wrap; row-gap: 5px; }
  .rel-card { order: 9; flex: 1 1 100%; justify-content: space-around; margin-left: 0; }
}
.rel-field b .dot { width: 8px; height: 8px; border-width: 1px; vertical-align: 0; display: inline-block; }
.dot.blink { animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .dot.blink { animation: none; } }

/* Latest box: top bar + the change on its own full-width line */
.landed { display: block !important; padding: 5px 8px 6px; }
.latest-top { display: flex; align-items: center; gap: 6px; }
.latest-top .label { margin-right: 2px; }
.latest-pos { font: 10px "FK Raster", monospace; letter-spacing: var(--pixel-tracking) !important; color: var(--muted); }
.latest-top .rel-card { margin-left: auto; order: 0; flex: none; }
.latest-open { display: block; width: 100%; margin-top: 4px; font-size: 13px; line-height: 1.3; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-open .id { font: 11px "FK Raster", monospace; letter-spacing: var(--pixel-tracking) !important; color: var(--muted); }
@media (max-width: 560px) {
  .latest-top { flex-wrap: wrap; row-gap: 4px; }
  .latest-top .rel-card { flex: 1 1 100%; justify-content: space-around; order: 9; }
}
/* Latest change: fade in place (a slide would spill outside the box) */
.latest-open.in { animation: latest-fade .35s ease-out; }
@keyframes latest-fade { from { opacity: 0; } to { opacity: 1; } }

/* Two-layer fill: light green = built (Testing + Done), full green on top = Done */
.view-body:not(.narrow) .area-bar.prog, .tab-bar.prog { position: relative; }
.narrow .area-head .area-bar.prog > i { top: 1px; bottom: 1px; left: 1px; max-width: calc(100% - 2px); }
.area-bar.prog > i, .tab-bar.prog > i { position: absolute; top: 2px; bottom: 2px; left: 2px; height: auto; max-width: calc(100% - 4px); }
.tab-bar.prog > i { top: 0; bottom: 0; left: 0; max-width: 100%; }
.area-bar.prog > i.built, .tab-bar.prog > i.built { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--green) 38%, var(--paper)) 0 7px, transparent 7px 9px) !important; }
.narrow .area-head .area-bar.prog > i.built { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--green) 38%, var(--paper)) 0 5px, transparent 5px 7px) !important; }

/* Colour key under the tabs */
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 6px 2px 4px; }
.key-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.key-word { font: 10px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking); color: var(--ink); }
.key .dot { width: 10px; height: 10px; }
.key .dot:not(.c-green) { background: transparent; }
.key .dot.c-purple { border-color: var(--purple); } .key .dot.c-amber { border-color: var(--amber); } .key .dot.c-blue { border-color: var(--blue); }
@media (max-width: 520px) { .key-about { display: none; } .key { gap: 4px 10px; } }

.intro:has(.key) { display: block !important; margin: 0; }

/* Option B (Luis's pick): one smooth rounded line that grows in. Light green = Testing, full green = Done. */
@keyframes bar-grow { from { width: 0; } }
.area-bar.prog, .narrow .area-head .area-bar.prog { height: 8px !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; border-radius: 4px; background: var(--line) !important; overflow: hidden; align-self: center; }
.area-bar.prog > i, .narrow .area-head .area-bar.prog > i, .tab-bar.prog > i { top: 0 !important; bottom: 0 !important; left: 0 !important; max-width: 100% !important; border-radius: 4px; animation: bar-grow .9s cubic-bezier(.2,.8,.2,1) both; }
.area-bar.prog > i.built, .tab-bar.prog > i.built, .narrow .area-head .area-bar.prog > i.built { background: color-mix(in srgb, var(--green) 38%, var(--paper)) !important; }
.area-bar.prog > i.done, .tab-bar.prog > i.done, .narrow .area-head .area-bar.prog > i.done { background: var(--green) !important; }
.tab-bar.prog { border-radius: 2px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .area-bar.prog > i, .tab-bar.prog > i { animation: none; } }
/* Grow in once; later re-renders (resize, paging) show the final width straight away */
body.grown .area-bar.prog > i, body.grown .tab-bar.prog > i { animation: none !important; }

/* Ready to test: teal */
.c-teal { background: var(--teal); } .badge.c-teal { --badge: var(--teal); } .c-line-teal { border-left-color: var(--teal) !important; }
.mini .dot.c-teal, .key .dot.c-teal { border-color: var(--teal); }

/* Status chips on item rows (replace the colour key) and coloured dots everywhere, never black */
.mini, .mini.has-tag { grid-template-columns: 34px 1fr auto !important; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 9px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking); white-space: nowrap; padding: 2px 6px 2px 5px; border: 1px solid var(--chip); color: var(--chip); background: color-mix(in srgb, var(--chip) 12%, transparent) !important; }
.chip i { width: 7px; height: 7px; background: var(--chip); flex: none; }
.chip.c-green { --chip: var(--green); } .chip.c-amber { --chip: var(--amber); } .chip.c-blue { --chip: var(--blue); } .chip.c-purple { --chip: var(--purple); } .chip.c-teal { --chip: var(--teal); } .chip.c-grey { --chip: var(--grey); } .chip.c-red { --chip: var(--red); }
.dot, .mini .dot, .key .dot { border-color: transparent !important; }
.dot.c-green { background: var(--green) !important; } .dot.c-amber { background: var(--amber) !important; } .dot.c-blue { background: var(--blue) !important; } .dot.c-purple { background: var(--purple) !important; } .dot.c-teal { background: var(--teal) !important; }
.intro:has(.key) { display: none !important; }

/* Percent counts need a little more room than n/n */
.view-body.fill:not(.narrow) .area-head { grid-template-columns: var(--name-w, max-content) 1fr 44px 18px !important; }
.area-count { text-align: right; white-space: nowrap; }

.mini.has-tag { grid-template-columns: 34px 1fr auto auto !important; }
.mini.has-tag .tag { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }

/* Credit links to u/CoderLuii, with wider letters */
.credit { letter-spacing: .24em !important; text-decoration: none; cursor: pointer; }
.credit { display: inline-flex !important; align-items: center; justify-content: center; padding: 3px 7px 3px calc(7px + .24em) !important; outline: none; -webkit-tap-highlight-color: transparent; }
/* Hover and keyboard focus fill the whole tag evenly, instead of tinting parts of it */
.credit:hover, .credit:focus-visible { background: var(--ink) !important; color: var(--paper) !important; }
.credit:hover .cursor, .credit:focus-visible .cursor { background: var(--paper); }

/* Last update stamp, bottom right */
.last-update { position: fixed; right: 8px; bottom: 4px; z-index: 4; font: 8px "FK Raster", monospace; text-transform: uppercase; letter-spacing: var(--pixel-tracking); color: var(--muted); pointer-events: none; }

/* Tiny round photo of Luis at the start of the credit tag (replaces the blinking cursor) */
.credit .credit-pic { width: 12px; height: 12px; border-radius: 50%; object-fit: cover; flex: none; margin-right: 5px; }
.credit .cursor { display: none !important; }
@media (max-width: 640px) { .credit .credit-pic { width: 10px; height: 10px; margin-right: 4px; } }

/* Stamp sits under the frame, never on its border */
body { padding-bottom: 12px !important; box-sizing: border-box; }
.last-update { bottom: 1px !important; right: 24px !important; line-height: 1; }

/* Credit hover: no colour flip. A soft shine sweeps across once, text and picture ring turn green, the edge glows. */
.credit { position: relative; overflow: hidden; transition: color .2s, box-shadow .2s; }
.credit:hover, .credit:focus-visible { background: inherit !important; color: var(--green) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent); }
.credit::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--green) 28%, transparent), transparent); transform: skewX(-20deg); pointer-events: none; opacity: 0; }
.credit:hover::after, .credit:focus-visible::after { animation: credit-shine .7s ease-out; }
@keyframes credit-shine { 0% { left: -60%; opacity: 1; } 100% { left: 120%; opacity: 1; } }
.credit .credit-pic { transition: box-shadow .2s; }
.credit:hover .credit-pic, .credit:focus-visible .credit-pic { box-shadow: 0 0 0 1px var(--green); }
@media (prefers-reduced-motion: reduce) { .credit:hover::after { animation: none; } }

/* "BUILT BY CoderLuii": the name keeps its own capitals; "Built" always shows when there is room */
.credit .name { text-transform: none; }
.head-right .credit .long { display: inline !important; }
.credit .long { display: inline !important; }

/* Very short posts (big browser zoom): drop the LATEST strip so the list keeps room */
@media (max-height: 300px) { #landed { display: none !important; } }

/* Vote tab: a boxed pixel counter at the end of each idea row; green when it is your vote.
   Off Reddit (the website) it is a link to vote on r/HolyArrs. */
#intro:not(:empty) { display: block !important; font-size: 12px; color: var(--muted); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vote-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 26px; padding: 2px 8px 2px calc(8px + .16em); background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--shadow, var(--ink)); font: 11px "FK Raster", monospace; letter-spacing: .16em; cursor: pointer; white-space: nowrap; }
.vote-btn .up { font-size: 9px; }
.vote-btn:hover { background: var(--ink); color: var(--paper); }
.vote-btn.on { background: var(--green); color: #15181c; }
.vote-btn.off { opacity: .75; }
.vote-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow, var(--ink)); }
.vote-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.card-top .vote-btn { min-width: 64px; min-height: 30px; font-size: 12px; }
.mini.idea .vote-btn { margin: 3px 2px 3px 0; }
@media (max-width: 420px) { .mini.idea.has-tag .tag { display: none; } .mini.idea.has-tag { grid-template-columns: 34px 1fr auto !important; } }

/* Review fixes (2026-10-24) */
/* Cards never run under the < n of N > bar: the card takes what's left and long text is clamped. */
.view-body:has(> .card) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.card { overflow: hidden; }
.card-nav { flex: none; }
.card-block p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-block .block-label { letter-spacing: var(--pixel-tracking); }
/* Touch targets at least 24px */
.latest-nav, .page-btn, .back { min-width: 24px; min-height: 24px; }
/* Row titles keep their room on phones; the asker tag gives way first */
@media (max-width: 480px) { .mini.has-tag .tag { max-width: 34%; min-width: 0; } .mini .title { min-width: 0; } }
/* Light theme: amber chip text dark enough to read */
:root:not([data-theme="dark"]) .chip.c-amber { --chip: #8a5200; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.c-amber { --chip: var(--amber); } }
.chip { font-size: 10px; }
/* Small phones: the asker tag is dropped from rows (it's on the card) so titles stay readable */
@media (max-width: 420px) { .mini.has-tag .tag { display: none !important; } .mini.has-tag { grid-template-columns: 34px 1fr auto !important; } }
