/* public_pilotos_pro_stage.css — Hall dos Pilotos «de palco» (DEM-152). */
.hall-legends {
  position: relative; margin: 0 0 1.5rem; padding: 1.2rem 1.25rem 1.4rem; border-radius: 20px; overflow: hidden;
  background: radial-gradient(80% 120% at 0% 0%, rgba(255, 196, 0, 0.16), transparent 60%), linear-gradient(160deg, #17181f, #0d0e13);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hall-legends-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.8rem; margin-bottom: 1rem; }
.hall-kicker { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #ffc400; }
.hall-legends-head h2 { margin: 0.15rem 0 0; font-size: 1.45rem; font-weight: 900; font-style: italic; text-transform: uppercase; color: #fff; }
.hall-legends-head p { margin: 0.2rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hall-cta {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 900; font-size: 0.88rem;
  color: #111; background: var(--color-accent, #f39c12); text-decoration: none; box-shadow: 0 8px 22px rgba(243, 156, 18, 0.35);
}
.hall-cta:hover { color: #111; filter: brightness(1.08); }
.hall-legends-row { display: flex; gap: 0.85rem; overflow-x: auto; padding: 0.4rem 0.2rem 0.8rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }

/* Carta (mesma linguagem da Carta do Piloto) */
.hall-card {
  --fa: #ffd0a6; --fb: #e09155; --fc: #8a4b22; --team: #f39c12;
  position: relative; flex: 0 0 168px; height: 236px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 0.6rem 0.7rem; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; scroll-snap-align: start;
  border: 4px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--team) 35%, #1b1c24), #08090d 70%) padding-box,
              linear-gradient(135deg, var(--fa), var(--fb) 45%, var(--fc)) border-box;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 22px color-mix(in srgb, var(--fb) 30%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: hall-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both; animation-delay: calc(var(--i) * 60ms);
}
.hall-card--prata { --fa: #fff; --fb: #c9d1db; --fc: #7d8794; }
.hall-card--ouro { --fa: #fff1a8; --fb: #ffc400; --fc: #b8860b; }
.hall-card--lenda { --fa: #ff4ecd; --fb: #ffc400; --fc: #38f9d7; }
.hall-card:hover, .hall-card:focus-visible { transform: translateY(-6px) rotate(-1.5deg); color: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 32px color-mix(in srgb, var(--fb) 55%, transparent); }
.hall-card-rank { position: absolute; top: 6px; left: 9px; z-index: 3; font: italic 900 1.35rem 'Exo 2', sans-serif; color: var(--fb); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.hall-card-rar { position: absolute; top: 10px; right: 8px; z-index: 3; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #111; background: var(--fb); }
.hall-card-num { position: absolute; right: -6px; top: 22px; font: italic 900 5.2rem/1 'Exo 2', sans-serif; color: rgba(255, 255, 255, 0.08); pointer-events: none; }
.hall-card-art { position: absolute; inset: 30px 0 70px; display: flex; align-items: flex-end; justify-content: center; }
.hall-card-art img { max-width: 78%; max-height: 100%; object-fit: contain; border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--fb); }
.hall-card-art.is-helmet img { border: 0; border-radius: 0; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6)); }
.hall-card-art.is-body img { border: 0; border-radius: 0; aspect-ratio: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6)); }
.hall-card-art b { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font: italic 900 2rem 'Exo 2', sans-serif; background: rgba(255, 255, 255, 0.08); border: 3px solid var(--fb); }
.hall-card-name { position: relative; z-index: 2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: italic 900 1rem 'Exo 2', sans-serif; text-transform: uppercase; }
.hall-card-stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem 0.5rem; margin-top: 0.2rem; font-size: 0.68rem; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.hall-card-stats b { color: var(--fb); font-size: 0.85rem; }
.hall-card-foil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0;
  background: repeating-linear-gradient(110deg, transparent 0 6%, var(--fa) 9%, transparent 12%, transparent 18%, var(--fb) 21%, transparent 24%);
  background-size: 250% 250%; transition: opacity 0.3s ease;
}
.hall-card:hover .hall-card-foil, .hall-card:focus-visible .hall-card-foil { opacity: 0.45; animation: hall-foil 1.6s linear infinite; }
@keyframes hall-foil { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes hall-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Cards da grade */
.pilot-card-pro { --hall-team: transparent; }
.pilot-card-pro .stat-item.is-zero .stat-value { opacity: 0.32; }
.pilot-card-pro .stat-item.is-zero .stat-label { opacity: 0.55; }
.pilot-card-pro .pilot-location.is-empty, .pilot-card-pro .pilot-number.is-empty { visibility: hidden; }
.pilot-card-pro .pilot-avatar.is-helmet { object-fit: contain; background: color-mix(in srgb, var(--hall-team) 30%, #15161b); padding: 4px; }
.pilot-card-pro.hall-rar--lenda, .pilot-card-pro.hall-rar--ouro, .pilot-card-pro.hall-rar--prata { position: relative; }
.pilot-card-pro.hall-rar--lenda { box-shadow: 0 0 0 2px #ff4ecd, 0 0 22px rgba(255, 78, 205, 0.25); }
.pilot-card-pro.hall-rar--ouro { box-shadow: 0 0 0 2px #ffc400, 0 0 18px rgba(255, 196, 0, 0.2); }
.pilot-card-pro.hall-rar--prata { box-shadow: 0 0 0 1px #c9d1db; }
.pilot-card-pro[data-rarity]::after {
  content: attr(data-rarity); position: absolute; top: 10px; left: 10px; z-index: 3; padding: 0.05rem 0.5rem; border-radius: 999px;
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #111; background: #c9d1db;
}
.pilot-card-pro.hall-rar--ouro::after { background: #ffc400; }
.pilot-card-pro.hall-rar--lenda::after { background: linear-gradient(90deg, #ff4ecd, #ffc400, #38f9d7); }

@media (max-width: 640px) {
  .hall-legends { padding: 1rem 0.85rem 1.1rem; }
  .hall-legends-head h2 { font-size: 1.15rem; }
  .hall-cta { width: 100%; justify-content: center; }
  .hall-card { flex-basis: 146px; height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .hall-card { animation: none; transition: none; }
  .hall-card:hover .hall-card-foil { animation: none; }
}

/* ===== DEM-159: galeria sem barra nativa + cards da grade compactos ===== */
.hall-legends-head { position: relative; }
.hall-nav { display: flex; gap: .4rem; }
.hall-nav-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 10, 14, .6); color: #fff; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.hall-nav-btn:hover:not(:disabled), .hall-nav-btn:focus-visible { background: var(--color-accent, #f39c12); color: #111; outline: none; }
.hall-nav-btn:disabled { opacity: .3; cursor: default; }
.hall-legends.no-scroll .hall-nav { display: none; }
.hall-legends-row { scrollbar-width: none; -ms-overflow-style: none; }
.hall-legends-row::-webkit-scrollbar { display: none; }
.hall-legends.has-more-right .hall-legends-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 70px), transparent); }
.hall-legends.has-more-left .hall-legends-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px); mask-image: linear-gradient(90deg, transparent, #000 70px); }
.hall-legends.has-more-left.has-more-right .hall-legends-row { -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 70px), transparent); }

#pilotsGrid.pilots-grid:not(.list-view) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1rem; }
#pilotsGrid:not(.list-view) .pilot-card-pro { border-radius: 16px; }
#pilotsGrid:not(.list-view) .pilot-card-pro::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; z-index: 3; background: var(--hall-team, transparent); }
#pilotsGrid:not(.list-view) .pilot-card-banner { height: 92px; padding: .8rem 1rem; }
#pilotsGrid:not(.list-view) .pilot-number { font: italic 900 2.4rem/1 'Exo 2', sans-serif; }
#pilotsGrid:not(.list-view) .pilot-card-content { padding: .9rem 1rem 1rem; }
#pilotsGrid:not(.list-view) .pilot-card-header { margin-top: -44px; margin-bottom: .7rem; gap: .75rem; }
#pilotsGrid:not(.list-view) .pilot-avatar { width: 68px; height: 68px; border-width: 3px; border-color: var(--hall-team-c, var(--color-accent, #f39c12)); }
#pilotsGrid .pilot-avatar.is-hidden { display: none; }
.hall-initials { display: flex; align-items: center; justify-content: center; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 50%; font: italic 900 1.6rem 'Exo 2', sans-serif; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--hall-team-c, #f39c12) 55%, #1b1c24), #111218); border: 3px solid var(--hall-team-c, var(--color-accent, #f39c12)); box-shadow: 0 4px 15px rgba(0, 0, 0, .3); }
#pilotsGrid:not(.list-view) .pilot-name { min-width: 0; padding-top: 1.6rem; }
#pilotsGrid:not(.list-view) .pilot-name .nickname { font: italic 900 1.15rem/1.15 'Exo 2', sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pilotsGrid:not(.list-view) .pilot-name .fullname { font-size: .78rem; margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pilotsGrid:not(.list-view) .pilot-stats-grid { gap: .45rem; margin: .4rem 0 .6rem; }
#pilotsGrid .stat-item.hall-main { padding: .55rem .3rem .45rem; border-radius: 12px; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
#pilotsGrid .stat-item.hall-main .stat-value { font: italic 900 1.45rem/1 'Exo 2', sans-serif; display: flex; align-items: center; justify-content: center; gap: .35rem; }
#pilotsGrid .stat-item.hall-main .stat-value i { font-size: .85rem; opacity: .7; }
#pilotsGrid .stat-item.hall-main .stat-label { margin-top: .2rem; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#pilotsGrid .stat-item.hall-main.is-gold { background: linear-gradient(165deg, rgba(255, 196, 0, .2), rgba(255, 255, 255, .02)); border-color: rgba(255, 196, 0, .45); }
#pilotsGrid .stat-item.hall-main.is-gold .stat-value, #pilotsGrid .stat-item.hall-main.is-gold .stat-value i { color: #ffc400; }
#pilotsGrid .stat-item.hall-main.is-silver { border-color: rgba(201, 209, 219, .4); }
#pilotsGrid .stat-item.hall-main.is-silver .stat-value, #pilotsGrid .stat-item.hall-main.is-silver .stat-value i { color: #e3e8ee; }
#pilotsGrid .stat-item.hall-main.is-legend { border: 2px solid transparent; background: linear-gradient(165deg, #241a2c, #111218) padding-box, linear-gradient(135deg, #ff4ecd, #ffc400, #38f9d7) border-box; }
#pilotsGrid .stat-item.hall-main.is-legend .stat-value { background: linear-gradient(90deg, #ff4ecd, #ffc400, #38f9d7); -webkit-background-clip: text; background-clip: text; color: transparent; }
#pilotsGrid .stat-item.hall-main.is-legend .stat-value i { color: #ffc400; -webkit-text-fill-color: #ffc400; }
#pilotsGrid .stat-item.hall-sec { display: flex; align-items: baseline; justify-content: center; gap: .3rem; padding: .3rem .4rem; border-radius: 999px; background: transparent; border-color: rgba(255, 255, 255, .08); }
#pilotsGrid .stat-item.hall-sec .stat-value { font-size: .9rem; font-weight: 900; display: inline-flex; gap: .3rem; align-items: center; }
#pilotsGrid .stat-item.hall-sec .stat-value i { font-size: .7rem; opacity: .6; }
#pilotsGrid .stat-item.hall-sec .stat-label { font-size: .72rem; white-space: nowrap; }
#pilotsGrid .stat-item.is-hidden { display: none; }
#pilotsGrid .stat-item:hover, #pilotsGrid .stat-item:hover * { color: inherit; }
#pilotsGrid .stat-item:hover { background-color: rgba(255, 255, 255, .07); border-color: var(--color-accent, #f39c12); }
#pilotsGrid .stat-item.is-gold:hover .stat-value, #pilotsGrid .stat-item.is-gold:hover .stat-value i { color: #ffc400; }
.hall-rate { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .3rem; margin-top: .15rem; }
.hall-rate > span { position: relative; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.hall-rate > span::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #c9d1db; border-radius: 3px; }
.hall-rate > span i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #ffc400; border-radius: 3px; }
.hall-rate small { font-size: .7rem; color: rgba(255, 255, 255, .6); }
.hall-rate small b { color: #fff; }
#pilotsGrid:not(.list-view) .pilot-card-info { padding-top: .6rem; }
@media (max-width: 640px) {
  .hall-nav { display: none; }
  #pilotsGrid:not(.list-view) .pilot-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
