/* ============================================================
   Protection Config — player settings screen.
   Noir / FBI-document style. Scoped under #protectionConfigOverlay.
   ============================================================ */
#protectionConfigOverlay {
  position: fixed;
  inset: 0;
  z-index: 1500000; /* above scene overlay dialogue (1000200) */
  display: none;
  overflow-y: auto;
  background: rgba(58, 50, 56, 0.96);
  font-family: 'Courier New', Courier, monospace;
}
#protectionConfigOverlay.open { display: block; }

#protectionConfigOverlay .pc-stage {
  max-width: 720px;
  margin: 2.5rem auto 4rem;
  padding: 0 1rem;
}
#protectionConfigOverlay .pc-doc {
  background: #EBE6D8;
  border: 1px solid #8E7F7F;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 28px,
    rgba(142,127,127,0.04) 28px, rgba(142,127,127,0.04) 29px);
}

/* ── Header ─────────────────────────────────────────────── */
#protectionConfigOverlay .pc-header {
  text-align: center;
  padding: 1.8rem 2rem 1.4rem;
  border-bottom: 1px dashed #8E7F7F;
  background: rgba(212, 200, 190, 0.4);
}
#protectionConfigOverlay .pc-banner {
  background: #8B0000;
  color: #EBE6D8;
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: bold;
  margin-bottom: 0.8rem;
}
#protectionConfigOverlay .pc-title {
  margin: 0.3rem 0;
  font-size: 1.7rem;
  color: #3A3238;
  letter-spacing: 5px;
}
#protectionConfigOverlay .pc-sub {
  font-size: 0.7rem;
  color: #8B0000;
  letter-spacing: 2px;
  font-weight: bold;
}

/* ── Sections + rows ────────────────────────────────────── */
#protectionConfigOverlay .pc-section {
  padding: 1.4rem 2rem;
  border-bottom: 1px dashed #8E7F7F;
}
#protectionConfigOverlay .pc-section-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #3A3238;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
#protectionConfigOverlay .pc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted rgba(142, 127, 127, 0.3);
}
#protectionConfigOverlay .pc-row:last-child { border-bottom: none; }
#protectionConfigOverlay .pc-label {
  font-size: 0.85rem;
  color: #3A3238;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
/* the explanations under a setting: were 0.62rem in border grey (#8E7F7F),
   too faint to read on the paper (the author, 2026-10-18) — larger, in
   the text's own brown, upright */
#protectionConfigOverlay .pc-hint {
  font-size: 0.74rem;
  color: #5F5449;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.3px;
  line-height: 1.35;
}
#protectionConfigOverlay .pc-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Segmented buttons / toggles ────────────────────────── */
#protectionConfigOverlay .pc-seg {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 0.42rem 0.75rem;
  border: 1px solid #8E7F7F;
  background: #D4C8BE;
  color: #5F5449;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: -1px;
}
#protectionConfigOverlay .pc-seg:first-child { margin-left: 0; }
#protectionConfigOverlay .pc-seg:hover { background: #C4B8AE; color: #3A3238; }
#protectionConfigOverlay .pc-seg.active {
  background: #8B0000;
  color: #EBE6D8;
  border-color: #8B0000;
  position: relative;
  z-index: 1;
}

/* ── Slider ─────────────────────────────────────────────── */
#protectionConfigOverlay .pc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 170px;
  height: 6px;
  background: rgba(142, 127, 127, 0.35);
  border: 1px solid #8E7F7F;
  outline: none;
  cursor: pointer;
}
#protectionConfigOverlay .pc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 20px;
  background: #8B0000;
  border: 1px solid #3A3238;
  cursor: pointer;
}
#protectionConfigOverlay .pc-slider::-moz-range-thumb {
  width: 14px;
  height: 20px;
  background: #8B0000;
  border: 1px solid #3A3238;
  border-radius: 0;
  cursor: pointer;
}
#protectionConfigOverlay .pc-val {
  font-size: 0.75rem;
  font-weight: bold;
  color: #3A3238;
  min-width: 40px;
  text-align: right;
}

/* ── Danger button ──────────────────────────────────────── */
#protectionConfigOverlay .pc-danger {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0.45rem 1.1rem;
  border: 1px solid #8B0000;
  background: #8B0000;
  color: #EBE6D8;
  cursor: pointer;
  transition: all 0.15s;
}
#protectionConfigOverlay .pc-danger:hover { background: #6d0000; }

/* ── Footer ─────────────────────────────────────────────── */
#protectionConfigOverlay .pc-controls {
  padding: 1.4rem 2rem;
  text-align: center;
  background: rgba(212, 200, 190, 0.2);
}
#protectionConfigOverlay .pc-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0.7rem 2rem;
  border: 1px solid #8E7F7F;
  background: #D4C8BE;
  color: #3A3238;
  cursor: pointer;
  transition: all 0.2s;
}
#protectionConfigOverlay .pc-btn:hover {
  background: #8B0000;
  color: #EBE6D8;
  border-color: #8B0000;
}
