@font-face {
  font-family: 'Press Start 2P';
  src: url('fonts/PressStart2P.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('fonts/Orbitron.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Syncopate';
  src: url('fonts/Syncopate.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TIMELOCK BOARD â€” pixel art UI
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cyan: #00ff88;
  /* Neon Green Traces */
  --cyan-dim: rgba(0, 255, 136, 0.4);
  --cyan-glow: rgba(0, 255, 136, 0.2);
  --red: #ff3c55;
  /* Virus Red */
  --red-dim: rgba(255, 60, 85, 0.4);
  --red-glow: rgba(255, 60, 85, 0.2);
  --yellow: #ffd900;
  /* Gold Pins */
  --orange: #ffaa00;
  /* Voltage High */
  --green: #00ff88;
  --melee: #ff0066;
  --bg: #03140a;
  /* Dark Emerald Substrate */
  --bg2: #051d10;
  --bg3: #072615;
  --border: #0d4d2a;
  --border-hi: #1a6d3f;
  --text: #cceecc;
  --dim: #558866;
  --font: 'Press Start 2P', monospace;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  user-select: none;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(5, 5, 16, 0.8) 100%),
    url('./menu_bg.png') no-repeat center center;
  background-size: cover;
}

/* Pseudo-element for global CRT scanline effect */
#app::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.22;
}


.screen {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MENU
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 60px;
  background: rgba(12, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(30, 30, 68, 0.7);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HUB ROOM SCREEN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#screen-hub {
  overflow-y: auto;
}

.hub-room {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 32px 20px 40px;
  width: 100%;
  max-width: 920px;
  min-height: 100%;
}

.hub-header {
  text-align: center;
}

.hub-title {
  font-size: 30px;
  color: var(--orange);
  text-shadow: 0 0 16px var(--orange), 3px 3px 0 rgba(0, 0, 0, 0.8);
  letter-spacing: 6px;
  animation: hubTitlePulse 3s ease-in-out infinite;
}

@keyframes hubTitlePulse {
  0%, 100% { text-shadow: 0 0 16px var(--orange), 3px 3px 0 rgba(0,0,0,0.8); }
  50%       { text-shadow: 0 0 30px var(--orange), 0 0 50px rgba(255,102,0,0.35), 3px 3px 0 rgba(0,0,0,0.8); }
}

.hub-subtitle {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 3px;
  margin-top: 8px;
}

.hub-stats-bar {
  display: flex;
  background: rgba(12, 12, 30, 0.85);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.hub-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-right: 1px solid var(--border);
}

.hub-stat-item:last-child {
  border-right: none;
}

.hub-stat-label {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 1px;
  white-space: nowrap;
}

.hub-stat-val {
  font-size: 22px;
  letter-spacing: 2px;
}

.hub-stat-keys .hub-stat-val {
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.hub-stat-keys .hub-stat-val.dim {
  color: #ff3333;
  text-shadow: 0 0 8px #ff3333;
}

.hub-key-timer-stat {
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 1px;
  white-space: nowrap;
}

.hub-stat-val.yellow {
  color: var(--yellow);
  text-shadow: 0 0 8px var(--yellow);
}

.hub-stat-val.cyan {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.hub-stat-val.green {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}

.hub-main {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.hub-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 860px;
  padding-top: 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-vs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-vs-label {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 2px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HUB / UPGRADE MODALS (legacy modal classes kept)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hub-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Darken game background */
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.blink {
  animation: blinkCursor 1s infinite alternate;
}

@keyframes blinkCursor {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.hub-stats {
  display: flex;
  gap: 20px;
}

.stat-box {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-box span[id] {
  color: var(--yellow);
  text-shadow: 0 0 5px var(--yellow);
  font-size: 18px;
}

.hub-panel {
  width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  background: rgba(10, 10, 20, 0.95);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 255, 242, 0.2);
  display: flex;
  flex-direction: column;
}

.panel-header {
  background: var(--border);
  color: var(--cyan);
  padding: 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
}

.runkey-block {
  margin: 12px 15px 0;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #ff880066;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.runkey-block-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
}

.runkey-block-pips {
  font-size: 24px;
  letter-spacing: 8px;
  color: #ff2233;
  text-shadow: 0 0 10px #ff2233;
}

.runkey-block-pips.empty {
  color: #ff2233;
  text-shadow: 0 0 10px #ff2233;
}

.pips-locked {
  color: rgba(255,255,255,0.15);
  text-shadow: none;
  letter-spacing: 8px;
}

.runkey-block-timer {
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffcc00;
}

.runkey-block-hint {
  font-size: 7px;
  letter-spacing: 1px;
  color: #555;
  text-align: center;
}

.upgrades-list,
.mission-list {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  flex: 1;
}

.upgrade-card,
.hub-runkey-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid #ff880033;
  padding: 7px 12px;
  margin-bottom: 10px;
  font-family: 'VT323', monospace;
  font-size: 16px;
}
.hub-runkey-icon { font-size: 16px; }
.hub-runkey-label { color: #664422; letter-spacing: 1px; }
.hub-runkey-pips { color: #ff8800; letter-spacing: 4px; font-size: 18px; }
.hub-runkey-pips.empty { color: #3a1800; }
.hub-runkey-timer { color: #ff440088; font-size: 13px; margin-left: auto; letter-spacing: 1px; }

.mission-card {
  position: relative;
  overflow: hidden;
  background: rgba(12, 12, 30, 0.6);
  border: 1px solid var(--dim);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.upgrade-card:hover,
.mission-card:hover:not(.locked) {
  border-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.upg-info,
.mis-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upg-name,
.mis-name {
  color: #fff;
  font-size: 10px;
}

.upg-desc,
.mis-desc {
  color: var(--dim);
  font-size: 8px;
}

.upg-lvl {
  color: var(--cyan);
  font-size: 8px;
}

.btn-buy,
.btn-deploy {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 rgba(0, 255, 136, 0);
  transition: all 0.2s;
}

.btn-buy:hover,
.btn-deploy:hover {
  background: var(--cyan-glow);
  box-shadow: inset 0 0 10px var(--cyan);
}

.mission-card.locked {
  opacity: 0.4;
  pointer-events: none;
  border-color: #333;
}

.mission-card.locked .mis-name {
  color: #666;
}

.mission-card.locked .btn-deploy {
  border-color: #666;
  color: #666;
}

/* â”€â”€ Volt Card (redesigned upgrade card) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.volt-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-color: #0d3322;
  background: rgba(0, 8, 4, 0.92);
}

.volt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #0d3322;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-left 0.15s;
  border-left: 2px solid transparent;
  padding-left: 12px;
}
.volt-header:hover {
  background: rgba(0,255,136,0.10);
  border-left: 2px solid var(--cyan);
}
@keyframes arrow-breathe {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(2px);
              text-shadow: 0 0 8px var(--yellow); }
}
.upg-arrow {
  font-size: 9px;
  color: var(--yellow);
  display: inline-block;
  margin: 0 6px;
  animation: arrow-breathe 1.8s ease-in-out infinite;
  transition: transform 0.2s;
}
.upgrade-card.collapsed .upg-arrow {
  transform: rotate(-90deg);
  animation: arrow-breathe 1.8s ease-in-out infinite;
}
.upgrade-card.collapsed .volt-header {
  border-bottom: none;
}
.upgrade-card.collapsed .volt-stats,
.upgrade-card.collapsed .btn-volt-install,
.upgrade-card.collapsed .upg-status,
.upgrade-card.collapsed .upg-scan-bar {
  display: none;
}

.volt-name {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,255,136,0.6);
}

.volt-lvl-badge {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.4);
  color: var(--cyan);
  font-size: 8px;
  padding: 3px 9px;
  letter-spacing: 1px;
}

.volt-stats {
  display: flex;
  flex-direction: column;
  padding: 0 14px;
}

.volt-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.volt-stat-lbl {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 1px;
}

.volt-stat-val {
  font-size: 9px;
  color: #ddd;
}

.btn-volt-install {
  margin: 12px 14px 0;
  padding: 11px 0;
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.5);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.btn-volt-install:hover {
  background: rgba(0,255,136,0.18);
  box-shadow: 0 0 18px rgba(0,255,136,0.25);
}

.btn-volt-install:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* â”€â”€ Can't-afford dimmed state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* NOTE: cost display uses inline styles from renderCostIcons â€” stays colorful */
.upgrade-card.upg-locked {
  border-color: #161620 !important;
  background: rgba(4, 4, 8, 0.6) !important;
}
.upgrade-card.upg-locked .volt-header {
  border-bottom-color: #161620 !important;
}
.upgrade-card.upg-locked .volt-header:hover {
  background: transparent !important;
  border-left-color: #222 !important;
}
.upgrade-card.upg-locked .volt-name {
  color: #ffffff !important;
  text-shadow:
    -1px -1px 0 #cc0000,
     1px -1px 0 #cc0000,
    -1px  1px 0 #cc0000,
     1px  1px 0 #cc0000,
    0 0 8px #ff224455 !important;
}
.upgrade-card.upg-locked .volt-name svg rect,
.upgrade-card.upg-locked .volt-name svg circle {
  fill: #cc2222 !important;
}
.upgrade-card.upg-locked .upg-arrow {
  color: #222230 !important;
  animation: none !important;
}
.upgrade-card.upg-locked .volt-lvl-badge {
  background: transparent !important;
  border-color: #161620 !important;
  color: #252535 !important;
}
.upgrade-card.upg-locked .volt-stat-lbl {
  color: #181828 !important;
}
.upgrade-card.upg-locked .volt-stat-val {
  color: #252535 !important;
}
.upgrade-card.upg-locked .btn-volt-install {
  color: #00ff88 !important;
  text-shadow:
    -1px -1px 0 #cc0000,
     1px -1px 0 #cc0000,
    -1px  1px 0 #cc0000,
     1px  1px 0 #cc0000,
    0 0 8px #ff224455 !important;
  border-color: #cc0000 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
.upgrade-card.upg-locked .btn-volt-install:hover {
  background: transparent !important;
  box-shadow: none !important;
}

.volt-card .upg-status {
  padding: 6px 14px 10px;
  min-height: 20px;
}

/* â”€â”€ Upgrade attempt animation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.upg-scan-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--cyan);
  width: 0;
  pointer-events: none;
  box-shadow: 0 0 6px var(--cyan);
}

.upgrade-card.upg-scanning .upg-scan-bar {
  animation: upgScan 1.3s linear forwards;
}

@keyframes upgScan {
  from { width: 0; }
  to   { width: 100%; }
}

.upgrade-card.upg-success {
  animation: upgFlashGreen 1.1s ease-out;
}

.upgrade-card.upg-fail {
  animation: upgFlashRed 1.1s ease-out;
}

@keyframes upgFlashGreen {
  0%   { border-color: var(--dim);  background: rgba(12,12,30,0.6); }
  20%  { border-color: var(--cyan); background: rgba(0,255,136,0.18); box-shadow: 0 0 20px rgba(0,255,136,0.35); }
  60%  { border-color: var(--cyan); background: rgba(0,255,136,0.10); box-shadow: 0 0 12px rgba(0,255,136,0.2); }
  100% { border-color: var(--dim);  background: rgba(12,12,30,0.6); }
}

@keyframes upgFlashRed {
  0%   { border-color: var(--dim); background: rgba(12,12,30,0.6); }
  20%  { border-color: var(--red); background: rgba(255,60,85,0.15); box-shadow: 0 0 20px rgba(255,60,85,0.3); }
  60%  { border-color: var(--red); background: rgba(255,60,85,0.08); box-shadow: 0 0 10px rgba(255,60,85,0.15); }
  100% { border-color: var(--dim); background: rgba(12,12,30,0.6); }
}

@keyframes upgParticle {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* status message inside upgrade card */
.upg-status {
  font-size: 7px;
  min-height: 10px;
  letter-spacing: 1px;
}

.upg-status.scanning { color: var(--cyan); }
.upg-status.ok       { color: #00ff88; text-shadow: 0 0 6px #00ff88; }
.upg-status.err      { color: var(--red); text-shadow: 0 0 6px var(--red); }

.btn-buy:disabled,
.btn-deploy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-back {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--red);
  padding: 15px;
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--red-glow);
}


.title-block {
  text-align: center;
  line-height: 1.2;
}

.title-main {
  font-size: 52px;
  color: var(--cyan);
  letter-spacing: 5px;
  text-shadow: 0 0 8px var(--cyan), 0 0 18px var(--cyan-dim), 3px 3px 0 rgba(0, 0, 0, 0.9);
  animation: titleGlitch 6s step-end infinite;
}

.title-sub {
  font-size: 10px;
  letter-spacing: 12px;
  color: #fff;
  opacity: 0.7;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px var(--cyan-glow);
  }

  to {
    text-shadow: 0 0 30px rgba(0, 255, 242, 0.4), 0 0 60px var(--cyan-glow);
  }
}

@keyframes titleGlitch {

  0%,
  88%,
  91%,
  100% {
    opacity: 1;
    transform: translate(0);
    text-shadow: 0 0 8px var(--cyan), 0 0 24px var(--cyan-dim), 3px 3px 0 rgba(0, 0, 0, 0.9);
  }

  89% {
    opacity: 0.8;
    transform: translate(-3px, 2px);
    text-shadow: -2px 0 var(--red), 2px 0 var(--yellow), 3px 3px 0 rgba(0, 0, 0, 0.9);
  }

  90% {
    opacity: 0.4;
    transform: translate(2px, -1px);
    text-shadow: -2px 0 var(--cyan), 2px 0 var(--red), 3px 3px 0 rgba(0, 0, 0, 0.9);
  }
}

.tagline {
  text-align: center;
}

.tagline p {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  line-height: 2.2;
}

.tagline p.dim {
  font-size: 7px;
  margin-top: 2px;
  opacity: 0.65;
}

/* Controls card */
.controls-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 16px 20px;
  background: rgba(12, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(30, 30, 68, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.ctrl-player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.ctrl-player.right {
  align-items: flex-end;
}

.ctrl-label {
  font-size: 8px;
  letter-spacing: 1px;
}

.ctrl-label.cyan {
  color: var(--cyan);
}

.ctrl-label.red {
  color: var(--red);
}

.ctrl-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 7px;
  color: var(--dim);
  line-height: 1.8;
}

.ctrl-player.right .ctrl-row {
  flex-direction: row-reverse;
}

kbd {
  padding: 3px 6px;
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 0;
  box-shadow: 2px 2px 0 #000;
}

.ctrl-vs {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dim);
}

/* Mechanics card */
.mechanics-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  padding: 14px 22px;
  background: rgba(12, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(30, 30, 68, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.mech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 7px;
  color: var(--dim);
  line-height: 1.8;
}

.mech-icon {
  color: var(--cyan);
  font-size: 11px;
  min-width: 14px;
  text-align: center;
}

/* â”€â”€ Buttons â”€â”€ */
.btn-primary {
  padding: 12px 36px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.06s, box-shadow 0.06s, border-color 0.2s, color 0.2s, text-shadow 0.2s;
  box-shadow: 4px 4px 0 #000;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.4s;
  z-index: -1;
}

.btn-primary:hover {
  border-color: #fff;
  color: #fff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
  text-shadow: 0 0 10px #fff;
}

.btn-primary.pulse {
  animation: btnBlink 2.2s step-end infinite;
}

@keyframes btnBlink {

  0%,
  78%,
  100% {
    border-color: var(--cyan);
    color: var(--cyan);
  }

  79%,
  99% {
    border-color: var(--cyan-dim);
    color: var(--cyan-dim);
  }
}

.btn-secondary {
  padding: 12px 36px;
  background: var(--bg);
  border: 2px solid var(--border-hi);
  color: var(--dim);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.06s, box-shadow 0.06s, border-color 0.2s, color 0.2s, text-shadow 0.2s, background 0.2s;
  box-shadow: 4px 4px 0 #000;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(204, 204, 238, 0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.4s;
  z-index: -1;
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
  background: rgba(204, 204, 238, 0.05);
  text-shadow: 0 0 8px var(--text);
}

.btn-secondary:hover::before {
  left: 200%;
}

.mode-select {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-adventure {
  padding: 12px 36px;
  background: var(--bg);
  border: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.06s, box-shadow 0.06s, text-shadow 0.2s, background 0.2s;
  box-shadow: 4px 4px 0 #000;
  width: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-adventure::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 102, 0, 0.3), transparent);
  transform: skewX(-20deg);
  transition: 0.4s;
  z-index: -1;
}

.btn-adventure:hover {
  background: rgba(255, 102, 0, 0.1);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
  text-shadow: 0 0 10px var(--orange);
}

.btn-adventure:hover::before {
  left: 200%;
}

.btn-adventure.pulse {
  animation: advBlink 2.2s step-end infinite;
}

@keyframes advBlink {

  0%,
  78%,
  100% {
    border-color: var(--orange);
    color: var(--orange);
  }

  79%,
  99% {
    border-color: rgba(255, 102, 0, 0.35);
    color: rgba(255, 102, 0, 0.35);
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GAME SCREEN
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#screen-game {
  /* remap --cyan → amber for game screen */
  --cyan:      #c8973a;
  --cyan-dim:  rgba(190, 130, 20, 0.45);
  --cyan-glow: rgba(180, 115, 15, 0.22);
  --text:      #c4aa82;
  --dim:       #7a6040;

  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.game-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Side panels */
.side-panel {
  width: 154px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(12, 12, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(30, 30, 68, 0.7);
  align-self: stretch;
  transition: opacity 0.4s, filter 0.4s, border-color 0.4s, box-shadow 0.4s;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
}

.panel-inactive {
  opacity: 0.75;
  filter: saturate(0.45);
}

.panel-active-p1 {
  animation: panelGlowP1 1.8s ease-in-out infinite;
}

.panel-active-p2 {
  animation: panelGlowP2 1.8s ease-in-out infinite;
}

@keyframes panelGlowP1 {

  0%,
  100% {
    box-shadow: inset 0 0 10px rgba(200, 140, 20, 0.04);
    border-color: rgba(190, 120, 15, 0.30);
  }

  50% {
    box-shadow: inset 0 0 22px rgba(200, 140, 20, 0.12);
    border-color: rgba(210, 150, 25, 0.65);
  }
}

@keyframes panelGlowP2 {

  0%,
  100% {
    box-shadow: inset 0 0 10px rgba(255, 34, 68, 0.03);
    border-color: rgba(255, 34, 68, 0.22);
  }

  50% {
    box-shadow: inset 0 0 22px rgba(255, 34, 68, 0.09);
    border-color: rgba(255, 34, 68, 0.55);
  }
}

.left-panel {
  border-right: none;
}

.right-panel {
  border-left: none;
}

.adv-mode #panel-p2 {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* Adventure mode styling for side panels */
.adv-mode .side-panel {
  background: rgba(14, 9, 3, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(160, 90, 12, 0.35) !important;
  border-radius: 6px;
  box-shadow: inset 0 0 25px rgba(160, 90, 10, 0.07), 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 10px rgba(180, 110, 10, 0.18) !important;
  position: relative;
}

/* Sci-fi top and bottom glowing edges for UI */
.adv-mode .side-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 8px var(--cyan);
}

.adv-mode .side-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Adventure mode â€” remove ALL old PvP frames/borders from center content */
.adv-mode .canvas-wrap,
.adv-mode .bottom-bar,
.adv-mode .energy-hud,
.adv-mode .energy-hud.nrg-danger {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  outline: none !important;
}

/* Map scan widget â€” bottom of left panel */
#panel-runkeys {
  display: none;
}
.adv-mode #panel-runkeys {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 8px 10px;
  background: rgba(255, 136, 0, 0.07);
  border-top: 1px solid #ff880044;
  border-bottom: 1px solid #ff880022;
}


.prk-label {
  font-size: 6px;
  letter-spacing: 2px;
  color: #888;
}

.prk-pips {
  font-size: 18px;
  letter-spacing: 7px;
  color: #ff2233;
  text-shadow: 0 0 8px #ff2233;
}

.prk-pips.empty {
  color: #ff2233;
  text-shadow: 0 0 8px #ff2233;
}

.prk-timer {
  font-size: 8px;
  letter-spacing: 1px;
  color: #ffcc00;
  white-space: nowrap;
  margin-top: 3px;
}

#map-scan-widget {
  display: none;
}
.adv-mode #map-scan-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding: 10px 8px 10px;
  background: rgba(0, 14, 8, 0.6);
  border-top: 1px solid #0d3322;
  position: relative;
  overflow: hidden;
}
.adv-mode #map-scan-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffaa44, transparent);
}

/* Top row: title + badge */
.msw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.msw-title {
  font-size: 7px;
  color: #00aa77;
  letter-spacing: 1px;
}
.msw-badge {
  font-size: 6px;
  color: #1a4433;
  letter-spacing: 0.5px;
  padding: 2px 4px;
  border: 1px solid #0d2a1a;
  transition: color 0.3s, border-color 0.3s;
}
.msw-badge.complete {
  color: #00ffaa;
  border-color: #00ffaa55;
  text-shadow: 0 0 6px #00ffaa88;
}

/* Big percentage */
.msw-pct-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-bottom: 8px;
  line-height: 1;
}
.msw-pct {
  font-size: 28px;
  color: #00cc88;
  line-height: 1;
  transition: color 0.3s;
  letter-spacing: -1px;
}
.msw-pct-sign {
  font-size: 11px;
  color: #00aa77;
  align-self: flex-start;
  margin-top: 4px;
}
.msw-pct.complete,
.msw-pct-sign.complete {
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc66;
}

/* Progress bar */
.msw-bar-track {
  width: 100%;
  height: 4px;
  background: #040e0a;
  border: 1px solid #0a2018;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 10px;
}
.msw-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #005533, #00cc88);
  transition: width 0.3s ease;
  position: relative;
}
.msw-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 6px;
  background: #00ffaa;
  opacity: 0.8;
  filter: blur(2px);
}
.msw-bar-fill.complete {
  background: linear-gradient(90deg, #00aa66, #00ffcc);
}
.msw-bar-fill.complete::after {
  display: none;
}

/* Counts row */
.msw-counts {
  display: flex;
  align-items: center;
  gap: 0;
}
.msw-count-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.msw-count-val {
  font-size: 10px;
  color: #00cc88;
  line-height: 1;
}
.msw-count-val.msw-dim {
  color: #1a4433;
}
.msw-count-lbl {
  font-size: 6px;
  color: #0d3322;
  letter-spacing: 0.5px;
}
.msw-divider {
  width: 1px;
  height: 22px;
  background: #0d2a1a;
  flex-shrink: 0;
}

/* Unit list */
.unit-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.unit-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 5px;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: opacity 0.2s;
}

.unit-row.dead {
  opacity: 0.18;
}

.u-sel {
  width: 6px;
  height: 6px;
  border: 1px solid var(--dim);
  flex-shrink: 0;
  transition: background 0.1s, border-color 0.1s, box-shadow 0.1s;
}

.u-sel.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 5px var(--cyan);
}

.u-num {
  font-size: 8px;
  min-width: 10px;
  flex-shrink: 0;
}

.u-num.cyan {
  color: var(--cyan);
}

.u-num.red {
  color: var(--red);
}

.u-hp-wrap {
  flex: 1;
  min-width: 0;
}

.u-hp-wrap .hp-bar {
  width: 100%;
  height: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
}

.u-ammo {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
  max-width: 32px;
  flex-shrink: 0;
}

.u-ammo .ammo-dot {
  width: 4px;
  height: 4px;
}

.panel-name {
  font-size: 9px;
  letter-spacing: 1px;
}

.panel-name.cyan {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-dim);
}

.panel-name.red {
  color: var(--red);
  text-shadow: 0 0 8px var(--red-dim);
}

.panel-controls {
  font-size: 6px;
  letter-spacing: 0;
  color: var(--dim);
  line-height: 2;
}

/* HP */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
}

.hp-bar-wrap {
  display: flex;
  align-items: center;
}

.hp-bar {
  width: 100%;
  height: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  width: 100%;
  transition: width 0.15s steps(5);
}

.p1-fill {
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}

.p2-fill {
  background: var(--red);
  box-shadow: 0 0 4px var(--red);
}

.hp-value {
  font-size: 18px;
  color: var(--text);
}

/* Ammo dots */
.ammo-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ammo-dot {
  width: 8px;
  height: 8px;
  transition: background 0.1s;
}

.ammo-dot.p1-dot {
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}

.ammo-dot.p2-dot {
  background: var(--red);
  box-shadow: 0 0 4px var(--red);
}

.ammo-dot.empty {
  background: var(--bg3);
  border: 1px solid var(--border);
}

/* Action badge */
.action-badge {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 3px 0;
  transition: color 0.1s, text-shadow 0.1s;
}

/* inventory new-item dot */
#btn-inventory { position: relative; }
#inv-new-dot {
  display: none;
  position: absolute;
  top: 6px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3c55;
  box-shadow: 0 0 6px rgba(255,60,85,0.9), 0 0 12px rgba(255,60,85,0.5);
  animation: invDotPulse 1.4s ease-in-out infinite;
}
#inv-new-dot.visible { display: block; }
@keyframes invDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* new item highlight in inventory grid */
.inv-slot.inv-slot-new {
  animation: invSlotNew 1.8s ease-in-out infinite;
}
@keyframes invSlotNew {
  0%, 100% { box-shadow: inset 0 0 16px var(--slot-col, #ff3c5522), 0 0 6px var(--slot-col, #ff3c5544), 0 0 0 1px #ff3c55; }
  50%       { box-shadow: inset 0 0 24px var(--slot-col, #ff3c5244), 0 0 14px rgba(255,60,85,0.5), 0 0 0 1px #ff6677; }
}

#kills-badge {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 8px 10px;
  border: 1px solid rgba(31, 111, 70, 0.34);
  background: rgba(5, 14, 12, 0.7);
}
#kills-badge span {
  color: #ff3c55;
  text-shadow: 0 0 6px rgba(255,60,85,0.5);
  font-size: 9px;
  margin-left: 4px;
}

.action-badge.queued-p1 {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.action-badge.queued-p2 {
  color: var(--red);
  text-shadow: 0 0 8px var(--red);
}

.action-badge.ai-thinking {
  color: var(--red);
  animation: thinkBlink 0.65s step-end infinite;
}

@keyframes thinkBlink {

  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 0.35;
  }
}

/* Canvas */
.canvas-wrap {
  position: relative;
  line-height: 0;
  border: 2px solid var(--border);
  padding: 4px;
  transform: translateY(5px);
  overflow: hidden;
}

#canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: crosshair;
  transform: scale(1.20);
  transform-origin: center center;
}

.canvas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--text);
  text-shadow: 0 0 10px rgba(200, 200, 232, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
  font-family: var(--font);
}

.canvas-overlay.visible {
  opacity: 1;
}

/* Bottom bar */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.time-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label-text {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
}

.time-status {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  transition: color 0.15s, text-shadow 0.15s;
}

.time-status.active {
  color: var(--yellow);
  text-shadow: 0 0 8px var(--yellow);
  animation: timeBlink 0.55s step-end infinite;
}

@keyframes timeBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.tick-display {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
}

.btn-esc {
  padding: 5px 10px;
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  color: var(--dim);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
  box-shadow: 2px 2px 0 #000;
}

.btn-esc:hover {
  color: var(--text);
  border-color: var(--dim);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SKILL BAR
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.skill-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 2px 0;
}

.skill-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 3px 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: border-color 0.1s, background 0.1s;
  min-height: 54px;
}

.skill-slot:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Radial inner glow on active */
.skill-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, currentColor, transparent 70%);
  opacity: 0;
  transition: opacity 0.1s;
  pointer-events: none;
}

.skill-slot.sk-active::before {
  opacity: 0.11;
}

/* Top accent strip */
.skill-slot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.1s;
}

.skill-slot.sk-active::after {
  opacity: 1;
}

.sk-icon {
  width: 22px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.1s;
  line-height: 0;
  filter: drop-shadow(0 0 3px currentColor);
}

.skill-slot.sk-active .sk-icon {
  filter: drop-shadow(0 0 5px currentColor);
  transform: scale(1.15);
}

.sk-label {
  font-size: 6px;
  letter-spacing: 0;
  color: var(--dim);
  font-family: var(--font);
  position: relative;
  transition: color 0.1s;
}

.sk-cd {
  font-size: 6px;
  color: var(--dim);
  font-family: var(--font);
  min-height: 8px;
  line-height: 1;
  position: relative;
  transition: color 0.1s;
}

/* Per-weapon accent colours */
.wep-bullet {
  color: var(--cyan);
}

.wep-laser {
  color: var(--yellow);
}

.wep-heavy {
  color: var(--orange);
}

.wep-shotgun {
  color: var(--green);
}

.wep-melee {
  color: var(--melee);
}

.wep-jump {
  color: #00ffee;
}

.wep-jump.sk-active {
  border-color: #00ffee;
  background: rgba(0, 255, 238, 0.08);
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.25);
}

.wep-jump.sk-active .sk-label,
.wep-jump.sk-active .sk-cd {
  color: #00ffee;
}

.wep-jump.jump-no-free {
  color: #ff8c00;
  border-color: #ff8c0066;
}

.wep-jump.jump-no-free .sk-label,
.wep-jump.jump-no-free .sk-cd {
  color: #ff8c00;
}

.wep-flare {
  color: #ffaa00;
}

.wep-flare .sk-label,
.wep-flare .sk-cd {
  color: #ffaa00;
}

.wep-flare:not(.sk-used):hover {
  border-color: #ffaa00;
  background: rgba(255, 170, 0, 0.08);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.2);
}

.wep-flare.sk-used {
  opacity: 0.35;
  cursor: default;
  border-color: #44332200;
}

.wep-flare.sk-used .sk-label,
.wep-flare.sk-used .sk-cd {
  color: #554422;
}

.wep-hack {
  color: #00ffcc;
}

.wep-hack .sk-label,
.wep-hack .sk-cd {
  color: #00ffcc;
}

.wep-hack:not(.sk-used):hover {
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.08);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.wep-hack.sk-active {
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.12);
  box-shadow: 0 0 14px rgba(0, 255, 204, 0.3);
}

.wep-hack.sk-used {
  opacity: 0.35;
  cursor: default;
  border-color: #004433;
}

.wep-hack.sk-used .sk-label,
.wep-hack.sk-used .sk-cd {
  color: #224433;
}

.wep-ronke .sk-label,
.wep-ronke .sk-cd {
  color: #44ff88;
}

.wep-ronke:hover {
  border-color: #44aaff;
  background: rgba(68, 170, 255, 0.08);
  box-shadow: 0 0 10px rgba(68, 170, 255, 0.2);
}

.wep-ronke.sk-active {
  border-color: #44aaff;
  background: rgba(68, 170, 255, 0.12);
  box-shadow: 0 0 14px rgba(68, 170, 255, 0.3);
}

.wep-ronke.sk-active .sk-label,
.wep-ronke.sk-active .sk-cd {
  color: #44ff88;
}

.wep-ronke-shield {
  color: #44aaff;
}

.wep-ronke-shield .sk-label,
.wep-ronke-shield .sk-cd {
  color: #44aaff;
}

.wep-ronke-shield:hover {
  border-color: #44aaff;
  background: rgba(68, 170, 255, 0.10);
  box-shadow: 0 0 12px rgba(68, 170, 255, 0.25);
}

.wep-ronke-shield.sk-active {
  border-color: #44aaff;
  background: rgba(68, 170, 255, 0.18);
  box-shadow: 0 0 18px rgba(68, 170, 255, 0.5), inset 0 0 8px rgba(68, 170, 255, 0.15);
  animation: ronke-shield-pulse 0.8s ease-in-out infinite alternate;
}

.wep-ronke-shield.sk-active .sk-label,
.wep-ronke-shield.sk-active .sk-cd {
  color: #88ccff;
}

@keyframes ronke-shield-pulse {
  from { box-shadow: 0 0 14px rgba(68, 170, 255, 0.4); }
  to   { box-shadow: 0 0 24px rgba(68, 170, 255, 0.8); }
}

.wep-bullet.sk-active {
  border-color: var(--cyan);
  background: rgba(0, 255, 238, 0.06);
}

.wep-laser.sk-active {
  border-color: var(--yellow);
  background: rgba(255, 238, 0, 0.06);
}

.wep-heavy.sk-active {
  border-color: var(--orange);
  background: rgba(255, 102, 0, 0.06);
}

.wep-shotgun.sk-active {
  border-color: var(--green);
  background: rgba(0, 255, 136, 0.06);
}

.wep-melee.sk-active {
  border-color: var(--melee);
  background: rgba(255, 34, 170, 0.06);
}

.wep-bullet.sk-active .sk-label,
.wep-bullet.sk-active .sk-cd {
  color: var(--cyan);
}

.wep-laser.sk-active .sk-label,
.wep-laser.sk-active .sk-cd {
  color: var(--yellow);
}

.wep-heavy.sk-active .sk-label,
.wep-heavy.sk-active .sk-cd {
  color: var(--orange);
}

.wep-shotgun.sk-active .sk-label,
.wep-shotgun.sk-active .sk-cd {
  color: var(--green);
}

.wep-melee.sk-active .sk-label,
.wep-melee.sk-active .sk-cd {
  color: var(--melee);
}

.skill-slot.sk-empty,
.skill-slot.sk-disabled {
  opacity: 0.3;
  cursor: default;
}

.skill-slot.sk-empty .sk-cd {
  color: var(--red);
}

/* Skill bar header row */
.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px;
  margin-bottom: -2px;
}

.skill-header-lbl {
  font-size: 6px;
  letter-spacing: 1px;
  color: var(--dim);
}

.skill-key {
  padding: 1px 4px;
  background: var(--bg3);
  border: 1px solid var(--border-hi);
  color: var(--dim);
  font-family: var(--font);
  font-size: 6px;
  letter-spacing: 0;
  box-shadow: 1px 1px 0 #000;
}

.dim {
  color: var(--dim);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HUB BUTTON STRIP (between panels)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#hub-btn-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 26px;
  flex-shrink: 0;
  background: rgba(4, 6, 14, 0.85);
  border-right: 1px solid rgba(0, 255, 136, 0.15);
}

#btn-open-hub {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  background: transparent;
  border: none;
  color: var(--orange);
  font-family: var(--font);
  font-size: 6px;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 12px 4px;
  text-shadow: 0 0 8px var(--orange);
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
  line-height: 1.8;
}

#btn-open-hub:hover {
  opacity: 1;
  background: rgba(255, 102, 0, 0.12);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HUB OVERLAY (in-game death screen)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#hub-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.87);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: hubOverlayIn 0.35s ease-out both;
}

#hub-overlay.active {
  display: flex;
}

@keyframes hubOverlayIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.hub-ov-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 28px 32px;
  background: rgba(4, 6, 14, 0.97);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 40px rgba(0, 255, 238, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.5);
  min-width: 340px;
  max-width: 420px;
  width: 90%;
}

.hub-ov-title {
  font-size: 16px;
  color: var(--orange);
  text-shadow: 0 0 16px var(--orange), 2px 2px 0 #000;
  letter-spacing: 4px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.hub-ov-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hub-ov-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: rgba(0,255,136,0.04);
  border: 1px solid var(--border);
}

.hub-ov-label {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 1px;
}

.hub-ov-val {
  font-size: 18px;
  color: var(--yellow);
  text-shadow: 0 0 8px var(--yellow);
}

.hub-ov-upgrades {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GAME OVER
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.gameover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding: 20px;
  animation: goEntrance 0.3s steps(4) both;
}

@keyframes goEntrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.go-announce {
  font-size: clamp(18px, 3.5vw, 32px);
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan), 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.go-announce.p2 {
  color: var(--red);
  text-shadow: 0 0 16px var(--red), 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.go-announce.draw {
  color: var(--yellow);
  text-shadow: 0 0 16px var(--yellow), 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.go-subtitle {
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-top: -10px;
}

.go-stats {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  overflow: hidden;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  background: var(--bg2);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell .lbl {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--dim);
}

.stat-cell .val {
  font-size: 20px;
  color: var(--text);
}

.stat-cell .val.cyan {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan-dim);
}

.stat-cell .val.red {
  color: var(--red);
  text-shadow: 0 0 8px var(--red-dim);
}

.go-buttons {
  display: flex;
  gap: 12px;
}

#kills-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px solid #1a2a22;
  background: #080c0a;
}
.kills-lbl {
  font-size: 7px;
  letter-spacing: 2px;
  color: #3a6652;
}
.kills-val {
  font-size: 14px;
  color: #ff3c55;
  text-shadow: 0 0 8px rgba(255,60,85,0.5);
}

.btn-ops-status {
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: inherit;
  font-size: 7px;
  letter-spacing: 2px;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-ops-status:hover {
  border-color: var(--cyan);
  background: rgba(0,255,200,0.07);
}
.btn-ops-status.active {
  background: rgba(0,255,200,0.12);
  border-color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

.gameover-layout {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.go-player-stats-panel {
  display: none;
  flex-direction: column;
  min-width: 248px;
  max-width: 300px;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid var(--border);
  background: var(--bg2);
  animation: goEntrance 0.3s steps(4) both;
  text-align: left;
}

.go-player-stats-panel.active {
  display: flex;
}

.gps-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--cyan);
  letter-spacing: 2px;
  font-size: 8px;
  background: rgba(0, 255, 200, 0.06);
  text-shadow: 0 0 8px var(--cyan);
}

.gps-section {
  border-bottom: 1px solid var(--border);
}

.gps-section-title {
  padding: 6px 14px;
  font-size: 6px;
  letter-spacing: 2px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
}

.gps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.gps-row:last-child {
  border-bottom: none;
}

.gps-lbl {
  color: var(--dim);
  font-size: 6px;
  letter-spacing: 1px;
}

.gps-val {
  font-size: 8px;
  color: var(--text);
}

.gps-val.cyan { color: var(--cyan); text-shadow: 0 0 6px var(--cyan-dim); }
.gps-val.yellow { color: var(--yellow); text-shadow: 0 0 6px rgba(255,220,0,0.4); }
.gps-val.red { color: var(--red); text-shadow: 0 0 6px var(--red-dim); }
.gps-val.green { color: #44ff88; text-shadow: 0 0 6px rgba(68,255,136,0.4); }
.gps-val.dim { color: #444; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHESS CLOCK
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.clock-display {
  font-size: 19px;
  letter-spacing: 2px;
  text-align: center;
  padding: 10px 6px;
  background: #020208;
  border: 2px solid var(--border);
  color: #222240;
  font-family: var(--font);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* P1 clock ticking â€” cyan glow */
.clock-display.clock-run-p1 {
  color: var(--cyan);
  border-color: rgba(0, 255, 238, 0.45);
  text-shadow:
    0 0 8px var(--cyan),
    0 0 22px rgba(0, 255, 238, 0.4);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(0, 255, 238, 0.12);
}

/* P2 clock ticking â€” red glow */
.clock-display.clock-run-p2 {
  color: var(--red);
  border-color: rgba(255, 34, 68, 0.45);
  text-shadow:
    0 0 8px var(--red),
    0 0 22px rgba(255, 34, 68, 0.4);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.7),
    0 0 10px rgba(255, 34, 68, 0.12);
}

/* Under 10 seconds â€” urgent blink, always red */
.clock-display.clock-low {
  color: var(--red) !important;
  border-color: var(--red) !important;
  text-shadow: 0 0 10px var(--red) !important;
  animation: clockUrgent 0.35s step-end infinite;
}

@keyframes clockUrgent {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CENTER COLUMN (canvas + energy banner)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.center-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ENERGY HUD  â€” horizontal banner above canvas
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.energy-hud {
  display: none;
  /* set to flex in adventure mode */
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(12, 7, 2, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(130, 72, 8, 0.60);
  border-bottom: none;
  font-family: var(--font);
  transition: border-color 0.25s;
  line-height: 1;
  transform: translateY(13px);
}

.energy-hud.nrg-danger {
  border-color: rgba(255, 34, 68, 0.6);
}

/* "ENERGY" tag */
.energy-hud-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7a5e38;
  white-space: nowrap;
  flex-shrink: 0;
}

/* bar fills remaining space */
.energy-track {
  flex: 1;
  height: 8px;
  background: rgba(0, 15, 20, 0.9);
  border: 1px solid rgba(0, 255, 238, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.energy-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.13s ease-out, background 0.25s, box-shadow 0.25s;
}

/* 150-segment divider overlay (1 tick = 1 energy) */
.energy-track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to right,
      transparent 0,
      transparent calc(100% / 150 - 1px),
      rgba(0, 0, 0, 0.85) calc(100% / 150 - 1px),
      rgba(0, 0, 0, 0.85) calc(100% / 150));
  pointer-events: none;
}

/* Fill color states */
.energy-fill.nrg-high {
  background: var(--cyan);
  box-shadow: 0 0 5px var(--cyan), 0 0 12px rgba(0, 255, 238, 0.2);
}

.energy-fill.nrg-mid {
  background: #ffaa00;
  box-shadow: 0 0 5px #ffaa00, 0 0 12px rgba(255, 170, 0, 0.2);
}

.energy-fill.nrg-low {
  background: var(--red);
  box-shadow: 0 0 5px var(--red), 0 0 12px rgba(255, 34, 68, 0.2);
}

.energy-fill.nrg-crit {
  background: var(--red);
  animation: nrgCrit 0.45s step-end infinite;
}

@keyframes nrgCrit {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--red), 0 0 22px var(--red);
  }

  50% {
    opacity: 0.35;
    box-shadow: none;
  }
}

/* Number: e.g. "72" */
.energy-hud-val {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
  transition: color 0.25s, text-shadow 0.25s;
}

/* Floor indicator: "FÂ·2" */
.energy-hud-floor {
  font-size: 9px;
  letter-spacing: 1px;
  color: #00ffaa;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Coins: "$15" */
.energy-coins {
  font-size: 10px;
  letter-spacing: 1px;
  color: #ffdd55;
  text-shadow: 0 0 5px rgba(255, 221, 85, 0.45);
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COMBAT LOG / TERMINAL
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#panel-log {
  width: 190px;
}

#panel-log .panel-name {
  text-shadow: 0 0 8px var(--cyan);
  letter-spacing: 2px;
}

.log-container {
  flex: 1;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding-top: 10px;
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-size: 8px;
  /* Pixel font needs small size */
  line-height: 1.5;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}

/* CRT Scanline Overlay for the terminal */
.log-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.25) 1px,
      rgba(0, 0, 0, 0.25) 2px);
  pointer-events: none;
  z-index: 10;
}

.log-entry {
  animation: slideInLog 0.2s ease-out forwards;
  word-wrap: break-word;
  text-shadow: 1px 1px 0 #000;
  opacity: 0;
  transform: translateX(10px);
  position: relative;
  z-index: 2;
}

@keyframes slideInLog {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.log-type-dmg {
  color: #ff3c55;
  text-shadow: 0 0 5px #ff3c55, 1px 1px 0 #000;
}

.log-type-crit {
  color: #ffe033;
  text-shadow: 0 0 8px #ffe033, 1px 1px 0 #000;
}

.log-type-loot {
  color: #00ffaa;
  text-shadow: 0 0 5px #00ffaa, 1px 1px 0 #000;
}

.log-type-info {
  color: #88bbff;
}

.log-type-warn {
  color: #ff9900;
  text-shadow: 0 0 5px #ff9900, 1px 1px 0 #000;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INVENTORY BUTTON (in skill bar)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#btn-inventory {
  display: none; /* JS sets to flex in adventure mode */
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  background: #0d0018;
  border: 1px solid #441166;
  color: #cc44ff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
}
#btn-inventory:hover { border-color: #cc44ff; background: rgba(204,68,255,0.1); }
.inv-btn-icon  { flex-shrink: 0; }
.inv-btn-label { flex: 1; }
.inv-btn-chips { color: #ffee00; font-weight: bold; flex-shrink: 0; }

.btn-bottom-row {
  display: none; /* JS shows it in adventure mode */
  flex-direction: row;
  gap: 4px;
  margin-top: 2px;
  width: 100%;
}
.btn-wipe-inline {
  flex: 1;
  padding: 5px 6px;
  background: transparent;
  border: 1px solid #332211;
  color: #443322;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-wipe-inline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
}
.btn-tutorial-inline {
  flex: 1;
  padding: 5px 6px;
  background: transparent;
  border: 1px solid #112211;
  color: #334433;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-tutorial-inline:hover {
  border-color: #00ff88;
  color: #00ff88;
  background: rgba(0,255,136,0.08);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   INVENTORY OVERLAY
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* ══════════════════════════════════════════
   OPERATOR STATUS OVERLAY
   ══════════════════════════════════════════ */
#ops-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 56;
  background: transparent;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#ops-overlay.active { display: flex; }
#ops-overlay #ops-panel { pointer-events: all; }

#ops-panel {
  font-family: var(--font-mono);
  background: #080c0b;
  border: 2px solid #1f4433;
  box-shadow: 0 0 60px rgba(0,0,0,0.9), 0 0 30px rgba(0,255,136,0.08), inset 0 0 30px rgba(0,0,0,0.5);
  width: 480px;
  max-width: 96vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ops-content {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #1f4433 transparent;
}

/* header */
.ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1a3328;
  background: linear-gradient(90deg, rgba(0,255,136,0.05) 0%, transparent 100%);
}
.ops-header-title {
  font-size: 10px;
  letter-spacing: 3px;
  color: #00ff88;
  text-shadow: 0 0 12px rgba(0,255,136,0.6);
}
.ops-header-close {
  background: none;
  border: 1px solid #1f4433;
  color: #3a6652;
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ops-header-close:hover { border-color: #00ff88; color: #00ff88; }

/* status bar */
.ops-statusbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid #1a3328;
}
.ops-statusbar-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-right: 1px solid #1a3328;
  gap: 5px;
  min-height: 52px;
}
.ops-statusbar-cell:last-child { border-right: none; }
.ops-sb-val {
  font-size: 13px;
  line-height: 1;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0,255,136,0.5);
  display: block;
}
.ops-sb-val.red { color: #ff3c55; text-shadow: 0 0 8px rgba(255,60,85,0.5); }
.ops-sb-val.yellow { color: #ffdd00; text-shadow: 0 0 8px rgba(255,220,0,0.5); }
.ops-sb-lbl {
  font-size: 6px;
  line-height: 1;
  letter-spacing: 1px;
  color: #2d5c47;
  display: block;
}

/* big stat cards */
.ops-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #1a3328;
}
.ops-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 12px;
  border-right: 1px solid #1a3328;
  border-bottom: 1px solid #1a3328;
  gap: 6px;
  min-height: 80px;
}
.ops-card:nth-child(even) { border-right: none; }
.ops-card:nth-last-child(-n+2) { border-bottom: none; }
.ops-card-icon { font-size: 9px; color: #2d5c47; line-height: 1; display: block; }
.ops-card-val {
  font-size: 22px;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
  line-height: 1;
  display: block;
}
.ops-card-val.yellow { color: #ffdd00; text-shadow: 0 0 10px rgba(255,220,0,0.4); }
.ops-card-val.cyan   { color: #00ffee; text-shadow: 0 0 10px rgba(0,255,238,0.4); }
.ops-card-val.red    { color: #ff3c55; text-shadow: 0 0 10px rgba(255,60,85,0.4); }
.ops-card-lbl {
  font-size: 6px;
  letter-spacing: 0;
  color: #2d5c47;
  text-align: center;
  line-height: 1;
  display: block;
}

/* section header */
.ops-section-hdr {
  padding: 7px 16px 5px;
  font-size: 6px;
  letter-spacing: 2px;
  color: #2d5c47;
  border-bottom: 1px solid #111e18;
  background: rgba(0,255,136,0.02);
}

/* upgrade rows with bar */
.ops-upg-row {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 10px;
  border-bottom: 1px solid #0d1a14;
}
.ops-upg-row:last-child { border-bottom: none; }
.ops-upg-name {
  font-size: 7px;
  letter-spacing: 0;
  color: #4a8a6a;
  width: 88px;
  flex-shrink: 0;
  white-space: nowrap;
}
.ops-upg-bar {
  flex: 1;
  height: 4px;
  background: #0d1a14;
  border: 1px solid #1a3328;
  overflow: hidden;
}
.ops-upg-bar-fill {
  height: 100%;
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0,255,136,0.6);
  transition: width 0.3s;
}
.ops-upg-bar-fill.yellow { background: #ffdd00; box-shadow: 0 0 6px rgba(255,220,0,0.6); }
.ops-upg-bar-fill.red { background: #ff3c55; box-shadow: 0 0 6px rgba(255,60,85,0.6); }
.ops-upg-bar-fill.cyan { background: #00ffee; box-shadow: 0 0 6px rgba(0,255,238,0.6); }
.ops-upg-val {
  font-size: 7px;
  color: #00ff88;
  width: 110px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}
.ops-upg-val.off   { color: #222; }
.ops-upg-val.yellow{ color: #ffdd00; }
.ops-upg-val.cyan  { color: #00ffee; }
.ops-upg-val.red   { color: #ff3c55; }

/* chip badges */
.ops-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid #1a3328;
}
.ops-chip-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid;
  font-size: 7px;
  letter-spacing: 1px;
  opacity: 0.35;
}
.ops-chip-badge.has { opacity: 1; }
.ops-chip-badge.common  { border-color: #555; color: #aaa; }
.ops-chip-badge.uncommon{ border-color: #44ff88; color: #44ff88; }
.ops-chip-badge.rare    { border-color: #4499ff; color: #4499ff; }
.ops-chip-badge.epic    { border-color: #ffdd00; color: #ffdd00; }
.ops-chip-badge.legendary{ border-color: #ff3c55; color: #ff3c55; }
.ops-chip-badge.mythic  { border-color: #ff88ff; color: #ff88ff; }
.ops-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ops-chip-qty { font-size: 9px; }

/* resources grid */
.ops-resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #1a3328;
}
.ops-res-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-right: 1px solid #0d1a14;
  border-bottom: 1px solid #0d1a14;
  min-height: 44px;
}
.ops-res-cell:nth-child(even) { border-right: none; }
.ops-res-icon { font-size: 11px; flex-shrink: 0; line-height: 1; }
.ops-res-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ops-res-val {
  font-size: 11px;
  color: #00ff88;
  line-height: 1;
  display: block;
}
.ops-res-val.zero { color: #1a3328; }
.ops-res-lbl {
  font-size: 6px;
  letter-spacing: 0;
  color: #2d5c47;
  line-height: 1;
  display: block;
}

/* cards row */
.ops-runcards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 16px 10px;
}
.ops-runcard-tag {
  font-size: 6px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid #44ff88;
  color: #44ff88;
  background: rgba(68,255,136,0.06);
}

#inv-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 55;
  background: transparent;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#inv-overlay.active { display: flex; }
#inv-overlay #inv-panel { pointer-events: all; }

#inv-panel {
  font-family: var(--font-mono);
  background: #0d0d0d;
  border: 2px solid #3a3a3a;
  box-shadow: 0 0 40px rgba(0,0,0,0.7), inset 0 0 20px rgba(255,255,255,0.015);
  padding: 14px 15px 12px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* â”€â”€ Header bar â”€â”€ */
.inv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2e2e2e;
  padding-bottom: 10px;
}
.inv-title {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 4px;
  color: #cccccc;
  text-shadow: 0 0 8px #666666;
}
.inv-sector {
  font-size: 9px;
  color: #555555;
  letter-spacing: 1px;
}
.inv-sector span { color: #00ffee; }

/* â”€â”€ Slot grid â”€â”€ */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.inv-slot {
  aspect-ratio: 1 / 1;
  background: #111111;
  border: 1px solid #282828;
  position: relative;
  cursor: default;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
  overflow: hidden;
}
.inv-slot.has-item { cursor: pointer; }
.inv-slot.has-item:hover { background: #1c1c1c; }

/* empty slot â€” faint cross */
.inv-slot.empty::before,
.inv-slot.empty::after {
  content: '';
  position: absolute;
  background: #2a2a2a;
}
.inv-slot.empty::before { width: 1px; height: 35%; top: 32.5%; left: calc(50% - 0.5px); }
.inv-slot.empty::after  { height: 1px; width: 35%; left: 32.5%; top: calc(50% - 0.5px); }

/* Chip / Byte / XP / Fragment inventory canvases */
.inv-chip-canvas,
.inv-byte-canvas,
.inv-xp-canvas,
.inv-frag-canvas {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Fragment icon */
.inv-frag-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -62%);
  font-size: 28px;
  line-height: 1;
}

/* Item type/rarity label â€” bottom left */
.inv-slot-label {
  position: absolute;
  bottom: 3px;
  left: 5px;
  font-size: 6px;
  letter-spacing: 0.5px;
  line-height: 1;
  opacity: 0.85;
}

/* Quantity â€” bottom right */
.inv-slot-qty {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 5px #000, 1px 1px 0 #000;
  line-height: 1;
}

/* â”€â”€ Hover info bar â”€â”€ */
.inv-info-bar {
  background: #111111;
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #555555;
  text-align: center;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* â”€â”€ Fragment progress row â”€â”€ */
.inv-frag-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inv-frag-label {
  font-size: 9px;
  color: #664422;
  white-space: nowrap;
  flex-shrink: 0;
}
.inv-frag-label span { color: #ff8800; font-weight: bold; }
.inv-frag-bar-track {
  flex: 1;
  height: 6px;
  background: #150800;
  border: 1px solid #331100;
  overflow: hidden;
}
.inv-frag-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #882200, #ff7700);
  width: 0%;
  transition: width 0.3s ease;
}
.inv-frag-hint {
  font-size: 8px;
  color: #443322;
  white-space: nowrap;
  flex-shrink: 0;
}

/* â”€â”€ Close button â”€â”€ */
#inv-close-btn {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: 1px solid #383838;
  color: #888888;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#inv-close-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: #666666;
  color: #cccccc;
}

/* â”€â”€ Inventory FORGE button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#inv-forge-btn {
  width: 100%;
  padding: 9px;
  background: rgba(0,170,200,0.10);
  border: 1px solid #005566;
  color: #44ccee;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: 0 0 8px #00bbcc44;
}
#inv-forge-btn:hover {
  background: rgba(0,170,200,0.22);
  border-color: #00ccff;
  color: #ffffff;
  text-shadow: 0 0 8px #00ccff;
}

/* â”€â”€ Chip Forge overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes forge-panel-pulse {
  0%,100% { box-shadow: 0 0 0 4px #000a0e, 0 0 0 5px #003344, 0 0 50px #00bbcc1a; }
  50%      { box-shadow: 0 0 0 4px #000a0e, 0 0 0 5px #004d5e, 0 0 90px #00bbcc44; }
}
@keyframes mythic-result-pulse {
  0%,100% { border-color: #770099; box-shadow: 0 0 20px #cc00ff33, inset 2px 2px 0 #160022, inset -2px -2px 0 #030008; }
  50%      { border-color: #ee00ff; box-shadow: 0 0 44px #cc00ffaa, inset 2px 2px 0 #220030, inset -2px -2px 0 #060010; }
}
@keyframes forge-fire {
  0%,100% { color: #ffcc00; text-shadow: 0 0 8px #ff8800, 0 0 18px #cc5500; }
  40%      { color: #ff8800; text-shadow: 0 0 12px #ff4400, 0 0 24px #aa2200; }
  70%      { color: #ffee55; text-shadow: 0 0 10px #ffaa00, 0 0 20px #cc7700; }
}
@keyframes forge-btn-ready {
  0%,100% { box-shadow: 0 0 10px #00bbcc33, inset 2px 2px 0 #001c1e, inset -2px -2px 0 #000e10; }
  50%      { box-shadow: 0 0 30px #00bbccaa, inset 2px 2px 0 #002428, inset -2px -2px 0 #001418; }
}

#forge-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 62;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
#forge-overlay.active { display: flex; }

/* RPG pixel-art double-border window */
#forge-panel {
  font-family: var(--font-mono);
  background: #000c10;
  border: 2px solid #006677;
  animation: forge-panel-pulse 3.5s ease-in-out infinite;
  width: 382px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Forge animation canvas overlay */
#forge-anim-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  pointer-events: none;
}
#forge-anim-overlay.active { display: block; }

/* â”€â”€ RPG title bar â”€â”€ */
.forge-titlebar {
  background: linear-gradient(180deg, #001520 0%, #000c10 100%);
  border-bottom: 2px solid #004d5e;
  padding: 10px 14px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forge-title {
  font-size: 10px;
  letter-spacing: 5px;
  color: #44ccee;
  text-shadow: 0 0 14px #00bbcc, 2px 2px 0 #000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.forge-title-icon { animation: forge-fire 2s ease-in-out infinite; }
.forge-close-x {
  background: #001520;
  border: 2px solid #003344;
  color: #225566;
  font-family: var(--font-mono);
  font-size: 9px;
  cursor: pointer;
  padding: 3px 8px;
  line-height: 1;
  transition: all 0.12s;
  box-shadow: inset 1px 1px 0 #001a22, inset -1px -1px 0 #00060a;
}
.forge-close-x:hover { background: #001e28; border-color: #00ccff; color: #44eeff; }

/* â”€â”€ panel body â”€â”€ */
.forge-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* â”€â”€ RPG category section headers â”€â”€ */
.forge-section-hdr {
  font-size: 6px;
  letter-spacing: 4px;
  color: #004455;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -2px;
}
.forge-section-hdr::before,
.forge-section-hdr::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #001520;
}

/* â”€â”€ ingredient rows â”€â”€ */
.forge-ingredients {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* pixel-art RPG item slot â€” inset/recessed look */
.forge-ing-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid #001520;
  padding: 8px 8px 4px;
  background: #000608;
  width: 96px;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: inset 2px 2px 0 #000a0e, inset -2px -2px 0 #000204;
  transition: background 0.12s, box-shadow 0.12s;
}
.forge-ing-slot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rc, #333);
  opacity: 0.55;
}
.forge-ing-slot:hover {
  background: #000810;
  box-shadow: inset 2px 2px 0 #001018, inset -2px -2px 0 #000204,
              0 0 12px rgba(0, 180, 220, 0.14);
}
.forge-ing-slot canvas { image-rendering: pixelated; display: block; }
.forge-ing-lbl {
  font-size: 5px;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 20px;
}
/* qty as absolute bottom strip â€” RPG item count badge */
.forge-ing-qty {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-size: 7px;
  letter-spacing: 0;
  text-align: center;
  color: #1e4455;
  padding: 3px 2px 4px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(0, 100, 150, 0.25);
}

/* â”€â”€ transmute arrow â”€â”€ */
.forge-arrow {
  text-align: center;
  font-size: 6px;
  letter-spacing: 6px;
  color: #003344;
  text-shadow: 0 0 10px #00bbcc22;
}

/* â”€â”€ result â”€â”€ */
.forge-result-wrapper { display: flex; justify-content: center; }
.forge-result-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #770099;
  padding: 14px 32px 12px;
  background: #060012;
  animation: mythic-result-pulse 2s ease-in-out infinite;
  position: relative;
  box-shadow: inset 2px 2px 0 #140020, inset -2px -2px 0 #030008;
}
.forge-result-slot::before,
.forge-result-slot::after {
  content: 'â—†';
  position: absolute;
  font-size: 7px;
  color: #003344;
  line-height: 1;
}
.forge-result-slot::before { top: 5px; left: 7px; }
.forge-result-slot::after  { top: 5px; right: 7px; }
.forge-result-slot canvas { image-rendering: pixelated; display: block; }
.forge-mythic-lbl {
  font-size: 7px;
  letter-spacing: 3px;
  color: #cc00ff;
  text-shadow: 0 0 10px #cc00ff, 2px 2px 0 #000;
}
.forge-mythic-count {
  font-size: 7px;
  color: #224455;
  letter-spacing: 2px;
}

.forge-divider {
  border: none;
  border-top: 1px solid #000e18;
  width: 100%;
  margin: 0;
}

/* â”€â”€ recipe selector (RPG scroll tabs) â”€â”€ */
.forge-recipe-btns { display: flex; gap: 8px; width: 100%; }
.forge-recipe-btn {
  flex: 1;
  padding: 10px 6px;
  background: #000608;
  border: 2px solid #001520;
  color: #224455;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: inset 1px 1px 0 #000a0e, inset -1px -1px 0 #000204;
}
.forge-recipe-btn .recipe-pct {
  font-size: 18px;
  letter-spacing: 2px;
  color: #224455;
}
.forge-recipe-btn .recipe-cost {
  font-size: 6px;
  letter-spacing: 0.5px;
  color: #0e2233;
  line-height: 1.8;
}
.forge-recipe-btn.active {
  border-color: #006677;
  background: #000a12;
  box-shadow: inset 1px 1px 0 #001018, inset -1px -1px 0 #00040a, 0 0 16px #00bbcc22;
}
.forge-recipe-btn.active .recipe-pct { color: #00ddff; text-shadow: 0 0 10px #00bbcc, 2px 2px 0 #000; }
.forge-recipe-btn.active .recipe-cost { color: #226688; }
.forge-recipe-btn:hover:not(.active) { border-color: #002233; background: #000810; }
.forge-recipe-btn:hover:not(.active) .recipe-pct { color: #335566; }

#forge-status-msg {
  font-size: 8px;
  letter-spacing: 2px;
  min-height: 14px;
  color: #226688;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
}

#forge-action-btn {
  width: 100%;
  padding: 14px;
  background: #000c14;
  border: 2px solid #007799;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background 0.12s;
  text-shadow: 0 0 10px #00ccff, 2px 2px 0 #000;
  animation: forge-btn-ready 1.6s ease-in-out infinite;
}
#forge-action-btn:hover:not(:disabled) { background: #001018; }
#forge-action-btn:disabled {
  border-color: #0e1a22;
  color: #0a1a22;
  background: #00040a;
  cursor: not-allowed;
  text-shadow: none;
  animation: none;
  box-shadow: inset 1px 1px 0 #08000f, inset -1px -1px 0 #010005;
}

/* â”€â”€ Chip rarity log colours â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.log-type-legendary {
  color: #ffaa00;
  text-shadow: 0 0 10px #ffcc00, 0 0 4px #ffaa00, 1px 1px 0 #000;
}
.log-type-epic {
  color: #cc44ff;
  text-shadow: 0 0 8px #cc44ff, 1px 1px 0 #000;
}
.log-type-rare {
  color: #4499ff;
  text-shadow: 0 0 7px #4499ff, 1px 1px 0 #000;
}
.log-type-uncommon {
  color: #44ff88;
  text-shadow: 0 0 5px #44ff88, 1px 1px 0 #000;
}
.log-type-common {
  color: #aaaaaa;
  text-shadow: 1px 1px 0 #000;
}
.log-type-fragment {
  color: #ffaa22;
  text-shadow: 0 0 5px #ff8800, 1px 1px 0 #000;
}
.log-type-assembled {
  color: #00ffee;
  text-shadow: 0 0 9px #00ffee, 1px 1px 0 #000;
  font-weight: bold;
}
.log-type-xp {
  color: #00ffcc;
  text-shadow: 0 0 8px #00ffcc, 1px 1px 0 #000;
}
.log-type-byte {
  color: #ffdd00;
  text-shadow: 0 0 8px #ffcc00, 1px 1px 0 #000;
}
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SLOT MACHINE OVERLAY
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#slot-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
#slot-overlay.active { display: flex; }

#slot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #020c09;
  border: 2px solid #00ffee;
  box-shadow: 0 0 60px #00ffee44, inset 0 0 30px #00ffee08;
  padding: 28px 34px 26px;
  min-width: 530px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* corner accents */
#slot-panel::before, #slot-panel::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: #00ffee;
  border-style: solid;
}
#slot-panel::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
#slot-panel::after  { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

.slot-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: #00ffee;
  text-shadow: 0 0 18px #00ffee, 0 0 40px #00ffee66;
  letter-spacing: 3px;
}

.slot-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #336655;
  letter-spacing: 2px;
  margin-top: -10px;
}

.slot-machine {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #000d0a;
  border: 1px solid #00ffee22;
  padding: 0;
  position: relative;
}
/* payline â€” 2nd row of 4 (top: 100px, height: 100px) */
.slot-machine::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100px;
  height: 100px;
  border-top: 2px solid #ff3300cc;
  border-bottom: 2px solid #ff3300cc;
  background: rgba(255,80,0,0.05);
  pointer-events: none;
  z-index: 3;
}

.slot-window {
  width: 108px;
  height: 300px;
  border: 2px solid #00ffee22;
  background: #000605;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
/* scanlines */
.slot-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.15) 3px, rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 2;
}
.slot-window canvas { display: block; image-rendering: pixelated; }

.slot-window canvas {
  display: block;
  image-rendering: pixelated;
}

#slot-paytable {
  width: 100%;
  margin: 8px 0 4px;
}
.pt-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #334455;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 5px;
}
.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
}
.pt-table th {
  padding: 3px 4px;
  text-align: center;
  border-bottom: 1px solid #1a1a2e;
  font-size: 9px;
}
.pt-table td {
  padding: 3px 4px;
  text-align: center;
  border-bottom: 1px solid #111122;
}
.pt-count {
  color: #334455;
  font-size: 6px;
  text-align: left;
  padding-left: 2px;
}

#slot-result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
#slot-result.visible {
  display: flex;
  animation: slotResultIn 0.35s cubic-bezier(0.2, 1.3, 0.5, 1);
}
@keyframes slotResultIn {
  0%   { opacity: 0; transform: scale(0.7) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

#slot-rarity-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 4px 16px;
  border: 1px solid currentColor;
  letter-spacing: 3px;
  text-shadow: 0 0 10px currentColor;
  box-shadow: 0 0 14px currentColor44;
}

#slot-item-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  text-align: center;
  text-shadow: 0 0 20px currentColor, 0 0 40px currentColor66;
  letter-spacing: 2px;
}

#slot-claim-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 11px 36px;
  background: transparent;
  color: #00ffee;
  border: 2px solid #00ffee;
  cursor: pointer;
  letter-spacing: 3px;
  margin-top: 4px;
  text-shadow: 0 0 10px #00ffee;
  box-shadow: 0 0 16px #00ffee44;
  transition: background 0.12s, box-shadow 0.12s, transform 0.1s;
}
#slot-claim-btn:not(:disabled):hover {
  background: #00ffee1a;
  box-shadow: 0 0 30px #00ffee99;
  transform: scale(1.03);
}
#slot-claim-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* â”€â”€ Game Notification Banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#game-notif {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6500;
  background: rgba(4, 8, 20, 0.96);
  border: 2px solid #00f5ff;
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.25);
  padding: 10px 22px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  min-width: 280px;
}
#game-notif.visible { top: 12px; }
#game-notif-title {
  font-size: 10px;
  color: #00f5ff;
  letter-spacing: 3px;
  text-shadow: 0 0 8px #00f5ff;
  margin-bottom: 5px;
}
#game-notif-desc {
  font-size: 7px;
  color: #88aacc;
  letter-spacing: 1px;
}

/* â”€â”€ Tutorial Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#tutorial-card {
  position: fixed;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7000;
  background: rgba(4, 8, 20, 0.96);
  border: 2px solid #00f5ff;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.18), 0 -4px 20px rgba(0,0,0,0.6);
  padding: 14px 20px 12px;
  width: 500px;
  max-width: 94vw;
  font-family: 'Press Start 2P', monospace;
  transition: bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#tutorial-card.visible {
  bottom: 68px;
  pointer-events: all;
}

.tut-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #00f5ff33;
}
.tut-badge {
  font-size: 7px;
  color: #00f5ff;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #00f5ff;
}
.tut-step {
  font-size: 7px;
  color: #446688;
}

.tut-body {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.tut-text-area {
  flex: 1;
}
.tut-title {
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 7px;
  text-shadow: 0 0 10px #00f5ff66;
}
.tut-desc {
  font-size: 7px;
  color: #88aacc;
  line-height: 1.9;
}

/* WASD key layout */
.tut-wasd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.tut-key-row {
  display: flex;
  gap: 3px;
}
.tut-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 7px;
  color: #00f5ff;
  background: #0a1a2a;
  border: 1px solid #00f5ff66;
  box-shadow: 0 3px 0 #00f5ff33, inset 0 1px 0 #00f5ff22;
  border-radius: 3px;
}
.tut-key-wide {
  width: auto;
  padding: 0 8px;
  height: 28px;
  font-size: 6px;
}

/* Shoot keys layout */
.tut-shoot-keys {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tut-key-or {
  font-size: 6px;
  color: #446688;
}

.tut-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #00f5ff22;
}
.tut-hint {
  font-size: 7px;
  color: #00f5ff88;
  animation: tut-blink 1.1s ease-in-out infinite;
}
@keyframes tut-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.tut-btns {
  display: flex;
  gap: 8px;
}
#tut-next-btn, #tut-skip-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 5px 10px;
  border: 1px solid;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s;
}
#tut-next-btn {
  background: #002233;
  border-color: #00f5ff;
  color: #00f5ff;
}
#tut-next-btn:hover {
  background: #00f5ff22;
  box-shadow: 0 0 10px #00f5ff44;
}
#tut-skip-btn {
  background: transparent;
  border-color: #333355;
  color: #445566;
}
#tut-skip-btn:hover {
  border-color: #666688;
  color: #889aaa;
}

/* Energy HUD tutorial highlight */
.tut-highlight {
  outline: 2px solid #00f5ff !important;
  box-shadow: 0 0 16px #00f5ff66 !important;
  animation: tut-pulse 0.9s ease-in-out infinite;
}
@keyframes tut-pulse {
  0%, 100% { box-shadow: 0 0 10px #00f5ff44; }
  50%       { box-shadow: 0 0 22px #00f5ffaa; }
}

/* â”€â”€ Achievements Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#ach-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
#ach-overlay.active { display: flex; }

#ach-panel-main {
  font-family: 'Press Start 2P', monospace;
  background: #08080f;
  border: 2px solid #aa44ff;
  box-shadow: 0 0 40px #aa44ff44, inset 0 0 20px #0a0015;
  padding: 18px 20px 16px;
  width: 560px;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ach-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #aa44ff44;
  padding-bottom: 10px;
  color: #aa44ff;
  font-size: 11px;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #aa44ff;
}

.ach-count-badge {
  font-size: 9px;
  color: #cc88ff;
  background: #1a0030;
  border: 1px solid #aa44ff66;
  padding: 3px 8px;
}

#ach-progress-wrap {
  display: flex;
  align-items: center;
}
#ach-progress-track {
  flex: 1;
  height: 6px;
  background: #1a1a2e;
  border: 1px solid #333355;
}
#ach-progress-fill {
  height: 100%;
  background: #aa44ff;
  box-shadow: 0 0 8px #aa44ff;
  transition: width 0.4s ease;
}

#ach-grid-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow-y: auto;
  max-height: 60vh;
  padding-right: 4px;
}
#ach-grid-main::-webkit-scrollbar { width: 4px; }
#ach-grid-main::-webkit-scrollbar-track { background: #0a0a1a; }
#ach-grid-main::-webkit-scrollbar-thumb { background: #aa44ff66; }

.ach-item-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid;
  transition: box-shadow 0.2s;
}

/* UNLOCKED â€” purple/gold, glowing */
.ach-card-unlocked {
  background: #0e0920;
  border-color: #aa44ff;
  box-shadow: 0 0 12px #aa44ff33;
}
.ach-card-unlocked .ach-card-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px #ffaa00);
}
.ach-card-unlocked .ach-card-label {
  color: #cc88ff;
  text-shadow: 0 0 6px #aa44ff;
}
.ach-card-unlocked .ach-card-desc { color: #998899; }
.ach-card-unlocked .ach-card-date { color: #665577; margin-top: 4px; }

/* LOCKED â€” grayscale, dim */
.ach-card-locked {
  background: #0a0a0a;
  border-color: #2a2a2a;
  opacity: 0.55;
}
.ach-card-locked .ach-card-icon {
  font-size: 20px;
  filter: grayscale(1) brightness(0.5);
}
.ach-card-locked .ach-card-label { color: #444444; }
.ach-card-locked .ach-card-desc  { color: #333333; }

.ach-card-info { display: flex; flex-direction: column; gap: 3px; }
.ach-card-label { font-size: 8px; }
.ach-card-desc  { font-size: 6px; }
.ach-card-date  { font-size: 6px; }

.btn-ach-close {
  align-self: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: transparent;
  border: 1px solid #aa44ff66;
  color: #aa44ff;
  padding: 7px 20px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.15s;
}
.btn-ach-close:hover {
  background: #aa44ff22;
  border-color: #aa44ff;
  box-shadow: 0 0 10px #aa44ff44;
}

/* Tutorial mission card */
.mission-card-tutorial {
  border-color: #00ff8855 !important;
  cursor: pointer;
}
.mission-card-tutorial:hover {
  background: #001a0a !important;
  border-color: #00ff88 !important;
  box-shadow: 0 0 12px #00ff8833;
}
.btn-deploy-tutorial {
  background: #001a0a !important;
  border-color: #00ff88 !important;
  color: #00ff88 !important;
}
.btn-deploy-tutorial:hover {
  background: #002a10 !important;
  box-shadow: 0 0 10px #00ff8844 !important;
}

/* Open button (hub) */
.btn-ach-open {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  background: #0a0015;
  border: 1px solid #aa44ff66;
  color: #cc88ff;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s;
}
.btn-ach-open:hover {
  background: #1a0030;
  border-color: #aa44ff;
  box-shadow: 0 0 10px #aa44ff44;
  color: #aa44ff;
}

/* â”€â”€ Achievement Popup â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.achievement-popup {
  position: fixed; bottom: -100px; right: 20px;
  background: #0a0a1a; border: 1px solid #aa44ff;
  box-shadow: 0 0 20px #aa44ff44;
  padding: 10px 16px; display: flex; gap: 10px; align-items: center;
  font-family: 'Press Start 2P', monospace; font-size: 8px;
  transition: bottom 0.4s ease; z-index: 9999;
}
.achievement-popup.visible { bottom: 20px; }
.ach-icon { font-size: 20px; }
.ach-title { color: #aa44ff; font-size: 7px; margin-bottom: 4px; }
.ach-label { color: #ffffff; font-size: 9px; }
.ach-desc  { color: #888888; font-size: 7px; margin-top: 3px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOBILE / TOUCH SUPPORT
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* D-pad container */
#mobile-controls {
  display: none;
  pointer-events: none;
  z-index: 300;
}

#mobile-dpad {
  position: fixed;
  bottom: 20px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  pointer-events: all;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(0, 8, 4, 0.55);
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 0 14px rgba(0,255,136,0.10), inset 0 0 8px rgba(0,0,0,0.4);
}

.dpad-mid-row {
  display: flex;
  gap: 0px;
  align-items: center;
}

.dpad-gap {
  width: 54px;
  height: 54px;
  background: rgba(0, 6, 3, 0.6);
  border-radius: 8px;
}

.dpad-btn {
  width: 54px;
  height: 54px;
  background: rgba(0, 22, 12, 0.85);
  border: 1.5px solid rgba(0, 136, 74, 0.7);
  color: #00e87a;
  font-size: 20px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(0,255,136,0.12);
}

.dpad-btn:active {
  background: rgba(0, 60, 30, 0.97);
  border-color: #00ffaa;
  color: #00ffcc;
  box-shadow: inset 0 0 10px rgba(0,255,136,0.3);
}

#dpad-shoot {
  position: fixed;
  bottom: 30px;
  right: 18px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(80,0,20,0.95) 0%, rgba(18,0,6,0.95) 100%);
  border: 2.5px solid #dd2244;
  color: #ff4466;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  pointer-events: all;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  z-index: 300;
  box-shadow: 0 0 16px rgba(220,34,68,0.45), 0 0 4px rgba(220,34,68,0.2), inset 0 1px 0 rgba(255,100,120,0.15);
}

#dpad-shoot:active {
  background: radial-gradient(circle at 40% 35%, rgba(160,0,40,0.99) 0%, rgba(40,0,10,0.99) 100%);
  border-color: #ff6688;
  color: #ffaacc;
  box-shadow: 0 0 24px rgba(255,60,100,0.65), inset 0 0 12px rgba(255,60,100,0.2);
}

/* Portrait orientation hint — controlled by JS, not CSS */
#mobile-orient-hint {
  display: none;   /* JS sets to flex when game active + portrait */
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4, 8, 6, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Animated phone icon */
.orient-phone {
  width: 32px;
  height: 56px;
  border: 3px solid #4ecf88;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 0 18px rgba(78,207,136,0.4);
  animation: phoneFlip 2.2s ease-in-out infinite;
}
.orient-phone::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #4ecf88;
  opacity: 0.6;
}
@keyframes phoneFlip {
  0%,  25% { transform: rotate(0deg);  }
  60%, 85% { transform: rotate(90deg); }
  100%     { transform: rotate(0deg);  }
}

.orient-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #4ecf88;
  text-align: center;
  line-height: 2.2;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(78,207,136,0.5);
}

/* â”€â”€ Mobile layout (screens â‰¤ 900px) â”€â”€â”€ */
@media (max-width: 900px) {

  /* Hide side panels and hub strip in adventure */
  .adv-mode #panel-p1,
  .adv-mode #panel-log,
  .adv-mode #hub-btn-strip,
  .adv-mode #map-scan-widget {
    display: none !important;
  }

  /* Canvas fills full width */
  .adv-mode .game-layout {
    justify-content: center;
  }
  .adv-mode .canvas-wrap {
    border: none !important;
    width: 100vw;
    box-sizing: border-box;
  }
  .adv-mode #canvas {
    width: 100vw !important;
    height: auto !important;
    touch-action: none;
    display: block;
  }

  /* Compact energy HUD */
  .adv-mode .energy-hud {
    padding: 4px 8px;
    font-size: 7px;
  }

  /* Show D-pad */
  #mobile-controls.visible {
    display: block;
  }

  /* Hub overlay covers D-pad on mobile */
  #hub-overlay {
    position: fixed !important;
    z-index: 600 !important;
  }
  #slot-overlay {
    z-index: 600 !important;
  }
  #ach-overlay {
    z-index: 600 !important;
  }

  /* Hub panel more compact on mobile */
  .hub-ov-panel {
    padding: 18px 16px;
    gap: 10px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90vw;
    max-width: 360px;
    box-sizing: border-box;
  }

  /* Larger tap targets for upgrade buttons */
  .btn-volt-install,
  .btn-adventure,
  .btn-secondary,
  .btn-ach-open {
    min-height: 44px;
  }
}

/* Orient hint is now JS-controlled (no auto CSS rule) */


/* Menu polish refresh */
#screen-menu {
  overflow-y: auto;
  padding: 28px;
  justify-content: flex-start;
}

#screen-menu .menu-wrap {
  width: min(1280px, 100%);
  margin: auto;
  align-items: stretch;
  gap: 22px;
  padding: 28px 28px 340px;
  background:
    linear-gradient(180deg, rgba(5, 18, 14, 0.88), rgba(6, 14, 16, 0.94)),
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.12), transparent 40%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 105, 72, 0.75);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(120, 255, 191, 0.08);
}

.menu-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 18px;
  border: 1px solid rgba(53, 136, 96, 0.55);
  background:
    linear-gradient(135deg, rgba(3, 32, 18, 0.86), rgba(4, 13, 15, 0.78)),
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.14), transparent 42%);
  position: relative;
  overflow: hidden;
}

.menu-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 48%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(0, 255, 136, 0.07) 0 1px, transparent 1px 54px);
  opacity: 0.35;
  pointer-events: none;
}

.menu-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.menu-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.08);
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.menu-chip.dim {
  color: #9db8aa;
  border-color: rgba(157, 184, 170, 0.28);
  background: rgba(157, 184, 170, 0.08);
}

#screen-menu .title-block {
  text-align: left;
  position: relative;
  z-index: 1;
}

#screen-menu .title-main {
  font-size: clamp(34px, 7vw, 76px);
  letter-spacing: clamp(2px, 0.8vw, 8px);
}

#screen-menu .title-sub {
  margin-top: 8px;
  letter-spacing: clamp(6px, 1.1vw, 16px);
}

#screen-menu .tagline {
  text-align: left;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

#screen-menu .tagline p {
  font-size: 9px;
  line-height: 2;
}

#screen-menu .tagline p.dim {
  font-size: 8px;
  opacity: 0.82;
}

.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.menu-main-panel,
.menu-panel {
  border: 1px solid rgba(47, 116, 82, 0.62);
  background:
    linear-gradient(180deg, rgba(6, 17, 14, 0.88), rgba(8, 12, 18, 0.92)),
    radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 44%);
  box-shadow:
    inset 0 0 0 1px rgba(139, 255, 198, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.38);
}

.menu-main-panel {
  padding: 18px;
}

.menu-side-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

.menu-side-stack .eco-card {
  flex: 1;
}

/* Ecosystem row — two panels side by side below mode cards */
.eco-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}

.menu-panel {
  padding: 18px;
}

.menu-panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.menu-panel-kicker {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 2px;
}

.menu-panel-title {
  color: #f1fff4;
  font-size: 14px;
  letter-spacing: 1px;
}

#screen-menu .mode-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  appearance: none;
  border: 1px solid rgba(59, 129, 92, 0.75);
  background:
    linear-gradient(180deg, rgba(7, 17, 16, 0.95), rgba(7, 10, 14, 0.98)),
    radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 40%);
  color: var(--text);
  min-height: 290px;
  padding: 16px;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 44px);
  opacity: 0.42;
  pointer-events: none;
}

.mode-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.42);
}

.mode-card-top,
.mode-card-title,
.mode-card-desc,
.mode-card-meta,
.mode-card-cta {
  position: relative;
  z-index: 1;
}

.mode-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mode-card-label,
.mode-card-badge {
  font-size: 7px;
  letter-spacing: 1.4px;
}

.mode-card-label {
  color: var(--dim);
}

.mode-card-badge {
  padding: 5px 8px;
  border: 1px solid currentColor;
}

.mode-card-title {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 1px;
  margin-top: 8px;
}

.mode-card-desc {
  font-size: 8px;
  line-height: 2.1;
  color: #c9ddd0;
  min-height: 84px;
}

.mode-card-meta {
  margin-top: auto;
  font-size: 7px;
  color: var(--dim);
  line-height: 1.9;
}

.mode-card-cta {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.mode-card-adv {
  border-color: rgba(255, 170, 0, 0.72);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 170, 0, 0.12);
}

.mode-card-adv .mode-card-badge,
.mode-card-adv .mode-card-title,
.mode-card-adv .mode-card-cta {
  color: var(--orange);
}

.mode-card-adv:hover {
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 170, 0, 0.22);
}

.mode-card-pve .mode-card-badge,
.mode-card-pve .mode-card-title,
.mode-card-pve .mode-card-cta {
  color: var(--cyan);
}

.mode-card-pve:hover {
  border-color: rgba(0, 255, 136, 0.72);
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.42), 0 0 22px rgba(0, 255, 136, 0.18);
}

.mode-card-pvp .mode-card-badge,
.mode-card-pvp .mode-card-title,
.mode-card-pvp .mode-card-cta {
  color: #ff6e82;
}

.mode-card-pvp:hover {
  border-color: rgba(255, 60, 85, 0.72);
  box-shadow: 16px 16px 0 rgba(0, 0, 0, 0.42), 0 0 22px rgba(255, 60, 85, 0.18);
}

#screen-menu .controls-card,
#screen-menu .mechanics-card {
  display: block;
  gap: 0;
  padding: 18px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.controls-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

#screen-menu .ctrl-player {
  min-width: 0;
  gap: 12px;
}

.ctrl-divider {
  display: none;
}

#screen-menu .ctrl-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#screen-menu .ctrl-row span:last-child {
  text-align: right;
}

.mech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#screen-menu .mech-item {
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#screen-menu .mech-item:last-child,
#screen-menu .ctrl-row:last-child {
  border-bottom: none;
}

#screen-menu .mech-item span:last-child {
  line-height: 2;
}

@media (max-width: 1100px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }

  #screen-menu .mode-select {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  #screen-menu {
    padding: 16px;
  }

  #screen-menu .menu-wrap {
    padding: 16px;
  }

  .menu-hero,
  .menu-main-panel,
  .menu-panel,
  #screen-menu .controls-card,
  #screen-menu .mechanics-card {
    padding: 14px;
  }

  .controls-dual {
    grid-template-columns: 1fr;
  }

  #screen-menu .ctrl-row {
    align-items: flex-start;
    flex-direction: column;
  }

  #screen-menu .ctrl-row span:last-child {
    text-align: left;
  }
}

/* Hub and HUD polish */
#screen-hub {
  /* remap --cyan → amber for entire hub screen */
  --cyan:      #d4a843;
  --cyan-dim:  rgba(200, 140, 20, 0.45);
  --cyan-glow: rgba(200, 130, 15, 0.20);
  --text:      #c4aa82;
  --dim:       #7a6040;

  padding: 28px 20px 36px;
  background:
    radial-gradient(circle at top, rgba(160, 90, 10, 0.10), transparent 38%),
    linear-gradient(180deg, rgba(8, 5, 2, 0.97), rgba(12, 7, 3, 0.99));
}

.hub-room {
  max-width: 1180px;
  gap: 26px;
}

.hub-header {
  width: 100%;
  padding: 18px 20px 16px;
  border: 1px solid rgba(140, 80, 10, 0.65);
  background:
    linear-gradient(180deg, rgba(20, 12, 4, 0.90), rgba(10, 6, 2, 0.94)),
    radial-gradient(circle at top left, rgba(180, 100, 10, 0.12), transparent 42%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.hub-title {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 8px;
}

.hub-subtitle {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8a6e48;
}

.hub-stats-bar {
  width: 100%;
  max-width: 860px;
  justify-content: center;
  background: rgba(14, 9, 3, 0.92);
  border: 1px solid rgba(120, 68, 8, 0.58);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.50);
}

.hub-stat-item {
  flex: 1;
  gap: 10px;
  padding: 16px 26px;
}

.hub-stat-label {
  font-size: 8px;
  color: #7a5e38;
  letter-spacing: 2px;
}

.hub-stat-val {
  font-size: 24px;
}

.hub-main {
  width: 100%;
  align-items: stretch;
  gap: 22px;
  flex-wrap: nowrap;
}

.hub-panel {
  width: min(520px, 100%);
  max-width: none;
  max-height: none;
  border: 1px solid rgba(31, 111, 70, 0.7);
  background:
    linear-gradient(180deg, rgba(4, 16, 12, 0.92), rgba(7, 10, 16, 0.95)),
    radial-gradient(circle at top, rgba(0, 255, 136, 0.08), transparent 46%);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

.panel-header {
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(10, 43, 26, 0.95), rgba(8, 28, 18, 0.75));
  color: #e9fff2;
  font-size: 11px;
  letter-spacing: 3px;
  text-align: left;
}

.upgrades-list,
.mission-list {
  padding: 16px;
  gap: 14px;
}

.mission-card,
.upgrade-card {
  border-radius: 0;
}

.mission-card {
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(107, 139, 120, 0.3);
  background: linear-gradient(180deg, rgba(11, 17, 22, 0.82), rgba(9, 14, 18, 0.94));
}

.mission-card:hover:not(.locked) {
  border-color: rgba(0, 255, 136, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.12), 0 12px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.mis-info {
  gap: 8px;
  flex: 1;
}

.mis-name {
  font-size: 11px;
  letter-spacing: 1px;
}

.mis-desc {
  font-size: 8px;
  line-height: 1.9;
  color: #84a08e;
}

.btn-deploy,
.btn-buy {
  min-width: 118px;
  padding: 10px 12px;
  font-size: 9px;
  letter-spacing: 2px;
}

.volt-header {
  padding: 12px 14px 10px;
  padding-left: 12px;
}

.volt-stats {
  padding: 0 14px;
}

.hub-bottom {
  max-width: none;
  padding: 12px 16px 0;
  border-top: 1px solid rgba(31, 111, 70, 0.32);
}

.hub-vs {
  padding: 10px 12px;
  border: 1px solid rgba(31, 111, 70, 0.45);
  background: rgba(4, 16, 12, 0.58);
}

.hub-vs-label {
  font-size: 8px;
  color: #84a08e;
}

.btn-ach-open,
.btn-back {
  min-height: 42px;
}

.btn-back {
  border: 1px solid rgba(255, 60, 85, 0.42);
  padding: 10px 18px;
}

.bottom-bar {
  padding: 14px 20px;
  border-top: 1px solid rgba(31, 111, 70, 0.48);
  background:
    linear-gradient(180deg, rgba(4, 16, 12, 0.94), rgba(7, 12, 16, 0.96)),
    radial-gradient(circle at center, rgba(0, 255, 136, 0.06), transparent 42%);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.32);
}

.time-block,
.tick-display,
.btn-esc {
  border: 1px solid rgba(31, 111, 70, 0.34);
  background: rgba(5, 14, 12, 0.76);
}

.time-block {
  min-width: 170px;
  padding: 10px 12px;
  justify-content: center;
}

.time-label-text {
  font-size: 8px;
  letter-spacing: 2px;
}

.time-status {
  font-size: 10px;
}

.tick-display {
  min-width: 120px;
  padding: 10px 14px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 2px;
}

.btn-esc {
  min-width: 84px;
  padding: 10px 14px;
  font-size: 8px;
  letter-spacing: 2px;
  box-shadow: none;
}

.btn-esc:hover {
  background: rgba(255, 255, 255, 0.04);
}

.panel-name {
  font-size: 10px;
  letter-spacing: 2px;
}

.panel-controls {
  font-size: 7px;
  color: #7c9989;
  line-height: 1.8;
}

.action-badge,
.clock-display {
  border: 1px solid rgba(31, 111, 70, 0.34);
  background: rgba(5, 14, 12, 0.7);
}

.action-badge {
  padding: 8px 10px;
}

.clock-display {
  padding: 10px 12px;
}

@media (max-width: 1000px) {
  .hub-main {
    flex-wrap: wrap;
  }

  .hub-panel {
    width: 100%;
  }

  .hub-bottom {
    justify-content: center;
  }
}


/* Simple hub button between panels */
#hub-btn-strip {
  width: auto;
  padding: 0 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#btn-open-hub {
  writing-mode: horizontal-tb;
  transform: none;
  min-width: 54px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 136, 0.24);
  background: rgba(0, 12, 10, 0.86);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.28);
  box-shadow: 2px 2px 0 #000;
  opacity: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#btn-open-hub:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.5);
  color: #eafff2;
}

/* Hub button next to inventory */
#hub-btn-strip { display: none !important; }

.panel-hub-btn {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  background: #00140f;
  border: 1px solid rgba(0,255,136,0.28);
  color: var(--cyan);
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}

.panel-hub-btn:hover {
  background: rgba(0,255,136,0.08);
  border-color: rgba(0,255,136,0.52);
  color: #eafff2;
}

/* Floor navigation */
#floor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}
#floor-nav button {
  flex: 0 0 auto;
  width: 32px;
  height: 28px;
  background: #00140f;
  border: 1px solid rgba(0,255,136,0.3);
  color: #00ff88;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  line-height: 1;
}
#floor-nav button:hover {
  background: rgba(0,255,136,0.08);
  border-color: rgba(0,255,136,0.52);
  color: #eafff2;
}
#floor-nav-label {
  color: #00ff88;
  font-size: 13px;
  font-family: monospace;
  min-width: 28px;
  text-align: center;
  letter-spacing: 1px;
}

/* Unified gameplay button skin */
#btn-inventory,
.panel-hub-btn,
.btn-wipe-inline,
.btn-tutorial-inline,
#inv-forge-btn,
#inv-close-btn,
#forge-action-btn,
#slot-claim-btn,
.btn-ach-close,
.btn-primary,
.btn-secondary {
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0, 14, 16, 0.94), rgba(0, 8, 10, 0.98));
  border: 1px solid rgba(0, 255, 136, 0.28);
  color: #cffff0;
  font-family: var(--font);
  box-shadow: 2px 2px 0 #000, inset 0 0 0 1px rgba(255,255,255,0.03);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.18);
}

#btn-inventory:hover,
.panel-hub-btn:hover,
.btn-wipe-inline:hover,
.btn-tutorial-inline:hover,
#inv-forge-btn:hover,
#inv-close-btn:hover,
#forge-action-btn:hover:not(:disabled),
#slot-claim-btn:hover,
.btn-ach-close:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(0, 22, 18, 0.96), rgba(0, 10, 10, 0.99));
  border-color: rgba(0, 255, 136, 0.56);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.34);
}

#btn-inventory,
.panel-hub-btn,
.btn-wipe-inline,
.btn-tutorial-inline {
  min-height: 34px;
}

#btn-inventory {
  gap: 0;
  justify-content: center;
}

.inv-btn-icon,
.inv-btn-label,
.inv-btn-chips {
  color: inherit;
}

.inv-btn-label {
  flex: 0 1 auto;
  letter-spacing: 1px;
}

.inv-btn-chips {
  color: #ffd84d;
  text-shadow: 0 0 8px rgba(255, 216, 77, 0.2);
}


/* Inventory and terminal button parity */
#btn-inventory,
#btn-open-hub {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin-top: 4px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
  transform: none;
  border-radius: 0;
  border: 1px solid rgba(0, 255, 136, 0.28);
  background: linear-gradient(180deg, rgba(0, 14, 16, 0.94), rgba(0, 8, 10, 0.98));
  color: #cffff0;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.18);
  box-shadow: 2px 2px 0 #000, inset 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 1;
  cursor: pointer;
}

#btn-inventory:hover,
#btn-open-hub:hover {
  background: linear-gradient(180deg, rgba(0, 22, 18, 0.96), rgba(0, 10, 10, 0.99));
  border-color: rgba(0, 255, 136, 0.56);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.34);
}

#btn-inventory {
  gap: 0;
}

#btn-inventory .inv-btn-label {
  flex: 0 1 auto;
  color: inherit;
  letter-spacing: inherit;
}


/* Inventory item count badge reposition */
.inv-slot-qty {
  top: 4px;
  right: 4px;
  bottom: auto;
  padding: 1px 4px;
  min-width: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 10, 14, 0.88);
  font-size: 9px;
  text-align: center;
  z-index: 3;
}


/* Teleport confirm overlay */
#teleport-confirm-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 58;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
#teleport-confirm-overlay.active { display: flex; }

#teleport-confirm-panel {
  width: min(420px, calc(100vw - 48px));
  padding: 20px 22px 18px;
  background: linear-gradient(180deg, rgba(2, 16, 18, 0.98), rgba(1, 8, 10, 0.98));
  border: 1px solid rgba(0, 255, 200, 0.42);
  box-shadow: 0 0 38px rgba(0, 255, 220, 0.18), 4px 4px 0 #000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.teleport-confirm-kicker {
  color: #7dfff2;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 255, 220, 0.22);
}

.teleport-confirm-title {
  color: #eafffb;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 255, 220, 0.2);
}

.teleport-confirm-text {
  color: rgba(210, 255, 247, 0.86);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

.teleport-confirm-actions {
  display: flex;
  gap: 10px;
}

#teleport-confirm-yes,
#teleport-confirm-no {
  flex: 1;
  min-height: 36px;
}

.teleport-confirm-hint {
  color: rgba(125, 255, 242, 0.74);
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Hash Crack Overlay ---------------------------------------- */
#crack-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: crackOverlayIn 0.18s ease-out;
}

@keyframes crackOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#crack-panel {
  position: relative;
  background: #04060f;
  border: 1px solid #ff8800;
  box-shadow: 0 0 0 1px #1a0800, 0 0 32px rgba(255,136,0,0.55), 0 0 80px rgba(255,60,0,0.18), inset 0 0 60px rgba(255,80,0,0.05);
  padding: 28px 32px 28px;
  width: 620px;
  max-width: 96vw;
  font-family: 'VT323', monospace;
  overflow: hidden;
  animation: crackPanelIn 0.22s cubic-bezier(0.2,0.9,0.4,1);
}

@keyframes crackPanelIn {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

#crack-panel.crack-success-flash {
  animation: crackFlash 0.4s ease-out;
}

@keyframes crackFlash {
  0%   { box-shadow: 0 0 0 1px #1a0800, 0 0 32px rgba(255,136,0,0.55), 0 0 80px rgba(255,60,0,0.18), inset 0 0 60px rgba(255,80,0,0.05); }
  40%  { box-shadow: 0 0 0 3px #00ff88, 0 0 60px rgba(0,255,136,0.9), 0 0 120px rgba(0,255,80,0.5), inset 0 0 80px rgba(0,255,100,0.2); }
  100% { box-shadow: 0 0 0 1px #00ff88, 0 0 32px rgba(0,255,136,0.4), inset 0 0 40px rgba(0,255,80,0.06); }
}

.crack-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0,0,0,0.18) 3px, rgba(0,0,0,0.18) 4px
  );
  z-index: 1;
  animation: crackScanMove 6s linear infinite;
}

@keyframes crackScanMove {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}

.crack-header {
  position: relative;
  z-index: 2;
  color: #ff8800;
  font-size: 30px;
  letter-spacing: 5px;
  text-align: center;
  border-bottom: 1px solid #ff880044;
  padding: 6px 0 14px;
  margin-bottom: 14px;
  text-shadow: 0 0 14px rgba(255,136,0,0.8);
}

.crack-header-bracket {
  color: #ff440066;
}

.crack-phase-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1a0800;
  font-size: 18px;
}

.crack-phase-dot {
  color: #ff8800;
  font-size: 16px;
  animation: crackDotBlink 0.35s ease-in-out infinite alternate;
}

.crack-phase-dot.success {
  color: #00ff88;
  animation: none;
}

@keyframes crackDotBlink {
  from { opacity: 0.3; }
  to   { opacity: 1; text-shadow: 0 0 8px #ff8800; }
}

.crack-phase-lbl {
  color: #ffaa44;
  letter-spacing: 3px;
  font-size: 20px;
}

.crack-section-lbl {
  position: relative;
  z-index: 2;
  color: #664422;
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 16px;
  margin-bottom: 0;
  padding: 4px 0 5px;
  display: block;
}

.crack-hash {
  position: relative;
  z-index: 2;
  font-family: monospace;
  font-size: 13px;
  word-break: break-all;
  background: #060606;
  padding: 10px 12px;
  border: 1px solid #2a1200;
  line-height: 1.6;
  min-height: 44px;
  display: block;
}

.crack-hash-target {
  color: #7a2200;
}

.crack-hash-current {
  color: #ff8800;
}

.crack-hash-current.matched {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.6);
  border-color: #00ff8844;
}

.crack-stream-wrap {
  position: relative;
  z-index: 2;
  height: 42px;
  overflow: hidden;
  background: #030303;
  border: 1px solid #1a0800;
  margin: 14px 0;
}

.crack-stream {
  font-family: monospace;
  font-size: 11px;
  color: #ff440055;
  white-space: nowrap;
  overflow: hidden;
  padding: 5px 8px;
  line-height: 1.5;
  animation: crackStreamScroll 0.8s linear infinite;
}

.crack-stream div {
  color: #ff6600aa;
}

@keyframes crackStreamScroll {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}

.crack-bar-wrap {
  position: relative;
  z-index: 2;
  height: 16px;
  background: #0d0500;
  border: 1px solid #ff880033;
  margin: 14px 0 10px;
  overflow: hidden;
}

.crack-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cc2200, #ff6600, #ffcc00);
  box-shadow: 0 0 12px rgba(255,120,0,0.9), inset 0 0 8px rgba(255,200,0,0.3);
  transition: width 0.06s linear;
}

.crack-bar-pct {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #ff8800cc;
  font-family: monospace;
  pointer-events: none;
}

.crack-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  color: #664422;
  margin-top: 6px;
  margin-bottom: 14px;
  padding: 6px 0 12px;
  border-bottom: 1px solid #2a1200;
}

.crack-mono {
  color: #ff8800;
  font-family: monospace;
  font-size: 15px;
}

.crack-status {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 28px;
  color: #ff8800;
  letter-spacing: 6px;
  margin-top: 0;
  padding: 12px 0 6px;
  border-top: 1px solid #2a1200;
  display: block;
  text-shadow: 0 0 12px rgba(255,136,0,0.7);
  animation: crackPulse 0.45s ease-in-out infinite alternate;
}

.crack-status.cracked {
  color: #00ff88;
  text-shadow: 0 0 18px rgba(0,255,136,0.9), 0 0 40px rgba(0,255,80,0.4);
  animation: crackSuccessPop 0.3s ease-out forwards;
}

@keyframes crackSuccessPop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.crack-code-wrap {
  position: relative;
  z-index: 2;
  background: #080410;
  border: 1px solid #ff8800aa;
  padding: 12px 16px 14px;
  margin: 10px 0 14px;
  text-align: center;
  animation: crackCodeAppear 0.3s cubic-bezier(0.2,0.9,0.4,1);
}

.crack-code-wrap.failed {
  border-color: #ff2200;
  background: #100404;
}

.crack-code-wrap.success {
  border-color: #00ff88;
  background: #011008;
}

@keyframes crackCodeAppear {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes crackCodeShake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.crack-code-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: #ff8800;
  padding: 4px 0 12px;
  text-shadow: 0 0 8px rgba(255,136,0,0.6);
}

.crack-code-digits {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.crack-digit {
  width: 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-family: 'VT323', monospace;
  border: 2px solid #ff8800aa;
  background: #0a0408;
  color: #ff8800;
  text-shadow: 0 0 12px rgba(255,136,0,0.8);
  transition: border-color 0.1s, color 0.1s, background 0.1s;
}

.crack-digit.correct {
  border-color: #00ff88;
  color: #00ff88;
  background: #001a0a;
  text-shadow: 0 0 14px rgba(0,255,136,0.9);
}

.crack-digit.wrong {
  border-color: #ff2200;
  color: #ff2200;
  background: #1a0000;
  animation: crackCodeShake 0.25s ease-out;
}

.crack-code-typed-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  padding: 6px 0 4px;
}

.crack-code-typed-lbl {
  color: #553311;
  letter-spacing: 2px;
}

.crack-code-typed {
  color: #ff8800;
  font-family: monospace;
  font-size: 20px;
  letter-spacing: 4px;
  min-width: 60px;
  text-align: left;
}

.crack-hold-wrap {
  position: relative;
  z-index: 2;
  background: #080410;
  border: 1px solid #ff8800aa;
  padding: 12px 16px 14px;
  margin: 10px 0 14px;
  text-align: center;
  animation: crackCodeAppear 0.3s cubic-bezier(0.2,0.9,0.4,1);
}

.crack-hold-wrap.failed {
  border-color: #ff2200;
  background: #100404;
}

.crack-hold-wrap.success {
  border-color: #00ff88;
  background: #011008;
}

.crack-hold-track {
  position: relative;
  height: 40px;
  background: #0a0408;
  border: 1px solid #3a1800;
  margin: 4px 0 12px;
  overflow: hidden;
}

.crack-hold-zone {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(0, 255, 80, 0.18);
  border-left: 2px solid #00ff5588;
  border-right: 2px solid #00ff5588;
  transition: background 0.1s;
  z-index: 1;
}

.crack-hold-zone.lit {
  background: rgba(0, 255, 80, 0.38);
  border-color: #00ff88;
  box-shadow: inset 0 0 12px rgba(0,255,80,0.3);
}

.crack-hold-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cc2200, #ff6600, #ffdd00);
  box-shadow: 2px 0 14px rgba(255,120,0,0.9);
  transition: width 0.016s linear;
  z-index: 2;
}

.crack-hold-needle {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 0 8px #fff, 0 0 16px rgba(255,200,100,0.8);
  z-index: 3;
  pointer-events: none;
}

.crack-hold-hint {
  font-size: 18px;
  letter-spacing: 3px;
  color: #ff8800;
  padding: 4px 0 2px;
  text-shadow: 0 0 8px rgba(255,136,0,0.5);
  animation: crackPulse 0.5s ease-in-out infinite alternate;
}

.crack-hold-hint.in-zone {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0,255,136,0.8);
}

.crack-hold-hint.done {
  animation: none;
}

/* ── TAP puzzle ───────────────────────────────────── */
.crack-tap-wrap {
  position: relative;
  z-index: 2;
  background: #080410;
  border: 1px solid #ff8800aa;
  padding: 12px 16px 14px;
  margin: 10px 0 14px;
  text-align: center;
  animation: crackCodeAppear 0.3s cubic-bezier(0.2,0.9,0.4,1);
}
.crack-tap-wrap.failed  { border-color: #ff2200; background: #100404; }
.crack-tap-wrap.success { border-color: #00ff88; background: #011008; }

.crack-tap-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 4px;
}
.crack-tap-num {
  font-size: 52px;
  color: #ff8800;
  text-shadow: 0 0 16px rgba(255,136,0,0.8);
  line-height: 1;
  transition: color 0.1s;
}
.crack-tap-num.done { color: #00ff88; text-shadow: 0 0 16px rgba(0,255,136,0.8); }
.crack-tap-sep  { font-size: 28px; color: #553311; }
.crack-tap-goal { font-size: 28px; color: #884422; }

/* ── PATTERN puzzle ───────────────────────────────── */
.crack-pattern-wrap {
  position: relative;
  z-index: 2;
  background: #080410;
  border: 1px solid #ff8800aa;
  padding: 12px 16px 14px;
  margin: 10px 0 14px;
  text-align: center;
  animation: crackCodeAppear 0.3s cubic-bezier(0.2,0.9,0.4,1);
}
.crack-pattern-wrap.failed  { border-color: #ff2200; background: #100404; }
.crack-pattern-wrap.success { border-color: #00ff88; background: #011008; }

.crack-pattern-seq {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 10px;
}
.crack-pattern-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid #ff8800aa;
  background: #0a0408;
  color: #ff8800;
  text-shadow: 0 0 10px rgba(255,136,0,0.7);
  transition: border-color 0.1s, color 0.1s, background 0.1s;
}
.crack-pattern-arrow.correct {
  border-color: #00ff88;
  color: #00ff88;
  background: #001a0a;
  text-shadow: 0 0 12px rgba(0,255,136,0.9);
}
.crack-pattern-arrow.wrong {
  border-color: #ff2200;
  color: #ff2200;
  background: #1a0000;
  animation: crackCodeShake 0.25s ease-out;
}
.crack-pattern-input {
  font-size: 14px;
  color: #664422;
  letter-spacing: 2px;
  padding: 4px 0 2px;
}

@keyframes crackPulse {
  from { opacity: 0.5; }
  to   { opacity: 1; text-shadow: 0 0 14px #ff8800; }
}



/* ── Terminal font +5px ─────────────────────────────────────────── */
.hub-ov-title        { font-size: 21px; }
.hub-ov-panel .volt-name      { font-size: 16px; }
.hub-ov-panel .volt-lvl-badge { font-size: 13px; }
.hub-ov-panel .volt-stat-lbl  { font-size: 12px; }
.hub-ov-panel .volt-stat-val  { font-size: 14px; }
.hub-ov-panel .btn-volt-install { font-size: 15px; }
.hub-ov-panel .upg-arrow      { font-size: 14px; }

/* ── Terminal letter-spacing +2px ───────────────────────────────── */
.hub-ov-title                  { letter-spacing: 6px; }
.hub-ov-panel .volt-name       { letter-spacing: 4px; }
.hub-ov-panel .volt-stat-lbl   { letter-spacing: 3px; }
.hub-ov-panel .btn-volt-install { letter-spacing: 5px; }

/* ── Terminal pixel-art bold effect ────────────────────────────── */
.hub-ov-panel .volt-name {
  -webkit-text-stroke: 0.5px currentColor;
  text-shadow: 1px 0 0 currentColor, 0 0 12px rgba(0,255,136,0.5);
}
.hub-ov-panel .volt-stat-lbl {
  -webkit-text-stroke: 0.4px currentColor;
}
.hub-ov-panel .volt-stat-val {
  -webkit-text-stroke: 0.5px currentColor;
}
.hub-ov-panel .btn-volt-install {
  -webkit-text-stroke: 0.5px currentColor;
  text-shadow: 1px 0 0 currentColor, 0 0 10px rgba(0,255,136,0.6);
}
.hub-ov-title {
  -webkit-text-stroke: 0.5px currentColor;
  text-shadow: 1px 0 0 currentColor, 0 0 16px var(--orange), 2px 2px 0 #000;
}

/* ── Terminal pixel-art CHUNKY effect ──────────────────────────── */
.hub-ov-panel .volt-name {
  -webkit-text-stroke: 2px currentColor;
  text-shadow:
    2px 0 0 currentColor,
    -1px 0 0 currentColor,
    0 1px 0 currentColor,
    0 -1px 0 currentColor,
    0 0 14px rgba(0,255,136,0.6);
}
.hub-ov-panel .volt-stat-lbl {
  -webkit-text-stroke: 1.5px currentColor;
  text-shadow: 1px 0 0 currentColor, -1px 0 0 currentColor;
}
.hub-ov-panel .volt-stat-val {
  -webkit-text-stroke: 1.5px currentColor;
  text-shadow: 1px 0 0 currentColor, -1px 0 0 currentColor;
}
.hub-ov-panel .btn-volt-install {
  -webkit-text-stroke: 2px currentColor;
  text-shadow:
    2px 0 0 currentColor,
    -1px 0 0 currentColor,
    0 1px 0 currentColor,
    0 -1px 0 currentColor,
    0 0 12px rgba(0,255,136,0.7);
}
.hub-ov-title {
  -webkit-text-stroke: 2px currentColor;
  text-shadow:
    2px 0 0 currentColor,
    -1px 0 0 currentColor,
    0 1px 0 currentColor,
    0 -1px 0 currentColor,
    0 0 20px var(--orange),
    2px 2px 0 #000;
}

/* ── Terminal pixel-art OUTLINE (reduced) ──────────────────────── */
.hub-ov-panel .volt-name {
  -webkit-text-stroke: 1px currentColor;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.5),
    0 0 14px rgba(0,255,136,0.6);
}
.hub-ov-panel .volt-stat-lbl {
  -webkit-text-stroke: 0.8px currentColor;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
}
.hub-ov-panel .volt-stat-val {
  -webkit-text-stroke: 0.8px currentColor;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
}
.hub-ov-panel .btn-volt-install {
  -webkit-text-stroke: 1px currentColor;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.5),
    0 0 12px rgba(0,255,136,0.7);
}
.hub-ov-title {
  -webkit-text-stroke: 1px currentColor;
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.9),
    -1px -1px 0 rgba(0,0,0,0.5),
    0 0 20px var(--orange),
    2px 2px 0 #000;
}

/* ── Locked card red outline restore ───────────────────────────── */
.hub-ov-panel .upgrade-card.upg-locked .volt-name {
  -webkit-text-stroke: 0 !important;
  color: #ffffff !important;
  text-shadow:
    -1px -1px 0 #cc0000,
     1px -1px 0 #cc0000,
    -1px  1px 0 #cc0000,
     1px  1px 0 #cc0000,
    0 0 8px #ff224455 !important;
}

/* ── Terminal: thicker letters + scrollable ────────────────────── */
.hub-ov-panel .volt-name {
  -webkit-text-stroke: 1.5px currentColor;
}
.hub-ov-panel .volt-stat-lbl {
  -webkit-text-stroke: 1.2px currentColor;
}
.hub-ov-panel .volt-stat-val {
  -webkit-text-stroke: 1.2px currentColor;
}
.hub-ov-panel .btn-volt-install {
  -webkit-text-stroke: 1.5px currentColor;
}
.hub-ov-title {
  -webkit-text-stroke: 1.5px currentColor;
}

.hub-ov-upgrades {
  overflow-y: auto;
  max-height: 65vh;
  padding-right: 4px;
}
.hub-ov-upgrades::-webkit-scrollbar       { width: 3px; }
.hub-ov-upgrades::-webkit-scrollbar-track { background: transparent; }
.hub-ov-upgrades::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.35); }

/* ── Compact skill headers ──────────────────────────────────────── */
.hub-ov-panel .volt-header {
  padding: 7px 12px 7px 10px;
}
.hub-ov-panel .upgrade-card {
  margin-bottom: 1px;
}
.hub-ov-upgrades {
  gap: 2px;
}

/* ── 3px gap between skills ─────────────────────────────────────── */
.hub-ov-upgrades {
  gap: 3px;
}

/* ── Scan bar below INSTALL button ──────────────────────────────── */
.hub-ov-panel .volt-header      { order: 1; }
.hub-ov-panel .volt-stats       { order: 2; }
.hub-ov-panel .btn-volt-install { order: 3; }
.hub-ov-panel .upg-scan-bar {
  order: 4;
  position: static;
  width: 0;
  height: 3px;
  margin: 2px 0 0;
}
.hub-ov-panel .upg-status       { order: 5; }

/* ── Stat values thinner stroke ─────────────────────────────────── */
.hub-ov-panel .volt-stat-val { -webkit-text-stroke: 0.2px currentColor; }
.hub-ov-panel .volt-lvl-badge { -webkit-text-stroke: 0.2px currentColor; }

/* ── Scan bar 2px lower ─────────────────────────────────────────── */
.hub-ov-panel .upg-scan-bar { margin-top: 4px; }

/* ── Scan bar 2px more lower ────────────────────────────────────── */
.hub-ov-panel .upg-scan-bar { margin-top: 6px; }

/* ── COMBINED REWARDS BUTTON ── */
#btn-rewards {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
#btn-rewards:hover { background: rgba(0,255,136,0.1); }

/* ── COMBINED REWARDS MODAL ── */
.rewards-modal {
  position: relative;
  background:
    linear-gradient(#00ff88, #00ff88) top left    / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) top left    / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) top right   / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) top right   / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom left / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom left / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom right/ 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom right/ 2px 28px no-repeat,
    linear-gradient(160deg, #050e07 0%, #030710 60%, #060a04 100%);
  border: 1px solid rgba(0,255,136,0.22);
  box-shadow: 0 0 80px rgba(0,255,136,0.15), 0 40px 100px rgba(0,0,0,0.9);
  padding: 32px 32px 28px;
  width: min(820px, 97vw);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,136,0.3) transparent;
  font-family: 'Press Start 2P', monospace;
}
.rewards-modal::-webkit-scrollbar { width: 4px; }
.rewards-modal::-webkit-scrollbar-track { background: transparent; }
.rewards-modal::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 2px; }
.rewards-modal::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0,255,136,0.018) 3px, rgba(0,255,136,0.018) 4px);
  pointer-events: none; z-index: 0;
}
.rewards-section, .rewards-divider, .rewards-modal .daily-actions { position: relative; z-index: 1; }

.rewards-section { margin-bottom: 0; }

.rewards-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.15) 30%, rgba(255,100,50,0.15) 70%, transparent);
  margin: 6px 0;
  position: relative; z-index: 1;
}

/* Section collapse */
.rewards-sec-body { overflow: hidden; transition: max-height 0.35s ease, opacity 0.3s ease; max-height: 600px; opacity: 1; }
.rewards-sec-body.sec-collapsed { max-height: 0 !important; opacity: 0; }
.sec-arrow {
  font-size: 10px; color: #444;
  transition: transform 0.25s, color 0.15s;
  flex-shrink: 0;
}
.rewards-sec-header.has-claim .sec-arrow { color: rgba(0,255,136,0.8); }
.rewards-sec-kill.has-claim .sec-arrow   { color: rgba(255,100,50,0.8); }
.rewards-sec-energy.has-claim .sec-arrow { color: rgba(0,200,255,0.8); }
.sec-claim-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0,255,136,0.8);
  animation: dotPulse 1s ease-in-out infinite;
  flex-shrink: 0;
}
.sec-claim-dot-kill  { background: #ff6633; box-shadow: 0 0 8px rgba(255,100,50,0.8); }
.sec-claim-dot-energy { background: #00ccff; box-shadow: 0 0 8px rgba(0,200,255,0.8); }
.sec-claim-dot.hidden { display: none; }
@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

/* Section headers */
.rewards-sec-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(120,120,120,0.18);
  background: rgba(40,40,40,0.18);
  cursor: pointer; user-select: none;
  transition: background 0.15s, border-color 0.15s;
}
.rewards-sec-header:hover { background: rgba(80,80,80,0.18); border-color: rgba(150,150,150,0.3); }
/* Has claimable reward */
.rewards-sec-header.has-claim { border-color: rgba(0,255,136,0.55) !important; background: rgba(0,255,136,0.08) !important; }
.rewards-sec-kill.has-claim   { border-color: rgba(255,100,50,0.55) !important; background: rgba(255,100,50,0.08) !important; }
.rewards-sec-energy.has-claim { border-color: rgba(0,200,255,0.55) !important; background: rgba(0,200,255,0.08) !important; }
.sec-claim-tag {
  margin-left: auto;
  font-size: 7px; letter-spacing: 2px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  opacity: 0.9;
}
.sec-claim-tag.hidden { display: none; }
.rewards-sec-header .sec-claim-tag   { color: #00ff88; }
.rewards-sec-kill .sec-claim-tag     { color: #ff6633; }
.rewards-sec-energy .sec-claim-tag   { color: #00ccff; }
.rewards-sec-kill        { border-color: rgba(120,120,120,0.18); background: rgba(40,40,40,0.18); }
.rewards-sec-kill:hover  { background: rgba(80,80,80,0.18);      border-color: rgba(150,150,150,0.3); }
.rewards-sec-energy      { border-color: rgba(120,120,120,0.18); background: rgba(40,40,40,0.18); }
.rewards-sec-energy:hover{ background: rgba(80,80,80,0.18);      border-color: rgba(150,150,150,0.3); }
.rewards-sec-title  { font-size: 12px; letter-spacing: 4px; color: #555; text-shadow: none; transition: color 0.15s, text-shadow 0.15s; }
.rewards-sec-header.has-claim .rewards-sec-title { color: #e8ffe8; text-shadow: 0 0 20px rgba(0,255,136,0.4); }
.rewards-sec-kill.has-claim .rewards-sec-title    { color: #ffe8e0; text-shadow: 0 0 20px rgba(255,100,50,0.4); }
.rewards-sec-energy.has-claim .rewards-sec-title  { color: #d0f8ff; text-shadow: 0 0 20px rgba(0,200,255,0.4); }
.rewards-sec-badge  {
  margin-left: auto;
  background: #00ff88; color: #000;
  font-size: 7px; padding: 4px 11px; letter-spacing: 3px;
  box-shadow: 0 0 14px rgba(0,255,136,0.5);
}
.rewards-kill-bonus-tag {
  width: 100%;
  font-size: 7px;
  letter-spacing: 3px;
  color: rgba(255,102,51,0.6);
  margin-top: 2px;
}
.rewards-sec-kill .rewards-sec-kicker { color: rgba(255,100,50,0.4); }
.kill-sec-badge { background: #ff6633; box-shadow: 0 0 16px rgba(255,100,50,0.5); }

/* ── LASER SECTION ── */
.rewards-sec-laser.has-claim { border-color: rgba(68,170,255,0.55) !important; background: rgba(68,170,255,0.08) !important; }
.rewards-sec-laser.has-claim .sec-arrow { color: rgba(68,170,255,0.8); }
.rewards-sec-laser .sec-claim-tag   { color: #44aaff; }
.rewards-sec-laser      { border-color: rgba(120,120,120,0.18); background: rgba(40,40,40,0.18); }
.rewards-sec-laser:hover{ background: rgba(80,80,80,0.18);      border-color: rgba(150,150,150,0.3); }
.rewards-sec-laser.has-claim .rewards-sec-title  { color: #d0e8ff; text-shadow: 0 0 20px rgba(68,170,255,0.4); }
.laser-sec-badge { background: #44aaff; color: #000; box-shadow: 0 0 16px rgba(68,170,255,0.5); }
.laser-progress-bar { background: rgba(68,170,255,0.08) !important; }
.laser-progress-fill { background: linear-gradient(90deg, #0044aa, #44aaff) !important; }
.laser-progress-label { color: #2288dd !important; }
.laser-tier-card {
  background: linear-gradient(170deg, #00121a 0%, #02101a 55%, #00141a 100%);
  border: 1px solid #0a3a4a;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; align-items: stretch;
  height: 140px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 0 0 1px rgba(68,170,255,0.05), 0 3px 12px rgba(0,0,0,0.7);
  flex: 0 0 calc((100% - 6 * 8px) / 7);
  min-width: calc((100% - 6 * 8px) / 7);
}
.laser-tier-card::after {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(68,170,255,0.05);
  pointer-events: none; z-index: 0;
}
.laser-tier-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #004488 40%, #44aaff 50%, #004488 60%, transparent);
  z-index: 1;
}
.laser-tier-card.current {
  border-color: #44aaff !important;
  box-shadow: 0 0 22px rgba(68,170,255,0.45), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(68,170,255,0.18) !important;
}
.laser-tier-num {
  font-size: 9px; color: #44aaff;
  text-align: center; padding: 8px 4px 7px;
  background: rgba(68,170,255,0.07);
  border-bottom: 1px solid rgba(68,170,255,0.12);
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.laser-tier-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 4px 8px;
  font-size: 15px; color: #44aaff;
  font-family: 'Press Start 2P', monospace;
  position: relative; z-index: 1;
}
.laser-tier-label { color: #2288dd !important; border-top-color: rgba(68,170,255,0.2) !important; }
.laser-done { color: rgba(68,170,255,0.5) !important; }
.laser-check { color: rgba(68,170,255,0.45) !important; }
.laser-claim { background: #44aaff !important; border-color: #88ccff !important; box-shadow: 0 0 18px rgba(68,170,255,0.6) !important; }
.laser-claim:hover { background: #88ccff !important; }

/* ── CHEST SECTION ── */
.rewards-sec-chest.has-claim { border-color: rgba(255,170,0,0.55) !important; background: rgba(255,170,0,0.08) !important; }
.rewards-sec-chest.has-claim .sec-arrow { color: rgba(255,170,0,0.8); }
.rewards-sec-chest .sec-claim-tag   { color: #ffaa00; }
.rewards-sec-chest      { border-color: rgba(120,120,120,0.18); background: rgba(40,40,40,0.18); }
.rewards-sec-chest:hover{ background: rgba(80,80,80,0.18);      border-color: rgba(150,150,150,0.3); }
.rewards-sec-chest.has-claim .rewards-sec-title  { color: #ffebcc; text-shadow: 0 0 20px rgba(255,170,0,0.4); }
.chest-sec-badge { background: #ffaa00; color: #000; box-shadow: 0 0 16px rgba(255,170,0,0.5); }
.chest-progress-bar { background: rgba(255,170,0,0.08) !important; }
.chest-progress-fill { background: linear-gradient(90deg, #aa6600, #ffaa00) !important; }
.chest-progress-label { color: #dd9900 !important; }
.chest-tier-card {
  background: linear-gradient(170deg, #1a1200 0%, #1a1002 55%, #1a1400 100%);
  border: 1px solid #4a3a0a;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; align-items: stretch;
  height: 140px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 0 0 1px rgba(255,170,0,0.05), 0 3px 12px rgba(0,0,0,0.7);
  flex: 0 0 calc((100% - 6 * 8px) / 7);
  min-width: calc((100% - 6 * 8px) / 7);
}
.chest-tier-card::after {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(255,170,0,0.05);
  pointer-events: none; z-index: 0;
}
.chest-tier-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #886600 40%, #ffaa00 50%, #886600 60%, transparent);
  z-index: 1;
}
.chest-tier-card.current {
  border-color: #ffaa00 !important;
  box-shadow: 0 0 22px rgba(255,170,0,0.45), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,170,0,0.18) !important;
}
.chest-tier-num {
  font-size: 9px; color: #ffaa00;
  text-align: center; padding: 8px 4px 7px;
  background: rgba(255,170,0,0.07);
  border-bottom: 1px solid rgba(255,170,0,0.12);
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.chest-tier-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 4px 8px;
  font-size: 15px; color: #ffaa00;
  font-family: 'Press Start 2P', monospace;
  position: relative; z-index: 1;
}
.chest-tier-label { color: #dd9900 !important; border-top-color: rgba(255,170,0,0.2) !important; }
.chest-done { color: rgba(255,170,0,0.5) !important; }
.chest-check { color: rgba(255,170,0,0.45) !important; }
.chest-claim { background: #ffaa00 !important; border-color: #ffcc66 !important; box-shadow: 0 0 18px rgba(255,170,0,0.6) !important; }
.chest-claim:hover { background: #ffcc66 !important; }

/* ── ENERGY SECTION ── */

.energy-sec-badge { background: #00ccff; color: #000; box-shadow: 0 0 16px rgba(0,200,255,0.5); }
.rewards-sec-badge.badge-dim { background: rgba(80,80,80,0.25) !important; color: #555 !important; box-shadow: none !important; }
.energy-progress-bar { background: rgba(0,200,255,0.08) !important; }
.energy-progress-fill { background: linear-gradient(90deg, #0066aa, #00ccff) !important; }
.energy-progress-label { color: #0099bb !important; }
.energy-tier-card {
  background: linear-gradient(170deg, #000c12 0%, #020810 55%, #000e14 100%);
  border: 1px solid #0a2a3a;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; align-items: stretch;
  height: 140px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 0 0 1px rgba(0,200,255,0.05), 0 3px 12px rgba(0,0,0,0.7);
  flex: 0 0 calc((100% - 6 * 8px) / 7);
  min-width: calc((100% - 6 * 8px) / 7);
}
.energy-tier-card::after {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(0,200,255,0.05);
  pointer-events: none; z-index: 0;
}
.energy-tier-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #004466 40%, #00ccff 50%, #004466 60%, transparent);
  z-index: 1;
}
.energy-tier-card.current {
  border-color: #00ccff !important;
  box-shadow: 0 0 22px rgba(0,200,255,0.45), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(0,200,255,0.18) !important;
}
.energy-tier-num {
  font-size: 9px; color: #0099bb;
  text-align: center; padding: 8px 4px 7px;
  background: rgba(0,200,255,0.07);
  border-bottom: 1px solid rgba(0,200,255,0.12);
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.energy-tier-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 4px 8px;
  font-size: 15px; color: #00ccff;
  font-family: 'Press Start 2P', monospace;
  position: relative; z-index: 1;
}
.energy-tier-label { color: #0088aa !important; border-top-color: rgba(0,200,255,0.2) !important; }
.energy-done { color: rgba(0,200,255,0.5) !important; }
.energy-check { color: rgba(0,200,255,0.45) !important; }
.energy-claim { background: #00ccff !important; border-color: #66eeff !important; box-shadow: 0 0 18px rgba(0,200,255,0.6) !important; }
.energy-claim:hover { background: #66eeff !important; }
@keyframes epulse {
  0%,100% { box-shadow: 0 0 18px rgba(0,200,255,0.38), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(0,200,255,0.15); }
  50%      { box-shadow: 0 0 44px rgba(0,200,255,0.72), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(0,200,255,0.32); }
}
@keyframes epulseBtn {
  0%,100% { box-shadow: 0 0 14px rgba(0,200,255,0.5), inset 0 0 6px rgba(0,200,255,0.15); }
  50%      { box-shadow: 0 0 28px rgba(0,200,255,0.9), inset 0 0 12px rgba(0,200,255,0.3); }
}

#btn-daily {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid #00ff88;
  color: #00ff88;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
#btn-daily:hover { background: rgba(0,255,136,0.1); }

/* ── Daily Check-In ─────────────────────────────── */
.daily-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
}
.daily-overlay.hidden { display: none; }

.daily-modal {
  position: relative;
  background:
    linear-gradient(#00ff88, #00ff88) top left    / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) top left    / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) top right   / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) top right   / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom left / 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom left / 2px 28px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom right/ 28px 2px no-repeat,
    linear-gradient(#00ff88, #00ff88) bottom right/ 2px 28px no-repeat,
    linear-gradient(160deg, #050e07 0%, #030710 60%, #060a04 100%);
  border: 1px solid rgba(0,255,136,0.22);
  box-shadow:
    0 0 80px rgba(0,255,136,0.2),
    0 0 160px rgba(0,255,136,0.08),
    0 40px 100px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(0,255,136,0.15);
  padding: 40px 36px 32px;
  width: min(760px, 97vw);
  font-family: 'Press Start 2P', monospace;
  overflow: hidden;
}
/* Scanline overlay */
.daily-modal::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(0,255,136,0.022) 3px, rgba(0,255,136,0.022) 4px
  );
  pointer-events: none; z-index: 0;
}
/* Inner content above scanlines */
.daily-header, .daily-grid, .daily-actions { position: relative; z-index: 1; }

/* Header */
.daily-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,255,136,0.12);
  position: relative;
}
.daily-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
}
.daily-kicker {
  font-size: 7px; letter-spacing: 6px; color: rgba(0,255,136,0.35);
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(0,255,136,0.2);
}
.daily-title {
  font-size: 20px; letter-spacing: 6px; color: #e8ffe8;
  text-shadow: 0 0 40px rgba(0,255,136,0.6), 0 0 80px rgba(0,255,136,0.2);
  margin-bottom: 16px;
}
.daily-streak-badge {
  display: inline-block;
  background: #00ff88; color: #000;
  font-size: 9px; padding: 6px 18px; letter-spacing: 4px;
  box-shadow: 0 0 24px rgba(0,255,136,0.6), 0 0 48px rgba(0,255,136,0.2);
  position: relative;
}
.daily-streak-badge::before,
.daily-streak-badge::after {
  content: '◈';
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 8px; color: rgba(0,0,0,0.5);
}
.daily-streak-badge::before { left: 4px; }
.daily-streak-badge::after  { right: 4px; }

/* Grid */
.daily-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 8px; margin-bottom: 28px;
}

/* ── CARD BASE ── */
.daily-day-card {
  background: linear-gradient(170deg, #050e08 0%, #020810 55%, #040c07 100%);
  border: 1px solid #1a3828;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; align-items: stretch;
  height: 140px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 0 0 1px rgba(0,255,136,0.05), 0 3px 12px rgba(0,0,0,0.7);
}
/* Top rarity stripe */
.daily-day-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #1a5530 40%, #0e6038 50%, #1a5530 60%, transparent);
  z-index: 1;
}
/* Inner card frame */
.daily-day-card::after {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(0,255,136,0.06);
  pointer-events: none; z-index: 0;
}

/* Rarity tiers — days 3-4 blue, 5-6 bright green, 7 gold */
.daily-day-card:nth-child(3),
.daily-day-card:nth-child(4) {
  border-color: #1a3860;
  background: linear-gradient(170deg, #050810 0%, #020612 55%, #040810 100%);
}
.daily-day-card:nth-child(3)::before,
.daily-day-card:nth-child(4)::before {
  background: linear-gradient(90deg, transparent, #1a3a70 40%, #2255aa 50%, #1a3a70 60%, transparent);
}
.daily-day-card:nth-child(5),
.daily-day-card:nth-child(6) {
  border-color: #0a6030;
}
.daily-day-card:nth-child(5)::before,
.daily-day-card:nth-child(6)::before {
  background: linear-gradient(90deg, transparent, #0a7030 40%, #00cc66 50%, #0a7030 60%, transparent);
}
.daily-day-card:nth-child(7) {
  border-color: rgba(200,150,30,0.45);
  background: linear-gradient(170deg, #0c0900 0%, #060400 55%, #0a0800 100%);
}
.daily-day-card:nth-child(7)::before {
  background: linear-gradient(90deg, transparent, #8a5500 40%, #ffaa00 50%, #8a5500 60%, transparent);
}

/* ── CARD HEADER BAR ── */
.daily-day-num {
  font-size: 7px; letter-spacing: 2px; color: #3a7040;
  text-align: center;
  padding: 6px 4px 5px;
  background: rgba(0,255,136,0.05);
  border-bottom: 1px solid rgba(0,255,136,0.08);
  position: relative; z-index: 1;
}
.daily-day-card:nth-child(3) .daily-day-num,
.daily-day-card:nth-child(4) .daily-day-num { color: #3a5080; background: rgba(50,100,200,0.06); border-bottom-color: rgba(50,100,200,0.1); }
.daily-day-card:nth-child(7) .daily-day-num { color: #907030; background: rgba(200,150,0,0.07); border-bottom-color: rgba(200,150,0,0.12); }

/* ── CARD ART ZONE ── */
.daily-day-reward {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 9px; padding: 12px 4px 6px;
  position: relative; z-index: 1;
}
.daily-icon-img {
  width: 34px; height: 34px; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 5px rgba(0,255,136,0.35));
}
.daily-day-amt {
  font-size: 13px; color: #66bb88; letter-spacing: 0;
}
.daily-day-card:nth-child(3) .daily-day-amt,
.daily-day-card:nth-child(4) .daily-day-amt { color: #5588bb; }
.daily-day-card:nth-child(5) .daily-day-amt,
.daily-day-card:nth-child(6) .daily-day-amt { color: #44cc77; }
.daily-day-card:nth-child(7) .daily-day-amt { color: #bb8820; }

/* ── CARD FOOTER / BONUS ── */
.daily-day-bonus {
  border-top: 1px solid rgba(255,200,50,0.15);
  padding: 4px 4px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 9px; color: #ddaa33;
  text-shadow: 0 0 8px rgba(255,180,0,0.4);
  background: rgba(200,140,0,0.05);
  position: relative; z-index: 1;
}
.daily-day-bonus span { font-size: 9px; }
.daily-day-bonus .daily-icon-img { width: 18px; height: 18px; filter: drop-shadow(0 0 4px rgba(255,180,0,0.5)); }

/* ── CHECKMARK / LOCK OVERLAY ── */
.daily-day-check {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: rgba(0,255,136,0.45);
  text-shadow: 0 0 14px rgba(0,255,136,0.35);
  z-index: 2;
}

/* ── STATES ── */
.daily-day-card.future { opacity: 0.22; filter: grayscale(0.4); }
.daily-day-card.claimed { filter: saturate(0.2) brightness(0.65); }
.daily-day-card.claimed:nth-child(7) { filter: saturate(0.12) sepia(0.4) brightness(0.55); }

/* ── CURRENT DAY ── */
.daily-day-card.current {
  border-color: #00ff88;
  background: linear-gradient(170deg, #041408 0%, #020c10 55%, #041008 100%);
  box-shadow: 0 0 22px rgba(0,255,136,0.45), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(0,255,136,0.18);
}
.daily-day-card.current::before {
  background: linear-gradient(90deg, transparent, #00aa44 20%, #00ff88 50%, #00aa44 80%, transparent);
  height: 3px;
}
.daily-day-card.current::after { border-color: rgba(0,255,136,0.14); }
.daily-day-card.current .daily-day-num {
  color: #00ff88; background: rgba(0,255,136,0.1); border-bottom-color: rgba(0,255,136,0.2);
}
.daily-day-card.current .daily-day-amt { color: #00ff88; font-size: 15px; }
.daily-day-card.current .daily-icon-img { filter: drop-shadow(0 0 10px rgba(0,255,136,0.65)); }
@keyframes dpulse {
  0%,100% { box-shadow: 0 0 18px rgba(0,255,136,0.38), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(0,255,136,0.14); }
  50%      { box-shadow: 0 0 44px rgba(0,255,136,0.72), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(0,255,136,0.3); }
}

/* Day 7 current — gold */
.daily-day-card:nth-child(7).current {
  border-color: #ffcc44;
  background: linear-gradient(170deg, #0e0900 0%, #060400 55%, #0c0700 100%);
  box-shadow: 0 0 22px rgba(255,200,50,0.5), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,200,50,0.22);
}
.daily-day-card:nth-child(7).current::before {
  background: linear-gradient(90deg, transparent, #aa7700 20%, #ffcc44 50%, #aa7700 80%, transparent);
}
.daily-day-card:nth-child(7).current .daily-day-num { color: #ffcc44; background: rgba(255,180,0,0.1); border-bottom-color: rgba(255,180,0,0.2); }
.daily-day-card:nth-child(7).current .daily-day-amt { color: #ffcc44; font-size: 15px; }
.daily-day-card:nth-child(7).current .daily-icon-img { filter: drop-shadow(0 0 10px rgba(255,180,0,0.7)); }
@keyframes dpulse-gold {
  0%,100% { box-shadow: 0 0 18px rgba(255,200,50,0.4), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,200,50,0.18); }
  50%      { box-shadow: 0 0 44px rgba(255,200,50,0.75), 0 3px 12px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,200,50,0.38); }
}

/* ── PER-CARD CLAIM BUTTON ── */
.card-claim-btn {
  width: 100%; cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; letter-spacing: 2px;
  padding: 9px 4px;
  background: #00ff88; color: #000;
  border: 2px solid #55ffcc;
  box-shadow: 0 0 18px rgba(0,255,136,0.6), inset 0 0 8px rgba(0,255,136,0.2);
  transition: background 0.15s, box-shadow 0.15s;
  position: relative; z-index: 1;
}
.card-claim-btn:hover {
  background: #55ffaa; border-color: #00ff88;
  box-shadow: 0 0 30px rgba(0,255,136,0.85);
}
@keyframes claimPulse {
  0%,100% { box-shadow: 0 0 14px rgba(0,255,136,0.5), inset 0 0 6px rgba(0,255,136,0.15); }
  50%      { box-shadow: 0 0 28px rgba(0,255,136,0.9), inset 0 0 12px rgba(0,255,136,0.3); }
}
.card-claim-done {
  width: 100%; padding: 6px 4px;
  text-align: center; font-size: 12px;
  color: rgba(0,255,136,0.5);
  text-shadow: 0 0 8px rgba(0,255,136,0.3);
  position: relative; z-index: 1;
}
.card-claim-locked {
  width: 100%; height: 27px;
  position: relative; z-index: 1;
}

/* Actions */
.daily-actions {
  display: flex; gap: 12px;
}
.daily-close-btn {
  background: transparent; color: #334a38;
  border: 1px solid #1c3a22; font-family: 'Press Start 2P', monospace;
  font-size: 8px; padding: 16px 20px; cursor: pointer; letter-spacing: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.daily-close-btn:hover { color: #88bb88; border-color: #3a6a40; }

.btn-daily-hub {
  flex-shrink: 0;
  margin: 8px 15px 0;
  background: transparent;
  color: #00ff88;
  border: 1px solid #00ff88;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 10px 8px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.15s;
}
.btn-daily-hub:hover { background: rgba(0,255,136,0.1); }

/* ── KILL REWARDS BUTTON ── */
#btn-kills {
  display: none;
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid #ff6633;
  color: #ff6633;
  font-family: var(--font);
  font-size: 7px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
#btn-kills:hover { background: rgba(255,100,50,0.1); }

/* ── KILL MODAL ── */
.kill-modal {
  position: relative;
  background:
    linear-gradient(#ff6633, #ff6633) top left    / 28px 2px no-repeat,
    linear-gradient(#ff6633, #ff6633) top left    / 2px 28px no-repeat,
    linear-gradient(#ff6633, #ff6633) top right   / 28px 2px no-repeat,
    linear-gradient(#ff6633, #ff6633) top right   / 2px 28px no-repeat,
    linear-gradient(#ff6633, #ff6633) bottom left / 28px 2px no-repeat,
    linear-gradient(#ff6633, #ff6633) bottom left / 2px 28px no-repeat,
    linear-gradient(#ff6633, #ff6633) bottom right/ 28px 2px no-repeat,
    linear-gradient(#ff6633, #ff6633) bottom right/ 2px 28px no-repeat,
    linear-gradient(160deg, #0e0600 0%, #080308 60%, #0a0500 100%);
  border: 1px solid rgba(255,100,50,0.25);
  box-shadow: 0 0 80px rgba(255,100,50,0.2), 0 40px 100px rgba(0,0,0,0.9);
  padding: 40px 36px 32px;
  width: min(760px, 97vw);
  font-family: 'Press Start 2P', monospace;
  overflow: hidden;
}
.kill-modal::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(255,100,50,0.018) 3px, rgba(255,100,50,0.018) 4px);
  pointer-events: none; z-index: 0;
}
.kill-modal .daily-header,
.kill-modal .kill-progress-wrap,
.kill-modal .kill-grid,
.kill-modal .daily-actions { position: relative; z-index: 1; }

.kill-modal .daily-kicker { color: rgba(255,100,50,0.4); }
.kill-modal .daily-title  { text-shadow: 0 0 40px rgba(255,100,50,0.6), 0 0 80px rgba(255,100,50,0.2); }
.kill-modal .daily-streak-badge { background: #ff6633; box-shadow: 0 0 24px rgba(255,100,50,0.6); }
.kill-modal .daily-header::after { background: linear-gradient(90deg, transparent, #ff6633, transparent); }

/* Progress bar */
.kill-progress-wrap {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.kill-progress-bar {
  width: 100%; height: 8px;
  background: rgba(255,100,50,0.1);
  border: 1px solid rgba(255,100,50,0.2);
  position: relative; overflow: hidden;
}
.kill-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #cc3300, #ff6633);
  box-shadow: 0 0 12px rgba(255,100,50,0.6);
  transition: width 0.4s ease;
}
.kill-progress-label {
  font-size: 8px; color: #cc6644; letter-spacing: 2px;
  text-align: center;
}

/* Kill tier grid */
.kill-grid {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 8px; margin-bottom: 28px;
  padding-top: 14px; padding-bottom: 8px;
  overflow-x: auto; overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,100,50,0.3) transparent;
}
.kill-grid::-webkit-scrollbar { height: 4px; }
.kill-grid::-webkit-scrollbar-track { background: transparent; }
.kill-grid::-webkit-scrollbar-thumb { background: rgba(255,100,50,0.3); border-radius: 2px; }
.kill-tier-card {
  flex: 0 0 calc((100% - 6 * 8px) / 7);
  min-width: calc((100% - 6 * 8px) / 7);
}

/* Kill tier card */
.kill-tier-card {
  background: linear-gradient(170deg, #0c0800 0%, #020810 55%, #0a0600 100%);
  border: 1px solid #2a1800;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  display: flex; flex-direction: column; align-items: stretch;
  height: 140px;
  position: relative; overflow: hidden;
  transition: box-shadow 0.25s;
  box-shadow: inset 0 0 0 1px rgba(255,100,50,0.05), 0 3px 12px rgba(0,0,0,0.7);
}
.kill-tier-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #883300 40%, #ff5500 50%, #883300 60%, transparent);
  z-index: 1;
}
.kill-tier-card::after {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid rgba(255,100,50,0.06);
  pointer-events: none; z-index: 0;
}
.kill-tier-num {
  font-size: 9px; color: #cc6644;
  text-align: center; padding: 8px 4px 7px;
  background: rgba(255,100,50,0.07);
  border-bottom: 1px solid rgba(255,100,50,0.12);
  position: relative; z-index: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 3px;
}
.kill-tier-unit { font-size: 6px; color: rgba(255,100,50,0.4); letter-spacing: 1px; }
.kill-tier-mid {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 10px 4px 8px;
  font-size: 15px; color: #ff6633;
  font-family: 'Press Start 2P', monospace;
  position: relative; z-index: 1;
}
.kill-tier-daily-label {
  font-size: 7px; color: rgba(255,100,50,0.55); letter-spacing: 2px;
  border-top: 1px solid rgba(255,100,50,0.18);
  padding-top: 4px; margin-top: 2px;
  width: 100%; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.kill-bonus-word { display: block; }
.kill-tier-check {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: rgba(255,100,50,0.4);
  text-shadow: 0 0 12px rgba(255,100,50,0.3);
  z-index: 2;
}
.kill-tier-card.future  { opacity: 0.2; filter: grayscale(0.5); }
.kill-tier-card.claimed { filter: saturate(0.15) brightness(0.55); }
.kill-tier-card.current {
  border-color: #ff5500;
  background: linear-gradient(170deg, #0e0800 0%, #020810 55%, #0c0600 100%);
  box-shadow: 0 0 22px rgba(255,100,50,0.45), 0 3px 12px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,100,50,0.2);
}
.kill-tier-card.current::before {
  background: linear-gradient(90deg, transparent, #aa3300 20%, #ff5500 50%, #aa3300 80%, transparent);
}
.kill-tier-card.current .kill-tier-num { color: #ff6633; background: rgba(255,100,50,0.12); border-bottom-color: rgba(255,100,50,0.22); }
.kill-tier-card.current .kill-tier-mid { font-size: 17px; color: #ff7744; }
.kill-tier-card.current .kill-tier-daily-label { color: rgba(255,100,50,0.7); }

.energy-tier-card.future  { opacity: 0.22; filter: grayscale(0.4); }
.energy-tier-card.claimed { filter: saturate(0.2) brightness(0.6); }

/* Card-level kill claim button */
.kt-claim {
  width: 100%; cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; letter-spacing: 2px;
  padding: 9px 4px;
  background: #ff6633; color: #000;
  border: 2px solid #ff9966;
  box-shadow: 0 0 18px rgba(255,100,50,0.6), inset 0 0 8px rgba(255,100,50,0.2);
  transition: background 0.15s, box-shadow 0.15s;
  position: relative; z-index: 1;
}
.kt-claim:hover:not(:disabled) { background: #ff9966; border-color: #ff6633; box-shadow: 0 0 30px rgba(255,100,50,0.85); }
.kt-claim:disabled {
  background: transparent; color: #3a1a0a;
  border: 1px solid #2a1008; cursor: default;
  box-shadow: none; animation: none;
  font-size: 7px;
}
@keyframes claimPulseOrange {
  0%,100% { box-shadow: 0 0 14px rgba(255,100,50,0.5), inset 0 0 6px rgba(255,100,50,0.15); }
  50%      { box-shadow: 0 0 28px rgba(255,100,50,0.9), inset 0 0 12px rgba(255,100,50,0.3); }
}
.kt-done {
  width: 100%; padding: 6px 4px;
  text-align: center; font-size: 12px;
  color: rgba(255,100,50,0.5);
  text-shadow: 0 0 8px rgba(255,100,50,0.3);
  position: relative; z-index: 1;
}
@keyframes kpulse {
  0%,100% { box-shadow: 0 0 18px rgba(255,100,50,0.38), 0 14px 30px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,100,50,0.15); }
  50%      { box-shadow: 0 0 44px rgba(255,100,50,0.72), 0 16px 36px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(255,100,50,0.32); }
}

.kill-modal .daily-claim-btn {
  background: #ff6633; color: #000;
  box-shadow: 0 0 24px rgba(255,100,50,0.4);
}
.kill-modal .daily-claim-btn:hover:not(:disabled) {
  background: #ff9966;
  box-shadow: 0 0 36px rgba(255,100,50,0.65);
}
.kill-modal .daily-claim-btn:disabled {
  background: #2a1008; color: #4a2010; box-shadow: none;
}

/* ── AI Agent Panel ─────────────────────────────────────── */
#agent-panel {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 800;
  width: 220px;
  background: rgba(8,8,20,0.92);
  border: 1px solid #223;
  border-radius: 4px;
  padding: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #556;
  pointer-events: all;
  transition: border-color 0.2s;
}
#agent-panel.agent-active {
  border-color: #00e87a;
  box-shadow: 0 0 12px rgba(0,232,122,0.25);
}
.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.agent-title {
  color: #445;
  font-size: 7px;
  letter-spacing: 1px;
}
#agent-btn {
  background: #1a1a2e;
  color: #556;
  border: 1px solid #334;
  border-radius: 3px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s;
}
#agent-btn:hover { border-color: #00e87a; color: #0f8; }
.agent-key-row {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
#agent-key-input {
  flex: 1;
  background: #0c0c18;
  border: 1px solid #223;
  border-radius: 3px;
  color: #6af;
  font-family: monospace;
  font-size: 9px;
  padding: 3px 5px;
  min-width: 0;
}
#agent-key-input:focus { outline: none; border-color: #446; }
.agent-save-btn {
  background: #112;
  color: #446;
  border: 1px solid #223;
  border-radius: 3px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 3px 6px;
  cursor: pointer;
}
.agent-save-btn:hover { border-color: #6af; color: #6af; }
.agent-status-row {
  color: #334;
  font-size: 7px;
  margin-bottom: 6px;
}
#agent-log {
  min-height: 40px;
  max-height: 100px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 7px;
  line-height: 1.5;
  color: #4df;
  word-break: break-word;
}

/* ============================================================
   DUNGEON THEME — Main Menu overrides
   Palette: dark stone bg · amber/gold borders · parchment text
   CSS vars redefined inside #screen-menu so ALL var(--cyan) become amber
   ============================================================ */

#screen-menu {
  /* --- Remap color vars to amber/gold/parchment palette --- */
  --cyan:      #d4a843;
  --cyan-dim:  rgba(200, 140, 20, 0.45);
  --cyan-glow: rgba(200, 130, 15, 0.20);
  --text:      #c4aa82;
  --dim:       #7a6040;
  --orange:    #d4a843; /* adventure card accent stays gold */

  /* Page background: dark cave stone */
  background:
    radial-gradient(ellipse at top, rgba(80, 40, 5, 0.15), transparent 55%),
    linear-gradient(180deg, rgba(8, 5, 3, 1) 0%, rgba(12, 8, 4, 1) 100%);
}

/* Outer wrap: stone-wall card */
#screen-menu .menu-wrap {
  background:
    linear-gradient(180deg, rgba(18, 11, 5, 0.96), rgba(10, 7, 3, 0.98)),
    radial-gradient(circle at top right, rgba(200, 120, 20, 0.10), transparent 45%);
  border-color: rgba(160, 90, 15, 0.70);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(220, 160, 50, 0.07);
}

/* Hero banner: torchlit stone */
#screen-menu .menu-hero {
  background:
    linear-gradient(135deg, rgba(22, 12, 4, 0.92), rgba(10, 7, 3, 0.88)),
    radial-gradient(circle at top left, rgba(200, 110, 10, 0.18), transparent 48%);
  border-color: rgba(140, 75, 10, 0.55);
}

/* Hero scan-line: subtle amber grid instead of green */
#screen-menu .menu-hero::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 48%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(200, 130, 20, 0.07) 0 1px, transparent 1px 54px);
  opacity: 0.30;
}

/* Status chips: amber tone */
#screen-menu .menu-chip {
  border-color: rgba(210, 140, 20, 0.40);
  background: rgba(210, 140, 20, 0.09);
  color: #d4a843;
}

#screen-menu .menu-chip.dim {
  color: #a08862;
  border-color: rgba(160, 136, 98, 0.28);
  background: rgba(160, 136, 98, 0.07);
}

/* Title: parchment white */
#screen-menu .title-main {
  color: #e8d5b0;
}

#screen-menu .title-sub {
  color: #9a7a52;
}

#screen-menu .tagline p {
  color: #b09070;
}

#screen-menu .tagline p.dim {
  color: #7a6248;
}

/* Panels: dark stone */
#screen-menu .menu-main-panel,
#screen-menu .menu-panel {
  border-color: rgba(120, 68, 10, 0.60);
  background:
    linear-gradient(180deg, rgba(16, 10, 4, 0.92), rgba(10, 6, 2, 0.96)),
    radial-gradient(circle at top, rgba(180, 100, 10, 0.07), transparent 48%);
  box-shadow:
    inset 0 0 0 1px rgba(200, 140, 40, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.50);
}

#screen-menu .menu-panel-kicker {
  color: #7a5e38;
}

#screen-menu .menu-panel-title {
  color: #d8c49a;
}

/* Mode cards: stone base */
#screen-menu .mode-card {
  border-color: rgba(100, 58, 8, 0.75);
  background:
    linear-gradient(180deg, rgba(18, 11, 4, 0.97), rgba(10, 6, 2, 0.99)),
    radial-gradient(circle at top, rgba(170, 90, 10, 0.08), transparent 42%);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.70);
  color: #c4aa82;
}

#screen-menu .mode-card::before {
  background:
    linear-gradient(135deg, rgba(255,220,120,0.04), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,200,80,0.025) 0 1px, transparent 1px 44px);
}

#screen-menu .mode-card:hover {
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.55);
}

#screen-menu .mode-card-label {
  color: #7a6040;
}

#screen-menu .mode-card-desc {
  color: #9a8060;
}

#screen-menu .mode-card-meta {
  color: #6a5035;
}

#screen-menu .mode-card-cta {
  border-top-color: rgba(180, 120, 30, 0.20);
}

/* Adventure card: gold accent (unchanged — already amber) */
#screen-menu .mode-card-adv {
  border-color: rgba(220, 150, 20, 0.75);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.70), inset 0 0 0 1px rgba(220,150,20,0.12);
}

#screen-menu .mode-card-adv:hover {
  box-shadow: 16px 16px 0 rgba(0,0,0,0.55), 0 0 28px rgba(220,150,20,0.25);
}

/* PVE card: steel blue instead of neon green */
#screen-menu .mode-card-pve .mode-card-badge,
#screen-menu .mode-card-pve .mode-card-title,
#screen-menu .mode-card-pve .mode-card-cta {
  color: #7ab8d0;
}

#screen-menu .mode-card-pve:hover {
  border-color: rgba(100, 170, 210, 0.72);
  box-shadow: 16px 16px 0 rgba(0,0,0,0.55), 0 0 22px rgba(80,150,200,0.18);
}

/* PVP card: blood red (keep existing, just darken) */
#screen-menu .mode-card-pvp:hover {
  box-shadow: 16px 16px 0 rgba(0,0,0,0.55), 0 0 22px rgba(200,50,70,0.22);
}

/* Controls / Mechanics panels */
#screen-menu .ctrl-row {
  border-bottom-color: rgba(180, 120, 30, 0.12);
}

#screen-menu .mech-item {
  border-bottom-color: rgba(180, 120, 30, 0.12);
}

/* kbd keys in dungeon theme */
#screen-menu kbd {
  background: rgba(30, 18, 6, 0.90);
  border-color: rgba(140, 90, 20, 0.60);
  color: #c4a060;
}

/* Ecosystem card */
.eco-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  padding-bottom: 200px;
}

.eco-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(78, 207, 136, 0.15);
  margin-bottom: 20px;
}

.eco-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-panel-title {
  color: #d8c49a;
  font-size: 20px;
  letter-spacing: 2px;
}

.eco-card-transparent {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
  flex: none !important;
}

.eco-header-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-ronin-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
}

.eco-discord-btn {
  border-color: rgba(88, 101, 242, 0.40) !important;
  background: rgba(88, 101, 242, 0.07) !important;
  padding: 14px 12px !important;
}
.eco-discord-btn:hover {
  background: rgba(88, 101, 242, 0.18) !important;
  border-color: rgba(88, 101, 242, 0.65) !important;
}

#menu-discord-btn {
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#menu-discord-btn:hover {
  background: rgba(88, 101, 242, 0.22) !important;
  border-color: rgba(88, 101, 242, 0.80) !important;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.35);
  color: #c8ccff !important;
}

.eco-discord-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eco-discord-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.eco-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(78, 207, 136, 0.12);
  flex: 1;
}
.eco-section-last {
  border-bottom: none;
}

.eco-section-label {
  color: rgba(180, 220, 195, 0.45);
  font-size: 8px;
  letter-spacing: 2px;
}

.eco-panel-title {
  color: #d8c49a;
  font-size: 15px;
  letter-spacing: 1px;
}

.eco-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(78, 207, 136, 0.07);
  border: 1px solid rgba(78, 207, 136, 0.22);
  color: #a8f0cc;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.eco-link-btn:hover {
  background: rgba(78, 207, 136, 0.16);
  border-color: rgba(78, 207, 136, 0.45);
  color: #d4fff0;
}
.eco-link-full { width: 100%; box-sizing: border-box; }

.eco-link-name { font-size: 11px; letter-spacing: 0.5px; }
.eco-link-arrow { color: #4ecf88; font-size: 13px; }

.eco-ca-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(78, 207, 136, 0.15);
  padding: 8px 10px;
}

.eco-ca-addr {
  flex: 1;
  color: #7ecfaa;
  font-size: 12px;
  letter-spacing: 0.3px;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.eco-copy-btn {
  background: rgba(78, 207, 136, 0.10);
  border: 1px solid rgba(78, 207, 136, 0.35);
  color: #4ecf88;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 5px 11px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.eco-copy-btn:hover { background: rgba(78, 207, 136, 0.22); }
.eco-copy-btn.copied { background: rgba(78, 207, 136, 0.28); color: #c8ffdf; }

.eco-market-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.eco-nft-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.eco-nft-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(78,207,136,0.15);
  background: rgba(78,207,136,0.04);
}

.eco-nft-stat-val {
  color: #d8c49a;
  letter-spacing: 1px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
}

.eco-nft-last-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(78,207,136,0.15);
  background: rgba(78,207,136,0.04);
}

.eco-nft-last-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eco-nft-last-name {
  color: #d8c49a;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
}

.eco-nft-last-price {
  color: #4ecf88;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.eco-nft-last-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.eco-nft-last-ago {
  color: #3a7055;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.eco-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 6px;
}

.eco-activity-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #4ecf88;
  font-family: 'Press Start 2P', monospace;
}

.eco-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3c3c;
  animation: actBlink 1.2s infinite;
  flex-shrink: 0;
}

@keyframes actBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.eco-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.eco-activity-loading {
  color: #3a7055;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 10px 0;
}

.eco-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(78,207,136,0.10);
  background: rgba(78,207,136,0.03);
  transition: background 0.15s;
}

.eco-activity-row:hover {
  background: rgba(78,207,136,0.08);
}

.eco-activity-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(78,207,136,0.2);
}

.eco-activity-thumb-empty {
  background: rgba(78,207,136,0.05);
}

.eco-activity-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.eco-activity-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #d8c49a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-activity-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #4ecf88;
}

.eco-activity-ago {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #3a7055;
  white-space: nowrap;
  flex-shrink: 0;
}

.eco-swap-feed {
  gap: 3px !important;
}

.eco-swap-bucket {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(78,207,136,0.08);
  border-radius: 2px;
  background: rgba(6,13,20,0.6);
}

.eco-swap-sell-lbl {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #d94f4f;
}

.eco-swap-buy-lbl {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #4ecf88;
}

.eco-swap-ago-lbl {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #3a7055;
}

.eco-swap-bar {
  display: flex;
  flex: 1;
  height: 5px;
  border-radius: 1px;
  overflow: hidden;
  background: rgba(6,13,20,0.8);
}

.eco-swap-bar-sell {
  background: rgba(217,79,79,0.75);
}

.eco-swap-bar-buy {
  background: rgba(78,207,136,0.85);
}

/* Coming Soon cards — locked, dimmed, not interactive */
#screen-menu .mode-card-soon {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
  position: relative;
}

#screen-menu .mode-card-soon::after {
  content: '🔒';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 14px;
  opacity: 0.7;
}

#screen-menu .coming-soon-label {
  color: #6a5a40 !important;
  letter-spacing: 2px;
  font-size: 8px;
}

/* ══════════════════════════════════════════════════════
   LOBBY SCREEN
   ══════════════════════════════════════════════════════ */
#screen-lobby {
  background:
    radial-gradient(circle at 50% 30%, rgba(180,90,10,0.18), transparent 55%),
    linear-gradient(180deg, rgba(8,5,2,0.98), rgba(12,7,3,0.99));
  overflow: hidden;
}

.lobby-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 40px 24px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.lobby-kicker {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #7a5e38;
  letter-spacing: 3px;
}

.lobby-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 6vw, 44px);
  color: #e8d5b0;
  line-height: 1.5;
  letter-spacing: 3px;
  text-shadow: 0 0 40px rgba(200,130,20,0.25);
}

.lobby-desc {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #7a6040;
  letter-spacing: 1px;
  line-height: 2;
}

.lobby-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-top: 16px;
}

.lobby-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, filter 0.1s;
}
.lobby-btn:active { transform: scale(0.97); }

.lobby-btn-play {
  background: linear-gradient(180deg, #d4a843, #a87828);
  color: #1a0e00;
  box-shadow: 0 4px 24px rgba(200,130,10,0.35), 0 0 0 2px rgba(200,140,20,0.5);
}
.lobby-btn-play:hover { filter: brightness(1.12); }

.lobby-btn-back {
  background: transparent;
  color: #5a4428;
  border: 1px solid rgba(120,80,20,0.4);
  font-size: 9px;
}
.lobby-btn-back:hover { color: #a08050; border-color: rgba(160,120,60,0.6); }

/* ── Mobile-only Discord link ── */
.mobile-discord-link {
  display: none;
}

/* ══════════════════════════════════════════════════════
   MOBILE HOMEPAGE OPTIMISATION  (≤ 600px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* 1. Hide desktop-only absolute decoratives */
  #menu-ronke-canvas,
  #menu-skull-canvas,
  #menu-goldbag,
  #menu-goblin-house,
  #menu-pam-canvas,
  #menu-stone,
  #menu-discord-btn { display: none !important; }

  /* 2. Remove the 340px bottom gap left for decoratives */
  #screen-menu {
    padding: 10px;
  }
  #screen-menu .menu-wrap {
    padding: 12px 12px 20px;
    gap: 14px;
  }

  /* 3. Hero smaller */
  .menu-hero {
    padding: 14px 12px;
    gap: 10px;
  }

  #screen-menu .title-main { font-size: clamp(26px, 9vw, 44px); letter-spacing: 2px; }
  #screen-menu .title-sub  { font-size: clamp(10px, 3.5vw, 18px); letter-spacing: 4px; margin-top: 4px; }
  #screen-menu .tagline p  { font-size: 7.5px; }

  /* 4. Single-column grid (already done at 1100px but enforce on mobile too) */
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 5. Mode cards stack and shrink */
  .menu-main-panel { padding: 12px; }
  #screen-menu .mode-select { grid-template-columns: 1fr; gap: 8px; }
  .mode-card { padding: 12px 14px; min-height: 0; }
  .mode-card-title { font-size: clamp(14px, 4.5vw, 22px); }

  /* 6. Eco panels: don't flex-grow — let content set height */
  .menu-side-stack { gap: 10px; height: auto; }
  .menu-side-stack .eco-card { flex: none; }

  /* 7. RON chart shorter */
  #ron-chart { height: 170px !important; }

  /* 8. Shorter activity feeds */
  .eco-activity-feed { max-height: 200px; }
  .eco-swap-feed     { max-height: 180px; }

  /* 9. NFT last-row: smaller thumbnail */
  #nft-last-img { width: 52px !important; height: 52px !important; }

  /* 10. Eco card padding tighter */
  .eco-card { padding: 12px; }
  .eco-card-body { gap: 8px; }

  /* 11. Show mobile Discord link */
  .mobile-discord-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(88,101,242,0.10);
    border: 1px solid rgba(88,101,242,0.40);
    color: #a8b0ff;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    letter-spacing: 1px;
    margin-top: 4px;
  }
}

/* =========================================================
   UI POLISH PASS — 2026-04-16
   Kiekvieną sekciją (#1..#5) galima ištrinti nepažeidžiant kitų.
   ========================================================= */

/* ---------- #1 MENU SIDE STACK (Ronin / RONKE / NFT) ---------- */
.menu-side-stack .eco-card {
  padding: 18px 18px 22px !important;
  background: linear-gradient(180deg, rgba(10, 24, 14, 0.82), rgba(4, 12, 8, 0.78)) !important;
  border: 1px solid rgba(78, 207, 136, 0.22) !important;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  position: relative;
}
.menu-side-stack .eco-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78,207,136,0.55), transparent);
  pointer-events: none;
  z-index: 1;
}
.menu-side-stack .eco-card-transparent,
.menu-side-stack .eco-card.eco-card-transparent {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
}
.menu-side-stack .eco-card-transparent::before { display: none; }
.menu-side-stack .eco-card-header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(78, 207, 136, 0.18);
  margin-bottom: 14px;
}
.menu-side-stack .eco-panel-title {
  font-size: 14px;
  color: #e4d6ae;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 217, 0, 0.10);
}
.menu-side-stack .eco-section-label {
  font-size: 8px;
  letter-spacing: 2.5px;
  color: rgba(180, 220, 195, 0.55);
}
.menu-side-stack .eco-link-btn {
  padding: 10px 14px;
  letter-spacing: 1.5px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.menu-side-stack .eco-link-btn:hover {
  box-shadow: 0 0 12px rgba(78, 207, 136, 0.28);
}
.menu-side-stack .eco-ca-row {
  padding: 9px 12px;
  border-color: rgba(78, 207, 136, 0.22);
}
.menu-side-stack .eco-copy-btn {
  letter-spacing: 2px;
  padding: 6px 12px;
}
.menu-side-stack .eco-nft-stat {
  padding: 10px 12px;
  border-color: rgba(78, 207, 136, 0.22);
}
.menu-side-stack .eco-activity-row {
  padding: 7px 9px;
  border-color: rgba(78, 207, 136, 0.14);
  transition: background 0.15s, border-color 0.15s;
}
.menu-side-stack .eco-activity-row:hover {
  border-color: rgba(78, 207, 136, 0.35);
}

/* ---------- #2 GAME SIDE PANEL (unit list / HP / ammo) ---------- */
.unit-row {
  padding: 6px 7px;
  gap: 6px;
  transition: opacity 0.2s, border-color 0.15s, background 0.15s;
}
.unit-row:hover:not(.dead) {
  border-color: var(--border-hi);
  background: rgba(0, 255, 136, 0.04);
}
.unit-row.dead {
  opacity: 0.28;
}
.u-sel {
  width: 7px;
  height: 7px;
}
.u-sel.active {
  box-shadow: 0 0 8px var(--cyan), 0 0 14px var(--cyan-glow);
}
.u-hp-wrap .hp-bar {
  height: 7px;
}
.hp-bar {
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.55);
}
.p1-fill, .p2-fill {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 55%);
}
.stat-label {
  text-transform: uppercase;
}
.ammo-dot {
  transition: background 0.12s, box-shadow 0.12s;
}
#kills-badge {
  letter-spacing: 2px;
}

/* ---------- #3 BOTTOM SKILL BAR ---------- */
.skill-bar { gap: 4px; }
.skill-slot {
  border: 1px solid rgba(13, 77, 42, 0.75);
  background: linear-gradient(180deg, rgba(7, 22, 14, 0.85), rgba(3, 12, 8, 0.92));
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s, transform 0.08s;
  min-height: 58px;
}
.skill-slot:not(.sk-empty):not(.sk-disabled):not(.sk-used):hover {
  background: linear-gradient(180deg, rgba(10, 35, 22, 0.9), rgba(5, 18, 12, 0.95));
  border-color: var(--border-hi);
  box-shadow: inset 0 0 12px rgba(0, 255, 136, 0.06);
}
.skill-slot:not(.sk-empty):not(.sk-disabled):not(.sk-used):active {
  transform: translateY(1px);
}
.skill-slot.sk-active {
  box-shadow: inset 0 0 18px rgba(255,255,255,0.04), 0 0 14px currentColor;
}
.sk-label {
  text-transform: uppercase;
  letter-spacing: 1px;
}
.skill-key {
  padding: 2px 5px;
  letter-spacing: 0.5px;
}

/* ---------- #4 HUB OVERLAY ---------- */
.hub-ov-panel {
  padding: 32px 36px;
  gap: 16px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.7);
  position: relative;
}
.hub-ov-panel::before,
.hub-ov-panel::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
  pointer-events: none;
  box-shadow: 0 0 6px var(--cyan);
}
.hub-ov-panel::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
}
.hub-ov-panel::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
}
.hub-ov-title {
  letter-spacing: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.35);
}
.hub-ov-stat {
  padding: 10px 18px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.06), rgba(0, 255, 136, 0.02));
  border: 1px solid var(--border-hi);
}
.hub-ov-label {
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- #5 GAME OVER SCREEN ---------- */
.gameover-wrap { gap: 26px; }
.go-stats {
  border: 2px solid var(--border-hi);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(0, 0, 0, 0.4);
}
.stat-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--border-hi);
  background: linear-gradient(180deg, rgba(8, 22, 14, 0.92), rgba(3, 12, 8, 0.96));
}
.stat-cell .lbl {
  text-transform: uppercase;
  letter-spacing: 2px;
}
.go-buttons {
  gap: 14px;
  padding-top: 4px;
}
.go-player-stats-panel {
  border: 2px solid var(--border-hi);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}
.gps-header {
  padding: 12px 16px;
  letter-spacing: 3px;
}
.gps-section-title {
  letter-spacing: 2.5px;
  padding: 8px 14px;
}

/* ---------- #7 ADVENTURE MODE SIDE-PANEL VISIBLE POLISH ---------- */
/* Side panel visibility boost in adventure mode */
.adv-mode .side-panel .skill-slot {
  background: linear-gradient(180deg, rgba(10, 28, 18, 0.9), rgba(3, 14, 9, 0.96)) !important;
  border: 1px solid rgba(30, 110, 65, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(78, 207, 136, 0.08), inset 0 -8px 14px rgba(0, 0, 0, 0.3);
}
.adv-mode .side-panel .skill-slot:not(.sk-empty):not(.sk-disabled):not(.sk-used):hover {
  background: linear-gradient(180deg, rgba(15, 45, 28, 0.95), rgba(5, 20, 12, 0.98)) !important;
  border-color: rgba(78, 207, 136, 0.7) !important;
  box-shadow: inset 0 0 14px rgba(0, 255, 136, 0.08), 0 0 10px rgba(0, 255, 136, 0.15);
}
.adv-mode .side-panel .skill-slot.sk-active {
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 0 18px currentColor, 0 0 6px currentColor !important;
}

/* Inventory button — polished with clearer glow */
.adv-mode #btn-inventory {
  background: linear-gradient(180deg, rgba(22, 8, 32, 0.95), rgba(12, 4, 22, 0.98)) !important;
  border: 1px solid rgba(180, 70, 240, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(204, 68, 255, 0.15), 0 0 12px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.adv-mode #btn-inventory:hover {
  border-color: rgba(204, 68, 255, 0.9) !important;
  background: linear-gradient(180deg, rgba(40, 12, 58, 0.98), rgba(20, 6, 32, 0.99)) !important;
  box-shadow: inset 0 1px 0 rgba(204, 68, 255, 0.25), 0 0 16px rgba(204, 68, 255, 0.35);
}

/* THE KEEP button — cyber orange polish */
.adv-mode .panel-hub-btn {
  letter-spacing: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 170, 0, 0.12), 0 0 10px rgba(0,0,0,0.3);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.adv-mode .panel-hub-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 170, 0, 0.28), 0 0 14px rgba(255, 170, 0, 0.28);
}

/* VITALITY block visual upgrade */
.adv-mode #panel-runkeys {
  padding: 10px 8px 12px !important;
  background: linear-gradient(180deg, rgba(255, 90, 60, 0.08), rgba(255, 60, 40, 0.04)) !important;
  border-top: 1px solid rgba(255, 136, 0, 0.35) !important;
  border-bottom: 1px solid rgba(255, 136, 0, 0.18) !important;
  position: relative;
}
.adv-mode #panel-runkeys::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 60, 0.8), transparent);
  pointer-events: none;
}
.adv-mode .prk-label {
  letter-spacing: 3px;
  color: #aa7766;
}
.adv-mode .prk-pips {
  letter-spacing: 8px;
  text-shadow: 0 0 10px #ff2233, 0 0 4px #ff2233;
}

/* REWARDS button polish */
.adv-mode #btn-rewards {
  background: linear-gradient(180deg, rgba(6, 30, 18, 0.95), rgba(2, 14, 8, 0.98)) !important;
  border: 1px solid rgba(0, 255, 136, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(0, 255, 136, 0.14), 0 0 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 2.5px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.adv-mode #btn-rewards:hover {
  border-color: rgba(0, 255, 136, 0.85) !important;
  background: linear-gradient(180deg, rgba(10, 40, 22, 0.98), rgba(4, 20, 12, 0.99)) !important;
  box-shadow: inset 0 1px 0 rgba(0, 255, 136, 0.25), 0 0 14px rgba(0, 255, 136, 0.3);
}

/* WIPE / TUTORIAL bottom row — cleaner and consistent */
.adv-mode .btn-wipe-inline,
.adv-mode .btn-tutorial-inline {
  padding: 6px 6px !important;
  font-size: 7px;
  letter-spacing: 1.5px;
  background: rgba(4, 10, 8, 0.55) !important;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
}
.adv-mode .btn-wipe-inline {
  border-color: rgba(90, 40, 20, 0.55) !important;
  color: #7a4433;
}
.adv-mode .btn-wipe-inline:hover {
  border-color: var(--red) !important;
  color: var(--red);
  background: rgba(255, 60, 85, 0.1) !important;
  box-shadow: 0 0 10px rgba(255, 60, 85, 0.25);
}
.adv-mode .btn-tutorial-inline {
  border-color: rgba(30, 80, 50, 0.55) !important;
  color: #558866;
}
.adv-mode .btn-tutorial-inline:hover {
  border-color: #00ff88 !important;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1) !important;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

/* Skill bar header (WEAPONS label) */
.adv-mode .skill-header-lbl {
  letter-spacing: 2.5px;
  color: #7aa894;
}
.adv-mode .skill-key {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(78, 207, 136, 0.4) !important;
  color: #aaccbb !important;
}

