/* Student console resource summary: only total power and tokens. */
.student-game-console .console-header {
  grid-template-columns: minmax(390px, 1fr) minmax(430px, 1.12fr) minmax(190px, .45fr) !important;
  min-height: 116px !important;
}

.student-game-console .console-title-area.console-title-lockup {
  gap: 9px;
}

.student-game-console .console-resource-pills {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

.student-game-console .console-resource-pills > span {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 8px 14px !important;
  overflow: hidden;
  border: 2px solid #17325f !important;
  border-radius: 16px !important;
  color: #17325f !important;
  white-space: normal !important;
  box-shadow: 0 5px #17325f, 0 10px 18px rgba(23, 50, 95, .16) !important;
}

.student-game-console .console-resource-pills .pill-icon {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  fill: currentColor;
}

.student-game-console .console-resource-copy {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  width: auto !important;
  display: grid !important;
  justify-content: start !important;
  gap: 1px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: normal;
}

.student-game-console .console-resource-copy small {
  overflow: hidden;
  color: #496b95;
  font-size: .62rem;
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: .11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .console-resource-copy strong {
  overflow: hidden;
  font-size: clamp(1.18rem, 1.75vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .console-total-power-badge {
  background: linear-gradient(135deg, #fff8d7, #ffcf4f) !important;
}

.student-game-console .console-token-badge {
  background: linear-gradient(135deg, #fff, #e1f6ff) !important;
  color: #1f79ad !important;
}

/* Final-layer navigation and leaderboard rules. This file loads after theme CSS. */
.student-game-console .console-header {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.student-game-console .console-tab-bar {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  overflow: visible !important;
}

.student-game-console .console-tab-btn {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 38px;
  padding: 6px 5px !important;
  background: linear-gradient(135deg, #f5fbff, #dff1ff) !important;
  color: #17325f !important;
  border: 2px solid rgba(23, 50, 95, .32) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px rgba(23, 50, 95, .22) !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.12 !important;
}

.student-game-console .console-leaderboard-tab {
  background: linear-gradient(135deg, #f5fbff, #dff1ff) !important;
  color: #17325f !important;
  border-color: rgba(23, 50, 95, .32) !important;
  box-shadow: 0 4px rgba(23, 50, 95, .22) !important;
}

.student-game-console .console-tab-btn.active,
.student-game-console .console-leaderboard-tab.active {
  background: linear-gradient(135deg, #d9f2ff, #9bd6ff) !important;
  border-color: #17325f !important;
  box-shadow: 0 5px #17325f !important;
}

.student-game-console .leaderboard-console-page,
.student-game-console .pet-leaderboard-list {
  width: min(100%, 1040px) !important;
  min-width: 0;
}

.student-game-console .leaderboard-console-page {
  display: flex !important;
  flex-direction: column !important;
}

.student-game-console .leaderboard-console-page .console-section-heading {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 10px;
}

.student-game-console .leaderboard-console-page .console-section-heading p {
  margin: 0;
  color: #ffcf4f;
}

.student-game-console .leaderboard-console-page .console-section-heading h3 {
  margin: 2px 0 0;
}

.student-game-console .pet-leaderboard-list {
  display: grid !important;
  gap: 10px;
}

.student-game-console .pet-leaderboard-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 28px;
  border: 3px dashed rgba(255, 207, 79, .7);
  border-radius: 20px;
  background: rgba(7, 24, 54, .78);
  color: #fff8d7;
  text-align: center;
}

.student-game-console .pet-leaderboard-empty strong {
  color: #ffcf4f;
  font-size: 1.15rem;
}

@media (max-width: 1180px) {
  .student-game-console .console-header {
    min-height: 150px !important;
  }
}

@media (max-width: 760px) {
  .student-game-console .console-tab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .student-game-console .leaderboard-console-page .console-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .student-game-console .console-resource-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .student-game-console .console-resource-pills > span {
    min-height: 54px;
    gap: 7px;
    padding: 7px 9px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px #17325f, 0 8px 14px rgba(23, 50, 95, .14) !important;
  }

  .student-game-console .console-resource-pills .pill-icon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px;
  }

  .student-game-console .console-resource-copy small {
    font-size: .55rem;
    letter-spacing: .06em;
  }

  .student-game-console .console-resource-copy strong {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }
}
