/* Operation Coinnectar — supplemental styles.
   Design system (colors, buttons, cards, inputs) lives as Tailwind components
   in index.html, matching haxnation. This file holds animations, terminals,
   code panels and challenge-specific bits. Neo-brutalist: ink #0b0b0b borders,
   hard offset shadows, cyan #5ce1e6 accent, Inter + JetBrains Mono. */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ---- animations ---- */
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.animate-slide-in { animation: slideIn 0.2s ease-out forwards; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.animate-shake { animation: shake 0.2s linear 2; }
@keyframes blink { 50% { opacity: 0; } }
.cursor-block {
  display: inline-block; width: 0.55em; height: 0.85em; margin-left: 0.35rem;
  vertical-align: middle; background: #5ce1e6; border: 2px solid #0b0b0b;
  animation: blink 1s steps(1) infinite;
}

/* ---- difficulty tags ---- */
.tag-easy   { background: #00e676; color: #0b0b0b; }
.tag-medium { background: #5ce1e6; color: #0b0b0b; }
.tag-hard   { background: #ffeb3b; color: #0b0b0b; }
.tag-insane { background: #ff2a2a; color: #ffffff; }

/* solved card: accent the hard shadow cyan */
.card.solved { box-shadow: 6px 6px 0 0 #5ce1e6; }

/* ---- hint toggles ---- */
details.hint { border: 2px solid #0b0b0b; background: #fff; margin: 8px 0; box-shadow: 3px 3px 0 0 #0b0b0b; }
details.hint > summary {
  cursor: pointer; list-style: none; padding: 10px 12px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #0b0b0b;
}
details.hint > summary::-webkit-details-marker { display: none; }
details.hint > summary::before { content: "[+] "; color: #0b0b0b; }
details.hint[open] > summary::before { content: "[-] "; }
details.hint .hint-body { padding: 0 12px 12px; font-size: 14px; line-height: 1.6; }

/* ---- description typography ---- */
.desc p { margin: 0 0 0.85rem; line-height: 1.7; }
.desc b { font-weight: 800; }
.inline-code, .desc code {
  font-family: "JetBrains Mono", monospace; font-size: 0.85em;
  background: #0b0b0b; color: #5ce1e6; padding: 0.1em 0.4em;
}

/* ---- terminal / console (used by web + runner challenges) ---- */
.hxterm {
  background: #0b0b0b; color: #00e676; border: 2px solid #0b0b0b;
  box-shadow: 4px 4px 0 0 #5ce1e6; font-family: "JetBrains Mono", monospace;
  font-size: 13px; overflow: hidden;
}
.hxterm .bar {
  background: #161616; border-bottom: 2px solid #5ce1e6; color: #8a8f98;
  padding: 7px 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.hxterm .dot { width: 10px; height: 10px; border: 1px solid #000; display: inline-block; }
.hxterm .dot.r { background: #ff2a2a; } .hxterm .dot.y { background: #ffeb3b; } .hxterm .dot.g { background: #00e676; }
.hxterm pre { margin: 0; padding: 14px; white-space: pre-wrap; word-break: break-word; color: #e8e8e8; max-height: 440px; overflow: auto; }
.hxterm .ok { color: #00e676; } .hxterm .err { color: #ff2a2a; } .hxterm .cmd { color: #5ce1e6; } .hxterm .dim { color: #8a8f98; }

/* curl preview strip */
.curlbox {
  background: #0b0b0b; color: #5ce1e6; border: 2px solid #0b0b0b;
  font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 10px 12px;
  word-break: break-all; box-shadow: 3px 3px 0 0 #5ce1e6;
}

/* warn strip */
.warnstrip { border: 2px solid #0b0b0b; background: #ffeb3b; color: #0b0b0b; padding: 10px 12px; font-size: 13px; box-shadow: 3px 3px 0 0 #0b0b0b; font-weight: 600; }
.notestrip { border-left: 6px solid #5ce1e6; background: #fff; padding: 8px 12px; font-size: 13px; }

/* result line */
.result-ok  { color: #0b0b0b; background: #00e676; border: 2px solid #0b0b0b; padding: 8px 12px; font-weight: 800; box-shadow: 3px 3px 0 0 #0b0b0b; }
.result-bad { color: #fff; background: #ff2a2a; border: 2px solid #0b0b0b; padding: 8px 12px; font-weight: 800; box-shadow: 3px 3px 0 0 #0b0b0b; }

/* phase rail accent on home */
.phase-rail { position: relative; padding-left: 0; }

/* dark terminal input (textarea) */
textarea.darkinput, input.darkinput {
  background: #0b0b0b; color: #5ce1e6; border: 2px solid #0b0b0b; caret-color: #5ce1e6;
  font-family: "JetBrains Mono", monospace; font-size: 14px; padding: 10px 12px; width: 100%;
  box-shadow: inset 2px 2px 0 0 #222;
}
textarea.darkinput:focus, input.darkinput:focus { outline: none; border-color: #5ce1e6; }

/* ---------------- completion certificate ---------------- */
/* Fixed A4-landscape canvas (1123×794 CSS px). JS scales it to the screen, so
   every certificate has the same size and layout regardless of content. */
.cert-stage { position: relative; width: 100%; max-width: 1123px; margin: 0 auto; }
.cert { position: absolute; top: 0; left: 0; width: 1123px; height: 794px; transform-origin: top left;
  background: #fafafa; border: 3px solid #0b0b0b; padding: 12px; box-shadow: 12px 12px 0 0 #0b0b0b; }
/* HaxNation brand gradient bar across the top */
.cert::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 8px;
  background: linear-gradient(90deg, #ff2a2a, #ff7a3c, #ffb15c); z-index: 2; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; border: 2px solid #0b0b0b; padding: 36px 120px; text-align: center;
  background: radial-gradient(circle at 1px 1px, rgba(11,11,11,0.05) 1px, transparent 0) 0 0 / 16px 16px, #ffffff; }
/* fine inner hairline frame */
.cert-inner::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(11,11,11,.22); pointer-events: none; }

.cert-logo { width: 90px; height: 90px; display: block; margin: 0 auto 4px; }
.cert-ribbon-slot { height: 46px; display: flex; align-items: center; justify-content: center; }
.cert-ribbon { display: inline-block; margin: 0; font-family: "JetBrains Mono", monospace; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em; font-size: 13px; color: #0b0b0b; background: #ffeb3b;
  border: 2px solid #0b0b0b; padding: 6px 14px; box-shadow: 4px 4px 0 0 #0b0b0b; }
.cert-kicker { font-family: "JetBrains Mono", monospace; font-weight: 800; text-transform: uppercase;
  letter-spacing: .26em; font-size: 11px; color: #0b0b0b; }
.cert-title { font-family: "JetBrains Mono", monospace; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(20px, 4vw, 32px); margin-top: 12px; text-wrap: balance; }
.cert-rule { width: 60px; height: 4px; background: #5ce1e6; border: 2px solid #0b0b0b; margin: 14px auto 0; }
.cert-sub { color: #555; margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .22em;
  font-family: "JetBrains Mono", monospace; }
.cert-name { font-weight: 900; font-size: 58px; line-height: 1.15; margin: 8px auto 4px; max-width: 820px;
  display: inline-block; white-space: nowrap; overflow: hidden; border-bottom: 4px solid #5ce1e6; padding: 0 14px 6px; }
.cert-body { color: #222; max-width: 600px; margin: 18px auto 0; line-height: 1.7; font-size: 15px; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px auto 0; max-width: 620px; }
.cert-chip { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; border: 2px solid #0b0b0b; padding: 4px 9px; background: #fff; box-shadow: 2px 2px 0 0 #0b0b0b; }
.cert-chip::before { content: "✓ "; color: #00a85a; font-weight: 800; }
.cert-foot { display: flex; justify-content: center; gap: clamp(22px, 6vw, 52px); margin-top: 30px; flex-wrap: wrap; }
.cert-foot-v { font-family: "JetBrains Mono", monospace; font-weight: 800; border-bottom: 2px solid #0b0b0b;
  padding-bottom: 4px; min-width: 110px; font-variant-numeric: tabular-nums; }
.cert-foot-l { font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .2em;
  font-size: 10px; color: #777; margin-top: 6px; }
.cert-sign { margin-top: 26px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: #666;
  text-transform: uppercase; letter-spacing: .18em; }
.cert-sign b { display: block; font-size: 12px; color: #0b0b0b; margin-top: 2px; letter-spacing: .1em; }
/* stamped seal, pinned top-right (becomes static on narrow screens) */
.cert-seal { position: absolute; top: 34px; right: 34px; width: 112px; height: 112px; }

/* certificate-name prompt */
.cn-preview { border: 2px dashed #0b0b0b; padding: 10px 14px; background: #fff; }
.cn-preview-name { font-weight: 900; font-size: 26px; line-height: 1.2; min-height: 32px; overflow-wrap: anywhere; }

.cert-podium .cert-inner { box-shadow: inset 0 0 0 5px #ffeb3b; }
.cert-podium .cert-name { border-bottom-color: #ffeb3b; }
.cert-podium .cert-rule { background: #ffeb3b; }

/* ---------------- print: show only the certificate ---------------- */
@media print {
  .no-print { display: none !important; }
  header, footer, nav { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; max-width: none !important; }
  .cert-stage { height: auto !important; max-width: none; }
  .cert { position: static; transform: none !important; box-shadow: none; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 0; }
}

/* ---------------- header / navigation ---------------- */
.hx-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(250, 250, 250, .95);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 2px solid #0b0b0b; }
.hx-bar { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; gap: 10px 20px;
  padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); }
.hx-brand { display: flex; align-items: center; gap: 10px; color: #0b0b0b; text-decoration: none; min-width: 0; margin-right: auto; }
.hx-logo { width: 38px; height: 38px; flex: none; }
/* hamburger — hidden on desktop */
.hx-burger { display: none; width: 44px; height: 40px; place-items: center; background: #fff; border: 2px solid #0b0b0b;
  box-shadow: 2px 2px 0 0 #0b0b0b; cursor: pointer; flex: none; order: 3; }
.hx-burger:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 #0b0b0b; }
.hx-burger-box { display: block; position: relative; width: 20px; height: 14px; }
.hx-burger-box span { position: absolute; left: 0; width: 100%; height: 2.5px; background: #0b0b0b; border-radius: 2px;
  transition: transform .2s, opacity .2s, top .2s; }
.hx-burger-box span:nth-child(1) { top: 0; }
.hx-burger-box span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hx-burger-box span:nth-child(3) { bottom: 0; }
.hx-burger[aria-expanded="true"] .hx-burger-box span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hx-burger[aria-expanded="true"] .hx-burger-box span:nth-child(2) { opacity: 0; }
.hx-burger[aria-expanded="true"] .hx-burger-box span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.hx-scrim { display: none; }
.hx-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hx-brand-text b { font-weight: 900; text-transform: uppercase; letter-spacing: .01em; font-size: 15px; white-space: nowrap; }
.hx-brand-text small { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #6b6b6b;
  text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.hx-nav { display: flex; flex: 1; justify-content: center; gap: 2px; }
.hx-nav a { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #5a5a5a; text-decoration: none; padding: 7px 12px; border: 2px solid transparent; white-space: nowrap; }
.hx-nav a:hover { color: #0b0b0b; border-color: #0b0b0b; }
.hx-nav a.active { color: #0b0b0b; background: #5ce1e6; border-color: #0b0b0b; box-shadow: 2px 2px 0 0 #0b0b0b; }
.hx-nav a:focus-visible, .hx-chip:focus-visible, .hx-signin:focus-visible, .hx-menu-item:focus-visible {
  outline: 3px solid #5ce1e6; outline-offset: 2px; }

.hx-account { position: relative; display: flex; justify-content: flex-end; }
.hx-signin { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: #fff; background: #0b0b0b; border: 2px solid #0b0b0b; padding: 8px 16px; cursor: pointer;
  box-shadow: 3px 3px 0 0 #5ce1e6; transition: transform .06s, box-shadow .06s; }
.hx-signin:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 #5ce1e6; }
.hx-offline { display: inline-flex; align-items: center; gap: 6px; font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8a8a8a; }
.hx-offline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #bdbdbd; }
.hx-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #0b0b0b;
  padding: 3px 3px 3px 12px; cursor: pointer; box-shadow: 3px 3px 0 0 #0b0b0b; font: inherit; color: #0b0b0b; }
.hx-chip:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 0 #0b0b0b; }
.hx-pts { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.hx-pts small { color: #8a8a8a; font-size: 11px; }
.hx-avatar { width: 30px; height: 30px; display: grid; place-items: center; background: #5ce1e6; border: 2px solid #0b0b0b;
  font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 11px; }
.hx-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; max-width: calc(100vw - 28px);
  background: #fff; border: 2px solid #0b0b0b; box-shadow: 6px 6px 0 0 #0b0b0b; z-index: 45; }
.hx-menu-head { padding: 12px 14px; border-bottom: 2px solid #0b0b0b; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-menu-head b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-menu-head span { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #6b6b6b;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-menu-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid #0b0b0b; }
.hx-menu-stats div { padding: 10px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hx-menu-stats div + div { border-left: 2px solid #0b0b0b; }
.hx-menu-stats b { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.hx-menu-stats span { font-family: "JetBrains Mono", monospace; font-size: 9px; text-transform: uppercase;
  letter-spacing: .14em; color: #6b6b6b; }
.hx-menu-item { display: block; width: 100%; text-align: left; padding: 10px 14px; font-family: "JetBrains Mono", monospace;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0b0b0b;
  text-decoration: none; background: none; border: 0; cursor: pointer; }
.hx-menu-item:hover { background: #eefbfc; }
.hx-menu-out { border-top: 2px solid #0b0b0b; color: #c81e1e; }

@media (max-width: 820px) {
  .hx-burger { display: inline-grid; }
  .hx-account { order: 2; }
  .hx-brand { gap: 8px; }
  .hx-logo { width: 34px; height: 34px; }
  .hx-brand-text b { font-size: 14px; white-space: normal; }
  /* nav becomes a drawer dropping from under the sticky header */
  .hx-nav { position: absolute; left: 0; right: 0; top: 100%; flex: none; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 2px solid #0b0b0b; box-shadow: 0 10px 0 -4px rgba(11,11,11,.12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .18s, opacity .18s, visibility .18s; }
  .hx-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .hx-nav a { font-size: 14px; padding: 15px 20px; border: 0; border-top: 1px solid #ececec; letter-spacing: .12em; }
  .hx-nav a:first-child { border-top: 0; }
  .hx-nav a:hover { border-color: #ececec; }
  .hx-nav a.active { box-shadow: inset 4px 0 0 0 #0b0b0b; }
  .hx-scrim { display: block; position: fixed; inset: 0; background: rgba(11,11,11,.35); z-index: 25; }
}
@media (max-width: 380px) {
  .hx-brand-text small { display: none; }
  .hx-pts small { display: none; }
}

/* ---------------- in-page code viewer ---------------- */
.cv { border: 2px solid #0b0b0b; box-shadow: 6px 6px 0 0 #0b0b0b; background: #0d1117; }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: #161b22; border-bottom: 2px solid #0b0b0b; padding: 6px 8px; }
.cv-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
.cv-tab { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; color: #9aa4b2;
  background: transparent; border: 2px solid transparent; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.cv-tab[aria-selected="true"] { color: #0b0b0b; background: #5ce1e6; border-color: #0b0b0b; }
.cv-actions { display: flex; align-items: center; gap: 6px; }
.cv-info { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #9aa4b2; margin-right: 4px; white-space: nowrap; }
.cv-btn { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #e6edf3; background: #21262d; border: 1px solid #3b434d; padding: 4px 10px;
  cursor: pointer; text-decoration: none; }
.cv-btn:hover { background: #2d333b; color: #fff; }
.cv-btn:focus-visible, .cv-tab:focus-visible { outline: 2px solid #5ce1e6; outline-offset: 1px; }
.cv-body { max-height: 560px; overflow: auto; }
.cv-scroll { display: flex; min-width: max-content; }
.cv-gutter, .cv-code { margin: 0; padding: 14px 0; font-family: "JetBrains Mono", monospace; font-size: 13px; line-height: 1.6; }
.cv-gutter { position: sticky; left: 0; flex: none; padding-left: 14px; padding-right: 12px; text-align: right;
  color: #4d5866; background: #0d1117; border-right: 1px solid #222a33; user-select: none; }
.cv-code { padding-left: 16px; padding-right: 24px; color: #e6edf3; }
.cv-code code { font: inherit; background: none; padding: 0; }
.cv-loading { padding: 18px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: #9aa4b2; }
/* highlight.js tokens (dark, matches the terminal palette) */
.cv .hljs-keyword, .cv .hljs-selector-tag, .cv .hljs-built_in { color: #ff7b72; }
.cv .hljs-string, .cv .hljs-regexp { color: #a5d6ff; }
.cv .hljs-number, .cv .hljs-literal { color: #79c0ff; }
.cv .hljs-comment, .cv .hljs-quote { color: #8b949e; font-style: italic; }
.cv .hljs-title, .cv .hljs-title.function_, .cv .hljs-section { color: #d2a8ff; }
.cv .hljs-type, .cv .hljs-title.class_ { color: #ffa657; }
.cv .hljs-meta, .cv .hljs-meta .hljs-keyword { color: #5ce1e6; }
.cv .hljs-variable, .cv .hljs-params, .cv .hljs-attr { color: #ffa657; }
.cv .hljs-symbol, .cv .hljs-subst { color: #e6edf3; }

/* ---------------- profile & admin ---------------- */
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e5e5e5;
  font-size: 14px; }
.pf-row:last-child { border-bottom: 0; }
.pf-row span { color: #6b6b6b; font-family: "JetBrains Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ad-big { font-family: "JetBrains Mono", monospace; font-weight: 800; font-size: 32px; line-height: 1.1; margin-top: 4px;
  font-variant-numeric: tabular-nums; }
.ad-big small { font-size: 15px; color: #8a8a8a; }
.ad-del { color: #c81e1e !important; border-color: #e3b4b4 !important; background: #fff5f5 !important; }
.ad-del:hover { background: #ffe8e8 !important; }

/* ---------------- log viewer ---------------- */
.lv { border: 2px solid #0b0b0b; box-shadow: 6px 6px 0 0 #0b0b0b; background: #0d1117; }
.lv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #161b22; border-bottom: 2px solid #0b0b0b; padding: 7px 8px; }
.lv-filter { flex: 1 1 220px; min-width: 0; font-family: "JetBrains Mono", monospace; font-size: 13px; color: #e6edf3;
  background: #0d1117; border: 1px solid #3b434d; padding: 6px 10px; }
.lv-filter:focus { outline: none; border-color: #5ce1e6; }
.lv-filter::placeholder { color: #5a6b7b; }
.lv-count { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #9aa4b2; white-space: nowrap; }
.lv-body { max-height: 520px; overflow: auto; }
.lv-rows { min-width: max-content; padding: 10px 0; }
.lv-row { display: flex; font-family: "JetBrains Mono", monospace; font-size: 12.5px; line-height: 1.55; }
.lv-row:hover { background: #161b22; }
.lv-ln { flex: none; width: 52px; padding: 0 10px 0 14px; text-align: right; color: #4d5866; user-select: none;
  position: sticky; left: 0; background: #0d1117; border-right: 1px solid #222a33; }
.lv-row:hover .lv-ln { background: #161b22; }
.lv-txt { padding: 0 18px 0 14px; color: #c9d4e0; white-space: pre; }
.lv-txt mark { background: #ffeb3b; color: #0b0b0b; border-radius: 1px; }
.lv-warn { color: #ffb15c; font-weight: 700; }
.lv-dim { color: #6b7684; }

/* ---------------- mobile polish ---------------- */
html { overflow-x: clip; }                 /* belt-and-braces: never scroll sideways */
.hxterm pre { overflow-x: auto; }
@media (max-width: 640px) {
  .hx-menu-item { padding: 13px 14px; }     /* bigger tap targets in the account menu */
  .cv-body, .lv-body { max-height: 60vh; }
  .cert-inner { padding: 24px 40px; }        /* seal sits inside the scaled canvas; keep text clear */
  .pf-row { flex-direction: column; gap: 2px; align-items: flex-start; }
}
/* honor reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hx-nav, .hx-burger-box span, .animate-slide-in { transition: none !important; animation: none !important; }
}
