/* ==========================================================================
   Refonte PvP Box (02/10/2026) : accueil (vitrine 3D), Comment jouer, Classement.
   Chargé APRÈS style.min.css. Violet = boutons, or = argent et récompenses.
   ========================================================================== */
:root {
  --pb-nuit: #120b1c;
  --pb-nuit-2: #1c1229;
  --pb-trait: #33244a;
  --pb-violet: #c026ff;
  --pb-or: #facc15;
  --pb-argent: #cfd6e4;
  --pb-bronze: #d08a4e;
  --pb-texte: #efe8f7;
  --pb-doux: #a597bb;
  --pb-titre: 'Rajdhani', 'Rajdhani Fallback', 'Arial Narrow', sans-serif;
  --pb-corps: 'Inter', system-ui, sans-serif;
}
body.pb { background: var(--pb-nuit); color: var(--pb-texte); }

/* --- Boutons --- */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 6px; padding: 12px 22px;
  font: 700 17px var(--pb-titre); letter-spacing: .03em; text-decoration: none; border: 0; cursor: pointer; color: var(--pb-texte);
  background: rgba(18, 11, 28, .55); box-shadow: 0 0 0 1px var(--pb-trait) inset; }
.pb-btn:hover { box-shadow: 0 0 0 1px var(--pb-doux) inset; }
.pb-btn-jouer { background: var(--pb-violet); color: #fff; font-size: 22px; padding: 18px 34px;
  box-shadow: 0 0 0 1px #e08bff inset, 0 14px 50px -10px var(--pb-violet); transition: transform .15s, filter .15s; }
.pb-btn-jouer:hover { transform: translateY(-2px); filter: brightness(1.12); box-shadow: 0 0 0 1px #e08bff inset, 0 14px 50px -10px var(--pb-violet); }

/* --- Accueil : un seul écran --- */
.pb-hero { width: 100%; position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.pb-fond { position: absolute; inset: -30px; background: url(/images/spawn-accueil.webp) center/cover no-repeat; z-index: -2;
  transform: scale(1.04); transition: transform .6s ease-out; }
.pb-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 70% at 72% 50%, rgba(192, 38, 255, .20), transparent 70%),
  linear-gradient(90deg, rgba(18, 11, 28, .92) 0%, rgba(18, 11, 28, .62) 42%, rgba(18, 11, 28, .25) 100%),
  linear-gradient(0deg, var(--pb-nuit) 0%, transparent 30%); }
.pb-hero-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 110px 28px 56px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.pb-accroche { font: 700 15px var(--pb-titre); letter-spacing: .14em; color: var(--pb-or); text-shadow: 0 0 18px rgba(250, 204, 21, .5); margin: 0 0 6px; }
.pb-hero h1 { margin: 0; }
.pb-hero h1 img { display: block; width: min(440px, 100%); height: auto; filter: drop-shadow(0 8px 30px rgba(192, 38, 255, .45)); }
.pb-these { font: 700 clamp(30px, 4.2vw, 50px)/1.02 var(--pb-titre); margin: 14px 0 8px; text-wrap: balance; color: var(--pb-texte); }
.pb-sous { font-size: 18px; color: #d9cfe6; margin: 0 0 26px; max-width: 28em; }
.pb-jouer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pb-jouer small { color: var(--pb-doux); font-size: 14px; }
.pb-choix { display: flex; flex-wrap: wrap; gap: 10px; animation: pb-ouvre .25s ease-out; }
.pb-choix[hidden] { display: none; }
@keyframes pb-ouvre { from { opacity: 0; transform: translateY(-6px); } }
.pb-os { display: flex; flex-direction: column; min-width: 150px; padding: 12px 18px; border-radius: 6px; text-decoration: none; color: var(--pb-texte);
  background: rgba(18, 11, 28, .75); box-shadow: 0 0 0 1px var(--pb-trait) inset; transition: box-shadow .15s; }
.pb-os b { font: 700 19px var(--pb-titre); letter-spacing: .02em; }
.pb-os span { font-size: 13px; color: var(--pb-doux); }
a.pb-os:hover, .pb-os.conseil { box-shadow: 0 0 0 1px var(--pb-violet) inset, 0 0 24px -8px var(--pb-violet); }
.pb-os.off { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) { .pb-hero-in { grid-template-columns: 1fr; padding: 96px 16px 48px; } .pb-vitrine { max-width: 380px; order: -1; } }

/* --- Vitrine 3D --- */
.pb-vitrine { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; justify-self: center; width: 100%; max-width: 540px; }
.pb-objet { position: relative; aspect-ratio: 1/1; width: min(100%, 52vh); }
.pb-objet canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.pb-objet canvas:active { cursor: grabbing; }
.pb-socle { position: absolute; left: 22%; right: 22%; bottom: 14%; height: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(192, 38, 255, .55), transparent); filter: blur(6px); animation: pb-souffle 4s ease-in-out infinite; }
@keyframes pb-souffle { 50% { opacity: .55; transform: scaleX(.88); } }
.pb-tourner { position: absolute; left: 50%; bottom: 2%; width: 180px; transform: translateX(-50%); color: var(--pb-doux); pointer-events: none;
  animation: pb-balance 2.4s ease-in-out infinite; transition: opacity .4s; }
.pb-tourner.vu { opacity: 0; }
@keyframes pb-balance { 50% { transform: translateX(-50%) translateX(8px); } }
.pb-matieres { display: flex; gap: 10px; }
.pb-matieres button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; cursor: pointer; background: transparent;
  opacity: .55; transition: transform .15s, opacity .15s, filter .15s; }
.pb-matieres button img { width: 32px; height: 32px; image-rendering: pixelated; }
.pb-matieres button:hover { opacity: .85; }
.pb-matieres button[aria-selected="true"] { opacity: 1; transform: scale(1.15); filter: drop-shadow(0 0 10px var(--c)); }
.pb-barre { display: flex; padding: 3px; background: #1a1a1a; box-shadow: inset 0 0 0 2px #000, 0 10px 30px -10px #000; max-width: 100%; }
.pb-case { position: relative; width: 48px; height: 48px; display: grid; place-items: center; background: #8b8b8b; border: 0; padding: 0; cursor: pointer; margin: 1px;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff33; }
.pb-case img { width: 34px; height: 34px; image-rendering: pixelated; }
.pb-case:hover { background: #a0a0a0; }
.pb-case[aria-selected="true"] { outline: 3px solid #fff; outline-offset: -1px; z-index: 1; }
@media (max-width: 560px) { .pb-case { width: 34px; height: 34px; } .pb-case img { width: 24px; height: 24px; } }

/* --- Bulle d'info : celle du jeu (fond, cadre violet, couleurs Minecraft) --- */
.pb-bulle { position: absolute; z-index: 10; pointer-events: none; min-width: 150px; max-width: 280px; padding: 7px 9px 8px; background: rgba(16, 0, 16, .94);
  box-shadow: inset 0 0 0 2px #2b0a5c, inset 0 0 0 3px #5000ff55; font: 600 16px/1.35 var(--pb-titre); color: #aaa; text-align: left; }
.pb-bulle[hidden] { display: none; }
.pb-bulle .l0 { font-size: 17px; margin-bottom: 2px; }
.pb-bulle .ligne { min-height: 1.35em; white-space: pre-wrap; }
.pb-bulle .rang { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: center; }
.pb-bulle .rang img { width: 10px; height: 10px; image-rendering: pixelated; }
.pb-bulle .losanges { letter-spacing: 2px; font-size: 11px; }

/* --- Pages intérieures (Comment jouer, Classement) --- */
/* body du site = colonne flex : sans width, la page se tasserait à la largeur de son contenu */
.pb-page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 110px 28px 64px; box-sizing: border-box; }
@media (max-width: 640px) { .pb-page { padding: 96px 16px 48px; } }
.pb-tete { padding-block: 10px 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-end; justify-content: space-between; }
.pb-tete h1 { font: 700 clamp(36px, 5vw, 56px)/1 var(--pb-titre); margin: 0; color: var(--pb-texte); text-transform: none; letter-spacing: 0; }
.pb-tete p { margin: 8px 0 0; color: var(--pb-doux); font-size: 18px; }
.pb-fin { border-top: 1px solid var(--pb-trait); padding-block: 36px 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.pb-fin h2 { font: 700 30px var(--pb-titre); margin: 0; text-transform: none; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) { .pb-socle, .pb-tourner, .pb-choix { animation: none; } .pb-fond { transition: none; } }
