/* Command Palette (Quick Search) — styles
   Dark, high-contrast, gaming-friendly theme matching site --accent. */

.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(8, 10, 14, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cp-overlay[hidden] { display: none; }

.cp-modal {
  width: min(640px, 92vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--bg, #15171c);
  border: 1px solid var(--accent, #e0a458);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(224, 164, 88, 0.15);
  overflow: hidden;
}

.cp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
  font-size: 17px;
  color: var(--text, #f4f1ea);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line, #2a2d34);
  outline: none;
}

.cp-input::placeholder { color: var(--muted, #8b8f98); }

.cp-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
}

.cp-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text, #f4f1ea);
}

.cp-item .cp-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-item .cp-sub {
  flex: none;
  font-size: 12px;
  color: var(--muted, #8b8f98);
  background: var(--accent-soft, #2a2113);
  padding: 2px 8px;
  border-radius: 999px;
}

.cp-item.cp-active {
  background: var(--accent, #e0a458);
  color: #15171c;
}

.cp-item.cp-active .cp-sub {
  background: rgba(0, 0, 0, 0.18);
  color: #15171c;
}

.cp-empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted, #8b8f98);
  font-size: 14px;
}

/* Floating launcher button (bottom-right) for touch / mobile users */
.cp-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #f4f1ea);
  background: var(--accent, #e0a458);
  color: #15171c;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.cp-launcher:hover { filter: brightness(1.05); }
.cp-launcher:focus-visible { outline: 3px solid var(--accent-soft, #2a2113); outline-offset: 2px; }

.cp-kbd {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
  .cp-launcher .cp-kbd { display: none; }
}
