/* ── faction.css — faction info, faction detail panel, gear slots grid, bottom nav ── */

  /* ── FACTION INFO SECTION ── */
  #faction-info-section {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  #faction-info-section:active { border-color: var(--amber-dim); }

  .faction-tap-hint {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-align: right;
    margin-top: 10px;
  }

  .faction-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .faction-info-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
  }

  .faction-info-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    letter-spacing: 3px;
    color: var(--amber);
    flex: 1;
  }

  .faction-info-playstyle {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .faction-info-tagline {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-style: italic;
  }

  .faction-bonus-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .faction-bonus-row {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
  }

  .faction-bonus-row::before {
    content: '▸';
    color: var(--amber);
    flex-shrink: 0;
  }

  .faction-bonus-row span {
    color: var(--amber);
    font-weight: bold;
  }

  .faction-info-none {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-align: center;
    padding: 12px 0;
  }

  /* ── FACTION DETAIL PANEL ── */
  /* ── FACTION LORE ACCORDION DRAWER ── */
  #faction-lore-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-top: none;
    margin-top: -1px;   /* flush against the faction-info-section above */
  }

  #faction-lore-drawer.open {
    max-height: 1400px; /* large enough for all lore content */
  }

  #faction-lore-drawer-inner {
    padding: 16px 14px 20px;
  }

  /* Arrow chevron in the tap hint — rotates when expanded */
  .faction-tap-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 4px;
  }

  #faction-info-section.expanded .faction-tap-arrow {
    transform: rotate(90deg);
  }

  /* CLASS INFO SECTION — same card style as faction box, non-interactive */
  #class-info-section {
    margin-top: 16px;
    padding: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
  }

  .faction-detail-section {
    margin-bottom: 20px;
  }

  .faction-detail-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--amber);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
  }

  .faction-detail-text {
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text);
    line-height: 1.75;
  }

  .faction-detail-join-bonus {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .faction-join-item {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--amber);
    background: rgba(232,137,12,0.08);
    border: 1px solid rgba(232,137,12,0.3);
    padding: 3px 10px;
  }

  /* ── GEAR SLOTS GRID ── */
  #gear-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    padding-bottom: 12px;
  }

  .gear-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    min-height: 56px;
    position: relative;
    transition: border-color 0.15s;
  }

  .gear-slot {
    cursor: pointer;
  }

  .gear-slot:active {
    border-color: var(--amber-dim);
  }

  .gear-slot-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
  }
  /* Empty-slot placeholder (design pending — replaces class-specific emoji icons) */
  .gear-slot-icon--empty {
    font-size: 16px;
    color: var(--text-dim);
    opacity: 0.5;
  }

  .gear-slot-info {
    flex: 1;
    min-width: 0;
  }

  .gear-slot-label {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text);
    line-height: 1.2;
  }

  .gear-slot-equipped {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-top: 2px;
  }

  .gear-slot-equipped.has-item {
    color: var(--amber);
  }

  .gear-slot-category {
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 1px 5px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* ── BOTTOM NAV ── */
  #bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    background: rgba(8,8,6,0.98);
    border-top: 1px solid var(--border);
  }

  .nav-btn {
    flex: 1;
    padding: 10px 4px 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: color 0.15s ease;
    text-transform: uppercase;
  }

  .nav-btn .icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    opacity: 0.5;
    transition: opacity 0.15s ease, filter 0.15s ease;
  }
  .nav-btn.active .icon {
    opacity: 1;
    /* layered drop-shadow follows the PNG alpha — tight bright core + soft outer halo */
    filter: drop-shadow(0 0 5px rgba(232,137,12,0.95)) drop-shadow(0 0 14px rgba(232,137,12,0.5));
  }
  .nav-btn:hover:not(.active) .icon {
    opacity: 0.8;
  }
  .nav-btn.active { color: var(--amber); }
  .nav-btn:hover { color: var(--text); }

  /* Conditional nav buttons — hidden until unlocked */
  .nav-btn.nav-locked { display: none !important; }
