/* ShipOrNot (shipornot.com): one shared stylesheet for every page.
   Components (header, function-key buttons, DOS-window panels, readout row, condition window, FAQ,
   footer, status bar) are copied from PixelSERP's current CSS (Nov 2026) so the two sites match.
   Colours come only from the theme variables below. Two deliberate differences from PixelSERP:
   no pixel text under 8px, and no CRT/scanline effect (removed from PixelSERP too). */

@font-face { font-family: 'Press Start 2P'; src: url('/fonts/press-start-2p.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'VT323'; src: url('/fonts/vt323.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Themes: the four launch themes. Arcade+ is the default (no class needed). ── */
:root, body, body.gf-arcadeplus {
  --bg: #12081F; --text-primary: #F4EFFF; --text-secondary: #B9A7E0; --heading: #F4EFFF; --prompt: #35E6F2; --rule: #35E6F2;
  --fk-bg: #12081F; --fk-tx: #F4EFFF; --fk-acc: #35E6F2; --fk-keytx: #12081F; --fk-inp: #1E1033;
  --fk-prim: #FF4FA3; --fk-primtx: #12081F;
  --cnd-ok: #5AA9FF; --cnd-weak: #FFD23F; --cnd-bad: #FF7A45;
  --sb-bg: #0A0412; --sb-tx: #35E6F2; --sb-dim: #8B7FB0; --sb-line: #2A1E44;
  --banner: #F4EFFF; --wm-pink: #FF4FA3; color-scheme: dark;
}
body.gf-midnight {
  --bg: #0E1124; --text-primary: #ECEEFA; --text-secondary: #A9AFD3; --heading: #FFFFFF; --prompt: #C3C8EC; --rule: #3A4170;
  --fk-bg: #0E1124; --fk-tx: #ECEEFA; --fk-acc: #C3C8EC; --fk-keytx: #0E1124; --fk-inp: #1A1F3A;
  --fk-prim: #FF5FA8; --fk-primtx: #0E1124;
  --cnd-ok: #56B4E9; --cnd-weak: #E6A23C; --cnd-bad: #F2703F;
  --sb-bg: #080A16; --sb-tx: #C3C8EC; --sb-dim: #7A80A6; --sb-line: #22284A;
  --banner: #FFFFFF; --wm-pink: #FF5FA8; color-scheme: dark;
}
body.gf-fantasy {
  --bg: #1D2B53; --text-primary: #FFF1E8; --text-secondary: #C2C3C7; --heading: #FFCCAA; --prompt: #FFCCAA; --rule: #83769C;
  --fk-bg: #1D2B53; --fk-tx: #FFF1E8; --fk-acc: #C2C3C7; --fk-keytx: #1D2B53; --fk-inp: #000000;
  --fk-prim: #00E436; --fk-primtx: #1D2B53;
  --cnd-ok: #29ADFF; --cnd-weak: #FFEC27; --cnd-bad: #FFA300;
  --sb-bg: #000000; --sb-tx: #FFF1E8; --sb-dim: #83769C; --sb-line: #1D2B53;
  --banner: #FFF1E8; --wm-pink: #FF77A8; color-scheme: dark;
}
body.gf-daylight {
  --bg: #F7F5F0; --text-primary: #1B1E2B; --text-secondary: #474C63; --heading: #1B1E2B; --prompt: #1B1E2B; --rule: #1B1E2B;
  --fk-bg: #F7F5F0; --fk-tx: #1B1E2B; --fk-acc: #1B1E2B; --fk-keytx: #F7F5F0; --fk-inp: #FFFFFF;
  --fk-prim: #6B2BD9; --fk-primtx: #FFFFFF;
  --cnd-ok: #0067A3; --cnd-weak: #8F5300; --cnd-bad: #B4380D;
  --sb-bg: #1B1E2B; --sb-tx: #F7F5F0; --sb-dim: #9A9EB3; --sb-line: #33374A;
  --banner: #1B1E2B; --wm-pink: #C2185B; color-scheme: light;
}

body { background: var(--bg); color: var(--text-primary); font-family: 'VT323', monospace; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; padding-bottom: 34px; }
a { color: inherit; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--fk-prim); color: var(--fk-primtx); padding: 10px 16px; font-family: 'Press Start 2P', monospace; font-size: 8px; text-decoration: none; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header (PixelSERP) ── */
header { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 4px solid var(--rule); gap: 12px; min-width: 0; max-width: 100%; }
.logo { display: flex; align-items: center; gap: 2px; text-decoration: none; font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--banner); white-space: nowrap; }
.logo-icon { height: 32px; width: 32px; display: inline-block; vertical-align: middle; image-rendering: pixelated; transform: translateY(-2px); margin-right: 8px; }
.block-cursor { display: inline-block; width: 8px; height: 13px; background: var(--wm-pink); margin-left: 3px; animation: blink 1s steps(1) infinite; }
.logo-text { text-shadow: 0 0 4px var(--fk-acc); }
.wm-pink { color: var(--wm-pink); }
.nav { display: flex; align-items: center; gap: 12px; }

/* ── Function-key buttons: keycap + label, one style for every button (PixelSERP) ── */
.fk { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; line-height: 1; text-transform: uppercase; font-weight: 400;
  color: var(--fk-tx); background: var(--fk-bg); border: 2px solid var(--fk-acc); border-radius: 0; padding: 0 10px 0 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; white-space: nowrap; text-decoration: none; vertical-align: middle; position: relative; }
.fk .fk-key { font-weight: 400; background: var(--fk-acc); color: var(--fk-keytx); padding: 10px 6px 9px; min-width: 26px; text-align: center; flex-shrink: 0; line-height: 1; }
.fk .fk-label { padding: 10px 0 9px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.fk:hover { background: var(--fk-acc); color: var(--fk-bg); }
.fk:hover .fk-key { background: var(--fk-bg); color: var(--fk-acc); }
.fk:active { transform: translateY(2px); }
.fk:focus { outline: none; }
.fk:focus-visible { outline: 2px dashed var(--fk-acc); outline-offset: 3px; }
/* primary: the one main action on a page */
.fk.fk-primary { background: var(--fk-prim); color: var(--fk-primtx); border-color: var(--fk-acc); }
.fk.fk-primary:hover { background: var(--fk-acc); color: var(--fk-bg); }
.fk.fk-primary:hover .fk-key { background: var(--fk-bg); color: var(--fk-acc); }
/* selected (toggles, chips) */
.fk.active, .fk[aria-pressed="true"] { background: var(--fk-acc); color: var(--fk-bg); border-color: var(--fk-acc); }
.fk.active .fk-key, .fk[aria-pressed="true"] .fk-key { background: var(--fk-bg); color: var(--fk-acc); }
/* small + chip (PixelSERP uses 7px; kept at 8px here) */
.fk.fk-sm, .fk.fk-chip { padding-right: 8px; gap: 6px; }
.fk.fk-sm .fk-key, .fk.fk-chip .fk-key { padding: 7px 5px 6px; min-width: 20px; }
.fk.fk-sm .fk-label, .fk.fk-chip .fk-label { padding: 7px 0 6px; }
.fk.fk-off, .fk:disabled { border-style: dashed; opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Layout ── */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 18px 50px; min-width: 0; overflow-wrap: anywhere; }

/* ── Homepage hero (PixelSERP) ── */
.hero { text-align: center; padding: 28px 8px 20px; position: relative; }
.dos-prompt { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--prompt); letter-spacing: 1px; margin-bottom: 20px; }
.ascii-banner { font-family: 'Courier New', Courier, monospace; font-weight: 700; font-size: clamp(5px, 1.5vw, 15px); line-height: 1.05; color: var(--banner); white-space: pre; display: inline-block; text-align: left; margin: 0 auto 24px; overflow: hidden;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .15), -2px 0 0 rgba(255, 0, 255, .35), 2px 0 0 rgba(0, 255, 255, .35); }
.ascii-banner > span { display: block; }
.ascii-banner .w2 { display: none; }
.hero-tagline { font-family: 'Press Start 2P', monospace; font-weight: 400; font-size: 24px; color: var(--heading); display: block; margin-bottom: 20px; line-height: 1.6; text-shadow: 0 0 20px color-mix(in srgb, var(--banner) 40%, transparent); }
.hero p { font-family: 'VT323', monospace; font-size: 22px; line-height: 1.65; letter-spacing: 1px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.hero-tools { --cols: 4; --gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); max-width: 760px; margin: 22px auto 0; }
.hero-tools > .hero-tool { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.hero-tool { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 12px; background: var(--fk-bg); border: 2px solid var(--fk-acc); text-decoration: none; transition: transform .12s ease; }
.hero-tool:hover, .hero-tool:focus-visible, .hero-tool.active { transform: translateY(-2px); background: var(--fk-acc); outline: none; }
.hero-tool:hover .hero-tool-icon, .hero-tool:focus-visible .hero-tool-icon, .hero-tool.active .hero-tool-icon { background: var(--fk-bg); color: var(--fk-acc); }
.hero-tool:hover .hero-tool-name, .hero-tool:focus-visible .hero-tool-name, .hero-tool.active .hero-tool-name { color: var(--fk-bg); }
.hero-tool-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; background: var(--fk-acc); color: var(--fk-bg); font-family: 'Press Start 2P', monospace; font-size: 8px; }
.hero-tool-name { font-family: 'VT323', monospace; font-size: 19px; letter-spacing: .5px; white-space: nowrap; color: var(--fk-tx); }
.hero-tool-name small { opacity: .6; font-size: 14px; }
.hero-tools-total { font-family: 'VT323', monospace; font-size: 16px; line-height: 1.4; color: var(--text-secondary); opacity: .8; margin-top: 14px; }
.hero-cta { margin-top: 22px; }
.next-cta { text-align: center; margin: 0 0 30px; }

/* ── Homepage hub hero (PixelSERP): full-bleed, near full-height, pixel field behind ── */
.hero.home { margin: -28px calc(50% - 50vw) 34px; padding: 40px 18px 30px; /* fills the screen between the header (64px) and the status bar (26px), so nothing else shows before the first scroll */ min-height: calc(100vh - 90px); min-height: calc(100dvh - 90px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
/* Same glyph size as PixelSERP's banner (24px), shrinking only when the screen is too narrow to hold it. The nav is stretched so the program buttons can fill their row: a centred flex column would shrink it to its text. */
.hero.home .ascii-banner { font-size: clamp(5px, calc((100vw - 80px) / 48), 24px); margin-bottom: 24px; }
.hero.home > .hero-tools { align-self: stretch; width: 100%; }
.hero.home > p:not(.hero-tools-total) { max-width: 520px; }
.hero.home h1.hero-tagline { font-size: clamp(16px, 1.7vw, 24px); color: var(--wm-pink); text-shadow: 0 0 20px color-mix(in srgb, var(--wm-pink) 40%, transparent), 3px 3px 0 rgba(0, 0, 0, .2); }
.tag-cursor { display: inline-block; width: .6em; height: 1em; margin-left: .3em; vertical-align: -.12em; background: currentColor; animation: blink 1s steps(1) infinite; }
.hero-tools.five { --cols: 5; max-width: 900px; }
.hero-tools.six { --cols: 3; max-width: 580px; }
#pixel-field { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 96%); mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 96%); }
.hero.home > *:not(#pixel-field) { position: relative; z-index: 2; pointer-events: none; }
.hero.home .hero-tools, .hero.home .hero-tools * { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { #pixel-field { display: none; } .tag-cursor { animation: none; } }

/* ── Logo click effects: launch, verdict stamp, coin flip, the gap ── */
.hero.home > #heroLogoStage { position: relative; display: inline-block; align-self: center; margin: 0 0 24px; pointer-events: auto !important; cursor: pointer; }
#heroLogoStage .ascii-banner { margin: 0; }
#heroLogoStage:focus-visible { outline: 2px dashed var(--fk-acc); outline-offset: 8px; }
.fx-layer { position: absolute; inset: 0; pointer-events: none; }
.fx-px { position: absolute; display: block; }
.fx-rocket { position: absolute; left: 0; top: 0; width: 52px; height: 52px; will-change: transform; }
.fx-rocket svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.fx-stamp { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: .7em; font-family: 'Press Start 2P', monospace; font-size: clamp(12px, 3.8vw, 52px); line-height: 1; letter-spacing: 2px; white-space: nowrap; padding: .6em .8em; border: .16em solid currentColor; background: color-mix(in srgb, var(--bg) 85%, transparent); text-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }
.fx-stamp.ok { color: var(--cnd-ok); } .fx-stamp.bad { color: var(--cnd-bad); }
.fx-stamp .g { transform: scale(2.2); margin: 0 .5em 0 .2em; }
.ascii-banner.lit-ship .fx-not, .ascii-banner.lit-not .fx-ship { opacity: .13; }
.ascii-banner.won .fx-ship, .ascii-banner.won .fx-not { text-shadow: 0 0 22px currentColor; }
.fx-half { position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; }
.fx-beam { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; transform: translateX(-50%); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fx-beam span { font-family: 'Press Start 2P', monospace; font-size: 17px; letter-spacing: 3px; color: var(--heading); white-space: nowrap; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
/* On a phone the gap is too narrow for one line, so the words stack */
.fx-beam.fx-narrow span { white-space: normal; text-align: center; font-size: 10px; letter-spacing: 1px; line-height: 1.9; }
@media (prefers-reduced-motion: reduce) { .hero.home > #heroLogoStage { cursor: default; pointer-events: none !important; } }

/* ── Launcher grid (PixelSERP): one panel per program, F5 RUN at the foot ── */
.launcher-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 0 0 40px; }
.launcher-grid .panel { flex: 1 1 220px; max-width: 238px; display: flex; flex-direction: column; min-width: 0; margin: 0; }
.launcher-grid .panel > .panel-title { white-space: normal; justify-content: center; text-align: center; line-height: 1.4; }
.launcher-grid .panel p { font-family: 'VT323', monospace; font-size: 19px; line-height: 1.5; color: var(--text-secondary); margin-bottom: 20px; flex: 1; }
.launcher-grid .panel .run-btn { width: 100%; justify-content: center; }
@media (max-width: 900px) { .launcher-grid .panel { flex: 1 1 100%; max-width: 100%; } }
.next-cta .hero-tools-total { margin-top: 10px; }

/* ── Tool-page hero (PixelSERP's compact hero: program name, H1, intro) ── */
.hero.compact { padding: 8px 8px 22px; }
.hero.compact h1.hero-tagline { font-size: 24px; color: var(--heading); margin: 0 0 12px; text-shadow: none; }
.crumbs { font-family: 'Press Start 2P', monospace; font-size: 8px; text-transform: uppercase; line-height: 1.8; letter-spacing: .5px; color: var(--text-secondary); margin: 0 0 18px; text-align: left; }
.crumbs a { color: var(--fk-tx); }

/* Section heading on a rule (PixelSERP .program-name) */
.program-name { font-family: 'Press Start 2P', monospace; font-size: 8px; line-height: 1.6; letter-spacing: 1px; text-transform: uppercase; color: var(--prompt); display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.program-name::before { content: ''; width: 14px; height: 2px; background: currentColor; flex-shrink: 0; }
.program-name::after { content: ''; flex: 1; height: 2px; background: currentColor; opacity: .9; }

/* ── DOS window panels (PixelSERP) ── */
.panel { border: 2px solid var(--fk-acc); background: var(--fk-bg); padding: 14px 16px 16px; position: relative; margin: 0 0 30px; }
.panel > .panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -14px -16px 14px; width: calc(100% + 32px);
  background: var(--fk-acc); color: var(--fk-bg); font-family: 'Press Start 2P', monospace; font-size: 8px; font-weight: 400; letter-spacing: .5px; line-height: 1.5; text-transform: uppercase; text-align: left; padding: 9px 12px 8px; }
.panel.flush { padding: 0; }
.panel.flush > .panel-title { margin: 0; width: 100%; }
.bar-keys { display: inline-flex; gap: 8px; align-items: center; font-size: 8px; letter-spacing: .5px; white-space: nowrap; flex-shrink: 0; opacity: .95; }
.bar-keys b { font-weight: 400; background: var(--fk-bg); color: var(--fk-acc); padding: 4px 4px 3px; margin-right: 3px; }
.panel p, .panel li { font-size: 20px; line-height: 1.35; color: var(--text-secondary); margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { padding-left: 1.2em; margin: 0 0 12px; }
.panel strong { color: var(--text-primary); font-weight: 400; }
.panel a { color: var(--fk-tx); text-decoration: underline; text-underline-offset: 3px; }
.panel p.quote { font-family: 'Press Start 2P', monospace; font-size: 8px; line-height: 2; letter-spacing: .5px; padding: 12px 14px; border: 2px dashed var(--fk-acc); margin: 4px 0 16px; color: var(--text-primary); }
.panel-foot { padding: 10px 12px; border-top: 1px solid var(--fk-acc); }

/* ── Readout row (PixelSERP) ── */
.readout-row { display: flex; margin: 0 auto 26px; font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; color: var(--text-secondary); }
.readout-row span { flex: 1; display: flex; justify-content: space-between; gap: 10px; border: 2px solid var(--fk-acc); border-right: 0; padding: 8px 10px 7px; min-width: 0; white-space: nowrap; overflow: hidden; }
.readout-row span:last-child { border-right: 2px solid var(--fk-acc); }
.readout-row i { font-style: normal; opacity: .8; }
.readout-row b { font-weight: 400; color: var(--fk-tx); overflow: hidden; text-overflow: ellipsis; }

/* ── Condition window (PixelSERP) ── */
.cond-win { margin: 0 auto 30px; border: 2px solid var(--fk-acc); background: var(--fk-bg); }
.cond-bar { background: var(--fk-acc); color: var(--fk-bg); font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px;  text-transform: uppercase; padding: 9px 12px 8px; display: flex; justify-content: space-between; align-items: center; line-height: 1; gap: 12px; }
.cond-cnd { font-size: 8px; display: inline-flex; align-items: center; }
.cond-body { display: grid; grid-template-columns: 1fr 180px 1fr; gap: 14px 22px; align-items: center; padding: 16px 16px 14px; }
.cond-col { display: flex; flex-direction: column; gap: 16px; }
.limb .l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: .5px; line-height: 1.4; }
.limb .l b { font-weight: 400; color: var(--fk-tx); font-family: 'VT323', monospace; font-size: 26px; line-height: .7; }
.sb { position: relative; display: flex; height: 10px; border: 1px solid var(--fk-acc); background: var(--fk-inp); overflow: hidden; }
.sb .sf { position: absolute; left: 0; top: 0; bottom: 0; background: var(--cnd-ok); }
.sb.weak .sf { background: var(--cnd-weak); } .sb.bad .sf { background: var(--cnd-bad); }
.sb i { flex: 1; border-right: 1px solid var(--fk-bg); position: relative; z-index: 1; } .sb i:last-child { border-right: 0; }
.sb .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fk-tx); z-index: 2; }
.limb .st { font-family: 'Press Start 2P', monospace; font-size: 8px; margin-top: 6px; color: var(--cnd-ok); letter-spacing: .5px; line-height: 1.5; display: flex; align-items: center; }
.st.weak, .limb .st.weak { color: var(--cnd-weak); } .st.bad, .limb .st.bad { color: var(--cnd-bad); } .st.ok { color: var(--cnd-ok); }
.cond-core { text-align: center; border: 2px dashed var(--fk-acc); padding: 14px 8px 12px; }
.cond-core .cl { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 1px; color: var(--text-secondary); }
.cond-core .cn { font-family: 'Press Start 2P', monospace; font-size: 48px; line-height: 1; margin: 14px 0 12px; }
.cond-core.ok .cn { color: var(--cnd-ok); } .cond-core.weak .cn { color: var(--cnd-weak); } .cond-core.bad .cn { color: var(--cnd-bad); }
.cond-core .st { justify-content: center; font-family: 'Press Start 2P', monospace; font-size: 8px; }
.cond-core .cr { font-size: 18px; color: var(--text-secondary); margin-top: 8px; }
.cond-wire { grid-column: 1 / -1; border: 1px dashed var(--fk-acc); padding: 10px 12px; font-size: 20px; line-height: 1.35; color: var(--fk-tx); }
.verdict { font-family: 'VT323', monospace; font-size: 24px; line-height: 1.4; color: var(--text-primary); text-align: center; max-width: 720px; margin: 0 auto 6px; }
.verdict-detail { font-size: 22px; line-height: 1.45; color: var(--text-secondary); text-align: center; max-width: 720px; margin: 0 auto 26px; }

/* Status shapes: the pixel fonts have no triangle glyphs, so they are drawn. Colour is never the only signal. */
.g { display: inline-block; width: 0; height: 0; margin-right: 6px; vertical-align: middle; flex-shrink: 0; }
.g.ok { border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; }
.g.bad { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid currentColor; }
.g.weak { width: 8px; height: 8px; background: currentColor; }

/* ── Ranked tables (GapFinder; built in PixelSERP's idiom) ── */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 21px; line-height: 1.3; font-variant-numeric: tabular-nums; }
th { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; font-weight: 400; text-transform: uppercase; color: var(--text-secondary); text-align: right; padding: 12px 10px 8px; white-space: nowrap; border-bottom: 1px solid var(--fk-acc); vertical-align: bottom; }
td { padding: 5px 10px; text-align: right; white-space: nowrap; color: var(--fk-tx); vertical-align: middle; }
th.l, td.l { text-align: left; }
td.name { white-space: normal; min-width: 180px; }
td.name a { text-decoration: none; }
td.name small { display: block; color: var(--text-secondary); font-size: 17px; }
tbody tr:hover td { background: var(--fk-acc); color: var(--fk-bg); }
tbody tr:hover td small, tbody tr:hover .gs b { color: var(--fk-bg); }
tbody tr:hover .sb { border-color: var(--fk-bg); background: var(--fk-acc); }
tbody tr:hover .sb .sf { background: var(--fk-bg); }
.rk { color: var(--prompt); }
.gs { display: inline-flex; align-items: center; gap: 8px; }
.gs .sb { width: 92px; }
.gs b { font-weight: 400; min-width: 4ch; text-align: left; display: inline-flex; align-items: center; }
.gs.ok b { color: var(--cnd-ok); } .gs.weak b { color: var(--cnd-weak); } .gs.bad b { color: var(--cnd-bad); }
.tag { font-family: 'Press Start 2P', monospace; font-size: 8px; border: 1px solid currentColor; padding: 2px 3px 1px; margin-left: 6px; vertical-align: middle; }
.hot { color: var(--cnd-bad); }
.thumb { display: block; width: 120px; height: 45px; object-fit: cover; border: 2px solid var(--fk-acc); background: var(--fk-inp); }
.thumb.sq { width: 44px; height: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: 'Press Start 2P', monospace; font-size: 8px; line-height: 1.6; color: var(--text-secondary); }
.legend .ok { color: var(--cnd-ok); } .legend .weak { color: var(--cnd-weak); } .legend .bad { color: var(--cnd-bad); }
.legend span { display: inline-flex; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

/* ── Signals: computed facts about a niche's top earners, and the short written read under them ── */
.facts { list-style: none; margin: 0; padding: 0; font-size: 21px; line-height: 1.5; letter-spacing: .5px; color: var(--text-secondary); }
.facts li { position: relative; padding: 5px 0 5px 22px; }
.facts li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; background: var(--fk-acc); }
.facts b { color: var(--heading); font-weight: 400; }
.take .asof { color: var(--text-secondary); }
.take { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--fk-acc); }
body.gf-daylight .facts { font-size: 24px; }

/* ── Steam tag map: every tag against every other, and the partner lists for a picked tag ── */
.tm-grid { --cell: 13px; display: grid; grid-template-columns: max-content repeat(var(--n), var(--cell)); gap: 1px; align-items: center; padding: 14px 16px 16px; width: max-content; margin: 0 auto; }
.tm-label { font-family: 'VT323', monospace; font-size: 15px; line-height: var(--cell); height: var(--cell); letter-spacing: .5px; color: var(--text-secondary); background: none; border: 0; padding: 0 8px 0 0; text-align: right; cursor: pointer; white-space: nowrap; }
.tm-label:hover, .tm-label:focus-visible, .tm-label.on { color: var(--heading); outline: none; }
.tm-label.on::before { content: '> '; color: var(--wm-pink); }
.tm-label.hot { color: var(--heading); }
/* Column names: the same tags, written upwards so each sits over its column */
.tm-col { writing-mode: vertical-rl; transform: rotate(180deg); width: var(--cell); height: auto; line-height: var(--cell); padding: 8px 0 0; text-align: left; align-self: end; }
.tm-col.on::before { content: '> '; }
.tm-c { width: var(--cell); height: var(--cell); display: block; position: relative; }
.tm-c.ok { --c: var(--cnd-ok); } .tm-c.weak { --c: var(--cnd-weak); } .tm-c.bad { --c: var(--cnd-bad); }
.tm-c.k-p, .tm-c.k-d { background: var(--c); }
.tm-c.k-p.lo, .tm-c.k-d.lo { background: color-mix(in srgb, var(--c) 55%, var(--fk-bg)); }
.tm-c.k-d { outline: 1px solid var(--heading); outline-offset: -1px; }
/* small sample: a smaller square of the same colour */
.tm-c.k-s::after { content: ''; position: absolute; inset: 4px; background: var(--c); }
.tm-c.k-s.lo::after { background: color-mix(in srgb, var(--c) 55%, var(--fk-bg)); }
/* untested: a faint dot; near-identical tags: nothing */
.tm-c.k-f::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; margin: -.5px; background: var(--text-secondary); opacity: .55; }
a.tm-c:hover, a.tm-c:focus-visible { outline: 2px solid var(--heading); outline-offset: 0; z-index: 1; }
.tm-grid.picked .tm-c:not(.on) { opacity: .45; }
/* The key above the grid: a colour scale made of the same squares, then what the marks mean */
.tm-key { --cell: 13px; padding: 14px 16px 2px; }
.tm-key-lead { margin: 0 0 12px; }
.tm-key b { font-weight: 400; } .tm-key b.ok { color: var(--cnd-ok); } .tm-key b.weak { color: var(--cnd-weak); } .tm-key b.bad { color: var(--cnd-bad); }
.tm-scale { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 3px; font-family: 'Press Start 2P', monospace; font-size: 8px; line-height: 1.6; letter-spacing: .5px; text-transform: uppercase; color: var(--text-secondary); }
.tm-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tm-sw .tm-c { width: 62px; height: 20px; }
.tm-end { color: var(--heading); padding: 6px 8px 0; }
.tm-marks { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; font-size: 19px; color: var(--text-secondary); }
.tm-marks span { display: inline-flex; align-items: center; gap: 8px; }
.tm-marks .tm-c { flex: none; }
.tm-result h3 { font-family: 'Press Start 2P', monospace; font-size: 8px; font-weight: 400; letter-spacing: 1px; line-height: 1.6; text-transform: uppercase; color: var(--prompt); margin: 0 0 8px; }
.tm-lead { margin: 14px 0 16px; }
.tm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 26px; margin-bottom: 12px; }
.tm-list { list-style: none; margin: 0; padding: 0; font-size: 21px; line-height: 1.3; }
.tm-list li { padding: 4px 0; border-bottom: 1px dashed color-mix(in srgb, var(--fk-acc) 35%, transparent); }
.tm-list li:last-child { border-bottom: 0; }
.tm-list a, .tm-list span { color: var(--fk-tx); }
.tm-list em { display: block; font-style: normal; font-size: 17px; color: var(--text-secondary); }
.tm-result b, .tm-table span.ok, .tm-table span.weak, .tm-table span.bad { font-weight: 400; }
.tm-result b.ok, .tm-links .ok, .tm-table .ok { color: var(--cnd-ok); } .tm-result b.weak, .tm-links .weak, .tm-table .weak { color: var(--cnd-weak); } .tm-result b.bad, .tm-links .bad, .tm-table .bad { color: var(--cnd-bad); }
.tm-table td.tm-links { white-space: normal; font-size: 19px; }
#tm-readout { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; white-space: normal; text-align: right; }
@media (max-width: 760px) { .tm-cols { grid-template-columns: 1fr; } .tm-grid { margin: 0; } .tm-scale { gap: 8px 10px; } .tm-sw .tm-c { width: 56px; } .tm-end { flex-basis: 100%; padding: 0; } }

/* ── Explorer: filters above a ranked table, sortable column headings ── */
.explorer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 16px 4px; }
.explorer .chips { margin: 0; }
.fk.fk-chip.nokey { padding-left: 8px; }
.fk.fk-chip.nokey .g { margin-right: 6px; }
.fk[aria-pressed="true"] .g { filter: brightness(.45); }
.ex-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex-basis: 100%; }
.ex-fields label { display: inline-flex; align-items: center; gap: 8px; font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-secondary); }
.ex-fields select, .ex-fields input { font-family: 'VT323', monospace; font-size: 19px; line-height: 1.2; letter-spacing: .5px; color: var(--fk-tx); background: var(--fk-inp); border: 2px solid var(--fk-acc); border-radius: 0; padding: 3px 8px; min-width: 0; }
.ex-fields input { width: 150px; }
.ex-fields select:focus-visible, .ex-fields input:focus-visible, th[data-sort]:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--heading); }
th[data-sort]::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 5px; border: 4px solid transparent; vertical-align: middle; }
th[aria-sort="ascending"]::after { border-bottom-color: currentColor; transform: translateY(-3px); }
th[aria-sort="descending"]::after { border-top-color: currentColor; transform: translateY(2px); }
th[aria-sort="ascending"], th[aria-sort="descending"] { color: var(--heading); }
.note { font-size: 19px; color: var(--text-secondary); margin: -14px 0 26px; }

/* DIR listing (PixelSERP homepage) */
.dir-list { font-family: 'VT323', monospace; font-size: 21px; line-height: 1.3; }
.dir-list a { display: grid; grid-template-columns: 1fr 12ch 12ch auto; gap: 0 1.5ch; align-items: center; padding: 3px 10px; text-decoration: none; color: var(--text-secondary); }
.dir-list a .dn { color: var(--fk-tx); }
.dir-list a .ds { text-align: right; font-variant-numeric: tabular-nums; }
.dir-list a:hover, .dir-list a:focus-visible { background: var(--fk-acc); color: var(--fk-bg); outline: none; }
.dir-list a:hover .dn, .dir-list a:hover .gs b { color: var(--fk-bg); }
.dir-list a:hover .sb { border-color: var(--fk-bg); background: var(--fk-acc); } .dir-list a:hover .sb .sf { background: var(--fk-bg); }

/* ── FAQ (PixelSERP: a window of collapsible items) ── */
.faq-section { border: 2px solid var(--fk-acc); background: var(--fk-bg); padding: 14px 16px 16px; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; align-items: start; }
.faq-section > .panel-title { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin: -14px -16px 0; width: calc(100% + 32px);
  background: var(--fk-acc); color: var(--fk-bg); font-family: 'Press Start 2P', monospace; font-size: 8px; font-weight: 400; letter-spacing: .5px; line-height: 1.5; text-transform: uppercase; padding: 9px 12px 8px; }
.faq-item { border: 2px solid var(--fk-acc); background: var(--fk-bg); }
.faq-q { width: 100%; text-align: left; background: var(--fk-acc); color: var(--fk-bg); border: none; padding: 10px 12px; font-family: 'Press Start 2P', monospace; font-size: 8px; font-weight: 400; line-height: 1.6; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--fk-bg); transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { font-family: 'VT323', monospace; font-size: 20px; letter-spacing: .5px; color: var(--fk-tx); line-height: 1.55; max-height: 0; overflow: hidden; padding: 0 14px; transition: max-height .25s ease, padding .25s; }
.faq-item.open .faq-a { max-height: 600px; padding: 12px 14px 16px; }

/* ── Footer + status bar (PixelSERP) ── */
.footer-nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 20px 16px 4px; font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.footer-nav a:hover { color: var(--fk-tx); border-bottom-color: var(--fk-acc); }
footer { font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 1px; line-height: 2.4; text-transform: uppercase; color: var(--text-primary); text-align: center; padding: 14px 16px 24px; }
footer a { color: inherit; }
#status-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--sb-bg); color: var(--sb-tx); font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 1px; padding: 0 16px; z-index: 9000; display: flex; align-items: center; gap: 12px; border-top: 2px solid var(--sb-line); text-transform: uppercase; min-height: 26px; }
#status-bar .status-dot { width: 6px; height: 6px; background: var(--sb-tx); flex-shrink: 0; animation: blink 1s steps(1) infinite; }
#status-bar .prog-tabs { display: flex; gap: 0; margin-left: 18px; align-self: stretch; }
#status-bar .prog-tabs a { display: flex; align-items: center; padding: 0 11px; border-left: 1px solid var(--sb-line); color: var(--sb-dim); text-decoration: none; font-size: 8px; letter-spacing: .5px; white-space: nowrap; }
#status-bar .prog-tabs a:last-child { border-right: 1px solid var(--sb-line); }
#status-bar .prog-tabs a:hover { color: var(--sb-tx); }
#status-bar .prog-tabs a.on { background: var(--sb-tx); color: var(--sb-bg); }
#status-bar .pwr { font-size: 8px; letter-spacing: 1px; opacity: .55; margin-left: auto; white-space: nowrap; }

/* ── Effects ── */
/* Static Flicker on the main action (PixelSERP's homepage RUN buttons), only for visitors who allow motion */
@media (prefers-reduced-motion: no-preference) {
  .fk.glitch-flicker:hover, .fk.glitch-flicker:focus-visible { animation: glitchFlicker .4s steps(1) 1; }
  @keyframes glitchFlicker { 0%, 100% { filter: none; transform: translate(0, 0); } 8% { filter: invert(1) brightness(1.3); transform: translate(-2px, 1px); } 16% { filter: none; opacity: .35; } 24% { opacity: 1; } 32% { filter: invert(1); transform: translate(2px, -1px); } 48% { filter: none; } 60% { opacity: .5; transform: translate(-1px, 0); } 72% { opacity: 1; } 84% { filter: brightness(1.6); } }
}
@media (prefers-reduced-motion: reduce) { .block-cursor, #status-bar .status-dot { animation: none; } .hero-tool, .hero-tool:hover, .fk:active { transform: none; transition: none; } }

/* Daylight is the reading theme: larger body text */
body.gf-daylight .hero p, body.gf-daylight .panel p, body.gf-daylight .verdict-detail, body.gf-daylight table, body.gf-daylight .dir-list, body.gf-daylight .faq-a { font-size: 24px; }

/* ── Small screens ── */
@media (max-width: 760px) {
  header { padding: 12px 10px; gap: 6px; } .logo-text, .block-cursor { display: none; } .nav { gap: 6px; }
  header .fk { padding-right: 7px; gap: 6px; } header .fk .fk-key { padding: 8px 5px 7px; min-width: 20px; } header .fk .fk-label { padding: 8px 0 7px; }
  .hide-s, .bar-keys, #status-bar .prog-tabs, #status-bar .pwr { display: none; }
  .ascii-banner, .hero.home .ascii-banner { font-size: 2.8vw; } .ascii-banner .w1 { display: none; } .ascii-banner .w2 { display: inline; }
  .hero-tagline, .hero.compact h1.hero-tagline { font-size: 16px; }
  .hero-tools, .hero-tools.five, .hero-tools.six { --cols: 2; }
  .hero.home { padding-top: 28px; }
  .readout-row { flex-wrap: wrap; } .readout-row span { flex: 1 1 45%; border-right: 2px solid var(--fk-acc); border-bottom: 0; } .readout-row span:nth-last-child(-n+2) { border-bottom: 2px solid var(--fk-acc); }
  .cond-body { grid-template-columns: 1fr; } .cond-core { order: -1; }
  .gs .sb { width: 56px; } td, th { padding-left: 6px; padding-right: 6px; } td.name { min-width: 130px; }
  .thumb { width: 92px; height: 35px; } .thumb.sq { width: 40px; height: 40px; }
  .dir-list a { grid-template-columns: 1fr auto; } .dir-list a .ds { display: none; }
}
/* PixelSERP drops the header keycaps below 440px so the buttons fit */
@media (max-width: 439px) {
  header .fk .fk-key { display: none; } header .fk { padding: 0 6px; justify-content: center; }
}
