/* TRENCHES-98 — the PC-98 style, the default look (html.pc98; the neon look is styles.css alone).
   A 1980s Japanese office computer: the 3D world is dithered to 16 colours at about 640 pixels
   wide (scene3d/retro.js), and the interface around it is a window system in the same spirit.
   Navy windows with a light double frame and a striped title bar, bevelled buttons, inverted
   selections, a dot font (DotGothic16 at its native 16px, 8px Press Start 2P for tiny caps, both
   doubled for big numbers), hard 1-pixel shadows, dotted rules, segmented meters, 50% dither
   overlays instead of blur, stepped motion, and scanlines over everything. Every rule is scoped
   to html.pc98 so it wins ties with styles.css and vanishes in the neon style. */
html.pc98 {
  color-scheme: dark;
  --bg: #000011; --panel: #111133; --panel-2: #1a1a44; --panel-solid: #111133; --chart-bg: #000011;
  --win: #111133; --win-2: #222255;
  --stroke: #333366; --stroke-2: #5555aa; --stroke-3: #8888cc;
  --ink: #eeeeff; --ink-2: #aaaadd; --ink-3: #7777aa; --grid: #222244; --line: #333366;
  --up: #22ee88; --down: #ff4466; --yellow: #ffcc44; --amber: #ffcc44; --cyan: #55ccff; --magenta: #aa66ff;
  --sol: linear-gradient(90deg, #8844ff 0 25%, #6677ff 25% 50%, #44aadd 50% 75%, #22ee88 75%);
  --font: "DotGothic16", "MS Gothic", ui-monospace, monospace;
  --display: "DotGothic16", "MS Gothic", ui-monospace, monospace;
  --mono: "DotGothic16", "MS Gothic", ui-monospace, monospace;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --r: 0px; --r-sm: 0px;
  --shadow: 4px 4px 0 #000;
  --ease: steps(4, end);
  /* frame colours: light edge, dark edge, title bar */
  --hi: #ccccee; --lo: #000011; --bar: #3a1d88; --bar-2: #4a2aa0;
  --bevel-hi: #9999dd; --bevel-lo: #111133; --btn: #333377; --btn-hover: #4444aa;
  --px: 2px;
  --dither: repeating-conic-gradient(rgba(0, 0, 17, 0.92) 0 25%, rgba(0, 0, 17, 0.25) 0 50%) 0 0 / 4px 4px;
}
html.pc98, html.pc98 body { background: #000011; }
html.pc98 body { font: 16px/1.5 var(--font); letter-spacing: 0; -webkit-font-smoothing: none; font-smooth: never; }
html.pc98 ::selection { background: var(--cyan); color: #000011; }
html.pc98 button:focus-visible, html.pc98 input:focus-visible, html.pc98 select:focus-visible, html.pc98 summary:focus-visible, html.pc98 [tabindex]:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; border-radius: 0; }
html.pc98 .note { font-size: 16px; }
html.pc98 .link { color: var(--cyan); text-decoration: none; }
html.pc98 .link:hover { background: var(--cyan); color: #000011; }
html.pc98 kbd { font: 8px/1 var(--pixel); color: inherit; border: 2px solid currentColor; border-radius: 0; padding: 2px 3px 1px; background: transparent; opacity: 0.85; vertical-align: 2px; }
html.pc98 img.pixel, html.pc98 .ava, html.pc98 .ava-big, html.pc98 canvas { image-rendering: pixelated; }
html.pc98 ::-webkit-scrollbar { width: 14px; height: 14px; background: #000011; }
html.pc98 ::-webkit-scrollbar-track { background: repeating-conic-gradient(#222255 0 25%, #000011 0 50%) 0 0 / 4px 4px; }
html.pc98 ::-webkit-scrollbar-thumb { background: #8888cc; border: 2px solid; border-color: #ccccff #333366 #333366 #ccccff; border-radius: 0; }
html.pc98 ::-webkit-scrollbar-corner { background: #000011; }

/* ---------- the CRT: scanlines aligned to the world's pixel rows, a soft vignette ---------- */
html.pc98 body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.17) 0 calc(var(--px) / 2), transparent calc(var(--px) / 2) var(--px)),
    radial-gradient(120% 100% at 50% 50%, transparent 62%, rgba(0, 0, 8, 0.32) 100%); }
html.pc98 body.lowfx::after { display: none; }
@keyframes blink98 { 50% { opacity: 0; } }
@keyframes pop98 { from { transform: scale(0.94); opacity: 0; } }

/* ---------- power-on ---------- */
.boot { position: fixed; inset: 0; z-index: 10000; background: #000011; padding: 28px 32px; cursor: default; }
.boot pre { margin: 0; font: 16px/1.5 var(--font); color: #ccccee; white-space: pre-wrap; }
.boot pre::after { content: "_"; animation: blink98 0.5s steps(1) infinite; }
.boot.out { animation: bootOut 0.35s steps(4) both; }
@keyframes bootOut { to { opacity: 0; } }

/* ---------- the world, its tags and captions ---------- */
html.pc98 .world { background: #000011; overflow: hidden; }
html.pc98 .world-canvas.retro { image-rendering: pixelated; image-rendering: crisp-edges; transition: none; }
html.pc98 .world.fading .world-canvas { opacity: 1; }
html.pc98 .wtag { border-radius: 0; border: 2px solid var(--ink); background: #000022; color: var(--ink); font: 16px/1.25 var(--font); letter-spacing: 0.04em; padding: 2px 8px 2px 6px; gap: 6px;
  box-shadow: 3px 3px 0 #000; transition: opacity 0.2s steps(2); }
html.pc98 .wtag::after { width: 2px; left: calc(50% - 1px); background: var(--ink); }
html.pc98 .wtag kbd { padding: 2px 2px 1px; }
html.pc98 .wtag-dot { width: 8px; height: 8px; border-radius: 0; background: var(--cyan); box-shadow: none; }
html.pc98 .wtag[data-tag="market"] { border-color: var(--up); }
html.pc98 .wtag[data-tag="market"]::after { background: var(--up); }
html.pc98 .wtag[data-tag="market"] .wtag-dot { background: var(--up); box-shadow: none; animation: blink98 1s steps(1) infinite; }
html.pc98 .wtag.hover, html.pc98 .wtag:hover { background: var(--ink); color: #000022; scale: 1; box-shadow: 3px 3px 0 #000; }
html.pc98 .wtag-badge { border-radius: 0; box-shadow: none; font: 8px/16px var(--pixel); height: 16px; min-width: 16px; padding: 0 3px; }
html.pc98 .world-cap { gap: 2px; padding: 6px 12px 8px; background: #000022; border: 2px solid var(--stroke-3); box-shadow: 4px 4px 0 #000; }
html.pc98 .world-cap:empty { display: none; }
html.pc98 .world-cap b { font: 16px var(--display); letter-spacing: 0.16em; color: var(--yellow); text-shadow: none; }
html.pc98 .world-cap span { font-size: 16px; color: var(--ink); text-shadow: none; }
html.pc98 .world-hint { border-radius: 0; border: 2px solid var(--up); background: #000011; box-shadow: 4px 4px 0 #000; font: 16px var(--font); padding: 6px 14px; animation: hintIn 0.6s steps(3) both 1.2s; }
html.pc98 .world-hint { padding-right: 36px; }
html.pc98 .world-hint::before { content: "▶ "; color: var(--up); animation: blink98 1s steps(1) infinite; }
html.pc98 .back-btn { border-radius: 0; font: 16px var(--display); }

/* ---------- windows ---------- */
html.pc98 .win, html.pc98 body.has-world .win, html.pc98 body.lowfx .win {
  border-radius: 0; border: 2px solid var(--hi); background: var(--win);
  box-shadow: 0 0 0 2px #000, 6px 6px 0 2px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
html.pc98 .win::before { display: none; }
html.pc98 .ph, html.pc98 .screen[data-screen="life"] .ph { padding: 3px 6px 3px 8px; min-height: 30px; gap: 6px 10px; border-bottom: 2px solid var(--hi); border-radius: 0;
  background: repeating-linear-gradient(180deg, var(--bar) 0 2px, var(--bar-2) 2px 4px); }
html.pc98 .ph h2 { font: 16px/1.4 var(--display); letter-spacing: 0.06em; color: #fff; gap: 8px; background: var(--bar); padding-right: 8px; }
html.pc98 .ph h2::before { width: 14px; height: 14px; border-radius: 0; background: var(--hi); box-shadow: inset -2px -2px 0 #555588, inset 2px 2px 0 #fff; }
html.pc98 .ph-note { font: 16px var(--mono); color: #ccbbff; letter-spacing: 0; background: var(--bar); padding: 0 4px; }
html.pc98 .win-h { font: 16px var(--display); letter-spacing: 0.1em; color: var(--cyan); margin: 18px 0 8px; }
html.pc98 .win-h::after { height: 2px; background: repeating-linear-gradient(90deg, var(--stroke-2) 0 2px, transparent 2px 4px); }

/* ---------- controls ---------- */
html.pc98 .btn, html.pc98 .ghost, html.pc98 .chip-btn {
  font: 16px/1.4 var(--font); color: var(--ink); background: var(--btn); padding: 3px 12px; border-radius: 0;
  border: 2px solid; border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi); box-shadow: 2px 2px 0 #000; transition: none; }
html.pc98 .btn:hover:not(:disabled), html.pc98 .ghost:hover:not(:disabled), html.pc98 .chip-btn:hover:not(:disabled) { background: var(--btn-hover); border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi); box-shadow: 2px 2px 0 #000; }
html.pc98 .btn:active:not(:disabled), html.pc98 .chip-btn:active:not(:disabled), html.pc98 .ghost:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; border-color: var(--bevel-lo) var(--bevel-hi) var(--bevel-hi) var(--bevel-lo); }
html.pc98 .btn:disabled, html.pc98 .chip-btn:disabled, html.pc98 .ghost:disabled { opacity: 1; color: #555588; background: #1a1a44; box-shadow: none; }
html.pc98 .btn.primary, html.pc98 .btn.primary:hover:not(:disabled) { color: #002211; background: var(--up); border-color: #aaffdd #116644 #116644 #aaffdd; text-shadow: none; filter: none; box-shadow: 3px 3px 0 #000; }
html.pc98 .btn.primary:hover:not(:disabled) { background: #66ffbb; }
html.pc98 .btn.primary:disabled { color: #555588; background: #1a1a44; border-color: #333366 #111133 #111133 #333366; box-shadow: none; }
html.pc98 .btn.big { padding: 8px 22px; font: 16px var(--display); letter-spacing: 0.12em; border-radius: 0; }
html.pc98 .btn.small { padding: 0 8px; font-size: 16px; }
html.pc98 .warn-btn { font: 16px var(--font); border-radius: 0; color: #ffdde4; background: #661122; border: 2px solid; border-color: #ff8899 #330011 #330011 #ff8899; box-shadow: 2px 2px 0 #000; }
html.pc98 .warn-btn:hover { background: #881a33; box-shadow: 2px 2px 0 #000; }
html.pc98 .seg { border-radius: 0; padding: 2px; gap: 2px; background: #000011; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); }
html.pc98 .seg button { border-radius: 0; font: 16px/1.4 var(--mono); letter-spacing: 0; padding: 0 8px; color: var(--ink-2); transition: none; }
html.pc98 .seg button:hover { color: #fff; background: #222255; }
html.pc98 .seg button.on { color: #000022; background: var(--ink); box-shadow: none; }
html.pc98 .tabs { gap: 2px; padding: 6px 8px 0; border-bottom: 2px solid var(--stroke-2); }
html.pc98 .tabs button { font: 16px/1.4 var(--font); padding: 2px 10px; color: var(--ink-3); border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; transition: none; }
html.pc98 .tabs button:hover { color: var(--ink); background: #1a1a44; }
html.pc98 .tabs button[aria-selected="true"] { color: #fff; background: var(--win); border-color: var(--stroke-2); border-bottom: 2px solid var(--win); }
html.pc98 .tabs button[aria-selected="true"]::after { display: none; }
html.pc98 .screen[data-screen="life"] .tabs button { font-size: 16px; padding: 2px 8px; }
html.pc98 .chip { border-radius: 0; font: 8px/1 var(--pixel); letter-spacing: 0; padding: 4px 5px 3px; border-width: 2px; background: transparent; }
html.pc98 .chip.t1, html.pc98 .chip.t-1 { background: transparent; }
html.pc98 input.txt, html.pc98 .qty-row input, html.pc98 .trig input, html.pc98 select {
  border-radius: 0; background: #000; color: var(--up); font: 16px/1.4 var(--mono); padding: 4px 8px;
  border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); transition: none; }
html.pc98 input.txt:focus, html.pc98 .qty-row input:focus, html.pc98 .trig input:focus { border-color: var(--cyan); box-shadow: none; outline: none; }
html.pc98 select option { background: #111133; color: var(--ink); }
html.pc98 .lbl { font: 8px/1 var(--pixel); letter-spacing: 0; color: var(--ink-3); margin-bottom: 8px; }
html.pc98 input[type="checkbox"], html.pc98 input[type="range"] { accent-color: var(--cyan); }

/* ---------- title ---------- */
html.pc98 .title-scene::after { display: none; }
html.pc98 .title-card { background: var(--win); }
html.pc98 .title-card .ph { display: flex; }
html.pc98 .title-body { padding: 22px 26px 22px; }
html.pc98 .title-kicker { font: 16px var(--mono); letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 14px; }
/* The logo: 8x8 pixel letters filled with dithered bands, white → mint → green → blue → purple. */
html.pc98 .title-logo { font: 64px/1 var(--pixel); letter-spacing: 0; padding-bottom: 4px; color: transparent; filter: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='16' shape-rendering='crispEdges'%3E%3Crect width='2' height='3' fill='%23ffffff'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23bbffee'/%3E%3Crect y='3' width='2' height='2' fill='%23bbffee'/%3E%3Crect y='5' width='2' height='1' fill='%23bbffee'/%3E%3Crect x='1' y='5' width='1' height='1' fill='%2322ee88'/%3E%3Crect y='6' width='2' height='2' fill='%2322ee88'/%3E%3Crect y='8' width='1' height='1' fill='%2322ee88'/%3E%3Crect x='1' y='8' width='1' height='1' fill='%2344aadd'/%3E%3Crect y='9' width='2' height='1' fill='%2344aadd'/%3E%3Crect y='10' width='1' height='1' fill='%2344aadd'/%3E%3Crect x='1' y='10' width='1' height='1' fill='%237766ff'/%3E%3Crect y='11' width='2' height='1' fill='%237766ff'/%3E%3Crect y='12' width='1' height='1' fill='%237766ff'/%3E%3Crect x='1' y='12' width='1' height='1' fill='%239944ff'/%3E%3Crect y='13' width='2' height='2' fill='%239944ff'/%3E%3Crect y='15' width='2' height='1' fill='%236622bb'/%3E%3C/svg%3E") 0 0 / 8px 64px repeat;
  -webkit-background-clip: text; background-clip: text; text-shadow: none; }
html.pc98 .title-logo::selection { color: #fff; }
html.pc98 .title-tag { font-size: 16px; margin: 18px 0 8px; }
html.pc98 .title-gmi { font: 16px var(--mono); letter-spacing: 0.08em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--up); }
html.pc98 .title-gmi::before { content: "> "; }
html.pc98 .title-gmi::after { content: "_"; animation: blink98 1s steps(1) infinite; }
html.pc98 .continue { border-radius: 0; border: 2px solid var(--yellow); background: #1a1400; box-shadow: 4px 4px 0 #000; padding: 12px; }
html.pc98 .continue span { font: 16px var(--mono); color: var(--yellow); }
html.pc98 .title-style { margin: 18px 0 0; }
html.pc98 .title-style .link::before { content: "["; } html.pc98 .title-style .link::after { content: "]"; }
html.pc98 .howto { border-top: 2px dotted var(--stroke-2); font-size: 16px; gap: 6px; }
html.pc98 .howto b { font: 16px var(--mono); letter-spacing: 0.1em; }
html.pc98 .ava-big { border-radius: 0; border: 2px solid var(--hi); background: #000022; box-shadow: 4px 4px 0 #000; }
html.pc98 .perk { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; padding: 8px 10px; transition: none; }
html.pc98 .perk b { font: 16px var(--font); }
html.pc98 .perk span { font-size: 16px; line-height: 1.35; }
html.pc98 .perk:hover { border-color: var(--stroke-3); }
html.pc98 .perk.on { border-color: var(--cyan); background: #0a2a3a; box-shadow: none; }
html.pc98 .perk.on b::before { content: "■ "; }

/* ---------- HUD and menu bar ---------- */
html.pc98 .logo { font: 24px/1 var(--pixel); letter-spacing: 0; filter: none; color: transparent;
  background: linear-gradient(180deg, #ffffff 0 9px, #22ee88 9px 15px, #9944ff 15px); -webkit-background-clip: text; background-clip: text; }
html.pc98 .tape { border-radius: 0; height: 32px; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); background: #000; -webkit-mask: none; mask: none; }
html.pc98 .tape-track { font: 16px var(--mono); gap: 32px; }
html.pc98 .hud-box, html.pc98 body.has-world .hud-box { border-radius: 0; border: 2px solid var(--stroke-3); background: #000011; box-shadow: 4px 4px 0 #000; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 4px 12px; }
html.pc98 .hud-clock b { font: 16px var(--display); letter-spacing: 0.04em; }
html.pc98 .hud-clock span { font: 16px var(--mono); }
html.pc98 #clkTime { color: var(--cyan); text-shadow: none; }
html.pc98 .hud-money small { font: 8px/1 var(--pixel); letter-spacing: 0; margin-bottom: 2px; }
html.pc98 .hud-money b { font: 32px/1.05 var(--mono); letter-spacing: 0; text-shadow: none; }
html.pc98 .hud-money span { font: 16px var(--mono); }
html.pc98 .menu, html.pc98 body.has-world .menu { background: #000011; border-bottom: 2px solid var(--stroke-2); -webkit-backdrop-filter: none; backdrop-filter: none; padding-block: 6px; }
html.pc98 .menu-tabs { border-radius: 0; background: none; border: 0; padding: 0; gap: 2px; }
html.pc98 .menu-tabs button { border-radius: 0; font: 16px/1.4 var(--display); letter-spacing: 0.06em; padding: 3px 10px; color: var(--ink-2); transition: none; }
html.pc98 .menu-tabs button:hover { color: #fff; background: #222255; }
html.pc98 .menu-tabs button[aria-selected="true"] { color: #000022; background: var(--ink); box-shadow: none; }
html.pc98 .menu-tabs button[aria-selected="true"] kbd { color: #000022; border-color: #000022; }
html.pc98 .mbadge { border-radius: 0; box-shadow: none; font: 8px/16px var(--pixel); height: 16px; min-width: 16px; padding: 0 3px; }
html.pc98 .play { border-radius: 0; color: #002211; background: var(--up); border: 2px solid; border-color: #aaffdd #116644 #116644 #aaffdd; box-shadow: 3px 3px 0 #000; transition: none; }
html.pc98 .play:hover { filter: none; transform: none; background: #66ffbb; }
html.pc98 .play:active { transform: translate(2px, 2px); box-shadow: none; }
html.pc98 .play.running { background: var(--yellow); border-color: #ffeeaa #886600 #886600 #ffeeaa; box-shadow: 3px 3px 0 #000; }
html.pc98 .play.idle { animation: idle98 1s steps(1) infinite; }
@keyframes idle98 { 50% { background: var(--ink); border-color: #fff #555588 #555588 #fff; } }
html.pc98 .pause-on { font: 16px var(--font); }
html.pc98 .pause-on select { font: 16px var(--mono); padding: 1px 6px; }

/* ---------- screens ---------- */
/* Opacity only: a transform here would become the containing block of the fixed life sheet. */
html.pc98 .screen { animation: screenIn98 0.24s steps(3); }
@keyframes screenIn98 { from { opacity: 0; } }
html.pc98 .mkt-grid { gap: 18px; }
html.pc98 .board-list { gap: 2px; }
html.pc98 .row { border-radius: 0; border: 2px solid transparent; padding: 6px 8px 6px 18px; transition: none; }
html.pc98 .row:hover { background: #1a1a44; }
html.pc98 .row.sel { background: #22164e; border-color: var(--cyan); }
html.pc98 .row.sel::before { content: "▶"; top: 7px; left: 3px; bottom: auto; width: auto; border-radius: 0; background: none; box-shadow: none; color: var(--cyan); font: 12px/1 var(--font); animation: blink98 1s steps(1) infinite; }
html.pc98 .row .tk { font: 16px var(--mono); letter-spacing: 0.02em; }
html.pc98 .row .nm { font-size: 16px; }
html.pc98 .row .pr { font: 16px var(--mono); border-radius: 0; }
html.pc98 .row .meta { font: 16px var(--mono); }
html.pc98 .row canvas { height: 24px; }
html.pc98 .badge { border-radius: 0; font: 8px/1 var(--pixel); letter-spacing: 0; padding: 2px 3px 1px; border-width: 2px; }
@keyframes fu { from { background: var(--up); color: #002211; box-shadow: none; } }
@keyframes fd { from { background: var(--down); color: #220008; box-shadow: none; } }
html.pc98 .flash-up, html.pc98 .flash-down { animation-timing-function: steps(3); }

/* chart */
html.pc98 .chart-head .px b, html.pc98 .px b { font: 32px/1 var(--mono); letter-spacing: 0; text-shadow: none; }
html.pc98 .chg, html.pc98 .chg.up, html.pc98 .chg.down { font: 16px var(--mono); text-shadow: none; }
html.pc98 .nextcat { font-size: 16px; }
html.pc98 .nextcat .soon { border-radius: 0; box-shadow: none; color: #000; padding: 0 6px; }
html.pc98 .ind-menu summary { border-radius: 0; font: 16px/1.4 var(--mono); color: var(--ink); padding: 1px 10px; background: var(--btn); border: 2px solid; border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi); box-shadow: 2px 2px 0 #000; }
html.pc98 .ind-menu[open] summary, html.pc98 .ind-menu summary:hover { background: var(--btn-hover); border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi); }
html.pc98 .ind-pop { border-radius: 0; border: 2px solid var(--hi); background: var(--win); box-shadow: 0 0 0 2px #000, 4px 4px 0 2px #000; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px; animation: pop98 0.16s steps(2); }
html.pc98 .chart-wrap { border-radius: 0; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); background: #000011; box-shadow: none; }
html.pc98 .cl-legend { font: 16px var(--mono); }
html.pc98 .cl-tk { font: 16px var(--mono); }
html.pc98 .cl-tf { border-radius: 0; font: 8px/1 var(--pixel); padding: 3px 4px 2px; border-width: 2px; }
html.pc98 .cl-sub { font-size: 16px; }
html.pc98 .cl-pane-legend { font: 16px var(--mono); }
html.pc98 .cl-live { border-radius: 0; font: 16px var(--mono); letter-spacing: 0.06em; padding: 2px 10px; background: #000022; border: 2px solid var(--cyan); box-shadow: 3px 3px 0 #000; animation: pop98 0.16s steps(2); }
html.pc98 .cl-live:hover { background: var(--cyan); color: #000022; }
html.pc98 .tip { border-radius: 0; border: 2px solid var(--hi); background: #000022; box-shadow: 4px 4px 0 #000; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px; }
html.pc98 .tip em { border-left-width: 4px; }
html.pc98 .away { background: var(--dither), #000011; }
html.pc98 .away-cap { background: #000022; border: 2px solid var(--yellow); box-shadow: 4px 4px 0 #000; }
html.pc98 .away b { font: 16px var(--display); letter-spacing: 0.2em; text-shadow: none; }
html.pc98 .away span { font-size: 16px; }

/* ticket */
html.pc98 .ticket { gap: 12px; }
html.pc98 .pos-line { border-radius: 0; border: 2px solid var(--stroke); background: #000011; font-size: 16px; }
html.pc98 .trig { font: 16px var(--font); letter-spacing: 0; text-transform: none; }
html.pc98 .cost { font: 16px var(--mono); }
html.pc98 .buy, html.pc98 .sell { border-radius: 0; padding: 10px; font: 16px var(--display); letter-spacing: 0.24em; border: 2px solid; box-shadow: 3px 3px 0 #000; transition: none; }
html.pc98 .buy { color: #002211; background: var(--up); border-color: #aaffdd #116644 #116644 #aaffdd; }
html.pc98 .sell { color: #220008; background: var(--down); border-color: #ffaabb #882233 #882233 #ffaabb; }
html.pc98 .buy::after, html.pc98 .sell::after { display: none; }
html.pc98 .buy:hover { background: #66ffbb; filter: none; } html.pc98 .sell:hover { background: #ff7799; filter: none; }
html.pc98 .buy:active, html.pc98 .sell:active { transform: translate(3px, 3px); box-shadow: none; }
html.pc98 .msg { font-size: 16px; }
html.pc98 .research-link { border-radius: 0; border: 2px dashed var(--magenta); background: #1a0f33; font-size: 16px; transition: none; }
html.pc98 .research-link b { font: 16px var(--font); color: var(--yellow); }
html.pc98 .research-link:hover { border-style: solid; box-shadow: 4px 4px 0 #000; }

/* research */
html.pc98 .asset-tabs { gap: 6px; }
html.pc98 .asset-tabs button, html.pc98 body.has-world .asset-tabs button { border-radius: 0; border: 2px solid var(--stroke-2); background: #000022; font: 16px/1.3 var(--mono); box-shadow: 3px 3px 0 #000; padding: 4px 12px; -webkit-backdrop-filter: none; backdrop-filter: none; transition: none; }
html.pc98 .asset-tabs button small { font: 16px var(--font); }
html.pc98 .asset-tabs button:hover { border-color: var(--stroke-3); }
html.pc98 .asset-tabs button[aria-selected="true"] { border-color: var(--cyan); background: #0a2a3a; box-shadow: 3px 3px 0 #000; }
html.pc98 .lede { font-size: 16px; line-height: 1.6; }
html.pc98 .callout { border-radius: 0; border: 2px solid var(--cyan); background: #0a2233; }
html.pc98 .drivers .dir { border-radius: 0; border-width: 2px; box-shadow: none !important; font-size: 16px; }
html.pc98 .drivers span { font-size: 16px; }
html.pc98 .kv dt, html.pc98 .kv dd, html.pc98 .kvs dt, html.pc98 .kvs dd { font-size: 16px; border-bottom: 2px dotted var(--stroke); }
html.pc98 .sens { font-size: 16px; }
html.pc98 .sens td { border-bottom: 2px dotted var(--stroke); }
html.pc98 .sens .track { border-radius: 0; height: 10px; background: #000; }
html.pc98 .sens .track::after { width: 2px; }
html.pc98 .sens .fill { border-radius: 0; box-shadow: none; }
html.pc98 .box { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; }
html.pc98 .box h4 { font: 16px var(--font); }
html.pc98 .box h4 small { font: 16px var(--mono); }
html.pc98 .clues li, html.pc98 .clues li .v { font-size: 16px; }
html.pc98 .meter { border-radius: 0; height: 10px; background: #000; }
html.pc98 .macro-grid { gap: 10px; }
html.pc98 .tile { border-radius: 0; border: 2px solid var(--stroke-2); background: #0a0a22; padding: 10px 12px; }
html.pc98 .tile small { font: 8px/1 var(--pixel); letter-spacing: 0; margin-bottom: 6px; }
html.pc98 .tile b { font: 32px/1.1 var(--mono); text-shadow: none; }
html.pc98 .tile span { font-size: 16px; }
html.pc98 .rule-list { font-size: 16px; }
html.pc98 .cal li { font-size: 16px; border-bottom: 2px dotted var(--stroke); }
html.pc98 .cal li b { font: 16px var(--mono); }
html.pc98 .cal li.today b { border-radius: 0; box-shadow: none; color: #000; }

/* news */
html.pc98 .item { border-bottom: 2px dotted var(--stroke); transition: none; }
html.pc98 .item:hover { background: #1a1a44; }
html.pc98 .item.major { box-shadow: inset 4px 0 0 var(--magenta); }
html.pc98 .item.fresh { animation: fresh98 0.9s steps(3); }
@keyframes fresh98 { from { background: #2a1a66; } }
html.pc98 .item-top { font: 16px var(--mono); }
html.pc98 .item-title { font-size: 16px; }
html.pc98 .tagbtn { border-radius: 0; font: 16px/1.2 var(--mono); border-width: 2px; padding: 0 6px; }
html.pc98 .item details, html.pc98 .item summary { font-size: 16px; }
html.pc98 .empty-state { font-size: 16px; }

/* wallet */
html.pc98 .stat-card { border-radius: 0; border: 2px solid var(--stroke-2); background: #0a0a22; }
html.pc98 .stat-card small { font: 8px/1 var(--pixel); letter-spacing: 0; margin-bottom: 6px; }
html.pc98 .stat-card b { font: 32px/1.1 var(--mono); }
html.pc98 .stat-card > span { font-size: 16px; }
html.pc98 .life-chart, html.pc98 .rep-chart { border-radius: 0; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); background: #000011; }
html.pc98 .rep-legend { font-size: 16px; }
html.pc98 .rep-legend span::before { border-radius: 0; height: 4px; }
html.pc98 .lg-you::before { box-shadow: none; }
html.pc98 .tbl { font-size: 16px; }
html.pc98 .tbl th { font: 8px/1 var(--pixel); letter-spacing: 0; padding: 10px 8px 8px; border-bottom: 2px solid var(--stroke-2); }
html.pc98 .tbl td { border-bottom: 2px dotted var(--stroke); }
html.pc98 .tbl tr:hover td { background: #1a1a44; }
html.pc98 .jrow { font-size: 16px; border-bottom: 2px dotted var(--stroke); }
html.pc98 .jrow .tk { font: 16px var(--mono); }
html.pc98 .jrow small { font-size: 16px; }
html.pc98 .verdict { border-radius: 0; font: 8px/1 var(--pixel); letter-spacing: 0; padding: 4px 5px 3px; border-width: 2px; }

/* phone */
html.pc98 .contacts { gap: 4px; }
html.pc98 .contact { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; transition: none; }
html.pc98 .contact:hover { border-color: var(--stroke-3); }
html.pc98 .contact.on { border-color: var(--cyan); background: #0a2a3a; box-shadow: none; }
html.pc98 .ava { border-radius: 0; border: 2px solid var(--stroke-3); }
html.pc98 .c-main b { font-size: 16px; font-weight: 400; }
html.pc98 .c-main small { font-size: 16px; }
html.pc98 .rel { border-radius: 0; height: 6px; background: #000; }
html.pc98 .rel i { border-radius: 0; box-shadow: none; background: repeating-linear-gradient(90deg, var(--magenta) 0 4px, transparent 4px 6px); }
html.pc98 .kind { font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .dot { border-radius: 0; box-shadow: none; font: 8px/18px var(--pixel); }
html.pc98 .profile-card .ava { border-radius: 0; }
html.pc98 .profile-card b { font-size: 16px; font-weight: 400; }
html.pc98 .profile-card small { font-size: 16px; }
html.pc98 .relnum b { font: 32px/1 var(--mono); text-shadow: none; }
html.pc98 .relnum small { font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .bub { border-radius: 0 !important; font-size: 16px; padding: 6px 10px; animation: pop98 0.16s steps(2); }
html.pc98 .bub.them { background: #1a1a44; border: 2px solid #444488; box-shadow: 3px 3px 0 #000; }
html.pc98 .bub.me { background: #2a1a66; border: 2px solid #7755cc; box-shadow: 3px 3px 0 #000; }
html.pc98 .bub small { font: 16px var(--mono); }
html.pc98 .sysmsg { font-size: 16px; }
html.pc98 .mnpi { border-radius: 0; border-width: 2px; font-size: 16px; }
html.pc98 .acts { border-top: 2px dotted var(--stroke-2); }
html.pc98 .acts .chip-btn span { font-size: 16px; }
html.pc98 .legal-box, html.pc98 .letter, html.pc98 .compose { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; }
html.pc98 .lb-top small { font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .heat { border-radius: 0; background: #000; }
html.pc98 .heat i { border-radius: 0; box-shadow: none; background: linear-gradient(90deg, var(--yellow) 0 33%, #ff8844 33% 66%, var(--down) 66%); }
html.pc98 .heat b { border-radius: 0; }
html.pc98 .letter.unread { border-color: var(--yellow); box-shadow: none; }
html.pc98 .letter header { font-size: 16px; }
html.pc98 .letter h4 { font: 16px var(--font); color: var(--yellow); }
html.pc98 .letter p, html.pc98 .rule { font-size: 16px; }
html.pc98 .feed li { font-size: 16px; border-bottom: 2px dotted var(--stroke); }
html.pc98 .feed li b { font: 16px var(--mono); }
html.pc98 .feed li small { font-size: 16px; }

/* life */
html.pc98 .dream { border-radius: 0; border: 2px solid var(--magenta); background: #1a0f33; box-shadow: 4px 4px 0 #000; }
html.pc98 .dream-top b { font: 16px var(--display); letter-spacing: 0.16em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--up); }
html.pc98 .dream-top span { font: 16px var(--mono); }
html.pc98 .dream-list li { border-radius: 0; border: 2px solid var(--stroke); font-size: 16px; background: #000011; }
html.pc98 .dream-list li i { border-radius: 0; border-width: 2px; font: 8px/1 var(--pixel); }
html.pc98 .dream-list li.on { border-color: var(--up); }
html.pc98 .dream-list li.on i { box-shadow: none; }
html.pc98 .dream-list li small { font: 16px var(--mono); }
html.pc98 .dream-next { font: 16px var(--mono); }
html.pc98 .char b { font: 16px var(--display); letter-spacing: 0.06em; }
html.pc98 .char small { font-size: 16px; }
html.pc98 .big-age { font: 32px/1 var(--mono); text-shadow: none; color: var(--cyan); }
html.pc98 .stat-top { font-size: 16px; }
html.pc98 .stat small { font-size: 16px; }
html.pc98 .meter-px { border-radius: 0; height: 12px; background: #000; border: 2px solid var(--stroke-2); }
html.pc98 .meter-px i { border-radius: 0; box-shadow: none; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 8px); transition: width 0.4s steps(4); }
html.pc98 .meter-px b { border-radius: 0; background: var(--ink); }
html.pc98 .unlocks { font-size: 16px; }
html.pc98 .btn.act { border-radius: 0; padding: 8px 12px; }
html.pc98 .btn.act b { font-weight: 400; }
html.pc98 .btn.act span { font-size: 16px; color: #b4b4e4; }
html.pc98 .btn.act:disabled span { color: #6a6a9a; }
html.pc98 .btn.act.danger { border-color: #ff8899 #330011 #330011 #ff8899; background: #3a1122; }
html.pc98 .diary { font-size: 16px; }
html.pc98 .diary li { border-bottom: 2px dotted var(--stroke); }
html.pc98 .fam-card { border-radius: 0; border: 2px solid var(--magenta); background: #1a0f33; box-shadow: 4px 4px 0 #000; }
html.pc98 .fam-card > b { font: 16px var(--font); color: var(--magenta); }
html.pc98 .fam-card small { font-size: 16px; }
html.pc98 .shop { gap: 6px; }
html.pc98 .shop-item { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; }
html.pc98 .shop-item.owned { border-color: var(--up); box-shadow: none; }
html.pc98 .shop-item b { font-weight: 400; }
html.pc98 .shop-item small { font-size: 16px; }
html.pc98 span.owned { font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .bank-card { border-radius: 0; border: 2px solid var(--yellow); box-shadow: 4px 4px 0 #000; background: repeating-conic-gradient(#2a2000 0 25%, #1a1400 0 50%) 0 0 / 4px 4px; }
html.pc98 .bank-logo { font: 16px var(--display); letter-spacing: 0.24em; }
html.pc98 .arcade-card { border-radius: 0; border: 2px solid var(--magenta); background: #1a0f33; transition: none; }
html.pc98 .arcade-card b { font: 16px/1.4 var(--pixel); text-shadow: none; }
html.pc98 .arcade-card span { font-size: 16px; }
html.pc98 .arcade-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }

/* ---------- status bar, sound ---------- */
html.pc98 .statusbar, html.pc98 body.has-world .statusbar { background: #000011; border-top: 2px solid var(--stroke-2); -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px; gap: 12px; padding-block: 5px; }
html.pc98 .legal-chip { border-radius: 0; font: 8px/1 var(--pixel); letter-spacing: 0; padding: 5px 6px 4px; border-width: 2px; background: #000; }
html.pc98 .legal-chip.s-INQUIRY, html.pc98 .legal-chip.s-INVESTIGATION, html.pc98 .legal-chip.s-PRISON { animation: siren98 1s steps(1) infinite; }
@keyframes siren98 { 50% { background: var(--down); color: #fff; border-color: var(--down); } }
html.pc98 .headline b { border-radius: 0; box-shadow: none; font: 8px/1 var(--pixel); letter-spacing: 0; padding: 4px 5px 3px; color: #000; }
html.pc98 .headline span { font-size: 16px; }
html.pc98 .vitals { font: 8px/1 var(--pixel); letter-spacing: 0; gap: 14px; }
html.pc98 .vitals i { border-radius: 0; height: 8px; width: 60px; border: 2px solid var(--stroke-2); background: #000; box-sizing: content-box; }
html.pc98 .vitals b { border-radius: 0; box-shadow: none; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 6px); transition: width 0.4s steps(4); }
html.pc98 .save-state { font: 16px var(--mono); }
html.pc98 .statusbar .link { font: 16px var(--mono); white-space: nowrap; }
html.pc98 .statusbar .link::before { content: "["; } html.pc98 .statusbar .link::after { content: "]"; }
html.pc98 .snd-pop { border-radius: 0; border: 2px solid var(--hi); background: var(--win); box-shadow: 0 0 0 2px #000, 6px 6px 0 2px #000; font-size: 16px; animation: pop98 0.16s steps(2); }
html.pc98 .snd-pop b { font: 16px var(--display); letter-spacing: 0.1em; color: var(--cyan); }

/* ---------- modals, arcade, report, toasts ---------- */
html.pc98 .modal, html.pc98 body.has-world .modal { background: var(--dither); -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
html.pc98 .modal-win { background: var(--win); animation: pop98 0.2s steps(3); }
html.pc98 #pcCv, html.pc98 #hrCv { border-radius: 0; border: 2px solid var(--stroke-3); }
html.pc98 .slot { border-radius: 0; border-width: 2px; }
html.pc98 .slot b { border-radius: 0; border-width: 2px; }
html.pc98 .call { font-size: 16px; }
html.pc98 .runner { border-radius: 0; border-width: 2px; font-size: 16px; }
html.pc98 .runner i { border-radius: 0; }
html.pc98 .grade { font: 64px/1 var(--pixel); background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--yellow); filter: none; text-shadow: 4px 4px 0 #000; }
html.pc98 .rep-top h2 { font: 16px/1.5 var(--display); letter-spacing: 0.04em; }
html.pc98 .rep-top p { font-size: 16px; }
html.pc98 .rep-stats div { border-radius: 0; border: 2px solid var(--stroke); background: #000011; }
html.pc98 .rep-stats dt { font: 8px/1 var(--pixel); letter-spacing: 0; margin-bottom: 6px; }
html.pc98 .rep-stats dd { font: 16px var(--mono); }
html.pc98 .toast, html.pc98 body.has-world .toast { border-radius: 0; border: 2px solid var(--hi); background: var(--win); box-shadow: 0 0 0 2px #000, 4px 4px 0 2px #000; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px; padding: 0 10px 8px; animation: toast98 0.2s steps(3); }
@keyframes toast98 { from { transform: translateX(24px); opacity: 0; } }
html.pc98 .toast::before { display: none; }
html.pc98 .toast strong { margin: 0 -10px 6px; padding: 5px 10px 4px; background: var(--tc); color: #000011; font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .toast strong { padding-right: 28px; }
html.pc98 .toast-close { top: 0; right: 2px; height: 17px; padding: 0 4px; color: #000011; font: 700 14px/17px var(--mono); opacity: 1; }
html.pc98 .x-close { border-radius: 0; }
html.pc98 .toast.decide { animation: toast98 0.2s steps(3), decide98 0.8s steps(1) 4; }
@keyframes decide98 { 50% { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), 4px 4px 0 2px #000; } }
html.pc98 .toast.out { transition: opacity 0.24s steps(3), transform 0.24s steps(3); }

/* ---------- views: the desk is a beige CRT monitor, the phone a little handset ---------- */
html.pc98 .screens.zoom-in { animation: zoom98 0.42s steps(6); }
@keyframes zoom98 { from { opacity: 0; transform: scale(0.2); } 30% { opacity: 1; } }
html.pc98 body[data-view="desk"] .screens { border-radius: 0; background: #000011; border: 2px solid #000;
  box-shadow: 0 0 0 14px #c9c1a6, 0 0 0 16px #8a826c, 0 0 0 18px #000, 12px 14px 0 18px rgba(0, 0, 0, 0.75); }
html.pc98 body[data-view="desk"] .screens::after { left: auto; right: 22px; bottom: -14px; width: 10px; height: 6px; border-radius: 0; background: var(--up); box-shadow: none; }
html.pc98 body[data-view="desk"] .screens::before { content: "TRENCHES-98"; position: absolute; left: 22px; bottom: -15px; font: 8px/1 var(--pixel); color: #6e6754; }
html.pc98 body[data-view="phone"] .screen[data-screen="phone"] > .win { border-radius: 0; padding: 26px 6px 12px; border: 2px solid #000; background: var(--win);
  box-shadow: 0 0 0 10px #2a2a3e, 0 0 0 12px #8888aa, 0 0 0 14px #000, 10px 12px 0 14px rgba(0, 0, 0, 0.75); }
html.pc98 body[data-view="phone"] .screen[data-screen="phone"] > .win::after { top: 8px; width: 60px; height: 8px; border-radius: 0; background: repeating-linear-gradient(90deg, #444466 0 4px, #000 4px 6px); }

/* ---------- phones ---------- */
@media (pointer: coarse), (max-width: 760px) {
  html.pc98 .win { background: var(--win); }
  html.pc98 .menu, html.pc98 .statusbar { background: #000011; }
  html.pc98 .toast { background: var(--win); }
}
@media (max-width: 760px) {
  /* header on a phone: an 8px logo and clock, so the date, time and net worth all fit on one row */
  html.pc98 .logo { font-size: 8px; background: linear-gradient(180deg, #ffffff 0 3px, #22ee88 3px 5px, #9944ff 5px); -webkit-background-clip: text; background-clip: text; }
  html.pc98 .hud-box { padding: 4px 6px; }
  html.pc98 .hud-clock b, html.pc98 .hud-clock span { font: 8px/1.9 var(--pixel); letter-spacing: 0; }
  html.pc98 .hud-money b { font-size: 24px; }
  html.pc98 .hud-money span { font-size: 16px; }
  html.pc98 .menu-tabs { padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--stroke-2); background: #000011; box-shadow: none; }
  html.pc98 .menu-tabs button { font: 8px/1 var(--pixel); letter-spacing: 0; gap: 5px; padding: 6px 0 5px; }
  html.pc98 .menu-tabs button[aria-selected="true"] { box-shadow: none; }
  html.pc98 .menu-tabs button[aria-selected="true"] .ti { color: #000022; filter: none; }
  html.pc98 .ti { stroke-width: 2.4; shape-rendering: crispEdges; }
  html.pc98 .statusbar { font-size: 16px; padding: 4px 8px; overflow-x: auto; scrollbar-width: none; }
  html.pc98 .statusbar::-webkit-scrollbar { display: none; }
  html.pc98 .statusbar > * { flex-shrink: 0; }
  html.pc98 .vitals { gap: 8px; flex: 0 0 auto; }
  html.pc98 .vitals i { width: 24px; }
  html.pc98 #btnFx, html.pc98 #btnStyle { display: none; }
  html.pc98 .title-logo { font-size: 40px; background-size: 5px 40px; }
  html.pc98 .title-body { padding: 18px 16px; }
  html.pc98 .px b { font-size: 32px; }
  html.pc98 .chg { font-size: 16px; }
  html.pc98 .board-list .row { padding-left: 16px; }
  html.pc98 .stat-card b, html.pc98 .tile b { font-size: 24px; }
  html.pc98 .world-cap { max-width: calc(100vw - 32px); top: calc(var(--top) + 40vh - 58px); }
  html.pc98 .world-cap b { font-size: 16px; }
  html.pc98 .world-cap span { font-size: 16px; }
  html.pc98 .wtag { font-size: 16px; }
  html.pc98 body[data-view="desk"] .screens { border: 0; box-shadow: none; background: none; }
  html.pc98 body[data-view="desk"] .screens::before { display: none; }
  html.pc98 body[data-view="phone"] .screen[data-screen="phone"] > .win { padding: 0; border: 2px solid var(--hi); box-shadow: 0 0 0 2px #000, 6px 6px 0 2px rgba(0, 0, 0, 0.75); }
  html.pc98 .grade { font-size: 48px; }
  html.pc98 .boot { padding: 18px 14px; }
  html.pc98 .boot pre { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html.pc98 body::after { background: radial-gradient(120% 100% at 50% 50%, transparent 62%, rgba(0, 0, 8, 0.32) 100%); }
}

/* ---------- things in the room ---------- */
html.pc98 .wtag.use { width: 22px; height: 22px; padding: 0; border-radius: 0; border-width: 2px; border-color: var(--cyan); background: #000022; opacity: 0.85; box-shadow: 2px 2px 0 #000; }
html.pc98 .wtag.use.hover, html.pc98 .wtag.use:hover, html.pc98 .wtag.use:focus-visible { width: auto; padding: 0 8px 0 4px; background: var(--cyan); color: #000022; opacity: 1; }
html.pc98 .wtag-ico { font: 16px/1 var(--font); color: var(--cyan); }
html.pc98 .wtag.use:hover .wtag-ico, html.pc98 .wtag.use.hover .wtag-ico { color: #000022; }
html.pc98 .use-pop { border-radius: 0; animation: pop98 0.16s steps(2); }
html.pc98 .use-flavor { font-size: 16px; color: var(--ink-2); }
html.pc98 .use-flavor::before { content: "> "; color: var(--yellow); }
html.pc98 .btn.act small { font-size: 16px; color: var(--yellow); }
html.pc98 .use-msg { border-radius: 0; border-width: 2px; font-size: 16px; background: #000011; }
html.pc98 .use-msg.ok::before { content: "OK "; font: 8px var(--pixel); vertical-align: 2px; }
html.pc98 .use-msg.err::before { content: "NO "; font: 8px var(--pixel); vertical-align: 2px; }
html.pc98 .free-time { font-size: 16px; }
html.pc98 .free-time .hrs i { border-radius: 0; width: 16px; height: 12px; border-width: 2px; background: #000; box-shadow: none; }
html.pc98 .free-time .hrs i.on { box-shadow: none; }
html.pc98 .obj-card { border-radius: 0; border: 2px solid var(--stroke); background: #0a0a22; }
html.pc98 .obj-card > small { font-size: 16px; }
html.pc98 .obj-ico { border-radius: 0; border-width: 2px; font: 16px/1 var(--font); }
html.pc98 .skill .skill-top { font-size: 16px; }
html.pc98 .skill small { font-size: 16px; }
html.pc98 .shop-sum { font-size: 16px; }
html.pc98 .shop-nav .seg { flex-wrap: wrap; }
html.pc98 .chip.c-cyan { background: transparent; }
html.pc98 .shop-item.tier-2 { border-left: 6px solid var(--stroke-2); }
html.pc98 .shop-item.tier-3 { border-left: 6px solid var(--magenta); }
html.pc98 .shop-item.tier-4 { border-left: 6px solid var(--yellow); }
html.pc98 .shop-item.owned { border-left-color: var(--up); }

/* ---------- memecoin board, scanner and market mood ---------- */
html.pc98 .board-sep { font: 8px/1 var(--pixel); letter-spacing: 0; color: var(--yellow); padding: 10px 4px 4px; border-bottom: 2px dotted var(--stroke-2); margin-bottom: 2px; }
html.pc98 .row .nm .st, html.pc98 .scan-row .st { font: 16px var(--mono); letter-spacing: 0; }
html.pc98 em.new, html.pc98 .scan-row em { font: 8px/1 var(--pixel); color: #002211; background: var(--up); padding: 2px 3px 1px; border-radius: 0; animation: blink98 1s steps(1) infinite; vertical-align: 2px; }
html.pc98 .row.dying { opacity: 1; background: repeating-linear-gradient(135deg, #220011 0 4px, transparent 4px 8px); }
html.pc98 .scan-row { border-radius: 0; border: 2px solid transparent; font: 16px var(--mono); padding: 3px 8px; transition: none; }
html.pc98 .scan-row:hover { background: #1a1a44; }
html.pc98 .scan-row[aria-selected="true"] { border-color: var(--cyan); background: #0a2a3a; }
html.pc98 .scan-list { gap: 0; }
html.pc98 .dots i { width: 10px; height: 10px; border-radius: 0; }
html.pc98 .dots i.meta { transform: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
html.pc98 .scan-tk { font: 32px/1.1 var(--mono); }
html.pc98 .scan-nm { font-size: 16px; }
html.pc98 .tag { font: 8px/1 var(--pixel); letter-spacing: 0; padding: 4px 5px 3px; border-radius: 0; border-width: 2px; }
html.pc98 .tag.new { animation: blink98 1s steps(1) infinite; }
html.pc98 .curve { border-radius: 0; border: 2px solid var(--stroke-2); background: #0a0a22; }
html.pc98 .curve-top { font-size: 16px; }
html.pc98 .curve-top b { font: 16px var(--display); letter-spacing: 0.08em; }
html.pc98 .curve .bar { border-radius: 0; height: 12px; background: #000; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); }
html.pc98 .curve .bar i { box-shadow: none; background: repeating-linear-gradient(90deg, var(--up) 0 6px, #000 6px 8px); }
html.pc98 .gauge, html.pc98 .mood-top > div { border-radius: 0; border: 2px solid var(--stroke-2); background: #0a0a22; }
html.pc98 .gauge small, html.pc98 .mood-top small { font: 8px/1 var(--pixel); letter-spacing: 0; margin-bottom: 4px; }
html.pc98 .gauge b { font: 16px var(--mono); }
html.pc98 .blocks i { width: 10px; height: 14px; border-radius: 0; background: #222244; }
html.pc98 .ck { border-bottom: 2px dotted var(--stroke); font-size: 16px; padding: 3px 0; }
html.pc98 .ck .ic { font-weight: 400; }
html.pc98 .ck small { font-size: 16px; line-height: 1.3; }
html.pc98 .scan-news li { font-size: 16px; }
html.pc98 .mood-top .fg b { font: 32px/1 var(--mono); }
html.pc98 .mood-top .phase b { font: 16px var(--display); letter-spacing: 0.06em; }
html.pc98 .mood-top span { font-size: 16px; line-height: 1.35; }

/* ---------- the guided tutorial: a system dialog with a blinking pointer ---------- */
html.pc98 .tut { border-color: var(--yellow); box-shadow: 0 0 0 2px #000, 8px 8px 0 2px rgba(0, 0, 0, 0.85); animation: pop98 0.2s steps(2); }
html.pc98 .tut .ph { background: repeating-linear-gradient(180deg, #886600 0 2px, #aa8800 2px 4px); border-bottom-color: var(--yellow); }
html.pc98 .tut .ph h2 { background: #886600; color: #fff; }
html.pc98 .tut .ph h2::before { background: var(--yellow); box-shadow: inset -2px -2px 0 #886600, inset 2px 2px 0 #fff; }
html.pc98 .tut .ph-note { background: #886600; color: #ffeeaa; }
html.pc98 .tut-body p { font-size: 16px; line-height: 1.5; }
html.pc98 .tut-body p::before { content: "▶ "; color: var(--yellow); }
html.pc98 .tut-mark { font: 16px/1 var(--font); text-shadow: none; animation: blink98 0.6s steps(1) infinite; }
html.pc98 .tut-hi { outline: 2px dashed var(--yellow) !important; outline-offset: 2px; box-shadow: 0 0 0 4px #000 !important; animation: hi98 0.6s steps(1) infinite; }
@keyframes hi98 { 50% { outline-color: transparent; } }

/* ---------- money and DeFi: WALLET → Bank and the DEFI screen ---------- */
html.pc98 .card { border-radius: 0; border: 2px solid var(--stroke-2); background: #0a0a22; box-shadow: 4px 4px 0 #000; }
html.pc98 .score b { font: 32px/1 var(--mono); }
html.pc98 .score > span { font: 8px/1 var(--pixel); letter-spacing: 0; }
html.pc98 .stmt li { border-bottom: 2px dotted var(--stroke); font-size: 16px; }
html.pc98 .stmt li > b, html.pc98 .stmt-net b { font: 16px var(--mono); }
html.pc98 .stmt-net, html.pc98 .loan-quote, html.pc98 .last-stmt summary, html.pc98 .checks-row, html.pc98 .chk, html.pc98 .odds, html.pc98 .prog small, html.pc98 .prog-nums, html.pc98 .ltv-top, html.pc98 .alert { font-size: 16px; }
html.pc98 .alert { border-radius: 0; }
html.pc98 .alert.bad { border: 2px solid var(--down); background: repeating-linear-gradient(135deg, #220011 0 4px, #110008 4px 8px); }
html.pc98 .tbl.sheet tr.total td { border-top: 2px solid var(--ink-2); font-size: 16px; }
html.pc98 .tbl td.plain small { font-size: 16px; }
html.pc98 .ltv-top b { font: 16px var(--mono); }
html.pc98 .ltv-bar { border-radius: 0; height: 14px; background: #000; border: 2px solid; border-color: var(--bevel-lo) var(--stroke-3) var(--stroke-3) var(--bevel-lo); }
html.pc98 .ltv-bar i { border-radius: 0; box-shadow: none; background: repeating-linear-gradient(90deg, var(--up) 0 6px, #000 6px 8px); transition: none; }
html.pc98 .ltv-bar i.hot { background: repeating-linear-gradient(90deg, var(--down) 0 6px, #000 6px 8px); }
html.pc98 .ltv-legend { font-size: 16px; }
html.pc98 .prog { border-radius: 0; border: 2px solid var(--stroke); background: #000011; }
html.pc98 .prog-top b { font: 16px var(--display); letter-spacing: 0.06em; }
html.pc98 .big-stat { font: 32px var(--mono); }
html.pc98 .switch { border-radius: 0; border: 2px solid; border-color: var(--bevel-hi) var(--bevel-lo) var(--bevel-lo) var(--bevel-hi); background: var(--btn); color: var(--ink-2); font: 8px/1 var(--pixel); letter-spacing: 0; padding: 4px 8px 4px 4px; }
html.pc98 .switch i { border-radius: 0; width: 24px; height: 14px; background: #000; }
html.pc98 .switch i::after { border-radius: 0; width: 10px; height: 10px; transition: none; }
html.pc98 .switch.on { color: #002211; background: var(--up); border-color: #88ffcc #006633 #006633 #88ffcc; }
html.pc98 .switch.on i { background: #003311; }
html.pc98 .switch.on i::after { left: 12px; background: #fff; box-shadow: none; }
html.pc98 .tbl tr.sel td { background: #222255; }
@media (max-width: 760px) {
  html.pc98 .menu-tabs button { font-size: 8px; }
  html.pc98 .score b { font-size: 24px; }
}

html.pc98 .inbox-item { border-radius: 0; border: 2px solid var(--lo, #444); }
html.pc98 .inbox-item.unread { border-color: var(--hi); }
html.pc98 .bell b { border-radius: 0; }

html.pc98 .group-tabs { border-radius: 0; background: none; border: 0; padding: 0; gap: 2px; }
html.pc98 .group-tabs button { border-radius: 0; font: 16px/1.4 var(--display); letter-spacing: 0.06em; padding: 3px 12px; color: var(--ink-2); }
html.pc98 .group-tabs button:hover { color: #fff; background: #222255; }
html.pc98 .group-tabs button[aria-selected="true"] { color: #000022; background: var(--ink); box-shadow: none; }
html.pc98 .menu-tabs button { padding: 1px 8px; font-size: 14px; }
@media (max-width: 760px) {
  html.pc98 .group-tabs { padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--stroke-2); background: #000011; }
  html.pc98 .group-tabs button { font: 8px/1 var(--pixel); letter-spacing: 0; gap: 5px; padding: 6px 0 5px; }
  html.pc98 .group-tabs button[aria-selected="true"] .ti { color: #000022; }
  html.pc98 .menu .menu-tabs { border-top: 0; padding: 2px; }
  html.pc98 .menu .menu-tabs button { font: 8px/1 var(--pixel); padding: 7px 10px; }
}

html.pc98 .room-strip button { border-radius: 0; border: 2px solid var(--stroke-2); background: #000011; font: 14px/1.2 var(--display); letter-spacing: 0; padding: 2px 8px; }
html.pc98 .room-strip button.on { background: var(--ink); color: #000022; box-shadow: none; }
@media (max-width: 760px) { html.pc98 .room-strip button { font-size: 12px; padding: 2px 7px; } }
html.pc98 .set-pop .set-row { border-radius: 0; border: 2px solid var(--stroke-2); font: 14px/1.3 var(--display); }

@media (min-width: 761px) and (max-height: 520px) {
  html.pc98 .hud .logo { font-size: 16px; }
  html.pc98 .hud .hud-clock b, html.pc98 .hud .hud-clock span { font-size: 12px; line-height: 1.25; letter-spacing: 0; }
  html.pc98 .hud .hud-money span { font-size: 14px; }
  html.pc98 .world-cap b { font-size: 14px; letter-spacing: .04em; }
}
