/* ==========================================================================
   REAL CARTAXO — COMPONENTES REUTILIZÁVEIS (BOTÕES, CARDS, FORMULÁRIOS, LIGHTBOX)
   ========================================================================== */

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  min-height: 48px;
}

.btn--gold {
  background: var(--rc-gold);
  color: var(--rc-deep);
  border-color: var(--rc-gold);
  box-shadow: 0 6px 20px -8px rgba(214, 173, 67, 0.45);
}

.btn--gold:hover {
  transform: translateY(-2px);
  background: var(--rc-gold-light);
  border-color: var(--rc-gold-light);
  box-shadow: 0 10px 26px -8px rgba(214, 173, 67, 0.55);
}

.btn--purple {
  background: linear-gradient(135deg, var(--rc-secondary) 0%, var(--rc-primary) 100%);
  color: var(--rc-white);
  border-color: rgba(214, 173, 67, 0.35);
  box-shadow: var(--shadow-purple);
}

.btn--purple:hover {
  transform: translateY(-2px);
  border-color: var(--rc-gold);
  background: linear-gradient(135deg, #782d91 0%, var(--rc-secondary) 100%);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--rc-white);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--rc-gold);
  color: var(--rc-gold);
  background: rgba(48, 0, 68, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  padding: 10px 16px;
  min-height: 40px;
  color: var(--rc-gold);
  font-size: 0.85rem;
}

.btn--ghost:hover {
  background: rgba(214, 173, 67, 0.12);
}

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.55);
}

.btn--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.65);
}

.btn--sm {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--gold {
  background: rgba(214, 173, 67, 0.14);
  color: var(--rc-gold);
  border-color: rgba(214, 173, 67, 0.35);
}

.badge--purple {
  background: rgba(101, 36, 122, 0.32);
  color: #e6c6f5;
  border-color: rgba(101, 36, 122, 0.6);
}

.badge--muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--rc-muted);
  border-color: var(--rc-border);
}

.badge--success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge--danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.badge--live {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
  border-color: #ef4444;
}

.badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ---------- PLAYER CARD EDITORIAL (INSPIRAÇÃO CLUBES EUROPEUS) ---------- */
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.player-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #2a0d3c 0%, #150b1f 62%, #100b16 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  isolation: isolate;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(214, 173, 67, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-8px);
  border-color: rgba(214, 173, 67, 0.65);
  box-shadow: 0 28px 60px -16px rgba(48, 0, 68, 0.9), 0 0 0 1px rgba(214, 173, 67, 0.25);
}

.player-card:hover::before {
  opacity: 1;
}

.player-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1b0f27;
}

.player-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: contrast(1.04) saturate(0.96);
  transition: transform 650ms var(--ease-out), filter 450ms var(--ease-out);
}

.player-card:hover .player-card__img {
  transform: scale(1.06);
  filter: contrast(1.08) saturate(1.04);
}

/* Tratamento editorial: vinheta roxa + gradiente escuro inferior */
.player-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 0, 68, 0.25) 0%, rgba(16, 11, 22, 0.05) 38%, rgba(24, 9, 36, 0.72) 76%, #130b1b 100%);
  pointer-events: none;
}

.player-card__number {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--rc-gold);
  text-shadow: 0 4px 18px rgba(16, 11, 22, 0.85);
}

.player-card__crest {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 173, 67, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  object-fit: cover;
}

.player-card__body {
  position: relative;
  z-index: 3;
  padding: 18px 20px 22px;
  margin-top: -42px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-card__position {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rc-gold);
}

.player-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--rc-white);
  text-transform: uppercase;
}

.player-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--rc-muted);
}

.player-card__cta {
  color: var(--rc-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform var(--transition-fast);
}

.player-card:hover .player-card__cta {
  transform: translateX(4px);
}

/* ==========================================================================
   3D SHIELD COVERFLOW — CARROSSEL CINEMATOGRÁFICO DO PLANTEL
   Inspirado na apresentação de grandes clubes europeus (escudo 3D em palco)
   ========================================================================== */
.squad-stage {
  position: relative;
  padding: 28px 0 36px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.squad-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(760px, 92vw);
  height: 520px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(138, 43, 178, 0.42) 0%, rgba(73, 0, 95, 0.25) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.squad-stage__topbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.squad-stage__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.stage-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--rc-white);
}

.stage-pill.is-active {
  background: var(--rc-white);
  color: var(--rc-deep);
  border-color: var(--rc-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.squad-stage__viewport {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  touch-action: pan-y;
  cursor: grab;
  z-index: 2;
}

.squad-stage__viewport:active {
  cursor: grabbing;
}

/* Rótulo vertical lateral (como na referência) */
.squad-stage__vertical-tag {
  position: absolute;
  left: calc(50% + 176px);
  top: 52%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(214, 173, 67, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  z-index: 15;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 300ms ease;
}

/* Cada slide de jogador posicionado em 3D */
.stage-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 332px;
  height: 478px;
  margin-left: -166px;
  margin-top: -239px;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  cursor: pointer;
  z-index: 1;
}

/* Posições 3D em relação ao jogador central (0) */
.stage-slide[data-offset="0"] {
  transform: translate3d(0, -6px, 0) scale(1);
  opacity: 1;
  filter: none;
  z-index: 10;
}

.stage-slide[data-offset="-1"] {
  transform: translate3d(-272px, 14px, -120px) scale(0.75) rotateY(8deg);
  opacity: 0.82;
  filter: brightness(0.78) saturate(0.88);
  z-index: 6;
}

.stage-slide[data-offset="1"] {
  transform: translate3d(272px, 14px, -120px) scale(0.75) rotateY(-8deg);
  opacity: 0.82;
  filter: brightness(0.78) saturate(0.88);
  z-index: 6;
}

.stage-slide[data-offset="-2"] {
  transform: translate3d(-474px, 28px, -240px) scale(0.57) rotateY(14deg);
  opacity: 0.44;
  filter: brightness(0.55) saturate(0.75);
  z-index: 3;
}

.stage-slide[data-offset="2"] {
  transform: translate3d(474px, 28px, -240px) scale(0.57) rotateY(-14deg);
  opacity: 0.44;
  filter: brightness(0.55) saturate(0.75);
  z-index: 3;
}

.stage-slide[data-offset="hidden-left"] {
  transform: translate3d(-740px, 40px, -320px) scale(0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.stage-slide[data-offset="hidden-right"] {
  transform: translate3d(740px, 40px, -320px) scale(0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.stage-slide[data-offset="-1"]:hover,
.stage-slide[data-offset="1"]:hover {
  opacity: 0.96;
  filter: brightness(0.95) saturate(1);
}

/* Moldura em forma de escudo desportivo (FIFA/Club Shield Silhouette) */
.stage-shield {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.72));
}

.stage-slide[data-offset="0"] .stage-shield {
  filter:
    drop-shadow(0 0 28px rgba(214, 173, 67, 0.25))
    drop-shadow(0 32px 58px rgba(0, 0, 0, 0.85));
}

.stage-shield__frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2.5px;
  background: linear-gradient(180deg, rgba(214, 173, 67, 0.65) 0%, rgba(101, 36, 122, 0.6) 55%, rgba(214, 173, 67, 0.25) 100%);
  clip-path: polygon(
    50% 0%,
    70% 5%,
    89% 5%,
    100% 12%,
    100% 82%,
    84% 92%,
    50% 100%,
    16% 92%,
    0% 82%,
    0% 12%,
    11% 5%,
    30% 5%
  );
  transition: background 400ms ease;
}

.stage-slide[data-offset="0"] .stage-shield__frame {
  background: linear-gradient(180deg, var(--rc-gold) 0%, #9b4ec0 55%, var(--rc-gold) 100%);
}

.stage-shield__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 24%, #4f1769 0%, #240933 65%, #12081a 100%);
  clip-path: polygon(
    50% 0%,
    70% 5%,
    89% 5%,
    100% 12%,
    100% 82%,
    84% 92%,
    50% 100%,
    16% 92%,
    0% 82%,
    0% 12%,
    11% 5%,
    30% 5%
  );
}

.stage-shield__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
  filter: contrast(1.06) saturate(0.95) brightness(0.94);
}

.stage-slide[data-offset="0"]:hover .stage-shield__img {
  transform: scale(1.045);
}

/* Harmonização editorial roxa/dourada sobre a foto dentro do escudo */
.stage-shield__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 18%, rgba(73, 0, 95, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, rgba(48, 0, 68, 0.42) 0%, rgba(48, 0, 68, 0.08) 28%, rgba(30, 8, 44, 0.45) 62%, rgba(16, 7, 25, 0.96) 94%);
  pointer-events: none;
}

/* Círculo flutuante do número da camisola (igual ao "18" da referência!) */
.stage-number-orb {
  position: absolute;
  top: 74px;
  right: -18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6f228a 0%, #3d0052 100%);
  border: 2.5px solid var(--rc-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(214, 173, 67, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 700;
  color: var(--rc-white);
  z-index: 14;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 350ms ease;
}

.stage-slide:not([data-offset="0"]) .stage-number-orb {
  top: auto;
  bottom: 72px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  border-width: 1.5px;
  background: rgba(73, 0, 95, 0.92);
}

/* Emblema oficial subtil no topo do escudo central */
.stage-crest-pin {
  position: absolute;
  top: 26px;
  left: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--rc-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  z-index: 12;
  opacity: 0;
  transform: scale(0.8);
  transition: all 400ms ease;
}

.stage-slide[data-offset="0"] .stage-crest-pin {
  opacity: 1;
  transform: scale(1);
}

/* Tipografia do jogador (First name pequeno + Surname enorme em destaque) */
.stage-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  z-index: 13;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.stage-caption__first {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rc-gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.stage-caption__last {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--rc-white);
  text-transform: uppercase;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.9);
}

.stage-slide:not([data-offset="0"]) .stage-caption {
  bottom: 22px;
}

.stage-slide:not([data-offset="0"]) .stage-caption__first {
  display: none;
}

.stage-slide:not([data-offset="0"]) .stage-caption__last {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.stage-caption__pos {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: none;
}

.stage-slide[data-offset="0"] .stage-caption__pos {
  display: block;
}

/* Setas laterais e barra de controlo */
.stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(24, 12, 36, 0.85);
  border: 1.5px solid rgba(214, 173, 67, 0.55);
  color: var(--rc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: all var(--transition-fast);
}

.stage-arrow:hover {
  background: var(--rc-gold);
  color: var(--rc-deep);
  border-color: var(--rc-gold);
  transform: translateY(-50%) scale(1.07);
}

.stage-arrow--prev { left: clamp(8px, 2vw, 24px); }
.stage-arrow--next { right: clamp(8px, 2vw, 24px); }

.squad-stage__controls {
  position: relative;
  z-index: 10;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.stage-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.stage-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  transition: all 320ms var(--ease-out);
}

.stage-dot:hover {
  background: rgba(214, 173, 67, 0.65);
}

.stage-dot.is-active {
  width: 34px;
  background: var(--rc-gold);
  box-shadow: 0 0 16px rgba(214, 173, 67, 0.55);
}

.stage-active-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.stage-counter {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--rc-muted);
}

.stage-counter strong {
  color: var(--rc-gold);
}

@media (max-width: 1040px) {
  .squad-stage__vertical-tag { display: none; }
  .stage-slide[data-offset="-2"] {
    transform: translate3d(-440px, 26px, -240px) scale(0.54);
    opacity: 0.25;
  }
  .stage-slide[data-offset="2"] {
    transform: translate3d(440px, 26px, -240px) scale(0.54);
    opacity: 0.25;
  }
}

@media (max-width: 720px) {
  .squad-stage__viewport { height: 470px; }
  .stage-slide {
    width: 276px;
    height: 400px;
    margin-left: -138px;
    margin-top: -200px;
  }
  .stage-slide[data-offset="-1"] {
    transform: translate3d(-215px, 14px, -120px) scale(0.72);
    opacity: 0.65;
  }
  .stage-slide[data-offset="1"] {
    transform: translate3d(215px, 14px, -120px) scale(0.72);
    opacity: 0.65;
  }
  .stage-slide[data-offset="-2"],
  .stage-slide[data-offset="2"] {
    opacity: 0;
    pointer-events: none;
  }
  .stage-number-orb {
    width: 62px;
    height: 62px;
    font-size: 1.6rem;
    right: -10px;
    top: 56px;
  }
  .stage-caption__last { font-size: 1.85rem; }
  .stage-arrow { width: 42px; height: 42px; }
}

/* ==========================================================================
   KINETIC SCROLL MARQUEE (2 FILAS OPOSTAS COM TODOS OS JOGADORES)
   ========================================================================== */
.rc-marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 76px);
  background: linear-gradient(180deg, var(--rc-dark) 0%, #170922 50%, var(--rc-dark) 100%);
  border-top: 1px solid var(--rc-border);
  border-bottom: 1px solid var(--rc-border);
}

.rc-marquee::before,
.rc-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 130px);
  z-index: 4;
  pointer-events: none;
}

.rc-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--rc-dark) 0%, transparent 100%);
}

.rc-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--rc-dark) 0%, transparent 100%);
}

.rc-marquee__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rc-marquee__row {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.rc-marquee__tile {
  position: relative;
  width: 280px;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(214, 173, 67, 0.28);
  background: var(--rc-surface);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.rc-marquee__tile:hover {
  border-color: var(--rc-gold);
  transform: translateY(-4px);
}

.rc-marquee__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 500ms var(--ease-out);
}

.rc-marquee__tile:hover img {
  transform: scale(1.06);
}

.rc-marquee__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 0, 68, 0.12) 0%, rgba(16, 11, 22, 0.88) 100%);
  pointer-events: none;
}

.rc-marquee__meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.rc-marquee__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.9;
  color: var(--rc-gold);
}

.rc-marquee__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rc-white);
}

/* ==========================================================================
   ANIMATED TEXT (REVELAÇÃO LETRA A LETRA NO SCROLL)
   ========================================================================== */
.rc-animated-text {
  font-size: clamp(1.1rem, 2vw, 1.48rem);
  font-weight: 500;
  line-height: 1.65;
  color: #e6dcf0;
}

.rc-anim-char {
  transition: opacity 90ms linear;
}

/* ==========================================================================
   STICKY-STACKING SCROLL CARDS — BARALHO 3D DE TODOS OS JOGADORES
   Cada jogador entra em ecrã inteiro com sticky + scale progressivo no scroll
   ========================================================================== */
.rc-stack-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 64px;
}

.rc-stack-slot {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rc-stack-card {
  position: sticky;
  top: 96px;
  width: 100%;
  border-radius: clamp(28px, 4vw, 54px);
  border: 2px solid rgba(214, 173, 67, 0.55);
  background:
    radial-gradient(circle at 85% 15%, rgba(101, 36, 122, 0.42), transparent 52%),
    linear-gradient(165deg, #1b0a28 0%, #100b16 68%);
  padding: clamp(20px, 3vw, 38px);
  box-shadow: 0 32px 80px -18px rgba(0, 0, 0, 0.88);
  transform-origin: center top;
  will-change: transform, filter;
  transition: border-color var(--transition-fast);
}

.rc-stack-card:hover {
  border-color: var(--rc-gold);
}

.rc-stack-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rc-stack-card__identity {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.6vw, 30px);
}

.rc-stack-card__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 700;
  line-height: 0.85;
  background: linear-gradient(180deg, var(--rc-gold-light) 0%, var(--rc-gold) 65%, #8f6a18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rc-stack-card__cat {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rc-gold);
}

.rc-stack-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1;
  color: var(--rc-white);
  margin-top: 6px;
}

.rc-stack-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(214, 173, 67, 0.75);
  color: var(--rc-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.rc-stack-pill-btn:hover {
  background: var(--rc-gold);
  color: var(--rc-deep);
  border-color: var(--rc-gold);
}

.rc-stack-card__grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(16px, 2.2vw, 28px);
  align-items: stretch;
}

.rc-stack-col-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rc-stack-tile {
  position: relative;
  border-radius: clamp(22px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 11, 22, 0.75);
}

.rc-stack-tile--info {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  background: linear-gradient(160deg, rgba(73, 0, 95, 0.35), rgba(16, 11, 22, 0.9));
}

.rc-stack-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rc-stack-spec {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rc-stack-spec span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rc-muted);
}

.rc-stack-spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rc-white);
  margin-top: 4px;
}

.rc-stack-tile--crest {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(48, 0, 68, 0.7), rgba(16, 11, 22, 0.95));
  border-color: rgba(214, 173, 67, 0.35);
}

.rc-stack-tile--crest img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--rc-gold);
  flex-shrink: 0;
}

.rc-stack-hero-photo {
  position: relative;
  border-radius: clamp(24px, 3.2vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(214, 173, 67, 0.45);
  min-height: clamp(320px, 44vh, 470px);
  background: #1a0d27;
}

.rc-stack-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 650ms var(--ease-out);
}

.rc-stack-card:hover .rc-stack-hero-photo img {
  transform: scale(1.04);
}

.rc-stack-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(73, 0, 95, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(48, 0, 68, 0.2) 0%, transparent 38%, rgba(16, 11, 22, 0.85) 100%);
  pointer-events: none;
}

/* Seletor de Modo de Visualização no Plantel */
.view-switcher {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-full);
  background: var(--rc-surface);
  border: 1px solid var(--rc-border-gold);
  gap: 4px;
}

.view-switcher__btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rc-muted);
  transition: all var(--transition-fast);
}

.view-switcher__btn.is-active {
  background: var(--rc-gold);
  color: var(--rc-deep);
}

@media (max-width: 900px) {
  .rc-stack-slot {
    min-height: auto;
  }
  .rc-stack-card {
    position: relative;
    top: 0 !important;
    transform: none !important;
    filter: none !important;
  }
  .rc-stack-card__grid {
    grid-template-columns: 1fr;
  }
  .rc-stack-hero-photo {
    order: -1;
    min-height: 360px;
  }
  .rc-marquee__tile {
    width: 210px;
    height: 250px;
  }
}

/* ---------- MATCH CARD ---------- */
.match-card {
  background: linear-gradient(155deg, rgba(48, 0, 68, 0.45) 0%, var(--rc-surface) 75%);
  border: 1px solid var(--rc-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.match-card:hover {
  border-color: var(--rc-border-gold);
  transform: translateY(-2px);
}

.match-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--rc-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match-card__versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.match-team__badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rc-border-gold);
  background: var(--rc-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rc-gold);
}

.match-team__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.match-score__digits {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--rc-gold);
  letter-spacing: 0.08em;
}

.match-card__footer {
  padding-top: 14px;
  border-top: 1px solid var(--rc-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--rc-muted);
}

/* ---------- NEWS CARD ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--rc-border-gold);
}

.news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rc-deep);
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms var(--ease-out);
}

.news-card:hover .news-card__media img {
  transform: scale(1.05);
}

.news-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--rc-muted);
}

.news-card__title {
  font-size: 1.35rem;
  line-height: 1.2;
}

.news-card__excerpt {
  color: var(--rc-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}

/* ---------- FILTER BAR & SEARCH ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--radius-lg);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--rc-white);
  border-color: var(--rc-border-purple);
}

.filter-pill.is-active {
  background: var(--rc-primary);
  color: var(--rc-gold);
  border-color: var(--rc-gold);
}

.search-box {
  position: relative;
  min-width: min(320px, 100%);
  flex: 0 1 340px;
}

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rc-muted);
  pointer-events: none;
}

.search-box__input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: var(--radius-full);
  background: rgba(16, 11, 22, 0.75);
  border: 1px solid var(--rc-border);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.search-box__input:focus {
  border-color: var(--rc-gold);
  outline: none;
}

/* ---------- FORMULÁRIOS ---------- */
.form-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.form-label .req {
  color: var(--rc-gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 11, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--rc-white);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select option {
  background: var(--rc-surface);
  color: var(--rc-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--rc-gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 67, 0.15);
  outline: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--rc-muted);
}

.form-error {
  font-size: 0.82rem;
  color: #fca5a5;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--rc-danger);
}

.form-group.has-error .form-error {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--rc-muted);
  line-height: 1.55;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--rc-gold);
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--rc-gold);
  text-decoration: underline;
}

/* Campo honeypot invisível (anti-spam) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Avisos / Alertas */
.alert {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rc-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  line-height: 1.6;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.alert--gold {
  border-color: var(--rc-border-gold);
  background: rgba(214, 173, 67, 0.09);
  color: #f6e7be;
}

.alert--purple {
  border-color: var(--rc-border-purple);
  background: rgba(73, 0, 95, 0.35);
}

.alert--success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #dcfce7;
}

.alert--danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fee2e2;
}

/* Estado Vazio / Placeholder Transparente */
.empty-state {
  padding: 52px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(214, 173, 67, 0.32);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(73, 0, 95, 0.45);
  border: 1px solid var(--rc-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rc-gold);
}

.empty-state h3 {
  font-size: 1.35rem;
}

.empty-state p {
  color: var(--rc-muted);
  max-width: 480px;
  font-size: 0.94rem;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 5, 14, 0.95);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: min(1080px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--rc-border-gold);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox__caption {
  text-align: center;
  color: var(--rc-white);
  font-size: 0.96rem;
}

.lightbox__caption span {
  color: var(--rc-gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 4px;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(48, 0, 68, 0.85);
  border: 1px solid var(--rc-border-gold);
  color: var(--rc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--rc-gold);
  color: var(--rc-deep);
}

.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(390px, calc(100vw - 32px));
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--rc-surface-2);
  border: 1px solid var(--rc-border-gold);
  color: var(--rc-white);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 260ms var(--ease-out);
}

.toast--success { border-color: var(--rc-success); }
.toast--danger { border-color: var(--rc-danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ESCUDO 3D METÁLICO INTERATIVO — REAL CARTAXO (PRESERVA EMBLEMA ORIGINAL)
   ========================================================================== */
.crest3d {
  position: relative;
  width: clamp(250px, 27vw, 360px);
  height: clamp(250px, 27vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.crest3d.is-dragging {
  cursor: grabbing;
}

.crest3d__glow {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(214, 173, 67, 0.24) 0%, rgba(101, 36, 122, 0.42) 44%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.crest3d__orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.crest3d__orbit--outer {
  inset: -12px;
  border: 1px solid rgba(214, 173, 67, 0.24);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(214, 173, 67, 0.42) 48deg, transparent 110deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  animation: crestOrbitSpin 16s linear infinite;
}

.crest3d__orbit--inner {
  inset: -26px;
  border: 1px dashed rgba(214, 173, 67, 0.14);
  animation: crestOrbitSpin 32s linear infinite reverse;
}

@keyframes crestOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crest3d__stage {
  position: relative;
  width: 86%;
  height: 86%;
  perspective: 1100px;
  z-index: 2;
}

.crest3d__coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: crestEntrance 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes crestEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, -80px) scale(0.86) rotateY(-24deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  }
}

.crest3d__face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.crest3d__face--front {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform: translateZ(4px);
  border: 3px solid var(--rc-gold);
  box-shadow:
    inset 0 0 0 2px rgba(255, 245, 204, 0.3),
    0 0 0 5px rgba(214, 173, 67, 0.2),
    0 22px 54px rgba(0, 0, 0, 0.68);
  background: var(--rc-deep);
}

.crest3d__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.crest3d__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 240ms ease;
}

.crest3d__ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 236, 173, 0.42);
  pointer-events: none;
}

.crest3d__face--back {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotateY(180deg) translateZ(4px);
  background:
    radial-gradient(circle at 30% 25%, rgba(214, 173, 67, 0.25), transparent 55%),
    linear-gradient(145deg, var(--rc-primary) 0%, var(--rc-deep) 55%, #160622 100%);
  border: 3px solid var(--rc-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.crest3d__back-seal {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px dashed rgba(214, 173, 67, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.crest3d__back-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--rc-white);
}

.crest3d__back-year {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  color: var(--rc-gold);
}

.crest3d__back-motto {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.crest3d__shadow {
  position: absolute;
  bottom: -24px;
  left: 16%;
  right: 16%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(48, 0, 68, 0.35) 55%, transparent 78%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   3D TILT + ILUMINAÇÃO ESPECULAR EM CARTÕES (DESKTOP + TOUCH)
   ========================================================================== */
.rc-tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.rc-tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(214, 173, 67, 0.15) 0%,
    rgba(255, 255, 255, 0.04) 36%,
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  z-index: 4;
}

.rc-tilt-card.is-tilting {
  transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(-6px);
  transition: transform 90ms linear, border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rc-tilt-card.is-tilting::after {
  opacity: 1;
}

.rc-tilt-card.is-touch-active {
  transform: scale(0.985) translateY(-2px);
  border-color: rgba(214, 173, 67, 0.65);
}

/* ---------- ESTADOS DE VALIDAÇÃO EM TEMPO REAL E LOADING ---------- */
.form-group.is-valid .form-input,
.form-group.is-valid .form-select,
.form-group.is-valid .form-textarea {
  border-color: rgba(34, 197, 94, 0.55);
}

.btn__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: rcSpin 650ms linear infinite;
}

@keyframes rcSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .crest3d {
    width: 184px;
    height: 184px;
  }
  .crest3d__orbit--inner {
    inset: -16px;
  }
  .crest3d__orbit--outer {
    inset: -8px;
  }
}

@media (max-width: 420px) {
  .crest3d {
    width: 164px;
    height: 164px;
  }
}

/* ---------- RESPONSIVO COMPONENTES ---------- */
@media (max-width: 1120px) {
  .players-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

@media (max-width: 460px) {
  .players-grid {
    grid-template-columns: 1fr;
  }
}
