/* Velkra E-Sport : seulement ce qui manque à style.css */

/* ---------- En-tête de page ---------- */

.page-hero-velkra {
  min-height: clamp(24rem, 66vh, 38rem);
  align-items: center;
}

.page-hero-velkra > img {
  object-position: 80% 18%;
  opacity: 0.6;
}

.page-hero-velkra::before {
  background:
    radial-gradient(42rem 26rem at 78% 46%, rgba(139, 43, 255, 0.34), transparent 70%),
    linear-gradient(90deg, rgba(6, 5, 13, 0.94) 0%, rgba(6, 5, 13, 0.62) 46%, rgba(6, 5, 13, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 5, 13, 0.25) 0%, rgba(6, 5, 13, 0) 40%, var(--bg) 100%);
}

.page-hero-velkra .hero-frame {
  --m: var(--vio);
}

.page-hero-velkra h1 span {
  display: block;
}

.page-hero-velkra .eyebrow {
  color: #cfb2ff;
}

.page-hero-velkra .eyebrow::before {
  background: var(--vio);
  box-shadow: 0 0 14px var(--vio);
}

.velkra-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.velkra-hero-logo {
  order: -1;
  width: min(100%, 20rem);
  justify-self: start;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, #000 50%, transparent 98%);
  mask: radial-gradient(closest-side, #000 50%, transparent 98%);
}

@media (min-width: 900px) {
  .velkra-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }

  .velkra-hero-logo {
    order: 0;
    width: min(100%, 36rem);
    justify-self: end;
  }
}

/* ---------- Équipe ---------- */

.section-velkra .section-kicker,
.section-velkra + .divider + .section .section-kicker {
  color: #cfb2ff;
}

.roster-block + .roster-block {
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
}

.roster-name {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.roster-name::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--vio);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--vio);
}

.roster-name::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(139, 43, 255, 0.8), transparent);
}

.player-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.pl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.7rem;
}

.pl-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
  background: #120d26;
}

.pl-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.glow:hover .pl-media img {
  transform: scale(1.05);
}

.pl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12, 9, 25, 0.96));
  pointer-events: none;
}

/* sans photo : initiale du pseudo sur fond violet */
.pl-media-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(139, 43, 255, 0.55), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #1d0f3d, #0b0818);
}

.pl-media-empty span {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 7.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 34px rgba(139, 43, 255, 0.95);
}

.pl-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 0.95rem 0.5rem 0.5rem;
}

.pl-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.pl-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.pl-age {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.pl-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--dim);
  overflow-wrap: anywhere;
}

.pl-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.2rem;
}

.pl-socials a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #cfb2ff;
  border: 1px solid rgba(139, 43, 255, 0.55);
  background: rgba(139, 43, 255, 0.12);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.pl-socials a:hover,
.pl-socials a:focus-visible {
  color: #1a0420;
  background: var(--mag);
}

/* ---------- ADN ---------- */

.adn-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.adn {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  padding: 1.4rem 1.3rem;
}

.adn-ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #cfb2ff;
  background: rgba(139, 43, 255, 0.14);
  border: 1px solid rgba(139, 43, 255, 0.6);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.adn-ico .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.adn h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.adn p {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Bandeau Discord ---------- */

.follow {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  justify-items: start;
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.follow-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  line-height: 1.25;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .follow {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}

.empty:not(:has(a))::before {
  content: "Le roster n'est pas encore publié.";
}

/* ---------- Carte joueur compacte, ouverte au clic ---------- */

button.pl-card {
  width: 100%;
  /* sans ça, le gris par défaut des boutons dépasse dans les coins coupés du cadre */
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.pl-card:hover,
button.pl-card:focus-visible {
  border-image-source: url("../../img/ui/frame-card-on.svg");
}

.pl-media {
  display: block;
}

.pl-media-empty {
  display: grid;
}

.pl-name,
.pl-body {
  display: flex;
}

.pl-name {
  display: block;
}

.pl-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mag-hi);
}

.pl-more .icon {
  transition: transform 0.2s ease;
}

button.pl-card:hover .pl-more .icon {
  transform: translateX(4px);
}

body.pl-open {
  overflow: hidden;
}

.pl-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 3, 10, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.pl-focus {
  position: fixed;
  inset: 0;
  z-index: 81;
  margin: auto;
  width: min(100% - 2rem, 54rem);
  height: fit-content;
  max-height: calc(100svh - 2rem);
  /* en colonne simple sur mobile : une grille à hauteur plafonnée écrasait la photo sous le texte */
  display: block;
  padding: 0.9rem;
  overflow-y: auto;
  transform-origin: top left;
  filter: drop-shadow(0 0 40px rgba(139, 43, 255, 0.45)) drop-shadow(0 24px 50px rgba(0, 0, 0, 0.7));
}

.pl-focus .pl-media {
  aspect-ratio: 16 / 11;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.pl-focus .pl-media::after {
  background: linear-gradient(180deg, transparent 60%, rgba(10, 8, 22, 0.9));
}

.pl-focus-body {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.4rem 1rem 1rem;
}

.pl-focus-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pl-focus-desc {
  white-space: pre-line;
  line-height: 1.7;
  color: #d9d4ea;
  overflow-wrap: anywhere;
}

.pl-focus .pl-socials {
  margin-top: 0.4rem;
}

.pl-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 43, 214, 0.6);
  background: rgba(6, 5, 13, 0.85);
  color: #fff;
  font: 400 1.5rem/1 var(--font-ui);
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.pl-close:hover {
  background: var(--mag);
  color: #1a0420;
}

@media (min-width: 760px) {
  .pl-focus {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    padding: 1.1rem;
  }

  /* la photo prend toute la hauteur de la carte, quel que soit le volume de texte à côté */
  .pl-focus .pl-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: min(30rem, calc(100svh - 4.2rem));
  }

  .pl-focus-body {
    padding: 2rem 2.4rem 2rem 2.2rem;
  }
}
@media (max-width: 759px) {
  .pl-close {
    position: sticky;
    top: 0.3rem;
    float: right;
    z-index: 2;
    margin: 0.3rem 0.3rem -2.9rem 0;
  }
}
