/* ═══════════════════════════════════════════════════════════════════
   PONZI OS on Solana. Luna chrome played straight; the window content
   runs the wine-black register per SOL_DIRECTION.md: wine ground, bone
   text, one pink accent, restrained gold. The art is the loud layer.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "VT323";
  src: url("../fonts/VT323-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #FF1F7A;
  --wine: #07030A;
  --wine-2: #150B1A;
  --bone: #EFE7DA;
  --bone-dim: #B9AC9C;
  --bone-soft: #F6F0E4;
  --gold: #D4B96A;
  --line: #2E1F33;
  --face: #ECE9D8;
  --face-edge: #ACA899;
  --sel: #316AC5;
  --frame: #0055EA;
  --task-h: 36px;
  --mono: "VT323", "Courier New", monospace;
  --ui: Tahoma, "MS Sans Serif", Verdana, sans-serif;
  --ui-title: "Trebuchet MS", Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; }

/* the hidden attribute must always win, even over display:flex/grid rules */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--bone);
  background: var(--wine);
  overflow: hidden;
}

img { display: block; }
button { font-family: var(--ui); }

.vt { font-family: var(--mono); font-weight: 400; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--bone);
  padding: 24px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }

/* ═══ BOOT ═══ */

#boot {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: #000;
  color: #BDBDBD;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.boot-center { text-align: center; }
.boot-logo {
  font-family: var(--mono);
  font-size: 72px;
  margin: 0;
  color: #DFDFE6;
  letter-spacing: 4px;
  text-shadow: 0 0 24px rgba(255, 31, 122, 0.35);
}
.boot-os {
  font-size: 30px;
  vertical-align: super;
  margin-left: 8px;
  color: var(--pink);
  letter-spacing: 2px;
}
.boot-edition { margin: 2px 0 34px; font-size: 13px; color: #8C8C8C; letter-spacing: 3px; text-transform: uppercase; }
.boot-bar {
  width: 224px;
  height: 22px;
  margin: 0 auto;
  border: 2px solid #6E2447;
  border-radius: 6px;
  padding: 2px;
  overflow: hidden;
}
.boot-blocks {
  display: flex;
  gap: 4px;
  width: 44px;
  height: 100%;
  animation: boot-slide 1.3s linear infinite;
}
.boot-blocks i { flex: 1; background: var(--pink); border-radius: 1px; }
@keyframes boot-slide {
  from { transform: translateX(-48px); }
  to   { transform: translateX(228px); }
}
.boot-copy { position: fixed; left: 24px; bottom: 20px; margin: 0; font-size: 12px; color: #8C8C8C; }
.boot-skip { position: fixed; right: 24px; bottom: 20px; margin: 0; font-size: 12px; color: #9A9A9A; }

/* ═══ LOGIN ═══ */

#login {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #4E73C4 0%, #4467B5 50%, #3A5A9F 100%);
}
.login-band {
  flex: 0 0 84px;
  background: linear-gradient(180deg, #00309C 0%, #0F4BC5 55%, #0A3AAB 100%);
}
.login-band-top { border-bottom: 2px solid #6E9BE0; }
.login-band-bottom {
  border-top: 2px solid #6E9BE0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px;
}
.login-brand { text-align: right; color: #fff; max-width: 300px; }
.login-brand-name {
  font-family: var(--mono);
  font-size: 54px;
  margin: 0;
  color: #fff;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.35);
}
.login-brand-name span { color: var(--pink); font-size: 26px; vertical-align: super; margin-left: 6px; }
.login-brand-line { font-size: 16px; color: #FFFFFF; margin: 8px 0 0; }
.login-divider { width: 2px; align-self: stretch; background: linear-gradient(180deg, rgba(255,255,255,0), #A9C4EE, rgba(255,255,255,0)); }
.login-tiles { min-width: 260px; }
.login-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 8px 14px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  text-align: left;
}
.login-tile:hover, .login-tile:focus-visible { background: rgba(255, 255, 255, 0.18); }
.login-tile img { border: 2px solid #fff; border-radius: 6px; }
.login-tile-name { font-size: 18px; font-family: var(--ui-title); font-weight: bold; }
.login-tile-name small { display: block; font-size: 12px; font-weight: normal; color: #FFFFFF; margin-top: 2px; }
.login-off {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
}
.login-off:hover { background: rgba(255, 255, 255, 0.14); }
.login-note { color: #C9D8F2; font-size: 12px; margin: 0; }

/* ═══ DESKTOP ═══ */

#desktop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #07030A url("../assets/wallpaper-desktop-v2.jpg") center / cover no-repeat;
}

#icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dicon {
  width: 96px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.dicon svg { filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.55)); }
.dicon span {
  font-size: 12px;
  color: #fff;
  /* the wallpaper plate reaches the icon gutter once the browser cover-crops a
     narrow viewport, so the label carries its own wine ground */
  background: rgba(7, 3, 10, 0.72);
  padding: 2px 5px;
  border-radius: 2px;
  text-shadow: 1px 1px 1px #000;
}
.dicon:hover span, .dicon:focus-visible span { background: var(--sel); }

#supply-widget {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 252px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 15px;
  text-align: left;
  background: rgba(7, 3, 10, 0.9);
  border: 1px solid rgba(212, 185, 106, 0.55);
  border-radius: 3px;
  color: var(--bone);
  cursor: pointer;
}
#supply-widget:hover { border-color: var(--gold); }
.sw-head { font-size: 11px; font-weight: bold; letter-spacing: 4px; color: var(--gold); }
.sw-num { font-size: 30px; line-height: 1; }
.sw-bar {
  height: 10px;
  border: 1px solid rgba(212, 185, 106, 0.55);
  border-radius: 2px;
  padding: 1px;
}
.sw-bar i { display: block; height: 100%; width: 10%; background: var(--pink); }
.sw-sub { font-size: 12px; color: var(--bone-dim); line-height: 1.45; }

/* ═══ WINDOWS ═══ */

#windows { position: absolute; inset: 0 0 var(--task-h); pointer-events: none; }
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  pointer-events: auto;
  background: var(--frame);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.win.maxed {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}
.win-title {
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 5px 0 9px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #5DA0F7 0%, #2E7BEF 8%, #0058E6 32%, #0053DC 62%, #0046BE 92%, #003CA5 100%);
  color: #fff;
  user-select: none;
  touch-action: none;
  cursor: default;
}
.win:not(.active) .win-title { filter: saturate(0.5) brightness(1.12); }
.win.maxed .win-title { border-radius: 0; }
.win-ico { flex: 0 0 16px; }
.win-title-text {
  flex: 1;
  font-family: var(--ui-title);
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-btns { display: flex; gap: 2px; }
.wb {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  cursor: pointer;
  background: linear-gradient(180deg, #8EB4F4 0%, #5A87E4 45%, #3D6CD8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.wb:hover { filter: brightness(1.15); }
.wb-min span { position: absolute; left: 5px; bottom: 4px; width: 9px; height: 3px; background: #fff; }
.wb-max span { position: absolute; inset: 5px; border: 2px solid #fff; border-top-width: 3px; }
.wb-close { background: linear-gradient(180deg, #F1A188 0%, #E56B4C 40%, #C33E1B 100%); }
.wb-close span { position: absolute; inset: 0; }
.wb-close span::before, .wb-close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2.5px;
  background: #fff;
  border-radius: 1px;
}
.wb-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.wb-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.win-body {
  flex: 1;
  min-height: 0;
  margin: 0 3px 3px;
  background: var(--wine);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notepad, .faqwin, .exewin, .binwin, .deskwin { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  touch-action: none;
}

.win-statusbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--face);
  border-top: 1px solid var(--face-edge);
  padding: 4px 9px;
  font-size: 12px;
  color: #3B3B33;
}

.xp-menubar {
  flex: 0 0 auto;
  display: flex;
  gap: 15px;
  padding: 5px 9px;
  background: var(--face);
  border-bottom: 1px solid var(--face-edge);
  font-size: 12px;
  color: #3B3B33;
}
.xp-btn {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: bold;
  color: #000;
  min-height: 28px;
  padding: 5px 15px;
  background: linear-gradient(180deg, #fff 0%, var(--face) 46%, #D8D2BD 100%);
  border: 1px solid #003C74;
  border-radius: 3px;
  cursor: pointer;
}
.xp-btn:hover { box-shadow: inset 0 0 0 2px rgba(248, 178, 51, 0.6); }
.xp-btn:active { background: linear-gradient(180deg, #D8D2BD 0%, var(--face) 100%); }

/* ═══ THE VAULT ═══ */

.xp-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 7px;
  background: var(--face);
  border-bottom: 1px solid var(--face-edge);
}
.tb-filter {
  font-size: 12px;
  font-weight: bold;
  color: #1E1E14;
  min-height: 26px;
  padding: 4px 11px;
  background: linear-gradient(180deg, #fff, var(--face));
  border: 1px solid var(--face-edge);
  border-radius: 3px;
  cursor: pointer;
}
.tb-filter:hover { border-color: #F8B233; }
.tb-filter.on { background: var(--sel); color: #fff; border-color: #1C4CA8; }
.xp-address {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--face);
  border-bottom: 1px solid var(--face-edge);
  padding: 4px 7px;
  font-size: 12px;
  color: #3B3B33;
}
.addr-field {
  flex: 1;
  background: #fff;
  border: 1px solid #7F9DB9;
  padding: 3px 7px;
  font-size: 15px;
  color: #2E2E24;
  white-space: nowrap;
  overflow: hidden;
}

.vault-scroll { flex: 1; min-height: 0; overflow-y: auto; background: var(--wine); }
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 10px;
  padding: 12px;
  margin: 0;
  list-style: none;
}
.cell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--wine-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 6px 8px;
  cursor: pointer;
  color: var(--bone);
  text-align: left;
}
.cell:hover { border-color: var(--pink); }
.cell-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0A0510;
}
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--pink);
  background: rgba(7, 3, 10, 0.85);
  border: 1px solid var(--pink);
  padding: 0 6px;
}
.cell-serial { font-size: 17px; margin-top: 3px; }
.cell-title { font-size: 12px; font-weight: bold; letter-spacing: 0.4px; }
.cell-sub { font-size: 12px; color: var(--bone-dim); }
.cell-w { font-family: var(--mono); font-size: 15px; font-weight: 400; color: var(--gold); letter-spacing: 0.5px; }

.vault-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 18px;
  padding: 16px;
}
.detail-media img, .detail-media video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #0A0510;
}
.detail-media video { max-width: 520px; margin: 0 auto; display: block; }
.detail-serial { font-size: 32px; margin: 0; line-height: 1; }
.detail-tier { font-size: 12px; letter-spacing: 2px; color: var(--bone-dim); margin: 8px 0 0; }
.detail-weight {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--gold);
  border: 1px solid rgba(212, 185, 106, 0.55);
  padding: 1px 9px;
}
.detail-note { font-size: 12px; line-height: 1.55; color: var(--bone-dim); margin: 14px 0 0; }
.detail-title { font-size: 21px; letter-spacing: 0.5px; margin: 10px 0 0; color: var(--pink); }
.detail-caption { font-size: 14px; line-height: 1.55; color: var(--bone-soft); margin: 8px 0 0; }
.detail-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 16px;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--bone-dim);
}
.detail-dl dt { font-weight: bold; }
.detail-dl dd { margin: 0; }
.detail-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ═══ NOTEPAD / FAQ ═══ */

.notepad-text { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
.notepad-text pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.45;
  color: var(--bone);
  white-space: pre-wrap;
}

.faq-text { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.faq-text h2 { margin: 0 0 6px; font-size: 16px; color: var(--bone); }
.faq-text dl { margin: 0; }
.faq-text dt { font-size: 13px; font-weight: bold; color: var(--pink); margin-top: 15px; }
.faq-text dd { margin: 5px 0 0; font-size: 13px; line-height: 1.55; color: var(--bone-soft); }
.faq-text .vt { font-size: 16px; }

/* ═══ PONZI.exe ═══ */

/* overflow-y is the backstop: the deposit terminal grows a row every time a
   TBA becomes a real address, and a clipped BUY button is not an option */
.exewin { padding: 15px 16px; gap: 12px; overflow-y: auto; }
.exe-head { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; }
.exe-head img { border: 1px solid rgba(212, 185, 106, 0.55); border-radius: 3px; }
.exe-head strong { font-size: 17px; letter-spacing: 2px; display: block; }
.exe-head span { display: block; font-size: 12px; color: var(--bone-dim); margin-top: 2px; }
.exe-rows { flex: 0 0 auto; display: flex; flex-direction: column; }
.exe-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--bone-dim);
}
.exe-val { font-size: 19px; letter-spacing: 0; color: var(--bone); }
.exe-bar {
  flex: 0 0 auto;
  height: 10px;
  border: 1px solid rgba(255, 31, 122, 0.45);
  border-radius: 2px;
  padding: 1px;
  margin-top: 2px;
}
.exe-bar i { display: block; height: 100%; width: 10%; background: var(--pink); }
.exe-note { flex: 0 0 auto; font-size: 12px; line-height: 1.5; color: var(--bone-dim); margin: 0; }

/* click-to-copy surfaces */
.exe-copy {
  background: none;
  border: none;
  padding: 0;
  color: var(--pink);
  text-align: right;
  cursor: pointer;
}
.exe-copy:not(:disabled):hover { text-decoration: underline; }
.exe-copy:disabled { cursor: default; }
.exe-ca .addr-full { font-size: 15px; word-break: break-all; }
.addr-short { display: none; }

.exe-wallet {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px dashed var(--line);
  padding: 10px 12px;
}
.exe-wallet-label { font-size: 11px; font-weight: bold; letter-spacing: 2px; color: var(--bone-dim); }
.wallet-copy { font-size: 16px; text-align: left; word-break: break-all; min-height: 24px; }
.exe-wallet-sub { font-size: 12px; color: var(--bone-dim); line-height: 1.5; }

.copied-tip {
  position: fixed;
  z-index: 9800;
  width: 74px;
  text-align: center;
  background: #FFFFE1;
  color: #26261C;
  border: 1px solid #8A8A6A;
  border-radius: 4px;
  padding: 5px 0;
  font-size: 11px;
  font-weight: bold;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.exe-btns {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}
.exe-buy { background: linear-gradient(180deg, #FF74AC 0%, var(--pink) 46%, #C40D59 100%); border-color: #7A0E3C; }

/* ═══ THE DESK ═══
   The mechanic's window: burn, clock in, collect. Luna chrome outside, the
   wine-black register inside. Gold carries the ledger, pink carries the verbs,
   and every figure that has not happened yet says TBA in bone-dim. */

.desk-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px 22px;
}

.desk-head { border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.desk-kicker { display: block; font-size: 11px; font-weight: bold; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.desk-title {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 3px;
  color: var(--pink);
}
.desk-lede { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--bone-soft); }

.desk-banner {
  margin-top: 16px;
  border: 1px solid rgba(212, 185, 106, 0.55);
  background: var(--wine-2);
  padding: 12px 14px;
}
.desk-banner.is-open { border-color: var(--pink); }
.desk-banner-head { margin: 0; font-size: 22px; letter-spacing: 2px; color: var(--gold); }
.desk-banner.is-open .desk-banner-head { color: var(--pink); }
.desk-banner-line { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--bone-soft); }

/* the three verbs, as an XP wizard reads them: numbered, in order, no skipping */
.desk-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desk-step {
  display: flex;
  gap: 13px;
  border: 1px solid var(--line);
  background: var(--wine-2);
  padding: 13px 15px;
}
.step-n {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: var(--wine);
  background: var(--pink);
}
.step-body { min-width: 0; }
.step-body h3 {
  margin: 2px 0 0;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--bone);
}
.step-body p { margin: 7px 0 0; font-size: 13px; line-height: 1.55; color: var(--bone-soft); }
.step-body p.step-quote { color: var(--gold); border-left: 2px solid rgba(212, 185, 106, 0.55); padding-left: 10px; }

.desk-block { margin-top: 24px; }
.desk-h {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.desk-foot { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--bone-dim); }
.desk-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--bone-soft); }
.desk-list li { margin-bottom: 4px; }

.desk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.desk-table th, .desk-table td { text-align: left; padding: 7px 8px; border-bottom: 1px dashed var(--line); }
.desk-table thead th { font-size: 12px; letter-spacing: 2px; color: var(--bone-dim); font-weight: bold; }
.desk-table tbody th { color: var(--bone); font-weight: bold; letter-spacing: 1px; }
.desk-table td { color: var(--bone-soft); }
.desk-table .desk-w { font-size: 19px; color: var(--gold); }
/* VT323 has no U+00D7: it substitutes a FULL-HEIGHT X, so "&#215;400" rendered as
   "X400" and read as a letter. The digits stay in the terminal face; the operator
   is set in the UI face, which has the real glyph. */
.mx { font-family: var(--ui); font-size: 0.72em; vertical-align: 0.06em; }

/* THE BOOK: label / figure pairs, every one of them read off config.json */
.desk-figs {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0 18px;
  margin: 0;
  font-size: 13px;
}
.desk-figs dt {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--bone-dim);
  letter-spacing: 0.5px;
}
.desk-figs dd {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--bone);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.desk-figs dd .vt { font-size: 17px; }
.desk-figs dd small { display: block; font-size: 12px; line-height: 1.45; color: var(--bone-dim); margin-top: 3px; }
.desk-tba { color: var(--bone-dim); letter-spacing: 2px; }
.desk-addr { font-size: 15px; }

.desk-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.desk-act { min-width: 128px; }
/* Black on pink, exactly like the BUY button: #fff on this pink measures
   3.67:1 and fails AA at button size. The Luna face keeps its dark label. */
.desk-act-pay:not(:disabled) { background: linear-gradient(180deg, #FF74AC 0%, var(--pink) 46%, #C40D59 100%); border-color: #7A0E3C; }
.desk-reason { margin: 11px 0 0; font-size: 12px; line-height: 1.55; color: var(--bone-dim); }

/* A disabled control must LOOK disabled: the whole point of the pre-launch desk
   is that the buttons are visibly off and say why. */
.xp-btn:disabled {
  color: #625D51;
  background: linear-gradient(180deg, #F3F1E6 0%, #E2DFCE 100%);
  border-color: #9A9686;
  cursor: default;
}
.xp-btn:disabled:hover, .xp-btn:disabled:active { box-shadow: none; background: linear-gradient(180deg, #F3F1E6 0%, #E2DFCE 100%); }

/* ═══ MY MONEY ═══ */

.bin-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--bone-dim);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}
.bin-empty svg { opacity: 0.8; margin-bottom: 8px; }
.bin-empty strong { color: var(--bone); font-size: 15px; }
.bin-empty p { margin: 2px 0; }

/* ═══ THE FILM ═══ */

.film-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.film-stage video { width: 100%; height: auto; max-height: 100%; }
.film-tba { text-align: center; padding: 30px 22px; }
.film-tba p { margin: 6px 0; font-size: 13px; line-height: 1.5; color: var(--bone-dim); }
.film-tba p.film-tba-head { font-size: 46px; margin: 0 0 10px; color: var(--pink); }
.film-tba-sub { letter-spacing: 1px; }

/* ═══ TASKBAR ═══ */

#taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--task-h);
  z-index: 5000;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #4A8BF5 0%, #2663E0 7%, #245EDC 46%, #1E51C4 88%, #1941A5 100%);
  box-shadow: 0 -1px 0 #6A9CFF;
}
#start-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px 0 10px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, #6BC56E 0%, #48A64B 10%, #3CB54A 46%, #2E8F3A 90%, #256F2E 100%);
  box-shadow: inset -9px 0 12px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  font-family: var(--ui-title);
  font-style: italic;
  font-weight: bold;
  font-size: 17px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
#start-btn img { border-radius: 3px; }
#start-btn:hover { filter: brightness(1.08); }
#start-btn.on { box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45); filter: brightness(0.92); }
#task-buttons {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.task-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 108px;
  max-width: 188px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  background: linear-gradient(180deg, #5E90EE 0%, #3E71E0 46%, #3667D6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.task-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-btn.active {
  background: linear-gradient(180deg, #1E48A8 0%, #16389B 100%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.45);
}
#tray-ca {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  padding: 2px 9px;
  margin-right: 11px;
  min-height: 24px;
  cursor: pointer;
}
#tray-ca:hover { background: rgba(0, 0, 0, 0.45); }
#tray {
  display: flex;
  align-items: center;
  padding: 0 15px;
  background: linear-gradient(180deg, #35A2E8 0%, #1385D6 50%, #0F6EC0 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 12px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

/* ═══ START MENU ═══ */

#start-menu {
  position: fixed;
  left: 0;
  bottom: var(--task-h);
  z-index: 6000;
  width: 404px;
  max-width: calc(100vw - 6px);
  display: flex;
  flex-direction: column;
  border: 1px solid #0831D9;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  box-shadow: 3px -3px 14px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.sm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #3F8CF3 0%, #2268DB 55%, #1D5FD0 100%);
  color: #fff;
  font-family: var(--ui-title);
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}
.sm-head img { border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 4px; }
.sm-cols { display: flex; border-top: 2px solid #F0A63C; }
.sm-left {
  flex: 1.25;
  background: #fff;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sm-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 9px;
  background: none;
  border: none;
  border-radius: 2px;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #1E1E14;
  cursor: pointer;
}
.sm-item svg { flex: 0 0 24px; }
.sm-item span { display: flex; flex-direction: column; gap: 1px; }
.sm-item small { font-weight: normal; color: #63635A; font-size: 11px; }
.sm-item:hover, .sm-item:focus-visible { background: var(--sel); color: #fff; }
.sm-item:hover small, .sm-item:focus-visible small { color: #D6E4FF; }
.sm-right {
  flex: 1;
  background: #D3E5FA;
  border-left: 1px solid #95BDEE;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sm-tba, #sm-withdraw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px;
  background: none;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  color: #1C3E7E;
  cursor: pointer;
  text-align: left;
}
.sm-tba span { font-weight: normal; color: #5A78A8; }
.sm-tba:hover, .sm-tba:focus-visible, #sm-withdraw:hover, #sm-withdraw:focus-visible { background: var(--sel); color: #fff; }
.sm-tba:hover span, .sm-tba:focus-visible span { color: #D6E4FF; }
.sm-sep { border-top: 1px solid #95BDEE; margin: 5px 4px; }
.sm-foot {
  display: flex;
  justify-content: flex-end;
  padding: 7px 12px;
  background: linear-gradient(180deg, #4282E8 0%, #2A62CE 100%);
  border-top: 1px solid #1D51BC;
}
#sm-shutdown {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  background: none;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 9px;
}
#sm-shutdown:hover { background: rgba(255, 255, 255, 0.16); }
#sm-shutdown i {
  width: 17px;
  height: 17px;
  border-radius: 3px;
  background: radial-gradient(circle at 35% 30%, #F0836B, #D6482B 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ═══ PONZY ═══ */

#ponzy {
  position: fixed;
  right: 18px;
  bottom: calc(var(--task-h) + 14px);
  z-index: 4500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}
.ponzy-bubble {
  position: relative;
  max-width: 248px;
  background: #FFFFE1;
  border: 1px solid #8A8A6A;
  border-radius: 8px;
  padding: 11px 30px 11px 13px;
  font-size: 12px;
  line-height: 1.5;
  color: #26261C;
  box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.3);
}
.ponzy-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -9px;
  border: 9px solid rgba(0, 0, 0, 0);
  border-top-color: #FFFFE1;
  border-bottom: none;
}
.ponzy-text { margin: 0; }
.ponzy-dismiss {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 1px solid #8A8A6A;
  border-radius: 3px;
  background: #F4F1D0;
  font-size: 13px;
  line-height: 1;
  color: #26261C;
  cursor: pointer;
}
.ponzy-fig {
  background: rgba(7, 3, 10, 0.82);
  border: 1px solid rgba(255, 31, 122, 0.5);
  border-radius: 11px;
  padding: 7px 11px 4px;
  cursor: pointer;
}
.ponzy-fig:hover { border-color: var(--pink); }
#ponzy.talking .ponzy-fig { animation: ponzy-bob 0.7s ease-in-out 2; }
@keyframes ponzy-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ═══ BSOD ═══ */

#bsod {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #2B0716;
  color: var(--bone);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: pointer;
  overflow-y: auto;
}
.bsod-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.45;
}
.bsod-inner p { margin: 0; }
.bsod-badge { background: var(--pink); color: #2B0716; align-self: flex-start; padding: 1px 12px; font-size: 23px; }
.bsod-stop { font-size: 28px; letter-spacing: 3px; color: var(--pink); }
.bsod-key { animation: bsod-blink 1.2s steps(1) infinite; }
@keyframes bsod-blink { 50% { opacity: 0.15; } }

/* ═══ DIALOGS ═══ */

.dlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  padding: 16px;
}
.dlg {
  width: min(392px, 100%);
  background: var(--face);
  border: 3px solid var(--frame);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.dlg .win-title { border-radius: 5px 5px 0 0; }
.dlg-body { padding: 19px 17px; font-size: 12px; line-height: 1.55; color: #1E1E14; }
.dlg-body p { margin: 0; }
.dlg-btns { display: flex; justify-content: center; padding: 0 17px 15px; }
.dlg-btns .xp-btn { min-width: 88px; }


/* ═══ VAULT SEALED STATE ═══ */

.vault-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 34px 22px;
}
.vault-empty p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--bone-dim); max-width: 380px; }
/* p.<class>, not .<class>: `.vault-empty p` outranks a bare class and was
   rendering the seal at 13px bone instead of 46px pink. */
.vault-empty p.vault-empty-head { font-size: 46px; margin: 0 0 4px; color: var(--pink); max-width: none; }

/* ═══ THE ARCHIVE (42 works, art dressing, not the tokens) ═══ */

.arch-chapter {
  grid-column: 1 / -1;
  margin: 8px 2px 0;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  color: var(--gold);
}
.arch-chapter small {
  display: block;
  margin-top: 2px;
  font-weight: normal;
  letter-spacing: 0.4px;
  color: var(--bone-dim);
}

/* ═══ MOBILE (<=820px): a real mobile reading of XP ═══ */

@media (max-width: 820px) {
  :root { --task-h: 52px; }

  #desktop { background-image: url("../assets/wallpaper-mobile-v2.jpg"); }

  #supply-widget {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
  }
  .sw-num { font-size: 34px; }

  #icons {
    top: 158px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 6px;
  }
  .dicon { width: auto; min-height: 92px; }
  .dicon span { font-size: 12px; }

  /* Every window opens maximized, XP titlebar kept.
     `inset: 0`, NOT `0 0 var(--task-h)`: #windows is ALREADY inset from the
     bottom by --task-h, so subtracting it again here left a 52px strip of
     wallpaper between every window's status bar and the taskbar (measured 740
     vs 792 at 390x844). Filling the layer is what "maximized" means. */
  .win {
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
  }
  .win-title { flex-basis: 44px; height: 44px; border-radius: 0; }
  .wb { width: 34px; height: 34px; }
  .wb-max, .win-resize { display: none; }

  .vault-grid { grid-template-columns: repeat(2, 1fr); }
  .vault-detail { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .detail-nav .xp-btn { min-height: 44px; flex: 1; }
  .tb-filter { min-height: 44px; padding: 4px 13px; }
  .xp-btn { min-height: 44px; }

  #taskbar { height: var(--task-h); }
  #start-btn { font-size: 19px; padding: 0 22px 0 12px; }
  .task-btn { min-width: 64px; max-width: 150px; }
  #tray { padding: 0 12px; }

  #start-menu { width: 100%; max-width: none; border-radius: 0; }
  .sm-cols { flex-direction: column; }
  .sm-right { border-left: none; border-top: 1px solid #95BDEE; }
  .sm-item, .sm-tba, #sm-withdraw { min-height: 48px; font-size: 13px; }
  .sm-item small { font-size: 12px; }
  #sm-shutdown { min-height: 44px; font-size: 13px; }

  /* a maximized window IS the screen here, so the assistant waits on the desktop */
  #ponzy { right: 10px; bottom: calc(var(--task-h) + 10px); }
  body.wins-open #ponzy { display: none; }

  .login-main { flex-direction: column; gap: 26px; }
  .login-brand { text-align: center; }
  .login-divider { display: none; }
  .boot-logo { font-size: 52px; }

  .exe-val { font-size: 16px; }
  .film-tba-head { font-size: 34px; }

  /* THE DESK on a phone: the book stacks label-over-figure, because a
     44-character program id has nowhere to go in a right-aligned column */
  .desk-scroll { padding: 14px 14px 20px; }
  .desk-title { font-size: 34px; }
  .desk-banner-head { font-size: 18px; }
  .desk-figs { grid-template-columns: 1fr; gap: 0; }
  .desk-figs dt { padding: 9px 0 0; border-bottom: none; }
  .desk-figs dd { padding: 2px 0 9px; text-align: left; }
  .desk-table { font-size: 12px; }
  .desk-table th, .desk-table td { padding: 7px 5px; }
  .desk-table .desk-w { font-size: 17px; }
  .desk-actions { gap: 8px; }
  .desk-act { flex: 1 1 46%; min-width: 0; }

  /* full address on desktop; middle-ellipsized visually on mobile.
     Copying always copies the FULL address from data-copy. */
  .addr-full { display: none; }
  .addr-short { display: inline; }
  #tray-ca { min-height: 34px; }
}

/* ═══ REDUCED MOTION ═══ */

@media (prefers-reduced-motion: reduce) {
  .boot-blocks, .bsod-key, #ponzy.talking .ponzy-fig { animation: none; }
  * { transition: none !important; }
}
