:root {
  --pp-bg: #0f172a;
  --pp-card: #1e293b;
  --pp-border: rgba(255, 255, 255, 0.08);
  --pp-text: #f1f5f9;
  --pp-muted: #94a3b8;
  --pp-green: #10b981;
  --pp-danger: #f87171;
}

* {
  box-sizing: border-box;
}

body.player-portal {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--pp-bg);
  color: var(--pp-text);
  min-height: 100vh;
}

.pp-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.pp-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.pp-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.pp-brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.pp-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--pp-muted);
}

.pp-card {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.pp-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.pp-field {
  margin-bottom: 0.85rem;
}

.pp-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--pp-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.pp-field input,
.pp-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--pp-border);
  background: #0f172a;
  color: var(--pp-text);
  font-size: 0.95rem;
}

.pp-field input:focus,
.pp-field select:focus {
  outline: none;
  border-color: var(--pp-green);
}

.pp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .pp-row {
    grid-template-columns: 1fr;
  }
}

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--pp-green);
  width: 100%;
}

.pp-btn--ghost {
  background: transparent;
  border-color: var(--pp-border);
  color: var(--pp-text);
}

.pp-btn--danger {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--pp-danger);
}

.pp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pp-flash {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.pp-flash--err {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.pp-muted {
  color: var(--pp-muted);
  font-size: 0.85rem;
}

.pp-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.pp-links a {
  color: var(--pp-green);
  text-decoration: none;
  font-weight: 600;
}

.pp-offer {
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: #0f172a;
}

.pp-offer h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.pp-offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.pp-badge--rostered {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.pp-profile-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid var(--pp-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--pp-muted);
  font-size: 1.5rem;
}

.pp-avatar--lg {
  width: 88px;
  height: 88px;
  font-size: 1.75rem;
}

.pp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-avatar-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pp-photo-form {
  flex: 1;
  min-width: 160px;
}

.pp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.pp-stat {
  background: #0f172a;
  border: 1px solid var(--pp-border);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.pp-stat__n {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pp-green);
  line-height: 1.2;
}

.pp-stat__l {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--pp-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 420px) {
  .pp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
