/* ========== PLAYBOOK SLIDER STYLES ========== */
section#playbookScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, #0a0a1a, #020205);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999; /* ensures it overlays other UI if needed */
}

section#playbookScreen * {
  font-family: myOtherFont, 'Orbitron', sans-serif;
  box-sizing: border-box;
}
.playbook {
  color: #fff;
  background: radial-gradient(ellipse at top, #0a0a1a, #020205);
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}

.playbook__panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  overflow: hidden;
}

.playbook__header {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playbook__title {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.playbook__subtitle {
  font-size: 0.9rem;
  color: #00d4ff;
}

/* ===== SLIDER CORE ===== */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.section {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 2rem 1rem;
  text-align: left;
  overflow-y: auto;
  max-height: 65vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.section::-webkit-scrollbar {
  width: 6px;
}
.section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* Slide buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

/* ===== SECTION HEADERS ===== */
.section h3 {
  text-align: center;
  color: #00d4ff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== CARD ROLE GRID ===== */
.card-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}
.card .label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}
.card .desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.3rem;
}

/* ===== SPECIAL CARDS ===== */
.special-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.special {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
}

.special .icon {
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: #00d4ff;
}

.special .body .title {
  font-weight: 600;
  color: #fff;
}

.special .small {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 0.2rem;
}

/* ===== TIPS ===== */
.tips ul {
  list-style: disc;
  margin-left: 1.5rem;
  line-height: 1.4;
}
.tips li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* ===== ANOMALY RULEBOOK ===== */
.turn {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.turn h4 {
  color: #00d4ff;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.turn ol {
  margin-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.turn li {
  margin-bottom: 0.3rem;
}

.examples {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.examples strong {
  color: #00ffff;
}
.examples ul {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding-left: 1rem;
}
.examples li::before {
  content: '• ';
  color: #00d4ff;
}

.quickref {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.4rem;
}

/* ===== FOOTER ===== */
.playbook__footer {
  padding: 1rem;
  font-size: 0.8rem;
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#playbook_backBtn {
  background: rgba(0, 212, 255, 0.2);
  border: none;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

#playbook_backBtn:hover {
  background: rgba(0, 212, 255, 0.4);
}

/* ===========================
   Force Text Wrap (Selected Tabs)
   =========================== */

#anomaliesSection,
#tipsSection,
#rulebookSection {
  width: 100%;
  min-width: 0; /* allow shrinking within flex parent */
}

#anomaliesSection *,
#tipsSection *,
#rulebookSection * {
  white-space: normal !important;   /* allow natural wrapping */
  overflow-wrap: anywhere;          /* break long unbroken text */
  word-wrap: break-word;            /* legacy support */
  word-break: break-word;           /* ensure fallback for narrow widths */
  hyphens: auto;                    /* nice line breaks for words */
}