/* ═══════════════════════════════════════════════════════════════
 * level-system.css — estilos para o card de nível + modal de selos
 * Compatível com o design system Pixel Grid.
 * ═══════════════════════════════════════════════════════════════ */

/* ─── CARD DE NÍVEL (landing) ─────────────────────────────────── */
.landing-level-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem 0;
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body, "Manrope", sans-serif);
}

.landing-level-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--llc-cor, var(--orange, #FF853E));
  transition: background 0.4s ease;
}

.landing-level-card .llc-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  min-width: 0;
}

.llc-penguin {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2, #f6f4ef);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  position: relative;
  transition: transform 0.3s ease, background 0.4s ease;
}

.llc-penguin-emoji {
  font-size: 1.9rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.llc-penguin.is-ovo .llc-penguin-emoji { opacity: 0.6; }
.llc-penguin.is-novo { animation: llc-pulse 0.8s ease-in-out 3; }

@keyframes llc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}

.llc-info {
  flex: 1;
  min-width: 0;
}

.llc-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.llc-nivel {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: var(--tracking-snug, -0.02em);
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
}

.llc-especie {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--llc-cor, var(--orange, #FF853E));
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.03em);
}

.llc-progress-track {
  height: 6px;
  background: var(--surface2, #f6f4ef);
  border-radius: 0;
  overflow: hidden;
}

.llc-progress-fill {
  height: 100%;
  background: var(--llc-cor, var(--orange, #FF853E));
  transition: width 0.6s ease, background 0.4s ease;
}

.llc-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted, #777);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  text-transform: lowercase;
  flex-wrap: wrap;
}

.llc-selos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 1px solid var(--llc-cor, var(--orange, #FF853E));
  color: var(--llc-cor, var(--orange, #FF853E));
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wide, 0.03em);
  text-transform: lowercase;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  flex-shrink: 0;
}

.llc-selos-btn:hover {
  background: var(--llc-cor, var(--orange, #FF853E));
  color: #fff;
}

/* ─── MODAL DE SELOS ──────────────────────────────────────────── */
.selos-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--text, #1a1a1a) 50%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: selos-fade-in 0.2s ease;
}

@keyframes selos-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.selos-modal {
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.4rem 1.2rem;
  font-family: var(--font-body, "Manrope", sans-serif);
  position: relative;
}

.selos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.selos-title {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: var(--tracking-snug, -0.02em);
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin: 0;
}

.selos-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: var(--text, #1a1a1a);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.selos-close:hover { background: var(--surface2, #f6f4ef); }

.selos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.9rem;
}

.selo-card {
  position: relative;
  padding: 1rem 0.8rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  background: var(--surface2, #f6f4ef);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.selo-card.is-conquistado {
  background: var(--surface, #fff);
  border-color: var(--selo-cor, var(--orange, #FF853E));
}

.selo-card.is-bloqueado {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.selo-card.is-conquistado:hover {
  transform: translateY(-2px);
}

.selo-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}

.selo-nivel {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--selo-cor, var(--orange, #FF853E));
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.03em);
  margin-bottom: 0.2rem;
}

.selo-nome {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin-bottom: 0.3rem;
  line-height: 1.15;
}

.selo-desc {
  font-size: 0.7rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  line-height: 1.4;
}

/* selo de "atual" ganha ribbon */
.selo-card.is-atual::after {
  content: "atual";
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.55rem;
  font-weight: 700;
  background: var(--selo-cor, var(--orange, #FF853E));
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.04em);
}

/* ─── OVERLAY DE LEVEL UP (notificação cheia) ─────────────────── */
.levelup-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, #000 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: selos-fade-in 0.3s ease;
}

.levelup-card {
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  border-top: 6px solid var(--orange, #FF853E);
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  font-family: var(--font-body, "Manrope", sans-serif);
  animation: levelup-rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes levelup-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.levelup-titulo {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-text, #C05E1F);
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.05em);
  margin-bottom: 0.4rem;
}

.levelup-nivel {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  letter-spacing: var(--tracking-tight, -0.03em);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.levelup-penguin {
  width: 88px;
  height: 88px;
  margin: 0.7rem auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2, #f6f4ef);
  border: 1px solid var(--llc-cor, var(--orange, #FF853E));
  border-radius: 0;
  animation: llc-pulse 1.2s ease-in-out infinite;
}

.levelup-penguin .llc-penguin-emoji {
  font-size: 3rem;
}

.levelup-selo-titulo {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--llc-cor, var(--orange, #FF853E));
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.05em);
  margin-bottom: 0.3rem;
}

.levelup-selo-nome {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.levelup-selo-desc {
  font-size: 0.85rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  line-height: 1.4;
  margin-bottom: 1.3rem;
}

.levelup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: var(--orange, #FF853E);
  color: #fff;
  border: 0;
  border-radius: 99px;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: var(--tracking-snug, -0.02em);
  text-transform: lowercase;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

.levelup-btn:hover {
  background: var(--orange-text, #C05E1F);
  transform: translateY(-1px);
}

.levelup-btn:focus-visible {
  outline: 3px solid var(--focus-ring, #FF853E);
  outline-offset: 2px;
}

/* ─── aviso de limitador (nível 10+) ───────────────────────────── */
.levelup-bloqueio {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  background: #FFF3E5;
  border-left: 3px solid var(--orange-text, #C05E1F);
  font-size: 0.78rem;
  color: var(--orange-text, #C05E1F);
  text-align: left;
  text-transform: lowercase;
  line-height: 1.4;
}

.levelup-bloqueio strong {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
}

/* ─── mobile ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .landing-level-card {
    padding: 0.85rem 0.9rem;
  }
  .llc-penguin { width: 48px; height: 48px; }
  .llc-penguin-emoji { font-size: 1.6rem; }
  .llc-nivel { font-size: 0.95rem; }
  .selos-modal { padding: 1.2rem 1rem 1rem; }
  .selos-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .levelup-nivel { font-size: 2.6rem; }
  .levelup-penguin { width: 72px; height: 72px; }
  .levelup-penguin .llc-penguin-emoji { font-size: 2.4rem; }
  .profile-modal { padding: 1.2rem 1rem 1rem; }
  .profile-header { gap: 0.8rem; }
  .profile-avatar { width: 64px; height: 64px; }
  .profile-avatar .lb-avatar-fallback { font-size: 1.6rem; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
 * PÁGINA DE PERFIL DO ALUNO
 * ═══════════════════════════════════════════════════════════════ */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--text, #1a1a1a) 50%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  animation: selos-fade-in 0.2s ease;
}

.profile-modal {
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 1.5rem 1.4rem 1.4rem;
  font-family: var(--font-body, "Manrope", sans-serif);
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.profile-title {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: var(--tracking-snug, -0.02em);
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin: 0;
}

.profile-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  color: var(--text, #1a1a1a);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.profile-close:hover { background: var(--surface2, #f6f4ef); }

/* ─── HEADER (identidade) ─────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.1rem 1rem;
  background: var(--surface2, #f6f4ef);
  border-left: 4px solid var(--llc-cor, #FF853E);
  border-radius: 0;
  margin-bottom: 1.1rem;
  position: relative;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.profile-avatar .lb-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar .lb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar .lb-avatar-fallback {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
}

.profile-id {
  flex: 1;
  min-width: 0;
}

.profile-nome {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin: 0 0 0.3rem 0;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-turma {
  font-size: 0.78rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  margin-bottom: 0.5rem;
}

.profile-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--llc-cor, #FF853E);
  color: #fff;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.03em);
  border-radius: 99px;
}

.profile-edit-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: transparent;
  border: 0;
  color: var(--text-muted, #777);
  font-size: 0.7rem;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 600;
  text-transform: lowercase;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 99px;
  transition: background 0.18s, color 0.18s;
}
.profile-edit-btn:hover { background: var(--surface, #fff); color: var(--text, #1a1a1a); }

/* ─── SEÇÕES ──────────────────────────────────────────────────── */
.profile-section {
  margin-bottom: 1.1rem;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--surface2, #f6f4ef);
}

.profile-section-title {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  letter-spacing: var(--tracking-snug, -0.02em);
  margin: 0;
}

.profile-section-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--llc-cor, #FF853E);
  text-transform: lowercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 99px;
  font-family: var(--font-display, "Manrope", sans-serif);
  transition: background 0.18s;
}
.profile-section-link:hover { background: var(--surface2, #f6f4ef); }

/* ─── AURÔMETRO (pontos + ranking) ────────────────────────────── */
.profile-aurometro {
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--llc-cor, #FF853E) 15%, var(--surface, #fff)) 0%, var(--surface, #fff) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
}

.profile-rank-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.profile-rank-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-rank-label {
  font-size: 0.65rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: var(--tracking-wide, 0.04em);
}

.profile-rank-value {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  line-height: 1;
}

.profile-rank-value.is-pos {
  color: var(--llc-cor, #FF853E);
}

.profile-progress-track {
  height: 8px;
  background: var(--surface2, #f6f4ef);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.profile-progress-fill {
  height: 100%;
  background: var(--llc-cor, #FF853E);
  transition: width 0.6s ease;
}

.profile-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted, #777);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  text-transform: lowercase;
}

.profile-blocker {
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
  background: #FFF3E5;
  border-left: 3px solid var(--accent2, #d75f00);
  font-size: 0.78rem;
  color: var(--accent2, #d75f00);
  text-transform: lowercase;
  line-height: 1.4;
}
.profile-blocker strong {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
}

/* ─── SELOS (grid compacto) ───────────────────────────────────── */
.profile-selos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.profile-selo-mini {
  position: relative;
  padding: 0.6rem 0.3rem 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  background: var(--surface2, #f6f4ef);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-selo-mini.is-conquistado {
  background: var(--surface, #fff);
  border-color: var(--selo-cor, #FF853E);
}

.profile-selo-mini.is-bloqueado { opacity: 0.4; filter: grayscale(0.8); }

.profile-selo-mini.is-atual::after {
  content: "atual";
  position: absolute;
  top: -6px;
  right: -6px;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.5rem;
  font-weight: 700;
  background: var(--selo-cor, #FF853E);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.04em);
}

.profile-selo-mini-emoji {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
  line-height: 1;
}

.profile-selo-mini-nivel {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted, #777);
  text-transform: lowercase;
}

/* ─── CONSTELAÇÃO + ESTATÍSTICAS (grids) ─────────────────────── */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.profile-stat-tile {
  padding: 0.7rem 0.5rem;
  background: var(--surface2, #f6f4ef);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.profile-stat-tile-value {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  line-height: 1;
}

.profile-stat-tile-label {
  font-size: 0.62rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  letter-spacing: var(--tracking-wide, 0.03em);
  line-height: 1.2;
}

/* ─── ATALHOS (botões de navegação) ───────────────────────────── */
.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.profile-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface, #fff);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  color: var(--text, #1a1a1a);
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: var(--tracking-snug, -0.01em);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.profile-shortcut-btn:hover {
  background: var(--surface2, #f6f4ef);
  border-color: var(--llc-cor, #FF853E);
}

.profile-shortcut-btn svg {
  flex-shrink: 0;
  stroke: var(--llc-cor, #FF853E);
}

.profile-shortcut-btn-full {
  grid-column: 1 / -1;
}

/* ─── PÍLULA DO BOTÃO DE LANDING (#profile-pill) ─────────────── */
#profile-pill .lap-score {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ─── LOGGED-ONLY-BLOCK (wrapper para !isAnon) ───────────────── */
.logged-only-block { display: none; }
body.is-logged .logged-only-block { display: revert; }

/* ═══════════════════════════════════════════════════════════════
 * SEÇÃO DE PRÊMIOS
 * ═══════════════════════════════════════════════════════════════ */
.premios-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  background: var(--surface2, #f6f4ef);
  padding: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.premios-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  letter-spacing: var(--tracking-snug, -0.02em);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.premios-tab.is-active {
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.premios-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  background: var(--orange, #FF853E);
  color: #fff;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}

.premios-tab.is-active .premios-tab-count { background: var(--text, #1a1a1a); }

.premios-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.premio-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: var(--surface2, #f6f4ef);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--premio-cor, #FF853E);
  border-radius: 0;
  transition: background 0.18s;
}

.premio-card:hover { background: color-mix(in srgb, var(--premio-cor, #FF853E) 8%, var(--surface2, #f6f4ef)); }

.premio-card.is-disponivel { background: var(--surface, #fff); }
.premio-card.is-reivindicado { background: var(--surface, #fff); border-left-color: var(--success-light, #94e2a2); }

.premio-emoji {
  font-size: 1.8rem;
  text-align: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.premio-card.is-bloqueado .premio-emoji { filter: grayscale(0.8) opacity(0.5); }

.premio-info { min-width: 0; }

.premio-nome {
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text, #1a1a1a);
  text-transform: lowercase;
  margin: 0 0 0.15rem 0;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.premio-raridade {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  text-transform: lowercase;
  letter-spacing: var(--tracking-wide, 0.04em);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  color: #fff;
}

.premio-raridade.is-comum     { background: #8b92a0; }
.premio-raridade.is-rara      { background: #5E6AD2; }
.premio-raridade.is-epica     { background: #E8B530; }
.premio-raridade.is-lendaria  { background: #C05E1F; }

.premio-desc {
  font-size: 0.72rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.premio-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premio-progress-track {
  flex: 1;
  height: 4px;
  background: color-mix(in srgb, var(--text, #1a1a1a) 12%, transparent);
  border-radius: 0;
  overflow: hidden;
}

.premio-progress-fill {
  height: 100%;
  background: var(--premio-cor, #FF853E);
  transition: width 0.4s ease;
}

.premio-progress-text {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.62rem;
  color: var(--text-muted, #777);
  text-transform: lowercase;
  min-width: 4.5rem;
  text-align: right;
}

.premio-recompensa {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.65rem;
  color: var(--premio-cor, #FF853E);
  text-transform: lowercase;
  margin-top: 0.25rem;
  display: inline-block;
}

.premio-acao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.premio-btn {
  background: var(--premio-cor, #FF853E);
  color: #fff;
  border: 0;
  padding: 0.5rem 0.8rem;
  font-family: var(--font-display, "Manrope", sans-serif);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: var(--tracking-snug, -0.02em);
  cursor: pointer;
  border-radius: 99px;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
}

.premio-btn:hover { background: color-mix(in srgb, var(--premio-cor, #FF853E) 75%, #000); transform: translateY(-1px); }
.premio-btn:disabled { background: var(--surface2, #f6f4ef); color: var(--text-muted, #777); cursor: not-allowed; transform: none; }
.premio-btn:focus-visible { outline: 3px solid var(--focus-ring, #FF853E); outline-offset: 2px; }

.premio-feito {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--success-light, #94e2a2);
  font-family: var(--font-display, "Manrope", sans-serif);
  font-weight: 700;
  text-transform: lowercase;
}

.premio-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted, #777);
  font-size: 0.8rem;
  text-transform: lowercase;
  background: var(--surface2, #f6f4ef);
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .premio-card {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }
  .premio-acao {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
  .premios-tab { font-size: 0.68rem; }
  .premio-nome { font-size: 0.8rem; }
}
