/* ikoma/ficha-rapida — scoped frontend styles */

.ficha {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg, 6px);
  padding: 24px 28px;
  position: relative;
  font-size: 15px;
  margin: 32px 0;
}

/* Corner bracket accent (top-left) */
.ficha::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 24px; height: 4px;
  background: var(--c-blue);
}
.ficha::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 4px; height: 24px;
  background: var(--c-blue);
}

.ficha__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ficha__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-line);
}

.ficha__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--c-line);
  align-items: center;
}
.ficha__row:last-child { border-bottom: 0; }

.ficha__label {
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--c-ink-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ficha__value {
  font-weight: 500;
  color: var(--c-ink);
  font-size: 14px;
}

.ficha__value--warn {
  color: var(--c-yellow);
  font-weight: 600;
}

/* Trophy counts */
.ficha__trophies {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
}
.ficha__trophies span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Trophy cup icons */
.trophy        { display: inline-block; vertical-align: middle; }
.trophy--bronze  { color: #cd7f32; }
.trophy--prata   { color: #a0b4c8; }
.trophy--ouro    { color: #f5c518; }
.trophy--platina { color: #a78bfa; }

/* Dark hero variant */
.ficha--hero {
  background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
  color: #fff;
  border-color: #1f1f1f;
  padding: 32px 36px;
}
.ficha--hero::before,
.ficha--hero::after { background: var(--c-yellow); }

.ficha--hero .ficha__title { color: rgba(255,255,255,0.55); }
.ficha--hero .ficha__title::after { background: rgba(255,255,255,0.1); }
.ficha--hero .ficha__row { border-color: rgba(255,255,255,0.08); }
.ficha--hero .ficha__label { color: rgba(255,255,255,0.45); }
.ficha--hero .ficha__value { color: #fff; }
.ficha--hero .ficha__value--warn { color: var(--c-yellow); }

@media (max-width: 768px) {
  .ficha--hero { padding: 20px 16px; }

  /* Label mais curto + valor ganha espaço */
  .ficha__row { grid-template-columns: 100px 1fr; gap: 10px; }

  /* Dificuldade — dots quebram pra baixo do score */
  .diff--white { flex-direction: column; align-items: flex-start; gap: 4px; }
  .diff--white .diff__score { margin-left: 0; }

  /* Troféus — ícones quebram pra segunda linha */
  .ficha__trophies { flex-wrap: wrap; gap: 8px; }
}

/* Diff dots on dark bg */
.diff--white { display: inline-flex; align-items: center; gap: 6px; }
.diff--white .diff__dots { display: inline-flex; gap: 3px; }
.diff--white .diff__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.diff--white .diff__dot.on { background: var(--c-blue); }
.diff--white .diff__score { font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,0.65); }
