/* =========================================================
   GAME PROFILE CSS
   Character select + profilo ninja locale
   ========================================================= */

/* ===== CHARACTER SELECT ===== */

.character-select-box {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 179, 71, 0.14);
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(249, 115, 22, 0.06);
}

.character-select-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.character-select-title {
  color: #ffe3a3;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.character-select-subtitle {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
  min-height: 17px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.character-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  min-height: 132px;
  padding: 13px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 179, 71, 0.1);
  background:
    radial-gradient(circle at top right, rgba(255, 159, 26, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 22, 38, 0.96), rgba(7, 12, 24, 0.98));
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.015),
    0 0 12px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.character-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 159, 26, 0.9),
    rgba(255, 211, 46, 0.25),
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

.character-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 179, 71, 0.22);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 18px rgba(249, 115, 22, 0.12);
}

.character-card.active {
  border-color: rgba(255, 213, 74, 0.55);
  background:
    radial-gradient(circle at top right, rgba(255, 213, 74, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(23, 34, 57, 0.98), rgba(10, 16, 30, 0.99));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.025),
    0 0 22px rgba(255, 200, 60, 0.16);
}

.character-card.is-locked {
  opacity: 0.82;
  border-color: rgba(148, 163, 184, 0.12);
  background: linear-gradient(
    180deg,
    rgba(13, 18, 28, 0.95),
    rgba(8, 12, 20, 0.98)
  );
}

.character-card.is-locked:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.012),
    0 0 10px rgba(0, 0, 0, 0.12);
}

.character-card-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd54a, #ff9f1a);
  color: #0b1220;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 213, 74, 0.18);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.character-card.active .character-card-badge {
  opacity: 1;
  transform: translateY(0);
}

.character-card-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 21px;
  line-height: 1;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.character-card.active .character-card-avatar {
  border-color: rgba(255, 213, 74, 0.32);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.03),
    0 0 12px rgba(255, 213, 74, 0.1);
}

.character-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
}

.character-card-meta {
  min-height: 34px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.character-card-meta strong {
  color: #f8fafc;
  font-weight: 800;
}

.character-card-lock {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe4f0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.character-card.active .character-card-lock {
  background: rgba(255, 213, 74, 0.14);
  color: #ffe082;
}

.character-card.is-locked .character-card-lock {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.character-select-box.is-loading {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
}

.character-select-box.is-ready {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* =========================================================
   PLAYER PROFILE LAYOUT
   ========================================================= */

.player-profile-card {
  overflow: visible;
}

.player-profile-card h3 {
  margin-bottom: 6px;
  color: #ffb347;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  text-align: center;
}

.player-profile-subtitle {
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.player-dashboard-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.player-dashboard-topstats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.player-topstat {
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 179, 71, 0.1);
  background: linear-gradient(
    180deg,
    rgba(16, 24, 41, 0.95),
    rgba(8, 13, 24, 0.98)
  );
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.015),
    0 0 14px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.player-topstat-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-topstat-value {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.player-topstat-value.is-accent {
  color: #ffd54a;
}

.player-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.player-dashboard-left,
.player-dashboard-right {
  min-width: 0;
}

.player-dashboard-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-dashboard-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.player-section-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 179, 71, 0.1);
  background: linear-gradient(
    180deg,
    rgba(12, 20, 36, 0.96),
    rgba(7, 12, 24, 0.98)
  );
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.015),
    0 0 14px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.player-section-card--warm {
  border-color: rgba(255, 179, 71, 0.16);
  background: linear-gradient(
    180deg,
    rgba(38, 22, 6, 0.96),
    rgba(17, 10, 3, 0.96)
  );
  box-shadow:
    0 0 18px rgba(255, 140, 40, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.player-section-card::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 159, 26, 0.9),
    rgba(255, 211, 46, 0.25),
    transparent
  );
}

.player-section-card--warm::before {
  background: linear-gradient(
    90deg,
    rgba(255, 173, 66, 0.95),
    rgba(255, 213, 74, 0.35),
    transparent
  );
}

.player-section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 179, 71, 0.08);
}

.player-section-card-title-wrap {
  min-width: 0;
  text-align: left;
}

.player-section-card-title {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.player-section-card-subtitle {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.player-section-card-value {
  flex-shrink: 0;
  color: #ffd54a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.player-section-card-body {
  padding: 14px;
}

/* ===== CHARACTER PROGRESS: COMPACT ===== */

.player-character-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-character-progress-card {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 71, 0.1);
  background:
    radial-gradient(circle at top right, rgba(255, 159, 26, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 22, 38, 0.96), rgba(7, 12, 24, 0.98));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.015),
    0 0 12px rgba(0, 0, 0, 0.16);
  opacity: 0.94;
  transition:
    opacity 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.player-character-progress-card:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.player-character-progress-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 159, 26, 0.9),
    rgba(255, 211, 46, 0.25),
    transparent
  );
  opacity: 0.72;
  pointer-events: none;
}

.player-character-progress-card.is-unlocked {
  border-color: rgba(134, 239, 172, 0.22);
  background:
    radial-gradient(circle at top right, rgba(134, 239, 172, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(18, 36, 28, 0.96), rgba(8, 18, 14, 0.98));
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.015),
    0 0 14px rgba(80, 255, 140, 0.08);
}

.player-character-progress-card.is-unlocked::before {
  background: linear-gradient(
    90deg,
    rgba(134, 239, 172, 0.9),
    rgba(255, 213, 74, 0.28),
    transparent
  );
}

.player-character-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.player-character-progress-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-character-progress-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.035)
  );
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.player-character-progress-card.is-unlocked .player-character-progress-avatar {
  border-color: rgba(134, 239, 172, 0.28);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 12px rgba(134, 239, 172, 0.1);
}

.player-character-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.player-character-progress-name {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.player-character-progress-role {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.player-character-progress-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #32ffd2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.player-character-progress-card.is-unlocked .player-character-progress-state {
  background: rgba(134, 239, 172, 0.14);
  color: #86efac;
}

.player-character-progress-meta {
  margin-bottom: 0;
}

.player-character-progress-hint {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.player-character-progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.9);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

.player-character-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #32ffd2 0%, #f97316 55%, #ffd32e 100%);
  box-shadow: 0 0 12px rgba(255, 211, 46, 0.25);
  transition: width 0.25s ease;
}

.player-character-progress-card.is-unlocked .player-character-progress-bar-fill {
  background: linear-gradient(90deg, #86efac 0%, #32ffd2 52%, #ffd54a 100%);
  box-shadow: 0 0 14px rgba(134, 239, 172, 0.22);
}

.player-character-progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
}

.player-character-progress-percent {
  color: #e5e7eb;
  font-weight: 800;
}

.player-character-progress-status {
  color: #94a3b8;
  font-weight: 700;
  text-align: right;
}

.player-character-progress-details {
  margin-top: 10px;
  border: 1px solid rgba(255, 179, 71, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.player-character-progress-details summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: #ffe3a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.player-character-progress-details summary::-webkit-details-marker {
  display: none;
}

.player-character-progress-details summary::after {
  content: "⌄";
  color: #ffd54a;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.player-character-progress-details[open] summary::after {
  transform: rotate(180deg);
}

.player-character-progress-details-body {
  padding: 0 10px 10px;
}

.player-character-requirements {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-character-requirement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(80, 140, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9),
    rgba(6, 10, 18, 0.92)
  );
}

.player-character-requirement-item.completed {
  border-color: rgba(80, 255, 140, 0.18);
}

.player-character-requirement-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.player-character-requirement-label {
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.player-character-requirement-sub {
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.4;
}

.player-character-requirement-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-character-requirement-check {
  color: #ffd54a;
  font-size: 14px;
  font-weight: 800;
}

.player-character-requirement-value {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== GENERIC INFO BOXES ===== */

.player-progress-box,
.player-badges-box,
.player-streak-box,
.player-live-box {
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.player-progress-header,
.player-badges-header,
.player-streak-header,
.player-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.player-progress-title,
.player-badges-title,
.player-streak-title,
.player-live-title {
  color: #e5e7eb;
  font-size: 15px;
  font-weight: 700;
}

.player-progress-rank,
.player-streak-value {
  color: #32ffd2;
  font-size: 13px;
  font-weight: 700;
}

.player-live-subtitle {
  color: #94a3b8;
  font-size: 12px;
  text-align: right;
}

.player-progress-bar,
.player-streak-progress-track,
.player-live-bar {
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 20, 30, 0.9);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
}

.player-progress-bar {
  height: 10px;
}

.player-streak-progress-track {
  height: 12px;
}

.player-live-bar {
  height: 8px;
}

.player-progress-fill,
.player-streak-progress-fill,
.player-live-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.player-progress-fill {
  background: linear-gradient(90deg, #32ffd2 0%, #f97316 55%, #ffd32e 100%);
  box-shadow: 0 0 12px rgba(255, 211, 46, 0.25);
}

.player-streak-progress-fill {
  background: linear-gradient(90deg, #ff9f1a 0%, #f97316 45%, #ffd54a 100%);
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.25);
}

.player-live-bar-fill {
  background: linear-gradient(90deg, #32ffd2 0%, #f97316 55%, #ffd32e 100%);
  box-shadow: 0 0 10px rgba(255, 211, 46, 0.2);
}

.player-progress-meta,
.player-streak-progress-top,
.player-streak-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.player-progress-meta {
  margin-top: 10px;
  font-size: 12px;
}

.player-progress-score {
  color: #cbd5e1;
  font-weight: 700;
}

.player-progress-remaining {
  color: #94a3b8;
  text-align: right;
}

/* ===== DESKTOP COMPACT BODY ===== */

.player-section-card-body > .player-progress-box > .player-progress-bar:first-child,
.player-section-card-body > .player-streak-box > .player-streak-progress-box:first-child,
.player-section-card-body > .player-live-box > .player-live-grid:first-child,
.player-section-card-body > .player-badges-box > .player-badges-grid:first-child,
.player-section-card-body > .player-badges-box > .player-title-grid:first-child {
  margin-top: 0;
}

.player-section-card-body > .player-progress-box .player-progress-meta:first-of-type {
  margin-top: 10px;
}

.player-section-card-body > .player-live-box .player-live-grid {
  margin-top: 0;
}

.player-section-card-body > .player-streak-box .player-streak-progress-box {
  margin-top: 0;
}

.player-section-card-body > .player-badges-box .player-badges-grid,
.player-section-card-body > .player-badges-box .player-title-grid {
  margin-top: 0;
}

.player-streak-progress-box {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.player-streak-progress-title {
  color: #ffe3a3;
  font-size: 12px;
  font-weight: 800;
}

.player-streak-progress-value {
  color: #ffd54a;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.player-streak-progress-labels {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
}

.player-streak-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 213, 74, 0.14);
  border-radius: 12px;
  background: rgba(255, 213, 74, 0.06);
  color: #ffe3a3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.player-streak-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.player-streak-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 86px;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.72;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.player-streak-step.active {
  opacity: 1;
  border-color: rgba(255, 213, 74, 0.28);
  transform: translateY(-1px);
}

.player-streak-step.claimed {
  border-color: rgba(134, 239, 172, 0.28);
  background: linear-gradient(
    180deg,
    rgba(20, 38, 20, 0.7),
    rgba(10, 20, 10, 0.78)
  );
}

.player-streak-step.claimed .player-streak-step-day {
  background: linear-gradient(135deg, #86efac, #ffd54a);
}

.player-streak-step-day {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f1a, #ffd54a);
  color: #0b1220;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 213, 74, 0.22);
}

.player-streak-step-label {
  color: #e5e7eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}

.player-streak-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-streak-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.player-streak-meta-label {
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 600;
}

.player-streak-meta-value {
  color: #ffd54a;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.player-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.player-live-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(80, 140, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.92),
    rgba(6, 10, 18, 0.95)
  );
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

.player-live-card.completed {
  border-color: rgba(80, 255, 140, 0.22);
}

.player-live-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.player-live-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
}

.player-live-name {
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.player-live-main-value {
  margin-bottom: 8px;
  color: #ffd54a;
  font-size: 13px;
  font-weight: 800;
}

.player-live-meta {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.player-daily-box {
  margin-top: 12px;
}

.player-daily-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-daily-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(80, 140, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9),
    rgba(6, 10, 18, 0.92)
  );
}

.player-daily-item.completed {
  border-color: rgba(80, 255, 140, 0.18);
}

.player-daily-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.player-daily-theme {
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.player-daily-label {
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.4;
}

.player-daily-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-daily-status {
  color: #ffd54a;
  font-size: 14px;
  font-weight: 800;
}

.player-daily-value {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.player-daily-empty,
.player-badges-empty {
  padding: 4px 0 2px;
  color: #94a3b8;
  font-size: 12px;
}

.player-badges-count {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f1a, #ffd54a);
  color: #0b1220;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(255, 213, 74, 0.2);
}

.player-badges-grid,
.player-title-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-badge-chip,
.player-title-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.95),
    rgba(10, 15, 25, 0.95)
  );
  color: #e5e7eb;
}

.player-badge-chip {
  border: 1px solid rgba(255, 215, 0, 0.16);
}

.player-title-chip {
  border: 1px solid rgba(134, 239, 172, 0.18);
}

.player-badge-icon,
.player-title-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.player-badge-name,
.player-title-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== AZIONI PROFILO ===== */

.player-profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.player-reset-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(120, 20, 20, 0.95),
    rgba(70, 10, 10, 0.95)
  );
  color: #ffe3e3;
  font-size: 14px;
  font-weight: 700;
  box-shadow:
    0 0 14px rgba(255, 90, 90, 0.12),
    inset 0 0 8px rgba(255, 255, 255, 0.03);
}

.player-reset-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 20px rgba(255, 90, 90, 0.22);
}

.player-reset-btn:active {
  transform: scale(0.98);
}

.player-reset-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== LEGACY ACCORDION SUPPORT ===== */

.player-profile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.player-profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  font-size: 14px;
}

.player-profile-label {
  min-width: 0;
  color: #e5e7eb;
  font-weight: 600;
}

.player-profile-value {
  color: #ffd54a;
  font-weight: 700;
  text-align: right;
}

.player-profile-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.player-accordion-item {
  display: block;
}

.player-accordion-toggle {
  display: none;
}

.player-accordion-content {
  display: block;
}

.player-accordion-content[hidden] {
  display: none !important;
}

.player-accordion-toggle-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.player-accordion-toggle-title {
  color: #ffe3a3;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.player-accordion-toggle-subtitle {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.player-accordion-toggle-icon {
  color: #ffd54a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}

/* ===== TOAST ===== */

.profile-character-toast {
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 26000;
  width: min(380px, calc(100vw - 24px));
  opacity: 0;
  transform: translateY(-18px) scale(0.95);
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}

.profile-character-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.profile-character-toast__inner {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(134, 239, 172, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 213, 74, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.97), rgba(5, 9, 20, 0.99));
  box-shadow:
    0 0 26px rgba(134, 239, 172, 0.14),
    0 0 42px rgba(255, 213, 74, 0.08),
    inset 0 0 14px rgba(255, 255, 255, 0.03);
}

.profile-character-toast__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(
    90deg,
    rgba(134, 239, 172, 0.95),
    rgba(255, 213, 74, 0.4),
    transparent
  );
  pointer-events: none;
}

.profile-character-toast__title {
  margin-bottom: 10px;
  color: #86efac;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-character-toast__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-character-toast__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 74, 0.14);
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.95),
    rgba(10, 15, 25, 0.95)
  );
  color: #f8fafc;
}

.profile-character-toast__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.profile-character-toast__name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== RESPONSIVE TABLET ===== */

@media (max-width: 1100px) {
  .player-dashboard-topstats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-dashboard-main {
    grid-template-columns: 1fr;
  }

  .player-dashboard-sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .player-profile-list,
  .player-live-grid {
    grid-template-columns: 1fr;
  }

  .player-dashboard-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .player-progress-meta,
  .player-streak-header,
  .player-live-header,
  .player-streak-meta-row,
  .player-streak-progress-top,
  .player-streak-progress-labels,
  .player-character-progress-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-progress-remaining,
  .player-live-subtitle,
  .player-streak-meta-value,
  .player-streak-value,
  .player-streak-progress-value,
  .player-character-progress-status {
    text-align: left;
  }

  .player-streak-step {
    min-height: auto;
  }
}

/* ===== RESPONSIVE MOBILE ===== */

@media (max-width: 640px) {
  .character-select-box {
    margin-bottom: 14px;
    padding: 14px 12px;
    border-radius: 18px;
    box-shadow: none !important;
    background: #0d1422;
  }

  .character-select-head {
    margin-bottom: 12px;
    gap: 3px;
  }

  .character-select-title {
    font-size: 15px;
  }

  .character-select-subtitle {
    font-size: 12px;
    line-height: 1.4;
    min-height: 17px;
  }

  .character-grid {
    gap: 10px;
  }

  .character-card {
    min-height: 140px;
    padding: 13px 11px 11px;
    border-radius: 16px;
    gap: 6px;
    box-shadow: none !important;
    transition: none !important;
    background: #0f1726 !important;
  }

  .character-card.active,
  .character-card.is-locked {
    min-height: 140px;
    padding: 13px 11px 11px;
    border-radius: 16px;
    gap: 6px;
    box-shadow: none !important;
  }

  .character-card:hover,
  .character-card.active:hover,
  .character-card.is-locked:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .character-card::before {
    display: none !important;
  }

  .character-card-badge {
    top: 8px;
    right: 8px;
    min-height: 18px;
    padding: 0 6px;
    font-size: 7px;
    box-shadow: none !important;
  }

  .character-card-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 19px;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.05);
  }

  .character-card-name {
    font-size: 15px;
  }

  .character-card-meta {
    min-height: 34px;
    font-size: 10px;
    line-height: 1.3;
  }

  .character-card-lock {
    min-height: 20px;
    padding: 0 7px;
    font-size: 8px;
  }

  .player-dashboard-topstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .player-topstat {
    padding: 10px;
    border-radius: 12px;
    box-shadow: none !important;
    background: #0f1726 !important;
  }

  .player-topstat-label {
    font-size: 9px;
  }

  .player-topstat-value {
    font-size: 12px;
  }

  .player-dashboard-main,
  .player-dashboard-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .player-section-card,
  .player-section-card--warm {
    box-shadow: none !important;
    background-image: none !important;
    background-color: #0f1726 !important;
  }

  .player-section-card::before,
  .player-section-card--warm::before {
    display: none !important;
  }

  .player-section-card-header {
    padding: 12px 14px;
  }

  .player-section-card-body {
    padding: 12px 14px 14px;
  }

  .player-profile-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .player-profile-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: none !important;
    background: #0f1726 !important;
  }

  .player-profile-label {
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .player-profile-value {
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
  }

  .player-profile-sections {
    gap: 10px;
    margin-top: 14px;
  }

  .player-accordion-item {
    overflow: hidden;
    overflow-anchor: none;
    scroll-margin-top: 12px;
    contain: none !important;
    border: 1px solid rgba(255, 179, 71, 0.08);
    border-radius: 16px;
    background: #0f1726 !important;
    box-shadow: none !important;
  }

  .player-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
  }

  .player-accordion-toggle-main {
    flex: 1;
    min-width: 0;
  }

  .player-accordion-toggle-title {
    font-size: 13px;
  }

  .player-accordion-toggle-subtitle {
    font-size: 10px;
  }

  .player-accordion-toggle-icon {
    flex-shrink: 0;
    margin-top: 4px;
    transition: none !important;
  }

  .player-accordion-item.is-open .player-accordion-toggle {
    border-bottom: 1px solid rgba(255, 179, 71, 0.08);
  }

  .player-accordion-item.is-open .player-accordion-toggle-icon {
    transform: rotate(180deg);
  }

  .player-accordion-content {
    padding: 0;
    overflow-anchor: none;
  }

  .player-accordion-content > .player-streak-box,
  .player-accordion-content > .player-live-box,
  .player-accordion-content > .player-progress-box,
  .player-accordion-content > .player-badges-box {
    margin: 0;
    padding: 14px 16px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
  }

  .player-streak-box,
  .player-live-box,
  .player-progress-box,
  .player-badges-box,
  .player-streak-progress-box,
  .player-streak-step,
  .player-live-card,
  .player-daily-item,
  .player-badge-chip,
  .player-title-chip,
  .player-progress-fill,
  .player-live-bar-fill,
  .player-streak-progress-fill,
  .player-character-progress-card,
  .player-character-requirement-item,
  .profile-character-toast__inner {
    box-shadow: none !important;
  }

  .player-character-progress-card,
  .player-streak-box,
  .player-live-box,
  .player-progress-box,
  .player-badges-box,
  .player-daily-item,
  .player-live-card,
  .player-streak-step,
  .player-character-requirement-item,
  .player-badge-chip,
  .player-title-chip,
  .profile-character-toast__inner {
    background-image: none !important;
    background-color: #0f1726 !important;
  }

  .player-streak-step,
  .player-progress-fill,
  .player-live-bar-fill,
  .player-streak-progress-fill,
  .player-character-progress-bar-fill,
  .player-character-progress-card,
  .player-live-card,
  .player-daily-item,
  .player-character-requirement-item {
    transition: none !important;
  }

  .player-character-progress-card::before,
  .profile-character-toast__inner::before {
    display: none !important;
  }

  .player-streak-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }

  .player-streak-step {
    min-height: 68px;
    padding: 8px 6px;
    gap: 5px;
    border-radius: 12px;
  }

  .player-streak-step.active {
    transform: none !important;
  }

  .player-streak-step-day {
    width: 28px;
    min-width: 28px;
    height: 28px;
    font-size: 11px;
    box-shadow: none !important;
  }

  .player-streak-step-label {
    font-size: 9px;
    line-height: 1.2;
  }

  .player-streak-meta-label,
  .player-streak-meta-value {
    font-size: 12px;
  }

  .player-badges-grid,
  .player-title-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .player-badge-chip,
  .player-title-chip {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .player-badge-icon,
  .player-title-icon {
    font-size: 15px;
  }

  .player-badge-name,
  .player-title-name {
    white-space: normal;
    font-size: 11px;
    line-height: 1.25;
  }

  .player-character-progress-card {
    padding: 12px;
    border-radius: 14px;
  }

  .player-character-progress-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-character-progress-left {
    width: 100%;
  }

  .player-character-progress-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.05);
  }

  .player-character-progress-name {
    font-size: 13px;
  }

  .player-character-progress-role {
    font-size: 10px;
  }

  .player-character-progress-state {
    min-height: 24px;
    padding: 0 9px;
    font-size: 10px;
  }

  .player-character-progress-hint,
  .player-character-progress-percent,
  .player-character-progress-status {
    font-size: 11px;
  }

  .player-character-progress-bar,
  .player-progress-bar,
  .player-live-bar,
  .player-streak-progress-track {
    box-shadow: none !important;
  }

  .player-progress-fill,
  .player-live-bar-fill,
  .player-streak-progress-fill,
  .player-character-progress-bar-fill {
    box-shadow: none !important;
  }

  .player-character-requirement-item {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .player-character-requirement-label {
    font-size: 10px;
  }

  .player-character-requirement-sub {
    font-size: 12px;
  }

  .player-character-requirement-value {
    font-size: 11px;
  }

  .player-character-progress-details summary {
    padding: 9px 10px;
    font-size: 10px;
  }

  .profile-character-toast {
    top: 84px;
    left: 50%;
    right: auto;
    width: min(92vw, 360px);
    transform: translateX(-50%) translateY(-18px) scale(0.95);
  }

  .profile-character-toast.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .profile-character-toast__inner {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .profile-character-toast__title {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .profile-character-toast__list {
    gap: 6px;
  }

  .profile-character-toast__chip {
    min-height: 36px;
    padding: 7px 10px;
    box-shadow: none !important;
  }

  .profile-character-toast__icon {
    font-size: 15px;
  }

  .profile-character-toast__name {
    font-size: 11px;
  }

  .player-reset-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (max-width: 430px) {
  .character-select-box {
    padding: 12px 10px;
  }

  .character-grid {
    gap: 8px;
  }

  .character-card {
    min-height: 126px;
    padding: 11px 9px 10px;
    gap: 5px;
  }

  .character-card-avatar {
    width: 34px;
    height: 34px;
    font-size: 17px;
    border-radius: 11px;
  }

  .character-card-name {
    font-size: 14px;
  }

  .character-card-meta {
    min-height: 30px;
    font-size: 9px;
  }

  .character-card-badge {
    font-size: 6px;
    min-height: 16px;
    padding: 0 5px;
  }

  .character-card-lock {
    font-size: 7px;
    min-height: 18px;
    padding: 0 5px;
  }

  .player-dashboard-topstats {
    grid-template-columns: 1fr 1fr;
  }
}