/* VVhite Pages — « Prime Résurgence ». Réglages en variables : --vvr-acc, échéance --vvr-ok / --vvr-warn / --vvr-crit,
   lueur --vvr-glow (0–3), prochaine --vvr-next, étiquettes --vvr-dbg/-dfg (DISPO) et --vvr-sbg/-sfg (BIENTÔT),
   reliques --vvr-lith / -meso / -neo / -axi, jauge --vvr-g1 → --vvr-g2, colonnes de l'historique --vvr-hcols. */
.vvp-resurgence {
	--vvr-mut: var(--muted, #8a90ad);
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vvr-gap, 24px);
	max-width: var(--vvr-maxw, 1100px); margin: 0 auto 2.5em;
}
.vvp-resurgence.is-wide { width: min(calc(100vw - 32px), var(--vvr-maxw, 1100px)); max-width: none; margin-left: calc(50% - min(50vw - 16px, var(--vvr-maxw, 1100px) / 2)); }
body.vvp-page--resurgence { overflow-x: clip; }
.vvp-resurgence * { box-sizing: border-box; }
.vvp-resurgence a { color: var(--vvr-acc, #d9b45a); }
.vvp-resurgence [hidden] { display: none !important; }
.vvr-zone { grid-column: span 2; min-width: 0; scroll-margin-top: 90px; }
.vvr-zone.is-half { grid-column: span 1; }
.vvr-h2 { --vvp-base: 1.45em; margin: 0 0 12px !important; line-height: 1.2; color: var(--vvp-c, #fff); }
.vvr-intro, .vvr-after { margin: 0 0 14px; line-height: 1.6; }
.vvr-after { margin: 16px 0 0; }
.vvr-intro p, .vvr-after p { margin: 0 0 .55em; }
.vvr-intro ul, .vvr-after ul { margin: 0 0 .55em 1.2em; }
.vvr-empty { margin: 0; color: var(--vvr-mut); font-style: italic; }
.vvr-edit { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .35); color: #b4bad0 !important; font-size: .78rem; text-decoration: none !important; }
.vvr-edit:hover, .vvr-edit:focus-visible { color: #fff !important; border-color: #fff; }
.vvr-ph { display: grid; place-items: center; flex: 1; min-height: 110px; padding: 10px; text-align: center; font-weight: 800; letter-spacing: .04em; color: rgba(255, 255, 255, .35); text-transform: uppercase; }

/* ---------- Cartes de résurgence ---------- */
.vvr-cards { display: grid; gap: 18px; }
.vvr-cards.vvr-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vvr-cards.vvr-n3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vvr-card {
	--sc: var(--vvr-ok, #d9b45a);
	position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--sc) 70%, transparent);
	background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 12%, #11131b), #0c0e14 60%);
	box-shadow: 0 0 calc(var(--vvr-glow, 2) * 9px) calc(var(--vvr-glow, 2) * -1px) color-mix(in srgb, var(--sc) 60%, transparent);
	transition: border-color .6s ease, box-shadow .6s ease;
}
.vvr-card.is-warn { --sc: var(--vvr-warn, #f0a020); }
.vvr-card.is-crit { --sc: var(--vvr-crit, #ff4d4d); }
.vvr-crit--glow .vvr-card.is-crit { box-shadow: 0 0 calc(var(--vvr-glow, 2) * 16px + 6px) 2px color-mix(in srgb, var(--sc) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) {
	.vvr-crit--pulse .vvr-card.is-crit { animation: vvr-pulse 2.2s ease-in-out infinite; }
}
@keyframes vvr-pulse {
	0%, 100% { box-shadow: 0 0 calc(var(--vvr-glow, 2) * 6px) 0 color-mix(in srgb, var(--sc) 45%, transparent); }
	50% { box-shadow: 0 0 calc(var(--vvr-glow, 2) * 16px + 8px) 3px color-mix(in srgb, var(--sc) 80%, transparent); }
}
.vvr-card--next { --sc: var(--vvr-next, #8a90ad); background: linear-gradient(160deg, rgba(255, 255, 255, .04), #0c0e14 60%); box-shadow: none; }
.vvr-card--next .vvr-ban img { filter: saturate(.55) brightness(.85); transition: filter .5s ease; }
.vvr-card--next:hover .vvr-ban img, .vvr-card--next:focus-within .vvr-ban img { filter: none; }
.vvr-ban { position: relative; display: flex; gap: 2px; aspect-ratio: 16 / 7; overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--sc, #d9b45a) 22%, transparent), rgba(255, 255, 255, .03) 70%); }
.vvr-ban img { display: block; flex: 1; min-width: 0; width: 100%; height: 100%; object-fit: cover; }
.vvr-ban--frames img { object-position: 50% 20%; }
.vvr-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.vvr-name { margin: 0 !important; font-size: 1.35em !important; line-height: 1.2; color: #fff; }
.vvr-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vvr-it { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); line-height: 1.25; }
.vvr-it-n { color: #fff; font-weight: 600; font-size: .95em; }
.vvr-it-t { color: var(--vvr-mut); font-size: .72em; text-transform: uppercase; letter-spacing: .05em; }
.vvr-it--warframe { border-color: color-mix(in srgb, var(--sc, #d9b45a) 55%, transparent); background: color-mix(in srgb, var(--sc, #d9b45a) 12%, transparent); }
.vvr-acc { color: #b4bad0; font-size: .9em; }
.vvr-acc summary { cursor: pointer; color: var(--vvr-mut); }
.vvr-acc ul { margin: 6px 0 0 1.2em; padding: 0; }
.vvr-rel-l { margin: 4px 0 0; color: var(--vvr-mut); font-size: .82em; text-transform: uppercase; letter-spacing: .06em; }
.vvr-relics { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.vvr-relic { --rc: #9aa0b8; padding: 2px 9px; border-radius: 999px; font-size: .82em; font-weight: 700; color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 12%, transparent); white-space: nowrap; }
.vvr-relic--lith { --rc: var(--vvr-lith, #c08457); }
.vvr-relic--meso { --rc: var(--vvr-meso, #b8c4d0); }
.vvr-relic--neo { --rc: var(--vvr-neo, #e3c26b); }
.vvr-relic--axi { --rc: var(--vvr-axi, #a98bff); }
.vvr-end { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.vvr-end-l { color: #d6dae8; }
.vvr-cd { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sc, var(--vvr-acc)); letter-spacing: .02em; }
.vvr-cd-w { color: var(--vvr-mut); }
.vvr-note { margin: 0; color: #b4bad0; font-style: italic; font-size: .9em; }
.vvr-common { margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: #d6dae8; }
.vvr-common .vvr-cd { --sc: var(--vvr-ok); }
.vvr-common.is-warn .vvr-cd { --sc: var(--vvr-warn); }
.vvr-common.is-crit .vvr-cd { --sc: var(--vvr-crit); }
.vvr-common:not([hidden]) ~ .vvr-cards .vvr-card--cur [data-vvr-own] { display: none; }

/* Une seule carte : bannière à gauche, texte à droite */
@media (min-width: 761px) {
	.vvr-cards.vvr-n1 .vvr-card:only-of-type, .vvr-cards.vvr-n1 .vvr-card { flex-direction: row; }
	.vvr-cards.vvr-n1 .vvr-ban { flex: 0 0 52%; aspect-ratio: auto; min-height: 260px; }
	.vvr-cards.vvr-n1 .vvr-body { flex: 1; justify-content: center; padding: 22px 24px; }
	.vvr-cards.vvr-n1 .vvr-name { font-size: 1.6em !important; }
}

/* Carte mystère */
.vvr-myst { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--vvr-next) 60%, transparent); background: rgba(255, 255, 255, .03); }
.vvr-myst img { flex: 0 0 140px; width: 140px; height: 140px; object-fit: cover; border-radius: 10px; filter: brightness(.6); }
.vvr-myst-t { margin: 0 0 6px; font-weight: 900; font-size: 1.3em; letter-spacing: .08em; color: var(--vvr-next); }
.vvr-myst-x { margin: 0 0 4px; color: #b4bad0; }
@media (prefers-reduced-motion: no-preference) {
	.vvr-myst-t { animation: vvr-flicker 4s ease-in-out infinite; }
}
@keyframes vvr-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 50% { opacity: .9; } 55% { opacity: .5; } }

/* ---------- Elles se font attendre ---------- */
.vvr-abw { display: grid; gap: 22px; }
.vvr-abw--side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.vvr-abg { min-width: 0; }
.vvr-abg-t { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; font-size: 1.12em !important; color: #fff; }
.vvr-abg-n { padding: 0 8px; border-radius: 999px; font-size: .75em; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--vvr-mut); }
.vvr-abg--never .vvr-abg-n { background: color-mix(in srgb, var(--vvr-g2) 25%, transparent); color: var(--vvr-g2); }
.vvr-abg-x { margin: 0 0 10px; color: var(--vvr-mut); font-size: .9em; }
.vvr-abw--side .vvr-ab-img { flex-basis: 110px; }
.vvr-abs { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: vvr-ab; }
.vvr-ab { position: relative; display: flex; gap: 16px; align-items: stretch; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); counter-increment: vvr-ab; }
.vvr-ab::before { content: counter(vvr-ab); position: absolute; z-index: 2; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: .85em; background: rgba(8, 9, 13, .8); color: var(--vvr-acc); border: 1px solid color-mix(in srgb, var(--vvr-acc) 50%, transparent); }
.vvr-ab-img { flex: 0 0 150px; display: flex; overflow: hidden; border-radius: 9px; background: radial-gradient(circle at 50% 30%, rgba(217, 180, 90, .14), rgba(255, 255, 255, .02) 70%); }
.vvr-ab-img img { width: 100%; height: 100%; min-height: 110px; max-height: 170px; object-fit: cover; object-position: 50% 20%; }
.vvr-ab-b { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; flex: 1; }
.vvr-ab-n { margin: 0; font-size: 1.2em; color: #fff; }
.vvr-ab-t { margin: 0; color: #d6dae8; }
.vvr-ab-t strong { color: var(--vvr-g2, #ff6b5b); }
.vvr-ab-s { margin: 0; color: var(--vvr-mut); font-size: .88em; }
.vvr-gauge { display: block; height: 6px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.vvr-gauge span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--vvr-g1, #7ecef4), var(--vvr-g2, #ff6b5b)); }
.vvr-ab.is-never { border-color: color-mix(in srgb, var(--vvr-g2) 45%, transparent); background: color-mix(in srgb, var(--vvr-g2) 7%, transparent); }
.vvr-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .7em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.vvr-tag--never { background: var(--vvr-g2, #ff6b5b); color: #14060a; }
.vvr-more { margin: 12px 0 0; text-align: center; }
.vvr-more button, .vvr-hsort button { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: #d6dae8; font: inherit; font-family: var(--vvp-font-boutons, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-size: .9em; cursor: pointer; }
.vvr-more button:hover, .vvr-hsort button:hover, .vvr-more button:focus-visible, .vvr-hsort button:focus-visible { border-color: var(--vvr-acc); color: #fff; }
.vvr-js .vvr-ab { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.vvr-js .vvr-z--absent:not(.is-in) .vvr-gauge span { width: 0 !important; }
	.vvr-gauge span { transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
}

/* ---------- Historique ---------- */
.vvr-hsort { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.vvr-hsort button.is-on { background: var(--vvr-acc); border-color: var(--vvr-acc); color: #14110a; font-weight: 700; }
.vvr-hist--cards { display: grid; gap: 14px; grid-template-columns: repeat(var(--vvr-hcols, 3), minmax(0, 1fr)); }
.vvr-hc { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); transition: transform .25s ease, border-color .25s ease; }
.vvr-hc:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .2); }
.vvr-hc.is-dispo { border-color: var(--vvr-dbg); box-shadow: 0 0 14px -4px var(--vvr-dbg); }
.vvr-hc .vvr-ban { aspect-ratio: 16 / 8; }
.vvr-hc-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.vvr-hc-n { margin: 0 !important; font-size: 1.08em !important; line-height: 1.25; color: #fff; }
.vvr-hc-m { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: .88em; color: #b4bad0; }
.vvr-count { font-weight: 800; color: var(--vvr-acc); }
.vvr-badge { position: absolute; z-index: 3; top: 10px; right: 10px; padding: 3px 10px; border-radius: 6px; font-size: .74em; font-weight: 900; letter-spacing: .1em; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.vvr-badge--dispo { background: var(--vvr-dbg, #d9b45a); color: var(--vvr-dfg, #1a1405); }
.vvr-badge--soon { background: var(--vvr-sbg, #b8c4d0); color: var(--vvr-sfg, #14171f); }
@media (prefers-reduced-motion: no-preference) {
	.vvr-badge--dispo { background-image: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); background-size: 250% 100%; animation: vvr-shine 3.5s linear infinite; }
}
@keyframes vvr-shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.vvr-tl { position: relative; height: 8px; margin: 8px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.vvr-tl i { position: absolute; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--vvr-acc); box-shadow: 0 0 6px var(--vvr-acc); }
.vvr-tl-y { position: absolute; top: 12px; left: 0; line-height: 1; font-size: .68em; color: var(--vvr-mut); }
.vvr-tl-y--e { left: auto; right: 0; }
.vvr-hc-d { margin-top: auto; padding-top: 6px; font-size: .88em; color: #b4bad0; }
.vvr-hc-d summary { cursor: pointer; color: var(--vvr-mut); }
.vvr-hc-d .vvr-relics { margin: 6px 0; }
.vvr-hc-it { margin: 6px 0; color: #d6dae8; }
.vvr-runs { margin: 6px 0 0 1.3em; padding: 0; }
.vvr-runs li { margin: 0; }
.vvr-hist--list { display: flex; flex-direction: column; gap: 6px; }
.vvr-hist--list .vvr-hc { padding-right: 90px; }
.vvr-hist--list .vvr-hc-b { padding: 10px 14px; }
.vvr-hist--list .vvr-tl { max-width: 360px; }
.vvr-hist--list .vvr-hc:has(.vvr-badge:not([hidden])) .vvr-hc-n { padding-right: 76px; }

/* ---------- Parties informatives ---------- */
.vvr-what { display: grid; gap: 10px; margin-top: 6px; }
.vvr-wc { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--vvr-acc); }
.vvr-wc p { margin: 0; line-height: 1.5; color: #d6dae8; }
.vvr-wc strong { color: #fff; }
.vvr-wc-i { flex: 0 0 auto; font-size: 1.3em; line-height: 1.2; color: var(--vvr-acc); }
.vvr-wc--regal { border-left-color: #a98bff; }
.vvr-wc--regal .vvr-wc-i { color: #a98bff; }
.vvr-wc--varzia { border-left-color: #7ecef4; }
.vvr-wc--varzia .vvr-wc-i { color: #7ecef4; }
.vvr-spec { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .18); }
.vvr-spec-h { margin: 0 0 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .82em; color: var(--vvr-acc); }
.vvr-spec ol { margin: 0 0 0 1.3em; padding: 0; }
.vvr-spec li { margin: 0 0 3px; }
.vvr-spec li span { color: var(--vvr-mut); font-size: .92em; }
.vvr-spec-n { margin: 8px 0 0; color: #b4bad0; font-size: .92em; }
.vvr-spec-x { margin-top: 12px; line-height: 1.6; }

/* ---------- Zones libres ---------- */
.vvr-free-img { margin: 0; }
.vvr-free-img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.vvr-free-img figcaption { margin-top: 6px; color: var(--vvr-mut); font-size: .9em; text-align: center; }
.vvr-media { display: flex; gap: 20px; align-items: center; }
.vvr-media.is-img-right { flex-direction: row-reverse; }
.vvr-media-img { flex: 0 0 40%; }
.vvr-media-img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.vvr-media-x { flex: 1; line-height: 1.6; }

/* ---------- Apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
	.vvr-js .vvr-anim--fade, .vvr-js .vvr-anim--rise, .vvr-js .vvr-anim--zoom { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
	.vvr-js .vvr-anim--rise { transform: translateY(24px); }
	.vvr-js .vvr-anim--zoom { transform: scale(.96); }
	.vvr-js .vvr-zone.is-in { opacity: 1; transform: none; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
	.vvr-abw--side { grid-template-columns: minmax(0, 1fr); }
	.vvr-hist--cards { grid-template-columns: repeat(min(var(--vvr-hcols, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.vvp-resurgence { grid-template-columns: minmax(0, 1fr); }
	.vvr-zone.is-half { grid-column: span 1; }
	.vvr-zone { grid-column: span 1; }
	.vvr-cards.vvr-n2 { grid-template-columns: minmax(0, 1fr); }
	.vvr-ab-img, .vvr-abw--side .vvr-ab-img { flex-basis: 96px; }
	.vvr-abw--side { grid-template-columns: minmax(0, 1fr); }
	.vvr-myst { flex-direction: column; text-align: center; }
	.vvr-media, .vvr-media.is-img-right { flex-direction: column; }
	.vvr-hist--cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.vvr-hist--cards .vvr-hc { flex-direction: row; align-items: stretch; }
	.vvr-hist--cards .vvr-hc .vvr-ban { flex: 0 0 96px; aspect-ratio: auto; min-height: 96px; flex-direction: column; }
	.vvr-hist--cards .vvr-hc .vvr-ph { font-size: .7em; min-height: 0; }
	.vvr-hc-b { padding: 10px 12px; }
	.vvr-badge { top: 6px; right: 6px; }
	.vvr-hc:has(.vvr-badge:not([hidden])) .vvr-hc-n { padding-right: 76px; }
}
