/* paragraph font: VT323 (OFL), self-hosted, scaled so it sits at the same size as the old text font.
   Clear, monospaced digits: 5 never looks like S. */
@font-face { font-family: "HOLDMAS Text"; src: url(fonts/vt323-latin.woff2) format("woff2"); size-adjust: 128%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "HOLDMAS Text"; src: url(fonts/vt323-latin-ext.woff2) format("woff2"); size-adjust: 128%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0b0f1f;
  --panel: rgba(20, 26, 51, 0.92);
  --panel2: rgba(30, 38, 74, 0.95);
  --gold: #c9a227;
  --gold2: #ffe066;
  --red: #c92a2a;
  --red2: #ff6b6b;
  --green: #2f9e44;
  --cream: #fff4d6;
  --dim: #9aa5ce;
  --ice: #a5d8ff;
  --px: "Press Start 2P", monospace;
  --ui: "HOLDMAS Text", "VT323", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #060818; color: var(--cream); font-family: var(--ui); font-size: 15px; user-select: none; -webkit-user-select: none; }
canvas#world { position: fixed; inset: 0; display: block; cursor: grab; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
small { font-size: 0.72em; }
b { font-weight: 700; }
code { font-family: var(--px); font-size: 10px; color: var(--ice); }
.dim { color: var(--dim); font-size: 0.86em; }
.g { color: #8ce99a; } .y { color: var(--gold2); } .coal { color: #adb5bd; font-family: var(--px); font-size: 9px; }
.sol { color: #b197fc; }

/* ---------- panels: gold-trimmed, riveted, snow-capped ---------- */
.panel {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 0%, rgba(116, 143, 252, 0.14), transparent 70%),
    linear-gradient(180deg, var(--panel2), var(--panel));
  border-radius: 6px;
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 4px var(--gold),
    0 0 0 6px var(--ink),
    inset 0 0 0 2px rgba(255, 224, 102, 0.12),
    inset 0 -8px 16px rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 6px; height: 6px; top: 5px; background: var(--gold2);
  box-shadow: inset -1px -1px 0 #8a6d0f; border-radius: 1px;
}
.panel::before { left: 5px; } .panel::after { right: 5px; }

h2 {
  margin: -2px -2px 10px; padding: 8px 10px; font: 10px var(--px); letter-spacing: 1px; text-align: center;
  background: repeating-linear-gradient(-45deg, #c92a2a 0 10px, #e03131 10px 20px);
  border-radius: 4px 4px 0 0; box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.25);
  position: relative; text-shadow: 2px 2px 0 #5c0b0b;
}
h2::after {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 10px;
  background: radial-gradient(circle at 8px 10px, #fff 7px, transparent 8px) 0 0 / 22px 10px repeat-x;
  filter: drop-shadow(0 1px 0 #cfd8ff);
}
h2 span { position: relative; z-index: 1; }
h3 { font: 9px var(--px); color: var(--gold2); margin: 14px 0 8px; letter-spacing: 1px; }

.btn {
  font: 10px var(--px); padding: 10px 14px; border: 0; border-radius: 4px; letter-spacing: 1px;
  box-shadow: 0 0 0 2px var(--ink), inset 0 -4px 0 rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.06s, filter 0.1s;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 2px var(--ink), inset 0 2px 0 rgba(0, 0, 0, 0.35); }
.btn:disabled { filter: grayscale(0.8); cursor: wait; }
.btn-gold { background: linear-gradient(#ffe066, #e8a317); color: #3d2614; text-shadow: 1px 1px 0 #fff3bf; }
.btn-red { background: linear-gradient(#ff6b6b, #c92a2a); color: #fff; text-shadow: 1px 1px 0 #5c0b0b; }
.btn.big { font-size: 14px; padding: 16px 28px; }

.ibtn {
  display: grid; place-items: center;
  width: 34px; height: 34px; border: 0; border-radius: 4px; font-size: 16px; line-height: 1;
  background: linear-gradient(#3b4a85, #232d57); color: var(--cream);
  box-shadow: 0 0 0 2px var(--ink), inset 0 -3px 0 rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.18);
}
.ibtn:hover { background: linear-gradient(#4f60a8, #2c386b); }
.ibtn.off { opacity: 0.4; filter: grayscale(1); }
.ibtn.off::after { content: ""; position: absolute; width: 24px; height: 3px; background: #ff6b6b; transform: rotate(-45deg); box-shadow: 0 0 0 1px var(--ink); }
.ibtn { position: relative; }

.chip {
  font: 8px var(--px); padding: 5px 7px; border: 0; border-radius: 3px; background: #2c386b; color: var(--ice);
  box-shadow: 0 0 0 2px var(--ink);
}
.chip:hover { background: #3b4a85; }
.badge { font: 8px var(--px); padding: 5px 6px; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); }
.badge.demo { background: #f59f00; color: #3d2614; }
.badge.live { background: #2f9e44; color: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { filter: brightness(1.4); } }

.logo { font-family: var(--px); letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.logo .l1 { color: #ff6b6b; text-shadow: 3px 3px 0 #5c0b0b; }
.logo .l2 { color: var(--gold2); text-shadow: 3px 3px 0 #7a5a00; }
.logo.small { font-size: 14px; }
.logo.big { font-size: clamp(34px, 8vw, 84px); }
.logo.big .l1 { text-shadow: 6px 6px 0 #5c0b0b, 0 0 30px rgba(255, 107, 107, 0.6); }
.logo.big .l2 { text-shadow: 6px 6px 0 #7a5a00, 0 0 30px rgba(255, 224, 102, 0.6); }

/* ---------- title screen ---------- */
#boot {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(40, 52, 110, 0.75), rgba(6, 8, 24, 0.97) 70%);
  transition: opacity 0.6s, transform 0.6s;
}
#boot.gone { opacity: 0; transform: scale(1.08); pointer-events: none; }
.boot-inner { text-align: center; display: grid; gap: 18px; justify-items: center; padding: 16px; }
.subtitle { font: clamp(9px, 1.6vw, 14px) var(--px); color: var(--ice); letter-spacing: 3px; }
.loadbar { width: min(360px, 80vw); height: 14px; background: #0b0f1f; box-shadow: 0 0 0 2px var(--gold); border-radius: 3px; overflow: hidden; }
.loadbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #e03131 0 8px, #fff 8px 16px); transition: width 0.4s; }
#start:not(:disabled) { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.boot-foot { color: var(--dim); font-size: 13px; }
.boot-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(900px, 94vw); }
.how { display: grid; justify-items: center; align-content: start; gap: 7px; padding: 12px 10px; border-radius: 4px; text-align: center;
  background: rgba(11, 15, 31, 0.82); box-shadow: 0 0 0 2px #2c386b, inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.how i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: #1a2147; box-shadow: 0 0 0 2px var(--gold); }
.how i svg { width: 20px; height: 20px; }
.how b { font: 8px/1.5 var(--px); color: var(--gold2); letter-spacing: 1px; }
.how b em { font-style: normal; }
.how span { font-size: 14px; line-height: 1.25; color: var(--cream); }
.boot-actions { display: flex; align-items: center; gap: 12px; }
.boot-q { width: 50px; height: 50px; }
.boot-q svg { width: 24px; height: 24px; }
#modal.top { z-index: 60; }
@media (max-width: 760px) { .boot-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how span { font-size: 13px; } #start { white-space: nowrap; font-size: 11px; padding: 15px 16px; } }
@media (max-height: 700px) { .boot-inner { gap: 14px; } #parade { display: none; } .how { padding: 9px 8px; } }

/* ---------- HUD layout ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.topbar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 14px; align-items: stretch; }
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.mcap { flex: 1; display: flex; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; min-width: 0; }
.lvl-badge {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; align-content: center;
  background: radial-gradient(circle at 35% 30%, #ffe066, #c9a227 60%, #7a5a00);
  border-radius: 50%; color: #3d2614; box-shadow: 0 0 0 3px var(--ink), 0 0 18px rgba(255, 224, 102, 0.5);
}
.lvl-badge small { font: 7px var(--px); }
.lvl-badge b { font: 18px var(--px); }
.mcap-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.mcap-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.room-name { font: 11px var(--px); color: var(--gold2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcap-val { font: 9px var(--px); color: var(--dim); white-space: nowrap; }
.mcap-val b { color: #8ce99a; font-size: 13px; }
.bar { position: relative; height: 18px; background: #0b0f1f; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink), inset 0 2px 4px #000; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; transition: width 0.8s; background: linear-gradient(#8ce99a, #2f9e44); }
.bar.candy i { background: repeating-linear-gradient(-45deg, #e03131 0 10px, #fff 10px 20px); animation: slide 1s linear infinite; background-size: 28px 28px; }
@keyframes slide { to { background-position: 28px 0; } }
.bar span { position: relative; z-index: 1; display: block; text-align: center; font: 8px/18px var(--px); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; white-space: nowrap; overflow: hidden; }
.bar.thin { height: 8px; margin-top: 8px; }
.stats-top { display: flex; gap: 18px; padding: 10px 16px; align-items: center; }
.stats-top > div { display: flex; gap: 8px; align-items: center; }
.stats-top span { display: grid; gap: 5px; }
.ico { display: block; image-rendering: pixelated; flex: none; }
[data-icon] { display: inline-flex; }
.stats-top small { font: 7px var(--px); color: var(--dim); }
.stats-top b { font: 12px var(--px); color: var(--cream); white-space: nowrap; }
.icons { display: flex; gap: 8px; padding: 10px; align-items: center; }
.mobile-only { display: none; }

.left-col { position: absolute; top: 110px; left: 14px; width: 300px; display: grid; gap: 18px; pointer-events: none; }
.registry, .eotd { padding: 0 12px 12px; }
#search { display: flex; gap: 8px; }
#search input {
  flex: 1; min-width: 0; padding: 10px; border: 0; border-radius: 3px; font: 13px var(--ui); color: var(--cream);
  background: #0b0f1f; box-shadow: 0 0 0 2px var(--ink), inset 0 2px 6px #000, 0 0 0 3px #2c386b;
}
#search input:focus { outline: none; box-shadow: 0 0 0 2px var(--ink), inset 0 2px 6px #000, 0 0 0 3px var(--gold); }
.hint { margin: 8px 0; color: var(--dim); font-size: 13px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.quick small { font: 7px var(--px); color: var(--dim); }
.eotd-row { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.frame { padding: 4px; border-radius: 4px; background: #0b0f1f; box-shadow: 0 0 0 2px var(--ink); }
.frame.gold { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold), 0 0 16px rgba(255, 224, 102, 0.5); }
.frame .mini { width: 50px; height: 65px; }
img.mini { image-rendering: pixelated; width: 26px; height: 34px; flex: none; }
.mini-wrap { display: grid; place-items: center; width: 34px; height: 40px; flex: none; border-radius: 4px; background: radial-gradient(circle at 50% 35%, #2c386b, #0b0f1f 75%); box-shadow: 0 0 0 2px var(--ink); }
.minibar { height: 4px; margin-top: 4px; background: #0b0f1f; border-radius: 2px; overflow: hidden; }
.minibar i { display: block; height: 100%; background: linear-gradient(90deg, #2f9e44, #8ce99a); }
.row.lb:nth-child(2) .minibar i { background: linear-gradient(90deg, #e8a317, #ffe066); }

.right-col { position: absolute; top: 110px; right: 14px; width: 330px; bottom: 150px; display: flex; flex-direction: column; padding: 10px; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1; padding: 6px 2px; border: 0; border-radius: 3px; font: 7px var(--px); background: #1a2147; color: var(--dim);
  box-shadow: 0 0 0 2px var(--ink);
}
.tabs button.on { background: linear-gradient(#ff6b6b, #c92a2a); color: #fff; }
.tab-body { flex: 1; overflow-y: auto; padding-right: 4px; }
.tab-body::-webkit-scrollbar { width: 8px; }
.tab-body::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.tab-note { color: var(--dim); font-size: 13px; margin: 2px 0 8px; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 4px; cursor: pointer; }
.row:hover { background: rgba(255, 224, 102, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 224, 102, 0.3); }
.row .grow { flex: 1; min-width: 0; }
.row .grow > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow { flex: 1; }
.rk { width: 22px; height: 22px; flex: none; display: grid; place-items: center; font: 8px var(--px); color: var(--dim); }
.rk.r1, .rk.r2, .rk.r3 { border-radius: 50%; color: #1b1220; box-shadow: 0 0 0 2px var(--ink), inset -2px -2px 0 rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.45); }
.rk.r1 { background: #ffd43b; } .rk.r2 { background: #ced4da; } .rk.r3 { background: #e8a317; }
.num { font: 9px var(--px); white-space: nowrap; }
.tx { font: 8px var(--px); color: var(--ice); }
.coal-ico { color: #343a40; text-shadow: 0 0 4px #000; font-size: 18px; }
.bigstat { text-align: center; padding: 12px; margin: 4px 0 10px; background: #0b0f1f; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink), inset 0 2px 8px #000; }
.bigstat small { display: block; font: 7px var(--px); color: var(--dim); margin-bottom: 8px; }
.bigstat b { font: 16px var(--px); color: #b197fc; }
.bigstat.gold b { color: var(--gold2); }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 5px 2px; border-bottom: 1px dashed rgba(154, 165, 206, 0.2); font-size: 14px; }
.kv b { font-weight: 600; }

.bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 14px; pointer-events: none; }
.levels { display: flex; align-items: center; padding: 10px 14px; overflow-x: auto; }
.levels::-webkit-scrollbar { height: 6px; } .levels::-webkit-scrollbar-thumb { background: var(--gold); }
.pip { position: relative; overflow: hidden; cursor: default; flex: none; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); background: #11162e; width: 104px !important; height: 50px !important; padding: 0;
  background-size: cover !important; filter: saturate(1); transition: transform 0.15s; }
.pip img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; object-fit: cover; }
.pip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(5, 8, 25, 0.85)); }
.pip > b, .pip > small, .pip > .lk { position: absolute; z-index: 1; }
.pip > b { top: 3px; left: 3px; width: 20px; height: 20px; display: grid; place-items: center; font: 9px var(--px) !important; border-radius: 50%; background: #1b1220; color: #adb5bd; box-shadow: 0 0 0 2px #495057; }
.pip > small { bottom: 4px; left: 0; right: 0; text-align: center; font: 7px var(--px) !important; color: #dee2e6; }
.pip > .lk { top: 4px; right: 5px; color: #adb5bd; }
.pip .prog { position: absolute; z-index: 1; left: 0; bottom: 0; height: 3px; width: 0; background: repeating-linear-gradient(-45deg, #e03131 0 4px, #fff 4px 8px); }
.pip:hover { transform: translateY(-2px); }
.pip:not(.done):not(.cur) img { filter: grayscale(0.85) brightness(0.6); }
.pip.done > b { background: #2f9e44; color: #fff; box-shadow: 0 0 0 2px #1e6b2e; }
.pip.cur > b { background: #ffd43b; color: #3d2614; box-shadow: 0 0 0 2px #7a5a00; }
.pip.next { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #4dabf7 !important; }
.pip-old {
  flex: none; width: 54px; height: 44px; display: grid; place-items: center; align-content: center; gap: 3px;
  border-radius: 4px; background: #11162e; color: #495057; box-shadow: 0 0 0 2px var(--ink);
}
.pip b { font: 12px var(--px); }
.pip small { font: 6px var(--px); }
.pip.done { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #2f9e44; }
.pip.cur { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold2), 0 0 18px rgba(255, 224, 102, 0.7); animation: bob 1.6s ease-in-out infinite; }
.levels .link { flex: 1; min-width: 8px; height: 4px; background: #2c386b; }
.radio { display: flex; align-items: center; gap: 12px; padding: 8px 14px; overflow: hidden; }
.station { display: flex; align-items: center; gap: 10px; padding-right: 12px; border-right: 2px solid rgba(201, 162, 39, 0.4); color: var(--gold2); }
.station span:first-of-type { display: grid; gap: 4px; }
.station b { font: 8px var(--px); white-space: nowrap; }
.station small { font: 7px var(--px); color: #ff6b6b; animation: blink 1s infinite; white-space: nowrap; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.eq i { width: 4px; background: linear-gradient(#ff6b6b, #ffe066 50%, #69db7c); animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.3s; } .eq i:nth-child(3) { animation-delay: -0.6s; } .eq i:nth-child(4) { animation-delay: -0.15s; } .eq i:nth-child(5) { animation-delay: -0.45s; }
@keyframes eq { from { height: 3px; } to { height: 18px; } }
.marquee { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 70s linear infinite; font-size: 15px; }
@keyframes marquee { to { transform: translateX(-100%); } }
.zoom { position: absolute; left: 14px; bottom: 150px; display: flex; gap: 8px; pointer-events: auto; }

/* ---------- tooltip / toasts / banner ---------- */
#tooltip {
  position: fixed; z-index: 30; pointer-events: none; padding: 8px 10px; border-radius: 4px; max-width: 220px;
  background: rgba(11, 15, 31, 0.95); box-shadow: 0 0 0 2px var(--gold), 0 6px 18px #000; font-size: 13px;
}
#toasts { position: fixed; z-index: 40; top: 110px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; width: min(420px, 90vw); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; animation: drop 0.3s; transition: opacity 0.4s, transform 0.4s; }
.toast b { font: 8px var(--px); margin-right: 6px; }
.toast.bad { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #495057, 0 0 0 6px var(--ink), 0 10px 30px #0008; }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
#banner { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; pointer-events: none; }
.banner-inner {
  display: grid; gap: 12px; text-align: center; padding: 26px 50px;
  background: repeating-linear-gradient(-45deg, #c92a2a 0 16px, #e03131 16px 32px);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 8px var(--gold), 0 0 0 12px var(--ink), 0 0 80px rgba(255, 224, 102, 0.6);
  border-radius: 8px;
}
.banner-inner small { font: 10px var(--px); color: #fff3bf; letter-spacing: 4px; }
.banner-inner b { font: clamp(16px, 3vw, 30px) var(--px); color: var(--gold2); text-shadow: 4px 4px 0 #5c0b0b; }
.banner-inner span { font-size: 18px; }
#banner.show .banner-inner { animation: bannerIn 5.2s both; }
@keyframes bannerIn {
  0% { transform: scale(0.2) rotate(-8deg); opacity: 0; }
  10% { transform: scale(1.1) rotate(2deg); opacity: 1; }
  16% { transform: scale(1); }
  88% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ---------- modal: elf employee file ---------- */
#modal { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; background: rgba(4, 6, 18, 0); transition: background 0.16s; padding: 16px; }
#modal.in { background: rgba(4, 6, 18, 0.7); }
.modal-card { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 0 18px 18px; transform: scale(0.94); opacity: 0; transition: transform 0.16s, opacity 0.16s; }
#modal.in .modal-card { transform: none; opacity: 1; }
.card-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 -18px 14px; padding: 0 12px 0 0; background: var(--panel2); }
.card-head h2 { flex: 1; margin: 0; border-radius: 4px 0 0 0; }
.card-main { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.portrait { position: relative; display: grid; place-items: center; padding: 20px 10px 30px; border-radius: 6px;
  background: radial-gradient(circle at 50% 45%, rgba(44, 56, 107, 0.25), rgba(11, 15, 31, 0.92) 75%), var(--room, none) center / cover; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink), inset 0 0 30px #000; overflow: hidden; }
.portrait canvas { width: 160px; height: 208px; image-rendering: pixelated; position: relative; z-index: 1; animation: bob 2s ease-in-out infinite; }
.portrait .pedestal { position: absolute; bottom: 18px; width: 120px; height: 16px; border-radius: 50%; background: radial-gradient(#000a, transparent 70%); }
.portrait.r-rare { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #4dabf7, inset 0 0 40px rgba(77, 171, 247, 0.4); }
.portrait.r-epic { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #be4bdb, inset 0 0 40px rgba(190, 75, 219, 0.45); }
.portrait.r-legendary { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fab005, inset 0 0 50px rgba(250, 176, 5, 0.5); }
.portrait.r-mythic { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #20c997, inset 0 0 60px rgba(32, 201, 151, 0.5); }
.portrait.r-mythic::before, .portrait.r-celestial::before {
  content: ""; position: absolute; inset: -50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent, rgba(99, 230, 190, 0.35), transparent 30%, rgba(177, 151, 252, 0.35), transparent 60%);
  animation: spin 6s linear infinite;
}
.portrait.r-celestial { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff, 0 0 30px rgba(255, 255, 255, 0.5), inset 0 0 60px rgba(255, 224, 102, 0.6); }
.portrait.r-celestial::before { background: conic-gradient(red, orange, yellow, lime, cyan, blue, magenta, red); opacity: 0.35; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait.ghost canvas { opacity: 0.35; filter: grayscale(1) brightness(1.4); }
.stamp { position: absolute; z-index: 2; top: 40%; font: 16px var(--px); color: #ff6b6b; border: 4px solid #ff6b6b; padding: 6px 10px; transform: rotate(-14deg); background: rgba(0, 0, 0, 0.4); }
.coal-stamp { color: #ced4da; border-color: #ced4da; }
.eotd-ribbon { position: absolute; z-index: 2; bottom: 4px; left: 0; right: 0; text-align: center; font: 7px var(--px); color: #3d2614; background: linear-gradient(#ffe066, #e8a317); padding: 4px; }
.card-info { min-width: 0; display: grid; gap: 8px; align-content: start; }
.big-name { font: clamp(16px, 2.6vw, 24px) var(--px); line-height: 1.4; word-break: break-word; }
.rarity-tag { font: 8px var(--px); color: var(--dim); }
.sub { font-size: 16px; }
.wallet-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kvs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.dept { padding: 8px 10px; border-radius: 4px; background: rgba(47, 158, 68, 0.2); box-shadow: inset 0 0 0 1px rgba(140, 233, 154, 0.4); font-size: 14px; }
.dept.locked { background: rgba(77, 171, 247, 0.12); box-shadow: inset 0 0 0 1px rgba(165, 216, 255, 0.4); }
.ghost-note { padding: 12px; border-radius: 4px; background: rgba(255, 107, 107, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.5); }
.card-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 4px; }
.stat { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.stat span { width: 54px; font: 8px var(--px); color: var(--dim); }
.pips { display: flex; gap: 3px; }
.pips i { width: 14px; height: 10px; background: #1a2147; box-shadow: 0 0 0 1px var(--ink); }
.pips i.on { background: linear-gradient(#ffe066, #e8a317); }
.track { display: flex; justify-content: space-between; gap: 2px; }
.node { display: grid; justify-items: center; gap: 4px; width: 12%; text-align: center; }
.node i { width: 14px; height: 14px; transform: rotate(45deg); background: #1a2147; box-shadow: 0 0 0 2px var(--ink); }
.node.on i { background: var(--gold2); }
.node.cur i { background: #ff6b6b; box-shadow: 0 0 0 2px var(--ink), 0 0 10px #ff6b6b; }
.node small { font-size: 9px; word-break: break-word; color: var(--dim); line-height: 1.1; }
.node.on small { color: var(--cream); }
.glows { display: flex; flex-wrap: wrap; gap: 8px; }
.glow-chip { font: 8px var(--px); padding: 6px 8px; border-radius: 3px; background: #0b0f1f; box-shadow: 0 0 0 2px var(--ink); }
.glow-chip.locked { color: #495057; }
.wardrobe { display: grid; gap: 4px; }
.wardrobe .item { font-size: 14px; color: #6c757d; }
.wardrobe .item.on { color: var(--cream); }
.wardrobe .item b { width: 18px; display: inline-block; }
.wardrobe small { color: var(--dim); margin-left: 4px; }
.card-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.help section { margin-bottom: 6px; }
.help p { margin: 0 0 8px; line-height: 1.5; font-size: 15px; }

/* ---------- glowing names (CSS twins of NAME_FX in sprites.js) ---------- */
.ename { font-family: var(--px); font-size: 9px; line-height: 1.6; }
.ns-paper { color: #ced4da; }
.ns-snow { color: #fff; }
.ns-holly { color: #ff6b6b; }
.ns-pine { color: #8ce99a; }
.ns-mint { color: #f8f9fa; text-shadow: 0 0 6px #ff8787, 0 0 12px #ff8787; }
.ns-mistletoe { color: #b2f2bb; text-shadow: 0 0 6px #40c057, 0 0 12px #40c057; }
.ns-evergreen { color: #69db7c; text-shadow: 0 0 6px #2b8a3e, 0 0 12px #2b8a3e; }
.ns-frost { color: #e7f5ff; text-shadow: 0 0 6px #4dabf7, 0 0 14px #4dabf7, 0 0 22px #1c7ed6; }
.ns-icicle { color: #c5f6fa; text-shadow: 0 0 6px #22b8cf, 0 0 14px #22b8cf, 0 0 22px #1098ad; }
.ns-spruce { color: #a5d8ff; text-shadow: 0 0 6px #1c7ed6, 0 0 14px #1c7ed6, 0 0 22px #1864ab; }
.ns-plum, .ns-velvet, .ns-pudding { animation: pulse 1.6s ease-in-out infinite; }
.ns-plum { color: #f3d9fa; --g: #be4bdb; }
.ns-velvet { color: #e5dbff; --g: #7048e8; }
.ns-pudding { color: #ffdeeb; --g: #e64980; }
@keyframes pulse { 0%, 100% { text-shadow: 0 0 4px var(--g), 0 0 8px var(--g); } 50% { text-shadow: 0 0 8px var(--g), 0 0 18px var(--g), 0 0 30px var(--g); } }
.ns-bell, .ns-topper, .ns-gilded, .ns-aurora, .ns-northern, .ns-polar, .ns-xstar, .ns-santa, .ns-wish {
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 2.4s linear infinite;
}
.ns-bell { background-image: linear-gradient(90deg, #f08c00, #fcc419, #fff9db, #fcc419, #f08c00); filter: drop-shadow(0 0 5px #fab005); }
.ns-topper { background-image: linear-gradient(90deg, #fab005, #ffe066, #ffffff, #ffe066, #fab005); filter: drop-shadow(0 0 5px #ffd43b); }
.ns-gilded { background-image: linear-gradient(90deg, #e8590c, #ffc078, #fff4e6, #ffc078, #e8590c); filter: drop-shadow(0 0 5px #fd7e14); }
.ns-aurora { background-image: linear-gradient(90deg, #63e6be, #74c0fc, #b197fc, #63e6be); filter: drop-shadow(0 0 7px #20c997); animation-duration: 4s; }
.ns-northern { background-image: linear-gradient(90deg, #3bc9db, #5c7cfa, #cc5de8, #3bc9db); filter: drop-shadow(0 0 7px #4c6ef5); animation-duration: 4s; }
.ns-polar { background-image: linear-gradient(90deg, #ff8787, #ffa94d, #ffe066, #ff8787); filter: drop-shadow(0 0 7px #fa5252); animation-duration: 4s; }
.ns-xstar, .ns-santa, .ns-wish { background-image: linear-gradient(90deg, #ff6b6b, #ffd43b, #69db7c, #4dabf7, #b197fc, #ff6b6b); animation: sheen 2s linear infinite, twinkle 1.2s ease-in-out infinite; }
.ns-xstar { --g: #ffe066; } .ns-santa { --g: #ff6b6b; } .ns-wish { --g: #9775fa; }
@keyframes sheen { to { background-position: 300% 0; } }
@keyframes twinkle { 0%, 100% { filter: drop-shadow(0 0 4px var(--g)) drop-shadow(0 0 2px #fff); } 50% { filter: drop-shadow(0 0 10px var(--g)) drop-shadow(0 0 4px #fff); } }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .stats-top { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 14px; }
  .topbar { top: 8px; left: 8px; right: 8px; gap: 10px; flex-wrap: wrap; }
  .brand { display: none; }
  .mcap { flex-basis: 100%; order: 2; }
  .icons { order: 1; margin-left: auto; }
  .mobile-only { display: inline-block; }
  .mcap-row { flex-wrap: wrap; row-gap: 4px; }
  .mcap-body { overflow: hidden; }
  .left-col { top: auto; bottom: 120px; left: 16px; right: 16px; width: auto; }
  .eotd { display: none; }
  .right-col { display: none; top: 150px; left: 16px; right: 16px; width: auto; bottom: 190px; }
  .right-col.show { display: flex; }
  .bottom { left: 16px; right: 16px; bottom: 10px; gap: 10px; }
  .levels { padding: 8px; }
  .pip { width: 44px; height: 38px; }
  .zoom { display: flex; bottom: 300px; right: 16px; flex-direction: column; }
  .card-main, .card-sections, .kvs { grid-template-columns: 1fr; }
  .portrait canvas { width: 120px; height: 156px; }
  #toasts { top: 150px; }
}

/* ---------- polish pass ---------- */
.t-ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 4px; background: #0b0f1f; box-shadow: 0 0 0 2px var(--ink); }
#search .btn { display: grid; place-items: center; padding: 8px 12px; }
#parade { width: min(640px, 90vw); height: auto; image-rendering: pixelated; }
.panel h2 + * { position: relative; }
.icons .ibtn:hover, .zoom .ibtn:hover { box-shadow: 0 0 0 2px var(--ink), 0 0 12px rgba(116, 192, 252, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.4); }
.btn-gold:hover { box-shadow: 0 0 0 2px var(--ink), 0 0 18px rgba(255, 224, 102, 0.6), inset 0 -4px 0 rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.lvl-badge { position: relative; }
.lvl-badge::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(255, 224, 102, 0.5); animation: spin 14s linear infinite; }
.brand .logo { filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.35)); }
@media (max-width: 900px) { .pip { width: 84px !important; height: 42px !important; } .station b, .eq { display: none; } }

.drip { display: flex; justify-content: center; gap: 10px; height: 14px; margin-top: 6px; }
.drip i { width: 4px; height: 6px; border-radius: 0 0 3px 3px; background: #b197fc; animation: drip 1.4s ease-in infinite; }
.drip i:nth-child(2) { animation-delay: -0.5s; } .drip i:nth-child(3) { animation-delay: -1s; }
@keyframes drip { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

.proof { display: grid; gap: 4px; text-align: center; padding: 12px; margin: 4px 0 10px; border-radius: 4px;
  background: linear-gradient(rgba(47, 158, 68, 0.22), rgba(47, 158, 68, 0.08)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(140, 233, 154, 0.5); }
.proof small { font: 7px var(--px); color: #8ce99a; }
.proof b { font: 16px var(--px); color: #d3f9d8; }
.proof span { font-size: 13px; }
.proof a { font: 7px var(--px); color: var(--ice); margin-top: 4px; }
.boost { display: flex; align-items: center; gap: 8px; justify-content: center; margin: -4px 0 10px; padding: 6px; border-radius: 4px; font: 7px var(--px); color: #3d2614; background: linear-gradient(#ffe066, #e8a317); box-shadow: 0 0 0 2px var(--ink); animation: blink 1.6s infinite; }

.xmas-stat em { font-style: normal; color: var(--gold2); }
.xmas-stat b { color: var(--gold2) !important; }
.xmas-pot span { display: block; margin-top: 8px; font: 8px var(--px); color: var(--cream); }
.xmas-pot { background: radial-gradient(ellipse at 50% 0%, rgba(255, 224, 102, 0.18), transparent 70%), #0b0f1f; }
.xmas-row b { text-shadow: 0 0 8px rgba(255, 224, 102, 0.5); }

/* ================= top bar v2 ================= */
.ol { text-shadow: 2px 0 #12091a, -2px 0 #12091a, 0 2px #12091a, 0 -2px #12091a, 2px 2px #12091a, -2px 2px #12091a, 2px -2px #12091a, -2px -2px #12091a, 0 4px 0 rgba(0, 0, 0, 0.45); }
.ol-thin { text-shadow: 1px 0 #12091a, -1px 0 #12091a, 0 1px #12091a, 0 -1px #12091a, 1px 1px #12091a, -1px 1px #12091a, 1px -1px #12091a, -1px -1px #12091a; }

/* logo: gradient pixel letters, dark outline, extruded depth, santa hat */
.logo { position: relative; display: inline-flex; align-items: flex-end; --o: 2px; --d: 4px;
  filter: drop-shadow(var(--o) 0 0 #12091a) drop-shadow(calc(var(--o) * -1) 0 0 #12091a) drop-shadow(0 var(--o) 0 #12091a) drop-shadow(0 calc(var(--o) * -1) 0 #12091a) drop-shadow(0 var(--d) 0 #4a0d0d) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)); }
.logo .l1, .logo .l2 { -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none !important; }
.logo .l1 { background-image: linear-gradient(180deg, #ffc9c9 0%, #ff6b6b 30%, #e03131 55%, #a61e1e 100%); }
.logo .l2 { background-image: linear-gradient(180deg, #fff9db 0%, #ffe066 30%, #fab005 60%, #c27c0e 100%); }
.logo .hat { position: absolute; left: -0.42em; top: -0.95em; transform: rotate(-20deg); filter: none; }
.logo.small { font-size: 17px; }
.logo.big { --o: 5px; --d: 9px; font-size: clamp(34px, 8vw, 84px); }
.logo.big .hat { left: -0.42em; top: -0.92em; }
.brand { flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 18px 16px 10px 22px; }
.brand .tagline { font: 6px var(--px); letter-spacing: 2px; color: #a5d8ff; }

/* level ornament */
.lvl-badge { width: 56px; height: 62px; background: none !important; box-shadow: none !important; border-radius: 0; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); animation: swing 3.2s ease-in-out infinite; transform-origin: 50% 0; }
.lvl-badge::after { content: none !important; }
.lvl-badge .bauble svg { width: 56px; height: 61px; display: block; }
.lvl-badge > b { position: absolute; left: 0; right: 0; top: 25px; text-align: center; font: 15px var(--px) !important; color: #fff; }
.lvl-badge > small { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font: 6px var(--px) !important; color: #3d2614;
  padding: 3px 6px; background: linear-gradient(#ffe066, #e8a317); box-shadow: 0 0 0 2px #12091a; white-space: nowrap; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

.mcap { gap: 16px; padding: 8px 16px 10px 12px; }
.mcap-body { gap: 5px; }
.room-name { font: 12px var(--px); color: #ffe066; overflow: visible; }
.mcap-val { display: flex; align-items: baseline; gap: 8px; }
.mcap-val small { font: 7px var(--px); color: #c5d0f5; }
.mcap-val b { font: 15px var(--px) !important; color: #8ce99a !important; }

/* candy-cane tube */
.tube { position: relative; height: 20px; margin: 2px 2px 0; border-radius: 11px; background: linear-gradient(#05070f, #18203f 70%, #232c55);
  box-shadow: 0 0 0 2px #12091a, 0 0 0 4px #c9a227, 0 0 0 6px #12091a, inset 0 4px 6px rgba(0, 0, 0, 0.8), inset 0 -2px 0 rgba(255, 255, 255, 0.06); overflow: hidden; }
.tube-fill { position: absolute; inset: 0 auto 0 0; min-width: 20px; border-radius: 11px; transition: width 0.8s;
  background: repeating-linear-gradient(-45deg, #e03131 0 10px, #fff1f1 10px 20px); background-size: 28px 28px; animation: slide 1s linear infinite; }
.tube-fill::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.15) 30%, rgba(0, 0, 0, 0) 50%, rgba(60, 0, 0, 0.25) 75%, rgba(60, 0, 0, 0.5) 100%); }
.tube-fill .tip { position: absolute; right: -2px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 236, 153, 0.9) 30%, rgba(255, 200, 80, 0) 70%); animation: tip 1.2s ease-in-out infinite; }
@keyframes tip { 50% { transform: translateY(-50%) scale(1.35); opacity: 0.75; } }
.tube-gloss { position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); pointer-events: none; }
.mcap-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; }
.mcap-foot span { font: 7px var(--px); color: #dbe4ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcap-foot b { font: 8px var(--px); color: #ffe066; }

/* stat tiles */
.stats-top { gap: 0; padding: 8px 6px; }
.stats-top > div { padding: 0 14px; gap: 10px; }
.stats-top > div + div { border-left: 2px solid rgba(201, 162, 39, 0.25); }
.stats-top .tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: radial-gradient(circle at 50% 35%, #2c386b, #0b0f1f 80%); box-shadow: 0 0 0 2px #12091a, inset 0 0 0 1px rgba(255, 224, 102, 0.25); }
.stats-top small { color: #c5d0f5 !important; }
.stats-top b { font-size: 13px !important; }

@media (max-width: 900px) {
  .lvl-badge { width: 44px; height: 50px; } .lvl-badge .bauble svg { width: 44px; height: 48px; } .lvl-badge > b { top: 19px; font-size: 12px !important; }
  .room-name { font-size: 10px; } .mcap-val b { font-size: 12px !important; }
}
@media (max-width: 900px) {
  .mcap { padding-right: 18px; }
  .mcap-body { overflow: visible !important; min-width: 0; }
  .tube { margin-right: 4px; }
  #toasts { top: 210px; }
}

.card-sections .span2 { grid-column: 1 / -1; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.badge-a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font: 7px var(--px); color: #495057; background: #0b0f1f; box-shadow: 0 0 0 2px var(--ink); }
.badge-a.on { color: var(--cream); background: linear-gradient(rgba(255, 224, 102, 0.16), rgba(255, 224, 102, 0.04)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(255, 224, 102, 0.45); }
.badge-a:not(.on) .ico { opacity: 0.4; }

/* ================= quieter HUD: the workshop comes first ================= */
@media (min-width: 901px) {
  #hud { zoom: 0.8; }
  #toasts, #tooltip { zoom: 0.85; }
  .left-col { width: 270px; }
  .right-col { width: 296px; }
}
@media (min-width: 1900px) { #hud { zoom: 0.9; } }
.pip { width: 88px !important; height: 42px !important; }
.levels { padding: 8px 12px; }
.radio { padding: 6px 12px; }
.bottom { gap: 10px; }
.panel { background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 0%, rgba(116, 143, 252, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(30, 38, 74, 0.9), rgba(20, 26, 51, 0.86)); }

/* hide-UI mode: only the icon buttons stay */
body.ui-off #hud > :not(.topbar), body.ui-off .topbar > :not(.icons) { display: none !important; }
body.ui-off .topbar { justify-content: flex-end; }
body.ui-off .icons { opacity: 0.55; } body.ui-off .icons:hover { opacity: 1; }
#b-hide.on { color: var(--gold2); }
body.ui-off #toasts, body.ui-off #banner { display: none !important; }

/* HOLDMAS FM */
.station { cursor: pointer; pointer-events: auto; border-radius: 4px; transition: background 0.15s; }
.station:hover { background: rgba(255, 224, 102, 0.08); }
.station .eq i { animation-play-state: paused; height: 3px; }
.station.playing .eq i { animation-play-state: running; }
.station.off { color: #868e96; } .station.off small { color: #868e96; animation: none; }
.station:not(.playing) small { animation: none; color: #a5d8ff; }
#radio .dj { font: 8px var(--px); margin-right: 6px; }
.dj-jingle { color: #ff8fa3; } .dj-coal { color: #adb5bd; } .dj-santa { color: #ffe066; }

/* token panel: CA + socials */
.token { padding: 10px 12px; display: grid; gap: 8px; }
.ca-row { display: flex; align-items: center; gap: 8px; }
.ca-row small { font: 8px var(--px); color: #3d2614; background: linear-gradient(#ffe066, #e8a317); padding: 4px 5px; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); }
.ca-row code { flex: 1; min-width: 0; font: 9px var(--px); color: var(--cream); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.socials { display: flex; gap: 8px; align-items: center; }
.socials:not(:has(> :not([hidden]))) { display: none; }
.socials .ibtn { width: 30px; height: 30px; }
a.ibtn, a.chip { text-decoration: none; display: inline-grid; place-items: center; }
a[hidden] { display: none !important; }

/* the wallet lookup is a search box: no native search styling or clear button */
#q { -webkit-appearance: none; appearance: none; }
#q::-webkit-search-decoration, #q::-webkit-search-cancel-button { -webkit-appearance: none; }
