@import url("./shared.css");

.app-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.bp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.bp-header h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.bp-season {
  margin: 0 0 4px;
  color: #c4b5fd;
  font-weight: 600;
}

.bp-schedule {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bp-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bp-tokens {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.bp-tokens strong {
  color: #fbbf24;
}

.bp-progress-panel {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.45), rgba(15, 23, 42, 0.9));
}

.bp-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.bp-progress-copy strong {
  color: #e9d5ff;
}

.bp-progress-copy span {
  color: var(--muted);
}

.bp-xp-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 12px;
}

.bp-xp-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  transition: width 0.25s ease;
}

.bp-premium-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), rgba(69, 26, 3, 0.85));
  color: #fde047;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bp-premium-btn:hover:not(:disabled) {
  border-color: #fbbf24;
}

.bp-premium-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.bp-how {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}

.bp-how h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.bp-how ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

.bp-how strong {
  color: #e2e8f0;
}

.bp-track-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.bp-track {
  min-width: 520px;
  display: grid;
  gap: 8px;
}

.bp-row {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.bp-row.bp-header {
  margin-bottom: 4px;
}

.bp-tier-num {
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.bp-track-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
}

.bp-track-label.free {
  color: #86efac;
  background: rgba(22, 101, 52, 0.25);
}

.bp-track-label.premium {
  color: #fde047;
  background: rgba(120, 53, 15, 0.35);
}

.bp-cell {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--surface-deep);
  color: var(--text);
  text-align: left;
  cursor: default;
  font: inherit;
}

button.bp-cell.claimable {
  cursor: pointer;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

button.bp-cell.claimable:hover {
  border-color: #86efac;
}

.bp-cell.claimed {
  opacity: 0.72;
  border-color: rgba(74, 222, 128, 0.35);
}

.bp-cell.locked {
  opacity: 0.45;
}

.bp-cell.premium-locked:not(.locked) {
  border-color: rgba(251, 191, 36, 0.35);
}

.bp-cell.empty {
  place-items: center;
  color: var(--muted);
}

.bp-cell-icon {
  font-size: 1.1rem;
}

.bp-cell-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  color: #e2e8f0;
}

.bp-cell-action {
  font-size: 0.65rem;
  color: var(--muted);
}

.bp-message {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.88rem;
}

.bp-message[data-state='ok'] {
  color: #86efac;
}

.bp-message[data-state='err'] {
  color: #fca5a5;
}

@media (max-width: 640px) {
  .bp-row {
    grid-template-columns: 36px 1fr 1fr;
  }
}
