#panel-perks {
  color: #d0a878;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: left;
}

.te-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a2a18;
}
.te-lbl  { color: #d8b488; }
.te-val  {
  color: #f0d070; font-size: 20px; letter-spacing: 4px; font-weight: bold;
  text-shadow: 0 0 8px rgba(240, 200, 100, 0.4);
}
.te-meta { color: #b89060; font-size: 10px; letter-spacing: 2px; margin-left: auto; }

.te-perks { display: flex; flex-direction: column; gap: 6px; }
.te-perk  {
  display: grid;
  grid-template-columns: 1fr auto auto 64px;
  align-items: center;
  gap: 14px;
  padding: 6px 8px;
}

.tp-name  { color: #f0cc98; }
.tp-stack { color: #c0a070; letter-spacing: 1px; font-size: 11px; }
.tp-cost  { color: #f0c070; letter-spacing: 2px; font-size: 11px; min-width: 30px; text-align: right; }

.tp-buy {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 4px 10px;
  background: #2a1d0f;
  color: #f0c070;
  border: 1px solid #5a4020;
  cursor: pointer;
}
.tp-buy:hover:not([disabled]) {
  background: #3a2814;
  color: #fff;
  border-color: #8a6030;
}
.tp-buy[disabled] {
  color: #4a3818;
  border-color: #2a1d0f;
  cursor: default;
}

#mutator-badge {
  position: fixed;
  top: 14px;
  left: 168px;
  padding: 6px 12px;
  background: linear-gradient(180deg, #1a0d05, #0a0500);
  border: 1px solid #8aa0c0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
  z-index: 4;
  user-select: none;
  font-size: 11px;
  letter-spacing: 3px;
}
.mb-name { font-weight: bold; letter-spacing: 4px; }
.mb-sub  { font-size: 9px; letter-spacing: 2px; color: #7a8090; margin-top: 2px; }

#panel-achievements {
  color: #d0a878;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-align: left;
}
.ach-head {
  color: #d8b488;
  letter-spacing: 3px;
  font-size: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a2a18;
  margin-bottom: 10px;
}
.ach-head b {
  color: #f0d070; font-size: 14px; margin: 0 4px;
  text-shadow: 0 0 8px rgba(240, 200, 100, 0.4);
}
.ach-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 248px; overflow-y: auto; padding-right: 4px;
}
.ach-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  padding: 4px 6px;
  font-size: 10px;
  letter-spacing: 1.5px;
  border-left: 2px solid #2a1d0f;
  color: #a88a5e;
  background: rgba(20, 12, 4, 0.5);
}
.ach-row.on { color: #f0d0a0; border-left-color: #f0c060; background: rgba(60, 40, 16, 0.45); }
.ach-row.on .ach-name { color: #f0c060; }
.ach-name { font-weight: bold; }
.ach-desc { color: #c8b290; font-size: 9px; }

.title-btn.active {
  background: linear-gradient(180deg, #1a3a26, #08160e);
  color: #80ff9c; border-color: #3a8a48;
  text-shadow: 0 0 8px rgba(128, 240, 156, 0.4);
}
.title-btn.active:hover {
  background: linear-gradient(180deg, #224d30, #0c2014);
  color: #b8ffc8; border-color: #5aa860;
}

@keyframes pulse-hint-glow {
  0%, 100% { box-shadow: 0 2px 0 rgba(0,0,0,0.45), 0 0 0 rgba(255, 192, 96, 0); }
  50%      { box-shadow: 0 2px 0 rgba(0,0,0,0.45), 0 0 12px rgba(255, 192, 96, 0.65); }
}
.title-btn.pulse-hint {
  border-color: #c08040;
  animation: pulse-hint-glow 1.4s ease-in-out infinite;
}
.title-btn.pulse-hint:hover { animation: none; }

/* main-screen nav: HELP · PERKS · TERMINAL (.title-begin layout in title.css) */
.title-nav { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.title-nav .title-btn { flex: 0 0 132px; }
/* TERMINAL drawer holds the secondary buttons + run modifiers */
.title-drawer { max-width: 600px; }
.drawer-h { font-size: 11px; letter-spacing: 5px; color: #f0c070; margin-bottom: 14px; }
.title-drawer .title-actions { grid-template-columns: repeat(4, 128px); margin-bottom: 16px; }
.title-modifiers { margin: 4px auto 0; max-width: 560px; text-align: center; }
.title-mod-label { font-size: 9px; letter-spacing: 4px; color: #c89860; margin-bottom: 8px; }
.title-mod-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.title-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; white-space: nowrap;
  padding: 6px 12px; cursor: pointer; border-radius: 12px;
  background: rgba(28, 18, 8, 0.7); color: #e0bc88; border: 1px solid #6a4a24;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.title-toggle:disabled { opacity: 0.45; cursor: default; }
.title-toggle svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.title-toggle:hover:not(:disabled) { color: #d0a878; border-color: #5a3a18; background: rgba(40, 24, 8, 0.7); }
.title-toggle.active { background: rgba(20, 60, 36, 0.6); color: #80ff9c; border-color: #3a8a48; text-shadow: 0 0 6px rgba(128, 240, 156, 0.35); }
.title-toggle.active:hover { color: #b8ffc8; border-color: #5aa860; }

#panel-skins { color: #d0a878; font-size: 11px; letter-spacing: 2px; text-align: left; }
.sk-head { color: #d8b488; padding-bottom: 8px; border-bottom: 1px solid #3a2a18; margin-bottom: 10px; letter-spacing: 3px; }
.sk-head b { color: #f0d070; margin: 0 4px; font-weight: normal; }
.sk-cat { color: #b08850; letter-spacing: 3px; font-size: 10px; margin: 8px 0 6px; }
.sk-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sk-card {
  padding: 8px 6px;
  border: 1px solid #3a2a18;
  background: rgba(20, 12, 4, 0.55);
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.sk-card.canbuy { border-color: #6a4828; }
.sk-card.owned  { color: #d0a878; }
.sk-card.active { background: rgba(60, 40, 16, 0.6); border-color: #f0c060; color: #f0c060; }
.sk-card:hover  { background: rgba(40, 24, 8, 0.7); border-color: #8a5028; color: #f0c060; }
.sk-name { font-weight: bold; letter-spacing: 3px; margin-bottom: 4px; }
.sk-act  { font-size: 9px; letter-spacing: 2px; color: #c8a878; }
.sk-card.active .sk-act { color: #f0c060; }

body.skin-hud-cyan    .hud-val { color: #80c8f0; text-shadow: 0 0 6px rgba(128, 200, 240, 0.45); }
body.skin-hud-cyan    #hud     { border-color: #2a4060; }
body.skin-hud-cyan    .hud-lbl { color: #5a7088; }
body.skin-hud-crimson .hud-val { color: #f08070; text-shadow: 0 0 6px rgba(240, 128, 112, 0.45); }
body.skin-hud-crimson #hud     { border-color: #602020; }
body.skin-hud-crimson .hud-lbl { color: #885050; }

.remote-board {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 360px; padding: 14px 18px; margin-top: 10px;
  border: 1px solid #2a3a4a;
  background: rgba(2, 6, 8, 0.72);
  font-size: 12px; letter-spacing: 3px; color: #80a8b8;
}
.remote-board .board-title { color: #80d8ec; font-size: 11px; letter-spacing: 5px; margin-bottom: 8px; }
.remote-board .row { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; padding: 3px 4px; }
.remote-board .row.you { color: #80f8ff; }
.remote-board .row .rank { color: #3a5060; text-align: right; }
.remote-board .empty { color: #3a5060; font-style: italic; padding: 4px; }

.help-h {
  color: #f0c060; font-size: 10px; letter-spacing: 5px;
  margin: 0 auto 10px; padding-bottom: 4px;
  border-bottom: 1px solid #3a2812;
  max-width: 360px; text-align: left;
}
.help-h + .title-ctrl { margin-bottom: 18px; }
