/* ═══════════════════════════════════════════════════════════════════════
   aurea-reliques.css — RELIQUES AUREA (2026-10-07) : glyphes, MES RELIQUES, reliques actives,
   fiche, éveil (consommation en charges), reliquaires, codex. Va avec aurea-reliques.js.
   Réutilise les variables d'akasha.page.css (--gold2, --text2, --text3, --border).
   Pas de filtre de flou (perf) : halos = dégradés radiaux.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── glyphe ── */
.rl-art { position: relative; display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), rgba(10,6,28,.72);
  border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
.rl-art svg { position: relative; width: 82%; height: 82%; overflow: visible; }
.rl-art .rl-halo { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ec) 35%, transparent), transparent 62%); opacity: .55; pointer-events: none; }
.rl-art.sm { width: 46px; height: 46px; border-radius: 12px; }
.rl-art.xs { width: 28px; height: 28px; border-radius: 8px; }
.rl-art.big { width: 112px; height: 112px; border-radius: 24px; }
.rl-art.hero { width: 150px; height: 150px; border-radius: 50%; border: 0; background: transparent; }
.rl-art.hero .rl-halo { inset: -30%; opacity: .9; }
.rl-art.lock { filter: grayscale(1) brightness(.35); border-style: dashed; }
.rl-art.r-legendaire, .rl-art.r-primordiale, .rl-art.r-polaristar { box-shadow: 0 0 18px -6px var(--rc); }
.rl-art.r-polaristar .rl-halo { background: radial-gradient(circle, rgba(255,255,255,.55), rgba(181,124,255,.25) 40%, transparent 65%); animation: rlBreath 3.2s ease-in-out infinite; }
@keyframes rlBreath { 50% { opacity: .95; transform: scale(1.08); } }

/* ── cadre selon la rareté (refonte 2026-10-08) : de plus en plus noble, lisible même petit ── */
.rl-art.r-commun { border-color: rgba(144,152,176,.32); }
.rl-art.r-rare { border-color: rgba(106,176,255,.55); box-shadow: 0 0 14px -8px #6ab0ff; }
.rl-art.r-superrare { border-color: rgba(74,224,154,.6); box-shadow: inset 0 0 0 2px rgba(6,4,18,.85), inset 0 0 0 3px rgba(74,224,154,.28), 0 0 16px -8px #4ae09a; }
.rl-art.r-mythique { border-color: rgba(255,106,58,.7); box-shadow: inset 0 0 0 2px rgba(6,4,18,.85), inset 0 0 0 3px rgba(255,106,58,.3), 0 0 18px -7px #ff6a3a; }
.rl-art.r-legendaire, .rl-art.r-primordiale, .rl-art.r-polaristar { border: 1.5px solid transparent; background-clip: padding-box, border-box; background-origin: border-box; }
.rl-art.r-legendaire { background-image: radial-gradient(circle at 50% 55%, rgba(255,184,74,.24), rgba(10,6,28,.92) 70%), linear-gradient(135deg, #fff3c4, #c98a1e 30%, #ffe39a 55%, #7a4c0e 80%, #f3d06c);
  box-shadow: 0 0 22px -6px rgba(255,184,74,.75); }
.rl-art.r-primordiale { background-image: radial-gradient(circle at 50% 55%, rgba(200,160,255,.26), rgba(10,6,28,.92) 70%), linear-gradient(135deg, #f4e6ff, #6a3fb0 30%, #e0b84c 52%, #3a1c6c 76%, #c8a0ff);
  box-shadow: 0 0 24px -6px rgba(200,160,255,.75); }
.rl-art.r-polaristar { background-image: radial-gradient(circle at 50% 55%, rgba(255,255,255,.22), rgba(10,6,28,.9) 70%), linear-gradient(120deg, #ffffff, #9fe6ff 18%, #ffffff 34%, #ffa6d8 50%, #ffffff 66%, #b57cff 82%, #ffe9a8);
  background-size: 100% 100%, 260% 260%; box-shadow: 0 0 26px -4px rgba(255,255,255,.7), 0 0 44px -10px rgba(181,124,255,.8); animation: rlIris 7s linear infinite; }
@keyframes rlIris { to { background-position: 0 0, 260% 0; } }
.rl-art.xs, .rl-art.hero { animation: none; }
.rl-art.hero { background-image: none !important; box-shadow: none !important; border-color: transparent !important; }
.rl-art.lock { background-image: none !important; border: 1px dashed rgba(255,255,255,.25) !important; box-shadow: none !important; animation: none; }
.rl-art.lock .rl-back { display: none; }
@media (prefers-reduced-motion: reduce) { .rl-art.r-polaristar { animation: none; } }

/* ── MES RELIQUES ── */
.rl-row { cursor: pointer; transition: border-color .2s, background .2s; }
.rl-row:hover, .rl-row:focus-visible { border-color: color-mix(in srgb, var(--rc, #edd48c) 60%, transparent); background: rgba(255,255,255,.045); outline: none; }
.rl-row.r-rare { --rc: #6ab0ff; } .rl-row.r-superrare { --rc: #4ae09a; } .rl-row.r-mythique { --rc: #ff6a3a; } .rl-row.r-legendaire { --rc: #ffb84a; } .rl-row.r-primordiale { --rc: #c8a0ff; } .rl-row.r-polaristar { --rc: #ffffff; }
.rl-row .ac-mini-b b { display: block; }
.rl-q { font-style: normal; font-weight: 400; color: var(--gold2, #edd48c); }
.rl-fam { display: block; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text3, #ac9ccb); margin: 2px 0 3px; }

/* ── RELIQUES ACTIVES ── */
.rl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border, #372b6e); background: rgba(255,255,255,.03); line-height: 1.25; }
.rl-chip:hover, .rl-chip:focus-visible { background: rgba(255,255,255,.07); outline: none; }
.rl-chip.r-rare { border-color: #2a6ac0aa; } .rl-chip.r-superrare { border-color: #1a9a5aaa; } .rl-chip.r-mythique { border-color: #c0341aaa; } .rl-chip.r-legendaire { border-color: #c07a1aaa; } .rl-chip.r-polaristar { border-color: #fff9; }
.rl-chip-b { display: flex; flex-direction: column; min-width: 0; }
.rl-chip-b b { font-size: 11px; font-weight: 600; color: #e8e0f8; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.rl-chip-b em { font-size: 10px; font-style: normal; color: var(--gold2, #edd48c); }
.rl-chip-b > i { font-size: 10px; font-style: normal; color: var(--text3, #ac9ccb); }
.rl-pips { display: inline-flex; gap: 3px; vertical-align: middle; margin-top: 2px; }
.rl-pips u { width: 7px; height: 7px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--rc, #edd48c) 70%, #fff); background: transparent; text-decoration: none; }
.rl-pips u.on { background: radial-gradient(circle at 40% 35%, #fff, var(--rc, #edd48c)); box-shadow: 0 0 6px var(--rc, #edd48c); }
.rl-chip.r-commun { --rc: #9098b0; } .rl-chip.r-rare { --rc: #6ab0ff; } .rl-chip.r-superrare { --rc: #4ae09a; } .rl-chip.r-mythique { --rc: #ff6a3a; } .rl-chip.r-legendaire { --rc: #ffb84a; } .rl-chip.r-primordiale { --rc: #c8a0ff; } .rl-chip.r-polaristar { --rc: #ffffff; }

/* ── fiche ── */
.rl-sheet { text-align: center; }
.rl-sheet-art { display: grid; place-items: center; margin: 4px 0 10px; }
.rl-sheet-h h3 { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 2px; font-size: 18px; color: var(--gold2, #edd48c); margin: 2px 0 6px; }
.rl-quote { margin: 12px auto 8px; max-width: 420px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; line-height: 1.4; color: #f3ecff; }
.rl-lore { margin: 0 auto 12px; max-width: 440px; font-size: 12.5px; line-height: 1.6; color: var(--text2, #d6c9ee); }
.rl-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; text-align: left; margin: 12px 0 14px; padding: 12px; border: 1px solid var(--border, #372b6e); border-radius: 12px; background: rgba(255,255,255,.025); }
.rl-dl dt { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text3, #ac9ccb); padding-top: 2px; }
.rl-dl dd { margin: 0; font-size: 12.5px; color: #ece4fa; line-height: 1.5; }
@media (max-width: 480px) { .rl-dl { grid-template-columns: 1fr; } .rl-dl dd { margin-bottom: 4px; } }

/* ── éveil / réunion : surcouche plein écran ── */
.rl-ov { position: fixed; inset: 0; z-index: 10050; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--rc, #edd48c) 14%, #0a0620) 0%, #05030f 70%); opacity: 0; transition: opacity .35s; color: var(--rc, #edd48c); }
.rl-ov.on { opacity: 1; }
.rl-stage { position: relative; width: min(300px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.rl-rune { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; transition: opacity .6s; animation: rlSpin 26s linear infinite; }
.rl-ov.charge .rl-rune { opacity: .75; animation-duration: 6s; }
.rl-ov.rest .rl-rune { opacity: .35; animation-duration: 40s; }
@keyframes rlSpin { to { transform: rotate(360deg); } }
.rl-relic { position: relative; z-index: 2; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; animation: rlFloat 3s ease-in-out infinite; }
@keyframes rlFloat { 50% { transform: translateY(-8px); } }
.rl-ov.charge .rl-relic { animation: rlPulse .55s ease-in-out infinite; }
@keyframes rlPulse { 50% { transform: scale(1.06); } }
.rl-ov.consume .rl-relic { animation: none; transform: scale(1.18); }
/* éveil : la relique s'embrase puis se consume — elle pâlit et rétrécit pendant que ses charges s'en échappent */
.rl-ov.consume:not(.merge) .rl-relic { animation: rlDissolve 1.2s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes rlDissolve { 0% { transform: scale(1); filter: brightness(1); } 30% { transform: scale(1.22); filter: brightness(2.3); opacity: 1; } 100% { transform: scale(.56); filter: brightness(1.25); opacity: .42; } }
.rl-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rl-sparks i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--ec, var(--rc))); box-shadow: 0 0 10px var(--ec, var(--rc)), 0 0 22px var(--rc);
  transform: rotate(var(--a)) translateY(0) scale(.2); opacity: 0; animation: rlSpark .9s var(--d) cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rlSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.2); } 40% { opacity: 1; } 100% { opacity: 1; transform: rotate(var(--a)) translateY(calc(min(300px, 78vw) * -.4)) scale(1); } }
.rl-ov.rest .rl-sparks { animation: rlSpin 14s linear infinite; }
.rl-say { min-height: 3em; text-align: center; font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 3px; font-size: 13px; color: var(--gold2, #edd48c); max-width: 520px; }
.rl-say b { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.rl-say span { display: block; font-family: 'Cormorant Garamond', serif; letter-spacing: .5px; font-size: 16px; color: #e8dcff; }
.rl-rb { min-height: 40px; }
/* réunion d'un reliquaire : les membres tournent puis fusionnent au centre */
.rl-merge { position: relative; width: 100%; height: 100%; display: grid; place-items: center; z-index: 2; }
.rl-orbit { position: absolute; left: 50%; top: 50%; margin: -23px; transform: rotate(calc(var(--k) * 360deg / var(--n))) translateY(-36%) rotate(calc(var(--k) * -360deg / var(--n)));
  animation: rlOrbit 2.4s ease-in-out infinite; transition: transform .9s cubic-bezier(.6,0,.3,1), opacity .9s; }
@keyframes rlOrbit { 50% { margin-top: -28px; } }
.rl-ov.fuse .rl-orbit { transform: rotate(calc(var(--k) * 360deg / var(--n) + 180deg)) translateY(0) scale(.4); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .rl-rune, .rl-relic, .rl-orbit, .rl-ov.rest .rl-sparks, .rl-art.r-polaristar .rl-halo { animation: none !important; } .rl-sparks i { animation-duration: .01s; } }

/* ── reliquaires ── */
.rl-set { padding: 14px; border: 1px solid var(--border, #372b6e); border-radius: 16px; background: rgba(255,255,255,.025); }
.rl-set + .rl-set { margin-top: 10px; }
.rl-set.ready { border-color: #edd48c99; box-shadow: 0 0 26px -12px #edd48c; }
.rl-set-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rl-set-h b { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 2px; font-size: 13px; color: #f3ecff; }
.rl-set-h span { font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; color: var(--gold2, #edd48c); }
.rl-set-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 8px 0 12px; overflow: hidden; }
.rl-set-bar u { display: block; height: 100%; background: linear-gradient(90deg, #ff7a3a, #b9c96a, #9fe6ff, #4f9dff); text-decoration: none; }
.rl-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rl-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.rl-slot small { font-size: 10px; letter-spacing: 1px; color: var(--text3, #ac9ccb); line-height: 1.25; }
.rl-slot.on small { color: #ece4fa; }
.rl-set-d { margin: 10px 0 8px; font-size: 12px; line-height: 1.55; color: var(--text2, #d6c9ee); }
.rl-set-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text3, #ac9ccb); }
.rl-set-f em { font-style: normal; color: var(--gold2, #edd48c); font-family: 'Cinzel', 'Cinzel Fallback', 'Cinzel Fallback A', serif; letter-spacing: 1.5px; }

/* ── codex ── */
.rl-codex summary { list-style: none; cursor: pointer; }
.rl-codex summary::-webkit-details-marker { display: none; }
.rl-codex summary h4 { display: flex; justify-content: space-between; gap: 8px; }
.rl-codex summary h4 span { font-family: inherit; letter-spacing: 1px; font-size: 11px; color: var(--text3, #ac9ccb); }
.rl-codex summary h4::after { content: '▾'; margin-left: auto; color: var(--text3, #ac9ccb); }
.rl-codex details[open] summary h4::after { content: '▴'; }
.rl-codex-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rl-cx { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; text-align: center; border: 1px solid transparent; }
.rl-cx.on { cursor: pointer; } .rl-cx.on:hover, .rl-cx.on:focus-visible { border-color: var(--border, #372b6e); background: rgba(255,255,255,.03); outline: none; }
.rl-cx b { font-size: 10px; letter-spacing: .6px; color: #ece4fa; line-height: 1.25; font-weight: 600; }
.rl-cx:not(.on) b { color: var(--text3, #ac9ccb); font-weight: 400; }
.rl-cx small { font-size: 9.5px; color: var(--text3, #ac9ccb); }
