.gamer-page {
  --gamer-accent: #a855f7;
  --gamer-dark: #1e1b4b;
}

.gamer-hero {
  background: linear-gradient(135deg, var(--gamer-dark) 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.gamer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.35), transparent 50%);
  pointer-events: none;
}

.gamer-hero-inner {
  position: relative;
  max-width: 640px;
}

.gamer-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 8px 0 16px;
}

.gamer-hero-text {
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 24px;
}

.gamer-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gamer-cta {
  font-size: 1.05rem;
  padding: 14px 28px;
}

.gamer-cta-reg.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.comp-actions {
  margin-top: 20px;
}

.reg-page-card h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.featured-competition {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-competition .comp-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.featured-competition .comp-body {
  padding: 24px;
}

.featured-competition h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.comp-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.comp-desc {
  line-height: 1.6;
  margin-bottom: 24px;
}

.competition-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.comp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.comp-card .comp-body {
  padding: 16px;
}

.gamer-reg-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.gamer-reg-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.workstation-block {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.workstation-block-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gamer-dark, #1e1b4b);
}

.workstation-block-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.gamer-reg-form input,
.gamer-reg-form select,
.gamer-reg-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.gamer-reg-form textarea {
  min-height: 80px;
  resize: vertical;
}

.form-feedback {
  font-size: 0.9rem;
  margin-top: 8px;
}

.form-feedback.ok {
  color: #059669;
}

.form-feedback.err {
  color: #dc2626;
}

.leaderboard-list {
  display: grid;
  gap: 20px;
}

.lb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-card .lb-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.lb-card .lb-body {
  padding: 20px;
}

.lb-card h3 {
  margin: 0 0 4px;
}

.lb-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.lb-placements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lb-placements li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.lb-placements li:last-child {
  border-bottom: none;
}

.lb-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gamer-accent), #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-rank.gold {
  background: linear-gradient(135deg, #f59e0b, #eab308);
}

.lb-rank.silver {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: #1e293b;
}

.lb-rank.bronze {
  background: linear-gradient(135deg, #b45309, #d97706);
}

.lb-player {
  font-weight: 600;
}

.lb-score {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-muted {
  color: var(--muted);
}
