/* ==========================================================================
   PANTEON SŁAWY — panel metaprogresji konta (SKLEP MISTRZA PRAWDAWNYCH:
   perki konta, wyposażenie startowe, klasy) + toast powiadomień
   o odblokowaniu osiągnięcia / klasy.
   Spójna, ciemna estetyka HUD (bez złotego neona, bez scrollbarów).
   ========================================================================== */

#account-panel-screen {
  position: fixed;
  inset: 0;
  display: none; /* pokazywany przez AccountPanel.open() */
  z-index: 10000;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}

#account-panel-screen * {
  pointer-events: auto;
}

.account-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  cursor: default;
}

.account-panel {
  background: #141824;
  border: 1px solid #2a3342;
  width: min(480px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto !important;
  position: relative;
  z-index: 10001;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #2a3342;
  background: #171c28;
  pointer-events: auto !important;
}

.account-head h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0px;
  color: #d8c27a;
}

.account-fame {
  font-size: 8px;
  font-weight: 700;
  color: #e7d9a6;
  flex: 1;
  text-align: right;
}

.account-feedback {
  font-size: 8px;
  color: #7fae95;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.account-close {
  background: #1c2230;
  border: 1px solid #39414f;
  color: #cdd3dd;
  font-family: inherit;
  font-size: 12px;
  width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  pointer-events: auto !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.account-close:hover {
  background: #2a3342;
  color: #facc15;
}

.pantheon-content,
.account-body {
  padding: 10px 14px 16px;
  overflow-y: auto;
  pointer-events: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #facc15 rgba(10, 15, 25, 0.8);
}

/* Dedykowany styl pixel-art / retro scrollbara */
.pantheon-content::-webkit-scrollbar,
.account-body::-webkit-scrollbar {
  width: 6px;
}

.pantheon-content::-webkit-scrollbar-track,
.account-body::-webkit-scrollbar-track {
  background: rgba(10, 15, 25, 0.8);
}

.pantheon-content::-webkit-scrollbar-thumb,
.account-body::-webkit-scrollbar-thumb {
  background: #facc15;
  border-radius: 2px;
}

.pantheon-content::-webkit-scrollbar-thumb:hover,
.account-body::-webkit-scrollbar-thumb:hover {
  background: #eab308;
}

.account-h3 {
  font-size: 12px;
  letter-spacing: 0px;
  color: #8fb8d8;
  margin: 14px 0 6px;
  border-bottom: 1px solid #232a37;
  padding-bottom: 4px;
}

.account-muted { color: #6f7a8a; font-weight: 400; }

/* Postęp odblokowania klas (sekcja KLASY POSTACI). */
.acc-progress-track {
  position: relative;
  height: 8px;
  background: #15181f;
  border: 1px solid #242a36;
  overflow: hidden;
  margin-top: 5px;
}

.acc-progress-fill {
  display: block;
  height: 100%;
  background: #d8c27a;
}

.acc-progress-label {
  position: absolute;
  right: 4px;
  top: -3px;
  font-size: 8px;
  color: #9aa5b4;
}

.acc-row.class.unlocked { border-left: 2px solid #d8c27a; }

.acc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid #232a37;
  background: #10141d;
  margin-bottom: 6px;
  pointer-events: auto !important;
}

.acc-row.locked { opacity: 0.45; }
.acc-row.unlocked { border-left: 2px solid #7fae95; }

.acc-row-info { flex: 1; min-width: 0; }

.acc-row-name {
  font-size: 12px;
  font-weight: 700;
  color: #e0e5ee;
}

.acc-tier {
  font-size: 8px;
  color: #8fb8d8;
  font-weight: 400;
  margin-left: 4px;
}

.acc-row-desc {
  font-size: 8px;
  color: #9aa5b4;
  margin-top: 2px;
}

.acc-reward { color: #d8c27a; font-size: 8px; }

.acc-buy {
  background: #1c2230;
  border: 1px solid #39414f;
  color: #e7d9a6;
  font-family: inherit;
  font-size: 8px;
  padding: 4px 10px;
  cursor: pointer;
  pointer-events: auto !important;
  white-space: nowrap;
  border-radius: 0;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}

.acc-buy:hover:not(:disabled) {
  background: #2a3342;
  border-color: #facc15;
}
.acc-buy.poor { color: #cf9a9a; border-color: #5a3a3e; cursor: pointer; }
.acc-buy.poor:hover { background: #322226; }
.acc-buy.active { background: #2a3a2f; border-color: #4a6a52; color: #b9dcc0; cursor: default; }
.acc-buy.disabled, .acc-buy:disabled { opacity: 0.5; cursor: not-allowed; }

/* Toast powiadomienia o odblokowaniu osiągnięcia. */
.achievement-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #141824;
  border: 1px solid #d8c27a;
  color: #f0e2b0;
  font-size: 12px;
  padding: 9px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  z-index: 10010;
  letter-spacing: 0px;
  pointer-events: none;
}

.achievement-toast b { color: #ffe9a3; }

.achievement-toast .ach-reward {
  color: #7fae95;
  font-size: 8px;
  margin-left: 6px;
}
