/* ============================================================
   代码之下 — 基础 / 邮件 / 下载 / 记忆殿 / 覆盖层
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070a;
  --ink: #cfd6de;
  --dim: #6b7681;
  --green: #35ff8b;
  --green-d: #0f6b3c;
  --red: #ff2b2b;
  --sys: #c0c0c0;
  --sys-d: #808080;
  --sys-l: #ffffff;
  --sys-navy: #000080;
  --mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Courier New", monospace;
  --ui: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "Songti SC", "SimSun", "Noto Serif SC", serif;
}

html, body { height: 100%; }
body {
  background: #000;
  color: var(--ink);
  font-family: var(--ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}
#app { position: fixed; inset: 0; overflow: hidden; }

/* 屏幕扫描线 + 轻微暗角（全局） */
#app::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 9000;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
  opacity: .85;
}

.screen {
  position: absolute; inset: 0;
  display: none;
  overflow: hidden;
}
.screen.active { display: block; }

.hidden { display: none !important; }

/* ---------- 通用：淡入淡出遮罩 ---------- */
.fade {
  position: absolute; inset: 0;
  background: #000; opacity: 0; pointer-events: none;
  z-index: 8000; transition: opacity .45s linear;
}
.fade.on { opacity: 1; pointer-events: all; }
.fade.instant { transition: none; }

/* ---------- toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%) translateY(16px);
  background: rgba(10,14,18,.94);
  border: 1px solid #2a3a44;
  color: #b9c6d2; padding: 10px 18px; font-size: 13px;
  letter-spacing: .06em; opacity: 0; transition: all .35s ease;
  z-index: 8600; pointer-events: none;
  font-family: var(--mono);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   0. 邮件客户端（仿 Outlook Express）
   ============================================================ */
#screen-mail { background: radial-gradient(ellipse at 50% 40%, #17202a 0%, #070a0d 70%, #000 100%); padding: 0; }
#screen-mail.active { display: flex; align-items: center; justify-content: center; }

.mailapp {
  width: min(1080px, 92vw); height: min(720px, 88vh);
  background: var(--sys);
  border: 2px solid;
  border-color: var(--sys-l) #404040 #404040 var(--sys-l);
  box-shadow: 0 24px 90px rgba(0,0,0,.9), 0 0 0 1px #000;
  display: flex; flex-direction: column;
  font-family: var(--ui); font-size: 12px; color: #000;
  transform: scale(.985);
  animation: mailIn .5s ease-out forwards;
}
@keyframes mailIn { to { transform: scale(1); } }

.mailapp-titlebar {
  height: 26px; flex: 0 0 26px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff; display: flex; align-items: center; gap: 8px;
  padding: 0 6px; font-weight: 700; font-size: 12px;
}
.mailapp-icon { font-size: 13px; }
.mailapp-title { flex: 1; letter-spacing: .02em; }
.wb-btns { display: flex; gap: 2px; }
.wb-btns i {
  width: 18px; height: 16px; background: var(--sys);
  color: #000; font-style: normal; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 1px solid;
  border-color: var(--sys-l) #404040 #404040 var(--sys-l);
}

.mailapp-menu {
  height: 20px; flex: 0 0 20px; display: flex; gap: 14px;
  align-items: center; padding: 0 10px; background: var(--sys);
  border-bottom: 1px solid #808080; font-size: 12px;
}
.mailapp-menu span:hover { background: var(--sys-navy); color: #fff; }

.mailapp-toolbar {
  height: 34px; flex: 0 0 34px; display: flex; gap: 4px; align-items: center;
  padding: 0 8px; border-bottom: 1px solid #808080; background: var(--sys);
}
.tb {
  font: inherit; font-size: 11px; padding: 3px 10px; min-width: 54px;
  background: var(--sys); color: #000; cursor: pointer;
  border: 2px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l);
}
.tb:active { border-color: #404040 var(--sys-l) var(--sys-l) #404040; }
.tb-ghost { margin-left: 4px; }

.mailapp-body { flex: 1; display: grid; grid-template-columns: 168px 260px 1fr; min-height: 0; }

.mail-folders { background: #fff; border-right: 1px solid #808080; padding: 6px 0; overflow: auto; }
.folder-head { font-size: 11px; color: #444; padding: 6px 10px 3px; font-weight: 700; }
.folder { padding: 4px 10px 4px 16px; font-size: 12px; cursor: default; }
.folder.active { background: var(--sys-navy); color: #fff; }
.folder b { font-weight: 400; }
.folder-gap { height: 12px; }

.mail-list { background: #fff; border-right: 1px solid #808080; display: flex; flex-direction: column; overflow: hidden; }
.mlist-head, .mlist-row {
  display: grid; grid-template-columns: 74px 1fr 48px;
  gap: 4px; padding: 4px 8px; font-size: 11px;
}
.mlist-head { background: var(--sys); border-bottom: 1px solid #808080; font-weight: 700; color: #000; }
.mlist-row { border-bottom: 1px dashed #d0d0d0; color: #333; }
.mlist-row.unread { font-weight: 700; color: #000; background: #fffef0; }
.mlist-row .col-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mail-read { background: #fff; padding: 12px 18px; overflow: auto; color: #111; }
.read-head { font-size: 12px; line-height: 1.9; }
.read-line label { color: #666; }
.suspect {
  display: inline-block; min-width: 40px; color: #111;
  animation: suspectFlick 3.4s infinite steps(1);
}
@keyframes suspectFlick {
  0%, 88%, 100% { opacity: 1; }
  90% { opacity: .12; }
  92% { opacity: 1; }
  94% { opacity: .05; }
  96% { opacity: 1; }
}
.read-subject { font-weight: 700; }
.read-hr { border: 0; border-top: 1px solid #d8d8d8; margin: 10px 0 14px; }
.read-body { font-size: 13px; line-height: 2.05; color: #1a1a1a; font-family: var(--serif); }
.read-body p { margin-bottom: 12px; }
.read-dim { color: #777; font-size: 12px; }
.read-warn { color: #a33; font-family: var(--ui); font-size: 11.5px; line-height: 1.9; border-left: 2px solid #d9b0b0; padding-left: 10px; }
.dl-link-line { font-size: 15px; }
.fake-link {
  color: #0645ad; text-decoration: underline; cursor: pointer;
  font-family: var(--mono); padding: 1px 3px;
}
.fake-link:hover { background: #ffe9a8; color: #003; }

.mailapp-status {
  flex: 0 0 20px; height: 20px; background: var(--sys); border-top: 1px solid #fff;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 8px; font-size: 11px; color: #333;
}

/* ============================================================
   1. 下载页
   ============================================================ */
#screen-download { background: #0a0c10; }
.dl-page { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dl-topbar {
  height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 34px; border-bottom: 1px solid #171c22; background: #080a0d;
}
.dl-logo { font-family: var(--mono); font-size: 14px; letter-spacing: .28em; color: #8fa0ad; }
.dl-nav { font-size: 12px; color: #4d5860; letter-spacing: .18em; }
.dl-dead { color: #7a2c2c; }

.dl-wrap {
  flex: 1; display: grid; grid-template-columns: 380px 1fr;
  gap: 46px; padding: 46px 34px; max-width: 1180px; width: 100%; margin: 0 auto;
  align-content: center;
}
.dl-cover {
  position: relative; aspect-ratio: 3/4; max-height: 62vh;
  background: linear-gradient(160deg, #0d1a16, #05080700);
  border: 1px solid #1d3a2c;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 90px rgba(20,255,120,.05), 0 20px 60px rgba(0,0,0,.7);
}
.dl-cover-inner { text-align: center; z-index: 2; }
.dl-cover-title {
  font-family: var(--serif); font-size: 54px; line-height: 1.12; letter-spacing: .18em;
  color: #cfe8dd; text-shadow: 0 0 22px rgba(53,255,139,.35);
}
.dl-cover-sub { margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .42em; color: #45735f; }
.dl-cover-tag { margin-top: 20px; font-size: 11px; letter-spacing: .2em; color: #3d5148; }
.dl-cover-glitch {
  position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px);
  animation: coverShift 6s infinite steps(1);
}
@keyframes coverShift {
  0%, 92%, 100% { transform: none; opacity: .5; }
  93% { transform: translateX(-6px); opacity: .9; }
  95% { transform: translateX(4px) skewX(2deg); }
  97% { transform: none; }
}

.dl-info h1 {
  font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: .12em;
  color: #e6efeb; margin-bottom: 18px;
}
.dl-meta { display: flex; gap: 26px; font-size: 12px; color: #57636b; margin-bottom: 22px; flex-wrap: wrap; }
.dl-meta b { color: #9fb0a8; font-weight: 500; }
.dl-desc { font-size: 13.5px; line-height: 2.1; color: #7b8890; font-family: var(--serif); margin-bottom: 30px; }
.dl-dim { color: #4b5257; font-size: 12px; }

.dl-actions { display: flex; gap: 12px; margin-bottom: 22px; }
.btn-dl, .btn-run {
  font-family: var(--ui); font-size: 13px; letter-spacing: .22em;
  padding: 13px 40px; cursor: pointer;
  background: transparent; color: #58e39b;
  border: 1px solid #2a7a54; transition: all .25s;
}
.btn-dl:hover { background: rgba(53,255,139,.09); box-shadow: 0 0 26px rgba(53,255,139,.2); }
.btn-dl-ghost { color: #55636c; border-color: #262f36; padding: 13px 26px; letter-spacing: .12em; }
.btn-dl-ghost:hover { color: #8b98a1; background: none; box-shadow: none; }

.dl-progress { display: none; margin-bottom: 22px; max-width: 520px; }
.dl-progress.on { display: block; }
.dlp-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: #6f7d86; margin-bottom: 8px; }
.dlp-small { margin-top: 8px; margin-bottom: 0; color: #47525a; }
.dlp-bar { height: 3px; background: #161c22; overflow: hidden; }
.dlp-fill { height: 100%; width: 0; background: linear-gradient(90deg, #1e7d54, #35ff8b); box-shadow: 0 0 12px rgba(53,255,139,.6); transition: width .18s linear; }

.dl-run { display: none; align-items: center; gap: 18px; }
.dl-run.on { display: flex; animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.btn-run { color: #fff; border-color: #4a5a66; background: rgba(255,255,255,.04); }
.btn-run:hover { background: #e8eef2; color: #05070a; letter-spacing: .3em; }
.dl-run-hint { font-size: 11px; color: #4a5560; letter-spacing: .08em; }

.dl-footer {
  flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; color: #2f383e; letter-spacing: .1em; border-top: 1px solid #12161a;
}

/* ============================================================
   2. 记忆殿
   ============================================================ */
#screen-hall { background: #000; }
.hall { position: absolute; inset: 0; overflow: hidden; }
.code-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hall-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 34%, rgba(53,255,139,.22), transparent 70%);
  transition: background .6s;
}
.hall.hot .hall-glow {
  background: radial-gradient(ellipse 60% 45% at 50% 34%, rgba(255,43,43,.3), transparent 70%);
}
.hall-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.92) 100%);
}

.hall-inner {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-bottom: 6vh;
}
.hall-title {
  position: relative;
  font-family: var(--serif); font-size: clamp(38px, 6.2vw, 76px);
  font-weight: 500; letter-spacing: .3em; text-indent: .3em;
  color: #d8ffe8;
  text-shadow:
    0 0 12px rgba(53,255,139,.9),
    0 0 42px rgba(53,255,139,.45),
    0 0 90px rgba(53,255,139,.25);
  transition: color .25s, text-shadow .25s;
}
.hall-title::before, .hall-title::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  width: 100%; overflow: hidden; pointer-events: none;
}
.hall-title::before { color: #ff2b2b; opacity: 0; animation: tGlitch1 5.5s infinite; }
.hall-title::after { color: #2bb8ff; opacity: 0; animation: tGlitch2 7.3s infinite; }
@keyframes tGlitch1 {
  0%, 94%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
  95% { opacity: .8; clip-path: inset(18% 0 62% 0); transform: translateX(-5px); }
  96% { opacity: .6; clip-path: inset(54% 0 28% 0); transform: translateX(6px); }
  97% { opacity: 0; }
}
@keyframes tGlitch2 {
  0%, 96%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
  97% { opacity: .5; clip-path: inset(66% 0 12% 0); transform: translateX(4px); }
  98% { opacity: 0; }
}
.hall.hot .hall-title {
  color: #ffdada;
  text-shadow: 0 0 14px rgba(255,43,43,.95), 0 0 46px rgba(255,43,43,.5), 0 0 100px rgba(255,43,43,.28);
  animation: titleShake .16s infinite;
}
@keyframes titleShake {
  0% { transform: translate(0,0) skewX(0); }
  25% { transform: translate(-2px,1px) skewX(.6deg); }
  50% { transform: translate(2px,-1px) skewX(-.5deg); }
  75% { transform: translate(-1px,-1px) skewX(.3deg); }
  100% { transform: translate(1px,1px) skewX(0); }
}

.hall-sub {
  margin-top: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .62em;
  color: #2f6a4d; text-indent: .62em;
}
.hall.hot .hall-sub { color: #7a2a2a; }

.hall-letter { margin-top: 54px; text-align: center; }
.hall-line {
  font-family: var(--serif); font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .16em; line-height: 2.4; color: #8fb8a4;
  opacity: 0; transform: translateY(8px);
  transition: opacity .8s, transform .8s;
}
.hall-line.on { opacity: 1; transform: none; }
.hall-line .num { color: #eafff2; text-shadow: 0 0 16px rgba(53,255,139,.9); font-family: var(--mono); }
.hall-dim { color: #4a6157; font-size: 13px; letter-spacing: .12em; }
.hall.hot .hall-line { color: #b88585; }
.hall.hot .hall-dim { color: #6b3a3a; }

.hall-choices { margin-top: 62px; display: flex; gap: 40px; }
.hall-btn {
  position: relative;
  font-family: var(--serif); font-size: 16px; letter-spacing: .5em; text-indent: .5em;
  padding: 14px 46px; background: transparent; cursor: pointer;
  color: #7fd6a8; border: 1px solid rgba(53,255,139,.28);
  transition: all .3s;
}
.hall-btn:hover { color: #eaffef; border-color: rgba(53,255,139,.85); background: rgba(53,255,139,.07); box-shadow: 0 0 30px rgba(53,255,139,.18); }
.hall-btn-leave { color: #7c8a92; border-color: rgba(120,140,150,.2); }
.hall-btn-leave:hover { color: #cfd8dd; border-color: rgba(180,200,210,.6); background: rgba(255,255,255,.04); box-shadow: none; }

.hall-note {
  margin-top: 46px; max-width: 640px; text-align: center;
  font-family: var(--serif); font-size: 13px; line-height: 2.2; letter-spacing: .1em;
  color: #5e4a4a; opacity: 0; transition: opacity 1s;
}
.hall-note.on { opacity: 1; }

/* 抽搐 / 故障模式 */
.hall.seizure { animation: seizure .09s infinite; }
@keyframes seizure {
  0% { transform: translate(0,0) scale(1.001); filter: none; }
  20% { transform: translate(-7px,4px) scale(1.02) skewX(1.4deg); filter: hue-rotate(-20deg) contrast(1.4); }
  40% { transform: translate(9px,-6px) scale(.985) skewX(-1.8deg); filter: invert(.06) saturate(2); }
  60% { transform: translate(-4px,-9px) scale(1.03); filter: hue-rotate(18deg) brightness(1.25); }
  80% { transform: translate(6px,7px) scale(1.005) skewY(.8deg); filter: contrast(1.6) blur(.4px); }
  100% { transform: translate(0,0) scale(1.001); filter: none; }
}
.code-rain.fast { animation: rainFlick .07s infinite; }
@keyframes rainFlick { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

/* ============================================================
   覆盖层：Windows 弹窗 / 未响应 / 重启 / 成就 / 突脸
   ============================================================ */
.overlay {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; z-index: 8500;
}
.overlay.on { display: flex; }

/* 安全策略弹窗（一闪而过） */
#ov-alert { z-index: 9200; background: rgba(0,0,0,.42); }
.win-alert {
  width: 470px; background: var(--sys); color: #000;
  border: 2px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l);
  box-shadow: 0 16px 50px rgba(0,0,0,.8);
  font-size: 12px;
}
.wa-titlebar {
  height: 24px; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff;
  padding: 0 6px; font-weight: 700;
}
.wa-titlebar span:nth-child(2) { flex: 1; }
.wa-x {
  width: 18px; height: 16px; background: var(--sys); color: #000;
  display: grid; place-items: center; font-weight: 700;
  border: 1px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l);
}
.wa-body { display: flex; gap: 14px; padding: 20px 18px 14px; }
.wa-icon { font-size: 34px; line-height: 1; color: #c8a000; }
.wa-text b { display: block; margin-bottom: 8px; font-size: 13px; }
.wa-text p { line-height: 1.75; color: #222; }
.wa-sub { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: #666; }
.wa-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 0 16px 16px; }
.wa-btns button {
  font: inherit; font-size: 11.5px; padding: 5px 20px; background: var(--sys); color: #000;
  border: 2px solid; border-color: var(--sys-l) #404040 #404040 var(--sys-l); cursor: pointer;
}

/* 未响应 */
#ov-notresp { background: rgba(0,0,0,.72); backdrop-filter: grayscale(.85) contrast(.9); }
.win-alert.nr .wa-icon { color: #444; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 重启 */
#ov-reboot { background: #000; z-index: 9500; flex-direction: column; gap: 26px; }
.reboot { text-align: center; }
.rb-logo { font-size: 40px; color: #2b6b4a; margin-bottom: 30px; animation: pulseDim 2s infinite; }
@keyframes pulseDim { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.rb-text { font-family: var(--mono); font-size: 12.5px; letter-spacing: .2em; color: #6c7c85; margin-bottom: 18px; }
.rb-bar { width: 260px; height: 2px; background: #12181c; margin: 0 auto; overflow: hidden; }
.rb-fill { height: 100%; width: 0; background: #3e8f6b; transition: width .2s linear; }

/* 成就 */
#ov-ach { align-items: flex-start; justify-content: flex-end; padding: 40px 42px; pointer-events: none; }
.ach-card {
  display: flex; gap: 14px; align-items: center;
  background: rgba(12,18,16,.96); border: 1px solid #23543c;
  padding: 14px 22px 14px 16px; min-width: 300px;
  box-shadow: 0 0 40px rgba(53,255,139,.15), 0 10px 40px rgba(0,0,0,.8);
  transform: translateX(120%); transition: transform .6s cubic-bezier(.2,.9,.2,1);
}
#ov-ach.on .ach-card { transform: none; }
.ach-badge { font-size: 26px; }
.ach-label { font-size: 10px; letter-spacing: .3em; color: #4d7a63; margin-bottom: 4px; }
.ach-name { font-family: var(--serif); font-size: 17px; letter-spacing: .16em; color: #e7fff2; }
.ach-desc { font-size: 11px; color: #6f8579; margin-top: 4px; }

/* 突脸 / 花屏眼睛 */
#ov-scare { background: #000; z-index: 9400; flex-direction: column; }
.scare-box { position: absolute; inset: 0; display: grid; place-items: center; }
.scare-eyes {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.06), transparent 40%);
  position: relative;
}
.scare-eyes::before, .scare-eyes::after {
  content: ""; position: absolute; top: 44%; width: 46px; height: 16px;
  background: #d8e2e8; border-radius: 50%; filter: blur(1px);
  box-shadow: 0 0 24px rgba(210,230,240,.6);
}
.scare-eyes::before { left: calc(50% - 96px); }
.scare-eyes::after { left: calc(50% + 50px); }
.scare-text {
  position: absolute; bottom: 22%; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-size: 17px; letter-spacing: .3em;
  color: #7d8c94; opacity: 0;
}
.scare-text.on { opacity: 1; animation: flickIn .5s both; }
@keyframes flickIn { 0% { opacity: 0; } 40% { opacity: .9; } 60% { opacity: .2; } 100% { opacity: 1; } }

/* 花屏 */
#ov-break { z-index: 9100; background: #000; }
.break-screen { position: absolute; inset: 0; opacity: 0; }
.break-screen.on { animation: breakIn .18s steps(2) infinite; opacity: 1; }
@keyframes breakIn {
  0% { background: repeating-linear-gradient(0deg, rgba(255,255,255,.9) 0 3px, rgba(0,255,90,.6) 3px 6px, rgba(255,0,60,.5) 6px 9px); filter: blur(.6px); }
  50% { background: repeating-linear-gradient(90deg, rgba(0,0,0,.9) 0 12px, rgba(255,255,255,.5) 12px 14px); filter: blur(2px) hue-rotate(40deg); }
  100% { background: repeating-linear-gradient(0deg, rgba(255,0,60,.5) 0 4px, rgba(0,0,0,.8) 4px 10px); filter: contrast(2); }
}

/* 背包 */
.inventory {
  position: absolute; left: 22px; bottom: 22px; z-index: 8700;
  display: none; min-width: 120px;
  background: rgba(8,11,14,.9); border: 1px solid #22303a; padding: 10px 12px;
}
.inventory.on { display: block; }
.inv-title { font-family: var(--mono); font-size: 9px; letter-spacing: .34em; color: #3d4e58; margin-bottom: 8px; }
.inv-items { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-item {
  font-size: 11px; color: #9fb4c0; border: 1px solid #2a3d48; padding: 5px 10px;
  cursor: pointer; font-family: var(--mono); transition: all .2s;
}
.inv-item:hover { color: #e6f6ff; border-color: #4f7a8e; }
.inv-item.sel { color: #05070a; background: #9fd8ff; border-color: #9fd8ff; }
