

@font-face {
  font-family: "Px";
  src: url("assets/pixel.woff2") format("woff2");
  font-display: block;
}


:root {
  --face:   #c0c0c0;
  --hl:     #ffffff;
  --lt:     #dfdfdf;
  --sh:     #808080;
  --dk:     #0a0a0a;

  
  --desk:   #1a0f2e;

  
  --title1: #2a1a47;
  --title2: #7a5aa8;

  
  --ititle1:#3a3446;
  --ititle2:#6b6478;

  --sel:    #4a2d7a;
  --tip:    #f4ecff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: "Px", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #000;
  image-rendering: pixelated;
  -webkit-font-smoothing: none;
  cursor: default;
  user-select: none;
}

body { background: #000; }

canvas, img { image-rendering: pixelated; }


.raised {
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
}
.raised-thin {
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--lt);
}
.sunken {
  background: #fff;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--lt), inset 2px 2px var(--dk);
}

.inpad {
  padding: 5px 7px;
  line-height: 1.5;
}

.sunken-thin {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh);
}
.groove {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--sh), inset 2px 2px var(--hl);
}


.b98 {
  font-family: inherit; font-size: 12px;
  background: var(--face);
  border: none;
  padding: 4px 14px;
  min-width: 76px;
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
  cursor: default;
  color: #000;
}
.b98:active:not(:disabled) {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--dk),
              inset -2px -2px var(--lt), inset 2px 2px var(--sh);
  padding: 5px 13px 3px 15px;
}
.b98:disabled {
  color: var(--sh);
  text-shadow: 1px 1px 0 var(--hl);
}
.b98.default { outline: 1px solid #000; outline-offset: -5px; }
.b98:focus { outline: 1px dotted #000; outline-offset: -5px; }
.b98.sm { min-width: 0; padding: 2px 8px; }


.f98 {
  font-family: inherit; font-size: 12px;
  background: #fff;
  border: none;
  padding: 3px 5px;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--lt), inset 2px 2px var(--dk);
  outline: none;
  color: #000;
  user-select: text;
}
.f98:disabled { background: var(--face); }


.chk { display: inline-flex; align-items: center; gap: 6px; }
.chk .box {
  width: 13px; height: 13px; background: #fff; flex-shrink: 0;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--lt), inset 2px 2px var(--dk);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #000;
}
.chk.on .box::after { content: "✓"; margin-top: -1px; }
.radio .box { width: 12px; height: 12px; border-radius: 50%; }
.radio.on .box::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #000; }


#desktop {
  position: fixed; inset: 0 0 28px 0;
  background: var(--desk);
  overflow: hidden;
}

.dicon {
  position: absolute;
  width: 84px;
  text-align: center;
  padding: 4px 2px;
}
.dicon .ic { width: 32px; height: 32px; margin: 0 auto 3px; position: relative; }
.dicon .lbl {
  color: #fff;
  font-size: 12px;
  padding: 1px 3px;
  display: inline-block;
  max-width: 82px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.dicon.sel .lbl { background: var(--sel); outline: 1px dotted #ffff80; }
.dicon.sel .ic::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,128,0.35);
}


.win {
  position: absolute;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--lt),
              inset -2px -2px var(--sh), inset 2px 2px var(--hl);
  padding: 3px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}
.win .tbar {
  height: 18px;
  background: linear-gradient(90deg, var(--ititle1), var(--ititle2));
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 2px 1px 3px;
  flex-shrink: 0;
}
.win.active .tbar { background: linear-gradient(90deg, var(--title1), var(--title2)); }
.win .tbar .ticon { width: 16px; height: 16px; flex-shrink: 0; }
.win .tbar .ttext {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.02em;
  padding-top: 1px;
}
.win .tbar .tbtn {
  width: 16px; height: 14px;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  position: relative;
}
.win .tbar .tbtn:active {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--dk),
              inset -2px -2px var(--lt), inset 2px 2px var(--sh);
}

.tbtn.min::after { content: ""; width: 6px; height: 2px; background: #000; margin-top: 6px; }
.win.maxed { min-width: 0; }
.tbtn.max::after { content: ""; width: 8px; height: 7px; border: 1px solid #000; border-top-width: 2px; }
.tbtn.cls::after { content: "×"; font-size: 13px; font-weight: bold; margin-top: -2px; }

.win .mbar {
  display: flex;
  padding: 1px 0;
  flex-shrink: 0;
}
.win .mbar .mitem { padding: 2px 7px; }
.win .mbar .mitem:hover, .win .mbar .mitem.open { background: var(--sel); color: #fff; }

.win .wbody {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.win .wbody.pad { padding: 10px; }
.win .wbody.white {
  background: #fff;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--lt), inset 2px 2px var(--dk);
  margin: 2px;
}

.win .sbar {
  display: flex;
  gap: 2px;
  padding: 2px 2px 0;
  flex-shrink: 0;
}
.win .sbar .cell {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh);
  padding: 2px 6px;
  font-size: 12px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  
  text-overflow: ellipsis;
  min-width: 0;
}
.win .sbar .cell.fix { flex: 0 0 auto; }


.dmenu {
  position: absolute;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--lt),
              inset -2px -2px var(--sh), inset 2px 2px var(--hl);
  padding: 2px;
  z-index: 99999;
  min-width: 150px;
}
.dmenu .di {
  padding: 4px 20px 4px 24px;
  white-space: nowrap;
  position: relative;
}
.dmenu .di:hover:not(.dis) { background: var(--sel); color: #fff; }
.dmenu .di.dis { color: var(--sh); text-shadow: 1px 1px 0 var(--hl); }
.dmenu .sep { height: 0; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hl); margin: 3px 2px; }


#taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  background: var(--face);
  box-shadow: inset 0 1px 0 var(--hl), 0 -1px 0 var(--dk);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 2px 2px 2px;
  z-index: 9000;
}
#startbtn {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 3px;
  font-weight: bold;
  font-size: 12px;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
}
#startbtn:active, #startbtn.open {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--dk),
              inset -2px -2px var(--lt), inset 2px 2px var(--sh);
}
#startbtn canvas { width: 16px; height: 16px; }

.tb-divider {
  width: 1px; height: 22px;
  border-left: 1px solid var(--sh);
  border-right: 1px solid var(--hl);
  margin: 0 1px;
}

#tb-tasks { flex: 1; display: flex; gap: 3px; overflow: hidden; }
.tb-task {
  height: 22px;
  min-width: 60px;
  max-width: 160px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
}
.tb-task.on {
  font-weight: bold;
  background:
    repeating-conic-gradient(var(--hl) 0% 25%, var(--face) 0% 50%) 0 0 / 2px 2px;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--dk),
              inset -2px -2px var(--lt), inset 2px 2px var(--sh);
}
.tb-task canvas { width: 16px; height: 16px; flex-shrink: 0; }


.tb-task span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#tray {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 6px;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh);
  font-size: 12px;
}
#tray canvas { width: 16px; height: 16px; }

.tray-btn {
  font-family: inherit;
  font-size: 12px;
  background: var(--face);
  border: none;
  padding: 2px 8px;
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
  color: #000;
  white-space: nowrap;
}
.tray-btn:active {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--dk),
              inset -2px -2px var(--lt), inset 2px 2px var(--sh);
}
.tray-btn.muted { color: var(--sh); }
.wallet-btn.connected { color: #006000; font-weight: bold; }


#startmenu {
  position: fixed;
  left: 2px; bottom: 30px;
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--lt),
              inset -2px -2px var(--sh), inset 2px 2px var(--hl);
  padding: 2px;
  display: none;
  z-index: 9500;
}
#startmenu.open { display: flex; }
#sm-banner {
  width: 24px;
  background: linear-gradient(0deg, var(--title2), var(--title1));
  position: relative;
}

#sm-banner .sm-face {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  display: block;
}
#sm-banner .sm-face canvas { display: block; image-rendering: pixelated; }
#sm-banner .sm-word {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: 0 0;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
#sm-items { display: flex; flex-direction: column; min-width: 190px; }
.sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  font-size: 13px;
}
.sm-item:hover { background: var(--sel); color: #fff; }
.sm-item canvas { width: 24px; height: 24px; }
.sm-sep { height: 0; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hl); margin: 2px 2px; }


.pb98 {
  height: 18px;
  background: #fff;
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--lt), inset 2px 2px var(--dk);
  padding: 3px;
  overflow: hidden;
}
.pb98 .fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(90deg,
    var(--sel) 0px, var(--sel) 10px, transparent 10px, transparent 12px);
}


::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track {
  background: repeating-conic-gradient(#fff 0% 25%, var(--face) 0% 50%) 0 0 / 2px 2px;
}
::-webkit-scrollbar-thumb {
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
}
::-webkit-scrollbar-button {
  background: var(--face);
  box-shadow: inset -1px -1px var(--dk), inset 1px 1px var(--hl),
              inset -2px -2px var(--sh), inset 2px 2px var(--lt);
  height: 16px; width: 16px;
}


#tooltip {
  position: fixed;
  background: var(--tip);
  border: 1px solid #000;
  padding: 2px 6px;
  font-size: 12px;
  z-index: 99990;
  display: none;
  pointer-events: none;
}


#boot {
  position: fixed; inset: 0;
  background: #000;
  color: #aaa;
  z-index: 99900;
  font-family: "Px", monospace;
  font-size: 14px;
  padding: 24px 30px;
  white-space: pre-wrap;
  line-height: 1.5;
}
#boot .amber { color: #ffb000; }
#bootlogo {
  position: fixed; inset: 0;
  background: #000;
  z-index: 99901;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}
#bootlogo .loadbar {
  width: 220px; height: 14px;
  border: 2px solid #555;
  overflow: hidden;
  position: relative;
}
#bootlogo .loadbar .chunk {
  position: absolute;
  width: 60px; height: 100%;
  background: linear-gradient(90deg, #00007a, #0000ee, #00007a);
  animation: bootslide 1.1s linear infinite;
}
@keyframes bootslide {
  from { left: -60px; } to { left: 220px; }
}


#glitch {
  position: fixed; inset: 0;
  z-index: 99950;
  display: none;
  background: transparent;
  pointer-events: all;
}
#bsod {
  position: fixed; inset: 0;
  z-index: 99960;
  display: none;
  background: #0000aa;
  color: #fff;
  font-family: "Px", monospace;
  font-size: 15px;
  padding: 60px 10%;
  line-height: 1.7;
  text-align: left;
  white-space: pre-wrap;
}
#bsod .hdr {
  background: #aaaaaa;
  color: #0000aa;
  padding: 0 10px;
  display: inline-block;
  margin-bottom: 18px;
}
body.jitter #desktop, body.jitter #taskbar { animation: jit 0.09s steps(2) infinite; }
@keyframes jit {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5px, 2px); }
  50%  { transform: translate(4px, -3px); }
  75%  { transform: translate(-2px, -2px); }
}


#shutdown {
  position: fixed; inset: 0;
  background: #000;
  z-index: 99980;
  display: none;
  align-items: center;
  justify-content: center;
}
#shutdown .msg {
  color: #ff8000;
  font-size: 26px;
  text-align: center;
  line-height: 1.6;
}


.hide { display: none !important; }
.hr98 { height: 0; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hl); margin: 8px 0; }
.gbox {
  box-shadow: inset -1px -1px var(--hl), inset 1px 1px var(--sh),
              inset -2px -2px var(--sh), inset 2px 2px var(--hl);
  padding: 12px 10px 10px;
  position: relative;
  margin-top: 8px;
}
.gbox > .glabel {
  position: absolute;
  top: -8px; left: 8px;
  background: var(--face);
  padding: 0 4px;
  font-size: 12px;
}
.wizard { display: flex; height: 100%; }
.wizard .side {
  width: 120px;
  background: linear-gradient(180deg, var(--title1), #000040);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wizard .wmain { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; }
.wizard .wmain h1 { font-size: 16px; font-weight: bold; margin-bottom: 12px; }
.wizard .wbtns {
  display: flex; justify-content: flex-end; gap: 6px;
  padding-top: 10px;
  margin-top: auto;
}

.mono { font-family: "Px", "Courier New", monospace; }
.bold { font-weight: bold; }
.small { font-size: 11px; }
.gray { color: var(--sh); }
.navy { color: var(--sel); }
.red { color: #aa0000; }
.green { color: #008000; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.mb { margin-bottom: 10px; }


.sigrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  padding: 3px 4px;
}
.sigrow.has {
  background: #fff;
  border: 1px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
}
.sigrow .sigbadge {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: block;
}

.sigrow:not(.has) .sigbadge {
  filter: grayscale(1) brightness(0.75);
  opacity: 0.45;
}
.sigrow:not(.has) .mono { color: #606060; }


.pxload {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  margin-right: 5px;
}
.pxload i {
  width: 4px;
  height: 4px;
  background: var(--sh);
  animation: pxload 1s steps(1) infinite;
}
.pxload i:nth-child(2) { animation-delay: .25s; }
.pxload i:nth-child(3) { animation-delay: .5s; }
.pxload i:nth-child(4) { animation-delay: .75s; }
@keyframes pxload {
  0%, 24%  { background: var(--title2); }
  25%,100% { background: var(--sh); }
}


@media (prefers-reduced-motion: reduce) {
  .pxload i { animation: none; background: var(--title2); }
}


.pk-row { padding: 3px 4px; border-bottom: 1px solid #e4e4e4; }
.pk-row:last-child { border-bottom: 0; }

.pk-mine { background: #f2eef8; }
.pk-head { display: flex; align-items: center; gap: 4px; font-size: 11px; }
.pk-lvl {
  color: #fff; font-weight: bold; font-size: 10px;
  padding: 0 3px; min-width: 12px; text-align: center;
}
.pk-id { margin-left: auto; color: var(--sh); font-size: 10px; }
.pk-text { margin-top: 1px; word-break: break-word; white-space: pre-wrap; }


.pk-sig {
  display: inline-block; width: 8px; height: 8px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.pk-crypt  { background: #00d0ff; }
.pk-oracle { background: #a855f7; }
.pk-arena  { background: #ff2040; }
.pk-ware {
  font-size: 9px; font-weight: bold; letter-spacing: 0.5px;
  background: #2a1740; color: #e9d5ff; padding: 0 3px;
}


.w-cores { display: flex; gap: 6px; }
.w-core {
  flex: 1; text-align: center; padding: 4px 2px;
  border: 1px solid #dfdfdf; background: #fff;
}
.w-dim { opacity: 0.35; }
.w-core-art { display: flex; justify-content: center; margin-bottom: 3px; }

.w-wares { display: flex; flex-wrap: wrap; gap: 6px; }
.w-ware {
  text-align: center; padding: 3px; background: #fff;
  border: 1px solid #dfdfdf; min-width: 52px;
}
.w-ware-art { display: flex; justify-content: center; }


.mintedout { position: relative; }
.mo-stamp {
  display: inline-block; padding: 6px 14px; margin: 6px 0 2px;
  border: 3px solid #c00000; color: #c00000; background: #fff;
  font-weight: bold; font-size: 22px; letter-spacing: 2px; transform: rotate(-6deg);
  animation: mo-stamp-in 420ms cubic-bezier(.2,1.6,.4,1) both, mo-stamp-blink 1.6s steps(2, start) 600ms infinite;
}
@keyframes mo-stamp-in {
  from { transform: rotate(-6deg) scale(3); opacity: 0; }
  60%  { transform: rotate(-6deg) scale(.92); opacity: 1; }
  to   { transform: rotate(-6deg) scale(1); opacity: 1; }
}
@keyframes mo-stamp-blink { 50% { border-color: #ff4040; color: #ff4040; } }
.mo-counter {
  position: relative; overflow: hidden; margin: 6px auto 4px; padding: 6px 0;
  font-family: "Fixedsys", "Terminal", monospace; font-size: 26px; font-weight: bold;
  color: #806000; background: #000; border: 2px inset #808080;
}
.mo-num { color: #ffcd75; }
.mo-sep { color: #806000; padding: 0 8px; }
.mo-scan {
  position: absolute; left: 0; right: 0; height: 3px; top: -3px;
  background: rgba(255,205,117,.55); animation: mo-scan 2.2s linear infinite;
}
@keyframes mo-scan { from { top: -3px; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mo-stamp { animation: none; } .mo-scan { display: none; }
}


.anx-scene { position: relative; }
.anx-scene canvas { display: block; width: 100%; image-rendering: pixelated; }
.anx-topline { position: absolute; left: 6px; top: 6px; display: flex; gap: 6px; }
.anx-chip {
  background: #0a1014; border: 2px solid #2f3d4a; color: #8391a0;
  font: bold 10px "Px", monospace; letter-spacing: 0.08em; padding: 2px 6px;
}
.anx-chip b { color: #00ff9c; margin-left: 3px; }
.anx-chip.anx-cyan b { color: #20c0ff; }
.anx-chip.anx-gold b { color: #ffcd75; }
.anx-pausedbar {
  position: absolute; left: 2px; right: 2px; bottom: 2px; text-align: center;
  background: #7a1f18; color: #ffb0a8; border-top: 2px solid #ff4b3e;
  font: bold 10px "Px", monospace; letter-spacing: 0.15em; padding: 2px 0;
}
.anx-shelf { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.anx-frag { border: 1px solid; font: bold 9px "Px", monospace; padding: 1px 4px; letter-spacing: 0.05em; background: #10141a; }
